configure 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743787447874578746787477874878749787507875178752787537875478755787567875778758787597876078761787627876378764787657876678767787687876978770787717877278773787747877578776787777877878779787807878178782787837878478785787867878778788787897879078791787927879378794787957879678797787987879978800788017880278803788047880578806788077880878809788107881178812788137881478815788167881778818788197882078821788227882378824788257882678827788287882978830788317883278833788347883578836788377883878839788407884178842788437884478845788467884778848788497885078851788527885378854788557885678857788587885978860788617886278863788647886578866788677886878869788707887178872788737887478875788767887778878788797888078881788827888378884788857888678887788887888978890788917889278893788947889578896788977889878899789007890178902789037890478905789067890778908789097891078911789127891378914789157891678917789187891978920789217892278923789247892578926789277892878929789307893178932789337893478935789367893778938789397894078941789427894378944789457894678947789487894978950789517895278953789547895578956789577895878959789607896178962789637896478965789667896778968789697897078971789727897378974789757897678977789787897978980789817898278983789847898578986789877898878989789907899178992789937899478995789967899778998789997900079001790027900379004790057900679007790087900979010790117901279013790147901579016790177901879019790207902179022790237902479025790267902779028790297903079031790327903379034790357903679037790387903979040790417904279043790447904579046790477904879049790507905179052790537905479055790567905779058790597906079061790627906379064790657906679067790687906979070790717907279073790747907579076790777907879079790807908179082790837908479085790867908779088790897909079091790927909379094790957909679097790987909979100791017910279103791047910579106791077910879109791107911179112791137911479115791167911779118791197912079121791227912379124791257912679127791287912979130791317913279133791347913579136791377913879139791407914179142791437914479145791467914779148791497915079151791527915379154791557915679157791587915979160791617916279163791647916579166791677916879169791707917179172791737917479175791767917779178791797918079181791827918379184791857918679187791887918979190791917919279193791947919579196791977919879199792007920179202792037920479205792067920779208792097921079211792127921379214792157921679217792187921979220792217922279223792247922579226792277922879229792307923179232792337923479235792367923779238792397924079241792427924379244792457924679247792487924979250792517925279253792547925579256792577925879259792607926179262792637926479265792667926779268792697927079271792727927379274792757927679277792787927979280792817928279283792847928579286792877928879289792907929179292792937929479295792967929779298792997930079301793027930379304793057930679307793087930979310793117931279313793147931579316793177931879319793207932179322793237932479325793267932779328793297933079331793327933379334793357933679337793387933979340793417934279343793447934579346793477934879349793507935179352793537935479355793567935779358793597936079361793627936379364793657936679367793687936979370793717937279373793747937579376793777937879379793807938179382793837938479385793867938779388793897939079391793927939379394793957939679397793987939979400794017940279403794047940579406794077940879409794107941179412794137941479415794167941779418794197942079421794227942379424794257942679427794287942979430794317943279433794347943579436794377943879439794407944179442794437944479445794467944779448794497945079451794527945379454794557945679457794587945979460794617946279463794647946579466794677946879469794707947179472794737947479475794767947779478794797948079481794827948379484794857948679487794887948979490794917949279493794947949579496794977949879499795007950179502795037950479505795067950779508795097951079511795127951379514795157951679517795187951979520795217952279523795247952579526795277952879529795307953179532795337953479535795367953779538795397954079541795427954379544795457954679547795487954979550795517955279553795547955579556795577955879559795607956179562795637956479565795667956779568795697957079571795727957379574795757957679577795787957979580795817958279583795847958579586795877958879589795907959179592795937959479595795967959779598795997960079601796027960379604796057960679607796087960979610796117961279613796147961579616796177961879619796207962179622796237962479625796267962779628796297963079631796327963379634796357963679637796387963979640796417964279643796447964579646796477964879649796507965179652796537965479655796567965779658796597966079661796627966379664796657966679667796687966979670796717967279673796747967579676796777967879679796807968179682796837968479685796867968779688796897969079691796927969379694796957969679697796987969979700797017970279703797047970579706797077970879709797107971179712797137971479715797167971779718797197972079721797227972379724797257972679727797287972979730797317973279733797347973579736797377973879739797407974179742797437974479745797467974779748797497975079751797527975379754797557975679757797587975979760797617976279763797647976579766797677976879769797707977179772797737977479775797767977779778797797978079781797827978379784797857978679787797887978979790797917979279793797947979579796797977979879799798007980179802798037980479805798067980779808798097981079811798127981379814798157981679817798187981979820798217982279823798247982579826798277982879829798307983179832798337983479835798367983779838798397984079841798427984379844798457984679847798487984979850798517985279853798547985579856798577985879859798607986179862798637986479865798667986779868798697987079871798727987379874798757987679877798787987979880798817988279883798847988579886798877988879889798907989179892798937989479895798967989779898798997990079901799027990379904799057990679907799087990979910799117991279913799147991579916799177991879919799207992179922799237992479925799267992779928799297993079931799327993379934799357993679937799387993979940799417994279943799447994579946799477994879949799507995179952799537995479955799567995779958799597996079961799627996379964799657996679967799687996979970799717997279973799747997579976799777997879979799807998179982799837998479985799867998779988799897999079991799927999379994799957999679997799987999980000800018000280003800048000580006800078000880009800108001180012800138001480015800168001780018800198002080021800228002380024800258002680027800288002980030800318003280033800348003580036800378003880039800408004180042800438004480045800468004780048800498005080051800528005380054800558005680057800588005980060800618006280063800648006580066800678006880069800708007180072800738007480075800768007780078800798008080081800828008380084800858008680087800888008980090800918009280093800948009580096800978009880099801008010180102801038010480105801068010780108801098011080111801128011380114801158011680117801188011980120801218012280123801248012580126801278012880129801308013180132801338013480135801368013780138801398014080141801428014380144801458014680147801488014980150801518015280153801548015580156801578015880159801608016180162801638016480165801668016780168801698017080171801728017380174801758017680177801788017980180801818018280183801848018580186801878018880189801908019180192801938019480195801968019780198801998020080201802028020380204802058020680207802088020980210802118021280213802148021580216802178021880219802208022180222802238022480225802268022780228802298023080231802328023380234802358023680237802388023980240802418024280243802448024580246802478024880249802508025180252802538025480255802568025780258802598026080261802628026380264802658026680267802688026980270802718027280273802748027580276802778027880279802808028180282802838028480285802868028780288802898029080291802928029380294802958029680297802988029980300803018030280303803048030580306803078030880309803108031180312803138031480315803168031780318803198032080321803228032380324803258032680327803288032980330803318033280333803348033580336803378033880339803408034180342803438034480345803468034780348803498035080351803528035380354803558035680357803588035980360803618036280363803648036580366803678036880369803708037180372803738037480375803768037780378803798038080381803828038380384803858038680387803888038980390803918039280393803948039580396803978039880399804008040180402804038040480405804068040780408804098041080411804128041380414804158041680417804188041980420804218042280423804248042580426804278042880429804308043180432804338043480435804368043780438804398044080441804428044380444804458044680447804488044980450804518045280453804548045580456804578045880459804608046180462804638046480465804668046780468804698047080471804728047380474804758047680477804788047980480804818048280483804848048580486804878048880489804908049180492804938049480495804968049780498804998050080501805028050380504805058050680507805088050980510805118051280513805148051580516805178051880519805208052180522805238052480525805268052780528805298053080531805328053380534805358053680537805388053980540805418054280543805448054580546805478054880549805508055180552805538055480555805568055780558805598056080561805628056380564805658056680567805688056980570805718057280573805748057580576805778057880579805808058180582805838058480585805868058780588805898059080591805928059380594805958059680597805988059980600806018060280603806048060580606806078060880609806108061180612806138061480615806168061780618806198062080621806228062380624806258062680627806288062980630806318063280633806348063580636806378063880639806408064180642806438064480645806468064780648806498065080651806528065380654806558065680657806588065980660806618066280663806648066580666806678066880669806708067180672806738067480675806768067780678806798068080681806828068380684806858068680687806888068980690806918069280693806948069580696806978069880699807008070180702807038070480705807068070780708807098071080711807128071380714807158071680717807188071980720807218072280723807248072580726807278072880729807308073180732807338073480735807368073780738807398074080741807428074380744807458074680747807488074980750807518075280753807548075580756807578075880759807608076180762807638076480765807668076780768807698077080771807728077380774807758077680777807788077980780807818078280783807848078580786807878078880789807908079180792807938079480795807968079780798807998080080801808028080380804808058080680807808088080980810808118081280813808148081580816808178081880819808208082180822808238082480825808268082780828808298083080831808328083380834808358083680837808388083980840808418084280843808448084580846808478084880849808508085180852808538085480855808568085780858808598086080861808628086380864808658086680867808688086980870808718087280873808748087580876808778087880879808808088180882808838088480885808868088780888808898089080891808928089380894808958089680897808988089980900809018090280903809048090580906809078090880909809108091180912809138091480915809168091780918809198092080921809228092380924809258092680927809288092980930809318093280933809348093580936809378093880939809408094180942809438094480945809468094780948809498095080951809528095380954809558095680957809588095980960809618096280963809648096580966809678096880969809708097180972809738097480975809768097780978809798098080981809828098380984809858098680987809888098980990809918099280993809948099580996809978099880999810008100181002810038100481005810068100781008810098101081011810128101381014810158101681017810188101981020810218102281023810248102581026810278102881029810308103181032810338103481035810368103781038810398104081041810428104381044810458104681047810488104981050810518105281053810548105581056810578105881059810608106181062810638106481065810668106781068810698107081071810728107381074810758107681077810788107981080810818108281083810848108581086810878108881089810908109181092810938109481095810968109781098810998110081101811028110381104811058110681107811088110981110811118111281113811148111581116811178111881119811208112181122811238112481125811268112781128811298113081131811328113381134811358113681137811388113981140811418114281143811448114581146811478114881149811508115181152811538115481155811568115781158811598116081161811628116381164811658116681167811688116981170811718117281173811748117581176811778117881179811808118181182811838118481185811868118781188811898119081191811928119381194811958119681197811988119981200812018120281203812048120581206812078120881209812108121181212812138121481215812168121781218812198122081221812228122381224812258122681227812288122981230812318123281233812348123581236812378123881239812408124181242812438124481245812468124781248812498125081251812528125381254812558125681257812588125981260812618126281263812648126581266812678126881269812708127181272812738127481275812768127781278812798128081281812828128381284812858128681287812888128981290812918129281293812948129581296812978129881299813008130181302813038130481305813068130781308813098131081311813128131381314813158131681317813188131981320813218132281323813248132581326813278132881329813308133181332813338133481335813368133781338813398134081341813428134381344813458134681347813488134981350813518135281353813548135581356813578135881359813608136181362813638136481365813668136781368813698137081371813728137381374813758137681377813788137981380813818138281383813848138581386813878138881389813908139181392813938139481395813968139781398813998140081401814028140381404814058140681407814088140981410814118141281413814148141581416814178141881419814208142181422814238142481425814268142781428814298143081431814328143381434814358143681437814388143981440814418144281443814448144581446814478144881449814508145181452814538145481455814568145781458814598146081461814628146381464814658146681467814688146981470814718147281473814748147581476814778147881479814808148181482814838148481485814868148781488814898149081491814928149381494814958149681497814988149981500815018150281503815048150581506815078150881509815108151181512815138151481515815168151781518815198152081521815228152381524815258152681527815288152981530815318153281533815348153581536815378153881539815408154181542815438154481545815468154781548815498155081551815528155381554815558155681557815588155981560815618156281563815648156581566815678156881569815708157181572815738157481575815768157781578815798158081581815828158381584815858158681587815888158981590815918159281593815948159581596815978159881599816008160181602816038160481605816068160781608816098161081611816128161381614816158161681617816188161981620816218162281623816248162581626816278162881629816308163181632816338163481635816368163781638816398164081641816428164381644816458164681647816488164981650816518165281653816548165581656816578165881659816608166181662816638166481665816668166781668816698167081671816728167381674816758167681677816788167981680816818168281683816848168581686816878168881689816908169181692816938169481695816968169781698816998170081701817028170381704817058170681707817088170981710817118171281713817148171581716817178171881719817208172181722817238172481725817268172781728817298173081731817328173381734817358173681737817388173981740817418174281743817448174581746817478174881749817508175181752817538175481755817568175781758817598176081761817628176381764817658176681767817688176981770817718177281773817748177581776817778177881779817808178181782817838178481785817868178781788817898179081791817928179381794817958179681797817988179981800818018180281803818048180581806818078180881809818108181181812818138181481815818168181781818818198182081821818228182381824818258182681827818288182981830818318183281833818348183581836818378183881839818408184181842818438184481845818468184781848818498185081851818528185381854818558185681857818588185981860818618186281863818648186581866818678186881869818708187181872818738187481875818768187781878818798188081881818828188381884818858188681887818888188981890818918189281893818948189581896818978189881899819008190181902819038190481905819068190781908819098191081911819128191381914819158191681917819188191981920819218192281923819248192581926819278192881929819308193181932819338193481935819368193781938819398194081941819428194381944819458194681947819488194981950819518195281953819548195581956819578195881959819608196181962819638196481965819668196781968819698197081971819728197381974819758197681977819788197981980819818198281983819848198581986819878198881989819908199181992819938199481995819968199781998819998200082001820028200382004820058200682007820088200982010820118201282013820148201582016820178201882019820208202182022820238202482025820268202782028820298203082031820328203382034820358203682037820388203982040820418204282043820448204582046
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  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. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$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. $as_echo 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. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='package-unused'
  539. PACKAGE_TARNAME='libstdc++'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='package-unused version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="src/shared/hashtable-aux.cc"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. get_gcc_base_ver
  585. WARN_FLAGS
  586. OPTIMIZE_CXXFLAGS
  587. TOPLEVEL_INCLUDES
  588. GLIBCXX_INCLUDES
  589. glibcxx_toolexeclibdir
  590. glibcxx_toolexecdir
  591. gxx_include_dir
  592. glibcxx_prefixdir
  593. EXTRA_CFLAGS
  594. tmake_file
  595. CPU_OPT_BITS_RANDOM
  596. CPU_OPT_EXT_RANDOM
  597. ERROR_CONSTANTS_SRCDIR
  598. OS_INC_SRCDIR
  599. ABI_TWEAKS_SRCDIR
  600. CPU_DEFINES_SRCDIR
  601. ATOMIC_FLAGS
  602. ATOMIC_WORD_SRCDIR
  603. ATOMICITY_SRCDIR
  604. INCLUDE_DIR_NOTPARALLEL_FALSE
  605. INCLUDE_DIR_NOTPARALLEL_TRUE
  606. BUILD_PDF_FALSE
  607. BUILD_PDF_TRUE
  608. PDFLATEX
  609. DBLATEX
  610. BUILD_MAN_FALSE
  611. BUILD_MAN_TRUE
  612. BUILD_HTML_FALSE
  613. BUILD_HTML_TRUE
  614. BUILD_XML_FALSE
  615. BUILD_XML_TRUE
  616. BUILD_EPUB_FALSE
  617. BUILD_EPUB_TRUE
  618. XSL_STYLE_DIR
  619. XMLLINT
  620. XSLTPROC
  621. XMLCATALOG
  622. DOT
  623. DOXYGEN
  624. BUILD_INFO_FALSE
  625. BUILD_INFO_TRUE
  626. ENABLE_BACKTRACE_FALSE
  627. ENABLE_BACKTRACE_TRUE
  628. BACKTRACE_SUPPORTS_THREADS
  629. BACKTRACE_USES_MALLOC
  630. BACKTRACE_SUPPORTED
  631. BACKTRACE_CPPFLAGS
  632. VIEW_FILE
  633. ALLOC_FILE
  634. FORMAT_FILE
  635. ENABLE_FILESYSTEM_TS_FALSE
  636. ENABLE_FILESYSTEM_TS_TRUE
  637. baseline_subdir_switch
  638. baseline_dir
  639. HWCAP_CFLAGS
  640. GLIBCXX_LDBL_ALT128_COMPAT_FALSE
  641. GLIBCXX_LDBL_ALT128_COMPAT_TRUE
  642. GLIBCXX_LDBL_COMPAT_FALSE
  643. GLIBCXX_LDBL_COMPAT_TRUE
  644. LONG_DOUBLE_ALT128_COMPAT_FLAGS
  645. LONG_DOUBLE_128_FLAGS
  646. LONG_DOUBLE_COMPAT_FLAGS
  647. ENABLE_CXX11_ABI_FALSE
  648. ENABLE_CXX11_ABI_TRUE
  649. glibcxx_cxx98_abi
  650. ENABLE_DUAL_ABI_FALSE
  651. ENABLE_DUAL_ABI_TRUE
  652. ENABLE_VISIBILITY_FALSE
  653. ENABLE_VISIBILITY_TRUE
  654. libtool_VERSION
  655. ENABLE_SYMVERS_SUN_FALSE
  656. ENABLE_SYMVERS_SUN_TRUE
  657. ENABLE_SYMVERS_DARWIN_FALSE
  658. ENABLE_SYMVERS_DARWIN_TRUE
  659. ENABLE_SYMVERS_GNU_NAMESPACE_FALSE
  660. ENABLE_SYMVERS_GNU_NAMESPACE_TRUE
  661. ENABLE_SYMVERS_GNU_FALSE
  662. ENABLE_SYMVERS_GNU_TRUE
  663. ENABLE_SYMVERS_FALSE
  664. ENABLE_SYMVERS_TRUE
  665. port_specific_symbol_files
  666. SYMVER_FILE
  667. CXXFILT
  668. LTLIBICONV
  669. LIBICONV
  670. OPT_LDFLAGS
  671. SECTION_LDFLAGS
  672. GLIBCXX_LIBS
  673. ENABLE_VTABLE_VERIFY_FALSE
  674. ENABLE_VTABLE_VERIFY_TRUE
  675. VTV_CYGMIN_FALSE
  676. VTV_CYGMIN_TRUE
  677. VTV_CXXLINKFLAGS
  678. VTV_PCH_CXXFLAGS
  679. VTV_CXXFLAGS
  680. ENABLE_WERROR_FALSE
  681. ENABLE_WERROR_TRUE
  682. ENABLE_PYTHONDIR_FALSE
  683. ENABLE_PYTHONDIR_TRUE
  684. python_mod_dir
  685. ENABLE_EXTERN_TEMPLATE_FALSE
  686. ENABLE_EXTERN_TEMPLATE_TRUE
  687. EXTRA_CXX_FLAGS
  688. GLIBCXX_BUILD_DEBUG_FALSE
  689. GLIBCXX_BUILD_DEBUG_TRUE
  690. DEBUG_FLAGS
  691. GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE
  692. GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE
  693. GLIBCXX_C_HEADERS_C_GLOBAL_FALSE
  694. GLIBCXX_C_HEADERS_C_GLOBAL_TRUE
  695. GLIBCXX_C_HEADERS_C_STD_FALSE
  696. GLIBCXX_C_HEADERS_C_STD_TRUE
  697. GLIBCXX_C_HEADERS_C_FALSE
  698. GLIBCXX_C_HEADERS_C_TRUE
  699. C_INCLUDE_DIR
  700. ALLOCATOR_NAME
  701. ALLOCATOR_H
  702. ENABLE_ALLOCATOR_NEW_FALSE
  703. ENABLE_ALLOCATOR_NEW_TRUE
  704. CLOCALE_INTERNAL_H
  705. CLOCALE_CC
  706. CTIME_CC
  707. CTIME_H
  708. CNUMERIC_CC
  709. CMONEY_CC
  710. CMESSAGES_CC
  711. CCTYPE_CC
  712. CCOLLATE_CC
  713. CCODECVT_CC
  714. CMESSAGES_H
  715. CLOCALE_H
  716. USE_NLS
  717. glibcxx_localedir
  718. glibcxx_POFILES
  719. glibcxx_MOFILES
  720. check_msgfmt
  721. BASIC_FILE_CC
  722. BASIC_FILE_H
  723. CSTDIO_H
  724. SECTION_FLAGS
  725. ENABLE_FLOAT128_FALSE
  726. ENABLE_FLOAT128_TRUE
  727. thread_header
  728. glibcxx_PCHFLAGS
  729. GLIBCXX_BUILD_PCH_FALSE
  730. GLIBCXX_BUILD_PCH_TRUE
  731. FREESTANDING_FLAGS
  732. GLIBCXX_HOSTED_FALSE
  733. GLIBCXX_HOSTED_TRUE
  734. glibcxx_compiler_shared_flag
  735. glibcxx_compiler_pic_flag
  736. glibcxx_lt_pic_flag
  737. enable_static
  738. enable_shared
  739. lt_host_flags
  740. CXXCPP
  741. OTOOL64
  742. OTOOL
  743. LIPO
  744. NMEDIT
  745. DSYMUTIL
  746. OBJDUMP
  747. NM
  748. ac_ct_DUMPBIN
  749. DUMPBIN
  750. LD
  751. FGREP
  752. SED
  753. LIBTOOL
  754. EGREP
  755. GREP
  756. CPP
  757. MAINT
  758. MAINTAINER_MODE_FALSE
  759. MAINTAINER_MODE_TRUE
  760. RANLIB
  761. AR
  762. AS
  763. LN_S
  764. toplevel_srcdir
  765. toplevel_builddir
  766. glibcxx_srcdir
  767. glibcxx_builddir
  768. ac_ct_CXX
  769. CXXFLAGS
  770. CXX
  771. OBJEXT
  772. EXEEXT
  773. ac_ct_CC
  774. CPPFLAGS
  775. LDFLAGS
  776. CFLAGS
  777. CC
  778. AM_BACKSLASH
  779. AM_DEFAULT_VERBOSITY
  780. AM_DEFAULT_V
  781. AM_V
  782. am__untar
  783. am__tar
  784. AMTAR
  785. am__leading_dot
  786. SET_MAKE
  787. AWK
  788. mkdir_p
  789. MKDIR_P
  790. INSTALL_STRIP_PROGRAM
  791. STRIP
  792. install_sh
  793. MAKEINFO
  794. AUTOHEADER
  795. AUTOMAKE
  796. AUTOCONF
  797. ACLOCAL
  798. VERSION
  799. PACKAGE
  800. CYGPATH_W
  801. am__isrc
  802. INSTALL_DATA
  803. INSTALL_SCRIPT
  804. INSTALL_PROGRAM
  805. target_os
  806. target_vendor
  807. target_cpu
  808. target
  809. host_os
  810. host_vendor
  811. host_cpu
  812. host
  813. build_os
  814. build_vendor
  815. build_cpu
  816. build
  817. multi_basedir
  818. target_alias
  819. host_alias
  820. build_alias
  821. LIBS
  822. ECHO_T
  823. ECHO_N
  824. ECHO_C
  825. DEFS
  826. mandir
  827. localedir
  828. libdir
  829. psdir
  830. pdfdir
  831. dvidir
  832. htmldir
  833. infodir
  834. docdir
  835. oldincludedir
  836. includedir
  837. localstatedir
  838. sharedstatedir
  839. sysconfdir
  840. datadir
  841. datarootdir
  842. libexecdir
  843. sbindir
  844. bindir
  845. program_transform_name
  846. prefix
  847. exec_prefix
  848. PACKAGE_URL
  849. PACKAGE_BUGREPORT
  850. PACKAGE_STRING
  851. PACKAGE_VERSION
  852. PACKAGE_TARNAME
  853. PACKAGE_NAME
  854. PATH_SEPARATOR
  855. SHELL'
  856. ac_subst_files=''
  857. ac_user_opts='
  858. enable_option_checking
  859. enable_multilib
  860. enable_silent_rules
  861. enable_largefile
  862. with_target_subdir
  863. with_cross_host
  864. with_newlib
  865. enable_maintainer_mode
  866. enable_shared
  867. enable_static
  868. with_pic
  869. enable_fast_install
  870. with_gnu_ld
  871. enable_libtool_lock
  872. enable_hosted_libstdcxx
  873. enable_libstdcxx_verbose
  874. enable_libstdcxx_pch
  875. with_libstdcxx_lock_policy
  876. enable_cstdio
  877. enable_clocale
  878. enable_nls
  879. enable_libstdcxx_allocator
  880. enable_cheaders_obsolete
  881. enable_cheaders
  882. enable_long_long
  883. enable_wchar_t
  884. enable_c99
  885. enable_concept_checks
  886. enable_libstdcxx_debug_flags
  887. enable_libstdcxx_debug
  888. enable_cxx_flags
  889. enable_fully_dynamic_string
  890. enable_extern_template
  891. with_python_dir
  892. enable_werror
  893. enable_vtable_verify
  894. enable_libstdcxx_time
  895. enable_tls
  896. enable_rpath
  897. with_libiconv_prefix
  898. with_libiconv_type
  899. with_system_libunwind
  900. enable_linux_futex
  901. enable_symvers
  902. enable_libstdcxx_visibility
  903. enable_libstdcxx_dual_abi
  904. with_default_libstdcxx_abi
  905. enable_libstdcxx_threads
  906. enable_libstdcxx_filesystem_ts
  907. enable_libstdcxx_backtrace
  908. enable_cet
  909. with_gxx_include_dir
  910. enable_version_specific_runtime_libs
  911. with_toolexeclibdir
  912. with_gcc_major_version_only
  913. '
  914. ac_precious_vars='build_alias
  915. host_alias
  916. target_alias
  917. CC
  918. CFLAGS
  919. LDFLAGS
  920. LIBS
  921. CPPFLAGS
  922. CXX
  923. CXXFLAGS
  924. CCC
  925. CPP
  926. CXXCPP
  927. CXXFILT'
  928. # Initialize some variables set by options.
  929. ac_init_help=
  930. ac_init_version=false
  931. ac_unrecognized_opts=
  932. ac_unrecognized_sep=
  933. # The variables have the same names as the options, with
  934. # dashes changed to underlines.
  935. cache_file=/dev/null
  936. exec_prefix=NONE
  937. no_create=
  938. no_recursion=
  939. prefix=NONE
  940. program_prefix=NONE
  941. program_suffix=NONE
  942. program_transform_name=s,x,x,
  943. silent=
  944. site=
  945. srcdir=
  946. verbose=
  947. x_includes=NONE
  948. x_libraries=NONE
  949. # Installation directory options.
  950. # These are left unexpanded so users can "make install exec_prefix=/foo"
  951. # and all the variables that are supposed to be based on exec_prefix
  952. # by default will actually change.
  953. # Use braces instead of parens because sh, perl, etc. also accept them.
  954. # (The list follows the same order as the GNU Coding Standards.)
  955. bindir='${exec_prefix}/bin'
  956. sbindir='${exec_prefix}/sbin'
  957. libexecdir='${exec_prefix}/libexec'
  958. datarootdir='${prefix}/share'
  959. datadir='${datarootdir}'
  960. sysconfdir='${prefix}/etc'
  961. sharedstatedir='${prefix}/com'
  962. localstatedir='${prefix}/var'
  963. includedir='${prefix}/include'
  964. oldincludedir='/usr/include'
  965. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  966. infodir='${datarootdir}/info'
  967. htmldir='${docdir}'
  968. dvidir='${docdir}'
  969. pdfdir='${docdir}'
  970. psdir='${docdir}'
  971. libdir='${exec_prefix}/lib'
  972. localedir='${datarootdir}/locale'
  973. mandir='${datarootdir}/man'
  974. ac_prev=
  975. ac_dashdash=
  976. for ac_option
  977. do
  978. # If the previous option needs an argument, assign it.
  979. if test -n "$ac_prev"; then
  980. eval $ac_prev=\$ac_option
  981. ac_prev=
  982. continue
  983. fi
  984. case $ac_option in
  985. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  986. *=) ac_optarg= ;;
  987. *) ac_optarg=yes ;;
  988. esac
  989. # Accept the important Cygnus configure options, so we can diagnose typos.
  990. case $ac_dashdash$ac_option in
  991. --)
  992. ac_dashdash=yes ;;
  993. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  994. ac_prev=bindir ;;
  995. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  996. bindir=$ac_optarg ;;
  997. -build | --build | --buil | --bui | --bu)
  998. ac_prev=build_alias ;;
  999. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1000. build_alias=$ac_optarg ;;
  1001. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1002. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1003. ac_prev=cache_file ;;
  1004. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1005. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1006. cache_file=$ac_optarg ;;
  1007. --config-cache | -C)
  1008. cache_file=config.cache ;;
  1009. -datadir | --datadir | --datadi | --datad)
  1010. ac_prev=datadir ;;
  1011. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1012. datadir=$ac_optarg ;;
  1013. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1014. | --dataroo | --dataro | --datar)
  1015. ac_prev=datarootdir ;;
  1016. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1017. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1018. datarootdir=$ac_optarg ;;
  1019. -disable-* | --disable-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid feature name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "enable_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval enable_$ac_useropt=no ;;
  1034. -docdir | --docdir | --docdi | --doc | --do)
  1035. ac_prev=docdir ;;
  1036. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1037. docdir=$ac_optarg ;;
  1038. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1039. ac_prev=dvidir ;;
  1040. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1041. dvidir=$ac_optarg ;;
  1042. -enable-* | --enable-*)
  1043. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1044. # Reject names that are not valid shell variable names.
  1045. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1046. as_fn_error $? "invalid feature name: $ac_useropt"
  1047. ac_useropt_orig=$ac_useropt
  1048. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1049. case $ac_user_opts in
  1050. *"
  1051. "enable_$ac_useropt"
  1052. "*) ;;
  1053. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1054. ac_unrecognized_sep=', ';;
  1055. esac
  1056. eval enable_$ac_useropt=\$ac_optarg ;;
  1057. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1058. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1059. | --exec | --exe | --ex)
  1060. ac_prev=exec_prefix ;;
  1061. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1062. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1063. | --exec=* | --exe=* | --ex=*)
  1064. exec_prefix=$ac_optarg ;;
  1065. -gas | --gas | --ga | --g)
  1066. # Obsolete; use --with-gas.
  1067. with_gas=yes ;;
  1068. -help | --help | --hel | --he | -h)
  1069. ac_init_help=long ;;
  1070. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1071. ac_init_help=recursive ;;
  1072. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1073. ac_init_help=short ;;
  1074. -host | --host | --hos | --ho)
  1075. ac_prev=host_alias ;;
  1076. -host=* | --host=* | --hos=* | --ho=*)
  1077. host_alias=$ac_optarg ;;
  1078. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1079. ac_prev=htmldir ;;
  1080. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1081. | --ht=*)
  1082. htmldir=$ac_optarg ;;
  1083. -includedir | --includedir | --includedi | --included | --include \
  1084. | --includ | --inclu | --incl | --inc)
  1085. ac_prev=includedir ;;
  1086. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1087. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1088. includedir=$ac_optarg ;;
  1089. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1090. ac_prev=infodir ;;
  1091. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1092. infodir=$ac_optarg ;;
  1093. -libdir | --libdir | --libdi | --libd)
  1094. ac_prev=libdir ;;
  1095. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1096. libdir=$ac_optarg ;;
  1097. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1098. | --libexe | --libex | --libe)
  1099. ac_prev=libexecdir ;;
  1100. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1101. | --libexe=* | --libex=* | --libe=*)
  1102. libexecdir=$ac_optarg ;;
  1103. -localedir | --localedir | --localedi | --localed | --locale)
  1104. ac_prev=localedir ;;
  1105. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1106. localedir=$ac_optarg ;;
  1107. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1108. | --localstate | --localstat | --localsta | --localst | --locals)
  1109. ac_prev=localstatedir ;;
  1110. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1111. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1112. localstatedir=$ac_optarg ;;
  1113. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1114. ac_prev=mandir ;;
  1115. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1116. mandir=$ac_optarg ;;
  1117. -nfp | --nfp | --nf)
  1118. # Obsolete; use --without-fp.
  1119. with_fp=no ;;
  1120. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1121. | --no-cr | --no-c | -n)
  1122. no_create=yes ;;
  1123. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1124. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1125. no_recursion=yes ;;
  1126. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1127. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1128. | --oldin | --oldi | --old | --ol | --o)
  1129. ac_prev=oldincludedir ;;
  1130. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1131. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1132. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1133. oldincludedir=$ac_optarg ;;
  1134. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1135. ac_prev=prefix ;;
  1136. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1137. prefix=$ac_optarg ;;
  1138. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1139. | --program-pre | --program-pr | --program-p)
  1140. ac_prev=program_prefix ;;
  1141. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1142. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1143. program_prefix=$ac_optarg ;;
  1144. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1145. | --program-suf | --program-su | --program-s)
  1146. ac_prev=program_suffix ;;
  1147. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1148. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1149. program_suffix=$ac_optarg ;;
  1150. -program-transform-name | --program-transform-name \
  1151. | --program-transform-nam | --program-transform-na \
  1152. | --program-transform-n | --program-transform- \
  1153. | --program-transform | --program-transfor \
  1154. | --program-transfo | --program-transf \
  1155. | --program-trans | --program-tran \
  1156. | --progr-tra | --program-tr | --program-t)
  1157. ac_prev=program_transform_name ;;
  1158. -program-transform-name=* | --program-transform-name=* \
  1159. | --program-transform-nam=* | --program-transform-na=* \
  1160. | --program-transform-n=* | --program-transform-=* \
  1161. | --program-transform=* | --program-transfor=* \
  1162. | --program-transfo=* | --program-transf=* \
  1163. | --program-trans=* | --program-tran=* \
  1164. | --progr-tra=* | --program-tr=* | --program-t=*)
  1165. program_transform_name=$ac_optarg ;;
  1166. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1167. ac_prev=pdfdir ;;
  1168. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1169. pdfdir=$ac_optarg ;;
  1170. -psdir | --psdir | --psdi | --psd | --ps)
  1171. ac_prev=psdir ;;
  1172. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1173. psdir=$ac_optarg ;;
  1174. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1175. | -silent | --silent | --silen | --sile | --sil)
  1176. silent=yes ;;
  1177. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1178. ac_prev=sbindir ;;
  1179. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1180. | --sbi=* | --sb=*)
  1181. sbindir=$ac_optarg ;;
  1182. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1183. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1184. | --sharedst | --shareds | --shared | --share | --shar \
  1185. | --sha | --sh)
  1186. ac_prev=sharedstatedir ;;
  1187. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1188. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1189. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1190. | --sha=* | --sh=*)
  1191. sharedstatedir=$ac_optarg ;;
  1192. -site | --site | --sit)
  1193. ac_prev=site ;;
  1194. -site=* | --site=* | --sit=*)
  1195. site=$ac_optarg ;;
  1196. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1197. ac_prev=srcdir ;;
  1198. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1199. srcdir=$ac_optarg ;;
  1200. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1201. | --syscon | --sysco | --sysc | --sys | --sy)
  1202. ac_prev=sysconfdir ;;
  1203. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1204. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1205. sysconfdir=$ac_optarg ;;
  1206. -target | --target | --targe | --targ | --tar | --ta | --t)
  1207. ac_prev=target_alias ;;
  1208. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1209. target_alias=$ac_optarg ;;
  1210. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1211. verbose=yes ;;
  1212. -version | --version | --versio | --versi | --vers | -V)
  1213. ac_init_version=: ;;
  1214. -with-* | --with-*)
  1215. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1216. # Reject names that are not valid shell variable names.
  1217. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1218. as_fn_error $? "invalid package name: $ac_useropt"
  1219. ac_useropt_orig=$ac_useropt
  1220. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1221. case $ac_user_opts in
  1222. *"
  1223. "with_$ac_useropt"
  1224. "*) ;;
  1225. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1226. ac_unrecognized_sep=', ';;
  1227. esac
  1228. eval with_$ac_useropt=\$ac_optarg ;;
  1229. -without-* | --without-*)
  1230. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1231. # Reject names that are not valid shell variable names.
  1232. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1233. as_fn_error $? "invalid package name: $ac_useropt"
  1234. ac_useropt_orig=$ac_useropt
  1235. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1236. case $ac_user_opts in
  1237. *"
  1238. "with_$ac_useropt"
  1239. "*) ;;
  1240. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1241. ac_unrecognized_sep=', ';;
  1242. esac
  1243. eval with_$ac_useropt=no ;;
  1244. --x)
  1245. # Obsolete; use --with-x.
  1246. with_x=yes ;;
  1247. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1248. | --x-incl | --x-inc | --x-in | --x-i)
  1249. ac_prev=x_includes ;;
  1250. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1251. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1252. x_includes=$ac_optarg ;;
  1253. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1254. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1255. ac_prev=x_libraries ;;
  1256. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1257. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1258. x_libraries=$ac_optarg ;;
  1259. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1260. Try \`$0 --help' for more information"
  1261. ;;
  1262. *=*)
  1263. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1264. # Reject names that are not valid shell variable names.
  1265. case $ac_envvar in #(
  1266. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1267. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1268. esac
  1269. eval $ac_envvar=\$ac_optarg
  1270. export $ac_envvar ;;
  1271. *)
  1272. # FIXME: should be removed in autoconf 3.0.
  1273. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1274. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1275. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1276. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1277. ;;
  1278. esac
  1279. done
  1280. if test -n "$ac_prev"; then
  1281. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1282. as_fn_error $? "missing argument to $ac_option"
  1283. fi
  1284. if test -n "$ac_unrecognized_opts"; then
  1285. case $enable_option_checking in
  1286. no) ;;
  1287. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1288. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1289. esac
  1290. fi
  1291. # Check all directory arguments for consistency.
  1292. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1293. datadir sysconfdir sharedstatedir localstatedir includedir \
  1294. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1295. libdir localedir mandir
  1296. do
  1297. eval ac_val=\$$ac_var
  1298. # Remove trailing slashes.
  1299. case $ac_val in
  1300. */ )
  1301. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1302. eval $ac_var=\$ac_val;;
  1303. esac
  1304. # Be sure to have absolute directory names.
  1305. case $ac_val in
  1306. [\\/$]* | ?:[\\/]* ) continue;;
  1307. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1308. esac
  1309. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1310. done
  1311. # There might be people who depend on the old broken behavior: `$host'
  1312. # used to hold the argument of --host etc.
  1313. # FIXME: To remove some day.
  1314. build=$build_alias
  1315. host=$host_alias
  1316. target=$target_alias
  1317. # FIXME: To remove some day.
  1318. if test "x$host_alias" != x; then
  1319. if test "x$build_alias" = x; then
  1320. cross_compiling=maybe
  1321. elif test "x$build_alias" != "x$host_alias"; then
  1322. cross_compiling=yes
  1323. fi
  1324. fi
  1325. ac_tool_prefix=
  1326. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1327. test "$silent" = yes && exec 6>/dev/null
  1328. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1329. ac_ls_di=`ls -di .` &&
  1330. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1331. as_fn_error $? "working directory cannot be determined"
  1332. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1333. as_fn_error $? "pwd does not report name of working directory"
  1334. # Find the source files, if location was not specified.
  1335. if test -z "$srcdir"; then
  1336. ac_srcdir_defaulted=yes
  1337. # Try the directory containing this script, then the parent directory.
  1338. ac_confdir=`$as_dirname -- "$as_myself" ||
  1339. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1340. X"$as_myself" : 'X\(//\)[^/]' \| \
  1341. X"$as_myself" : 'X\(//\)$' \| \
  1342. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1343. $as_echo X"$as_myself" |
  1344. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1345. s//\1/
  1346. q
  1347. }
  1348. /^X\(\/\/\)[^/].*/{
  1349. s//\1/
  1350. q
  1351. }
  1352. /^X\(\/\/\)$/{
  1353. s//\1/
  1354. q
  1355. }
  1356. /^X\(\/\).*/{
  1357. s//\1/
  1358. q
  1359. }
  1360. s/.*/./; q'`
  1361. srcdir=$ac_confdir
  1362. if test ! -r "$srcdir/$ac_unique_file"; then
  1363. srcdir=..
  1364. fi
  1365. else
  1366. ac_srcdir_defaulted=no
  1367. fi
  1368. if test ! -r "$srcdir/$ac_unique_file"; then
  1369. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1370. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1371. fi
  1372. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1373. ac_abs_confdir=`(
  1374. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1375. pwd)`
  1376. # When building in place, set srcdir=.
  1377. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1378. srcdir=.
  1379. fi
  1380. # Remove unnecessary trailing slashes from srcdir.
  1381. # Double slashes in file names in object file debugging info
  1382. # mess up M-x gdb in Emacs.
  1383. case $srcdir in
  1384. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1385. esac
  1386. for ac_var in $ac_precious_vars; do
  1387. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1388. eval ac_env_${ac_var}_value=\$${ac_var}
  1389. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1390. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1391. done
  1392. #
  1393. # Report the --help message.
  1394. #
  1395. if test "$ac_init_help" = "long"; then
  1396. # Omit some internal or obsolete options to make the list less imposing.
  1397. # This message is too long to be a string in the A/UX 3.1 sh.
  1398. cat <<_ACEOF
  1399. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1400. Usage: $0 [OPTION]... [VAR=VALUE]...
  1401. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1402. VAR=VALUE. See below for descriptions of some of the useful variables.
  1403. Defaults for the options are specified in brackets.
  1404. Configuration:
  1405. -h, --help display this help and exit
  1406. --help=short display options specific to this package
  1407. --help=recursive display the short help of all the included packages
  1408. -V, --version display version information and exit
  1409. -q, --quiet, --silent do not print \`checking ...' messages
  1410. --cache-file=FILE cache test results in FILE [disabled]
  1411. -C, --config-cache alias for \`--cache-file=config.cache'
  1412. -n, --no-create do not create output files
  1413. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1414. Installation directories:
  1415. --prefix=PREFIX install architecture-independent files in PREFIX
  1416. [$ac_default_prefix]
  1417. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1418. [PREFIX]
  1419. By default, \`make install' will install all the files in
  1420. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1421. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1422. for instance \`--prefix=\$HOME'.
  1423. For better control, use the options below.
  1424. Fine tuning of the installation directories:
  1425. --bindir=DIR user executables [EPREFIX/bin]
  1426. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1427. --libexecdir=DIR program executables [EPREFIX/libexec]
  1428. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1429. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1430. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1431. --libdir=DIR object code libraries [EPREFIX/lib]
  1432. --includedir=DIR C header files [PREFIX/include]
  1433. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1434. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1435. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1436. --infodir=DIR info documentation [DATAROOTDIR/info]
  1437. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1438. --mandir=DIR man documentation [DATAROOTDIR/man]
  1439. --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++]
  1440. --htmldir=DIR html documentation [DOCDIR]
  1441. --dvidir=DIR dvi documentation [DOCDIR]
  1442. --pdfdir=DIR pdf documentation [DOCDIR]
  1443. --psdir=DIR ps documentation [DOCDIR]
  1444. _ACEOF
  1445. cat <<\_ACEOF
  1446. Program names:
  1447. --program-prefix=PREFIX prepend PREFIX to installed program names
  1448. --program-suffix=SUFFIX append SUFFIX to installed program names
  1449. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1450. System types:
  1451. --build=BUILD configure for building on BUILD [guessed]
  1452. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1453. --target=TARGET configure for building compilers for TARGET [HOST]
  1454. _ACEOF
  1455. fi
  1456. if test -n "$ac_init_help"; then
  1457. case $ac_init_help in
  1458. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1459. esac
  1460. cat <<\_ACEOF
  1461. Optional Features:
  1462. --disable-option-checking ignore unrecognized --enable/--with options
  1463. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1464. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1465. --enable-multilib build many library versions (default)
  1466. --enable-silent-rules less verbose build output (undo: "make V=1")
  1467. --disable-silent-rules verbose build output (undo: "make V=0")
  1468. --disable-largefile omit support for large files
  1469. --enable-maintainer-mode
  1470. enable make rules and dependencies not useful (and
  1471. sometimes confusing) to the casual installer
  1472. --enable-shared[=PKGS] build shared libraries [default=yes]
  1473. --enable-static[=PKGS] build static libraries [default=yes]
  1474. --enable-fast-install[=PKGS]
  1475. optimize for fast installation [default=yes]
  1476. --disable-libtool-lock avoid locking (might break parallel builds)
  1477. --disable-hosted-libstdcxx
  1478. only build freestanding C++ runtime support
  1479. --disable-libstdcxx-verbose
  1480. disable termination messages to standard error
  1481. --enable-libstdcxx-pch build pre-compiled libstdc++ headers
  1482. [default=$is_hosted]
  1483. --enable-cstdio[=PACKAGE]
  1484. use target-specific I/O package [default=stdio]
  1485. --enable-clocale[=MODEL]
  1486. use MODEL for target locale package [default=auto]
  1487. --enable-nls use Native Language Support (default)
  1488. --enable-libstdcxx-allocator[=KIND]
  1489. use KIND for target std::allocator base
  1490. [default=auto]
  1491. --enable-cheaders-obsolete
  1492. allow use of obsolete "C" headers for g++
  1493. [default=no]
  1494. --enable-cheaders[=KIND]
  1495. construct "C" headers for g++ [default=$c_model]
  1496. --enable-long-long enable template specializations for 'long long'
  1497. [default=yes]
  1498. --enable-wchar_t enable template specializations for 'wchar_t'
  1499. [default=yes]
  1500. --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes]
  1501. --enable-concept-checks use Boost-derived template checks [default=no]
  1502. --enable-libstdcxx-debug-flags=FLAGS
  1503. pass compiler FLAGS when building debug library
  1504. [default="-g3 -O0 -D_GLIBCXX_ASSERTIONS"]
  1505. --enable-libstdcxx-debug
  1506. build extra debug library [default=no]
  1507. --enable-cxx-flags=FLAGS
  1508. pass compiler FLAGS when building library [default=]
  1509. --enable-fully-dynamic-string
  1510. do not put empty strings in per-process static
  1511. memory [default=no]
  1512. --enable-extern-template
  1513. enable extern template [default=yes]
  1514. --enable-werror turns on -Werror [default=no]
  1515. --enable-vtable-verify enable vtable verify [default=no]
  1516. --enable-libstdcxx-time[=KIND]
  1517. use KIND for check type [default=auto]
  1518. --enable-tls Use thread-local storage [default=yes]
  1519. --disable-rpath do not hardcode runtime library paths
  1520. --enable-linux-futex use the Linux futex system call [default=default]
  1521. --enable-symvers[=STYLE]
  1522. enables symbol versioning of the shared library
  1523. [default=yes]
  1524. --enable-libstdcxx-visibility
  1525. enables visibility safe usage [default=yes]
  1526. --enable-libstdcxx-dual-abi
  1527. support two versions of std::string [default=yes]
  1528. --enable-libstdcxx-threads
  1529. enable C++11 threads support [default=auto]
  1530. --enable-libstdcxx-filesystem-ts
  1531. turns on ISO/IEC TS 18822 support [default=auto]
  1532. --enable-libstdcxx-backtrace
  1533. turns on libbacktrace support [default=auto]
  1534. --enable-cet enable Intel CET in target libraries [default=auto]
  1535. --enable-version-specific-runtime-libs
  1536. Specify that runtime libraries should be installed
  1537. in a compiler-specific directory
  1538. Optional Packages:
  1539. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1540. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1541. --with-target-subdir=SUBDIR
  1542. configuring in a subdirectory
  1543. --with-cross-host=HOST configuring with a cross compiler
  1544. --with-newlib assume newlib as a system C library
  1545. --with-pic try to use only PIC/non-PIC objects [default=use
  1546. both]
  1547. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1548. --with-libstdcxx-lock-policy={atomic,mutex,auto}
  1549. synchronization policy for shared_ptr reference
  1550. counting [default=auto]
  1551. --with-python-dir the location to install Python modules. This path is
  1552. relative starting from the prefix.
  1553. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1554. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1555. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1556. --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
  1557. --with-system-libunwind use installed libunwind
  1558. --with-default-libstdcxx-abi
  1559. set the std::string ABI to use by default
  1560. --with-gxx-include-dir=DIR
  1561. installation directory for include files
  1562. --with-toolexeclibdir=DIR
  1563. install libraries built with a cross compiler within
  1564. DIR
  1565. --with-gcc-major-version-only
  1566. use only GCC major number in filesystem paths
  1567. Some influential environment variables:
  1568. CC C compiler command
  1569. CFLAGS C compiler flags
  1570. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1571. nonstandard directory <lib dir>
  1572. LIBS libraries to pass to the linker, e.g. -l<library>
  1573. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1574. you have headers in a nonstandard directory <include dir>
  1575. CXX C++ compiler command
  1576. CXXFLAGS C++ compiler flags
  1577. CPP C preprocessor
  1578. CXXCPP C++ preprocessor
  1579. CXXFILT Location of GNU c++filt. Defaults to the first GNU version of
  1580. `c++filt', `gc++filt' on PATH.
  1581. Use these variables to override the choices made by `configure' or to help
  1582. it to find libraries and programs with nonstandard names/locations.
  1583. Report bugs to the package provider.
  1584. _ACEOF
  1585. ac_status=$?
  1586. fi
  1587. if test "$ac_init_help" = "recursive"; then
  1588. # If there are subdirs, report their specific --help.
  1589. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1590. test -d "$ac_dir" ||
  1591. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1592. continue
  1593. ac_builddir=.
  1594. case "$ac_dir" in
  1595. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1596. *)
  1597. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1598. # A ".." for each directory in $ac_dir_suffix.
  1599. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1600. case $ac_top_builddir_sub in
  1601. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1602. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1603. esac ;;
  1604. esac
  1605. ac_abs_top_builddir=$ac_pwd
  1606. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1607. # for backward compatibility:
  1608. ac_top_builddir=$ac_top_build_prefix
  1609. case $srcdir in
  1610. .) # We are building in place.
  1611. ac_srcdir=.
  1612. ac_top_srcdir=$ac_top_builddir_sub
  1613. ac_abs_top_srcdir=$ac_pwd ;;
  1614. [\\/]* | ?:[\\/]* ) # Absolute name.
  1615. ac_srcdir=$srcdir$ac_dir_suffix;
  1616. ac_top_srcdir=$srcdir
  1617. ac_abs_top_srcdir=$srcdir ;;
  1618. *) # Relative name.
  1619. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1620. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1621. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1622. esac
  1623. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1624. cd "$ac_dir" || { ac_status=$?; continue; }
  1625. # Check for guested configure.
  1626. if test -f "$ac_srcdir/configure.gnu"; then
  1627. echo &&
  1628. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1629. elif test -f "$ac_srcdir/configure"; then
  1630. echo &&
  1631. $SHELL "$ac_srcdir/configure" --help=recursive
  1632. else
  1633. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1634. fi || ac_status=$?
  1635. cd "$ac_pwd" || { ac_status=$?; break; }
  1636. done
  1637. fi
  1638. test -n "$ac_init_help" && exit $ac_status
  1639. if $ac_init_version; then
  1640. cat <<\_ACEOF
  1641. package-unused configure version-unused
  1642. generated by GNU Autoconf 2.69
  1643. Copyright (C) 2012 Free Software Foundation, Inc.
  1644. This configure script is free software; the Free Software Foundation
  1645. gives unlimited permission to copy, distribute and modify it.
  1646. _ACEOF
  1647. exit
  1648. fi
  1649. ## ------------------------ ##
  1650. ## Autoconf initialization. ##
  1651. ## ------------------------ ##
  1652. # ac_fn_c_try_compile LINENO
  1653. # --------------------------
  1654. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1655. ac_fn_c_try_compile ()
  1656. {
  1657. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1658. rm -f conftest.$ac_objext
  1659. if { { ac_try="$ac_compile"
  1660. case "(($ac_try" in
  1661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1662. *) ac_try_echo=$ac_try;;
  1663. esac
  1664. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1665. $as_echo "$ac_try_echo"; } >&5
  1666. (eval "$ac_compile") 2>conftest.err
  1667. ac_status=$?
  1668. if test -s conftest.err; then
  1669. grep -v '^ *+' conftest.err >conftest.er1
  1670. cat conftest.er1 >&5
  1671. mv -f conftest.er1 conftest.err
  1672. fi
  1673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1674. test $ac_status = 0; } && {
  1675. test -z "$ac_c_werror_flag" ||
  1676. test ! -s conftest.err
  1677. } && test -s conftest.$ac_objext; then :
  1678. ac_retval=0
  1679. else
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=1
  1683. fi
  1684. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1685. as_fn_set_status $ac_retval
  1686. } # ac_fn_c_try_compile
  1687. # ac_fn_cxx_try_compile LINENO
  1688. # ----------------------------
  1689. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1690. ac_fn_cxx_try_compile ()
  1691. {
  1692. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1693. rm -f conftest.$ac_objext
  1694. if { { ac_try="$ac_compile"
  1695. case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1700. $as_echo "$ac_try_echo"; } >&5
  1701. (eval "$ac_compile") 2>conftest.err
  1702. ac_status=$?
  1703. if test -s conftest.err; then
  1704. grep -v '^ *+' conftest.err >conftest.er1
  1705. cat conftest.er1 >&5
  1706. mv -f conftest.er1 conftest.err
  1707. fi
  1708. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1709. test $ac_status = 0; } && {
  1710. test -z "$ac_cxx_werror_flag" ||
  1711. test ! -s conftest.err
  1712. } && test -s conftest.$ac_objext; then :
  1713. ac_retval=0
  1714. else
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=1
  1718. fi
  1719. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1720. as_fn_set_status $ac_retval
  1721. } # ac_fn_cxx_try_compile
  1722. # ac_fn_c_try_cpp LINENO
  1723. # ----------------------
  1724. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1725. ac_fn_c_try_cpp ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1729. case "(($ac_try" in
  1730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1731. *) ac_try_echo=$ac_try;;
  1732. esac
  1733. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1734. $as_echo "$ac_try_echo"; } >&5
  1735. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1736. ac_status=$?
  1737. if test -s conftest.err; then
  1738. grep -v '^ *+' conftest.err >conftest.er1
  1739. cat conftest.er1 >&5
  1740. mv -f conftest.er1 conftest.err
  1741. fi
  1742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1743. test $ac_status = 0; } > conftest.i && {
  1744. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1745. test ! -s conftest.err
  1746. }; then :
  1747. ac_retval=0
  1748. else
  1749. $as_echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_retval=1
  1752. fi
  1753. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1754. as_fn_set_status $ac_retval
  1755. } # ac_fn_c_try_cpp
  1756. # ac_fn_c_try_link LINENO
  1757. # -----------------------
  1758. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1759. ac_fn_c_try_link ()
  1760. {
  1761. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1762. rm -f conftest.$ac_objext conftest$ac_exeext
  1763. if { { ac_try="$ac_link"
  1764. case "(($ac_try" in
  1765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1766. *) ac_try_echo=$ac_try;;
  1767. esac
  1768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1769. $as_echo "$ac_try_echo"; } >&5
  1770. (eval "$ac_link") 2>conftest.err
  1771. ac_status=$?
  1772. if test -s conftest.err; then
  1773. grep -v '^ *+' conftest.err >conftest.er1
  1774. cat conftest.er1 >&5
  1775. mv -f conftest.er1 conftest.err
  1776. fi
  1777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1778. test $ac_status = 0; } && {
  1779. test -z "$ac_c_werror_flag" ||
  1780. test ! -s conftest.err
  1781. } && test -s conftest$ac_exeext && {
  1782. test "$cross_compiling" = yes ||
  1783. test -x conftest$ac_exeext
  1784. }; then :
  1785. ac_retval=0
  1786. else
  1787. $as_echo "$as_me: failed program was:" >&5
  1788. sed 's/^/| /' conftest.$ac_ext >&5
  1789. ac_retval=1
  1790. fi
  1791. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1792. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1793. # interfere with the next link command; also delete a directory that is
  1794. # left behind by Apple's compiler. We do this before executing the actions.
  1795. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1796. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1797. as_fn_set_status $ac_retval
  1798. } # ac_fn_c_try_link
  1799. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1800. # -------------------------------------------------------
  1801. # Tests whether HEADER exists and can be compiled using the include files in
  1802. # INCLUDES, setting the cache variable VAR accordingly.
  1803. ac_fn_c_check_header_compile ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1807. $as_echo_n "checking for $2... " >&6; }
  1808. if eval \${$3+:} false; then :
  1809. $as_echo_n "(cached) " >&6
  1810. else
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $4
  1814. #include <$2>
  1815. _ACEOF
  1816. if ac_fn_c_try_compile "$LINENO"; then :
  1817. eval "$3=yes"
  1818. else
  1819. eval "$3=no"
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_header_compile
  1828. # ac_fn_c_try_run LINENO
  1829. # ----------------------
  1830. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1831. # that executables *can* be run.
  1832. ac_fn_c_try_run ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. if { { ac_try="$ac_link"
  1836. case "(($ac_try" in
  1837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1838. *) ac_try_echo=$ac_try;;
  1839. esac
  1840. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1841. $as_echo "$ac_try_echo"; } >&5
  1842. (eval "$ac_link") 2>&5
  1843. ac_status=$?
  1844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1845. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1846. { { case "(($ac_try" in
  1847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1848. *) ac_try_echo=$ac_try;;
  1849. esac
  1850. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1851. $as_echo "$ac_try_echo"; } >&5
  1852. (eval "$ac_try") 2>&5
  1853. ac_status=$?
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; }; }; then :
  1856. ac_retval=0
  1857. else
  1858. $as_echo "$as_me: program exited with status $ac_status" >&5
  1859. $as_echo "$as_me: failed program was:" >&5
  1860. sed 's/^/| /' conftest.$ac_ext >&5
  1861. ac_retval=$ac_status
  1862. fi
  1863. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1864. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1865. as_fn_set_status $ac_retval
  1866. } # ac_fn_c_try_run
  1867. # ac_fn_c_check_func LINENO FUNC VAR
  1868. # ----------------------------------
  1869. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1870. ac_fn_c_check_func ()
  1871. {
  1872. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1874. $as_echo_n "checking for $2... " >&6; }
  1875. if eval \${$3+:} false; then :
  1876. $as_echo_n "(cached) " >&6
  1877. else
  1878. if test x$gcc_no_link = xyes; then
  1879. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1880. fi
  1881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1882. /* end confdefs.h. */
  1883. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1884. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1885. #define $2 innocuous_$2
  1886. /* System header to define __stub macros and hopefully few prototypes,
  1887. which can conflict with char $2 (); below.
  1888. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1889. <limits.h> exists even on freestanding compilers. */
  1890. #ifdef __STDC__
  1891. # include <limits.h>
  1892. #else
  1893. # include <assert.h>
  1894. #endif
  1895. #undef $2
  1896. /* Override any GCC internal prototype to avoid an error.
  1897. Use char because int might match the return type of a GCC
  1898. builtin and then its argument prototype would still apply. */
  1899. #ifdef __cplusplus
  1900. extern "C"
  1901. #endif
  1902. char $2 ();
  1903. /* The GNU C library defines this for functions which it implements
  1904. to always fail with ENOSYS. Some functions are actually named
  1905. something starting with __ and the normal name is an alias. */
  1906. #if defined __stub_$2 || defined __stub___$2
  1907. choke me
  1908. #endif
  1909. int
  1910. main ()
  1911. {
  1912. return $2 ();
  1913. ;
  1914. return 0;
  1915. }
  1916. _ACEOF
  1917. if ac_fn_c_try_link "$LINENO"; then :
  1918. eval "$3=yes"
  1919. else
  1920. eval "$3=no"
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext \
  1923. conftest$ac_exeext conftest.$ac_ext
  1924. fi
  1925. eval ac_res=\$$3
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1927. $as_echo "$ac_res" >&6; }
  1928. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1929. } # ac_fn_c_check_func
  1930. # ac_fn_cxx_try_cpp LINENO
  1931. # ------------------------
  1932. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1933. ac_fn_cxx_try_cpp ()
  1934. {
  1935. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1936. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1937. case "(($ac_try" in
  1938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1939. *) ac_try_echo=$ac_try;;
  1940. esac
  1941. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1942. $as_echo "$ac_try_echo"; } >&5
  1943. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1944. ac_status=$?
  1945. if test -s conftest.err; then
  1946. grep -v '^ *+' conftest.err >conftest.er1
  1947. cat conftest.er1 >&5
  1948. mv -f conftest.er1 conftest.err
  1949. fi
  1950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1951. test $ac_status = 0; } > conftest.i && {
  1952. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1953. test ! -s conftest.err
  1954. }; then :
  1955. ac_retval=0
  1956. else
  1957. $as_echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. ac_retval=1
  1960. fi
  1961. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1962. as_fn_set_status $ac_retval
  1963. } # ac_fn_cxx_try_cpp
  1964. # ac_fn_cxx_try_link LINENO
  1965. # -------------------------
  1966. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1967. ac_fn_cxx_try_link ()
  1968. {
  1969. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1970. rm -f conftest.$ac_objext conftest$ac_exeext
  1971. if { { ac_try="$ac_link"
  1972. case "(($ac_try" in
  1973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1974. *) ac_try_echo=$ac_try;;
  1975. esac
  1976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1977. $as_echo "$ac_try_echo"; } >&5
  1978. (eval "$ac_link") 2>conftest.err
  1979. ac_status=$?
  1980. if test -s conftest.err; then
  1981. grep -v '^ *+' conftest.err >conftest.er1
  1982. cat conftest.er1 >&5
  1983. mv -f conftest.er1 conftest.err
  1984. fi
  1985. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1986. test $ac_status = 0; } && {
  1987. test -z "$ac_cxx_werror_flag" ||
  1988. test ! -s conftest.err
  1989. } && test -s conftest$ac_exeext && {
  1990. test "$cross_compiling" = yes ||
  1991. test -x conftest$ac_exeext
  1992. }; then :
  1993. ac_retval=0
  1994. else
  1995. $as_echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. ac_retval=1
  1998. fi
  1999. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2000. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2001. # interfere with the next link command; also delete a directory that is
  2002. # left behind by Apple's compiler. We do this before executing the actions.
  2003. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2004. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2005. as_fn_set_status $ac_retval
  2006. } # ac_fn_cxx_try_link
  2007. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2008. # -------------------------------------------------------
  2009. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2010. # the include files in INCLUDES and setting the cache variable VAR
  2011. # accordingly.
  2012. ac_fn_c_check_header_mongrel ()
  2013. {
  2014. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2015. if eval \${$3+:} false; then :
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2017. $as_echo_n "checking for $2... " >&6; }
  2018. if eval \${$3+:} false; then :
  2019. $as_echo_n "(cached) " >&6
  2020. fi
  2021. eval ac_res=\$$3
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2023. $as_echo "$ac_res" >&6; }
  2024. else
  2025. # Is the header compilable?
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2027. $as_echo_n "checking $2 usability... " >&6; }
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. #include <$2>
  2032. _ACEOF
  2033. if ac_fn_c_try_compile "$LINENO"; then :
  2034. ac_header_compiler=yes
  2035. else
  2036. ac_header_compiler=no
  2037. fi
  2038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2040. $as_echo "$ac_header_compiler" >&6; }
  2041. # Is the header present?
  2042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2043. $as_echo_n "checking $2 presence... " >&6; }
  2044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2045. /* end confdefs.h. */
  2046. #include <$2>
  2047. _ACEOF
  2048. if ac_fn_c_try_cpp "$LINENO"; then :
  2049. ac_header_preproc=yes
  2050. else
  2051. ac_header_preproc=no
  2052. fi
  2053. rm -f conftest.err conftest.i conftest.$ac_ext
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2055. $as_echo "$ac_header_preproc" >&6; }
  2056. # So? What about this header?
  2057. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2058. yes:no: )
  2059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2060. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2061. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2062. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2063. ;;
  2064. no:yes:* )
  2065. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2066. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2067. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2068. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2070. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2072. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2074. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2075. ;;
  2076. esac
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2078. $as_echo_n "checking for $2... " >&6; }
  2079. if eval \${$3+:} false; then :
  2080. $as_echo_n "(cached) " >&6
  2081. else
  2082. eval "$3=\$ac_header_compiler"
  2083. fi
  2084. eval ac_res=\$$3
  2085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2086. $as_echo "$ac_res" >&6; }
  2087. fi
  2088. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2089. } # ac_fn_c_check_header_mongrel
  2090. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2091. # ---------------------------------------------------------
  2092. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2093. # the include files in INCLUDES and setting the cache variable VAR
  2094. # accordingly.
  2095. ac_fn_cxx_check_header_mongrel ()
  2096. {
  2097. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2098. if eval \${$3+:} false; then :
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2100. $as_echo_n "checking for $2... " >&6; }
  2101. if eval \${$3+:} false; then :
  2102. $as_echo_n "(cached) " >&6
  2103. fi
  2104. eval ac_res=\$$3
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2106. $as_echo "$ac_res" >&6; }
  2107. else
  2108. # Is the header compilable?
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2110. $as_echo_n "checking $2 usability... " >&6; }
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $4
  2114. #include <$2>
  2115. _ACEOF
  2116. if ac_fn_cxx_try_compile "$LINENO"; then :
  2117. ac_header_compiler=yes
  2118. else
  2119. ac_header_compiler=no
  2120. fi
  2121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2123. $as_echo "$ac_header_compiler" >&6; }
  2124. # Is the header present?
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2126. $as_echo_n "checking $2 presence... " >&6; }
  2127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2128. /* end confdefs.h. */
  2129. #include <$2>
  2130. _ACEOF
  2131. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2132. ac_header_preproc=yes
  2133. else
  2134. ac_header_preproc=no
  2135. fi
  2136. rm -f conftest.err conftest.i conftest.$ac_ext
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2138. $as_echo "$ac_header_preproc" >&6; }
  2139. # So? What about this header?
  2140. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2141. yes:no: )
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2143. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2145. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2146. ;;
  2147. no:yes:* )
  2148. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2149. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2151. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2153. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2155. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2157. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2158. ;;
  2159. esac
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2161. $as_echo_n "checking for $2... " >&6; }
  2162. if eval \${$3+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. eval "$3=\$ac_header_compiler"
  2166. fi
  2167. eval ac_res=\$$3
  2168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2169. $as_echo "$ac_res" >&6; }
  2170. fi
  2171. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172. } # ac_fn_cxx_check_header_mongrel
  2173. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2174. # --------------------------------------------
  2175. # Tries to find the compile-time value of EXPR in a program that includes
  2176. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2177. # computed
  2178. ac_fn_c_compute_int ()
  2179. {
  2180. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2181. if test "$cross_compiling" = yes; then
  2182. # Depending upon the size, compute the lo and hi bounds.
  2183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2184. /* end confdefs.h. */
  2185. $4
  2186. int
  2187. main ()
  2188. {
  2189. static int test_array [1 - 2 * !(($2) >= 0)];
  2190. test_array [0] = 0;
  2191. return test_array [0];
  2192. ;
  2193. return 0;
  2194. }
  2195. _ACEOF
  2196. if ac_fn_c_try_compile "$LINENO"; then :
  2197. ac_lo=0 ac_mid=0
  2198. while :; do
  2199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2200. /* end confdefs.h. */
  2201. $4
  2202. int
  2203. main ()
  2204. {
  2205. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2206. test_array [0] = 0;
  2207. return test_array [0];
  2208. ;
  2209. return 0;
  2210. }
  2211. _ACEOF
  2212. if ac_fn_c_try_compile "$LINENO"; then :
  2213. ac_hi=$ac_mid; break
  2214. else
  2215. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2216. if test $ac_lo -le $ac_mid; then
  2217. ac_lo= ac_hi=
  2218. break
  2219. fi
  2220. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2221. fi
  2222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2223. done
  2224. else
  2225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2226. /* end confdefs.h. */
  2227. $4
  2228. int
  2229. main ()
  2230. {
  2231. static int test_array [1 - 2 * !(($2) < 0)];
  2232. test_array [0] = 0;
  2233. return test_array [0];
  2234. ;
  2235. return 0;
  2236. }
  2237. _ACEOF
  2238. if ac_fn_c_try_compile "$LINENO"; then :
  2239. ac_hi=-1 ac_mid=-1
  2240. while :; do
  2241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2242. /* end confdefs.h. */
  2243. $4
  2244. int
  2245. main ()
  2246. {
  2247. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2248. test_array [0] = 0;
  2249. return test_array [0];
  2250. ;
  2251. return 0;
  2252. }
  2253. _ACEOF
  2254. if ac_fn_c_try_compile "$LINENO"; then :
  2255. ac_lo=$ac_mid; break
  2256. else
  2257. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2258. if test $ac_mid -le $ac_hi; then
  2259. ac_lo= ac_hi=
  2260. break
  2261. fi
  2262. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2265. done
  2266. else
  2267. ac_lo= ac_hi=
  2268. fi
  2269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2270. fi
  2271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2272. # Binary search between lo and hi bounds.
  2273. while test "x$ac_lo" != "x$ac_hi"; do
  2274. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2276. /* end confdefs.h. */
  2277. $4
  2278. int
  2279. main ()
  2280. {
  2281. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2282. test_array [0] = 0;
  2283. return test_array [0];
  2284. ;
  2285. return 0;
  2286. }
  2287. _ACEOF
  2288. if ac_fn_c_try_compile "$LINENO"; then :
  2289. ac_hi=$ac_mid
  2290. else
  2291. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2292. fi
  2293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2294. done
  2295. case $ac_lo in #((
  2296. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2297. '') ac_retval=1 ;;
  2298. esac
  2299. else
  2300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2301. /* end confdefs.h. */
  2302. $4
  2303. static long int longval () { return $2; }
  2304. static unsigned long int ulongval () { return $2; }
  2305. #include <stdio.h>
  2306. #include <stdlib.h>
  2307. int
  2308. main ()
  2309. {
  2310. FILE *f = fopen ("conftest.val", "w");
  2311. if (! f)
  2312. return 1;
  2313. if (($2) < 0)
  2314. {
  2315. long int i = longval ();
  2316. if (i != ($2))
  2317. return 1;
  2318. fprintf (f, "%ld", i);
  2319. }
  2320. else
  2321. {
  2322. unsigned long int i = ulongval ();
  2323. if (i != ($2))
  2324. return 1;
  2325. fprintf (f, "%lu", i);
  2326. }
  2327. /* Do not output a trailing newline, as this causes \r\n confusion
  2328. on some platforms. */
  2329. return ferror (f) || fclose (f) != 0;
  2330. ;
  2331. return 0;
  2332. }
  2333. _ACEOF
  2334. if ac_fn_c_try_run "$LINENO"; then :
  2335. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2336. else
  2337. ac_retval=1
  2338. fi
  2339. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2340. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2341. rm -f conftest.val
  2342. fi
  2343. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2344. as_fn_set_status $ac_retval
  2345. } # ac_fn_c_compute_int
  2346. # ac_fn_cxx_check_func LINENO FUNC VAR
  2347. # ------------------------------------
  2348. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2349. ac_fn_cxx_check_func ()
  2350. {
  2351. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2353. $as_echo_n "checking for $2... " >&6; }
  2354. if eval \${$3+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. if test x$gcc_no_link = xyes; then
  2358. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  2359. fi
  2360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2361. /* end confdefs.h. */
  2362. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2363. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2364. #define $2 innocuous_$2
  2365. /* System header to define __stub macros and hopefully few prototypes,
  2366. which can conflict with char $2 (); below.
  2367. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2368. <limits.h> exists even on freestanding compilers. */
  2369. #ifdef __STDC__
  2370. # include <limits.h>
  2371. #else
  2372. # include <assert.h>
  2373. #endif
  2374. #undef $2
  2375. /* Override any GCC internal prototype to avoid an error.
  2376. Use char because int might match the return type of a GCC
  2377. builtin and then its argument prototype would still apply. */
  2378. #ifdef __cplusplus
  2379. extern "C"
  2380. #endif
  2381. char $2 ();
  2382. /* The GNU C library defines this for functions which it implements
  2383. to always fail with ENOSYS. Some functions are actually named
  2384. something starting with __ and the normal name is an alias. */
  2385. #if defined __stub_$2 || defined __stub___$2
  2386. choke me
  2387. #endif
  2388. int
  2389. main ()
  2390. {
  2391. return $2 ();
  2392. ;
  2393. return 0;
  2394. }
  2395. _ACEOF
  2396. if ac_fn_cxx_try_link "$LINENO"; then :
  2397. eval "$3=yes"
  2398. else
  2399. eval "$3=no"
  2400. fi
  2401. rm -f core conftest.err conftest.$ac_objext \
  2402. conftest$ac_exeext conftest.$ac_ext
  2403. fi
  2404. eval ac_res=\$$3
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2406. $as_echo "$ac_res" >&6; }
  2407. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2408. } # ac_fn_cxx_check_func
  2409. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2410. # -------------------------------------------
  2411. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2412. # variable VAR accordingly.
  2413. ac_fn_c_check_type ()
  2414. {
  2415. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2417. $as_echo_n "checking for $2... " >&6; }
  2418. if eval \${$3+:} false; then :
  2419. $as_echo_n "(cached) " >&6
  2420. else
  2421. eval "$3=no"
  2422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2423. /* end confdefs.h. */
  2424. $4
  2425. int
  2426. main ()
  2427. {
  2428. if (sizeof ($2))
  2429. return 0;
  2430. ;
  2431. return 0;
  2432. }
  2433. _ACEOF
  2434. if ac_fn_c_try_compile "$LINENO"; then :
  2435. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2436. /* end confdefs.h. */
  2437. $4
  2438. int
  2439. main ()
  2440. {
  2441. if (sizeof (($2)))
  2442. return 0;
  2443. ;
  2444. return 0;
  2445. }
  2446. _ACEOF
  2447. if ac_fn_c_try_compile "$LINENO"; then :
  2448. else
  2449. eval "$3=yes"
  2450. fi
  2451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2452. fi
  2453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2454. fi
  2455. eval ac_res=\$$3
  2456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2457. $as_echo "$ac_res" >&6; }
  2458. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2459. } # ac_fn_c_check_type
  2460. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  2461. # ---------------------------------------------
  2462. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2463. # variable VAR accordingly.
  2464. ac_fn_cxx_check_type ()
  2465. {
  2466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2468. $as_echo_n "checking for $2... " >&6; }
  2469. if eval \${$3+:} false; then :
  2470. $as_echo_n "(cached) " >&6
  2471. else
  2472. eval "$3=no"
  2473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2474. /* end confdefs.h. */
  2475. $4
  2476. int
  2477. main ()
  2478. {
  2479. if (sizeof ($2))
  2480. return 0;
  2481. ;
  2482. return 0;
  2483. }
  2484. _ACEOF
  2485. if ac_fn_cxx_try_compile "$LINENO"; then :
  2486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2487. /* end confdefs.h. */
  2488. $4
  2489. int
  2490. main ()
  2491. {
  2492. if (sizeof (($2)))
  2493. return 0;
  2494. ;
  2495. return 0;
  2496. }
  2497. _ACEOF
  2498. if ac_fn_cxx_try_compile "$LINENO"; then :
  2499. else
  2500. eval "$3=yes"
  2501. fi
  2502. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2503. fi
  2504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2505. fi
  2506. eval ac_res=\$$3
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2508. $as_echo "$ac_res" >&6; }
  2509. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2510. } # ac_fn_cxx_check_type
  2511. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2512. # ---------------------------------------------
  2513. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2514. # accordingly.
  2515. ac_fn_c_check_decl ()
  2516. {
  2517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2518. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2519. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2521. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2522. if eval \${$3+:} false; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2526. /* end confdefs.h. */
  2527. $4
  2528. int
  2529. main ()
  2530. {
  2531. #ifndef $as_decl_name
  2532. #ifdef __cplusplus
  2533. (void) $as_decl_use;
  2534. #else
  2535. (void) $as_decl_name;
  2536. #endif
  2537. #endif
  2538. ;
  2539. return 0;
  2540. }
  2541. _ACEOF
  2542. if ac_fn_c_try_compile "$LINENO"; then :
  2543. eval "$3=yes"
  2544. else
  2545. eval "$3=no"
  2546. fi
  2547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2548. fi
  2549. eval ac_res=\$$3
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2551. $as_echo "$ac_res" >&6; }
  2552. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2553. } # ac_fn_c_check_decl
  2554. cat >config.log <<_ACEOF
  2555. This file contains any messages produced by compilers while
  2556. running configure, to aid debugging if configure makes a mistake.
  2557. It was created by package-unused $as_me version-unused, which was
  2558. generated by GNU Autoconf 2.69. Invocation command line was
  2559. $ $0 $@
  2560. _ACEOF
  2561. exec 5>>config.log
  2562. {
  2563. cat <<_ASUNAME
  2564. ## --------- ##
  2565. ## Platform. ##
  2566. ## --------- ##
  2567. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2568. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2569. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2570. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2571. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2572. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2573. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2574. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2575. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2576. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2577. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2578. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2579. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2580. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2581. _ASUNAME
  2582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2583. for as_dir in $PATH
  2584. do
  2585. IFS=$as_save_IFS
  2586. test -z "$as_dir" && as_dir=.
  2587. $as_echo "PATH: $as_dir"
  2588. done
  2589. IFS=$as_save_IFS
  2590. } >&5
  2591. cat >&5 <<_ACEOF
  2592. ## ----------- ##
  2593. ## Core tests. ##
  2594. ## ----------- ##
  2595. _ACEOF
  2596. # Keep a trace of the command line.
  2597. # Strip out --no-create and --no-recursion so they do not pile up.
  2598. # Strip out --silent because we don't want to record it for future runs.
  2599. # Also quote any args containing shell meta-characters.
  2600. # Make two passes to allow for proper duplicate-argument suppression.
  2601. ac_configure_args=
  2602. ac_configure_args0=
  2603. ac_configure_args1=
  2604. ac_must_keep_next=false
  2605. for ac_pass in 1 2
  2606. do
  2607. for ac_arg
  2608. do
  2609. case $ac_arg in
  2610. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2611. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2612. | -silent | --silent | --silen | --sile | --sil)
  2613. continue ;;
  2614. *\'*)
  2615. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2616. esac
  2617. case $ac_pass in
  2618. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2619. 2)
  2620. as_fn_append ac_configure_args1 " '$ac_arg'"
  2621. if test $ac_must_keep_next = true; then
  2622. ac_must_keep_next=false # Got value, back to normal.
  2623. else
  2624. case $ac_arg in
  2625. *=* | --config-cache | -C | -disable-* | --disable-* \
  2626. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2627. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2628. | -with-* | --with-* | -without-* | --without-* | --x)
  2629. case "$ac_configure_args0 " in
  2630. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2631. esac
  2632. ;;
  2633. -* ) ac_must_keep_next=true ;;
  2634. esac
  2635. fi
  2636. as_fn_append ac_configure_args " '$ac_arg'"
  2637. ;;
  2638. esac
  2639. done
  2640. done
  2641. { ac_configure_args0=; unset ac_configure_args0;}
  2642. { ac_configure_args1=; unset ac_configure_args1;}
  2643. # When interrupted or exit'd, cleanup temporary files, and complete
  2644. # config.log. We remove comments because anyway the quotes in there
  2645. # would cause problems or look ugly.
  2646. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2647. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2648. trap 'exit_status=$?
  2649. # Save into config.log some information that might help in debugging.
  2650. {
  2651. echo
  2652. $as_echo "## ---------------- ##
  2653. ## Cache variables. ##
  2654. ## ---------------- ##"
  2655. echo
  2656. # The following way of writing the cache mishandles newlines in values,
  2657. (
  2658. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2659. eval ac_val=\$$ac_var
  2660. case $ac_val in #(
  2661. *${as_nl}*)
  2662. case $ac_var in #(
  2663. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2664. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2665. esac
  2666. case $ac_var in #(
  2667. _ | IFS | as_nl) ;; #(
  2668. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2669. *) { eval $ac_var=; unset $ac_var;} ;;
  2670. esac ;;
  2671. esac
  2672. done
  2673. (set) 2>&1 |
  2674. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2675. *${as_nl}ac_space=\ *)
  2676. sed -n \
  2677. "s/'\''/'\''\\\\'\'''\''/g;
  2678. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2679. ;; #(
  2680. *)
  2681. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2682. ;;
  2683. esac |
  2684. sort
  2685. )
  2686. echo
  2687. $as_echo "## ----------------- ##
  2688. ## Output variables. ##
  2689. ## ----------------- ##"
  2690. echo
  2691. for ac_var in $ac_subst_vars
  2692. do
  2693. eval ac_val=\$$ac_var
  2694. case $ac_val in
  2695. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2696. esac
  2697. $as_echo "$ac_var='\''$ac_val'\''"
  2698. done | sort
  2699. echo
  2700. if test -n "$ac_subst_files"; then
  2701. $as_echo "## ------------------- ##
  2702. ## File substitutions. ##
  2703. ## ------------------- ##"
  2704. echo
  2705. for ac_var in $ac_subst_files
  2706. do
  2707. eval ac_val=\$$ac_var
  2708. case $ac_val in
  2709. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2710. esac
  2711. $as_echo "$ac_var='\''$ac_val'\''"
  2712. done | sort
  2713. echo
  2714. fi
  2715. if test -s confdefs.h; then
  2716. $as_echo "## ----------- ##
  2717. ## confdefs.h. ##
  2718. ## ----------- ##"
  2719. echo
  2720. cat confdefs.h
  2721. echo
  2722. fi
  2723. test "$ac_signal" != 0 &&
  2724. $as_echo "$as_me: caught signal $ac_signal"
  2725. $as_echo "$as_me: exit $exit_status"
  2726. } >&5
  2727. rm -f core *.core core.conftest.* &&
  2728. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2729. exit $exit_status
  2730. ' 0
  2731. for ac_signal in 1 2 13 15; do
  2732. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2733. done
  2734. ac_signal=0
  2735. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2736. rm -f -r conftest* confdefs.h
  2737. $as_echo "/* confdefs.h */" > confdefs.h
  2738. # Predefined preprocessor variables.
  2739. cat >>confdefs.h <<_ACEOF
  2740. #define PACKAGE_NAME "$PACKAGE_NAME"
  2741. _ACEOF
  2742. cat >>confdefs.h <<_ACEOF
  2743. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2744. _ACEOF
  2745. cat >>confdefs.h <<_ACEOF
  2746. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2747. _ACEOF
  2748. cat >>confdefs.h <<_ACEOF
  2749. #define PACKAGE_STRING "$PACKAGE_STRING"
  2750. _ACEOF
  2751. cat >>confdefs.h <<_ACEOF
  2752. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2753. _ACEOF
  2754. cat >>confdefs.h <<_ACEOF
  2755. #define PACKAGE_URL "$PACKAGE_URL"
  2756. _ACEOF
  2757. # Let the site file select an alternate cache file if it wants to.
  2758. # Prefer an explicitly selected file to automatically selected ones.
  2759. ac_site_file1=NONE
  2760. ac_site_file2=NONE
  2761. if test -n "$CONFIG_SITE"; then
  2762. # We do not want a PATH search for config.site.
  2763. case $CONFIG_SITE in #((
  2764. -*) ac_site_file1=./$CONFIG_SITE;;
  2765. */*) ac_site_file1=$CONFIG_SITE;;
  2766. *) ac_site_file1=./$CONFIG_SITE;;
  2767. esac
  2768. elif test "x$prefix" != xNONE; then
  2769. ac_site_file1=$prefix/share/config.site
  2770. ac_site_file2=$prefix/etc/config.site
  2771. else
  2772. ac_site_file1=$ac_default_prefix/share/config.site
  2773. ac_site_file2=$ac_default_prefix/etc/config.site
  2774. fi
  2775. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2776. do
  2777. test "x$ac_site_file" = xNONE && continue
  2778. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2780. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2781. sed 's/^/| /' "$ac_site_file" >&5
  2782. . "$ac_site_file" \
  2783. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2784. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2785. as_fn_error $? "failed to load site script $ac_site_file
  2786. See \`config.log' for more details" "$LINENO" 5; }
  2787. fi
  2788. done
  2789. if test -r "$cache_file"; then
  2790. # Some versions of bash will fail to source /dev/null (special files
  2791. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2792. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2794. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2795. case $cache_file in
  2796. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2797. *) . "./$cache_file";;
  2798. esac
  2799. fi
  2800. else
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2802. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2803. >$cache_file
  2804. fi
  2805. # Check that the precious variables saved in the cache have kept the same
  2806. # value.
  2807. ac_cache_corrupted=false
  2808. for ac_var in $ac_precious_vars; do
  2809. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2810. eval ac_new_set=\$ac_env_${ac_var}_set
  2811. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2812. eval ac_new_val=\$ac_env_${ac_var}_value
  2813. case $ac_old_set,$ac_new_set in
  2814. set,)
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2816. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2817. ac_cache_corrupted=: ;;
  2818. ,set)
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2820. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2821. ac_cache_corrupted=: ;;
  2822. ,);;
  2823. *)
  2824. if test "x$ac_old_val" != "x$ac_new_val"; then
  2825. # differences in whitespace do not lead to failure.
  2826. ac_old_val_w=`echo x $ac_old_val`
  2827. ac_new_val_w=`echo x $ac_new_val`
  2828. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2830. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2831. ac_cache_corrupted=:
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2834. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2835. eval $ac_var=\$ac_old_val
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2838. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2840. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2841. fi;;
  2842. esac
  2843. # Pass precious variables to config.status.
  2844. if test "$ac_new_set" = set; then
  2845. case $ac_new_val in
  2846. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2847. *) ac_arg=$ac_var=$ac_new_val ;;
  2848. esac
  2849. case " $ac_configure_args " in
  2850. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2851. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2852. esac
  2853. fi
  2854. done
  2855. if $ac_cache_corrupted; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2857. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2859. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2860. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2861. fi
  2862. ## -------------------- ##
  2863. ## Main body of script. ##
  2864. ## -------------------- ##
  2865. ac_ext=c
  2866. ac_cpp='$CPP $CPPFLAGS'
  2867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2870. ac_config_headers="$ac_config_headers config.h"
  2871. # This works around the fact that libtool configuration may change LD
  2872. # for this particular configuration, but some shells, instead of
  2873. # keeping the changes in LD private, export them just because LD is
  2874. # exported. Only used at the end of this file.
  2875. ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
  2876. # Find the rest of the source tree framework.
  2877. # Default to --enable-multilib
  2878. # Check whether --enable-multilib was given.
  2879. if test "${enable_multilib+set}" = set; then :
  2880. enableval=$enable_multilib; case "$enableval" in
  2881. yes) multilib=yes ;;
  2882. no) multilib=no ;;
  2883. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2884. esac
  2885. else
  2886. multilib=yes
  2887. fi
  2888. # We may get other options which we leave undocumented:
  2889. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2890. # See config-ml.in if you want the gory details.
  2891. if test "$srcdir" = "."; then
  2892. if test "$with_target_subdir" != "."; then
  2893. multi_basedir="$srcdir/$with_multisrctop../.."
  2894. else
  2895. multi_basedir="$srcdir/$with_multisrctop.."
  2896. fi
  2897. else
  2898. multi_basedir="$srcdir/.."
  2899. fi
  2900. # Even if the default multilib is not a cross compilation,
  2901. # it may be that some of the other multilibs are.
  2902. if test $cross_compiling = no && test $multilib = yes \
  2903. && test "x${with_multisubdir}" != x ; then
  2904. cross_compiling=maybe
  2905. fi
  2906. ac_config_commands="$ac_config_commands default-1"
  2907. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2908. #
  2909. # You will slowly go insane if you do not grok the following fact: when
  2910. # building v3 as part of the compiler, the top-level /target/ becomes the
  2911. # library's /host/. configure then causes --target to default to --host,
  2912. # exactly like any other package using autoconf. Therefore, 'target' and
  2913. # 'host' will always be the same. This makes sense both for native and
  2914. # cross compilers, just think about it for a little while. :-)
  2915. #
  2916. # Also, if v3 is being configured as part of a cross compiler, the top-level
  2917. # configure script will pass the "real" host as $with_cross_host.
  2918. #
  2919. # Do not delete or change the following two lines. For why, see
  2920. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2921. ac_aux_dir=
  2922. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2923. if test -f "$ac_dir/install-sh"; then
  2924. ac_aux_dir=$ac_dir
  2925. ac_install_sh="$ac_aux_dir/install-sh -c"
  2926. break
  2927. elif test -f "$ac_dir/install.sh"; then
  2928. ac_aux_dir=$ac_dir
  2929. ac_install_sh="$ac_aux_dir/install.sh -c"
  2930. break
  2931. elif test -f "$ac_dir/shtool"; then
  2932. ac_aux_dir=$ac_dir
  2933. ac_install_sh="$ac_aux_dir/shtool install -c"
  2934. break
  2935. fi
  2936. done
  2937. if test -z "$ac_aux_dir"; then
  2938. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2939. fi
  2940. # These three variables are undocumented and unsupported,
  2941. # and are intended to be withdrawn in a future Autoconf release.
  2942. # They can cause serious problems if a builder's source tree is in a directory
  2943. # whose full name contains unusual characters.
  2944. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2945. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2946. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2947. # Make sure we can run config.sub.
  2948. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2949. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2951. $as_echo_n "checking build system type... " >&6; }
  2952. if ${ac_cv_build+:} false; then :
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. ac_build_alias=$build_alias
  2956. test "x$ac_build_alias" = x &&
  2957. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2958. test "x$ac_build_alias" = x &&
  2959. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2960. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2961. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2962. fi
  2963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2964. $as_echo "$ac_cv_build" >&6; }
  2965. case $ac_cv_build in
  2966. *-*-*) ;;
  2967. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2968. esac
  2969. build=$ac_cv_build
  2970. ac_save_IFS=$IFS; IFS='-'
  2971. set x $ac_cv_build
  2972. shift
  2973. build_cpu=$1
  2974. build_vendor=$2
  2975. shift; shift
  2976. # Remember, the first character of IFS is used to create $*,
  2977. # except with old shells:
  2978. build_os=$*
  2979. IFS=$ac_save_IFS
  2980. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2982. $as_echo_n "checking host system type... " >&6; }
  2983. if ${ac_cv_host+:} false; then :
  2984. $as_echo_n "(cached) " >&6
  2985. else
  2986. if test "x$host_alias" = x; then
  2987. ac_cv_host=$ac_cv_build
  2988. else
  2989. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2990. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2991. fi
  2992. fi
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2994. $as_echo "$ac_cv_host" >&6; }
  2995. case $ac_cv_host in
  2996. *-*-*) ;;
  2997. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2998. esac
  2999. host=$ac_cv_host
  3000. ac_save_IFS=$IFS; IFS='-'
  3001. set x $ac_cv_host
  3002. shift
  3003. host_cpu=$1
  3004. host_vendor=$2
  3005. shift; shift
  3006. # Remember, the first character of IFS is used to create $*,
  3007. # except with old shells:
  3008. host_os=$*
  3009. IFS=$ac_save_IFS
  3010. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3012. $as_echo_n "checking target system type... " >&6; }
  3013. if ${ac_cv_target+:} false; then :
  3014. $as_echo_n "(cached) " >&6
  3015. else
  3016. if test "x$target_alias" = x; then
  3017. ac_cv_target=$ac_cv_host
  3018. else
  3019. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3020. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3021. fi
  3022. fi
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3024. $as_echo "$ac_cv_target" >&6; }
  3025. case $ac_cv_target in
  3026. *-*-*) ;;
  3027. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3028. esac
  3029. target=$ac_cv_target
  3030. ac_save_IFS=$IFS; IFS='-'
  3031. set x $ac_cv_target
  3032. shift
  3033. target_cpu=$1
  3034. target_vendor=$2
  3035. shift; shift
  3036. # Remember, the first character of IFS is used to create $*,
  3037. # except with old shells:
  3038. target_os=$*
  3039. IFS=$ac_save_IFS
  3040. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3041. # The aliases save the names the user supplied, while $host etc.
  3042. # will get canonicalized.
  3043. test -n "$target_alias" &&
  3044. test "$program_prefix$program_suffix$program_transform_name" = \
  3045. NONENONEs,x,x, &&
  3046. program_prefix=${target_alias}-
  3047. target_alias=${target_alias-$host_alias}
  3048. # Handy for debugging:
  3049. #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
  3050. if test "$build" != "$host"; then
  3051. # We are being configured with some form of cross compiler.
  3052. GLIBCXX_IS_NATIVE=false
  3053. case "$host","$target" in
  3054. # Darwin crosses can use the host system's libraries and headers,
  3055. # because of the fat library support. Of course, it must be the
  3056. # same version of Darwin on both sides. Allow the user to
  3057. # just say --target=foo-darwin without a version number to mean
  3058. # "the version on this system".
  3059. *-*-darwin*,*-*-darwin*)
  3060. hostos=`echo $host | sed 's/.*-darwin/darwin/'`
  3061. targetos=`echo $target | sed 's/.*-darwin/darwin/'`
  3062. if test $hostos = $targetos -o $targetos = darwin ; then
  3063. GLIBCXX_IS_NATIVE=true
  3064. fi
  3065. ;;
  3066. *)
  3067. ;;
  3068. esac
  3069. else
  3070. GLIBCXX_IS_NATIVE=true
  3071. fi
  3072. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  3073. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  3074. # 1.x: minimum required version
  3075. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  3076. # of other PACKAGE_* variables will, however, and there's nothing
  3077. # we can do about that; they come from AC_INIT).
  3078. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  3079. # file in the top srcdir, etc, etc), so stop complaining.
  3080. # no-dependencies: turns off auto dependency generation (just for now)
  3081. # no-dist: we don't want 'dist' and related rules.
  3082. # -Wall: turns on all automake warnings...
  3083. # -Wno-portability: ...except this one, since GNU make is now required.
  3084. am__api_version='1.15'
  3085. # Find a good install program. We prefer a C program (faster),
  3086. # so one script is as good as another. But avoid the broken or
  3087. # incompatible versions:
  3088. # SysV /etc/install, /usr/sbin/install
  3089. # SunOS /usr/etc/install
  3090. # IRIX /sbin/install
  3091. # AIX /bin/install
  3092. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3093. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3094. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3095. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3096. # OS/2's system install, which has a completely different semantic
  3097. # ./install, which can be erroneously created by make from ./install.sh.
  3098. # Reject install programs that cannot install multiple files.
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3100. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3101. if test -z "$INSTALL"; then
  3102. if ${ac_cv_path_install+:} false; then :
  3103. $as_echo_n "(cached) " >&6
  3104. else
  3105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3106. for as_dir in $PATH
  3107. do
  3108. IFS=$as_save_IFS
  3109. test -z "$as_dir" && as_dir=.
  3110. # Account for people who put trailing slashes in PATH elements.
  3111. case $as_dir/ in #((
  3112. ./ | .// | /[cC]/* | \
  3113. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3114. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3115. /usr/ucb/* ) ;;
  3116. *)
  3117. # OSF1 and SCO ODT 3.0 have their own names for install.
  3118. # Don't use installbsd from OSF since it installs stuff as root
  3119. # by default.
  3120. for ac_prog in ginstall scoinst install; do
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3123. if test $ac_prog = install &&
  3124. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3125. # AIX install. It has an incompatible calling convention.
  3126. :
  3127. elif test $ac_prog = install &&
  3128. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3129. # program-specific install script used by HP pwplus--don't use.
  3130. :
  3131. else
  3132. rm -rf conftest.one conftest.two conftest.dir
  3133. echo one > conftest.one
  3134. echo two > conftest.two
  3135. mkdir conftest.dir
  3136. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3137. test -s conftest.one && test -s conftest.two &&
  3138. test -s conftest.dir/conftest.one &&
  3139. test -s conftest.dir/conftest.two
  3140. then
  3141. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3142. break 3
  3143. fi
  3144. fi
  3145. fi
  3146. done
  3147. done
  3148. ;;
  3149. esac
  3150. done
  3151. IFS=$as_save_IFS
  3152. rm -rf conftest.one conftest.two conftest.dir
  3153. fi
  3154. if test "${ac_cv_path_install+set}" = set; then
  3155. INSTALL=$ac_cv_path_install
  3156. else
  3157. # As a last resort, use the slow shell script. Don't cache a
  3158. # value for INSTALL within a source directory, because that will
  3159. # break other packages using the cache if that directory is
  3160. # removed, or if the value is a relative name.
  3161. INSTALL=$ac_install_sh
  3162. fi
  3163. fi
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3165. $as_echo "$INSTALL" >&6; }
  3166. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3167. # It thinks the first close brace ends the variable substitution.
  3168. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3169. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3170. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3172. $as_echo_n "checking whether build environment is sane... " >&6; }
  3173. # Reject unsafe characters in $srcdir or the absolute working directory
  3174. # name. Accept space and tab only in the latter.
  3175. am_lf='
  3176. '
  3177. case `pwd` in
  3178. *[\\\"\#\$\&\'\`$am_lf]*)
  3179. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3180. esac
  3181. case $srcdir in
  3182. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3183. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3184. esac
  3185. # Do 'set' in a subshell so we don't clobber the current shell's
  3186. # arguments. Must try -L first in case configure is actually a
  3187. # symlink; some systems play weird games with the mod time of symlinks
  3188. # (eg FreeBSD returns the mod time of the symlink's containing
  3189. # directory).
  3190. if (
  3191. am_has_slept=no
  3192. for am_try in 1 2; do
  3193. echo "timestamp, slept: $am_has_slept" > conftest.file
  3194. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3195. if test "$*" = "X"; then
  3196. # -L didn't work.
  3197. set X `ls -t "$srcdir/configure" conftest.file`
  3198. fi
  3199. if test "$*" != "X $srcdir/configure conftest.file" \
  3200. && test "$*" != "X conftest.file $srcdir/configure"; then
  3201. # If neither matched, then we have a broken ls. This can happen
  3202. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3203. # broken ls alias from the environment. This has actually
  3204. # happened. Such a system could not be considered "sane".
  3205. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3206. alias in your environment" "$LINENO" 5
  3207. fi
  3208. if test "$2" = conftest.file || test $am_try -eq 2; then
  3209. break
  3210. fi
  3211. # Just in case.
  3212. sleep 1
  3213. am_has_slept=yes
  3214. done
  3215. test "$2" = conftest.file
  3216. )
  3217. then
  3218. # Ok.
  3219. :
  3220. else
  3221. as_fn_error $? "newly created file is older than distributed files!
  3222. Check your system clock" "$LINENO" 5
  3223. fi
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3225. $as_echo "yes" >&6; }
  3226. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3227. # generated files are strictly newer.
  3228. am_sleep_pid=
  3229. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3230. ( sleep 1 ) &
  3231. am_sleep_pid=$!
  3232. fi
  3233. rm -f conftest.file
  3234. test "$program_prefix" != NONE &&
  3235. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3236. # Use a double $ so make ignores it.
  3237. test "$program_suffix" != NONE &&
  3238. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3239. # Double any \ or $.
  3240. # By default was `s,x,x', remove it if useless.
  3241. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3242. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3243. # Expand $ac_aux_dir to an absolute path.
  3244. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3245. if test x"${MISSING+set}" != xset; then
  3246. case $am_aux_dir in
  3247. *\ * | *\ *)
  3248. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3249. *)
  3250. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3251. esac
  3252. fi
  3253. # Use eval to expand $SHELL
  3254. if eval "$MISSING --is-lightweight"; then
  3255. am_missing_run="$MISSING "
  3256. else
  3257. am_missing_run=
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3259. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3260. fi
  3261. if test x"${install_sh+set}" != xset; then
  3262. case $am_aux_dir in
  3263. *\ * | *\ *)
  3264. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3265. *)
  3266. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3267. esac
  3268. fi
  3269. # Installed binaries are usually stripped using 'strip' when the user
  3270. # run "make install-strip". However 'strip' might not be the right
  3271. # tool to use in cross-compilation environments, therefore Automake
  3272. # will honor the 'STRIP' environment variable to overrule this program.
  3273. if test "$cross_compiling" != no; then
  3274. if test -n "$ac_tool_prefix"; then
  3275. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3276. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3278. $as_echo_n "checking for $ac_word... " >&6; }
  3279. if ${ac_cv_prog_STRIP+:} false; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if test -n "$STRIP"; then
  3283. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3284. else
  3285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3286. for as_dir in $PATH
  3287. do
  3288. IFS=$as_save_IFS
  3289. test -z "$as_dir" && as_dir=.
  3290. for ac_exec_ext in '' $ac_executable_extensions; do
  3291. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3292. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3294. break 2
  3295. fi
  3296. done
  3297. done
  3298. IFS=$as_save_IFS
  3299. fi
  3300. fi
  3301. STRIP=$ac_cv_prog_STRIP
  3302. if test -n "$STRIP"; then
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3304. $as_echo "$STRIP" >&6; }
  3305. else
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3307. $as_echo "no" >&6; }
  3308. fi
  3309. fi
  3310. if test -z "$ac_cv_prog_STRIP"; then
  3311. ac_ct_STRIP=$STRIP
  3312. # Extract the first word of "strip", so it can be a program name with args.
  3313. set dummy strip; ac_word=$2
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3315. $as_echo_n "checking for $ac_word... " >&6; }
  3316. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3317. $as_echo_n "(cached) " >&6
  3318. else
  3319. if test -n "$ac_ct_STRIP"; then
  3320. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_exec_ext in '' $ac_executable_extensions; do
  3328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3329. ac_cv_prog_ac_ct_STRIP="strip"
  3330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3331. break 2
  3332. fi
  3333. done
  3334. done
  3335. IFS=$as_save_IFS
  3336. fi
  3337. fi
  3338. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3339. if test -n "$ac_ct_STRIP"; then
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3341. $as_echo "$ac_ct_STRIP" >&6; }
  3342. else
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3344. $as_echo "no" >&6; }
  3345. fi
  3346. if test "x$ac_ct_STRIP" = x; then
  3347. STRIP=":"
  3348. else
  3349. case $cross_compiling:$ac_tool_warned in
  3350. yes:)
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3353. ac_tool_warned=yes ;;
  3354. esac
  3355. STRIP=$ac_ct_STRIP
  3356. fi
  3357. else
  3358. STRIP="$ac_cv_prog_STRIP"
  3359. fi
  3360. fi
  3361. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3363. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3364. if test -z "$MKDIR_P"; then
  3365. if ${ac_cv_path_mkdir+:} false; then :
  3366. $as_echo_n "(cached) " >&6
  3367. else
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_prog in mkdir gmkdir; do
  3374. for ac_exec_ext in '' $ac_executable_extensions; do
  3375. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3376. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3377. 'mkdir (GNU coreutils) '* | \
  3378. 'mkdir (coreutils) '* | \
  3379. 'mkdir (fileutils) '4.1*)
  3380. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3381. break 3;;
  3382. esac
  3383. done
  3384. done
  3385. done
  3386. IFS=$as_save_IFS
  3387. fi
  3388. test -d ./--version && rmdir ./--version
  3389. if test "${ac_cv_path_mkdir+set}" = set; then
  3390. MKDIR_P="$ac_cv_path_mkdir -p"
  3391. else
  3392. # As a last resort, use the slow shell script. Don't cache a
  3393. # value for MKDIR_P within a source directory, because that will
  3394. # break other packages using the cache if that directory is
  3395. # removed, or if the value is a relative name.
  3396. MKDIR_P="$ac_install_sh -d"
  3397. fi
  3398. fi
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3400. $as_echo "$MKDIR_P" >&6; }
  3401. for ac_prog in gawk mawk nawk awk
  3402. do
  3403. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3404. set dummy $ac_prog; ac_word=$2
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3406. $as_echo_n "checking for $ac_word... " >&6; }
  3407. if ${ac_cv_prog_AWK+:} false; then :
  3408. $as_echo_n "(cached) " >&6
  3409. else
  3410. if test -n "$AWK"; then
  3411. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3412. else
  3413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3414. for as_dir in $PATH
  3415. do
  3416. IFS=$as_save_IFS
  3417. test -z "$as_dir" && as_dir=.
  3418. for ac_exec_ext in '' $ac_executable_extensions; do
  3419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3420. ac_cv_prog_AWK="$ac_prog"
  3421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3422. break 2
  3423. fi
  3424. done
  3425. done
  3426. IFS=$as_save_IFS
  3427. fi
  3428. fi
  3429. AWK=$ac_cv_prog_AWK
  3430. if test -n "$AWK"; then
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3432. $as_echo "$AWK" >&6; }
  3433. else
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3435. $as_echo "no" >&6; }
  3436. fi
  3437. test -n "$AWK" && break
  3438. done
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3440. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3441. set x ${MAKE-make}
  3442. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3443. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3444. $as_echo_n "(cached) " >&6
  3445. else
  3446. cat >conftest.make <<\_ACEOF
  3447. SHELL = /bin/sh
  3448. all:
  3449. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3450. _ACEOF
  3451. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3452. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3453. *@@@%%%=?*=@@@%%%*)
  3454. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3455. *)
  3456. eval ac_cv_prog_make_${ac_make}_set=no;;
  3457. esac
  3458. rm -f conftest.make
  3459. fi
  3460. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3462. $as_echo "yes" >&6; }
  3463. SET_MAKE=
  3464. else
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3466. $as_echo "no" >&6; }
  3467. SET_MAKE="MAKE=${MAKE-make}"
  3468. fi
  3469. rm -rf .tst 2>/dev/null
  3470. mkdir .tst 2>/dev/null
  3471. if test -d .tst; then
  3472. am__leading_dot=.
  3473. else
  3474. am__leading_dot=_
  3475. fi
  3476. rmdir .tst 2>/dev/null
  3477. # Check whether --enable-silent-rules was given.
  3478. if test "${enable_silent_rules+set}" = set; then :
  3479. enableval=$enable_silent_rules;
  3480. fi
  3481. case $enable_silent_rules in # (((
  3482. yes) AM_DEFAULT_VERBOSITY=0;;
  3483. no) AM_DEFAULT_VERBOSITY=1;;
  3484. *) AM_DEFAULT_VERBOSITY=1;;
  3485. esac
  3486. am_make=${MAKE-make}
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3488. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3489. if ${am_cv_make_support_nested_variables+:} false; then :
  3490. $as_echo_n "(cached) " >&6
  3491. else
  3492. if $as_echo 'TRUE=$(BAR$(V))
  3493. BAR0=false
  3494. BAR1=true
  3495. V=1
  3496. am__doit:
  3497. @$(TRUE)
  3498. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3499. am_cv_make_support_nested_variables=yes
  3500. else
  3501. am_cv_make_support_nested_variables=no
  3502. fi
  3503. fi
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3505. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3506. if test $am_cv_make_support_nested_variables = yes; then
  3507. AM_V='$(V)'
  3508. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3509. else
  3510. AM_V=$AM_DEFAULT_VERBOSITY
  3511. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3512. fi
  3513. AM_BACKSLASH='\'
  3514. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3515. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3516. # is not polluted with repeated "-I."
  3517. am__isrc=' -I$(srcdir)'
  3518. # test to see if srcdir already configured
  3519. if test -f $srcdir/config.status; then
  3520. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3521. fi
  3522. fi
  3523. # test whether we have cygpath
  3524. if test -z "$CYGPATH_W"; then
  3525. if (cygpath --version) >/dev/null 2>/dev/null; then
  3526. CYGPATH_W='cygpath -w'
  3527. else
  3528. CYGPATH_W=echo
  3529. fi
  3530. fi
  3531. # Define the identity of the package.
  3532. PACKAGE='libstdc++'
  3533. VERSION='version-unused'
  3534. # Some tools Automake needs.
  3535. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3536. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3537. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3538. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3539. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3540. # For better backward compatibility. To be removed once Automake 1.9.x
  3541. # dies out for good. For more background, see:
  3542. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3543. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3544. mkdir_p='$(MKDIR_P)'
  3545. # We need awk for the "check" target (and possibly the TAP driver). The
  3546. # system "awk" is bad on some platforms.
  3547. # Always define AMTAR for backward compatibility. Yes, it's still used
  3548. # in the wild :-( We should find a proper way to deprecate it ...
  3549. AMTAR='$${TAR-tar}'
  3550. # We'll loop over all known methods to create a tar archive until one works.
  3551. _am_tools='gnutar pax cpio none'
  3552. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3553. # POSIX will say in a future version that running "rm -f" with no argument
  3554. # is OK; and we want to be able to make that assumption in our Makefile
  3555. # recipes. So use an aggressive probe to check that the usage we want is
  3556. # actually supported "in the wild" to an acceptable degree.
  3557. # See automake bug#10828.
  3558. # To make any issue more visible, cause the running configure to be aborted
  3559. # by default if the 'rm' program in use doesn't match our expectations; the
  3560. # user can still override this though.
  3561. if rm -f && rm -fr && rm -rf; then : OK; else
  3562. cat >&2 <<'END'
  3563. Oops!
  3564. Your 'rm' program seems unable to run without file operands specified
  3565. on the command line, even when the '-f' option is present. This is contrary
  3566. to the behaviour of most rm programs out there, and not conforming with
  3567. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3568. Please tell bug-automake@gnu.org about your system, including the value
  3569. of your $PATH and any error possibly output before this message. This
  3570. can help us improve future automake versions.
  3571. END
  3572. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3573. echo 'Configuration will proceed anyway, since you have set the' >&2
  3574. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3575. echo >&2
  3576. else
  3577. cat >&2 <<'END'
  3578. Aborting the configuration process, to ensure you take notice of the issue.
  3579. You can download and install GNU coreutils to get an 'rm' implementation
  3580. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3581. If you want to complete the configuration process using your problematic
  3582. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3583. to "yes", and re-run configure.
  3584. END
  3585. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3586. fi
  3587. fi
  3588. # -fno-builtin must be present here so that a non-conflicting form of
  3589. # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
  3590. save_CXXFLAGS="$CXXFLAGS"
  3591. CXXFLAGS="$CXXFLAGS -fno-builtin"
  3592. ac_ext=c
  3593. ac_cpp='$CPP $CPPFLAGS'
  3594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3597. if test -n "$ac_tool_prefix"; then
  3598. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3599. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3601. $as_echo_n "checking for $ac_word... " >&6; }
  3602. if ${ac_cv_prog_CC+:} false; then :
  3603. $as_echo_n "(cached) " >&6
  3604. else
  3605. if test -n "$CC"; then
  3606. ac_cv_prog_CC="$CC" # Let the user override the test.
  3607. else
  3608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3609. for as_dir in $PATH
  3610. do
  3611. IFS=$as_save_IFS
  3612. test -z "$as_dir" && as_dir=.
  3613. for ac_exec_ext in '' $ac_executable_extensions; do
  3614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3615. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. fi
  3623. fi
  3624. CC=$ac_cv_prog_CC
  3625. if test -n "$CC"; then
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3627. $as_echo "$CC" >&6; }
  3628. else
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3630. $as_echo "no" >&6; }
  3631. fi
  3632. fi
  3633. if test -z "$ac_cv_prog_CC"; then
  3634. ac_ct_CC=$CC
  3635. # Extract the first word of "gcc", so it can be a program name with args.
  3636. set dummy gcc; ac_word=$2
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3638. $as_echo_n "checking for $ac_word... " >&6; }
  3639. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. if test -n "$ac_ct_CC"; then
  3643. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3644. else
  3645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3646. for as_dir in $PATH
  3647. do
  3648. IFS=$as_save_IFS
  3649. test -z "$as_dir" && as_dir=.
  3650. for ac_exec_ext in '' $ac_executable_extensions; do
  3651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3652. ac_cv_prog_ac_ct_CC="gcc"
  3653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3654. break 2
  3655. fi
  3656. done
  3657. done
  3658. IFS=$as_save_IFS
  3659. fi
  3660. fi
  3661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3662. if test -n "$ac_ct_CC"; then
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3664. $as_echo "$ac_ct_CC" >&6; }
  3665. else
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. $as_echo "no" >&6; }
  3668. fi
  3669. if test "x$ac_ct_CC" = x; then
  3670. CC=""
  3671. else
  3672. case $cross_compiling:$ac_tool_warned in
  3673. yes:)
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3675. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3676. ac_tool_warned=yes ;;
  3677. esac
  3678. CC=$ac_ct_CC
  3679. fi
  3680. else
  3681. CC="$ac_cv_prog_CC"
  3682. fi
  3683. if test -z "$CC"; then
  3684. if test -n "$ac_tool_prefix"; then
  3685. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3686. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3688. $as_echo_n "checking for $ac_word... " >&6; }
  3689. if ${ac_cv_prog_CC+:} false; then :
  3690. $as_echo_n "(cached) " >&6
  3691. else
  3692. if test -n "$CC"; then
  3693. ac_cv_prog_CC="$CC" # Let the user override the test.
  3694. else
  3695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3696. for as_dir in $PATH
  3697. do
  3698. IFS=$as_save_IFS
  3699. test -z "$as_dir" && as_dir=.
  3700. for ac_exec_ext in '' $ac_executable_extensions; do
  3701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3702. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3704. break 2
  3705. fi
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. fi
  3710. fi
  3711. CC=$ac_cv_prog_CC
  3712. if test -n "$CC"; then
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3714. $as_echo "$CC" >&6; }
  3715. else
  3716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3717. $as_echo "no" >&6; }
  3718. fi
  3719. fi
  3720. fi
  3721. if test -z "$CC"; then
  3722. # Extract the first word of "cc", so it can be a program name with args.
  3723. set dummy cc; ac_word=$2
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3725. $as_echo_n "checking for $ac_word... " >&6; }
  3726. if ${ac_cv_prog_CC+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. if test -n "$CC"; then
  3730. ac_cv_prog_CC="$CC" # Let the user override the test.
  3731. else
  3732. ac_prog_rejected=no
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3740. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3741. ac_prog_rejected=yes
  3742. continue
  3743. fi
  3744. ac_cv_prog_CC="cc"
  3745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3746. break 2
  3747. fi
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. if test $ac_prog_rejected = yes; then
  3752. # We found a bogon in the path, so make sure we never use it.
  3753. set dummy $ac_cv_prog_CC
  3754. shift
  3755. if test $# != 0; then
  3756. # We chose a different compiler from the bogus one.
  3757. # However, it has the same basename, so the bogon will be chosen
  3758. # first if we set CC to just the basename; use the full file name.
  3759. shift
  3760. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3761. fi
  3762. fi
  3763. fi
  3764. fi
  3765. CC=$ac_cv_prog_CC
  3766. if test -n "$CC"; then
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3768. $as_echo "$CC" >&6; }
  3769. else
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3771. $as_echo "no" >&6; }
  3772. fi
  3773. fi
  3774. if test -z "$CC"; then
  3775. if test -n "$ac_tool_prefix"; then
  3776. for ac_prog in cl.exe
  3777. do
  3778. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3779. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if ${ac_cv_prog_CC+:} false; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CC"; then
  3786. ac_cv_prog_CC="$CC" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3795. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CC=$ac_cv_prog_CC
  3805. if test -n "$CC"; then
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3807. $as_echo "$CC" >&6; }
  3808. else
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. test -n "$CC" && break
  3813. done
  3814. fi
  3815. if test -z "$CC"; then
  3816. ac_ct_CC=$CC
  3817. for ac_prog in cl.exe
  3818. do
  3819. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3820. set dummy $ac_prog; ac_word=$2
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3822. $as_echo_n "checking for $ac_word... " >&6; }
  3823. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3824. $as_echo_n "(cached) " >&6
  3825. else
  3826. if test -n "$ac_ct_CC"; then
  3827. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3828. else
  3829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3830. for as_dir in $PATH
  3831. do
  3832. IFS=$as_save_IFS
  3833. test -z "$as_dir" && as_dir=.
  3834. for ac_exec_ext in '' $ac_executable_extensions; do
  3835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3836. ac_cv_prog_ac_ct_CC="$ac_prog"
  3837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3838. break 2
  3839. fi
  3840. done
  3841. done
  3842. IFS=$as_save_IFS
  3843. fi
  3844. fi
  3845. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3846. if test -n "$ac_ct_CC"; then
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3848. $as_echo "$ac_ct_CC" >&6; }
  3849. else
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3851. $as_echo "no" >&6; }
  3852. fi
  3853. test -n "$ac_ct_CC" && break
  3854. done
  3855. if test "x$ac_ct_CC" = x; then
  3856. CC=""
  3857. else
  3858. case $cross_compiling:$ac_tool_warned in
  3859. yes:)
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3862. ac_tool_warned=yes ;;
  3863. esac
  3864. CC=$ac_ct_CC
  3865. fi
  3866. fi
  3867. fi
  3868. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3869. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3870. as_fn_error $? "no acceptable C compiler found in \$PATH
  3871. See \`config.log' for more details" "$LINENO" 5; }
  3872. # Provide some information about the compiler.
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3874. set X $ac_compile
  3875. ac_compiler=$2
  3876. for ac_option in --version -v -V -qversion; do
  3877. { { ac_try="$ac_compiler $ac_option >&5"
  3878. case "(($ac_try" in
  3879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3880. *) ac_try_echo=$ac_try;;
  3881. esac
  3882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3883. $as_echo "$ac_try_echo"; } >&5
  3884. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3885. ac_status=$?
  3886. if test -s conftest.err; then
  3887. sed '10a\
  3888. ... rest of stderr output deleted ...
  3889. 10q' conftest.err >conftest.er1
  3890. cat conftest.er1 >&5
  3891. fi
  3892. rm -f conftest.er1 conftest.err
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3894. test $ac_status = 0; }
  3895. done
  3896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3897. /* end confdefs.h. */
  3898. #include <stdio.h>
  3899. int
  3900. main ()
  3901. {
  3902. printf ("hello world\n");
  3903. ;
  3904. return 0;
  3905. }
  3906. _ACEOF
  3907. # FIXME: Cleanup?
  3908. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3909. (eval $ac_link) 2>&5
  3910. ac_status=$?
  3911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3912. test $ac_status = 0; }; then :
  3913. gcc_no_link=no
  3914. else
  3915. gcc_no_link=yes
  3916. fi
  3917. if test x$gcc_no_link = xyes; then
  3918. # Setting cross_compile will disable run tests; it will
  3919. # also disable AC_CHECK_FILE but that's generally
  3920. # correct if we can't link.
  3921. cross_compiling=yes
  3922. EXEEXT=
  3923. else
  3924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. int
  3927. main ()
  3928. {
  3929. ;
  3930. return 0;
  3931. }
  3932. _ACEOF
  3933. ac_clean_files_save=$ac_clean_files
  3934. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3935. # Try to create an executable without -o first, disregard a.out.
  3936. # It will help us diagnose broken compilers, and finding out an intuition
  3937. # of exeext.
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3939. $as_echo_n "checking whether the C compiler works... " >&6; }
  3940. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3941. # The possible output files:
  3942. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3943. ac_rmfiles=
  3944. for ac_file in $ac_files
  3945. do
  3946. case $ac_file in
  3947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3948. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3949. esac
  3950. done
  3951. rm -f $ac_rmfiles
  3952. if { { ac_try="$ac_link_default"
  3953. case "(($ac_try" in
  3954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3955. *) ac_try_echo=$ac_try;;
  3956. esac
  3957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3958. $as_echo "$ac_try_echo"; } >&5
  3959. (eval "$ac_link_default") 2>&5
  3960. ac_status=$?
  3961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3962. test $ac_status = 0; }; then :
  3963. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3964. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3965. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3966. # so that the user can short-circuit this test for compilers unknown to
  3967. # Autoconf.
  3968. for ac_file in $ac_files ''
  3969. do
  3970. test -f "$ac_file" || continue
  3971. case $ac_file in
  3972. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3973. ;;
  3974. [ab].out )
  3975. # We found the default executable, but exeext='' is most
  3976. # certainly right.
  3977. break;;
  3978. *.* )
  3979. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3980. then :; else
  3981. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3982. fi
  3983. # We set ac_cv_exeext here because the later test for it is not
  3984. # safe: cross compilers may not add the suffix if given an `-o'
  3985. # argument, so we may need to know it at that point already.
  3986. # Even if this section looks crufty: it has the advantage of
  3987. # actually working.
  3988. break;;
  3989. * )
  3990. break;;
  3991. esac
  3992. done
  3993. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3994. else
  3995. ac_file=''
  3996. fi
  3997. if test -z "$ac_file"; then :
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3999. $as_echo "no" >&6; }
  4000. $as_echo "$as_me: failed program was:" >&5
  4001. sed 's/^/| /' conftest.$ac_ext >&5
  4002. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4003. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4004. as_fn_error 77 "C compiler cannot create executables
  4005. See \`config.log' for more details" "$LINENO" 5; }
  4006. else
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4008. $as_echo "yes" >&6; }
  4009. fi
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4011. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4013. $as_echo "$ac_file" >&6; }
  4014. ac_exeext=$ac_cv_exeext
  4015. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4016. ac_clean_files=$ac_clean_files_save
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4018. $as_echo_n "checking for suffix of executables... " >&6; }
  4019. if { { ac_try="$ac_link"
  4020. case "(($ac_try" in
  4021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4022. *) ac_try_echo=$ac_try;;
  4023. esac
  4024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4025. $as_echo "$ac_try_echo"; } >&5
  4026. (eval "$ac_link") 2>&5
  4027. ac_status=$?
  4028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4029. test $ac_status = 0; }; then :
  4030. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4031. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4032. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4033. # `rm'.
  4034. for ac_file in conftest.exe conftest conftest.*; do
  4035. test -f "$ac_file" || continue
  4036. case $ac_file in
  4037. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4038. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4039. break;;
  4040. * ) break;;
  4041. esac
  4042. done
  4043. else
  4044. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4046. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4047. See \`config.log' for more details" "$LINENO" 5; }
  4048. fi
  4049. rm -f conftest conftest$ac_cv_exeext
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4051. $as_echo "$ac_cv_exeext" >&6; }
  4052. rm -f conftest.$ac_ext
  4053. EXEEXT=$ac_cv_exeext
  4054. ac_exeext=$EXEEXT
  4055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4056. /* end confdefs.h. */
  4057. #include <stdio.h>
  4058. int
  4059. main ()
  4060. {
  4061. FILE *f = fopen ("conftest.out", "w");
  4062. return ferror (f) || fclose (f) != 0;
  4063. ;
  4064. return 0;
  4065. }
  4066. _ACEOF
  4067. ac_clean_files="$ac_clean_files conftest.out"
  4068. # Check that the compiler produces executables we can run. If not, either
  4069. # the compiler is broken, or we cross compile.
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4071. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4072. if test "$cross_compiling" != yes; then
  4073. { { ac_try="$ac_link"
  4074. case "(($ac_try" in
  4075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4076. *) ac_try_echo=$ac_try;;
  4077. esac
  4078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4079. $as_echo "$ac_try_echo"; } >&5
  4080. (eval "$ac_link") 2>&5
  4081. ac_status=$?
  4082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4083. test $ac_status = 0; }
  4084. if { ac_try='./conftest$ac_cv_exeext'
  4085. { { case "(($ac_try" in
  4086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4087. *) ac_try_echo=$ac_try;;
  4088. esac
  4089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4090. $as_echo "$ac_try_echo"; } >&5
  4091. (eval "$ac_try") 2>&5
  4092. ac_status=$?
  4093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4094. test $ac_status = 0; }; }; then
  4095. cross_compiling=no
  4096. else
  4097. if test "$cross_compiling" = maybe; then
  4098. cross_compiling=yes
  4099. else
  4100. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4102. as_fn_error $? "cannot run C compiled programs.
  4103. If you meant to cross compile, use \`--host'.
  4104. See \`config.log' for more details" "$LINENO" 5; }
  4105. fi
  4106. fi
  4107. fi
  4108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4109. $as_echo "$cross_compiling" >&6; }
  4110. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4111. ac_clean_files=$ac_clean_files_save
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4114. $as_echo_n "checking for suffix of object files... " >&6; }
  4115. if ${ac_cv_objext+:} false; then :
  4116. $as_echo_n "(cached) " >&6
  4117. else
  4118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4119. /* end confdefs.h. */
  4120. int
  4121. main ()
  4122. {
  4123. ;
  4124. return 0;
  4125. }
  4126. _ACEOF
  4127. rm -f conftest.o conftest.obj
  4128. if { { ac_try="$ac_compile"
  4129. case "(($ac_try" in
  4130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4131. *) ac_try_echo=$ac_try;;
  4132. esac
  4133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4134. $as_echo "$ac_try_echo"; } >&5
  4135. (eval "$ac_compile") 2>&5
  4136. ac_status=$?
  4137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4138. test $ac_status = 0; }; then :
  4139. for ac_file in conftest.o conftest.obj conftest.*; do
  4140. test -f "$ac_file" || continue;
  4141. case $ac_file in
  4142. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4143. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4144. break;;
  4145. esac
  4146. done
  4147. else
  4148. $as_echo "$as_me: failed program was:" >&5
  4149. sed 's/^/| /' conftest.$ac_ext >&5
  4150. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4152. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4153. See \`config.log' for more details" "$LINENO" 5; }
  4154. fi
  4155. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4158. $as_echo "$ac_cv_objext" >&6; }
  4159. OBJEXT=$ac_cv_objext
  4160. ac_objext=$OBJEXT
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4162. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4163. if ${ac_cv_c_compiler_gnu+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4167. /* end confdefs.h. */
  4168. int
  4169. main ()
  4170. {
  4171. #ifndef __GNUC__
  4172. choke me
  4173. #endif
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. if ac_fn_c_try_compile "$LINENO"; then :
  4179. ac_compiler_gnu=yes
  4180. else
  4181. ac_compiler_gnu=no
  4182. fi
  4183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4184. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4185. fi
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4187. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4188. if test $ac_compiler_gnu = yes; then
  4189. GCC=yes
  4190. else
  4191. GCC=
  4192. fi
  4193. ac_test_CFLAGS=${CFLAGS+set}
  4194. ac_save_CFLAGS=$CFLAGS
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4196. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4197. if ${ac_cv_prog_cc_g+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. ac_save_c_werror_flag=$ac_c_werror_flag
  4201. ac_c_werror_flag=yes
  4202. ac_cv_prog_cc_g=no
  4203. CFLAGS="-g"
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. int
  4207. main ()
  4208. {
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. if ac_fn_c_try_compile "$LINENO"; then :
  4214. ac_cv_prog_cc_g=yes
  4215. else
  4216. CFLAGS=""
  4217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4218. /* end confdefs.h. */
  4219. int
  4220. main ()
  4221. {
  4222. ;
  4223. return 0;
  4224. }
  4225. _ACEOF
  4226. if ac_fn_c_try_compile "$LINENO"; then :
  4227. else
  4228. ac_c_werror_flag=$ac_save_c_werror_flag
  4229. CFLAGS="-g"
  4230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4231. /* end confdefs.h. */
  4232. int
  4233. main ()
  4234. {
  4235. ;
  4236. return 0;
  4237. }
  4238. _ACEOF
  4239. if ac_fn_c_try_compile "$LINENO"; then :
  4240. ac_cv_prog_cc_g=yes
  4241. fi
  4242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4247. ac_c_werror_flag=$ac_save_c_werror_flag
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4250. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4251. if test "$ac_test_CFLAGS" = set; then
  4252. CFLAGS=$ac_save_CFLAGS
  4253. elif test $ac_cv_prog_cc_g = yes; then
  4254. if test "$GCC" = yes; then
  4255. CFLAGS="-g -O2"
  4256. else
  4257. CFLAGS="-g"
  4258. fi
  4259. else
  4260. if test "$GCC" = yes; then
  4261. CFLAGS="-O2"
  4262. else
  4263. CFLAGS=
  4264. fi
  4265. fi
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4267. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4268. if ${ac_cv_prog_cc_c89+:} false; then :
  4269. $as_echo_n "(cached) " >&6
  4270. else
  4271. ac_cv_prog_cc_c89=no
  4272. ac_save_CC=$CC
  4273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4274. /* end confdefs.h. */
  4275. #include <stdarg.h>
  4276. #include <stdio.h>
  4277. struct stat;
  4278. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4279. struct buf { int x; };
  4280. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4281. static char *e (p, i)
  4282. char **p;
  4283. int i;
  4284. {
  4285. return p[i];
  4286. }
  4287. static char *f (char * (*g) (char **, int), char **p, ...)
  4288. {
  4289. char *s;
  4290. va_list v;
  4291. va_start (v,p);
  4292. s = g (p, va_arg (v,int));
  4293. va_end (v);
  4294. return s;
  4295. }
  4296. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4297. function prototypes and stuff, but not '\xHH' hex character constants.
  4298. These don't provoke an error unfortunately, instead are silently treated
  4299. as 'x'. The following induces an error, until -std is added to get
  4300. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4301. array size at least. It's necessary to write '\x00'==0 to get something
  4302. that's true only with -std. */
  4303. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4304. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4305. inside strings and character constants. */
  4306. #define FOO(x) 'x'
  4307. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4308. int test (int i, double x);
  4309. struct s1 {int (*f) (int a);};
  4310. struct s2 {int (*f) (double a);};
  4311. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4312. int argc;
  4313. char **argv;
  4314. int
  4315. main ()
  4316. {
  4317. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4318. ;
  4319. return 0;
  4320. }
  4321. _ACEOF
  4322. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4323. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4324. do
  4325. CC="$ac_save_CC $ac_arg"
  4326. if ac_fn_c_try_compile "$LINENO"; then :
  4327. ac_cv_prog_cc_c89=$ac_arg
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext
  4330. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4331. done
  4332. rm -f conftest.$ac_ext
  4333. CC=$ac_save_CC
  4334. fi
  4335. # AC_CACHE_VAL
  4336. case "x$ac_cv_prog_cc_c89" in
  4337. x)
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4339. $as_echo "none needed" >&6; } ;;
  4340. xno)
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4342. $as_echo "unsupported" >&6; } ;;
  4343. *)
  4344. CC="$CC $ac_cv_prog_cc_c89"
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4346. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4347. esac
  4348. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4349. fi
  4350. ac_ext=c
  4351. ac_cpp='$CPP $CPPFLAGS'
  4352. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4353. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4354. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4355. ac_ext=c
  4356. ac_cpp='$CPP $CPPFLAGS'
  4357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4361. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4362. if ${am_cv_prog_cc_c_o+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. int
  4368. main ()
  4369. {
  4370. ;
  4371. return 0;
  4372. }
  4373. _ACEOF
  4374. # Make sure it works both with $CC and with simple cc.
  4375. # Following AC_PROG_CC_C_O, we do the test twice because some
  4376. # compilers refuse to overwrite an existing .o file with -o,
  4377. # though they will create one.
  4378. am_cv_prog_cc_c_o=yes
  4379. for am_i in 1 2; do
  4380. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4381. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4382. ac_status=$?
  4383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4384. (exit $ac_status); } \
  4385. && test -f conftest2.$ac_objext; then
  4386. : OK
  4387. else
  4388. am_cv_prog_cc_c_o=no
  4389. break
  4390. fi
  4391. done
  4392. rm -f core conftest*
  4393. unset am_i
  4394. fi
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4396. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4397. if test "$am_cv_prog_cc_c_o" != yes; then
  4398. # Losing compiler, so override with the script.
  4399. # FIXME: It is wrong to rewrite CC.
  4400. # But if we don't then we get into trouble of one sort or another.
  4401. # A longer-term fix would be to have automake use am__CC in this case,
  4402. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4403. CC="$am_aux_dir/compile $CC"
  4404. fi
  4405. ac_ext=c
  4406. ac_cpp='$CPP $CPPFLAGS'
  4407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4410. ac_ext=cpp
  4411. ac_cpp='$CXXCPP $CPPFLAGS'
  4412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4415. if test -z "$CXX"; then
  4416. if test -n "$CCC"; then
  4417. CXX=$CCC
  4418. else
  4419. if test -n "$ac_tool_prefix"; then
  4420. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4421. do
  4422. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4423. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4425. $as_echo_n "checking for $ac_word... " >&6; }
  4426. if ${ac_cv_prog_CXX+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. if test -n "$CXX"; then
  4430. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4431. else
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4439. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. fi
  4447. fi
  4448. CXX=$ac_cv_prog_CXX
  4449. if test -n "$CXX"; then
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4451. $as_echo "$CXX" >&6; }
  4452. else
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4454. $as_echo "no" >&6; }
  4455. fi
  4456. test -n "$CXX" && break
  4457. done
  4458. fi
  4459. if test -z "$CXX"; then
  4460. ac_ct_CXX=$CXX
  4461. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4462. do
  4463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4464. set dummy $ac_prog; ac_word=$2
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4466. $as_echo_n "checking for $ac_word... " >&6; }
  4467. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. if test -n "$ac_ct_CXX"; then
  4471. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4472. else
  4473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4474. for as_dir in $PATH
  4475. do
  4476. IFS=$as_save_IFS
  4477. test -z "$as_dir" && as_dir=.
  4478. for ac_exec_ext in '' $ac_executable_extensions; do
  4479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4480. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4482. break 2
  4483. fi
  4484. done
  4485. done
  4486. IFS=$as_save_IFS
  4487. fi
  4488. fi
  4489. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4490. if test -n "$ac_ct_CXX"; then
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4492. $as_echo "$ac_ct_CXX" >&6; }
  4493. else
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4495. $as_echo "no" >&6; }
  4496. fi
  4497. test -n "$ac_ct_CXX" && break
  4498. done
  4499. if test "x$ac_ct_CXX" = x; then
  4500. CXX="g++"
  4501. else
  4502. case $cross_compiling:$ac_tool_warned in
  4503. yes:)
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4506. ac_tool_warned=yes ;;
  4507. esac
  4508. CXX=$ac_ct_CXX
  4509. fi
  4510. fi
  4511. fi
  4512. fi
  4513. # Provide some information about the compiler.
  4514. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4515. set X $ac_compile
  4516. ac_compiler=$2
  4517. for ac_option in --version -v -V -qversion; do
  4518. { { ac_try="$ac_compiler $ac_option >&5"
  4519. case "(($ac_try" in
  4520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4521. *) ac_try_echo=$ac_try;;
  4522. esac
  4523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4524. $as_echo "$ac_try_echo"; } >&5
  4525. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4526. ac_status=$?
  4527. if test -s conftest.err; then
  4528. sed '10a\
  4529. ... rest of stderr output deleted ...
  4530. 10q' conftest.err >conftest.er1
  4531. cat conftest.er1 >&5
  4532. fi
  4533. rm -f conftest.er1 conftest.err
  4534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4535. test $ac_status = 0; }
  4536. done
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4538. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4539. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. int
  4545. main ()
  4546. {
  4547. #ifndef __GNUC__
  4548. choke me
  4549. #endif
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. if ac_fn_cxx_try_compile "$LINENO"; then :
  4555. ac_compiler_gnu=yes
  4556. else
  4557. ac_compiler_gnu=no
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4560. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4561. fi
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4563. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4564. if test $ac_compiler_gnu = yes; then
  4565. GXX=yes
  4566. else
  4567. GXX=
  4568. fi
  4569. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4570. ac_save_CXXFLAGS=$CXXFLAGS
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4572. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4573. if ${ac_cv_prog_cxx_g+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4577. ac_cxx_werror_flag=yes
  4578. ac_cv_prog_cxx_g=no
  4579. CXXFLAGS="-g"
  4580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4581. /* end confdefs.h. */
  4582. int
  4583. main ()
  4584. {
  4585. ;
  4586. return 0;
  4587. }
  4588. _ACEOF
  4589. if ac_fn_cxx_try_compile "$LINENO"; then :
  4590. ac_cv_prog_cxx_g=yes
  4591. else
  4592. CXXFLAGS=""
  4593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4594. /* end confdefs.h. */
  4595. int
  4596. main ()
  4597. {
  4598. ;
  4599. return 0;
  4600. }
  4601. _ACEOF
  4602. if ac_fn_cxx_try_compile "$LINENO"; then :
  4603. else
  4604. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4605. CXXFLAGS="-g"
  4606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4607. /* end confdefs.h. */
  4608. int
  4609. main ()
  4610. {
  4611. ;
  4612. return 0;
  4613. }
  4614. _ACEOF
  4615. if ac_fn_cxx_try_compile "$LINENO"; then :
  4616. ac_cv_prog_cxx_g=yes
  4617. fi
  4618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4619. fi
  4620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4621. fi
  4622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4623. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4624. fi
  4625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4626. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4627. if test "$ac_test_CXXFLAGS" = set; then
  4628. CXXFLAGS=$ac_save_CXXFLAGS
  4629. elif test $ac_cv_prog_cxx_g = yes; then
  4630. if test "$GXX" = yes; then
  4631. CXXFLAGS="-g -O2"
  4632. else
  4633. CXXFLAGS="-g"
  4634. fi
  4635. else
  4636. if test "$GXX" = yes; then
  4637. CXXFLAGS="-O2"
  4638. else
  4639. CXXFLAGS=
  4640. fi
  4641. fi
  4642. ac_ext=c
  4643. ac_cpp='$CPP $CPPFLAGS'
  4644. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4645. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4646. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4647. CXXFLAGS="$save_CXXFLAGS"
  4648. # Check whether --enable-largefile was given.
  4649. if test "${enable_largefile+set}" = set; then :
  4650. enableval=$enable_largefile;
  4651. fi
  4652. if test "$enable_largefile" != no; then
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4654. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4655. if ${ac_cv_sys_largefile_CC+:} false; then :
  4656. $as_echo_n "(cached) " >&6
  4657. else
  4658. ac_cv_sys_largefile_CC=no
  4659. if test "$GCC" != yes; then
  4660. ac_save_CC=$CC
  4661. while :; do
  4662. # IRIX 6.2 and later do not support large files by default,
  4663. # so use the C compiler's -n32 option if that helps.
  4664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4665. /* end confdefs.h. */
  4666. #include <sys/types.h>
  4667. /* Check that off_t can represent 2**63 - 1 correctly.
  4668. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4669. since some C++ compilers masquerading as C compilers
  4670. incorrectly reject 9223372036854775807. */
  4671. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4672. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4673. && LARGE_OFF_T % 2147483647 == 1)
  4674. ? 1 : -1];
  4675. int
  4676. main ()
  4677. {
  4678. ;
  4679. return 0;
  4680. }
  4681. _ACEOF
  4682. if ac_fn_c_try_compile "$LINENO"; then :
  4683. break
  4684. fi
  4685. rm -f core conftest.err conftest.$ac_objext
  4686. CC="$CC -n32"
  4687. if ac_fn_c_try_compile "$LINENO"; then :
  4688. ac_cv_sys_largefile_CC=' -n32'; break
  4689. fi
  4690. rm -f core conftest.err conftest.$ac_objext
  4691. break
  4692. done
  4693. CC=$ac_save_CC
  4694. rm -f conftest.$ac_ext
  4695. fi
  4696. fi
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4698. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4699. if test "$ac_cv_sys_largefile_CC" != no; then
  4700. CC=$CC$ac_cv_sys_largefile_CC
  4701. fi
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4703. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4704. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. while :; do
  4708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4709. /* end confdefs.h. */
  4710. #include <sys/types.h>
  4711. /* Check that off_t can represent 2**63 - 1 correctly.
  4712. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4713. since some C++ compilers masquerading as C compilers
  4714. incorrectly reject 9223372036854775807. */
  4715. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4716. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4717. && LARGE_OFF_T % 2147483647 == 1)
  4718. ? 1 : -1];
  4719. int
  4720. main ()
  4721. {
  4722. ;
  4723. return 0;
  4724. }
  4725. _ACEOF
  4726. if ac_fn_c_try_compile "$LINENO"; then :
  4727. ac_cv_sys_file_offset_bits=no; break
  4728. fi
  4729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4731. /* end confdefs.h. */
  4732. #define _FILE_OFFSET_BITS 64
  4733. #include <sys/types.h>
  4734. /* Check that off_t can represent 2**63 - 1 correctly.
  4735. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4736. since some C++ compilers masquerading as C compilers
  4737. incorrectly reject 9223372036854775807. */
  4738. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4739. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4740. && LARGE_OFF_T % 2147483647 == 1)
  4741. ? 1 : -1];
  4742. int
  4743. main ()
  4744. {
  4745. ;
  4746. return 0;
  4747. }
  4748. _ACEOF
  4749. if ac_fn_c_try_compile "$LINENO"; then :
  4750. ac_cv_sys_file_offset_bits=64; break
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. ac_cv_sys_file_offset_bits=unknown
  4754. break
  4755. done
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4758. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4759. case $ac_cv_sys_file_offset_bits in #(
  4760. no | unknown) ;;
  4761. *)
  4762. cat >>confdefs.h <<_ACEOF
  4763. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4764. _ACEOF
  4765. ;;
  4766. esac
  4767. rm -rf conftest*
  4768. if test $ac_cv_sys_file_offset_bits = unknown; then
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  4770. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  4771. if ${ac_cv_sys_large_files+:} false; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. while :; do
  4775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4776. /* end confdefs.h. */
  4777. #include <sys/types.h>
  4778. /* Check that off_t can represent 2**63 - 1 correctly.
  4779. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4780. since some C++ compilers masquerading as C compilers
  4781. incorrectly reject 9223372036854775807. */
  4782. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4783. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4784. && LARGE_OFF_T % 2147483647 == 1)
  4785. ? 1 : -1];
  4786. int
  4787. main ()
  4788. {
  4789. ;
  4790. return 0;
  4791. }
  4792. _ACEOF
  4793. if ac_fn_c_try_compile "$LINENO"; then :
  4794. ac_cv_sys_large_files=no; break
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4798. /* end confdefs.h. */
  4799. #define _LARGE_FILES 1
  4800. #include <sys/types.h>
  4801. /* Check that off_t can represent 2**63 - 1 correctly.
  4802. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4803. since some C++ compilers masquerading as C compilers
  4804. incorrectly reject 9223372036854775807. */
  4805. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4806. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4807. && LARGE_OFF_T % 2147483647 == 1)
  4808. ? 1 : -1];
  4809. int
  4810. main ()
  4811. {
  4812. ;
  4813. return 0;
  4814. }
  4815. _ACEOF
  4816. if ac_fn_c_try_compile "$LINENO"; then :
  4817. ac_cv_sys_large_files=1; break
  4818. fi
  4819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4820. ac_cv_sys_large_files=unknown
  4821. break
  4822. done
  4823. fi
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4825. $as_echo "$ac_cv_sys_large_files" >&6; }
  4826. case $ac_cv_sys_large_files in #(
  4827. no | unknown) ;;
  4828. *)
  4829. cat >>confdefs.h <<_ACEOF
  4830. #define _LARGE_FILES $ac_cv_sys_large_files
  4831. _ACEOF
  4832. ;;
  4833. esac
  4834. rm -rf conftest*
  4835. fi
  4836. fi
  4837. # Runs configure.host, and assorted other critical bits. Sets
  4838. # up critical shell variables.
  4839. ac_ext=c
  4840. ac_cpp='$CPP $CPPFLAGS'
  4841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4845. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4846. # On Suns, sometimes $CPP names a directory.
  4847. if test -n "$CPP" && test -d "$CPP"; then
  4848. CPP=
  4849. fi
  4850. if test -z "$CPP"; then
  4851. if ${ac_cv_prog_CPP+:} false; then :
  4852. $as_echo_n "(cached) " >&6
  4853. else
  4854. # Double quotes because CPP needs to be expanded
  4855. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4856. do
  4857. ac_preproc_ok=false
  4858. for ac_c_preproc_warn_flag in '' yes
  4859. do
  4860. # Use a header file that comes with gcc, so configuring glibc
  4861. # with a fresh cross-compiler works.
  4862. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4863. # <limits.h> exists even on freestanding compilers.
  4864. # On the NeXT, cc -E runs the code through the compiler's parser,
  4865. # not just through cpp. "Syntax error" is here to catch this case.
  4866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end confdefs.h. */
  4868. #ifdef __STDC__
  4869. # include <limits.h>
  4870. #else
  4871. # include <assert.h>
  4872. #endif
  4873. Syntax error
  4874. _ACEOF
  4875. if ac_fn_c_try_cpp "$LINENO"; then :
  4876. else
  4877. # Broken: fails on valid input.
  4878. continue
  4879. fi
  4880. rm -f conftest.err conftest.i conftest.$ac_ext
  4881. # OK, works on sane cases. Now check whether nonexistent headers
  4882. # can be detected and how.
  4883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4884. /* end confdefs.h. */
  4885. #include <ac_nonexistent.h>
  4886. _ACEOF
  4887. if ac_fn_c_try_cpp "$LINENO"; then :
  4888. # Broken: success on invalid input.
  4889. continue
  4890. else
  4891. # Passes both tests.
  4892. ac_preproc_ok=:
  4893. break
  4894. fi
  4895. rm -f conftest.err conftest.i conftest.$ac_ext
  4896. done
  4897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4898. rm -f conftest.i conftest.err conftest.$ac_ext
  4899. if $ac_preproc_ok; then :
  4900. break
  4901. fi
  4902. done
  4903. ac_cv_prog_CPP=$CPP
  4904. fi
  4905. CPP=$ac_cv_prog_CPP
  4906. else
  4907. ac_cv_prog_CPP=$CPP
  4908. fi
  4909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4910. $as_echo "$CPP" >&6; }
  4911. ac_preproc_ok=false
  4912. for ac_c_preproc_warn_flag in '' yes
  4913. do
  4914. # Use a header file that comes with gcc, so configuring glibc
  4915. # with a fresh cross-compiler works.
  4916. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4917. # <limits.h> exists even on freestanding compilers.
  4918. # On the NeXT, cc -E runs the code through the compiler's parser,
  4919. # not just through cpp. "Syntax error" is here to catch this case.
  4920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4921. /* end confdefs.h. */
  4922. #ifdef __STDC__
  4923. # include <limits.h>
  4924. #else
  4925. # include <assert.h>
  4926. #endif
  4927. Syntax error
  4928. _ACEOF
  4929. if ac_fn_c_try_cpp "$LINENO"; then :
  4930. else
  4931. # Broken: fails on valid input.
  4932. continue
  4933. fi
  4934. rm -f conftest.err conftest.i conftest.$ac_ext
  4935. # OK, works on sane cases. Now check whether nonexistent headers
  4936. # can be detected and how.
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939. #include <ac_nonexistent.h>
  4940. _ACEOF
  4941. if ac_fn_c_try_cpp "$LINENO"; then :
  4942. # Broken: success on invalid input.
  4943. continue
  4944. else
  4945. # Passes both tests.
  4946. ac_preproc_ok=:
  4947. break
  4948. fi
  4949. rm -f conftest.err conftest.i conftest.$ac_ext
  4950. done
  4951. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4952. rm -f conftest.i conftest.err conftest.$ac_ext
  4953. if $ac_preproc_ok; then :
  4954. else
  4955. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4956. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4957. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4958. See \`config.log' for more details" "$LINENO" 5; }
  4959. fi
  4960. ac_ext=c
  4961. ac_cpp='$CPP $CPPFLAGS'
  4962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4966. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4967. if ${ac_cv_path_GREP+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -z "$GREP"; then
  4971. ac_path_GREP_found=false
  4972. # Loop through the user's path and test for each of PROGNAME-LIST
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_prog in grep ggrep; do
  4979. for ac_exec_ext in '' $ac_executable_extensions; do
  4980. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4981. as_fn_executable_p "$ac_path_GREP" || continue
  4982. # Check for GNU ac_path_GREP and select it if it is found.
  4983. # Check for GNU $ac_path_GREP
  4984. case `"$ac_path_GREP" --version 2>&1` in
  4985. *GNU*)
  4986. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4987. *)
  4988. ac_count=0
  4989. $as_echo_n 0123456789 >"conftest.in"
  4990. while :
  4991. do
  4992. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4993. mv "conftest.tmp" "conftest.in"
  4994. cp "conftest.in" "conftest.nl"
  4995. $as_echo 'GREP' >> "conftest.nl"
  4996. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4997. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4998. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4999. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5000. # Best one so far, save it but keep looking for a better one
  5001. ac_cv_path_GREP="$ac_path_GREP"
  5002. ac_path_GREP_max=$ac_count
  5003. fi
  5004. # 10*(2^10) chars as input seems more than enough
  5005. test $ac_count -gt 10 && break
  5006. done
  5007. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5008. esac
  5009. $ac_path_GREP_found && break 3
  5010. done
  5011. done
  5012. done
  5013. IFS=$as_save_IFS
  5014. if test -z "$ac_cv_path_GREP"; then
  5015. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5016. fi
  5017. else
  5018. ac_cv_path_GREP=$GREP
  5019. fi
  5020. fi
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5022. $as_echo "$ac_cv_path_GREP" >&6; }
  5023. GREP="$ac_cv_path_GREP"
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5025. $as_echo_n "checking for egrep... " >&6; }
  5026. if ${ac_cv_path_EGREP+:} false; then :
  5027. $as_echo_n "(cached) " >&6
  5028. else
  5029. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5030. then ac_cv_path_EGREP="$GREP -E"
  5031. else
  5032. if test -z "$EGREP"; then
  5033. ac_path_EGREP_found=false
  5034. # Loop through the user's path and test for each of PROGNAME-LIST
  5035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5036. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5037. do
  5038. IFS=$as_save_IFS
  5039. test -z "$as_dir" && as_dir=.
  5040. for ac_prog in egrep; do
  5041. for ac_exec_ext in '' $ac_executable_extensions; do
  5042. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5043. as_fn_executable_p "$ac_path_EGREP" || continue
  5044. # Check for GNU ac_path_EGREP and select it if it is found.
  5045. # Check for GNU $ac_path_EGREP
  5046. case `"$ac_path_EGREP" --version 2>&1` in
  5047. *GNU*)
  5048. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5049. *)
  5050. ac_count=0
  5051. $as_echo_n 0123456789 >"conftest.in"
  5052. while :
  5053. do
  5054. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5055. mv "conftest.tmp" "conftest.in"
  5056. cp "conftest.in" "conftest.nl"
  5057. $as_echo 'EGREP' >> "conftest.nl"
  5058. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5059. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5060. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5061. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5062. # Best one so far, save it but keep looking for a better one
  5063. ac_cv_path_EGREP="$ac_path_EGREP"
  5064. ac_path_EGREP_max=$ac_count
  5065. fi
  5066. # 10*(2^10) chars as input seems more than enough
  5067. test $ac_count -gt 10 && break
  5068. done
  5069. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5070. esac
  5071. $ac_path_EGREP_found && break 3
  5072. done
  5073. done
  5074. done
  5075. IFS=$as_save_IFS
  5076. if test -z "$ac_cv_path_EGREP"; then
  5077. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5078. fi
  5079. else
  5080. ac_cv_path_EGREP=$EGREP
  5081. fi
  5082. fi
  5083. fi
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5085. $as_echo "$ac_cv_path_EGREP" >&6; }
  5086. EGREP="$ac_cv_path_EGREP"
  5087. # Keep these sync'd with the list in Makefile.am. The first provides an
  5088. # expandable list at autoconf time; the second provides an expandable list
  5089. # (i.e., shell variable) at configure time.
  5090. SUBDIRS='include libsupc++ src src/c++98 src/c++11 src/c++17 src/c++20 src/filesystem src/libbacktrace doc po testsuite python'
  5091. # These need to be absolute paths, yet at the same time need to
  5092. # canonicalize only relative paths, because then amd will not unmount
  5093. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  5094. glibcxx_builddir=`${PWDCMD-pwd}`
  5095. case $srcdir in
  5096. \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
  5097. *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  5098. esac
  5099. toplevel_builddir=${glibcxx_builddir}/..
  5100. toplevel_srcdir=${glibcxx_srcdir}/..
  5101. # We use these options to decide which functions to include. They are
  5102. # set from the top level.
  5103. # Check whether --with-target-subdir was given.
  5104. if test "${with_target_subdir+set}" = set; then :
  5105. withval=$with_target_subdir;
  5106. fi
  5107. # Check whether --with-cross-host was given.
  5108. if test "${with_cross_host+set}" = set; then :
  5109. withval=$with_cross_host;
  5110. fi
  5111. # Check whether --with-newlib was given.
  5112. if test "${with_newlib+set}" = set; then :
  5113. withval=$with_newlib;
  5114. fi
  5115. # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
  5116. # available). Uncomment the next line to force a particular method.
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5118. $as_echo_n "checking whether ln -s works... " >&6; }
  5119. LN_S=$as_ln_s
  5120. if test "$LN_S" = "ln -s"; then
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5122. $as_echo "yes" >&6; }
  5123. else
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5125. $as_echo "no, using $LN_S" >&6; }
  5126. fi
  5127. #LN_S='cp -p'
  5128. if test -n "$ac_tool_prefix"; then
  5129. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5130. set dummy ${ac_tool_prefix}as; ac_word=$2
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5132. $as_echo_n "checking for $ac_word... " >&6; }
  5133. if ${ac_cv_prog_AS+:} false; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. if test -n "$AS"; then
  5137. ac_cv_prog_AS="$AS" # Let the user override the test.
  5138. else
  5139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5140. for as_dir in $PATH
  5141. do
  5142. IFS=$as_save_IFS
  5143. test -z "$as_dir" && as_dir=.
  5144. for ac_exec_ext in '' $ac_executable_extensions; do
  5145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5146. ac_cv_prog_AS="${ac_tool_prefix}as"
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. fi
  5154. fi
  5155. AS=$ac_cv_prog_AS
  5156. if test -n "$AS"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5158. $as_echo "$AS" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. fi
  5164. if test -z "$ac_cv_prog_AS"; then
  5165. ac_ct_AS=$AS
  5166. # Extract the first word of "as", so it can be a program name with args.
  5167. set dummy as; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. if test -n "$ac_ct_AS"; then
  5174. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5175. else
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_exec_ext in '' $ac_executable_extensions; do
  5182. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5183. ac_cv_prog_ac_ct_AS="as"
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5185. break 2
  5186. fi
  5187. done
  5188. done
  5189. IFS=$as_save_IFS
  5190. fi
  5191. fi
  5192. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5193. if test -n "$ac_ct_AS"; then
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5195. $as_echo "$ac_ct_AS" >&6; }
  5196. else
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5198. $as_echo "no" >&6; }
  5199. fi
  5200. if test "x$ac_ct_AS" = x; then
  5201. AS=""
  5202. else
  5203. case $cross_compiling:$ac_tool_warned in
  5204. yes:)
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5207. ac_tool_warned=yes ;;
  5208. esac
  5209. AS=$ac_ct_AS
  5210. fi
  5211. else
  5212. AS="$ac_cv_prog_AS"
  5213. fi
  5214. if test -n "$ac_tool_prefix"; then
  5215. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5216. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5218. $as_echo_n "checking for $ac_word... " >&6; }
  5219. if ${ac_cv_prog_AR+:} false; then :
  5220. $as_echo_n "(cached) " >&6
  5221. else
  5222. if test -n "$AR"; then
  5223. ac_cv_prog_AR="$AR" # Let the user override the test.
  5224. else
  5225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5226. for as_dir in $PATH
  5227. do
  5228. IFS=$as_save_IFS
  5229. test -z "$as_dir" && as_dir=.
  5230. for ac_exec_ext in '' $ac_executable_extensions; do
  5231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5232. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5234. break 2
  5235. fi
  5236. done
  5237. done
  5238. IFS=$as_save_IFS
  5239. fi
  5240. fi
  5241. AR=$ac_cv_prog_AR
  5242. if test -n "$AR"; then
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5244. $as_echo "$AR" >&6; }
  5245. else
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5247. $as_echo "no" >&6; }
  5248. fi
  5249. fi
  5250. if test -z "$ac_cv_prog_AR"; then
  5251. ac_ct_AR=$AR
  5252. # Extract the first word of "ar", so it can be a program name with args.
  5253. set dummy ar; ac_word=$2
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5255. $as_echo_n "checking for $ac_word... " >&6; }
  5256. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. if test -n "$ac_ct_AR"; then
  5260. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5261. else
  5262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5263. for as_dir in $PATH
  5264. do
  5265. IFS=$as_save_IFS
  5266. test -z "$as_dir" && as_dir=.
  5267. for ac_exec_ext in '' $ac_executable_extensions; do
  5268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5269. ac_cv_prog_ac_ct_AR="ar"
  5270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5271. break 2
  5272. fi
  5273. done
  5274. done
  5275. IFS=$as_save_IFS
  5276. fi
  5277. fi
  5278. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5279. if test -n "$ac_ct_AR"; then
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5281. $as_echo "$ac_ct_AR" >&6; }
  5282. else
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5284. $as_echo "no" >&6; }
  5285. fi
  5286. if test "x$ac_ct_AR" = x; then
  5287. AR=""
  5288. else
  5289. case $cross_compiling:$ac_tool_warned in
  5290. yes:)
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5292. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5293. ac_tool_warned=yes ;;
  5294. esac
  5295. AR=$ac_ct_AR
  5296. fi
  5297. else
  5298. AR="$ac_cv_prog_AR"
  5299. fi
  5300. if test -n "$ac_tool_prefix"; then
  5301. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5302. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5304. $as_echo_n "checking for $ac_word... " >&6; }
  5305. if ${ac_cv_prog_RANLIB+:} false; then :
  5306. $as_echo_n "(cached) " >&6
  5307. else
  5308. if test -n "$RANLIB"; then
  5309. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5310. else
  5311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5312. for as_dir in $PATH
  5313. do
  5314. IFS=$as_save_IFS
  5315. test -z "$as_dir" && as_dir=.
  5316. for ac_exec_ext in '' $ac_executable_extensions; do
  5317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5318. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5320. break 2
  5321. fi
  5322. done
  5323. done
  5324. IFS=$as_save_IFS
  5325. fi
  5326. fi
  5327. RANLIB=$ac_cv_prog_RANLIB
  5328. if test -n "$RANLIB"; then
  5329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5330. $as_echo "$RANLIB" >&6; }
  5331. else
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5333. $as_echo "no" >&6; }
  5334. fi
  5335. fi
  5336. if test -z "$ac_cv_prog_RANLIB"; then
  5337. ac_ct_RANLIB=$RANLIB
  5338. # Extract the first word of "ranlib", so it can be a program name with args.
  5339. set dummy ranlib; ac_word=$2
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5341. $as_echo_n "checking for $ac_word... " >&6; }
  5342. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5343. $as_echo_n "(cached) " >&6
  5344. else
  5345. if test -n "$ac_ct_RANLIB"; then
  5346. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5347. else
  5348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5349. for as_dir in $PATH
  5350. do
  5351. IFS=$as_save_IFS
  5352. test -z "$as_dir" && as_dir=.
  5353. for ac_exec_ext in '' $ac_executable_extensions; do
  5354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5355. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5357. break 2
  5358. fi
  5359. done
  5360. done
  5361. IFS=$as_save_IFS
  5362. fi
  5363. fi
  5364. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5365. if test -n "$ac_ct_RANLIB"; then
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5367. $as_echo "$ac_ct_RANLIB" >&6; }
  5368. else
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5370. $as_echo "no" >&6; }
  5371. fi
  5372. if test "x$ac_ct_RANLIB" = x; then
  5373. RANLIB="ranlib-not-found-in-path-error"
  5374. else
  5375. case $cross_compiling:$ac_tool_warned in
  5376. yes:)
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5379. ac_tool_warned=yes ;;
  5380. esac
  5381. RANLIB=$ac_ct_RANLIB
  5382. fi
  5383. else
  5384. RANLIB="$ac_cv_prog_RANLIB"
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  5387. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  5388. # Check whether --enable-maintainer-mode was given.
  5389. if test "${enable_maintainer_mode+set}" = set; then :
  5390. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  5391. else
  5392. USE_MAINTAINER_MODE=no
  5393. fi
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  5395. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  5396. if test $USE_MAINTAINER_MODE = yes; then
  5397. MAINTAINER_MODE_TRUE=
  5398. MAINTAINER_MODE_FALSE='#'
  5399. else
  5400. MAINTAINER_MODE_TRUE='#'
  5401. MAINTAINER_MODE_FALSE=
  5402. fi
  5403. MAINT=$MAINTAINER_MODE_TRUE
  5404. # Set up safe default values for all subsequent AM_CONDITIONAL tests
  5405. # which are themselves conditionally expanded.
  5406. ## (Right now, this only matters for enable_wchar_t, but nothing prevents
  5407. ## other macros from doing the same. This should be automated.) -pme
  5408. # Check for C library flavor since GNU/Linux platforms use different
  5409. # configuration directories depending on the C library in use.
  5410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5411. /* end confdefs.h. */
  5412. #include <stdio.h>
  5413. #if __UCLIBC__
  5414. _using_uclibc
  5415. #endif
  5416. _ACEOF
  5417. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5418. $EGREP "_using_uclibc" >/dev/null 2>&1; then :
  5419. uclibc=yes
  5420. else
  5421. uclibc=no
  5422. fi
  5423. rm -f conftest*
  5424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5425. /* end confdefs.h. */
  5426. #include <stdio.h>
  5427. #if __BIONIC__
  5428. _using_bionic
  5429. #endif
  5430. _ACEOF
  5431. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5432. $EGREP "_using_bionic" >/dev/null 2>&1; then :
  5433. bionic=yes
  5434. else
  5435. bionic=no
  5436. fi
  5437. rm -f conftest*
  5438. # Find platform-specific directories containing configuration info.
  5439. # Also possibly modify flags used elsewhere, as needed by the platform.
  5440. . $glibcxx_srcdir/configure.host
  5441. { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
  5442. $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
  5444. $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
  5445. # Libtool setup.
  5446. if test "x${with_newlib}" != "xyes" &&
  5447. test "x${with_avrlibc}" != "xyes" &&
  5448. test "x$with_headers" != "xno"; then
  5449. enable_dlopen=yes
  5450. fi
  5451. case `pwd` in
  5452. *\ * | *\ *)
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5454. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5455. esac
  5456. macro_version='2.2.7a'
  5457. macro_revision='1.3134'
  5458. ltmain="$ac_aux_dir/ltmain.sh"
  5459. # Backslashify metacharacters that are still active within
  5460. # double-quoted strings.
  5461. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5462. # Same as above, but do not quote variable references.
  5463. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5464. # Sed substitution to delay expansion of an escaped shell variable in a
  5465. # double_quote_subst'ed string.
  5466. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5467. # Sed substitution to delay expansion of an escaped single quote.
  5468. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5469. # Sed substitution to avoid accidental globbing in evaled expressions
  5470. no_glob_subst='s/\*/\\\*/g'
  5471. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5472. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5473. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5475. $as_echo_n "checking how to print strings... " >&6; }
  5476. # Test print first, because it will be a builtin if present.
  5477. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5478. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5479. ECHO='print -r --'
  5480. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5481. ECHO='printf %s\n'
  5482. else
  5483. # Use this function as a fallback that always works.
  5484. func_fallback_echo ()
  5485. {
  5486. eval 'cat <<_LTECHO_EOF
  5487. $1
  5488. _LTECHO_EOF'
  5489. }
  5490. ECHO='func_fallback_echo'
  5491. fi
  5492. # func_echo_all arg...
  5493. # Invoke $ECHO with all args, space-separated.
  5494. func_echo_all ()
  5495. {
  5496. $ECHO ""
  5497. }
  5498. case "$ECHO" in
  5499. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5500. $as_echo "printf" >&6; } ;;
  5501. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5502. $as_echo "print -r" >&6; } ;;
  5503. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5504. $as_echo "cat" >&6; } ;;
  5505. esac
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5507. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5508. if ${ac_cv_path_SED+:} false; then :
  5509. $as_echo_n "(cached) " >&6
  5510. else
  5511. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5512. for ac_i in 1 2 3 4 5 6 7; do
  5513. ac_script="$ac_script$as_nl$ac_script"
  5514. done
  5515. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5516. { ac_script=; unset ac_script;}
  5517. if test -z "$SED"; then
  5518. ac_path_SED_found=false
  5519. # Loop through the user's path and test for each of PROGNAME-LIST
  5520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5521. for as_dir in $PATH
  5522. do
  5523. IFS=$as_save_IFS
  5524. test -z "$as_dir" && as_dir=.
  5525. for ac_prog in sed gsed; do
  5526. for ac_exec_ext in '' $ac_executable_extensions; do
  5527. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5528. as_fn_executable_p "$ac_path_SED" || continue
  5529. # Check for GNU ac_path_SED and select it if it is found.
  5530. # Check for GNU $ac_path_SED
  5531. case `"$ac_path_SED" --version 2>&1` in
  5532. *GNU*)
  5533. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5534. *)
  5535. ac_count=0
  5536. $as_echo_n 0123456789 >"conftest.in"
  5537. while :
  5538. do
  5539. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5540. mv "conftest.tmp" "conftest.in"
  5541. cp "conftest.in" "conftest.nl"
  5542. $as_echo '' >> "conftest.nl"
  5543. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5544. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5545. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5546. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5547. # Best one so far, save it but keep looking for a better one
  5548. ac_cv_path_SED="$ac_path_SED"
  5549. ac_path_SED_max=$ac_count
  5550. fi
  5551. # 10*(2^10) chars as input seems more than enough
  5552. test $ac_count -gt 10 && break
  5553. done
  5554. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5555. esac
  5556. $ac_path_SED_found && break 3
  5557. done
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. if test -z "$ac_cv_path_SED"; then
  5562. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5563. fi
  5564. else
  5565. ac_cv_path_SED=$SED
  5566. fi
  5567. fi
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5569. $as_echo "$ac_cv_path_SED" >&6; }
  5570. SED="$ac_cv_path_SED"
  5571. rm -f conftest.sed
  5572. test -z "$SED" && SED=sed
  5573. Xsed="$SED -e 1s/^X//"
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5575. $as_echo_n "checking for fgrep... " >&6; }
  5576. if ${ac_cv_path_FGREP+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5580. then ac_cv_path_FGREP="$GREP -F"
  5581. else
  5582. if test -z "$FGREP"; then
  5583. ac_path_FGREP_found=false
  5584. # Loop through the user's path and test for each of PROGNAME-LIST
  5585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5586. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5587. do
  5588. IFS=$as_save_IFS
  5589. test -z "$as_dir" && as_dir=.
  5590. for ac_prog in fgrep; do
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5593. as_fn_executable_p "$ac_path_FGREP" || continue
  5594. # Check for GNU ac_path_FGREP and select it if it is found.
  5595. # Check for GNU $ac_path_FGREP
  5596. case `"$ac_path_FGREP" --version 2>&1` in
  5597. *GNU*)
  5598. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5599. *)
  5600. ac_count=0
  5601. $as_echo_n 0123456789 >"conftest.in"
  5602. while :
  5603. do
  5604. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5605. mv "conftest.tmp" "conftest.in"
  5606. cp "conftest.in" "conftest.nl"
  5607. $as_echo 'FGREP' >> "conftest.nl"
  5608. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5609. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5610. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5611. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5612. # Best one so far, save it but keep looking for a better one
  5613. ac_cv_path_FGREP="$ac_path_FGREP"
  5614. ac_path_FGREP_max=$ac_count
  5615. fi
  5616. # 10*(2^10) chars as input seems more than enough
  5617. test $ac_count -gt 10 && break
  5618. done
  5619. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5620. esac
  5621. $ac_path_FGREP_found && break 3
  5622. done
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. if test -z "$ac_cv_path_FGREP"; then
  5627. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5628. fi
  5629. else
  5630. ac_cv_path_FGREP=$FGREP
  5631. fi
  5632. fi
  5633. fi
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5635. $as_echo "$ac_cv_path_FGREP" >&6; }
  5636. FGREP="$ac_cv_path_FGREP"
  5637. test -z "$GREP" && GREP=grep
  5638. # Check whether --with-gnu-ld was given.
  5639. if test "${with_gnu_ld+set}" = set; then :
  5640. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5641. else
  5642. with_gnu_ld=no
  5643. fi
  5644. ac_prog=ld
  5645. if test "$GCC" = yes; then
  5646. # Check if gcc -print-prog-name=ld gives a path.
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5648. $as_echo_n "checking for ld used by $CC... " >&6; }
  5649. case $host in
  5650. *-*-mingw*)
  5651. # gcc leaves a trailing carriage return which upsets mingw
  5652. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5653. *)
  5654. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5655. esac
  5656. case $ac_prog in
  5657. # Accept absolute paths.
  5658. [\\/]* | ?:[\\/]*)
  5659. re_direlt='/[^/][^/]*/\.\./'
  5660. # Canonicalize the pathname of ld
  5661. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5662. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5663. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5664. done
  5665. test -z "$LD" && LD="$ac_prog"
  5666. ;;
  5667. "")
  5668. # If it fails, then pretend we aren't using GCC.
  5669. ac_prog=ld
  5670. ;;
  5671. *)
  5672. # If it is relative, then search for the first ld in PATH.
  5673. with_gnu_ld=unknown
  5674. ;;
  5675. esac
  5676. elif test "$with_gnu_ld" = yes; then
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5678. $as_echo_n "checking for GNU ld... " >&6; }
  5679. else
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5681. $as_echo_n "checking for non-GNU ld... " >&6; }
  5682. fi
  5683. if ${lt_cv_path_LD+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. if test -z "$LD"; then
  5687. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5688. for ac_dir in $PATH; do
  5689. IFS="$lt_save_ifs"
  5690. test -z "$ac_dir" && ac_dir=.
  5691. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5692. lt_cv_path_LD="$ac_dir/$ac_prog"
  5693. # Check to see if the program is GNU ld. I'd rather use --version,
  5694. # but apparently some variants of GNU ld only accept -v.
  5695. # Break only if it was the GNU/non-GNU ld that we prefer.
  5696. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5697. *GNU* | *'with BFD'*)
  5698. test "$with_gnu_ld" != no && break
  5699. ;;
  5700. *)
  5701. test "$with_gnu_ld" != yes && break
  5702. ;;
  5703. esac
  5704. fi
  5705. done
  5706. IFS="$lt_save_ifs"
  5707. else
  5708. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5709. fi
  5710. fi
  5711. LD="$lt_cv_path_LD"
  5712. if test -n "$LD"; then
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5714. $as_echo "$LD" >&6; }
  5715. else
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5717. $as_echo "no" >&6; }
  5718. fi
  5719. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5721. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5722. if ${lt_cv_prog_gnu_ld+:} false; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5726. case `$LD -v 2>&1 </dev/null` in
  5727. *GNU* | *'with BFD'*)
  5728. lt_cv_prog_gnu_ld=yes
  5729. ;;
  5730. *)
  5731. lt_cv_prog_gnu_ld=no
  5732. ;;
  5733. esac
  5734. fi
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5736. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5737. with_gnu_ld=$lt_cv_prog_gnu_ld
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5739. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5740. if ${lt_cv_path_NM+:} false; then :
  5741. $as_echo_n "(cached) " >&6
  5742. else
  5743. if test -n "$NM"; then
  5744. # Let the user override the test.
  5745. lt_cv_path_NM="$NM"
  5746. else
  5747. lt_nm_to_check="${ac_tool_prefix}nm"
  5748. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5749. lt_nm_to_check="$lt_nm_to_check nm"
  5750. fi
  5751. for lt_tmp_nm in $lt_nm_to_check; do
  5752. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5753. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5754. IFS="$lt_save_ifs"
  5755. test -z "$ac_dir" && ac_dir=.
  5756. tmp_nm="$ac_dir/$lt_tmp_nm"
  5757. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5758. # Check to see if the nm accepts a BSD-compat flag.
  5759. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5760. # nm: unknown option "B" ignored
  5761. # Tru64's nm complains that /dev/null is an invalid object file
  5762. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5763. */dev/null* | *'Invalid file or object type'*)
  5764. lt_cv_path_NM="$tmp_nm -B"
  5765. break
  5766. ;;
  5767. *)
  5768. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5769. */dev/null*)
  5770. lt_cv_path_NM="$tmp_nm -p"
  5771. break
  5772. ;;
  5773. *)
  5774. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5775. continue # so that we can try to find one that supports BSD flags
  5776. ;;
  5777. esac
  5778. ;;
  5779. esac
  5780. fi
  5781. done
  5782. IFS="$lt_save_ifs"
  5783. done
  5784. : ${lt_cv_path_NM=no}
  5785. fi
  5786. fi
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5788. $as_echo "$lt_cv_path_NM" >&6; }
  5789. if test "$lt_cv_path_NM" != "no"; then
  5790. NM="$lt_cv_path_NM"
  5791. else
  5792. # Didn't find any BSD compatible name lister, look for dumpbin.
  5793. if test -n "$DUMPBIN"; then :
  5794. # Let the user override the test.
  5795. else
  5796. if test -n "$ac_tool_prefix"; then
  5797. for ac_prog in dumpbin "link -dump"
  5798. do
  5799. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5800. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5802. $as_echo_n "checking for $ac_word... " >&6; }
  5803. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5804. $as_echo_n "(cached) " >&6
  5805. else
  5806. if test -n "$DUMPBIN"; then
  5807. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5808. else
  5809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5810. for as_dir in $PATH
  5811. do
  5812. IFS=$as_save_IFS
  5813. test -z "$as_dir" && as_dir=.
  5814. for ac_exec_ext in '' $ac_executable_extensions; do
  5815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5816. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5818. break 2
  5819. fi
  5820. done
  5821. done
  5822. IFS=$as_save_IFS
  5823. fi
  5824. fi
  5825. DUMPBIN=$ac_cv_prog_DUMPBIN
  5826. if test -n "$DUMPBIN"; then
  5827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5828. $as_echo "$DUMPBIN" >&6; }
  5829. else
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5831. $as_echo "no" >&6; }
  5832. fi
  5833. test -n "$DUMPBIN" && break
  5834. done
  5835. fi
  5836. if test -z "$DUMPBIN"; then
  5837. ac_ct_DUMPBIN=$DUMPBIN
  5838. for ac_prog in dumpbin "link -dump"
  5839. do
  5840. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5841. set dummy $ac_prog; ac_word=$2
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5843. $as_echo_n "checking for $ac_word... " >&6; }
  5844. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5845. $as_echo_n "(cached) " >&6
  5846. else
  5847. if test -n "$ac_ct_DUMPBIN"; then
  5848. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5849. else
  5850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5851. for as_dir in $PATH
  5852. do
  5853. IFS=$as_save_IFS
  5854. test -z "$as_dir" && as_dir=.
  5855. for ac_exec_ext in '' $ac_executable_extensions; do
  5856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5857. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5859. break 2
  5860. fi
  5861. done
  5862. done
  5863. IFS=$as_save_IFS
  5864. fi
  5865. fi
  5866. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5867. if test -n "$ac_ct_DUMPBIN"; then
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5869. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5870. else
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5872. $as_echo "no" >&6; }
  5873. fi
  5874. test -n "$ac_ct_DUMPBIN" && break
  5875. done
  5876. if test "x$ac_ct_DUMPBIN" = x; then
  5877. DUMPBIN=":"
  5878. else
  5879. case $cross_compiling:$ac_tool_warned in
  5880. yes:)
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5883. ac_tool_warned=yes ;;
  5884. esac
  5885. DUMPBIN=$ac_ct_DUMPBIN
  5886. fi
  5887. fi
  5888. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5889. *COFF*)
  5890. DUMPBIN="$DUMPBIN -symbols"
  5891. ;;
  5892. *)
  5893. DUMPBIN=:
  5894. ;;
  5895. esac
  5896. fi
  5897. if test "$DUMPBIN" != ":"; then
  5898. NM="$DUMPBIN"
  5899. fi
  5900. fi
  5901. test -z "$NM" && NM=nm
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5903. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5904. if ${lt_cv_nm_interface+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. lt_cv_nm_interface="BSD nm"
  5908. echo "int some_variable = 0;" > conftest.$ac_ext
  5909. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5910. (eval "$ac_compile" 2>conftest.err)
  5911. cat conftest.err >&5
  5912. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5913. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5914. cat conftest.err >&5
  5915. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5916. cat conftest.out >&5
  5917. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5918. lt_cv_nm_interface="MS dumpbin"
  5919. fi
  5920. rm -f conftest*
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5923. $as_echo "$lt_cv_nm_interface" >&6; }
  5924. # find the maximum length of command line arguments
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5926. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5927. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5928. $as_echo_n "(cached) " >&6
  5929. else
  5930. i=0
  5931. teststring="ABCD"
  5932. case $build_os in
  5933. msdosdjgpp*)
  5934. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5935. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5936. # during glob expansion). Even if it were fixed, the result of this
  5937. # check would be larger than it should be.
  5938. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5939. ;;
  5940. gnu*)
  5941. # Under GNU Hurd, this test is not required because there is
  5942. # no limit to the length of command line arguments.
  5943. # Libtool will interpret -1 as no limit whatsoever
  5944. lt_cv_sys_max_cmd_len=-1;
  5945. ;;
  5946. cygwin* | mingw* | cegcc*)
  5947. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5948. # about 5 minutes as the teststring grows exponentially.
  5949. # Worse, since 9x/ME are not pre-emptively multitasking,
  5950. # you end up with a "frozen" computer, even though with patience
  5951. # the test eventually succeeds (with a max line length of 256k).
  5952. # Instead, let's just punt: use the minimum linelength reported by
  5953. # all of the supported platforms: 8192 (on NT/2K/XP).
  5954. lt_cv_sys_max_cmd_len=8192;
  5955. ;;
  5956. mint*)
  5957. # On MiNT this can take a long time and run out of memory.
  5958. lt_cv_sys_max_cmd_len=8192;
  5959. ;;
  5960. amigaos*)
  5961. # On AmigaOS with pdksh, this test takes hours, literally.
  5962. # So we just punt and use a minimum line length of 8192.
  5963. lt_cv_sys_max_cmd_len=8192;
  5964. ;;
  5965. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5966. # This has been around since 386BSD, at least. Likely further.
  5967. if test -x /sbin/sysctl; then
  5968. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5969. elif test -x /usr/sbin/sysctl; then
  5970. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5971. else
  5972. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5973. fi
  5974. # And add a safety zone
  5975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5976. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5977. ;;
  5978. interix*)
  5979. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5980. lt_cv_sys_max_cmd_len=196608
  5981. ;;
  5982. osf*)
  5983. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5984. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5985. # nice to cause kernel panics so lets avoid the loop below.
  5986. # First set a reasonable default.
  5987. lt_cv_sys_max_cmd_len=16384
  5988. #
  5989. if test -x /sbin/sysconfig; then
  5990. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5991. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5992. esac
  5993. fi
  5994. ;;
  5995. sco3.2v5*)
  5996. lt_cv_sys_max_cmd_len=102400
  5997. ;;
  5998. sysv5* | sco5v6* | sysv4.2uw2*)
  5999. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6000. if test -n "$kargmax"; then
  6001. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6002. else
  6003. lt_cv_sys_max_cmd_len=32768
  6004. fi
  6005. ;;
  6006. *)
  6007. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6008. if test -n "$lt_cv_sys_max_cmd_len"; then
  6009. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6010. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6011. else
  6012. # Make teststring a little bigger before we do anything with it.
  6013. # a 1K string should be a reasonable start.
  6014. for i in 1 2 3 4 5 6 7 8 ; do
  6015. teststring=$teststring$teststring
  6016. done
  6017. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6018. # If test is not a shell built-in, we'll probably end up computing a
  6019. # maximum length that is only half of the actual maximum length, but
  6020. # we can't tell.
  6021. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6022. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6023. test $i != 17 # 1/2 MB should be enough
  6024. do
  6025. i=`expr $i + 1`
  6026. teststring=$teststring$teststring
  6027. done
  6028. # Only check the string length outside the loop.
  6029. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6030. teststring=
  6031. # Add a significant safety factor because C++ compilers can tack on
  6032. # massive amounts of additional arguments before passing them to the
  6033. # linker. It appears as though 1/2 is a usable value.
  6034. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6035. fi
  6036. ;;
  6037. esac
  6038. fi
  6039. if test -n $lt_cv_sys_max_cmd_len ; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6041. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6042. else
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6044. $as_echo "none" >&6; }
  6045. fi
  6046. max_cmd_len=$lt_cv_sys_max_cmd_len
  6047. : ${CP="cp -f"}
  6048. : ${MV="mv -f"}
  6049. : ${RM="rm -f"}
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6051. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6052. # Try some XSI features
  6053. xsi_shell=no
  6054. ( _lt_dummy="a/b/c"
  6055. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6056. = c,a/b,, \
  6057. && eval 'test $(( 1 + 1 )) -eq 2 \
  6058. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6059. && xsi_shell=yes
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6061. $as_echo "$xsi_shell" >&6; }
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6063. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6064. lt_shell_append=no
  6065. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6066. >/dev/null 2>&1 \
  6067. && lt_shell_append=yes
  6068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6069. $as_echo "$lt_shell_append" >&6; }
  6070. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6071. lt_unset=unset
  6072. else
  6073. lt_unset=false
  6074. fi
  6075. # test EBCDIC or ASCII
  6076. case `echo X|tr X '\101'` in
  6077. A) # ASCII based system
  6078. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6079. lt_SP2NL='tr \040 \012'
  6080. lt_NL2SP='tr \015\012 \040\040'
  6081. ;;
  6082. *) # EBCDIC based system
  6083. lt_SP2NL='tr \100 \n'
  6084. lt_NL2SP='tr \r\n \100\100'
  6085. ;;
  6086. esac
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6088. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6089. if ${lt_cv_ld_reload_flag+:} false; then :
  6090. $as_echo_n "(cached) " >&6
  6091. else
  6092. lt_cv_ld_reload_flag='-r'
  6093. fi
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6095. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6096. reload_flag=$lt_cv_ld_reload_flag
  6097. case $reload_flag in
  6098. "" | " "*) ;;
  6099. *) reload_flag=" $reload_flag" ;;
  6100. esac
  6101. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6102. case $host_os in
  6103. darwin*)
  6104. if test "$GCC" = yes; then
  6105. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6106. else
  6107. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6108. fi
  6109. ;;
  6110. esac
  6111. if test -n "$ac_tool_prefix"; then
  6112. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6113. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6115. $as_echo_n "checking for $ac_word... " >&6; }
  6116. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6117. $as_echo_n "(cached) " >&6
  6118. else
  6119. if test -n "$OBJDUMP"; then
  6120. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6121. else
  6122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6123. for as_dir in $PATH
  6124. do
  6125. IFS=$as_save_IFS
  6126. test -z "$as_dir" && as_dir=.
  6127. for ac_exec_ext in '' $ac_executable_extensions; do
  6128. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6129. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6131. break 2
  6132. fi
  6133. done
  6134. done
  6135. IFS=$as_save_IFS
  6136. fi
  6137. fi
  6138. OBJDUMP=$ac_cv_prog_OBJDUMP
  6139. if test -n "$OBJDUMP"; then
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6141. $as_echo "$OBJDUMP" >&6; }
  6142. else
  6143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6144. $as_echo "no" >&6; }
  6145. fi
  6146. fi
  6147. if test -z "$ac_cv_prog_OBJDUMP"; then
  6148. ac_ct_OBJDUMP=$OBJDUMP
  6149. # Extract the first word of "objdump", so it can be a program name with args.
  6150. set dummy objdump; ac_word=$2
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6152. $as_echo_n "checking for $ac_word... " >&6; }
  6153. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6154. $as_echo_n "(cached) " >&6
  6155. else
  6156. if test -n "$ac_ct_OBJDUMP"; then
  6157. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6158. else
  6159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6160. for as_dir in $PATH
  6161. do
  6162. IFS=$as_save_IFS
  6163. test -z "$as_dir" && as_dir=.
  6164. for ac_exec_ext in '' $ac_executable_extensions; do
  6165. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6166. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6168. break 2
  6169. fi
  6170. done
  6171. done
  6172. IFS=$as_save_IFS
  6173. fi
  6174. fi
  6175. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6176. if test -n "$ac_ct_OBJDUMP"; then
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6178. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6179. else
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6181. $as_echo "no" >&6; }
  6182. fi
  6183. if test "x$ac_ct_OBJDUMP" = x; then
  6184. OBJDUMP="false"
  6185. else
  6186. case $cross_compiling:$ac_tool_warned in
  6187. yes:)
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6189. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6190. ac_tool_warned=yes ;;
  6191. esac
  6192. OBJDUMP=$ac_ct_OBJDUMP
  6193. fi
  6194. else
  6195. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6196. fi
  6197. test -z "$OBJDUMP" && OBJDUMP=objdump
  6198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6199. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6200. if ${lt_cv_deplibs_check_method+:} false; then :
  6201. $as_echo_n "(cached) " >&6
  6202. else
  6203. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6204. lt_cv_file_magic_test_file=
  6205. lt_cv_deplibs_check_method='unknown'
  6206. # Need to set the preceding variable on all platforms that support
  6207. # interlibrary dependencies.
  6208. # 'none' -- dependencies not supported.
  6209. # `unknown' -- same as none, but documents that we really don't know.
  6210. # 'pass_all' -- all dependencies passed with no checks.
  6211. # 'test_compile' -- check by making test program.
  6212. # 'file_magic [[regex]]' -- check by looking for files in library path
  6213. # which responds to the $file_magic_cmd with a given extended regex.
  6214. # If you have `file' or equivalent on your system and you're not sure
  6215. # whether `pass_all' will *always* work, you probably want this one.
  6216. case $host_os in
  6217. aix[4-9]*)
  6218. lt_cv_deplibs_check_method=pass_all
  6219. ;;
  6220. beos*)
  6221. lt_cv_deplibs_check_method=pass_all
  6222. ;;
  6223. bsdi[45]*)
  6224. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6225. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6226. lt_cv_file_magic_test_file=/shlib/libc.so
  6227. ;;
  6228. cygwin*)
  6229. # func_win32_libid is a shell function defined in ltmain.sh
  6230. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6231. lt_cv_file_magic_cmd='func_win32_libid'
  6232. ;;
  6233. mingw* | pw32*)
  6234. # Base MSYS/MinGW do not provide the 'file' command needed by
  6235. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6236. # unless we find 'file', for example because we are cross-compiling.
  6237. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6238. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6240. lt_cv_file_magic_cmd='func_win32_libid'
  6241. else
  6242. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6243. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6244. fi
  6245. ;;
  6246. cegcc*)
  6247. # use the weaker test based on 'objdump'. See mingw*.
  6248. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6249. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6250. ;;
  6251. darwin* | rhapsody*)
  6252. lt_cv_deplibs_check_method=pass_all
  6253. ;;
  6254. freebsd* | dragonfly*)
  6255. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6256. case $host_cpu in
  6257. i*86 )
  6258. # Not sure whether the presence of OpenBSD here was a mistake.
  6259. # Let's accept both of them until this is cleared up.
  6260. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6261. lt_cv_file_magic_cmd=/usr/bin/file
  6262. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6263. ;;
  6264. esac
  6265. else
  6266. lt_cv_deplibs_check_method=pass_all
  6267. fi
  6268. ;;
  6269. gnu*)
  6270. lt_cv_deplibs_check_method=pass_all
  6271. ;;
  6272. haiku*)
  6273. lt_cv_deplibs_check_method=pass_all
  6274. ;;
  6275. hpux10.20* | hpux11*)
  6276. lt_cv_file_magic_cmd=/usr/bin/file
  6277. case $host_cpu in
  6278. ia64*)
  6279. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6280. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6281. ;;
  6282. hppa*64*)
  6283. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  6284. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6285. ;;
  6286. *)
  6287. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6288. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6289. ;;
  6290. esac
  6291. ;;
  6292. interix[3-9]*)
  6293. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6294. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6295. ;;
  6296. irix5* | irix6* | nonstopux*)
  6297. case $LD in
  6298. *-32|*"-32 ") libmagic=32-bit;;
  6299. *-n32|*"-n32 ") libmagic=N32;;
  6300. *-64|*"-64 ") libmagic=64-bit;;
  6301. *) libmagic=never-match;;
  6302. esac
  6303. lt_cv_deplibs_check_method=pass_all
  6304. ;;
  6305. # This must be Linux ELF.
  6306. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  6307. lt_cv_deplibs_check_method=pass_all
  6308. ;;
  6309. netbsd*)
  6310. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6311. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6312. else
  6313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6314. fi
  6315. ;;
  6316. newos6*)
  6317. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6318. lt_cv_file_magic_cmd=/usr/bin/file
  6319. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6320. ;;
  6321. *nto* | *qnx*)
  6322. lt_cv_deplibs_check_method=pass_all
  6323. ;;
  6324. openbsd*)
  6325. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6326. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6327. else
  6328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6329. fi
  6330. ;;
  6331. osf3* | osf4* | osf5*)
  6332. lt_cv_deplibs_check_method=pass_all
  6333. ;;
  6334. rdos*)
  6335. lt_cv_deplibs_check_method=pass_all
  6336. ;;
  6337. solaris*)
  6338. lt_cv_deplibs_check_method=pass_all
  6339. ;;
  6340. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6341. lt_cv_deplibs_check_method=pass_all
  6342. ;;
  6343. sysv4 | sysv4.3*)
  6344. case $host_vendor in
  6345. motorola)
  6346. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  6347. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6348. ;;
  6349. ncr)
  6350. lt_cv_deplibs_check_method=pass_all
  6351. ;;
  6352. sequent)
  6353. lt_cv_file_magic_cmd='/bin/file'
  6354. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6355. ;;
  6356. sni)
  6357. lt_cv_file_magic_cmd='/bin/file'
  6358. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6359. lt_cv_file_magic_test_file=/lib/libc.so
  6360. ;;
  6361. siemens)
  6362. lt_cv_deplibs_check_method=pass_all
  6363. ;;
  6364. pc)
  6365. lt_cv_deplibs_check_method=pass_all
  6366. ;;
  6367. esac
  6368. ;;
  6369. tpf*)
  6370. lt_cv_deplibs_check_method=pass_all
  6371. ;;
  6372. esac
  6373. fi
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6375. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6376. file_magic_cmd=$lt_cv_file_magic_cmd
  6377. deplibs_check_method=$lt_cv_deplibs_check_method
  6378. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. $as_echo_n "checking for $ac_word... " >&6; }
  6384. if ${ac_cv_prog_AR+:} false; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. if test -n "$AR"; then
  6388. ac_cv_prog_AR="$AR" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6397. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. AR=$ac_cv_prog_AR
  6407. if test -n "$AR"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6409. $as_echo "$AR" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_AR"; then
  6416. ac_ct_AR=$AR
  6417. # Extract the first word of "ar", so it can be a program name with args.
  6418. set dummy ar; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$ac_ct_AR"; then
  6425. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6434. ac_cv_prog_ac_ct_AR="ar"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6444. if test -n "$ac_ct_AR"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6446. $as_echo "$ac_ct_AR" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_AR" = x; then
  6452. AR="false"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6458. ac_tool_warned=yes ;;
  6459. esac
  6460. AR=$ac_ct_AR
  6461. fi
  6462. else
  6463. AR="$ac_cv_prog_AR"
  6464. fi
  6465. test -z "$AR" && AR=ar
  6466. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6467. if test -n "$ac_tool_prefix"; then
  6468. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6469. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6471. $as_echo_n "checking for $ac_word... " >&6; }
  6472. if ${ac_cv_prog_STRIP+:} false; then :
  6473. $as_echo_n "(cached) " >&6
  6474. else
  6475. if test -n "$STRIP"; then
  6476. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6477. else
  6478. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6479. for as_dir in $PATH
  6480. do
  6481. IFS=$as_save_IFS
  6482. test -z "$as_dir" && as_dir=.
  6483. for ac_exec_ext in '' $ac_executable_extensions; do
  6484. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6485. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6486. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6487. break 2
  6488. fi
  6489. done
  6490. done
  6491. IFS=$as_save_IFS
  6492. fi
  6493. fi
  6494. STRIP=$ac_cv_prog_STRIP
  6495. if test -n "$STRIP"; then
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6497. $as_echo "$STRIP" >&6; }
  6498. else
  6499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6500. $as_echo "no" >&6; }
  6501. fi
  6502. fi
  6503. if test -z "$ac_cv_prog_STRIP"; then
  6504. ac_ct_STRIP=$STRIP
  6505. # Extract the first word of "strip", so it can be a program name with args.
  6506. set dummy strip; ac_word=$2
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6508. $as_echo_n "checking for $ac_word... " >&6; }
  6509. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6510. $as_echo_n "(cached) " >&6
  6511. else
  6512. if test -n "$ac_ct_STRIP"; then
  6513. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6514. else
  6515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6516. for as_dir in $PATH
  6517. do
  6518. IFS=$as_save_IFS
  6519. test -z "$as_dir" && as_dir=.
  6520. for ac_exec_ext in '' $ac_executable_extensions; do
  6521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6522. ac_cv_prog_ac_ct_STRIP="strip"
  6523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6524. break 2
  6525. fi
  6526. done
  6527. done
  6528. IFS=$as_save_IFS
  6529. fi
  6530. fi
  6531. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6532. if test -n "$ac_ct_STRIP"; then
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6534. $as_echo "$ac_ct_STRIP" >&6; }
  6535. else
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6537. $as_echo "no" >&6; }
  6538. fi
  6539. if test "x$ac_ct_STRIP" = x; then
  6540. STRIP=":"
  6541. else
  6542. case $cross_compiling:$ac_tool_warned in
  6543. yes:)
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6545. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548. STRIP=$ac_ct_STRIP
  6549. fi
  6550. else
  6551. STRIP="$ac_cv_prog_STRIP"
  6552. fi
  6553. test -z "$STRIP" && STRIP=:
  6554. if test -n "$ac_tool_prefix"; then
  6555. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6556. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6558. $as_echo_n "checking for $ac_word... " >&6; }
  6559. if ${ac_cv_prog_RANLIB+:} false; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. if test -n "$RANLIB"; then
  6563. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6564. else
  6565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6566. for as_dir in $PATH
  6567. do
  6568. IFS=$as_save_IFS
  6569. test -z "$as_dir" && as_dir=.
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6572. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6574. break 2
  6575. fi
  6576. done
  6577. done
  6578. IFS=$as_save_IFS
  6579. fi
  6580. fi
  6581. RANLIB=$ac_cv_prog_RANLIB
  6582. if test -n "$RANLIB"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6584. $as_echo "$RANLIB" >&6; }
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. fi
  6589. fi
  6590. if test -z "$ac_cv_prog_RANLIB"; then
  6591. ac_ct_RANLIB=$RANLIB
  6592. # Extract the first word of "ranlib", so it can be a program name with args.
  6593. set dummy ranlib; ac_word=$2
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6595. $as_echo_n "checking for $ac_word... " >&6; }
  6596. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. if test -n "$ac_ct_RANLIB"; then
  6600. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6609. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. fi
  6617. fi
  6618. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6619. if test -n "$ac_ct_RANLIB"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6621. $as_echo "$ac_ct_RANLIB" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6624. $as_echo "no" >&6; }
  6625. fi
  6626. if test "x$ac_ct_RANLIB" = x; then
  6627. RANLIB=":"
  6628. else
  6629. case $cross_compiling:$ac_tool_warned in
  6630. yes:)
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6633. ac_tool_warned=yes ;;
  6634. esac
  6635. RANLIB=$ac_ct_RANLIB
  6636. fi
  6637. else
  6638. RANLIB="$ac_cv_prog_RANLIB"
  6639. fi
  6640. test -z "$RANLIB" && RANLIB=:
  6641. # Determine commands to create old-style static archives.
  6642. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6643. old_postinstall_cmds='chmod 644 $oldlib'
  6644. old_postuninstall_cmds=
  6645. if test -n "$RANLIB"; then
  6646. case $host_os in
  6647. openbsd*)
  6648. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6649. ;;
  6650. *)
  6651. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6652. ;;
  6653. esac
  6654. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6655. fi
  6656. case $host_os in
  6657. darwin*)
  6658. lock_old_archive_extraction=yes ;;
  6659. *)
  6660. lock_old_archive_extraction=no ;;
  6661. esac
  6662. # If no C compiler was specified, use CC.
  6663. LTCC=${LTCC-"$CC"}
  6664. # If no C compiler flags were specified, use CFLAGS.
  6665. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6666. # Allow CC to be a program name with arguments.
  6667. compiler=$CC
  6668. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6670. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6671. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. # These are sane defaults that work on at least a few old systems.
  6675. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6676. # Character class describing NM global symbol codes.
  6677. symcode='[BCDEGRST]'
  6678. # Regexp to match symbols that can be accessed directly from C.
  6679. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6680. # Define system-specific variables.
  6681. case $host_os in
  6682. aix*)
  6683. symcode='[BCDT]'
  6684. ;;
  6685. cygwin* | mingw* | pw32* | cegcc*)
  6686. symcode='[ABCDGISTW]'
  6687. ;;
  6688. hpux*)
  6689. if test "$host_cpu" = ia64; then
  6690. symcode='[ABCDEGRST]'
  6691. fi
  6692. ;;
  6693. irix* | nonstopux*)
  6694. symcode='[BCDEGRST]'
  6695. ;;
  6696. osf*)
  6697. symcode='[BCDEGQRST]'
  6698. ;;
  6699. solaris*)
  6700. symcode='[BDRT]'
  6701. ;;
  6702. sco3.2v5*)
  6703. symcode='[DT]'
  6704. ;;
  6705. sysv4.2uw2*)
  6706. symcode='[DT]'
  6707. ;;
  6708. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6709. symcode='[ABDT]'
  6710. ;;
  6711. sysv4)
  6712. symcode='[DFNSTU]'
  6713. ;;
  6714. esac
  6715. # If we're using GNU nm, then use its standard symbol codes.
  6716. case `$NM -V 2>&1` in
  6717. *GNU* | *'with BFD'*)
  6718. symcode='[ABCDGIRSTW]' ;;
  6719. esac
  6720. # Transform an extracted symbol line into a proper C declaration.
  6721. # Some systems (esp. on ia64) link data and code symbols differently,
  6722. # so use this general approach.
  6723. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6724. # Transform an extracted symbol line into symbol name and symbol address
  6725. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6726. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6727. # Handle CRLF in mingw tool chain
  6728. opt_cr=
  6729. case $build_os in
  6730. mingw*)
  6731. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6732. ;;
  6733. esac
  6734. # Try without a prefix underscore, then with it.
  6735. for ac_symprfx in "" "_"; do
  6736. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6737. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6738. # Write the raw and C identifiers.
  6739. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6740. # Fake it for dumpbin and say T for any non-static function
  6741. # and D for any global variable.
  6742. # Also find C++ and __fastcall symbols from MSVC++,
  6743. # which start with @ or ?.
  6744. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6745. " {last_section=section; section=\$ 3};"\
  6746. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6747. " \$ 0!~/External *\|/{next};"\
  6748. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6749. " {if(hide[section]) next};"\
  6750. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6751. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6752. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6753. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6754. " ' prfx=^$ac_symprfx"
  6755. else
  6756. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6757. fi
  6758. # Check to see that the pipe works correctly.
  6759. pipe_works=no
  6760. rm -f conftest*
  6761. cat > conftest.$ac_ext <<_LT_EOF
  6762. #ifdef __cplusplus
  6763. extern "C" {
  6764. #endif
  6765. char nm_test_var;
  6766. void nm_test_func(void);
  6767. void nm_test_func(void){}
  6768. #ifdef __cplusplus
  6769. }
  6770. #endif
  6771. int main(){nm_test_var='a';nm_test_func();return(0);}
  6772. _LT_EOF
  6773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6774. (eval $ac_compile) 2>&5
  6775. ac_status=$?
  6776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6777. test $ac_status = 0; }; then
  6778. # Now try to grab the symbols.
  6779. nlist=conftest.nm
  6780. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6781. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6782. ac_status=$?
  6783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6784. test $ac_status = 0; } && test -s "$nlist"; then
  6785. # Try sorting and uniquifying the output.
  6786. if sort "$nlist" | uniq > "$nlist"T; then
  6787. mv -f "$nlist"T "$nlist"
  6788. else
  6789. rm -f "$nlist"T
  6790. fi
  6791. # Make sure that we snagged all the symbols we need.
  6792. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6793. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6794. cat <<_LT_EOF > conftest.$ac_ext
  6795. #ifdef __cplusplus
  6796. extern "C" {
  6797. #endif
  6798. _LT_EOF
  6799. # Now generate the symbol file.
  6800. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6801. cat <<_LT_EOF >> conftest.$ac_ext
  6802. /* The mapping between symbol names and symbols. */
  6803. const struct {
  6804. const char *name;
  6805. void *address;
  6806. }
  6807. lt__PROGRAM__LTX_preloaded_symbols[] =
  6808. {
  6809. { "@PROGRAM@", (void *) 0 },
  6810. _LT_EOF
  6811. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6812. cat <<\_LT_EOF >> conftest.$ac_ext
  6813. {0, (void *) 0}
  6814. };
  6815. /* This works around a problem in FreeBSD linker */
  6816. #ifdef FREEBSD_WORKAROUND
  6817. static const void *lt_preloaded_setup() {
  6818. return lt__PROGRAM__LTX_preloaded_symbols;
  6819. }
  6820. #endif
  6821. #ifdef __cplusplus
  6822. }
  6823. #endif
  6824. _LT_EOF
  6825. # Now try linking the two files.
  6826. mv conftest.$ac_objext conftstm.$ac_objext
  6827. lt_save_LIBS="$LIBS"
  6828. lt_save_CFLAGS="$CFLAGS"
  6829. LIBS="conftstm.$ac_objext"
  6830. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6831. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6832. (eval $ac_link) 2>&5
  6833. ac_status=$?
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6835. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6836. pipe_works=yes
  6837. fi
  6838. LIBS="$lt_save_LIBS"
  6839. CFLAGS="$lt_save_CFLAGS"
  6840. else
  6841. echo "cannot find nm_test_func in $nlist" >&5
  6842. fi
  6843. else
  6844. echo "cannot find nm_test_var in $nlist" >&5
  6845. fi
  6846. else
  6847. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6848. fi
  6849. else
  6850. echo "$progname: failed program was:" >&5
  6851. cat conftest.$ac_ext >&5
  6852. fi
  6853. rm -rf conftest* conftst*
  6854. # Do not use the global_symbol_pipe unless it works.
  6855. if test "$pipe_works" = yes; then
  6856. break
  6857. else
  6858. lt_cv_sys_global_symbol_pipe=
  6859. fi
  6860. done
  6861. fi
  6862. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6863. lt_cv_sys_global_symbol_to_cdecl=
  6864. fi
  6865. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6867. $as_echo "failed" >&6; }
  6868. else
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6870. $as_echo "ok" >&6; }
  6871. fi
  6872. # Check whether --enable-libtool-lock was given.
  6873. if test "${enable_libtool_lock+set}" = set; then :
  6874. enableval=$enable_libtool_lock;
  6875. fi
  6876. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6877. # Some flags need to be propagated to the compiler or linker for good
  6878. # libtool support.
  6879. case $host in
  6880. ia64-*-hpux*)
  6881. # Find out which ABI we are using.
  6882. echo 'int i;' > conftest.$ac_ext
  6883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6884. (eval $ac_compile) 2>&5
  6885. ac_status=$?
  6886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6887. test $ac_status = 0; }; then
  6888. case `/usr/bin/file conftest.$ac_objext` in
  6889. *ELF-32*)
  6890. HPUX_IA64_MODE="32"
  6891. ;;
  6892. *ELF-64*)
  6893. HPUX_IA64_MODE="64"
  6894. ;;
  6895. esac
  6896. fi
  6897. rm -rf conftest*
  6898. ;;
  6899. *-*-irix6*)
  6900. # Find out which ABI we are using.
  6901. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6902. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6903. (eval $ac_compile) 2>&5
  6904. ac_status=$?
  6905. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6906. test $ac_status = 0; }; then
  6907. if test "$lt_cv_prog_gnu_ld" = yes; then
  6908. case `/usr/bin/file conftest.$ac_objext` in
  6909. *32-bit*)
  6910. LD="${LD-ld} -melf32bsmip"
  6911. ;;
  6912. *N32*)
  6913. LD="${LD-ld} -melf32bmipn32"
  6914. ;;
  6915. *64-bit*)
  6916. LD="${LD-ld} -melf64bmip"
  6917. ;;
  6918. esac
  6919. else
  6920. case `/usr/bin/file conftest.$ac_objext` in
  6921. *32-bit*)
  6922. LD="${LD-ld} -32"
  6923. ;;
  6924. *N32*)
  6925. LD="${LD-ld} -n32"
  6926. ;;
  6927. *64-bit*)
  6928. LD="${LD-ld} -64"
  6929. ;;
  6930. esac
  6931. fi
  6932. fi
  6933. rm -rf conftest*
  6934. ;;
  6935. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6936. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6937. # Find out which ABI we are using.
  6938. echo 'int i;' > conftest.$ac_ext
  6939. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6940. (eval $ac_compile) 2>&5
  6941. ac_status=$?
  6942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6943. test $ac_status = 0; }; then
  6944. case `/usr/bin/file conftest.o` in
  6945. *32-bit*)
  6946. case $host in
  6947. x86_64-*kfreebsd*-gnu)
  6948. LD="${LD-ld} -m elf_i386_fbsd"
  6949. ;;
  6950. x86_64-*linux*)
  6951. case `/usr/bin/file conftest.o` in
  6952. *x86-64*)
  6953. LD="${LD-ld} -m elf32_x86_64"
  6954. ;;
  6955. *)
  6956. LD="${LD-ld} -m elf_i386"
  6957. ;;
  6958. esac
  6959. ;;
  6960. powerpc64le-*linux*)
  6961. LD="${LD-ld} -m elf32lppclinux"
  6962. ;;
  6963. powerpc64-*linux*)
  6964. LD="${LD-ld} -m elf32ppclinux"
  6965. ;;
  6966. s390x-*linux*)
  6967. LD="${LD-ld} -m elf_s390"
  6968. ;;
  6969. sparc64-*linux*)
  6970. LD="${LD-ld} -m elf32_sparc"
  6971. ;;
  6972. esac
  6973. ;;
  6974. *64-bit*)
  6975. case $host in
  6976. x86_64-*kfreebsd*-gnu)
  6977. LD="${LD-ld} -m elf_x86_64_fbsd"
  6978. ;;
  6979. x86_64-*linux*)
  6980. LD="${LD-ld} -m elf_x86_64"
  6981. ;;
  6982. powerpcle-*linux*)
  6983. LD="${LD-ld} -m elf64lppc"
  6984. ;;
  6985. powerpc-*linux*)
  6986. LD="${LD-ld} -m elf64ppc"
  6987. ;;
  6988. s390*-*linux*|s390*-*tpf*)
  6989. LD="${LD-ld} -m elf64_s390"
  6990. ;;
  6991. sparc*-*linux*)
  6992. LD="${LD-ld} -m elf64_sparc"
  6993. ;;
  6994. esac
  6995. ;;
  6996. esac
  6997. fi
  6998. rm -rf conftest*
  6999. ;;
  7000. *-*-sco3.2v5*)
  7001. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7002. SAVE_CFLAGS="$CFLAGS"
  7003. CFLAGS="$CFLAGS -belf"
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7005. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7006. if ${lt_cv_cc_needs_belf+:} false; then :
  7007. $as_echo_n "(cached) " >&6
  7008. else
  7009. ac_ext=c
  7010. ac_cpp='$CPP $CPPFLAGS'
  7011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7014. if test x$gcc_no_link = xyes; then
  7015. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7016. fi
  7017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7018. /* end confdefs.h. */
  7019. int
  7020. main ()
  7021. {
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. if ac_fn_c_try_link "$LINENO"; then :
  7027. lt_cv_cc_needs_belf=yes
  7028. else
  7029. lt_cv_cc_needs_belf=no
  7030. fi
  7031. rm -f core conftest.err conftest.$ac_objext \
  7032. conftest$ac_exeext conftest.$ac_ext
  7033. ac_ext=c
  7034. ac_cpp='$CPP $CPPFLAGS'
  7035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7038. fi
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7040. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7041. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7042. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7043. CFLAGS="$SAVE_CFLAGS"
  7044. fi
  7045. ;;
  7046. sparc*-*solaris*)
  7047. # Find out which ABI we are using.
  7048. echo 'int i;' > conftest.$ac_ext
  7049. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7050. (eval $ac_compile) 2>&5
  7051. ac_status=$?
  7052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7053. test $ac_status = 0; }; then
  7054. case `/usr/bin/file conftest.o` in
  7055. *64-bit*)
  7056. case $lt_cv_prog_gnu_ld in
  7057. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7058. *)
  7059. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7060. LD="${LD-ld} -64"
  7061. fi
  7062. ;;
  7063. esac
  7064. ;;
  7065. esac
  7066. fi
  7067. rm -rf conftest*
  7068. ;;
  7069. esac
  7070. need_locks="$enable_libtool_lock"
  7071. case $host_os in
  7072. rhapsody* | darwin*)
  7073. if test -n "$ac_tool_prefix"; then
  7074. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7075. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7077. $as_echo_n "checking for $ac_word... " >&6; }
  7078. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. if test -n "$DSYMUTIL"; then
  7082. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7083. else
  7084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7085. for as_dir in $PATH
  7086. do
  7087. IFS=$as_save_IFS
  7088. test -z "$as_dir" && as_dir=.
  7089. for ac_exec_ext in '' $ac_executable_extensions; do
  7090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7091. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7093. break 2
  7094. fi
  7095. done
  7096. done
  7097. IFS=$as_save_IFS
  7098. fi
  7099. fi
  7100. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7101. if test -n "$DSYMUTIL"; then
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7103. $as_echo "$DSYMUTIL" >&6; }
  7104. else
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7106. $as_echo "no" >&6; }
  7107. fi
  7108. fi
  7109. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7110. ac_ct_DSYMUTIL=$DSYMUTIL
  7111. # Extract the first word of "dsymutil", so it can be a program name with args.
  7112. set dummy dsymutil; ac_word=$2
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7114. $as_echo_n "checking for $ac_word... " >&6; }
  7115. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7116. $as_echo_n "(cached) " >&6
  7117. else
  7118. if test -n "$ac_ct_DSYMUTIL"; then
  7119. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7120. else
  7121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7122. for as_dir in $PATH
  7123. do
  7124. IFS=$as_save_IFS
  7125. test -z "$as_dir" && as_dir=.
  7126. for ac_exec_ext in '' $ac_executable_extensions; do
  7127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7128. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7130. break 2
  7131. fi
  7132. done
  7133. done
  7134. IFS=$as_save_IFS
  7135. fi
  7136. fi
  7137. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7138. if test -n "$ac_ct_DSYMUTIL"; then
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7140. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7141. else
  7142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7143. $as_echo "no" >&6; }
  7144. fi
  7145. if test "x$ac_ct_DSYMUTIL" = x; then
  7146. DSYMUTIL=":"
  7147. else
  7148. case $cross_compiling:$ac_tool_warned in
  7149. yes:)
  7150. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7151. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7152. ac_tool_warned=yes ;;
  7153. esac
  7154. DSYMUTIL=$ac_ct_DSYMUTIL
  7155. fi
  7156. else
  7157. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7158. fi
  7159. if test -n "$ac_tool_prefix"; then
  7160. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7161. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7163. $as_echo_n "checking for $ac_word... " >&6; }
  7164. if ${ac_cv_prog_NMEDIT+:} false; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. if test -n "$NMEDIT"; then
  7168. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7169. else
  7170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7171. for as_dir in $PATH
  7172. do
  7173. IFS=$as_save_IFS
  7174. test -z "$as_dir" && as_dir=.
  7175. for ac_exec_ext in '' $ac_executable_extensions; do
  7176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7177. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7179. break 2
  7180. fi
  7181. done
  7182. done
  7183. IFS=$as_save_IFS
  7184. fi
  7185. fi
  7186. NMEDIT=$ac_cv_prog_NMEDIT
  7187. if test -n "$NMEDIT"; then
  7188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7189. $as_echo "$NMEDIT" >&6; }
  7190. else
  7191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7192. $as_echo "no" >&6; }
  7193. fi
  7194. fi
  7195. if test -z "$ac_cv_prog_NMEDIT"; then
  7196. ac_ct_NMEDIT=$NMEDIT
  7197. # Extract the first word of "nmedit", so it can be a program name with args.
  7198. set dummy nmedit; ac_word=$2
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7200. $as_echo_n "checking for $ac_word... " >&6; }
  7201. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if test -n "$ac_ct_NMEDIT"; then
  7205. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7206. else
  7207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7208. for as_dir in $PATH
  7209. do
  7210. IFS=$as_save_IFS
  7211. test -z "$as_dir" && as_dir=.
  7212. for ac_exec_ext in '' $ac_executable_extensions; do
  7213. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7214. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7216. break 2
  7217. fi
  7218. done
  7219. done
  7220. IFS=$as_save_IFS
  7221. fi
  7222. fi
  7223. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7224. if test -n "$ac_ct_NMEDIT"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7226. $as_echo "$ac_ct_NMEDIT" >&6; }
  7227. else
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7229. $as_echo "no" >&6; }
  7230. fi
  7231. if test "x$ac_ct_NMEDIT" = x; then
  7232. NMEDIT=":"
  7233. else
  7234. case $cross_compiling:$ac_tool_warned in
  7235. yes:)
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7237. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7238. ac_tool_warned=yes ;;
  7239. esac
  7240. NMEDIT=$ac_ct_NMEDIT
  7241. fi
  7242. else
  7243. NMEDIT="$ac_cv_prog_NMEDIT"
  7244. fi
  7245. if test -n "$ac_tool_prefix"; then
  7246. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7247. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7249. $as_echo_n "checking for $ac_word... " >&6; }
  7250. if ${ac_cv_prog_LIPO+:} false; then :
  7251. $as_echo_n "(cached) " >&6
  7252. else
  7253. if test -n "$LIPO"; then
  7254. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7255. else
  7256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7257. for as_dir in $PATH
  7258. do
  7259. IFS=$as_save_IFS
  7260. test -z "$as_dir" && as_dir=.
  7261. for ac_exec_ext in '' $ac_executable_extensions; do
  7262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7263. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7265. break 2
  7266. fi
  7267. done
  7268. done
  7269. IFS=$as_save_IFS
  7270. fi
  7271. fi
  7272. LIPO=$ac_cv_prog_LIPO
  7273. if test -n "$LIPO"; then
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7275. $as_echo "$LIPO" >&6; }
  7276. else
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7278. $as_echo "no" >&6; }
  7279. fi
  7280. fi
  7281. if test -z "$ac_cv_prog_LIPO"; then
  7282. ac_ct_LIPO=$LIPO
  7283. # Extract the first word of "lipo", so it can be a program name with args.
  7284. set dummy lipo; ac_word=$2
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7286. $as_echo_n "checking for $ac_word... " >&6; }
  7287. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7288. $as_echo_n "(cached) " >&6
  7289. else
  7290. if test -n "$ac_ct_LIPO"; then
  7291. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7292. else
  7293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7294. for as_dir in $PATH
  7295. do
  7296. IFS=$as_save_IFS
  7297. test -z "$as_dir" && as_dir=.
  7298. for ac_exec_ext in '' $ac_executable_extensions; do
  7299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7300. ac_cv_prog_ac_ct_LIPO="lipo"
  7301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7302. break 2
  7303. fi
  7304. done
  7305. done
  7306. IFS=$as_save_IFS
  7307. fi
  7308. fi
  7309. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7310. if test -n "$ac_ct_LIPO"; then
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7312. $as_echo "$ac_ct_LIPO" >&6; }
  7313. else
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7315. $as_echo "no" >&6; }
  7316. fi
  7317. if test "x$ac_ct_LIPO" = x; then
  7318. LIPO=":"
  7319. else
  7320. case $cross_compiling:$ac_tool_warned in
  7321. yes:)
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7323. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7324. ac_tool_warned=yes ;;
  7325. esac
  7326. LIPO=$ac_ct_LIPO
  7327. fi
  7328. else
  7329. LIPO="$ac_cv_prog_LIPO"
  7330. fi
  7331. if test -n "$ac_tool_prefix"; then
  7332. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7333. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7335. $as_echo_n "checking for $ac_word... " >&6; }
  7336. if ${ac_cv_prog_OTOOL+:} false; then :
  7337. $as_echo_n "(cached) " >&6
  7338. else
  7339. if test -n "$OTOOL"; then
  7340. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7341. else
  7342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7343. for as_dir in $PATH
  7344. do
  7345. IFS=$as_save_IFS
  7346. test -z "$as_dir" && as_dir=.
  7347. for ac_exec_ext in '' $ac_executable_extensions; do
  7348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7349. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7351. break 2
  7352. fi
  7353. done
  7354. done
  7355. IFS=$as_save_IFS
  7356. fi
  7357. fi
  7358. OTOOL=$ac_cv_prog_OTOOL
  7359. if test -n "$OTOOL"; then
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7361. $as_echo "$OTOOL" >&6; }
  7362. else
  7363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. $as_echo "no" >&6; }
  7365. fi
  7366. fi
  7367. if test -z "$ac_cv_prog_OTOOL"; then
  7368. ac_ct_OTOOL=$OTOOL
  7369. # Extract the first word of "otool", so it can be a program name with args.
  7370. set dummy otool; ac_word=$2
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7372. $as_echo_n "checking for $ac_word... " >&6; }
  7373. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. if test -n "$ac_ct_OTOOL"; then
  7377. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7378. else
  7379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7380. for as_dir in $PATH
  7381. do
  7382. IFS=$as_save_IFS
  7383. test -z "$as_dir" && as_dir=.
  7384. for ac_exec_ext in '' $ac_executable_extensions; do
  7385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7386. ac_cv_prog_ac_ct_OTOOL="otool"
  7387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7388. break 2
  7389. fi
  7390. done
  7391. done
  7392. IFS=$as_save_IFS
  7393. fi
  7394. fi
  7395. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7396. if test -n "$ac_ct_OTOOL"; then
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7398. $as_echo "$ac_ct_OTOOL" >&6; }
  7399. else
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7401. $as_echo "no" >&6; }
  7402. fi
  7403. if test "x$ac_ct_OTOOL" = x; then
  7404. OTOOL=":"
  7405. else
  7406. case $cross_compiling:$ac_tool_warned in
  7407. yes:)
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7409. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7410. ac_tool_warned=yes ;;
  7411. esac
  7412. OTOOL=$ac_ct_OTOOL
  7413. fi
  7414. else
  7415. OTOOL="$ac_cv_prog_OTOOL"
  7416. fi
  7417. if test -n "$ac_tool_prefix"; then
  7418. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7419. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7421. $as_echo_n "checking for $ac_word... " >&6; }
  7422. if ${ac_cv_prog_OTOOL64+:} false; then :
  7423. $as_echo_n "(cached) " >&6
  7424. else
  7425. if test -n "$OTOOL64"; then
  7426. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7427. else
  7428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7429. for as_dir in $PATH
  7430. do
  7431. IFS=$as_save_IFS
  7432. test -z "$as_dir" && as_dir=.
  7433. for ac_exec_ext in '' $ac_executable_extensions; do
  7434. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7435. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7436. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7437. break 2
  7438. fi
  7439. done
  7440. done
  7441. IFS=$as_save_IFS
  7442. fi
  7443. fi
  7444. OTOOL64=$ac_cv_prog_OTOOL64
  7445. if test -n "$OTOOL64"; then
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7447. $as_echo "$OTOOL64" >&6; }
  7448. else
  7449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7450. $as_echo "no" >&6; }
  7451. fi
  7452. fi
  7453. if test -z "$ac_cv_prog_OTOOL64"; then
  7454. ac_ct_OTOOL64=$OTOOL64
  7455. # Extract the first word of "otool64", so it can be a program name with args.
  7456. set dummy otool64; ac_word=$2
  7457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7458. $as_echo_n "checking for $ac_word... " >&6; }
  7459. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7460. $as_echo_n "(cached) " >&6
  7461. else
  7462. if test -n "$ac_ct_OTOOL64"; then
  7463. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7464. else
  7465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7466. for as_dir in $PATH
  7467. do
  7468. IFS=$as_save_IFS
  7469. test -z "$as_dir" && as_dir=.
  7470. for ac_exec_ext in '' $ac_executable_extensions; do
  7471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7472. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7474. break 2
  7475. fi
  7476. done
  7477. done
  7478. IFS=$as_save_IFS
  7479. fi
  7480. fi
  7481. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7482. if test -n "$ac_ct_OTOOL64"; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7484. $as_echo "$ac_ct_OTOOL64" >&6; }
  7485. else
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7487. $as_echo "no" >&6; }
  7488. fi
  7489. if test "x$ac_ct_OTOOL64" = x; then
  7490. OTOOL64=":"
  7491. else
  7492. case $cross_compiling:$ac_tool_warned in
  7493. yes:)
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7495. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7496. ac_tool_warned=yes ;;
  7497. esac
  7498. OTOOL64=$ac_ct_OTOOL64
  7499. fi
  7500. else
  7501. OTOOL64="$ac_cv_prog_OTOOL64"
  7502. fi
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7504. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7505. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7506. $as_echo_n "(cached) " >&6
  7507. else
  7508. lt_cv_apple_cc_single_mod=no
  7509. if test -z "${LT_MULTI_MODULE}"; then
  7510. # By default we will add the -single_module flag. You can override
  7511. # by either setting the environment variable LT_MULTI_MODULE
  7512. # non-empty at configure time, or by adding -multi_module to the
  7513. # link flags.
  7514. rm -rf libconftest.dylib*
  7515. echo "int foo(void){return 1;}" > conftest.c
  7516. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7517. -dynamiclib -Wl,-single_module conftest.c" >&5
  7518. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7519. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7520. _lt_result=$?
  7521. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7522. lt_cv_apple_cc_single_mod=yes
  7523. else
  7524. cat conftest.err >&5
  7525. fi
  7526. rm -rf libconftest.dylib*
  7527. rm -f conftest.*
  7528. fi
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7531. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7533. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7534. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7535. $as_echo_n "(cached) " >&6
  7536. else
  7537. lt_cv_ld_exported_symbols_list=no
  7538. save_LDFLAGS=$LDFLAGS
  7539. echo "_main" > conftest.sym
  7540. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7541. if test x$gcc_no_link = xyes; then
  7542. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7543. fi
  7544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7545. /* end confdefs.h. */
  7546. int
  7547. main ()
  7548. {
  7549. ;
  7550. return 0;
  7551. }
  7552. _ACEOF
  7553. if ac_fn_c_try_link "$LINENO"; then :
  7554. lt_cv_ld_exported_symbols_list=yes
  7555. else
  7556. lt_cv_ld_exported_symbols_list=no
  7557. fi
  7558. rm -f core conftest.err conftest.$ac_objext \
  7559. conftest$ac_exeext conftest.$ac_ext
  7560. LDFLAGS="$save_LDFLAGS"
  7561. fi
  7562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7563. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7565. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7566. if ${lt_cv_ld_force_load+:} false; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. lt_cv_ld_force_load=no
  7570. cat > conftest.c << _LT_EOF
  7571. int forced_loaded() { return 2;}
  7572. _LT_EOF
  7573. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7574. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7575. echo "$AR cru libconftest.a conftest.o" >&5
  7576. $AR cru libconftest.a conftest.o 2>&5
  7577. cat > conftest.c << _LT_EOF
  7578. int main() { return 0;}
  7579. _LT_EOF
  7580. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7581. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7582. _lt_result=$?
  7583. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7584. lt_cv_ld_force_load=yes
  7585. else
  7586. cat conftest.err >&5
  7587. fi
  7588. rm -f conftest.err libconftest.a conftest conftest.c
  7589. rm -rf conftest.dSYM
  7590. fi
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7592. $as_echo "$lt_cv_ld_force_load" >&6; }
  7593. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7594. # build without first building modern cctools / linker.
  7595. case $host_cpu-$host_os in
  7596. *-rhapsody* | *-darwin1.[012])
  7597. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7598. *-darwin1.*)
  7599. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7600. *-darwin*)
  7601. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7602. # deployment target is forced to an earlier version.
  7603. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7604. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7605. ;;
  7606. 10.[012][,.]*)
  7607. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7608. ;;
  7609. *)
  7610. ;;
  7611. esac
  7612. ;;
  7613. esac
  7614. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7615. _lt_dar_single_mod='$single_module'
  7616. fi
  7617. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7618. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7619. else
  7620. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7621. fi
  7622. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7623. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7624. else
  7625. _lt_dsymutil=
  7626. fi
  7627. ;;
  7628. esac
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7630. $as_echo_n "checking for ANSI C header files... " >&6; }
  7631. if ${ac_cv_header_stdc+:} false; then :
  7632. $as_echo_n "(cached) " >&6
  7633. else
  7634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7635. /* end confdefs.h. */
  7636. #include <stdlib.h>
  7637. #include <stdarg.h>
  7638. #include <string.h>
  7639. #include <float.h>
  7640. int
  7641. main ()
  7642. {
  7643. ;
  7644. return 0;
  7645. }
  7646. _ACEOF
  7647. if ac_fn_c_try_compile "$LINENO"; then :
  7648. ac_cv_header_stdc=yes
  7649. else
  7650. ac_cv_header_stdc=no
  7651. fi
  7652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7653. if test $ac_cv_header_stdc = yes; then
  7654. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7656. /* end confdefs.h. */
  7657. #include <string.h>
  7658. _ACEOF
  7659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7660. $EGREP "memchr" >/dev/null 2>&1; then :
  7661. else
  7662. ac_cv_header_stdc=no
  7663. fi
  7664. rm -f conftest*
  7665. fi
  7666. if test $ac_cv_header_stdc = yes; then
  7667. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7669. /* end confdefs.h. */
  7670. #include <stdlib.h>
  7671. _ACEOF
  7672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7673. $EGREP "free" >/dev/null 2>&1; then :
  7674. else
  7675. ac_cv_header_stdc=no
  7676. fi
  7677. rm -f conftest*
  7678. fi
  7679. if test $ac_cv_header_stdc = yes; then
  7680. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7681. if test "$cross_compiling" = yes; then :
  7682. :
  7683. else
  7684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7685. /* end confdefs.h. */
  7686. #include <ctype.h>
  7687. #include <stdlib.h>
  7688. #if ((' ' & 0x0FF) == 0x020)
  7689. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7690. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7691. #else
  7692. # define ISLOWER(c) \
  7693. (('a' <= (c) && (c) <= 'i') \
  7694. || ('j' <= (c) && (c) <= 'r') \
  7695. || ('s' <= (c) && (c) <= 'z'))
  7696. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7697. #endif
  7698. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7699. int
  7700. main ()
  7701. {
  7702. int i;
  7703. for (i = 0; i < 256; i++)
  7704. if (XOR (islower (i), ISLOWER (i))
  7705. || toupper (i) != TOUPPER (i))
  7706. return 2;
  7707. return 0;
  7708. }
  7709. _ACEOF
  7710. if ac_fn_c_try_run "$LINENO"; then :
  7711. else
  7712. ac_cv_header_stdc=no
  7713. fi
  7714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7715. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7716. fi
  7717. fi
  7718. fi
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7720. $as_echo "$ac_cv_header_stdc" >&6; }
  7721. if test $ac_cv_header_stdc = yes; then
  7722. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7723. fi
  7724. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7725. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7726. inttypes.h stdint.h unistd.h
  7727. do :
  7728. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7729. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7730. "
  7731. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7732. cat >>confdefs.h <<_ACEOF
  7733. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7734. _ACEOF
  7735. fi
  7736. done
  7737. for ac_header in dlfcn.h
  7738. do :
  7739. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7740. "
  7741. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7742. cat >>confdefs.h <<_ACEOF
  7743. #define HAVE_DLFCN_H 1
  7744. _ACEOF
  7745. fi
  7746. done
  7747. # Set options
  7748. enable_win32_dll=no
  7749. # Check whether --enable-shared was given.
  7750. if test "${enable_shared+set}" = set; then :
  7751. enableval=$enable_shared; p=${PACKAGE-default}
  7752. case $enableval in
  7753. yes) enable_shared=yes ;;
  7754. no) enable_shared=no ;;
  7755. *)
  7756. enable_shared=no
  7757. # Look at the argument we got. We use all the common list separators.
  7758. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7759. for pkg in $enableval; do
  7760. IFS="$lt_save_ifs"
  7761. if test "X$pkg" = "X$p"; then
  7762. enable_shared=yes
  7763. fi
  7764. done
  7765. IFS="$lt_save_ifs"
  7766. ;;
  7767. esac
  7768. else
  7769. enable_shared=yes
  7770. fi
  7771. # Check whether --enable-static was given.
  7772. if test "${enable_static+set}" = set; then :
  7773. enableval=$enable_static; p=${PACKAGE-default}
  7774. case $enableval in
  7775. yes) enable_static=yes ;;
  7776. no) enable_static=no ;;
  7777. *)
  7778. enable_static=no
  7779. # Look at the argument we got. We use all the common list separators.
  7780. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7781. for pkg in $enableval; do
  7782. IFS="$lt_save_ifs"
  7783. if test "X$pkg" = "X$p"; then
  7784. enable_static=yes
  7785. fi
  7786. done
  7787. IFS="$lt_save_ifs"
  7788. ;;
  7789. esac
  7790. else
  7791. enable_static=yes
  7792. fi
  7793. # Check whether --with-pic was given.
  7794. if test "${with_pic+set}" = set; then :
  7795. withval=$with_pic; pic_mode="$withval"
  7796. else
  7797. pic_mode=default
  7798. fi
  7799. test -z "$pic_mode" && pic_mode=default
  7800. # Check whether --enable-fast-install was given.
  7801. if test "${enable_fast_install+set}" = set; then :
  7802. enableval=$enable_fast_install; p=${PACKAGE-default}
  7803. case $enableval in
  7804. yes) enable_fast_install=yes ;;
  7805. no) enable_fast_install=no ;;
  7806. *)
  7807. enable_fast_install=no
  7808. # Look at the argument we got. We use all the common list separators.
  7809. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7810. for pkg in $enableval; do
  7811. IFS="$lt_save_ifs"
  7812. if test "X$pkg" = "X$p"; then
  7813. enable_fast_install=yes
  7814. fi
  7815. done
  7816. IFS="$lt_save_ifs"
  7817. ;;
  7818. esac
  7819. else
  7820. enable_fast_install=yes
  7821. fi
  7822. # This can be used to rebuild libtool when needed
  7823. LIBTOOL_DEPS="$ltmain"
  7824. # Always use our own libtool.
  7825. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7826. test -z "$LN_S" && LN_S="ln -s"
  7827. if test -n "${ZSH_VERSION+set}" ; then
  7828. setopt NO_GLOB_SUBST
  7829. fi
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7831. $as_echo_n "checking for objdir... " >&6; }
  7832. if ${lt_cv_objdir+:} false; then :
  7833. $as_echo_n "(cached) " >&6
  7834. else
  7835. rm -f .libs 2>/dev/null
  7836. mkdir .libs 2>/dev/null
  7837. if test -d .libs; then
  7838. lt_cv_objdir=.libs
  7839. else
  7840. # MS-DOS does not allow filenames that begin with a dot.
  7841. lt_cv_objdir=_libs
  7842. fi
  7843. rmdir .libs 2>/dev/null
  7844. fi
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7846. $as_echo "$lt_cv_objdir" >&6; }
  7847. objdir=$lt_cv_objdir
  7848. cat >>confdefs.h <<_ACEOF
  7849. #define LT_OBJDIR "$lt_cv_objdir/"
  7850. _ACEOF
  7851. case $host_os in
  7852. aix3*)
  7853. # AIX sometimes has problems with the GCC collect2 program. For some
  7854. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7855. # vanish in a puff of smoke.
  7856. if test "X${COLLECT_NAMES+set}" != Xset; then
  7857. COLLECT_NAMES=
  7858. export COLLECT_NAMES
  7859. fi
  7860. ;;
  7861. esac
  7862. # Global variables:
  7863. ofile=libtool
  7864. can_build_shared=yes
  7865. # All known linkers require a `.a' archive for static linking (except MSVC,
  7866. # which needs '.lib').
  7867. libext=a
  7868. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7869. old_CC="$CC"
  7870. old_CFLAGS="$CFLAGS"
  7871. # Set sane defaults for various variables
  7872. test -z "$CC" && CC=cc
  7873. test -z "$LTCC" && LTCC=$CC
  7874. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7875. test -z "$LD" && LD=ld
  7876. test -z "$ac_objext" && ac_objext=o
  7877. for cc_temp in $compiler""; do
  7878. case $cc_temp in
  7879. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7880. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7881. \-*) ;;
  7882. *) break;;
  7883. esac
  7884. done
  7885. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7886. # Only perform the check for file, if the check method requires it
  7887. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7888. case $deplibs_check_method in
  7889. file_magic*)
  7890. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7892. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7893. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7894. $as_echo_n "(cached) " >&6
  7895. else
  7896. case $MAGIC_CMD in
  7897. [\\/*] | ?:[\\/]*)
  7898. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7899. ;;
  7900. *)
  7901. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7902. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7903. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7904. for ac_dir in $ac_dummy; do
  7905. IFS="$lt_save_ifs"
  7906. test -z "$ac_dir" && ac_dir=.
  7907. if test -f $ac_dir/${ac_tool_prefix}file; then
  7908. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7909. if test -n "$file_magic_test_file"; then
  7910. case $deplibs_check_method in
  7911. "file_magic "*)
  7912. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7913. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7914. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7915. $EGREP "$file_magic_regex" > /dev/null; then
  7916. :
  7917. else
  7918. cat <<_LT_EOF 1>&2
  7919. *** Warning: the command libtool uses to detect shared libraries,
  7920. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7921. *** The result is that libtool may fail to recognize shared libraries
  7922. *** as such. This will affect the creation of libtool libraries that
  7923. *** depend on shared libraries, but programs linked with such libtool
  7924. *** libraries will work regardless of this problem. Nevertheless, you
  7925. *** may want to report the problem to your system manager and/or to
  7926. *** bug-libtool@gnu.org
  7927. _LT_EOF
  7928. fi ;;
  7929. esac
  7930. fi
  7931. break
  7932. fi
  7933. done
  7934. IFS="$lt_save_ifs"
  7935. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7936. ;;
  7937. esac
  7938. fi
  7939. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7940. if test -n "$MAGIC_CMD"; then
  7941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7942. $as_echo "$MAGIC_CMD" >&6; }
  7943. else
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7945. $as_echo "no" >&6; }
  7946. fi
  7947. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7948. if test -n "$ac_tool_prefix"; then
  7949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7950. $as_echo_n "checking for file... " >&6; }
  7951. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7952. $as_echo_n "(cached) " >&6
  7953. else
  7954. case $MAGIC_CMD in
  7955. [\\/*] | ?:[\\/]*)
  7956. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7957. ;;
  7958. *)
  7959. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7960. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7961. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7962. for ac_dir in $ac_dummy; do
  7963. IFS="$lt_save_ifs"
  7964. test -z "$ac_dir" && ac_dir=.
  7965. if test -f $ac_dir/file; then
  7966. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7967. if test -n "$file_magic_test_file"; then
  7968. case $deplibs_check_method in
  7969. "file_magic "*)
  7970. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7971. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7972. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7973. $EGREP "$file_magic_regex" > /dev/null; then
  7974. :
  7975. else
  7976. cat <<_LT_EOF 1>&2
  7977. *** Warning: the command libtool uses to detect shared libraries,
  7978. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7979. *** The result is that libtool may fail to recognize shared libraries
  7980. *** as such. This will affect the creation of libtool libraries that
  7981. *** depend on shared libraries, but programs linked with such libtool
  7982. *** libraries will work regardless of this problem. Nevertheless, you
  7983. *** may want to report the problem to your system manager and/or to
  7984. *** bug-libtool@gnu.org
  7985. _LT_EOF
  7986. fi ;;
  7987. esac
  7988. fi
  7989. break
  7990. fi
  7991. done
  7992. IFS="$lt_save_ifs"
  7993. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7994. ;;
  7995. esac
  7996. fi
  7997. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7998. if test -n "$MAGIC_CMD"; then
  7999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8000. $as_echo "$MAGIC_CMD" >&6; }
  8001. else
  8002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8003. $as_echo "no" >&6; }
  8004. fi
  8005. else
  8006. MAGIC_CMD=:
  8007. fi
  8008. fi
  8009. fi
  8010. ;;
  8011. esac
  8012. # Use C for the default configuration in the libtool script
  8013. lt_save_CC="$CC"
  8014. ac_ext=c
  8015. ac_cpp='$CPP $CPPFLAGS'
  8016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8019. # Source file extension for C test sources.
  8020. ac_ext=c
  8021. # Object file extension for compiled C test sources.
  8022. objext=o
  8023. objext=$objext
  8024. # Code to be used in simple compile tests
  8025. lt_simple_compile_test_code="int some_variable = 0;"
  8026. # Code to be used in simple link tests
  8027. lt_simple_link_test_code='int main(){return(0);}'
  8028. # If no C compiler was specified, use CC.
  8029. LTCC=${LTCC-"$CC"}
  8030. # If no C compiler flags were specified, use CFLAGS.
  8031. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8032. # Allow CC to be a program name with arguments.
  8033. compiler=$CC
  8034. # Save the default compiler, since it gets overwritten when the other
  8035. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8036. compiler_DEFAULT=$CC
  8037. # save warnings/boilerplate of simple test code
  8038. ac_outfile=conftest.$ac_objext
  8039. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8040. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8041. _lt_compiler_boilerplate=`cat conftest.err`
  8042. $RM conftest*
  8043. ac_outfile=conftest.$ac_objext
  8044. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8045. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8046. _lt_linker_boilerplate=`cat conftest.err`
  8047. $RM -r conftest*
  8048. ## CAVEAT EMPTOR:
  8049. ## There is no encapsulation within the following macros, do not change
  8050. ## the running order or otherwise move them around unless you know exactly
  8051. ## what you are doing...
  8052. if test -n "$compiler"; then
  8053. lt_prog_compiler_no_builtin_flag=
  8054. if test "$GCC" = yes; then
  8055. case $cc_basename in
  8056. nvcc*)
  8057. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8058. *)
  8059. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8060. esac
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8062. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8063. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8064. $as_echo_n "(cached) " >&6
  8065. else
  8066. lt_cv_prog_compiler_rtti_exceptions=no
  8067. ac_outfile=conftest.$ac_objext
  8068. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8069. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8070. # Insert the option either (1) after the last *FLAGS variable, or
  8071. # (2) before a word containing "conftest.", or (3) at the end.
  8072. # Note that $ac_compile itself does not contain backslashes and begins
  8073. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8074. # The option is referenced via a variable to avoid confusing sed.
  8075. lt_compile=`echo "$ac_compile" | $SED \
  8076. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8077. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8078. -e 's:$: $lt_compiler_flag:'`
  8079. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8080. (eval "$lt_compile" 2>conftest.err)
  8081. ac_status=$?
  8082. cat conftest.err >&5
  8083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8084. if (exit $ac_status) && test -s "$ac_outfile"; then
  8085. # The compiler can only warn and ignore the option if not recognized
  8086. # So say no if there are warnings other than the usual output.
  8087. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8088. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8089. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8090. lt_cv_prog_compiler_rtti_exceptions=yes
  8091. fi
  8092. fi
  8093. $RM conftest*
  8094. fi
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8096. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8097. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8098. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8099. else
  8100. :
  8101. fi
  8102. fi
  8103. lt_prog_compiler_wl=
  8104. lt_prog_compiler_pic=
  8105. lt_prog_compiler_static=
  8106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8107. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8108. if test "$GCC" = yes; then
  8109. lt_prog_compiler_wl='-Wl,'
  8110. lt_prog_compiler_static='-static'
  8111. case $host_os in
  8112. aix*)
  8113. # All AIX code is PIC.
  8114. if test "$host_cpu" = ia64; then
  8115. # AIX 5 now supports IA64 processor
  8116. lt_prog_compiler_static='-Bstatic'
  8117. fi
  8118. lt_prog_compiler_pic='-fPIC'
  8119. ;;
  8120. amigaos*)
  8121. case $host_cpu in
  8122. powerpc)
  8123. # see comment about AmigaOS4 .so support
  8124. lt_prog_compiler_pic='-fPIC'
  8125. ;;
  8126. m68k)
  8127. # FIXME: we need at least 68020 code to build shared libraries, but
  8128. # adding the `-m68020' flag to GCC prevents building anything better,
  8129. # like `-m68040'.
  8130. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8131. ;;
  8132. esac
  8133. ;;
  8134. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8135. # PIC is the default for these OSes.
  8136. ;;
  8137. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8138. # This hack is so that the source file can tell whether it is being
  8139. # built for inclusion in a dll (and should export symbols for example).
  8140. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8141. # (--disable-auto-import) libraries
  8142. lt_prog_compiler_pic='-DDLL_EXPORT'
  8143. ;;
  8144. darwin* | rhapsody*)
  8145. # PIC is the default on this platform
  8146. # Common symbols not allowed in MH_DYLIB files
  8147. lt_prog_compiler_pic='-fno-common'
  8148. ;;
  8149. haiku*)
  8150. # PIC is the default for Haiku.
  8151. # The "-static" flag exists, but is broken.
  8152. lt_prog_compiler_static=
  8153. ;;
  8154. hpux*)
  8155. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8156. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8157. # sets the default TLS model and affects inlining.
  8158. case $host_cpu in
  8159. hppa*64*)
  8160. # +Z the default
  8161. ;;
  8162. *)
  8163. lt_prog_compiler_pic='-fPIC'
  8164. ;;
  8165. esac
  8166. ;;
  8167. interix[3-9]*)
  8168. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8169. # Instead, we relocate shared libraries at runtime.
  8170. ;;
  8171. msdosdjgpp*)
  8172. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8173. # on systems that don't support them.
  8174. lt_prog_compiler_can_build_shared=no
  8175. enable_shared=no
  8176. ;;
  8177. *nto* | *qnx*)
  8178. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8179. # it will coredump.
  8180. lt_prog_compiler_pic='-fPIC -shared'
  8181. ;;
  8182. sysv4*MP*)
  8183. if test -d /usr/nec; then
  8184. lt_prog_compiler_pic=-Kconform_pic
  8185. fi
  8186. ;;
  8187. *)
  8188. lt_prog_compiler_pic='-fPIC'
  8189. ;;
  8190. esac
  8191. case $cc_basename in
  8192. nvcc*) # Cuda Compiler Driver 2.2
  8193. lt_prog_compiler_wl='-Xlinker '
  8194. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8195. ;;
  8196. esac
  8197. else
  8198. # PORTME Check for flag to pass linker flags through the system compiler.
  8199. case $host_os in
  8200. aix*)
  8201. lt_prog_compiler_wl='-Wl,'
  8202. if test "$host_cpu" = ia64; then
  8203. # AIX 5 now supports IA64 processor
  8204. lt_prog_compiler_static='-Bstatic'
  8205. else
  8206. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8207. fi
  8208. ;;
  8209. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8210. # This hack is so that the source file can tell whether it is being
  8211. # built for inclusion in a dll (and should export symbols for example).
  8212. lt_prog_compiler_pic='-DDLL_EXPORT'
  8213. ;;
  8214. hpux9* | hpux10* | hpux11*)
  8215. lt_prog_compiler_wl='-Wl,'
  8216. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8217. # not for PA HP-UX.
  8218. case $host_cpu in
  8219. hppa*64*|ia64*)
  8220. # +Z the default
  8221. ;;
  8222. *)
  8223. lt_prog_compiler_pic='+Z'
  8224. ;;
  8225. esac
  8226. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8227. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8228. ;;
  8229. irix5* | irix6* | nonstopux*)
  8230. lt_prog_compiler_wl='-Wl,'
  8231. # PIC (with -KPIC) is the default.
  8232. lt_prog_compiler_static='-non_shared'
  8233. ;;
  8234. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8235. case $cc_basename in
  8236. # old Intel for x86_64 which still supported -KPIC.
  8237. ecc*)
  8238. lt_prog_compiler_wl='-Wl,'
  8239. lt_prog_compiler_pic='-KPIC'
  8240. lt_prog_compiler_static='-static'
  8241. ;;
  8242. # icc used to be incompatible with GCC.
  8243. # ICC 10 doesn't accept -KPIC any more.
  8244. icc* | ifort*)
  8245. lt_prog_compiler_wl='-Wl,'
  8246. lt_prog_compiler_pic='-fPIC'
  8247. lt_prog_compiler_static='-static'
  8248. ;;
  8249. # Lahey Fortran 8.1.
  8250. lf95*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. lt_prog_compiler_pic='--shared'
  8253. lt_prog_compiler_static='--static'
  8254. ;;
  8255. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8256. # Portland Group compilers (*not* the Pentium gcc compiler,
  8257. # which looks to be a dead project)
  8258. lt_prog_compiler_wl='-Wl,'
  8259. lt_prog_compiler_pic='-fpic'
  8260. lt_prog_compiler_static='-Bstatic'
  8261. ;;
  8262. ccc*)
  8263. lt_prog_compiler_wl='-Wl,'
  8264. # All Alpha code is PIC.
  8265. lt_prog_compiler_static='-non_shared'
  8266. ;;
  8267. xl* | bgxl* | bgf* | mpixl*)
  8268. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-qpic'
  8271. lt_prog_compiler_static='-qstaticlink'
  8272. ;;
  8273. *)
  8274. case `$CC -V 2>&1 | sed 5q` in
  8275. *Sun\ F* | *Sun*Fortran*)
  8276. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8277. lt_prog_compiler_pic='-KPIC'
  8278. lt_prog_compiler_static='-Bstatic'
  8279. lt_prog_compiler_wl=''
  8280. ;;
  8281. *Sun\ C*)
  8282. # Sun C 5.9
  8283. lt_prog_compiler_pic='-KPIC'
  8284. lt_prog_compiler_static='-Bstatic'
  8285. lt_prog_compiler_wl='-Wl,'
  8286. ;;
  8287. esac
  8288. ;;
  8289. esac
  8290. ;;
  8291. newsos6)
  8292. lt_prog_compiler_pic='-KPIC'
  8293. lt_prog_compiler_static='-Bstatic'
  8294. ;;
  8295. *nto* | *qnx*)
  8296. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8297. # it will coredump.
  8298. lt_prog_compiler_pic='-fPIC -shared'
  8299. ;;
  8300. osf3* | osf4* | osf5*)
  8301. lt_prog_compiler_wl='-Wl,'
  8302. # All OSF/1 code is PIC.
  8303. lt_prog_compiler_static='-non_shared'
  8304. ;;
  8305. rdos*)
  8306. lt_prog_compiler_static='-non_shared'
  8307. ;;
  8308. solaris*)
  8309. lt_prog_compiler_pic='-KPIC'
  8310. lt_prog_compiler_static='-Bstatic'
  8311. case $cc_basename in
  8312. f77* | f90* | f95*)
  8313. lt_prog_compiler_wl='-Qoption ld ';;
  8314. *)
  8315. lt_prog_compiler_wl='-Wl,';;
  8316. esac
  8317. ;;
  8318. sunos4*)
  8319. lt_prog_compiler_wl='-Qoption ld '
  8320. lt_prog_compiler_pic='-PIC'
  8321. lt_prog_compiler_static='-Bstatic'
  8322. ;;
  8323. sysv4 | sysv4.2uw2* | sysv4.3*)
  8324. lt_prog_compiler_wl='-Wl,'
  8325. lt_prog_compiler_pic='-KPIC'
  8326. lt_prog_compiler_static='-Bstatic'
  8327. ;;
  8328. sysv4*MP*)
  8329. if test -d /usr/nec ;then
  8330. lt_prog_compiler_pic='-Kconform_pic'
  8331. lt_prog_compiler_static='-Bstatic'
  8332. fi
  8333. ;;
  8334. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8335. lt_prog_compiler_wl='-Wl,'
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. unicos*)
  8340. lt_prog_compiler_wl='-Wl,'
  8341. lt_prog_compiler_can_build_shared=no
  8342. ;;
  8343. uts4*)
  8344. lt_prog_compiler_pic='-pic'
  8345. lt_prog_compiler_static='-Bstatic'
  8346. ;;
  8347. *)
  8348. lt_prog_compiler_can_build_shared=no
  8349. ;;
  8350. esac
  8351. fi
  8352. case $host_os in
  8353. # For platforms which do not support PIC, -DPIC is meaningless:
  8354. *djgpp*)
  8355. lt_prog_compiler_pic=
  8356. ;;
  8357. *)
  8358. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8359. ;;
  8360. esac
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8362. $as_echo "$lt_prog_compiler_pic" >&6; }
  8363. #
  8364. # Check to make sure the PIC flag actually works.
  8365. #
  8366. if test -n "$lt_prog_compiler_pic"; then
  8367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8368. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8369. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8370. $as_echo_n "(cached) " >&6
  8371. else
  8372. lt_cv_prog_compiler_pic_works=no
  8373. ac_outfile=conftest.$ac_objext
  8374. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8375. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8376. # Insert the option either (1) after the last *FLAGS variable, or
  8377. # (2) before a word containing "conftest.", or (3) at the end.
  8378. # Note that $ac_compile itself does not contain backslashes and begins
  8379. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8380. # The option is referenced via a variable to avoid confusing sed.
  8381. lt_compile=`echo "$ac_compile" | $SED \
  8382. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8383. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8384. -e 's:$: $lt_compiler_flag:'`
  8385. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8386. (eval "$lt_compile" 2>conftest.err)
  8387. ac_status=$?
  8388. cat conftest.err >&5
  8389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8390. if (exit $ac_status) && test -s "$ac_outfile"; then
  8391. # The compiler can only warn and ignore the option if not recognized
  8392. # So say no if there are warnings other than the usual output.
  8393. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8394. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8395. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8396. lt_cv_prog_compiler_pic_works=yes
  8397. fi
  8398. fi
  8399. $RM conftest*
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8402. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8403. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8404. case $lt_prog_compiler_pic in
  8405. "" | " "*) ;;
  8406. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8407. esac
  8408. else
  8409. lt_prog_compiler_pic=
  8410. lt_prog_compiler_can_build_shared=no
  8411. fi
  8412. fi
  8413. #
  8414. # Check to make sure the static flag actually works.
  8415. #
  8416. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8418. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8419. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8420. $as_echo_n "(cached) " >&6
  8421. else
  8422. lt_cv_prog_compiler_static_works=no
  8423. save_LDFLAGS="$LDFLAGS"
  8424. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8425. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8426. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8427. # The linker can only warn and ignore the option if not recognized
  8428. # So say no if there are warnings
  8429. if test -s conftest.err; then
  8430. # Append any errors to the config.log.
  8431. cat conftest.err 1>&5
  8432. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8433. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8434. if diff conftest.exp conftest.er2 >/dev/null; then
  8435. lt_cv_prog_compiler_static_works=yes
  8436. fi
  8437. else
  8438. lt_cv_prog_compiler_static_works=yes
  8439. fi
  8440. fi
  8441. $RM -r conftest*
  8442. LDFLAGS="$save_LDFLAGS"
  8443. fi
  8444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8445. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8446. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8447. :
  8448. else
  8449. lt_prog_compiler_static=
  8450. fi
  8451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8452. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8453. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8454. $as_echo_n "(cached) " >&6
  8455. else
  8456. lt_cv_prog_compiler_c_o=no
  8457. $RM -r conftest 2>/dev/null
  8458. mkdir conftest
  8459. cd conftest
  8460. mkdir out
  8461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8462. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8463. # Insert the option either (1) after the last *FLAGS variable, or
  8464. # (2) before a word containing "conftest.", or (3) at the end.
  8465. # Note that $ac_compile itself does not contain backslashes and begins
  8466. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8467. lt_compile=`echo "$ac_compile" | $SED \
  8468. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8469. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8470. -e 's:$: $lt_compiler_flag:'`
  8471. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8472. (eval "$lt_compile" 2>out/conftest.err)
  8473. ac_status=$?
  8474. cat out/conftest.err >&5
  8475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8476. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8477. then
  8478. # The compiler can only warn and ignore the option if not recognized
  8479. # So say no if there are warnings
  8480. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8481. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8482. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8483. lt_cv_prog_compiler_c_o=yes
  8484. fi
  8485. fi
  8486. chmod u+w . 2>&5
  8487. $RM conftest*
  8488. # SGI C++ compiler will create directory out/ii_files/ for
  8489. # template instantiation
  8490. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8491. $RM out/* && rmdir out
  8492. cd ..
  8493. $RM -r conftest
  8494. $RM conftest*
  8495. fi
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8497. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8499. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8500. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8501. $as_echo_n "(cached) " >&6
  8502. else
  8503. lt_cv_prog_compiler_c_o=no
  8504. $RM -r conftest 2>/dev/null
  8505. mkdir conftest
  8506. cd conftest
  8507. mkdir out
  8508. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8509. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8510. # Insert the option either (1) after the last *FLAGS variable, or
  8511. # (2) before a word containing "conftest.", or (3) at the end.
  8512. # Note that $ac_compile itself does not contain backslashes and begins
  8513. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8514. lt_compile=`echo "$ac_compile" | $SED \
  8515. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8516. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8517. -e 's:$: $lt_compiler_flag:'`
  8518. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8519. (eval "$lt_compile" 2>out/conftest.err)
  8520. ac_status=$?
  8521. cat out/conftest.err >&5
  8522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8523. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8524. then
  8525. # The compiler can only warn and ignore the option if not recognized
  8526. # So say no if there are warnings
  8527. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8528. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8529. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8530. lt_cv_prog_compiler_c_o=yes
  8531. fi
  8532. fi
  8533. chmod u+w . 2>&5
  8534. $RM conftest*
  8535. # SGI C++ compiler will create directory out/ii_files/ for
  8536. # template instantiation
  8537. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8538. $RM out/* && rmdir out
  8539. cd ..
  8540. $RM -r conftest
  8541. $RM conftest*
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8544. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8545. hard_links="nottested"
  8546. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8547. # do not overwrite the value of need_locks provided by the user
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8549. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8550. hard_links=yes
  8551. $RM conftest*
  8552. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8553. touch conftest.a
  8554. ln conftest.a conftest.b 2>&5 || hard_links=no
  8555. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8557. $as_echo "$hard_links" >&6; }
  8558. if test "$hard_links" = no; then
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8560. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8561. need_locks=warn
  8562. fi
  8563. else
  8564. need_locks=no
  8565. fi
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8567. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8568. runpath_var=
  8569. allow_undefined_flag=
  8570. always_export_symbols=no
  8571. archive_cmds=
  8572. archive_expsym_cmds=
  8573. compiler_needs_object=no
  8574. enable_shared_with_static_runtimes=no
  8575. export_dynamic_flag_spec=
  8576. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8577. hardcode_automatic=no
  8578. hardcode_direct=no
  8579. hardcode_direct_absolute=no
  8580. hardcode_libdir_flag_spec=
  8581. hardcode_libdir_flag_spec_ld=
  8582. hardcode_libdir_separator=
  8583. hardcode_minus_L=no
  8584. hardcode_shlibpath_var=unsupported
  8585. inherit_rpath=no
  8586. link_all_deplibs=unknown
  8587. module_cmds=
  8588. module_expsym_cmds=
  8589. old_archive_from_new_cmds=
  8590. old_archive_from_expsyms_cmds=
  8591. thread_safe_flag_spec=
  8592. whole_archive_flag_spec=
  8593. # include_expsyms should be a list of space-separated symbols to be *always*
  8594. # included in the symbol list
  8595. include_expsyms=
  8596. # exclude_expsyms can be an extended regexp of symbols to exclude
  8597. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8598. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8599. # as well as any symbol that contains `d'.
  8600. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8601. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8602. # platforms (ab)use it in PIC code, but their linkers get confused if
  8603. # the symbol is explicitly referenced. Since portable code cannot
  8604. # rely on this symbol name, it's probably fine to never include it in
  8605. # preloaded symbol tables.
  8606. # Exclude shared library initialization/finalization symbols.
  8607. extract_expsyms_cmds=
  8608. case $host_os in
  8609. cygwin* | mingw* | pw32* | cegcc*)
  8610. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8611. # When not using gcc, we currently assume that we are using
  8612. # Microsoft Visual C++.
  8613. if test "$GCC" != yes; then
  8614. with_gnu_ld=no
  8615. fi
  8616. ;;
  8617. interix*)
  8618. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8619. with_gnu_ld=yes
  8620. ;;
  8621. openbsd*)
  8622. with_gnu_ld=no
  8623. ;;
  8624. esac
  8625. ld_shlibs=yes
  8626. # On some targets, GNU ld is compatible enough with the native linker
  8627. # that we're better off using the native interface for both.
  8628. lt_use_gnu_ld_interface=no
  8629. if test "$with_gnu_ld" = yes; then
  8630. case $host_os in
  8631. aix*)
  8632. # The AIX port of GNU ld has always aspired to compatibility
  8633. # with the native linker. However, as the warning in the GNU ld
  8634. # block says, versions before 2.19.5* couldn't really create working
  8635. # shared libraries, regardless of the interface used.
  8636. case `$LD -v 2>&1` in
  8637. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8638. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8639. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8640. *)
  8641. lt_use_gnu_ld_interface=yes
  8642. ;;
  8643. esac
  8644. ;;
  8645. *)
  8646. lt_use_gnu_ld_interface=yes
  8647. ;;
  8648. esac
  8649. fi
  8650. if test "$lt_use_gnu_ld_interface" = yes; then
  8651. # If archive_cmds runs LD, not CC, wlarc should be empty
  8652. wlarc='${wl}'
  8653. # Set some defaults for GNU ld with shared library support. These
  8654. # are reset later if shared libraries are not supported. Putting them
  8655. # here allows them to be overridden if necessary.
  8656. runpath_var=LD_RUN_PATH
  8657. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8658. export_dynamic_flag_spec='${wl}--export-dynamic'
  8659. # ancient GNU ld didn't support --whole-archive et. al.
  8660. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8661. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8662. else
  8663. whole_archive_flag_spec=
  8664. fi
  8665. supports_anon_versioning=no
  8666. case `$LD -v 2>&1` in
  8667. *GNU\ gold*) supports_anon_versioning=yes ;;
  8668. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8669. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8670. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8671. *\ 2.11.*) ;; # other 2.11 versions
  8672. *) supports_anon_versioning=yes ;;
  8673. esac
  8674. # See if GNU ld supports shared libraries.
  8675. case $host_os in
  8676. aix[3-9]*)
  8677. # On AIX/PPC, the GNU linker is very broken
  8678. if test "$host_cpu" != ia64; then
  8679. ld_shlibs=no
  8680. cat <<_LT_EOF 1>&2
  8681. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8682. *** to be unable to reliably create shared libraries on AIX.
  8683. *** Therefore, libtool is disabling shared libraries support. If you
  8684. *** really care for shared libraries, you may want to install binutils
  8685. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8686. *** You will then need to restart the configuration process.
  8687. _LT_EOF
  8688. fi
  8689. ;;
  8690. amigaos*)
  8691. case $host_cpu in
  8692. powerpc)
  8693. # see comment about AmigaOS4 .so support
  8694. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8695. archive_expsym_cmds=''
  8696. ;;
  8697. m68k)
  8698. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8699. hardcode_libdir_flag_spec='-L$libdir'
  8700. hardcode_minus_L=yes
  8701. ;;
  8702. esac
  8703. ;;
  8704. beos*)
  8705. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8706. allow_undefined_flag=unsupported
  8707. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8708. # support --undefined. This deserves some investigation. FIXME
  8709. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8710. else
  8711. ld_shlibs=no
  8712. fi
  8713. ;;
  8714. cygwin* | mingw* | pw32* | cegcc*)
  8715. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8716. # as there is no search path for DLLs.
  8717. hardcode_libdir_flag_spec='-L$libdir'
  8718. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8719. allow_undefined_flag=unsupported
  8720. always_export_symbols=no
  8721. enable_shared_with_static_runtimes=yes
  8722. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8723. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8724. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8725. # If the export-symbols file already is a .def file (1st line
  8726. # is EXPORTS), use it as is; otherwise, prepend...
  8727. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8728. cp $export_symbols $output_objdir/$soname.def;
  8729. else
  8730. echo EXPORTS > $output_objdir/$soname.def;
  8731. cat $export_symbols >> $output_objdir/$soname.def;
  8732. fi~
  8733. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8734. else
  8735. ld_shlibs=no
  8736. fi
  8737. ;;
  8738. haiku*)
  8739. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8740. link_all_deplibs=yes
  8741. ;;
  8742. interix[3-9]*)
  8743. hardcode_direct=no
  8744. hardcode_shlibpath_var=no
  8745. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8746. export_dynamic_flag_spec='${wl}-E'
  8747. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8748. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8749. # default) and relocated if they conflict, which is a slow very memory
  8750. # consuming and fragmenting process. To avoid this, we pick a random,
  8751. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8752. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8753. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8754. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8755. ;;
  8756. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8757. tmp_diet=no
  8758. if test "$host_os" = linux-dietlibc; then
  8759. case $cc_basename in
  8760. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8761. esac
  8762. fi
  8763. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8764. && test "$tmp_diet" = no
  8765. then
  8766. tmp_addflag=' $pic_flag'
  8767. tmp_sharedflag='-shared'
  8768. case $cc_basename,$host_cpu in
  8769. pgcc*) # Portland Group C compiler
  8770. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8771. tmp_addflag=' $pic_flag'
  8772. ;;
  8773. pgf77* | pgf90* | pgf95* | pgfortran*)
  8774. # Portland Group f77 and f90 compilers
  8775. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8776. tmp_addflag=' $pic_flag -Mnomain' ;;
  8777. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8778. tmp_addflag=' -i_dynamic' ;;
  8779. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8780. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8781. ifc* | ifort*) # Intel Fortran compiler
  8782. tmp_addflag=' -nofor_main' ;;
  8783. lf95*) # Lahey Fortran 8.1
  8784. whole_archive_flag_spec=
  8785. tmp_sharedflag='--shared' ;;
  8786. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8787. tmp_sharedflag='-qmkshrobj'
  8788. tmp_addflag= ;;
  8789. nvcc*) # Cuda Compiler Driver 2.2
  8790. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8791. compiler_needs_object=yes
  8792. ;;
  8793. esac
  8794. case `$CC -V 2>&1 | sed 5q` in
  8795. *Sun\ C*) # Sun C 5.9
  8796. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8797. compiler_needs_object=yes
  8798. tmp_sharedflag='-G' ;;
  8799. *Sun\ F*) # Sun Fortran 8.3
  8800. tmp_sharedflag='-G' ;;
  8801. esac
  8802. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8803. if test "x$supports_anon_versioning" = xyes; then
  8804. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8805. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8806. echo "local: *; };" >> $output_objdir/$libname.ver~
  8807. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8808. fi
  8809. case $cc_basename in
  8810. xlf* | bgf* | bgxlf* | mpixlf*)
  8811. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8812. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8813. hardcode_libdir_flag_spec=
  8814. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8815. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8816. if test "x$supports_anon_versioning" = xyes; then
  8817. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8818. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8819. echo "local: *; };" >> $output_objdir/$libname.ver~
  8820. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8821. fi
  8822. ;;
  8823. esac
  8824. else
  8825. ld_shlibs=no
  8826. fi
  8827. ;;
  8828. netbsd*)
  8829. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8830. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8831. wlarc=
  8832. else
  8833. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8834. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8835. fi
  8836. ;;
  8837. solaris*)
  8838. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8839. ld_shlibs=no
  8840. cat <<_LT_EOF 1>&2
  8841. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8842. *** create shared libraries on Solaris systems. Therefore, libtool
  8843. *** is disabling shared libraries support. We urge you to upgrade GNU
  8844. *** binutils to release 2.9.1 or newer. Another option is to modify
  8845. *** your PATH or compiler configuration so that the native linker is
  8846. *** used, and then restart.
  8847. _LT_EOF
  8848. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8849. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8850. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8851. else
  8852. ld_shlibs=no
  8853. fi
  8854. ;;
  8855. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8856. case `$LD -v 2>&1` in
  8857. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8858. ld_shlibs=no
  8859. cat <<_LT_EOF 1>&2
  8860. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8861. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8862. *** is disabling shared libraries support. We urge you to upgrade GNU
  8863. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8864. *** your PATH or compiler configuration so that the native linker is
  8865. *** used, and then restart.
  8866. _LT_EOF
  8867. ;;
  8868. *)
  8869. # For security reasons, it is highly recommended that you always
  8870. # use absolute paths for naming shared libraries, and exclude the
  8871. # DT_RUNPATH tag from executables and libraries. But doing so
  8872. # requires that you compile everything twice, which is a pain.
  8873. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8874. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8875. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8876. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8877. else
  8878. ld_shlibs=no
  8879. fi
  8880. ;;
  8881. esac
  8882. ;;
  8883. sunos4*)
  8884. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8885. wlarc=
  8886. hardcode_direct=yes
  8887. hardcode_shlibpath_var=no
  8888. ;;
  8889. *)
  8890. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8891. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8892. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8893. else
  8894. ld_shlibs=no
  8895. fi
  8896. ;;
  8897. esac
  8898. if test "$ld_shlibs" = no; then
  8899. runpath_var=
  8900. hardcode_libdir_flag_spec=
  8901. export_dynamic_flag_spec=
  8902. whole_archive_flag_spec=
  8903. fi
  8904. else
  8905. # PORTME fill in a description of your system's linker (not GNU ld)
  8906. case $host_os in
  8907. aix3*)
  8908. allow_undefined_flag=unsupported
  8909. always_export_symbols=yes
  8910. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8911. # Note: this linker hardcodes the directories in LIBPATH if there
  8912. # are no directories specified by -L.
  8913. hardcode_minus_L=yes
  8914. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8915. # Neither direct hardcoding nor static linking is supported with a
  8916. # broken collect2.
  8917. hardcode_direct=unsupported
  8918. fi
  8919. ;;
  8920. aix[4-9]*)
  8921. if test "$host_cpu" = ia64; then
  8922. # On IA64, the linker does run time linking by default, so we don't
  8923. # have to do anything special.
  8924. aix_use_runtimelinking=no
  8925. exp_sym_flag='-Bexport'
  8926. no_entry_flag=""
  8927. else
  8928. # If we're using GNU nm, then we don't want the "-C" option.
  8929. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8930. # Also, AIX nm treats weak defined symbols like other global
  8931. # defined symbols, whereas GNU nm marks them as "W".
  8932. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8933. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8934. else
  8935. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8936. fi
  8937. aix_use_runtimelinking=no
  8938. # Test if we are trying to use run time linking or normal
  8939. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8940. # need to do runtime linking.
  8941. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8942. for ld_flag in $LDFLAGS; do
  8943. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8944. aix_use_runtimelinking=yes
  8945. break
  8946. fi
  8947. done
  8948. ;;
  8949. esac
  8950. exp_sym_flag='-bexport'
  8951. no_entry_flag='-bnoentry'
  8952. fi
  8953. # When large executables or shared objects are built, AIX ld can
  8954. # have problems creating the table of contents. If linking a library
  8955. # or program results in "error TOC overflow" add -mminimal-toc to
  8956. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8957. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8958. archive_cmds=''
  8959. hardcode_direct=yes
  8960. hardcode_direct_absolute=yes
  8961. hardcode_libdir_separator=':'
  8962. link_all_deplibs=yes
  8963. file_list_spec='${wl}-f,'
  8964. if test "$GCC" = yes; then
  8965. case $host_os in aix4.[012]|aix4.[012].*)
  8966. # We only want to do this on AIX 4.2 and lower, the check
  8967. # below for broken collect2 doesn't work under 4.3+
  8968. collect2name=`${CC} -print-prog-name=collect2`
  8969. if test -f "$collect2name" &&
  8970. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8971. then
  8972. # We have reworked collect2
  8973. :
  8974. else
  8975. # We have old collect2
  8976. hardcode_direct=unsupported
  8977. # It fails to find uninstalled libraries when the uninstalled
  8978. # path is not listed in the libpath. Setting hardcode_minus_L
  8979. # to unsupported forces relinking
  8980. hardcode_minus_L=yes
  8981. hardcode_libdir_flag_spec='-L$libdir'
  8982. hardcode_libdir_separator=
  8983. fi
  8984. ;;
  8985. esac
  8986. shared_flag='-shared'
  8987. if test "$aix_use_runtimelinking" = yes; then
  8988. shared_flag="$shared_flag "'${wl}-G'
  8989. fi
  8990. else
  8991. # not using gcc
  8992. if test "$host_cpu" = ia64; then
  8993. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8994. # chokes on -Wl,-G. The following line is correct:
  8995. shared_flag='-G'
  8996. else
  8997. if test "$aix_use_runtimelinking" = yes; then
  8998. shared_flag='${wl}-G'
  8999. else
  9000. shared_flag='${wl}-bM:SRE'
  9001. fi
  9002. fi
  9003. fi
  9004. export_dynamic_flag_spec='${wl}-bexpall'
  9005. # It seems that -bexpall does not export symbols beginning with
  9006. # underscore (_), so it is better to generate a list of symbols to export.
  9007. always_export_symbols=yes
  9008. if test "$aix_use_runtimelinking" = yes; then
  9009. # Warning - without using the other runtime loading flags (-brtl),
  9010. # -berok will link without error, but may produce a broken library.
  9011. allow_undefined_flag='-berok'
  9012. # Determine the default libpath from the value encoded in an
  9013. # empty executable.
  9014. if test x$gcc_no_link = xyes; then
  9015. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9016. fi
  9017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9018. /* end confdefs.h. */
  9019. int
  9020. main ()
  9021. {
  9022. ;
  9023. return 0;
  9024. }
  9025. _ACEOF
  9026. if ac_fn_c_try_link "$LINENO"; then :
  9027. lt_aix_libpath_sed='
  9028. /Import File Strings/,/^$/ {
  9029. /^0/ {
  9030. s/^0 *\(.*\)$/\1/
  9031. p
  9032. }
  9033. }'
  9034. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9035. # Check for a 64-bit object if we didn't find anything.
  9036. if test -z "$aix_libpath"; then
  9037. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9038. fi
  9039. fi
  9040. rm -f core conftest.err conftest.$ac_objext \
  9041. conftest$ac_exeext conftest.$ac_ext
  9042. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9043. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9044. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9045. else
  9046. if test "$host_cpu" = ia64; then
  9047. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9048. allow_undefined_flag="-z nodefs"
  9049. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9050. else
  9051. # Determine the default libpath from the value encoded in an
  9052. # empty executable.
  9053. if test x$gcc_no_link = xyes; then
  9054. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9055. fi
  9056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9057. /* end confdefs.h. */
  9058. int
  9059. main ()
  9060. {
  9061. ;
  9062. return 0;
  9063. }
  9064. _ACEOF
  9065. if ac_fn_c_try_link "$LINENO"; then :
  9066. lt_aix_libpath_sed='
  9067. /Import File Strings/,/^$/ {
  9068. /^0/ {
  9069. s/^0 *\(.*\)$/\1/
  9070. p
  9071. }
  9072. }'
  9073. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9074. # Check for a 64-bit object if we didn't find anything.
  9075. if test -z "$aix_libpath"; then
  9076. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9077. fi
  9078. fi
  9079. rm -f core conftest.err conftest.$ac_objext \
  9080. conftest$ac_exeext conftest.$ac_ext
  9081. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9082. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9083. # Warning - without using the other run time loading flags,
  9084. # -berok will link without error, but may produce a broken library.
  9085. no_undefined_flag=' ${wl}-bernotok'
  9086. allow_undefined_flag=' ${wl}-berok'
  9087. if test "$with_gnu_ld" = yes; then
  9088. # We only use this code for GNU lds that support --whole-archive.
  9089. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9090. else
  9091. # Exported symbols can be pulled into shared objects from archives
  9092. whole_archive_flag_spec='$convenience'
  9093. fi
  9094. archive_cmds_need_lc=yes
  9095. # This is similar to how AIX traditionally builds its shared libraries.
  9096. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9097. fi
  9098. fi
  9099. ;;
  9100. amigaos*)
  9101. case $host_cpu in
  9102. powerpc)
  9103. # see comment about AmigaOS4 .so support
  9104. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9105. archive_expsym_cmds=''
  9106. ;;
  9107. m68k)
  9108. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9109. hardcode_libdir_flag_spec='-L$libdir'
  9110. hardcode_minus_L=yes
  9111. ;;
  9112. esac
  9113. ;;
  9114. bsdi[45]*)
  9115. export_dynamic_flag_spec=-rdynamic
  9116. ;;
  9117. cygwin* | mingw* | pw32* | cegcc*)
  9118. # When not using gcc, we currently assume that we are using
  9119. # Microsoft Visual C++.
  9120. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9121. # no search path for DLLs.
  9122. hardcode_libdir_flag_spec=' '
  9123. allow_undefined_flag=unsupported
  9124. # Tell ltmain to make .lib files, not .a files.
  9125. libext=lib
  9126. # Tell ltmain to make .dll files, not .so files.
  9127. shrext_cmds=".dll"
  9128. # FIXME: Setting linknames here is a bad hack.
  9129. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9130. # The linker will automatically build a .lib file if we build a DLL.
  9131. old_archive_from_new_cmds='true'
  9132. # FIXME: Should let the user specify the lib program.
  9133. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9134. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9135. enable_shared_with_static_runtimes=yes
  9136. ;;
  9137. darwin* | rhapsody*)
  9138. archive_cmds_need_lc=no
  9139. hardcode_direct=no
  9140. hardcode_automatic=yes
  9141. hardcode_shlibpath_var=unsupported
  9142. if test "$lt_cv_ld_force_load" = "yes"; then
  9143. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  9144. else
  9145. whole_archive_flag_spec=''
  9146. fi
  9147. link_all_deplibs=yes
  9148. allow_undefined_flag="$_lt_dar_allow_undefined"
  9149. case $cc_basename in
  9150. ifort*) _lt_dar_can_shared=yes ;;
  9151. *) _lt_dar_can_shared=$GCC ;;
  9152. esac
  9153. if test "$_lt_dar_can_shared" = "yes"; then
  9154. output_verbose_link_cmd=func_echo_all
  9155. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9156. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9157. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9158. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9159. else
  9160. ld_shlibs=no
  9161. fi
  9162. ;;
  9163. dgux*)
  9164. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9165. hardcode_libdir_flag_spec='-L$libdir'
  9166. hardcode_shlibpath_var=no
  9167. ;;
  9168. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9169. # support. Future versions do this automatically, but an explicit c++rt0.o
  9170. # does not break anything, and helps significantly (at the cost of a little
  9171. # extra space).
  9172. freebsd2.2*)
  9173. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9174. hardcode_libdir_flag_spec='-R$libdir'
  9175. hardcode_direct=yes
  9176. hardcode_shlibpath_var=no
  9177. ;;
  9178. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9179. freebsd2.*)
  9180. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9181. hardcode_direct=yes
  9182. hardcode_minus_L=yes
  9183. hardcode_shlibpath_var=no
  9184. ;;
  9185. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9186. freebsd* | dragonfly*)
  9187. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9188. hardcode_libdir_flag_spec='-R$libdir'
  9189. hardcode_direct=yes
  9190. hardcode_shlibpath_var=no
  9191. ;;
  9192. hpux9*)
  9193. if test "$GCC" = yes; then
  9194. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9195. else
  9196. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9197. fi
  9198. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9199. hardcode_libdir_separator=:
  9200. hardcode_direct=yes
  9201. # hardcode_minus_L: Not really in the search PATH,
  9202. # but as the default location of the library.
  9203. hardcode_minus_L=yes
  9204. export_dynamic_flag_spec='${wl}-E'
  9205. ;;
  9206. hpux10*)
  9207. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9208. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9209. else
  9210. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9211. fi
  9212. if test "$with_gnu_ld" = no; then
  9213. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9214. hardcode_libdir_flag_spec_ld='+b $libdir'
  9215. hardcode_libdir_separator=:
  9216. hardcode_direct=yes
  9217. hardcode_direct_absolute=yes
  9218. export_dynamic_flag_spec='${wl}-E'
  9219. # hardcode_minus_L: Not really in the search PATH,
  9220. # but as the default location of the library.
  9221. hardcode_minus_L=yes
  9222. fi
  9223. ;;
  9224. hpux11*)
  9225. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9226. case $host_cpu in
  9227. hppa*64*)
  9228. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9229. ;;
  9230. ia64*)
  9231. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9232. ;;
  9233. *)
  9234. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9235. ;;
  9236. esac
  9237. else
  9238. case $host_cpu in
  9239. hppa*64*)
  9240. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9241. ;;
  9242. ia64*)
  9243. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9244. ;;
  9245. *)
  9246. # Older versions of the 11.00 compiler do not understand -b yet
  9247. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9249. $as_echo_n "checking if $CC understands -b... " >&6; }
  9250. if ${lt_cv_prog_compiler__b+:} false; then :
  9251. $as_echo_n "(cached) " >&6
  9252. else
  9253. lt_cv_prog_compiler__b=no
  9254. save_LDFLAGS="$LDFLAGS"
  9255. LDFLAGS="$LDFLAGS -b"
  9256. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9257. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9258. # The linker can only warn and ignore the option if not recognized
  9259. # So say no if there are warnings
  9260. if test -s conftest.err; then
  9261. # Append any errors to the config.log.
  9262. cat conftest.err 1>&5
  9263. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9264. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9265. if diff conftest.exp conftest.er2 >/dev/null; then
  9266. lt_cv_prog_compiler__b=yes
  9267. fi
  9268. else
  9269. lt_cv_prog_compiler__b=yes
  9270. fi
  9271. fi
  9272. $RM -r conftest*
  9273. LDFLAGS="$save_LDFLAGS"
  9274. fi
  9275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9276. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9277. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9278. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9279. else
  9280. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9281. fi
  9282. ;;
  9283. esac
  9284. fi
  9285. if test "$with_gnu_ld" = no; then
  9286. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9287. hardcode_libdir_separator=:
  9288. case $host_cpu in
  9289. hppa*64*|ia64*)
  9290. hardcode_direct=no
  9291. hardcode_shlibpath_var=no
  9292. ;;
  9293. *)
  9294. hardcode_direct=yes
  9295. hardcode_direct_absolute=yes
  9296. export_dynamic_flag_spec='${wl}-E'
  9297. # hardcode_minus_L: Not really in the search PATH,
  9298. # but as the default location of the library.
  9299. hardcode_minus_L=yes
  9300. ;;
  9301. esac
  9302. fi
  9303. ;;
  9304. irix5* | irix6* | nonstopux*)
  9305. if test "$GCC" = yes; then
  9306. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9307. # Try to use the -exported_symbol ld option, if it does not
  9308. # work, assume that -exports_file does not work either and
  9309. # implicitly export all symbols.
  9310. save_LDFLAGS="$LDFLAGS"
  9311. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9312. if test x$gcc_no_link = xyes; then
  9313. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9314. fi
  9315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9316. /* end confdefs.h. */
  9317. int foo(void) {}
  9318. _ACEOF
  9319. if ac_fn_c_try_link "$LINENO"; then :
  9320. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9321. fi
  9322. rm -f core conftest.err conftest.$ac_objext \
  9323. conftest$ac_exeext conftest.$ac_ext
  9324. LDFLAGS="$save_LDFLAGS"
  9325. else
  9326. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9327. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9328. fi
  9329. archive_cmds_need_lc='no'
  9330. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9331. hardcode_libdir_separator=:
  9332. inherit_rpath=yes
  9333. link_all_deplibs=yes
  9334. ;;
  9335. netbsd*)
  9336. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9337. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9338. else
  9339. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9340. fi
  9341. hardcode_libdir_flag_spec='-R$libdir'
  9342. hardcode_direct=yes
  9343. hardcode_shlibpath_var=no
  9344. ;;
  9345. newsos6)
  9346. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9347. hardcode_direct=yes
  9348. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9349. hardcode_libdir_separator=:
  9350. hardcode_shlibpath_var=no
  9351. ;;
  9352. *nto* | *qnx*)
  9353. ;;
  9354. openbsd*)
  9355. if test -f /usr/libexec/ld.so; then
  9356. hardcode_direct=yes
  9357. hardcode_shlibpath_var=no
  9358. hardcode_direct_absolute=yes
  9359. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9360. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9361. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9362. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9363. export_dynamic_flag_spec='${wl}-E'
  9364. else
  9365. case $host_os in
  9366. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9367. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9368. hardcode_libdir_flag_spec='-R$libdir'
  9369. ;;
  9370. *)
  9371. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9372. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9373. ;;
  9374. esac
  9375. fi
  9376. else
  9377. ld_shlibs=no
  9378. fi
  9379. ;;
  9380. os2*)
  9381. hardcode_libdir_flag_spec='-L$libdir'
  9382. hardcode_minus_L=yes
  9383. allow_undefined_flag=unsupported
  9384. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9385. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9386. ;;
  9387. osf3*)
  9388. if test "$GCC" = yes; then
  9389. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9390. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9391. else
  9392. allow_undefined_flag=' -expect_unresolved \*'
  9393. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9394. fi
  9395. archive_cmds_need_lc='no'
  9396. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9397. hardcode_libdir_separator=:
  9398. ;;
  9399. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9400. if test "$GCC" = yes; then
  9401. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9402. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9403. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9404. else
  9405. allow_undefined_flag=' -expect_unresolved \*'
  9406. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9407. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9408. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9409. # Both c and cxx compiler support -rpath directly
  9410. hardcode_libdir_flag_spec='-rpath $libdir'
  9411. fi
  9412. archive_cmds_need_lc='no'
  9413. hardcode_libdir_separator=:
  9414. ;;
  9415. solaris*)
  9416. no_undefined_flag=' -z defs'
  9417. if test "$GCC" = yes; then
  9418. wlarc='${wl}'
  9419. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9421. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9422. else
  9423. case `$CC -V 2>&1` in
  9424. *"Compilers 5.0"*)
  9425. wlarc=''
  9426. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9427. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9428. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9429. ;;
  9430. *)
  9431. wlarc='${wl}'
  9432. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9433. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9434. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9435. ;;
  9436. esac
  9437. fi
  9438. hardcode_libdir_flag_spec='-R$libdir'
  9439. hardcode_shlibpath_var=no
  9440. case $host_os in
  9441. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9442. *)
  9443. # The compiler driver will combine and reorder linker options,
  9444. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9445. # but is careful enough not to reorder.
  9446. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9447. if test "$GCC" = yes; then
  9448. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9449. else
  9450. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9451. fi
  9452. ;;
  9453. esac
  9454. link_all_deplibs=yes
  9455. ;;
  9456. sunos4*)
  9457. if test "x$host_vendor" = xsequent; then
  9458. # Use $CC to link under sequent, because it throws in some extra .o
  9459. # files that make .init and .fini sections work.
  9460. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9461. else
  9462. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9463. fi
  9464. hardcode_libdir_flag_spec='-L$libdir'
  9465. hardcode_direct=yes
  9466. hardcode_minus_L=yes
  9467. hardcode_shlibpath_var=no
  9468. ;;
  9469. sysv4)
  9470. case $host_vendor in
  9471. sni)
  9472. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9473. hardcode_direct=yes # is this really true???
  9474. ;;
  9475. siemens)
  9476. ## LD is ld it makes a PLAMLIB
  9477. ## CC just makes a GrossModule.
  9478. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9479. reload_cmds='$CC -r -o $output$reload_objs'
  9480. hardcode_direct=no
  9481. ;;
  9482. motorola)
  9483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9484. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9485. ;;
  9486. esac
  9487. runpath_var='LD_RUN_PATH'
  9488. hardcode_shlibpath_var=no
  9489. ;;
  9490. sysv4.3*)
  9491. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9492. hardcode_shlibpath_var=no
  9493. export_dynamic_flag_spec='-Bexport'
  9494. ;;
  9495. sysv4*MP*)
  9496. if test -d /usr/nec; then
  9497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9498. hardcode_shlibpath_var=no
  9499. runpath_var=LD_RUN_PATH
  9500. hardcode_runpath_var=yes
  9501. ld_shlibs=yes
  9502. fi
  9503. ;;
  9504. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9505. no_undefined_flag='${wl}-z,text'
  9506. archive_cmds_need_lc=no
  9507. hardcode_shlibpath_var=no
  9508. runpath_var='LD_RUN_PATH'
  9509. if test "$GCC" = yes; then
  9510. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9511. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9512. else
  9513. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9514. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9515. fi
  9516. ;;
  9517. sysv5* | sco3.2v5* | sco5v6*)
  9518. # Note: We can NOT use -z defs as we might desire, because we do not
  9519. # link with -lc, and that would cause any symbols used from libc to
  9520. # always be unresolved, which means just about no library would
  9521. # ever link correctly. If we're not using GNU ld we use -z text
  9522. # though, which does catch some bad symbols but isn't as heavy-handed
  9523. # as -z defs.
  9524. no_undefined_flag='${wl}-z,text'
  9525. allow_undefined_flag='${wl}-z,nodefs'
  9526. archive_cmds_need_lc=no
  9527. hardcode_shlibpath_var=no
  9528. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9529. hardcode_libdir_separator=':'
  9530. link_all_deplibs=yes
  9531. export_dynamic_flag_spec='${wl}-Bexport'
  9532. runpath_var='LD_RUN_PATH'
  9533. if test "$GCC" = yes; then
  9534. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9535. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9536. else
  9537. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9538. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9539. fi
  9540. ;;
  9541. uts4*)
  9542. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9543. hardcode_libdir_flag_spec='-L$libdir'
  9544. hardcode_shlibpath_var=no
  9545. ;;
  9546. *)
  9547. ld_shlibs=no
  9548. ;;
  9549. esac
  9550. if test x$host_vendor = xsni; then
  9551. case $host in
  9552. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9553. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9554. ;;
  9555. esac
  9556. fi
  9557. fi
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9559. $as_echo "$ld_shlibs" >&6; }
  9560. test "$ld_shlibs" = no && can_build_shared=no
  9561. with_gnu_ld=$with_gnu_ld
  9562. #
  9563. # Do we need to explicitly link libc?
  9564. #
  9565. case "x$archive_cmds_need_lc" in
  9566. x|xyes)
  9567. # Assume -lc should be added
  9568. archive_cmds_need_lc=yes
  9569. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9570. case $archive_cmds in
  9571. *'~'*)
  9572. # FIXME: we may have to deal with multi-command sequences.
  9573. ;;
  9574. '$CC '*)
  9575. # Test whether the compiler implicitly links with -lc since on some
  9576. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9577. # to ld, don't add -lc before -lgcc.
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9579. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9580. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9581. $as_echo_n "(cached) " >&6
  9582. else
  9583. $RM conftest*
  9584. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9586. (eval $ac_compile) 2>&5
  9587. ac_status=$?
  9588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9589. test $ac_status = 0; } 2>conftest.err; then
  9590. soname=conftest
  9591. lib=conftest
  9592. libobjs=conftest.$ac_objext
  9593. deplibs=
  9594. wl=$lt_prog_compiler_wl
  9595. pic_flag=$lt_prog_compiler_pic
  9596. compiler_flags=-v
  9597. linker_flags=-v
  9598. verstring=
  9599. output_objdir=.
  9600. libname=conftest
  9601. lt_save_allow_undefined_flag=$allow_undefined_flag
  9602. allow_undefined_flag=
  9603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9604. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9605. ac_status=$?
  9606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9607. test $ac_status = 0; }
  9608. then
  9609. lt_cv_archive_cmds_need_lc=no
  9610. else
  9611. lt_cv_archive_cmds_need_lc=yes
  9612. fi
  9613. allow_undefined_flag=$lt_save_allow_undefined_flag
  9614. else
  9615. cat conftest.err 1>&5
  9616. fi
  9617. $RM conftest*
  9618. fi
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9620. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9621. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9622. ;;
  9623. esac
  9624. fi
  9625. ;;
  9626. esac
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9628. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9629. if test "$GCC" = yes; then
  9630. case $host_os in
  9631. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9632. *) lt_awk_arg="/^libraries:/" ;;
  9633. esac
  9634. case $host_os in
  9635. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9636. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9637. esac
  9638. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9639. case $lt_search_path_spec in
  9640. *\;*)
  9641. # if the path contains ";" then we assume it to be the separator
  9642. # otherwise default to the standard path separator (i.e. ":") - it is
  9643. # assumed that no part of a normal pathname contains ";" but that should
  9644. # okay in the real world where ";" in dirpaths is itself problematic.
  9645. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9646. ;;
  9647. *)
  9648. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9649. ;;
  9650. esac
  9651. # Ok, now we have the path, separated by spaces, we can step through it
  9652. # and add multilib dir if necessary.
  9653. lt_tmp_lt_search_path_spec=
  9654. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9655. for lt_sys_path in $lt_search_path_spec; do
  9656. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9657. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9658. else
  9659. test -d "$lt_sys_path" && \
  9660. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9661. fi
  9662. done
  9663. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9664. BEGIN {RS=" "; FS="/|\n";} {
  9665. lt_foo="";
  9666. lt_count=0;
  9667. for (lt_i = NF; lt_i > 0; lt_i--) {
  9668. if ($lt_i != "" && $lt_i != ".") {
  9669. if ($lt_i == "..") {
  9670. lt_count++;
  9671. } else {
  9672. if (lt_count == 0) {
  9673. lt_foo="/" $lt_i lt_foo;
  9674. } else {
  9675. lt_count--;
  9676. }
  9677. }
  9678. }
  9679. }
  9680. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9681. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9682. }'`
  9683. # AWK program above erroneously prepends '/' to C:/dos/paths
  9684. # for these hosts.
  9685. case $host_os in
  9686. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9687. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9688. esac
  9689. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9690. else
  9691. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9692. fi
  9693. library_names_spec=
  9694. libname_spec='lib$name'
  9695. soname_spec=
  9696. shrext_cmds=".so"
  9697. postinstall_cmds=
  9698. postuninstall_cmds=
  9699. finish_cmds=
  9700. finish_eval=
  9701. shlibpath_var=
  9702. shlibpath_overrides_runpath=unknown
  9703. version_type=none
  9704. dynamic_linker="$host_os ld.so"
  9705. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9706. need_lib_prefix=unknown
  9707. hardcode_into_libs=no
  9708. # when you set need_version to no, make sure it does not cause -set_version
  9709. # flags to be left without arguments
  9710. need_version=unknown
  9711. case $host_os in
  9712. aix3*)
  9713. version_type=linux
  9714. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9715. shlibpath_var=LIBPATH
  9716. # AIX 3 has no versioning support, so we append a major version to the name.
  9717. soname_spec='${libname}${release}${shared_ext}$major'
  9718. ;;
  9719. aix[4-9]*)
  9720. version_type=linux
  9721. need_lib_prefix=no
  9722. need_version=no
  9723. hardcode_into_libs=yes
  9724. if test "$host_cpu" = ia64; then
  9725. # AIX 5 supports IA64
  9726. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. else
  9729. # With GCC up to 2.95.x, collect2 would create an import file
  9730. # for dependence libraries. The import file would start with
  9731. # the line `#! .'. This would cause the generated library to
  9732. # depend on `.', always an invalid library. This was fixed in
  9733. # development snapshots of GCC prior to 3.0.
  9734. case $host_os in
  9735. aix4 | aix4.[01] | aix4.[01].*)
  9736. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9737. echo ' yes '
  9738. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9739. :
  9740. else
  9741. can_build_shared=no
  9742. fi
  9743. ;;
  9744. esac
  9745. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9746. # soname into executable. Probably we can add versioning support to
  9747. # collect2, so additional links can be useful in future.
  9748. if test "$aix_use_runtimelinking" = yes; then
  9749. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9750. # instead of lib<name>.a to let people know that these are not
  9751. # typical AIX shared libraries.
  9752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9753. else
  9754. # We preserve .a as extension for shared libraries through AIX4.2
  9755. # and later when we are not doing run time linking.
  9756. library_names_spec='${libname}${release}.a $libname.a'
  9757. soname_spec='${libname}${release}${shared_ext}$major'
  9758. fi
  9759. shlibpath_var=LIBPATH
  9760. fi
  9761. ;;
  9762. amigaos*)
  9763. case $host_cpu in
  9764. powerpc)
  9765. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9766. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9767. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9768. ;;
  9769. m68k)
  9770. library_names_spec='$libname.ixlibrary $libname.a'
  9771. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9772. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9773. ;;
  9774. esac
  9775. ;;
  9776. beos*)
  9777. library_names_spec='${libname}${shared_ext}'
  9778. dynamic_linker="$host_os ld.so"
  9779. shlibpath_var=LIBRARY_PATH
  9780. ;;
  9781. bsdi[45]*)
  9782. version_type=linux
  9783. need_version=no
  9784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9785. soname_spec='${libname}${release}${shared_ext}$major'
  9786. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9787. shlibpath_var=LD_LIBRARY_PATH
  9788. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9789. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9790. # the default ld.so.conf also contains /usr/contrib/lib and
  9791. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9792. # libtool to hard-code these into programs
  9793. ;;
  9794. cygwin* | mingw* | pw32* | cegcc*)
  9795. version_type=windows
  9796. shrext_cmds=".dll"
  9797. need_version=no
  9798. need_lib_prefix=no
  9799. case $GCC,$host_os in
  9800. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9801. library_names_spec='$libname.dll.a'
  9802. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9803. postinstall_cmds='base_file=`basename \${file}`~
  9804. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9805. dldir=$destdir/`dirname \$dlpath`~
  9806. test -d \$dldir || mkdir -p \$dldir~
  9807. $install_prog $dir/$dlname \$dldir/$dlname~
  9808. chmod a+x \$dldir/$dlname~
  9809. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9810. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9811. fi'
  9812. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9813. dlpath=$dir/\$dldll~
  9814. $RM \$dlpath'
  9815. shlibpath_overrides_runpath=yes
  9816. case $host_os in
  9817. cygwin*)
  9818. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9819. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9820. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9821. ;;
  9822. mingw* | cegcc*)
  9823. # MinGW DLLs use traditional 'lib' prefix
  9824. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9825. ;;
  9826. pw32*)
  9827. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9828. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9829. ;;
  9830. esac
  9831. ;;
  9832. *)
  9833. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9834. ;;
  9835. esac
  9836. dynamic_linker='Win32 ld.exe'
  9837. # FIXME: first we should search . and the directory the executable is in
  9838. shlibpath_var=PATH
  9839. ;;
  9840. darwin* | rhapsody*)
  9841. dynamic_linker="$host_os dyld"
  9842. version_type=darwin
  9843. need_lib_prefix=no
  9844. need_version=no
  9845. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9846. soname_spec='${libname}${release}${major}$shared_ext'
  9847. shlibpath_overrides_runpath=yes
  9848. shlibpath_var=DYLD_LIBRARY_PATH
  9849. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9850. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9851. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9852. ;;
  9853. dgux*)
  9854. version_type=linux
  9855. need_lib_prefix=no
  9856. need_version=no
  9857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9858. soname_spec='${libname}${release}${shared_ext}$major'
  9859. shlibpath_var=LD_LIBRARY_PATH
  9860. ;;
  9861. freebsd* | dragonfly*)
  9862. # DragonFly does not have aout. When/if they implement a new
  9863. # versioning mechanism, adjust this.
  9864. if test -x /usr/bin/objformat; then
  9865. objformat=`/usr/bin/objformat`
  9866. else
  9867. case $host_os in
  9868. freebsd[23].*) objformat=aout ;;
  9869. *) objformat=elf ;;
  9870. esac
  9871. fi
  9872. version_type=freebsd-$objformat
  9873. case $version_type in
  9874. freebsd-elf*)
  9875. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9876. need_version=no
  9877. need_lib_prefix=no
  9878. ;;
  9879. freebsd-*)
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9881. need_version=yes
  9882. ;;
  9883. esac
  9884. shlibpath_var=LD_LIBRARY_PATH
  9885. case $host_os in
  9886. freebsd2.*)
  9887. shlibpath_overrides_runpath=yes
  9888. ;;
  9889. freebsd3.[01]* | freebsdelf3.[01]*)
  9890. shlibpath_overrides_runpath=yes
  9891. hardcode_into_libs=yes
  9892. ;;
  9893. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9894. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9895. shlibpath_overrides_runpath=no
  9896. hardcode_into_libs=yes
  9897. ;;
  9898. *) # from 4.6 on, and DragonFly
  9899. shlibpath_overrides_runpath=yes
  9900. hardcode_into_libs=yes
  9901. ;;
  9902. esac
  9903. ;;
  9904. haiku*)
  9905. version_type=linux
  9906. need_lib_prefix=no
  9907. need_version=no
  9908. dynamic_linker="$host_os runtime_loader"
  9909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9910. soname_spec='${libname}${release}${shared_ext}$major'
  9911. shlibpath_var=LIBRARY_PATH
  9912. shlibpath_overrides_runpath=yes
  9913. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9914. hardcode_into_libs=yes
  9915. ;;
  9916. hpux9* | hpux10* | hpux11*)
  9917. # Give a soname corresponding to the major version so that dld.sl refuses to
  9918. # link against other versions.
  9919. version_type=sunos
  9920. need_lib_prefix=no
  9921. need_version=no
  9922. case $host_cpu in
  9923. ia64*)
  9924. shrext_cmds='.so'
  9925. hardcode_into_libs=yes
  9926. dynamic_linker="$host_os dld.so"
  9927. shlibpath_var=LD_LIBRARY_PATH
  9928. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9930. soname_spec='${libname}${release}${shared_ext}$major'
  9931. if test "X$HPUX_IA64_MODE" = X32; then
  9932. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9933. else
  9934. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9935. fi
  9936. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9937. ;;
  9938. hppa*64*)
  9939. shrext_cmds='.sl'
  9940. hardcode_into_libs=yes
  9941. dynamic_linker="$host_os dld.sl"
  9942. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9945. soname_spec='${libname}${release}${shared_ext}$major'
  9946. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9947. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9948. ;;
  9949. *)
  9950. shrext_cmds='.sl'
  9951. dynamic_linker="$host_os dld.sl"
  9952. shlibpath_var=SHLIB_PATH
  9953. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9955. soname_spec='${libname}${release}${shared_ext}$major'
  9956. ;;
  9957. esac
  9958. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9959. postinstall_cmds='chmod 555 $lib'
  9960. # or fails outright, so override atomically:
  9961. install_override_mode=555
  9962. ;;
  9963. interix[3-9]*)
  9964. version_type=linux
  9965. need_lib_prefix=no
  9966. need_version=no
  9967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9968. soname_spec='${libname}${release}${shared_ext}$major'
  9969. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9970. shlibpath_var=LD_LIBRARY_PATH
  9971. shlibpath_overrides_runpath=no
  9972. hardcode_into_libs=yes
  9973. ;;
  9974. irix5* | irix6* | nonstopux*)
  9975. case $host_os in
  9976. nonstopux*) version_type=nonstopux ;;
  9977. *)
  9978. if test "$lt_cv_prog_gnu_ld" = yes; then
  9979. version_type=linux
  9980. else
  9981. version_type=irix
  9982. fi ;;
  9983. esac
  9984. need_lib_prefix=no
  9985. need_version=no
  9986. soname_spec='${libname}${release}${shared_ext}$major'
  9987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9988. case $host_os in
  9989. irix5* | nonstopux*)
  9990. libsuff= shlibsuff=
  9991. ;;
  9992. *)
  9993. case $LD in # libtool.m4 will add one of these switches to LD
  9994. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9995. libsuff= shlibsuff= libmagic=32-bit;;
  9996. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9997. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9998. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9999. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10000. *) libsuff= shlibsuff= libmagic=never-match;;
  10001. esac
  10002. ;;
  10003. esac
  10004. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10005. shlibpath_overrides_runpath=no
  10006. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10007. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10008. hardcode_into_libs=yes
  10009. ;;
  10010. # No shared lib support for Linux oldld, aout, or coff.
  10011. linux*oldld* | linux*aout* | linux*coff*)
  10012. dynamic_linker=no
  10013. ;;
  10014. # This must be Linux ELF.
  10015. # uclinux* changes (here and below) have been submitted to the libtool
  10016. # project, but have not yet been accepted: they are GCC-local changes
  10017. # for the time being. (See
  10018. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  10019. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  10020. version_type=linux
  10021. need_lib_prefix=no
  10022. need_version=no
  10023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10024. soname_spec='${libname}${release}${shared_ext}$major'
  10025. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10026. shlibpath_var=LD_LIBRARY_PATH
  10027. shlibpath_overrides_runpath=no
  10028. # Some binutils ld are patched to set DT_RUNPATH
  10029. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10030. $as_echo_n "(cached) " >&6
  10031. else
  10032. lt_cv_shlibpath_overrides_runpath=no
  10033. save_LDFLAGS=$LDFLAGS
  10034. save_libdir=$libdir
  10035. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10036. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10037. if test x$gcc_no_link = xyes; then
  10038. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10039. fi
  10040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10041. /* end confdefs.h. */
  10042. int
  10043. main ()
  10044. {
  10045. ;
  10046. return 0;
  10047. }
  10048. _ACEOF
  10049. if ac_fn_c_try_link "$LINENO"; then :
  10050. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10051. lt_cv_shlibpath_overrides_runpath=yes
  10052. fi
  10053. fi
  10054. rm -f core conftest.err conftest.$ac_objext \
  10055. conftest$ac_exeext conftest.$ac_ext
  10056. LDFLAGS=$save_LDFLAGS
  10057. libdir=$save_libdir
  10058. fi
  10059. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10060. # This implies no fast_install, which is unacceptable.
  10061. # Some rework will be needed to allow for fast_install
  10062. # before this can be enabled.
  10063. hardcode_into_libs=yes
  10064. # Append ld.so.conf contents to the search path
  10065. if test -f /etc/ld.so.conf; then
  10066. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  10067. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10068. fi
  10069. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10070. # powerpc, because MkLinux only supported shared libraries with the
  10071. # GNU dynamic linker. Since this was broken with cross compilers,
  10072. # most powerpc-linux boxes support dynamic linking these days and
  10073. # people can always --disable-shared, the test was removed, and we
  10074. # assume the GNU/Linux dynamic linker is in use.
  10075. dynamic_linker='GNU/Linux ld.so'
  10076. ;;
  10077. netbsd*)
  10078. version_type=sunos
  10079. need_lib_prefix=no
  10080. need_version=no
  10081. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10083. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10084. dynamic_linker='NetBSD (a.out) ld.so'
  10085. else
  10086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10087. soname_spec='${libname}${release}${shared_ext}$major'
  10088. dynamic_linker='NetBSD ld.elf_so'
  10089. fi
  10090. shlibpath_var=LD_LIBRARY_PATH
  10091. shlibpath_overrides_runpath=yes
  10092. hardcode_into_libs=yes
  10093. ;;
  10094. newsos6)
  10095. version_type=linux
  10096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10097. shlibpath_var=LD_LIBRARY_PATH
  10098. shlibpath_overrides_runpath=yes
  10099. ;;
  10100. *nto* | *qnx*)
  10101. version_type=qnx
  10102. need_lib_prefix=no
  10103. need_version=no
  10104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10105. soname_spec='${libname}${release}${shared_ext}$major'
  10106. shlibpath_var=LD_LIBRARY_PATH
  10107. shlibpath_overrides_runpath=no
  10108. hardcode_into_libs=yes
  10109. dynamic_linker='ldqnx.so'
  10110. ;;
  10111. openbsd*)
  10112. version_type=sunos
  10113. sys_lib_dlsearch_path_spec="/usr/lib"
  10114. need_lib_prefix=no
  10115. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10116. case $host_os in
  10117. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10118. *) need_version=no ;;
  10119. esac
  10120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10121. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10122. shlibpath_var=LD_LIBRARY_PATH
  10123. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10124. case $host_os in
  10125. openbsd2.[89] | openbsd2.[89].*)
  10126. shlibpath_overrides_runpath=no
  10127. ;;
  10128. *)
  10129. shlibpath_overrides_runpath=yes
  10130. ;;
  10131. esac
  10132. else
  10133. shlibpath_overrides_runpath=yes
  10134. fi
  10135. ;;
  10136. os2*)
  10137. libname_spec='$name'
  10138. shrext_cmds=".dll"
  10139. need_lib_prefix=no
  10140. library_names_spec='$libname${shared_ext} $libname.a'
  10141. dynamic_linker='OS/2 ld.exe'
  10142. shlibpath_var=LIBPATH
  10143. ;;
  10144. osf3* | osf4* | osf5*)
  10145. version_type=osf
  10146. need_lib_prefix=no
  10147. need_version=no
  10148. soname_spec='${libname}${release}${shared_ext}$major'
  10149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10150. shlibpath_var=LD_LIBRARY_PATH
  10151. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10152. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10153. ;;
  10154. rdos*)
  10155. dynamic_linker=no
  10156. ;;
  10157. solaris*)
  10158. version_type=linux
  10159. need_lib_prefix=no
  10160. need_version=no
  10161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10162. soname_spec='${libname}${release}${shared_ext}$major'
  10163. shlibpath_var=LD_LIBRARY_PATH
  10164. shlibpath_overrides_runpath=yes
  10165. hardcode_into_libs=yes
  10166. # ldd complains unless libraries are executable
  10167. postinstall_cmds='chmod +x $lib'
  10168. ;;
  10169. sunos4*)
  10170. version_type=sunos
  10171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10172. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10173. shlibpath_var=LD_LIBRARY_PATH
  10174. shlibpath_overrides_runpath=yes
  10175. if test "$with_gnu_ld" = yes; then
  10176. need_lib_prefix=no
  10177. fi
  10178. need_version=yes
  10179. ;;
  10180. sysv4 | sysv4.3*)
  10181. version_type=linux
  10182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10183. soname_spec='${libname}${release}${shared_ext}$major'
  10184. shlibpath_var=LD_LIBRARY_PATH
  10185. case $host_vendor in
  10186. sni)
  10187. shlibpath_overrides_runpath=no
  10188. need_lib_prefix=no
  10189. runpath_var=LD_RUN_PATH
  10190. ;;
  10191. siemens)
  10192. need_lib_prefix=no
  10193. ;;
  10194. motorola)
  10195. need_lib_prefix=no
  10196. need_version=no
  10197. shlibpath_overrides_runpath=no
  10198. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10199. ;;
  10200. esac
  10201. ;;
  10202. sysv4*MP*)
  10203. if test -d /usr/nec ;then
  10204. version_type=linux
  10205. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10206. soname_spec='$libname${shared_ext}.$major'
  10207. shlibpath_var=LD_LIBRARY_PATH
  10208. fi
  10209. ;;
  10210. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10211. version_type=freebsd-elf
  10212. need_lib_prefix=no
  10213. need_version=no
  10214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10215. soname_spec='${libname}${release}${shared_ext}$major'
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. shlibpath_overrides_runpath=yes
  10218. hardcode_into_libs=yes
  10219. if test "$with_gnu_ld" = yes; then
  10220. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10221. else
  10222. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10223. case $host_os in
  10224. sco3.2v5*)
  10225. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10226. ;;
  10227. esac
  10228. fi
  10229. sys_lib_dlsearch_path_spec='/usr/lib'
  10230. ;;
  10231. tpf*)
  10232. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10233. version_type=linux
  10234. need_lib_prefix=no
  10235. need_version=no
  10236. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10237. shlibpath_var=LD_LIBRARY_PATH
  10238. shlibpath_overrides_runpath=no
  10239. hardcode_into_libs=yes
  10240. ;;
  10241. uts4*)
  10242. version_type=linux
  10243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10244. soname_spec='${libname}${release}${shared_ext}$major'
  10245. shlibpath_var=LD_LIBRARY_PATH
  10246. ;;
  10247. *)
  10248. dynamic_linker=no
  10249. ;;
  10250. esac
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10252. $as_echo "$dynamic_linker" >&6; }
  10253. test "$dynamic_linker" = no && can_build_shared=no
  10254. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10255. if test "$GCC" = yes; then
  10256. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10257. fi
  10258. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10259. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10260. fi
  10261. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10262. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10265. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10266. hardcode_action=
  10267. if test -n "$hardcode_libdir_flag_spec" ||
  10268. test -n "$runpath_var" ||
  10269. test "X$hardcode_automatic" = "Xyes" ; then
  10270. # We can hardcode non-existent directories.
  10271. if test "$hardcode_direct" != no &&
  10272. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10273. # have to relink, otherwise we might link with an installed library
  10274. # when we should be linking with a yet-to-be-installed one
  10275. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10276. test "$hardcode_minus_L" != no; then
  10277. # Linking always hardcodes the temporary library directory.
  10278. hardcode_action=relink
  10279. else
  10280. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10281. hardcode_action=immediate
  10282. fi
  10283. else
  10284. # We cannot hardcode anything, or else we can only hardcode existing
  10285. # directories.
  10286. hardcode_action=unsupported
  10287. fi
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10289. $as_echo "$hardcode_action" >&6; }
  10290. if test "$hardcode_action" = relink ||
  10291. test "$inherit_rpath" = yes; then
  10292. # Fast installation is not supported
  10293. enable_fast_install=no
  10294. elif test "$shlibpath_overrides_runpath" = yes ||
  10295. test "$enable_shared" = no; then
  10296. # Fast installation is not necessary
  10297. enable_fast_install=needless
  10298. fi
  10299. if test "x$enable_dlopen" != xyes; then
  10300. enable_dlopen=unknown
  10301. enable_dlopen_self=unknown
  10302. enable_dlopen_self_static=unknown
  10303. else
  10304. lt_cv_dlopen=no
  10305. lt_cv_dlopen_libs=
  10306. case $host_os in
  10307. beos*)
  10308. lt_cv_dlopen="load_add_on"
  10309. lt_cv_dlopen_libs=
  10310. lt_cv_dlopen_self=yes
  10311. ;;
  10312. mingw* | pw32* | cegcc*)
  10313. lt_cv_dlopen="LoadLibrary"
  10314. lt_cv_dlopen_libs=
  10315. ;;
  10316. cygwin*)
  10317. lt_cv_dlopen="dlopen"
  10318. lt_cv_dlopen_libs=
  10319. ;;
  10320. darwin*)
  10321. # if libdl is installed we need to link against it
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10323. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10324. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10325. $as_echo_n "(cached) " >&6
  10326. else
  10327. ac_check_lib_save_LIBS=$LIBS
  10328. LIBS="-ldl $LIBS"
  10329. if test x$gcc_no_link = xyes; then
  10330. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10331. fi
  10332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10333. /* end confdefs.h. */
  10334. /* Override any GCC internal prototype to avoid an error.
  10335. Use char because int might match the return type of a GCC
  10336. builtin and then its argument prototype would still apply. */
  10337. #ifdef __cplusplus
  10338. extern "C"
  10339. #endif
  10340. char dlopen ();
  10341. int
  10342. main ()
  10343. {
  10344. return dlopen ();
  10345. ;
  10346. return 0;
  10347. }
  10348. _ACEOF
  10349. if ac_fn_c_try_link "$LINENO"; then :
  10350. ac_cv_lib_dl_dlopen=yes
  10351. else
  10352. ac_cv_lib_dl_dlopen=no
  10353. fi
  10354. rm -f core conftest.err conftest.$ac_objext \
  10355. conftest$ac_exeext conftest.$ac_ext
  10356. LIBS=$ac_check_lib_save_LIBS
  10357. fi
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10359. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10360. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10361. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10362. else
  10363. lt_cv_dlopen="dyld"
  10364. lt_cv_dlopen_libs=
  10365. lt_cv_dlopen_self=yes
  10366. fi
  10367. ;;
  10368. *)
  10369. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10370. if test "x$ac_cv_func_shl_load" = xyes; then :
  10371. lt_cv_dlopen="shl_load"
  10372. else
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10374. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10375. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10376. $as_echo_n "(cached) " >&6
  10377. else
  10378. ac_check_lib_save_LIBS=$LIBS
  10379. LIBS="-ldld $LIBS"
  10380. if test x$gcc_no_link = xyes; then
  10381. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10382. fi
  10383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10384. /* end confdefs.h. */
  10385. /* Override any GCC internal prototype to avoid an error.
  10386. Use char because int might match the return type of a GCC
  10387. builtin and then its argument prototype would still apply. */
  10388. #ifdef __cplusplus
  10389. extern "C"
  10390. #endif
  10391. char shl_load ();
  10392. int
  10393. main ()
  10394. {
  10395. return shl_load ();
  10396. ;
  10397. return 0;
  10398. }
  10399. _ACEOF
  10400. if ac_fn_c_try_link "$LINENO"; then :
  10401. ac_cv_lib_dld_shl_load=yes
  10402. else
  10403. ac_cv_lib_dld_shl_load=no
  10404. fi
  10405. rm -f core conftest.err conftest.$ac_objext \
  10406. conftest$ac_exeext conftest.$ac_ext
  10407. LIBS=$ac_check_lib_save_LIBS
  10408. fi
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10410. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10411. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10412. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10413. else
  10414. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10415. if test "x$ac_cv_func_dlopen" = xyes; then :
  10416. lt_cv_dlopen="dlopen"
  10417. else
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10419. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10420. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. ac_check_lib_save_LIBS=$LIBS
  10424. LIBS="-ldl $LIBS"
  10425. if test x$gcc_no_link = xyes; then
  10426. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10427. fi
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. /* Override any GCC internal prototype to avoid an error.
  10431. Use char because int might match the return type of a GCC
  10432. builtin and then its argument prototype would still apply. */
  10433. #ifdef __cplusplus
  10434. extern "C"
  10435. #endif
  10436. char dlopen ();
  10437. int
  10438. main ()
  10439. {
  10440. return dlopen ();
  10441. ;
  10442. return 0;
  10443. }
  10444. _ACEOF
  10445. if ac_fn_c_try_link "$LINENO"; then :
  10446. ac_cv_lib_dl_dlopen=yes
  10447. else
  10448. ac_cv_lib_dl_dlopen=no
  10449. fi
  10450. rm -f core conftest.err conftest.$ac_objext \
  10451. conftest$ac_exeext conftest.$ac_ext
  10452. LIBS=$ac_check_lib_save_LIBS
  10453. fi
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10455. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10456. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10457. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10458. else
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10460. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10461. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10462. $as_echo_n "(cached) " >&6
  10463. else
  10464. ac_check_lib_save_LIBS=$LIBS
  10465. LIBS="-lsvld $LIBS"
  10466. if test x$gcc_no_link = xyes; then
  10467. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10468. fi
  10469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10470. /* end confdefs.h. */
  10471. /* Override any GCC internal prototype to avoid an error.
  10472. Use char because int might match the return type of a GCC
  10473. builtin and then its argument prototype would still apply. */
  10474. #ifdef __cplusplus
  10475. extern "C"
  10476. #endif
  10477. char dlopen ();
  10478. int
  10479. main ()
  10480. {
  10481. return dlopen ();
  10482. ;
  10483. return 0;
  10484. }
  10485. _ACEOF
  10486. if ac_fn_c_try_link "$LINENO"; then :
  10487. ac_cv_lib_svld_dlopen=yes
  10488. else
  10489. ac_cv_lib_svld_dlopen=no
  10490. fi
  10491. rm -f core conftest.err conftest.$ac_objext \
  10492. conftest$ac_exeext conftest.$ac_ext
  10493. LIBS=$ac_check_lib_save_LIBS
  10494. fi
  10495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10496. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10497. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10498. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10499. else
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10501. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10502. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10503. $as_echo_n "(cached) " >&6
  10504. else
  10505. ac_check_lib_save_LIBS=$LIBS
  10506. LIBS="-ldld $LIBS"
  10507. if test x$gcc_no_link = xyes; then
  10508. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10509. fi
  10510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10511. /* end confdefs.h. */
  10512. /* Override any GCC internal prototype to avoid an error.
  10513. Use char because int might match the return type of a GCC
  10514. builtin and then its argument prototype would still apply. */
  10515. #ifdef __cplusplus
  10516. extern "C"
  10517. #endif
  10518. char dld_link ();
  10519. int
  10520. main ()
  10521. {
  10522. return dld_link ();
  10523. ;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. if ac_fn_c_try_link "$LINENO"; then :
  10528. ac_cv_lib_dld_dld_link=yes
  10529. else
  10530. ac_cv_lib_dld_dld_link=no
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext \
  10533. conftest$ac_exeext conftest.$ac_ext
  10534. LIBS=$ac_check_lib_save_LIBS
  10535. fi
  10536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10537. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10538. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10539. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10540. fi
  10541. fi
  10542. fi
  10543. fi
  10544. fi
  10545. fi
  10546. ;;
  10547. esac
  10548. if test "x$lt_cv_dlopen" != xno; then
  10549. enable_dlopen=yes
  10550. else
  10551. enable_dlopen=no
  10552. fi
  10553. case $lt_cv_dlopen in
  10554. dlopen)
  10555. save_CPPFLAGS="$CPPFLAGS"
  10556. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10557. save_LDFLAGS="$LDFLAGS"
  10558. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10559. save_LIBS="$LIBS"
  10560. LIBS="$lt_cv_dlopen_libs $LIBS"
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10562. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10563. if ${lt_cv_dlopen_self+:} false; then :
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. if test "$cross_compiling" = yes; then :
  10567. lt_cv_dlopen_self=cross
  10568. else
  10569. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10570. lt_status=$lt_dlunknown
  10571. cat > conftest.$ac_ext <<_LT_EOF
  10572. #line 12194 "configure"
  10573. #include "confdefs.h"
  10574. #if HAVE_DLFCN_H
  10575. #include <dlfcn.h>
  10576. #endif
  10577. #include <stdio.h>
  10578. #ifdef RTLD_GLOBAL
  10579. # define LT_DLGLOBAL RTLD_GLOBAL
  10580. #else
  10581. # ifdef DL_GLOBAL
  10582. # define LT_DLGLOBAL DL_GLOBAL
  10583. # else
  10584. # define LT_DLGLOBAL 0
  10585. # endif
  10586. #endif
  10587. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10588. find out it does not work in some platform. */
  10589. #ifndef LT_DLLAZY_OR_NOW
  10590. # ifdef RTLD_LAZY
  10591. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10592. # else
  10593. # ifdef DL_LAZY
  10594. # define LT_DLLAZY_OR_NOW DL_LAZY
  10595. # else
  10596. # ifdef RTLD_NOW
  10597. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10598. # else
  10599. # ifdef DL_NOW
  10600. # define LT_DLLAZY_OR_NOW DL_NOW
  10601. # else
  10602. # define LT_DLLAZY_OR_NOW 0
  10603. # endif
  10604. # endif
  10605. # endif
  10606. # endif
  10607. #endif
  10608. /* When -fvisbility=hidden is used, assume the code has been annotated
  10609. correspondingly for the symbols needed. */
  10610. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10611. void fnord () __attribute__((visibility("default")));
  10612. #endif
  10613. void fnord () { int i=42; }
  10614. int main ()
  10615. {
  10616. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10617. int status = $lt_dlunknown;
  10618. if (self)
  10619. {
  10620. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10621. else
  10622. {
  10623. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10624. else puts (dlerror ());
  10625. }
  10626. /* dlclose (self); */
  10627. }
  10628. else
  10629. puts (dlerror ());
  10630. return status;
  10631. }
  10632. _LT_EOF
  10633. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10634. (eval $ac_link) 2>&5
  10635. ac_status=$?
  10636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10637. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10638. (./conftest; exit; ) >&5 2>/dev/null
  10639. lt_status=$?
  10640. case x$lt_status in
  10641. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10642. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10643. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10644. esac
  10645. else :
  10646. # compilation failed
  10647. lt_cv_dlopen_self=no
  10648. fi
  10649. fi
  10650. rm -fr conftest*
  10651. fi
  10652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10653. $as_echo "$lt_cv_dlopen_self" >&6; }
  10654. if test "x$lt_cv_dlopen_self" = xyes; then
  10655. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10657. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10658. if ${lt_cv_dlopen_self_static+:} false; then :
  10659. $as_echo_n "(cached) " >&6
  10660. else
  10661. if test "$cross_compiling" = yes; then :
  10662. lt_cv_dlopen_self_static=cross
  10663. else
  10664. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10665. lt_status=$lt_dlunknown
  10666. cat > conftest.$ac_ext <<_LT_EOF
  10667. #line 12300 "configure"
  10668. #include "confdefs.h"
  10669. #if HAVE_DLFCN_H
  10670. #include <dlfcn.h>
  10671. #endif
  10672. #include <stdio.h>
  10673. #ifdef RTLD_GLOBAL
  10674. # define LT_DLGLOBAL RTLD_GLOBAL
  10675. #else
  10676. # ifdef DL_GLOBAL
  10677. # define LT_DLGLOBAL DL_GLOBAL
  10678. # else
  10679. # define LT_DLGLOBAL 0
  10680. # endif
  10681. #endif
  10682. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10683. find out it does not work in some platform. */
  10684. #ifndef LT_DLLAZY_OR_NOW
  10685. # ifdef RTLD_LAZY
  10686. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10687. # else
  10688. # ifdef DL_LAZY
  10689. # define LT_DLLAZY_OR_NOW DL_LAZY
  10690. # else
  10691. # ifdef RTLD_NOW
  10692. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10693. # else
  10694. # ifdef DL_NOW
  10695. # define LT_DLLAZY_OR_NOW DL_NOW
  10696. # else
  10697. # define LT_DLLAZY_OR_NOW 0
  10698. # endif
  10699. # endif
  10700. # endif
  10701. # endif
  10702. #endif
  10703. /* When -fvisbility=hidden is used, assume the code has been annotated
  10704. correspondingly for the symbols needed. */
  10705. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10706. void fnord () __attribute__((visibility("default")));
  10707. #endif
  10708. void fnord () { int i=42; }
  10709. int main ()
  10710. {
  10711. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10712. int status = $lt_dlunknown;
  10713. if (self)
  10714. {
  10715. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10716. else
  10717. {
  10718. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10719. else puts (dlerror ());
  10720. }
  10721. /* dlclose (self); */
  10722. }
  10723. else
  10724. puts (dlerror ());
  10725. return status;
  10726. }
  10727. _LT_EOF
  10728. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10729. (eval $ac_link) 2>&5
  10730. ac_status=$?
  10731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10732. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10733. (./conftest; exit; ) >&5 2>/dev/null
  10734. lt_status=$?
  10735. case x$lt_status in
  10736. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10737. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10738. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10739. esac
  10740. else :
  10741. # compilation failed
  10742. lt_cv_dlopen_self_static=no
  10743. fi
  10744. fi
  10745. rm -fr conftest*
  10746. fi
  10747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10748. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10749. fi
  10750. CPPFLAGS="$save_CPPFLAGS"
  10751. LDFLAGS="$save_LDFLAGS"
  10752. LIBS="$save_LIBS"
  10753. ;;
  10754. esac
  10755. case $lt_cv_dlopen_self in
  10756. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10757. *) enable_dlopen_self=unknown ;;
  10758. esac
  10759. case $lt_cv_dlopen_self_static in
  10760. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10761. *) enable_dlopen_self_static=unknown ;;
  10762. esac
  10763. fi
  10764. striplib=
  10765. old_striplib=
  10766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10767. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10768. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10769. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10770. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10772. $as_echo "yes" >&6; }
  10773. else
  10774. # FIXME - insert some real tests, host_os isn't really good enough
  10775. case $host_os in
  10776. darwin*)
  10777. if test -n "$STRIP" ; then
  10778. striplib="$STRIP -x"
  10779. old_striplib="$STRIP -S"
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10781. $as_echo "yes" >&6; }
  10782. else
  10783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10784. $as_echo "no" >&6; }
  10785. fi
  10786. ;;
  10787. *)
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10789. $as_echo "no" >&6; }
  10790. ;;
  10791. esac
  10792. fi
  10793. # Report which library types will actually be built
  10794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10795. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10797. $as_echo "$can_build_shared" >&6; }
  10798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10799. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10800. test "$can_build_shared" = "no" && enable_shared=no
  10801. # On AIX, shared libraries and static libraries use the same namespace, and
  10802. # are all built from PIC.
  10803. case $host_os in
  10804. aix3*)
  10805. test "$enable_shared" = yes && enable_static=no
  10806. if test -n "$RANLIB"; then
  10807. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10808. postinstall_cmds='$RANLIB $lib'
  10809. fi
  10810. ;;
  10811. aix[4-9]*)
  10812. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10813. test "$enable_shared" = yes && enable_static=no
  10814. fi
  10815. ;;
  10816. esac
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10818. $as_echo "$enable_shared" >&6; }
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10820. $as_echo_n "checking whether to build static libraries... " >&6; }
  10821. # Make sure either enable_shared or enable_static is yes.
  10822. test "$enable_shared" = yes || enable_static=yes
  10823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10824. $as_echo "$enable_static" >&6; }
  10825. fi
  10826. ac_ext=c
  10827. ac_cpp='$CPP $CPPFLAGS'
  10828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10831. CC="$lt_save_CC"
  10832. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10833. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10834. (test "X$CXX" != "Xg++"))) ; then
  10835. ac_ext=cpp
  10836. ac_cpp='$CXXCPP $CPPFLAGS'
  10837. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10838. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10839. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10841. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10842. if test -z "$CXXCPP"; then
  10843. if ${ac_cv_prog_CXXCPP+:} false; then :
  10844. $as_echo_n "(cached) " >&6
  10845. else
  10846. # Double quotes because CXXCPP needs to be expanded
  10847. for CXXCPP in "$CXX -E" "/lib/cpp"
  10848. do
  10849. ac_preproc_ok=false
  10850. for ac_cxx_preproc_warn_flag in '' yes
  10851. do
  10852. # Use a header file that comes with gcc, so configuring glibc
  10853. # with a fresh cross-compiler works.
  10854. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10855. # <limits.h> exists even on freestanding compilers.
  10856. # On the NeXT, cc -E runs the code through the compiler's parser,
  10857. # not just through cpp. "Syntax error" is here to catch this case.
  10858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10859. /* end confdefs.h. */
  10860. #ifdef __STDC__
  10861. # include <limits.h>
  10862. #else
  10863. # include <assert.h>
  10864. #endif
  10865. Syntax error
  10866. _ACEOF
  10867. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10868. else
  10869. # Broken: fails on valid input.
  10870. continue
  10871. fi
  10872. rm -f conftest.err conftest.i conftest.$ac_ext
  10873. # OK, works on sane cases. Now check whether nonexistent headers
  10874. # can be detected and how.
  10875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10876. /* end confdefs.h. */
  10877. #include <ac_nonexistent.h>
  10878. _ACEOF
  10879. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10880. # Broken: success on invalid input.
  10881. continue
  10882. else
  10883. # Passes both tests.
  10884. ac_preproc_ok=:
  10885. break
  10886. fi
  10887. rm -f conftest.err conftest.i conftest.$ac_ext
  10888. done
  10889. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10890. rm -f conftest.i conftest.err conftest.$ac_ext
  10891. if $ac_preproc_ok; then :
  10892. break
  10893. fi
  10894. done
  10895. ac_cv_prog_CXXCPP=$CXXCPP
  10896. fi
  10897. CXXCPP=$ac_cv_prog_CXXCPP
  10898. else
  10899. ac_cv_prog_CXXCPP=$CXXCPP
  10900. fi
  10901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10902. $as_echo "$CXXCPP" >&6; }
  10903. ac_preproc_ok=false
  10904. for ac_cxx_preproc_warn_flag in '' yes
  10905. do
  10906. # Use a header file that comes with gcc, so configuring glibc
  10907. # with a fresh cross-compiler works.
  10908. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10909. # <limits.h> exists even on freestanding compilers.
  10910. # On the NeXT, cc -E runs the code through the compiler's parser,
  10911. # not just through cpp. "Syntax error" is here to catch this case.
  10912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10913. /* end confdefs.h. */
  10914. #ifdef __STDC__
  10915. # include <limits.h>
  10916. #else
  10917. # include <assert.h>
  10918. #endif
  10919. Syntax error
  10920. _ACEOF
  10921. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10922. else
  10923. # Broken: fails on valid input.
  10924. continue
  10925. fi
  10926. rm -f conftest.err conftest.i conftest.$ac_ext
  10927. # OK, works on sane cases. Now check whether nonexistent headers
  10928. # can be detected and how.
  10929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10930. /* end confdefs.h. */
  10931. #include <ac_nonexistent.h>
  10932. _ACEOF
  10933. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10934. # Broken: success on invalid input.
  10935. continue
  10936. else
  10937. # Passes both tests.
  10938. ac_preproc_ok=:
  10939. break
  10940. fi
  10941. rm -f conftest.err conftest.i conftest.$ac_ext
  10942. done
  10943. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10944. rm -f conftest.i conftest.err conftest.$ac_ext
  10945. if $ac_preproc_ok; then :
  10946. else
  10947. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10948. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10949. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10950. See \`config.log' for more details" "$LINENO" 5; }
  10951. fi
  10952. ac_ext=c
  10953. ac_cpp='$CPP $CPPFLAGS'
  10954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10957. else
  10958. _lt_caught_CXX_error=yes
  10959. fi
  10960. ac_ext=cpp
  10961. ac_cpp='$CXXCPP $CPPFLAGS'
  10962. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10963. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10964. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10965. archive_cmds_need_lc_CXX=no
  10966. allow_undefined_flag_CXX=
  10967. always_export_symbols_CXX=no
  10968. archive_expsym_cmds_CXX=
  10969. compiler_needs_object_CXX=no
  10970. export_dynamic_flag_spec_CXX=
  10971. hardcode_direct_CXX=no
  10972. hardcode_direct_absolute_CXX=no
  10973. hardcode_libdir_flag_spec_CXX=
  10974. hardcode_libdir_flag_spec_ld_CXX=
  10975. hardcode_libdir_separator_CXX=
  10976. hardcode_minus_L_CXX=no
  10977. hardcode_shlibpath_var_CXX=unsupported
  10978. hardcode_automatic_CXX=no
  10979. inherit_rpath_CXX=no
  10980. module_cmds_CXX=
  10981. module_expsym_cmds_CXX=
  10982. link_all_deplibs_CXX=unknown
  10983. old_archive_cmds_CXX=$old_archive_cmds
  10984. reload_flag_CXX=$reload_flag
  10985. reload_cmds_CXX=$reload_cmds
  10986. no_undefined_flag_CXX=
  10987. whole_archive_flag_spec_CXX=
  10988. enable_shared_with_static_runtimes_CXX=no
  10989. # Source file extension for C++ test sources.
  10990. ac_ext=cpp
  10991. # Object file extension for compiled C++ test sources.
  10992. objext=o
  10993. objext_CXX=$objext
  10994. # No sense in running all these tests if we already determined that
  10995. # the CXX compiler isn't working. Some variables (like enable_shared)
  10996. # are currently assumed to apply to all compilers on this platform,
  10997. # and will be corrupted by setting them based on a non-working compiler.
  10998. if test "$_lt_caught_CXX_error" != yes; then
  10999. # Code to be used in simple compile tests
  11000. lt_simple_compile_test_code="int some_variable = 0;"
  11001. # Code to be used in simple link tests
  11002. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11003. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11004. # If no C compiler was specified, use CC.
  11005. LTCC=${LTCC-"$CC"}
  11006. # If no C compiler flags were specified, use CFLAGS.
  11007. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11008. # Allow CC to be a program name with arguments.
  11009. compiler=$CC
  11010. # save warnings/boilerplate of simple test code
  11011. ac_outfile=conftest.$ac_objext
  11012. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11013. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11014. _lt_compiler_boilerplate=`cat conftest.err`
  11015. $RM conftest*
  11016. ac_outfile=conftest.$ac_objext
  11017. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11018. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11019. _lt_linker_boilerplate=`cat conftest.err`
  11020. $RM -r conftest*
  11021. # Allow CC to be a program name with arguments.
  11022. lt_save_CC=$CC
  11023. lt_save_LD=$LD
  11024. lt_save_GCC=$GCC
  11025. GCC=$GXX
  11026. lt_save_with_gnu_ld=$with_gnu_ld
  11027. lt_save_path_LD=$lt_cv_path_LD
  11028. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11029. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11030. else
  11031. $as_unset lt_cv_prog_gnu_ld
  11032. fi
  11033. if test -n "${lt_cv_path_LDCXX+set}"; then
  11034. lt_cv_path_LD=$lt_cv_path_LDCXX
  11035. else
  11036. $as_unset lt_cv_path_LD
  11037. fi
  11038. test -z "${LDCXX+set}" || LD=$LDCXX
  11039. CC=${CXX-"c++"}
  11040. compiler=$CC
  11041. compiler_CXX=$CC
  11042. for cc_temp in $compiler""; do
  11043. case $cc_temp in
  11044. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11045. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11046. \-*) ;;
  11047. *) break;;
  11048. esac
  11049. done
  11050. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11051. if test -n "$compiler"; then
  11052. # We don't want -fno-exception when compiling C++ code, so set the
  11053. # no_builtin_flag separately
  11054. if test "$GXX" = yes; then
  11055. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11056. else
  11057. lt_prog_compiler_no_builtin_flag_CXX=
  11058. fi
  11059. if test "$GXX" = yes; then
  11060. # Set up default GNU C++ configuration
  11061. # Check whether --with-gnu-ld was given.
  11062. if test "${with_gnu_ld+set}" = set; then :
  11063. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11064. else
  11065. with_gnu_ld=no
  11066. fi
  11067. ac_prog=ld
  11068. if test "$GCC" = yes; then
  11069. # Check if gcc -print-prog-name=ld gives a path.
  11070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11071. $as_echo_n "checking for ld used by $CC... " >&6; }
  11072. case $host in
  11073. *-*-mingw*)
  11074. # gcc leaves a trailing carriage return which upsets mingw
  11075. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11076. *)
  11077. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11078. esac
  11079. case $ac_prog in
  11080. # Accept absolute paths.
  11081. [\\/]* | ?:[\\/]*)
  11082. re_direlt='/[^/][^/]*/\.\./'
  11083. # Canonicalize the pathname of ld
  11084. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11085. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11086. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11087. done
  11088. test -z "$LD" && LD="$ac_prog"
  11089. ;;
  11090. "")
  11091. # If it fails, then pretend we aren't using GCC.
  11092. ac_prog=ld
  11093. ;;
  11094. *)
  11095. # If it is relative, then search for the first ld in PATH.
  11096. with_gnu_ld=unknown
  11097. ;;
  11098. esac
  11099. elif test "$with_gnu_ld" = yes; then
  11100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11101. $as_echo_n "checking for GNU ld... " >&6; }
  11102. else
  11103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11104. $as_echo_n "checking for non-GNU ld... " >&6; }
  11105. fi
  11106. if ${lt_cv_path_LD+:} false; then :
  11107. $as_echo_n "(cached) " >&6
  11108. else
  11109. if test -z "$LD"; then
  11110. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11111. for ac_dir in $PATH; do
  11112. IFS="$lt_save_ifs"
  11113. test -z "$ac_dir" && ac_dir=.
  11114. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11115. lt_cv_path_LD="$ac_dir/$ac_prog"
  11116. # Check to see if the program is GNU ld. I'd rather use --version,
  11117. # but apparently some variants of GNU ld only accept -v.
  11118. # Break only if it was the GNU/non-GNU ld that we prefer.
  11119. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11120. *GNU* | *'with BFD'*)
  11121. test "$with_gnu_ld" != no && break
  11122. ;;
  11123. *)
  11124. test "$with_gnu_ld" != yes && break
  11125. ;;
  11126. esac
  11127. fi
  11128. done
  11129. IFS="$lt_save_ifs"
  11130. else
  11131. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11132. fi
  11133. fi
  11134. LD="$lt_cv_path_LD"
  11135. if test -n "$LD"; then
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11137. $as_echo "$LD" >&6; }
  11138. else
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11140. $as_echo "no" >&6; }
  11141. fi
  11142. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11144. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11145. if ${lt_cv_prog_gnu_ld+:} false; then :
  11146. $as_echo_n "(cached) " >&6
  11147. else
  11148. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11149. case `$LD -v 2>&1 </dev/null` in
  11150. *GNU* | *'with BFD'*)
  11151. lt_cv_prog_gnu_ld=yes
  11152. ;;
  11153. *)
  11154. lt_cv_prog_gnu_ld=no
  11155. ;;
  11156. esac
  11157. fi
  11158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11159. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11160. with_gnu_ld=$lt_cv_prog_gnu_ld
  11161. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11162. # archiving commands below assume that GNU ld is being used.
  11163. if test "$with_gnu_ld" = yes; then
  11164. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11165. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11166. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11167. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11168. # If archive_cmds runs LD, not CC, wlarc should be empty
  11169. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11170. # investigate it a little bit more. (MM)
  11171. wlarc='${wl}'
  11172. # ancient GNU ld didn't support --whole-archive et. al.
  11173. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11174. $GREP 'no-whole-archive' > /dev/null; then
  11175. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11176. else
  11177. whole_archive_flag_spec_CXX=
  11178. fi
  11179. else
  11180. with_gnu_ld=no
  11181. wlarc=
  11182. # A generic and very simple default shared library creation
  11183. # command for GNU C++ for the case where it uses the native
  11184. # linker, instead of GNU ld. If possible, this setting should
  11185. # overridden to take advantage of the native linker features on
  11186. # the platform it is being used on.
  11187. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11188. fi
  11189. # Commands to make compiler produce verbose output that lists
  11190. # what "hidden" libraries, object files and flags are used when
  11191. # linking a shared library.
  11192. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11193. else
  11194. GXX=no
  11195. with_gnu_ld=no
  11196. wlarc=
  11197. fi
  11198. # PORTME: fill in a description of your system's C++ link characteristics
  11199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11200. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11201. ld_shlibs_CXX=yes
  11202. case $host_os in
  11203. aix3*)
  11204. # FIXME: insert proper C++ library support
  11205. ld_shlibs_CXX=no
  11206. ;;
  11207. aix[4-9]*)
  11208. if test "$host_cpu" = ia64; then
  11209. # On IA64, the linker does run time linking by default, so we don't
  11210. # have to do anything special.
  11211. aix_use_runtimelinking=no
  11212. exp_sym_flag='-Bexport'
  11213. no_entry_flag=""
  11214. else
  11215. aix_use_runtimelinking=no
  11216. # Test if we are trying to use run time linking or normal
  11217. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11218. # need to do runtime linking.
  11219. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11220. for ld_flag in $LDFLAGS; do
  11221. case $ld_flag in
  11222. *-brtl*)
  11223. aix_use_runtimelinking=yes
  11224. break
  11225. ;;
  11226. esac
  11227. done
  11228. ;;
  11229. esac
  11230. exp_sym_flag='-bexport'
  11231. no_entry_flag='-bnoentry'
  11232. fi
  11233. # When large executables or shared objects are built, AIX ld can
  11234. # have problems creating the table of contents. If linking a library
  11235. # or program results in "error TOC overflow" add -mminimal-toc to
  11236. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11237. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11238. archive_cmds_CXX=''
  11239. hardcode_direct_CXX=yes
  11240. hardcode_direct_absolute_CXX=yes
  11241. hardcode_libdir_separator_CXX=':'
  11242. link_all_deplibs_CXX=yes
  11243. file_list_spec_CXX='${wl}-f,'
  11244. if test "$GXX" = yes; then
  11245. case $host_os in aix4.[012]|aix4.[012].*)
  11246. # We only want to do this on AIX 4.2 and lower, the check
  11247. # below for broken collect2 doesn't work under 4.3+
  11248. collect2name=`${CC} -print-prog-name=collect2`
  11249. if test -f "$collect2name" &&
  11250. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11251. then
  11252. # We have reworked collect2
  11253. :
  11254. else
  11255. # We have old collect2
  11256. hardcode_direct_CXX=unsupported
  11257. # It fails to find uninstalled libraries when the uninstalled
  11258. # path is not listed in the libpath. Setting hardcode_minus_L
  11259. # to unsupported forces relinking
  11260. hardcode_minus_L_CXX=yes
  11261. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11262. hardcode_libdir_separator_CXX=
  11263. fi
  11264. esac
  11265. shared_flag='-shared'
  11266. if test "$aix_use_runtimelinking" = yes; then
  11267. shared_flag="$shared_flag "'${wl}-G'
  11268. fi
  11269. else
  11270. # not using gcc
  11271. if test "$host_cpu" = ia64; then
  11272. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11273. # chokes on -Wl,-G. The following line is correct:
  11274. shared_flag='-G'
  11275. else
  11276. if test "$aix_use_runtimelinking" = yes; then
  11277. shared_flag='${wl}-G'
  11278. else
  11279. shared_flag='${wl}-bM:SRE'
  11280. fi
  11281. fi
  11282. fi
  11283. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11284. # It seems that -bexpall does not export symbols beginning with
  11285. # underscore (_), so it is better to generate a list of symbols to
  11286. # export.
  11287. always_export_symbols_CXX=yes
  11288. if test "$aix_use_runtimelinking" = yes; then
  11289. # Warning - without using the other runtime loading flags (-brtl),
  11290. # -berok will link without error, but may produce a broken library.
  11291. allow_undefined_flag_CXX='-berok'
  11292. # Determine the default libpath from the value encoded in an empty
  11293. # executable.
  11294. if test x$gcc_no_link = xyes; then
  11295. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11296. fi
  11297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11298. /* end confdefs.h. */
  11299. int
  11300. main ()
  11301. {
  11302. ;
  11303. return 0;
  11304. }
  11305. _ACEOF
  11306. if ac_fn_cxx_try_link "$LINENO"; then :
  11307. lt_aix_libpath_sed='
  11308. /Import File Strings/,/^$/ {
  11309. /^0/ {
  11310. s/^0 *\(.*\)$/\1/
  11311. p
  11312. }
  11313. }'
  11314. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11315. # Check for a 64-bit object if we didn't find anything.
  11316. if test -z "$aix_libpath"; then
  11317. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11318. fi
  11319. fi
  11320. rm -f core conftest.err conftest.$ac_objext \
  11321. conftest$ac_exeext conftest.$ac_ext
  11322. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11323. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11324. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11325. else
  11326. if test "$host_cpu" = ia64; then
  11327. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11328. allow_undefined_flag_CXX="-z nodefs"
  11329. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11330. else
  11331. # Determine the default libpath from the value encoded in an
  11332. # empty executable.
  11333. if test x$gcc_no_link = xyes; then
  11334. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  11335. fi
  11336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11337. /* end confdefs.h. */
  11338. int
  11339. main ()
  11340. {
  11341. ;
  11342. return 0;
  11343. }
  11344. _ACEOF
  11345. if ac_fn_cxx_try_link "$LINENO"; then :
  11346. lt_aix_libpath_sed='
  11347. /Import File Strings/,/^$/ {
  11348. /^0/ {
  11349. s/^0 *\(.*\)$/\1/
  11350. p
  11351. }
  11352. }'
  11353. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11354. # Check for a 64-bit object if we didn't find anything.
  11355. if test -z "$aix_libpath"; then
  11356. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11357. fi
  11358. fi
  11359. rm -f core conftest.err conftest.$ac_objext \
  11360. conftest$ac_exeext conftest.$ac_ext
  11361. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11362. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11363. # Warning - without using the other run time loading flags,
  11364. # -berok will link without error, but may produce a broken library.
  11365. no_undefined_flag_CXX=' ${wl}-bernotok'
  11366. allow_undefined_flag_CXX=' ${wl}-berok'
  11367. if test "$with_gnu_ld" = yes; then
  11368. # We only use this code for GNU lds that support --whole-archive.
  11369. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11370. else
  11371. # Exported symbols can be pulled into shared objects from archives
  11372. whole_archive_flag_spec_CXX='$convenience'
  11373. fi
  11374. archive_cmds_need_lc_CXX=yes
  11375. # This is similar to how AIX traditionally builds its shared
  11376. # libraries.
  11377. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11378. fi
  11379. fi
  11380. ;;
  11381. beos*)
  11382. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11383. allow_undefined_flag_CXX=unsupported
  11384. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11385. # support --undefined. This deserves some investigation. FIXME
  11386. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11387. else
  11388. ld_shlibs_CXX=no
  11389. fi
  11390. ;;
  11391. chorus*)
  11392. case $cc_basename in
  11393. *)
  11394. # FIXME: insert proper C++ library support
  11395. ld_shlibs_CXX=no
  11396. ;;
  11397. esac
  11398. ;;
  11399. cygwin* | mingw* | pw32* | cegcc*)
  11400. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11401. # as there is no search path for DLLs.
  11402. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11403. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11404. allow_undefined_flag_CXX=unsupported
  11405. always_export_symbols_CXX=no
  11406. enable_shared_with_static_runtimes_CXX=yes
  11407. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11408. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11409. # If the export-symbols file already is a .def file (1st line
  11410. # is EXPORTS), use it as is; otherwise, prepend...
  11411. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11412. cp $export_symbols $output_objdir/$soname.def;
  11413. else
  11414. echo EXPORTS > $output_objdir/$soname.def;
  11415. cat $export_symbols >> $output_objdir/$soname.def;
  11416. fi~
  11417. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11418. else
  11419. ld_shlibs_CXX=no
  11420. fi
  11421. ;;
  11422. darwin* | rhapsody*)
  11423. archive_cmds_need_lc_CXX=no
  11424. hardcode_direct_CXX=no
  11425. hardcode_automatic_CXX=yes
  11426. hardcode_shlibpath_var_CXX=unsupported
  11427. if test "$lt_cv_ld_force_load" = "yes"; then
  11428. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11429. else
  11430. whole_archive_flag_spec_CXX=''
  11431. fi
  11432. link_all_deplibs_CXX=yes
  11433. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11434. case $cc_basename in
  11435. ifort*) _lt_dar_can_shared=yes ;;
  11436. *) _lt_dar_can_shared=$GCC ;;
  11437. esac
  11438. if test "$_lt_dar_can_shared" = "yes"; then
  11439. output_verbose_link_cmd=func_echo_all
  11440. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11441. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11442. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11443. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11444. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11445. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11446. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11447. fi
  11448. else
  11449. ld_shlibs_CXX=no
  11450. fi
  11451. ;;
  11452. dgux*)
  11453. case $cc_basename in
  11454. ec++*)
  11455. # FIXME: insert proper C++ library support
  11456. ld_shlibs_CXX=no
  11457. ;;
  11458. ghcx*)
  11459. # Green Hills C++ Compiler
  11460. # FIXME: insert proper C++ library support
  11461. ld_shlibs_CXX=no
  11462. ;;
  11463. *)
  11464. # FIXME: insert proper C++ library support
  11465. ld_shlibs_CXX=no
  11466. ;;
  11467. esac
  11468. ;;
  11469. freebsd2.*)
  11470. # C++ shared libraries reported to be fairly broken before
  11471. # switch to ELF
  11472. ld_shlibs_CXX=no
  11473. ;;
  11474. freebsd-elf*)
  11475. archive_cmds_need_lc_CXX=no
  11476. ;;
  11477. freebsd* | dragonfly*)
  11478. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11479. # conventions
  11480. ld_shlibs_CXX=yes
  11481. ;;
  11482. gnu*)
  11483. ;;
  11484. haiku*)
  11485. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11486. link_all_deplibs_CXX=yes
  11487. ;;
  11488. hpux9*)
  11489. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11490. hardcode_libdir_separator_CXX=:
  11491. export_dynamic_flag_spec_CXX='${wl}-E'
  11492. hardcode_direct_CXX=yes
  11493. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11494. # but as the default
  11495. # location of the library.
  11496. case $cc_basename in
  11497. CC*)
  11498. # FIXME: insert proper C++ library support
  11499. ld_shlibs_CXX=no
  11500. ;;
  11501. aCC*)
  11502. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11503. # Commands to make compiler produce verbose output that lists
  11504. # what "hidden" libraries, object files and flags are used when
  11505. # linking a shared library.
  11506. #
  11507. # There doesn't appear to be a way to prevent this compiler from
  11508. # explicitly linking system object files so we need to strip them
  11509. # from the output so that they don't get included in the library
  11510. # dependencies.
  11511. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11512. ;;
  11513. *)
  11514. if test "$GXX" = yes; then
  11515. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11516. else
  11517. # FIXME: insert proper C++ library support
  11518. ld_shlibs_CXX=no
  11519. fi
  11520. ;;
  11521. esac
  11522. ;;
  11523. hpux10*|hpux11*)
  11524. if test $with_gnu_ld = no; then
  11525. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11526. hardcode_libdir_separator_CXX=:
  11527. case $host_cpu in
  11528. hppa*64*|ia64*)
  11529. ;;
  11530. *)
  11531. export_dynamic_flag_spec_CXX='${wl}-E'
  11532. ;;
  11533. esac
  11534. fi
  11535. case $host_cpu in
  11536. hppa*64*|ia64*)
  11537. hardcode_direct_CXX=no
  11538. hardcode_shlibpath_var_CXX=no
  11539. ;;
  11540. *)
  11541. hardcode_direct_CXX=yes
  11542. hardcode_direct_absolute_CXX=yes
  11543. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11544. # but as the default
  11545. # location of the library.
  11546. ;;
  11547. esac
  11548. case $cc_basename in
  11549. CC*)
  11550. # FIXME: insert proper C++ library support
  11551. ld_shlibs_CXX=no
  11552. ;;
  11553. aCC*)
  11554. case $host_cpu in
  11555. hppa*64*)
  11556. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11557. ;;
  11558. ia64*)
  11559. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11560. ;;
  11561. *)
  11562. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11563. ;;
  11564. esac
  11565. # Commands to make compiler produce verbose output that lists
  11566. # what "hidden" libraries, object files and flags are used when
  11567. # linking a shared library.
  11568. #
  11569. # There doesn't appear to be a way to prevent this compiler from
  11570. # explicitly linking system object files so we need to strip them
  11571. # from the output so that they don't get included in the library
  11572. # dependencies.
  11573. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11574. ;;
  11575. *)
  11576. if test "$GXX" = yes; then
  11577. if test $with_gnu_ld = no; then
  11578. case $host_cpu in
  11579. hppa*64*)
  11580. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11581. ;;
  11582. ia64*)
  11583. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11584. ;;
  11585. *)
  11586. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11587. ;;
  11588. esac
  11589. fi
  11590. else
  11591. # FIXME: insert proper C++ library support
  11592. ld_shlibs_CXX=no
  11593. fi
  11594. ;;
  11595. esac
  11596. ;;
  11597. interix[3-9]*)
  11598. hardcode_direct_CXX=no
  11599. hardcode_shlibpath_var_CXX=no
  11600. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11601. export_dynamic_flag_spec_CXX='${wl}-E'
  11602. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11603. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11604. # default) and relocated if they conflict, which is a slow very memory
  11605. # consuming and fragmenting process. To avoid this, we pick a random,
  11606. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11607. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11608. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11609. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11610. ;;
  11611. irix5* | irix6*)
  11612. case $cc_basename in
  11613. CC*)
  11614. # SGI C++
  11615. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11616. # Archives containing C++ object files must be created using
  11617. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11618. # necessary to make sure instantiated templates are included
  11619. # in the archive.
  11620. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11621. ;;
  11622. *)
  11623. if test "$GXX" = yes; then
  11624. if test "$with_gnu_ld" = no; then
  11625. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11626. else
  11627. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11628. fi
  11629. fi
  11630. link_all_deplibs_CXX=yes
  11631. ;;
  11632. esac
  11633. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11634. hardcode_libdir_separator_CXX=:
  11635. inherit_rpath_CXX=yes
  11636. ;;
  11637. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11638. case $cc_basename in
  11639. KCC*)
  11640. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11641. # KCC will only create a shared library if the output file
  11642. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11643. # to its proper name (with version) after linking.
  11644. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11645. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11646. # Commands to make compiler produce verbose output that lists
  11647. # what "hidden" libraries, object files and flags are used when
  11648. # linking a shared library.
  11649. #
  11650. # There doesn't appear to be a way to prevent this compiler from
  11651. # explicitly linking system object files so we need to strip them
  11652. # from the output so that they don't get included in the library
  11653. # dependencies.
  11654. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11655. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11656. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11657. # Archives containing C++ object files must be created using
  11658. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11659. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11660. ;;
  11661. icpc* | ecpc* )
  11662. # Intel C++
  11663. with_gnu_ld=yes
  11664. # version 8.0 and above of icpc choke on multiply defined symbols
  11665. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11666. # earlier do not add the objects themselves.
  11667. case `$CC -V 2>&1` in
  11668. *"Version 7."*)
  11669. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11670. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11671. ;;
  11672. *) # Version 8.0 or newer
  11673. tmp_idyn=
  11674. case $host_cpu in
  11675. ia64*) tmp_idyn=' -i_dynamic';;
  11676. esac
  11677. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11678. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11679. ;;
  11680. esac
  11681. archive_cmds_need_lc_CXX=no
  11682. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11683. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11684. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11685. ;;
  11686. pgCC* | pgcpp*)
  11687. # Portland Group C++ compiler
  11688. case `$CC -V` in
  11689. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11690. prelink_cmds_CXX='tpldir=Template.dir~
  11691. rm -rf $tpldir~
  11692. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11693. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11694. old_archive_cmds_CXX='tpldir=Template.dir~
  11695. rm -rf $tpldir~
  11696. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11697. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11698. $RANLIB $oldlib'
  11699. archive_cmds_CXX='tpldir=Template.dir~
  11700. rm -rf $tpldir~
  11701. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11702. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11703. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11704. rm -rf $tpldir~
  11705. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11706. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11707. ;;
  11708. *) # Version 6 and above use weak symbols
  11709. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11710. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11711. ;;
  11712. esac
  11713. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11714. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11715. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11716. ;;
  11717. cxx*)
  11718. # Compaq C++
  11719. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11720. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11721. runpath_var=LD_RUN_PATH
  11722. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11723. hardcode_libdir_separator_CXX=:
  11724. # Commands to make compiler produce verbose output that lists
  11725. # what "hidden" libraries, object files and flags are used when
  11726. # linking a shared library.
  11727. #
  11728. # There doesn't appear to be a way to prevent this compiler from
  11729. # explicitly linking system object files so we need to strip them
  11730. # from the output so that they don't get included in the library
  11731. # dependencies.
  11732. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11733. ;;
  11734. xl* | mpixl* | bgxl*)
  11735. # IBM XL 8.0 on PPC, with GNU ld
  11736. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11737. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11738. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11739. if test "x$supports_anon_versioning" = xyes; then
  11740. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11741. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11742. echo "local: *; };" >> $output_objdir/$libname.ver~
  11743. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11744. fi
  11745. ;;
  11746. *)
  11747. case `$CC -V 2>&1 | sed 5q` in
  11748. *Sun\ C*)
  11749. # Sun C++ 5.9
  11750. no_undefined_flag_CXX=' -zdefs'
  11751. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11752. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11753. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11754. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11755. compiler_needs_object_CXX=yes
  11756. # Not sure whether something based on
  11757. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11758. # would be better.
  11759. output_verbose_link_cmd='func_echo_all'
  11760. # Archives containing C++ object files must be created using
  11761. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11762. # necessary to make sure instantiated templates are included
  11763. # in the archive.
  11764. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11765. ;;
  11766. esac
  11767. ;;
  11768. esac
  11769. ;;
  11770. lynxos*)
  11771. # FIXME: insert proper C++ library support
  11772. ld_shlibs_CXX=no
  11773. ;;
  11774. m88k*)
  11775. # FIXME: insert proper C++ library support
  11776. ld_shlibs_CXX=no
  11777. ;;
  11778. mvs*)
  11779. case $cc_basename in
  11780. cxx*)
  11781. # FIXME: insert proper C++ library support
  11782. ld_shlibs_CXX=no
  11783. ;;
  11784. *)
  11785. # FIXME: insert proper C++ library support
  11786. ld_shlibs_CXX=no
  11787. ;;
  11788. esac
  11789. ;;
  11790. netbsd*)
  11791. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11792. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11793. wlarc=
  11794. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11795. hardcode_direct_CXX=yes
  11796. hardcode_shlibpath_var_CXX=no
  11797. fi
  11798. # Workaround some broken pre-1.5 toolchains
  11799. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11800. ;;
  11801. *nto* | *qnx*)
  11802. ld_shlibs_CXX=yes
  11803. ;;
  11804. openbsd2*)
  11805. # C++ shared libraries are fairly broken
  11806. ld_shlibs_CXX=no
  11807. ;;
  11808. openbsd*)
  11809. if test -f /usr/libexec/ld.so; then
  11810. hardcode_direct_CXX=yes
  11811. hardcode_shlibpath_var_CXX=no
  11812. hardcode_direct_absolute_CXX=yes
  11813. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11814. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11815. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11816. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11817. export_dynamic_flag_spec_CXX='${wl}-E'
  11818. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11819. fi
  11820. output_verbose_link_cmd=func_echo_all
  11821. else
  11822. ld_shlibs_CXX=no
  11823. fi
  11824. ;;
  11825. osf3* | osf4* | osf5*)
  11826. case $cc_basename in
  11827. KCC*)
  11828. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11829. # KCC will only create a shared library if the output file
  11830. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11831. # to its proper name (with version) after linking.
  11832. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11833. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11834. hardcode_libdir_separator_CXX=:
  11835. # Archives containing C++ object files must be created using
  11836. # the KAI C++ compiler.
  11837. case $host in
  11838. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11839. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11840. esac
  11841. ;;
  11842. RCC*)
  11843. # Rational C++ 2.4.1
  11844. # FIXME: insert proper C++ library support
  11845. ld_shlibs_CXX=no
  11846. ;;
  11847. cxx*)
  11848. case $host in
  11849. osf3*)
  11850. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11851. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11852. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11853. ;;
  11854. *)
  11855. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11856. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11857. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11858. echo "-hidden">> $lib.exp~
  11859. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11860. $RM $lib.exp'
  11861. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11862. ;;
  11863. esac
  11864. hardcode_libdir_separator_CXX=:
  11865. # Commands to make compiler produce verbose output that lists
  11866. # what "hidden" libraries, object files and flags are used when
  11867. # linking a shared library.
  11868. #
  11869. # There doesn't appear to be a way to prevent this compiler from
  11870. # explicitly linking system object files so we need to strip them
  11871. # from the output so that they don't get included in the library
  11872. # dependencies.
  11873. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11874. ;;
  11875. *)
  11876. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11877. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11878. case $host in
  11879. osf3*)
  11880. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11881. ;;
  11882. *)
  11883. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11884. ;;
  11885. esac
  11886. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11887. hardcode_libdir_separator_CXX=:
  11888. # Commands to make compiler produce verbose output that lists
  11889. # what "hidden" libraries, object files and flags are used when
  11890. # linking a shared library.
  11891. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11892. else
  11893. # FIXME: insert proper C++ library support
  11894. ld_shlibs_CXX=no
  11895. fi
  11896. ;;
  11897. esac
  11898. ;;
  11899. psos*)
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. sunos4*)
  11904. case $cc_basename in
  11905. CC*)
  11906. # Sun C++ 4.x
  11907. # FIXME: insert proper C++ library support
  11908. ld_shlibs_CXX=no
  11909. ;;
  11910. lcc*)
  11911. # Lucid
  11912. # FIXME: insert proper C++ library support
  11913. ld_shlibs_CXX=no
  11914. ;;
  11915. *)
  11916. # FIXME: insert proper C++ library support
  11917. ld_shlibs_CXX=no
  11918. ;;
  11919. esac
  11920. ;;
  11921. solaris*)
  11922. case $cc_basename in
  11923. CC*)
  11924. # Sun C++ 4.2, 5.x and Centerline C++
  11925. archive_cmds_need_lc_CXX=yes
  11926. no_undefined_flag_CXX=' -zdefs'
  11927. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11928. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11929. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11930. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11931. hardcode_shlibpath_var_CXX=no
  11932. case $host_os in
  11933. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11934. *)
  11935. # The compiler driver will combine and reorder linker options,
  11936. # but understands `-z linker_flag'.
  11937. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11938. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11939. ;;
  11940. esac
  11941. link_all_deplibs_CXX=yes
  11942. output_verbose_link_cmd='func_echo_all'
  11943. # Archives containing C++ object files must be created using
  11944. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11945. # necessary to make sure instantiated templates are included
  11946. # in the archive.
  11947. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11948. ;;
  11949. gcx*)
  11950. # Green Hills C++ Compiler
  11951. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11952. # The C++ compiler must be used to create the archive.
  11953. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11954. ;;
  11955. *)
  11956. # GNU C++ compiler with Solaris linker
  11957. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11958. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11959. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11960. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11961. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11962. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11963. # Commands to make compiler produce verbose output that lists
  11964. # what "hidden" libraries, object files and flags are used when
  11965. # linking a shared library.
  11966. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11967. else
  11968. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11969. # platform.
  11970. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11971. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11972. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11973. # Commands to make compiler produce verbose output that lists
  11974. # what "hidden" libraries, object files and flags are used when
  11975. # linking a shared library.
  11976. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11977. fi
  11978. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11979. case $host_os in
  11980. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11981. *)
  11982. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11983. ;;
  11984. esac
  11985. fi
  11986. ;;
  11987. esac
  11988. ;;
  11989. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11990. no_undefined_flag_CXX='${wl}-z,text'
  11991. archive_cmds_need_lc_CXX=no
  11992. hardcode_shlibpath_var_CXX=no
  11993. runpath_var='LD_RUN_PATH'
  11994. case $cc_basename in
  11995. CC*)
  11996. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11997. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11998. ;;
  11999. *)
  12000. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12001. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12002. ;;
  12003. esac
  12004. ;;
  12005. sysv5* | sco3.2v5* | sco5v6*)
  12006. # Note: We can NOT use -z defs as we might desire, because we do not
  12007. # link with -lc, and that would cause any symbols used from libc to
  12008. # always be unresolved, which means just about no library would
  12009. # ever link correctly. If we're not using GNU ld we use -z text
  12010. # though, which does catch some bad symbols but isn't as heavy-handed
  12011. # as -z defs.
  12012. no_undefined_flag_CXX='${wl}-z,text'
  12013. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12014. archive_cmds_need_lc_CXX=no
  12015. hardcode_shlibpath_var_CXX=no
  12016. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12017. hardcode_libdir_separator_CXX=':'
  12018. link_all_deplibs_CXX=yes
  12019. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12020. runpath_var='LD_RUN_PATH'
  12021. case $cc_basename in
  12022. CC*)
  12023. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12024. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12025. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12026. '"$old_archive_cmds_CXX"
  12027. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12028. '"$reload_cmds_CXX"
  12029. ;;
  12030. *)
  12031. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12032. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12033. ;;
  12034. esac
  12035. ;;
  12036. tandem*)
  12037. case $cc_basename in
  12038. NCC*)
  12039. # NonStop-UX NCC 3.20
  12040. # FIXME: insert proper C++ library support
  12041. ld_shlibs_CXX=no
  12042. ;;
  12043. *)
  12044. # FIXME: insert proper C++ library support
  12045. ld_shlibs_CXX=no
  12046. ;;
  12047. esac
  12048. ;;
  12049. vxworks*)
  12050. # FIXME: insert proper C++ library support
  12051. ld_shlibs_CXX=no
  12052. ;;
  12053. *)
  12054. # FIXME: insert proper C++ library support
  12055. ld_shlibs_CXX=no
  12056. ;;
  12057. esac
  12058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12059. $as_echo "$ld_shlibs_CXX" >&6; }
  12060. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12061. GCC_CXX="$GXX"
  12062. LD_CXX="$LD"
  12063. ## CAVEAT EMPTOR:
  12064. ## There is no encapsulation within the following macros, do not change
  12065. ## the running order or otherwise move them around unless you know exactly
  12066. ## what you are doing...
  12067. # Dependencies to place before and after the object being linked:
  12068. predep_objects_CXX=
  12069. postdep_objects_CXX=
  12070. predeps_CXX=
  12071. postdeps_CXX=
  12072. compiler_lib_search_path_CXX=
  12073. cat > conftest.$ac_ext <<_LT_EOF
  12074. class Foo
  12075. {
  12076. public:
  12077. Foo (void) { a = 0; }
  12078. private:
  12079. int a;
  12080. };
  12081. _LT_EOF
  12082. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12083. (eval $ac_compile) 2>&5
  12084. ac_status=$?
  12085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12086. test $ac_status = 0; }; then
  12087. # Parse the compiler output and extract the necessary
  12088. # objects, libraries and library flags.
  12089. # Sentinel used to keep track of whether or not we are before
  12090. # the conftest object file.
  12091. pre_test_object_deps_done=no
  12092. for p in `eval "$output_verbose_link_cmd"`; do
  12093. case $p in
  12094. -L* | -R* | -l*)
  12095. # Some compilers place space between "-{L,R}" and the path.
  12096. # Remove the space.
  12097. if test $p = "-L" ||
  12098. test $p = "-R"; then
  12099. prev=$p
  12100. continue
  12101. else
  12102. prev=
  12103. fi
  12104. if test "$pre_test_object_deps_done" = no; then
  12105. case $p in
  12106. -L* | -R*)
  12107. # Internal compiler library paths should come after those
  12108. # provided the user. The postdeps already come after the
  12109. # user supplied libs so there is no need to process them.
  12110. if test -z "$compiler_lib_search_path_CXX"; then
  12111. compiler_lib_search_path_CXX="${prev}${p}"
  12112. else
  12113. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12114. fi
  12115. ;;
  12116. # The "-l" case would never come before the object being
  12117. # linked, so don't bother handling this case.
  12118. esac
  12119. else
  12120. if test -z "$postdeps_CXX"; then
  12121. postdeps_CXX="${prev}${p}"
  12122. else
  12123. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12124. fi
  12125. fi
  12126. ;;
  12127. *.$objext)
  12128. # This assumes that the test object file only shows up
  12129. # once in the compiler output.
  12130. if test "$p" = "conftest.$objext"; then
  12131. pre_test_object_deps_done=yes
  12132. continue
  12133. fi
  12134. if test "$pre_test_object_deps_done" = no; then
  12135. if test -z "$predep_objects_CXX"; then
  12136. predep_objects_CXX="$p"
  12137. else
  12138. predep_objects_CXX="$predep_objects_CXX $p"
  12139. fi
  12140. else
  12141. if test -z "$postdep_objects_CXX"; then
  12142. postdep_objects_CXX="$p"
  12143. else
  12144. postdep_objects_CXX="$postdep_objects_CXX $p"
  12145. fi
  12146. fi
  12147. ;;
  12148. *) ;; # Ignore the rest.
  12149. esac
  12150. done
  12151. # Clean up.
  12152. rm -f a.out a.exe
  12153. else
  12154. echo "libtool.m4: error: problem compiling CXX test program"
  12155. fi
  12156. $RM -f confest.$objext
  12157. # PORTME: override above test on systems where it is broken
  12158. case $host_os in
  12159. interix[3-9]*)
  12160. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12161. # hack all around it, let's just trust "g++" to DTRT.
  12162. predep_objects_CXX=
  12163. postdep_objects_CXX=
  12164. postdeps_CXX=
  12165. ;;
  12166. linux*)
  12167. case `$CC -V 2>&1 | sed 5q` in
  12168. *Sun\ C*)
  12169. # Sun C++ 5.9
  12170. # The more standards-conforming stlport4 library is
  12171. # incompatible with the Cstd library. Avoid specifying
  12172. # it if it's in CXXFLAGS. Ignore libCrun as
  12173. # -library=stlport4 depends on it.
  12174. case " $CXX $CXXFLAGS " in
  12175. *" -library=stlport4 "*)
  12176. solaris_use_stlport4=yes
  12177. ;;
  12178. esac
  12179. if test "$solaris_use_stlport4" != yes; then
  12180. postdeps_CXX='-library=Cstd -library=Crun'
  12181. fi
  12182. ;;
  12183. esac
  12184. ;;
  12185. solaris*)
  12186. case $cc_basename in
  12187. CC*)
  12188. # The more standards-conforming stlport4 library is
  12189. # incompatible with the Cstd library. Avoid specifying
  12190. # it if it's in CXXFLAGS. Ignore libCrun as
  12191. # -library=stlport4 depends on it.
  12192. case " $CXX $CXXFLAGS " in
  12193. *" -library=stlport4 "*)
  12194. solaris_use_stlport4=yes
  12195. ;;
  12196. esac
  12197. # Adding this requires a known-good setup of shared libraries for
  12198. # Sun compiler versions before 5.6, else PIC objects from an old
  12199. # archive will be linked into the output, leading to subtle bugs.
  12200. if test "$solaris_use_stlport4" != yes; then
  12201. postdeps_CXX='-library=Cstd -library=Crun'
  12202. fi
  12203. ;;
  12204. esac
  12205. ;;
  12206. esac
  12207. case " $postdeps_CXX " in
  12208. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12209. esac
  12210. compiler_lib_search_dirs_CXX=
  12211. if test -n "${compiler_lib_search_path_CXX}"; then
  12212. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12213. fi
  12214. lt_prog_compiler_wl_CXX=
  12215. lt_prog_compiler_pic_CXX=
  12216. lt_prog_compiler_static_CXX=
  12217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12218. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12219. # C++ specific cases for pic, static, wl, etc.
  12220. if test "$GXX" = yes; then
  12221. lt_prog_compiler_wl_CXX='-Wl,'
  12222. lt_prog_compiler_static_CXX='-static'
  12223. case $host_os in
  12224. aix*)
  12225. # All AIX code is PIC.
  12226. if test "$host_cpu" = ia64; then
  12227. # AIX 5 now supports IA64 processor
  12228. lt_prog_compiler_static_CXX='-Bstatic'
  12229. fi
  12230. lt_prog_compiler_pic_CXX='-fPIC'
  12231. ;;
  12232. amigaos*)
  12233. case $host_cpu in
  12234. powerpc)
  12235. # see comment about AmigaOS4 .so support
  12236. lt_prog_compiler_pic_CXX='-fPIC'
  12237. ;;
  12238. m68k)
  12239. # FIXME: we need at least 68020 code to build shared libraries, but
  12240. # adding the `-m68020' flag to GCC prevents building anything better,
  12241. # like `-m68040'.
  12242. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12243. ;;
  12244. esac
  12245. ;;
  12246. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12247. # PIC is the default for these OSes.
  12248. ;;
  12249. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12250. # This hack is so that the source file can tell whether it is being
  12251. # built for inclusion in a dll (and should export symbols for example).
  12252. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12253. # (--disable-auto-import) libraries
  12254. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12255. ;;
  12256. darwin* | rhapsody*)
  12257. # PIC is the default on this platform
  12258. # Common symbols not allowed in MH_DYLIB files
  12259. lt_prog_compiler_pic_CXX='-fno-common'
  12260. ;;
  12261. *djgpp*)
  12262. # DJGPP does not support shared libraries at all
  12263. lt_prog_compiler_pic_CXX=
  12264. ;;
  12265. haiku*)
  12266. # PIC is the default for Haiku.
  12267. # The "-static" flag exists, but is broken.
  12268. lt_prog_compiler_static_CXX=
  12269. ;;
  12270. interix[3-9]*)
  12271. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12272. # Instead, we relocate shared libraries at runtime.
  12273. ;;
  12274. sysv4*MP*)
  12275. if test -d /usr/nec; then
  12276. lt_prog_compiler_pic_CXX=-Kconform_pic
  12277. fi
  12278. ;;
  12279. hpux*)
  12280. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12281. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12282. # sets the default TLS model and affects inlining.
  12283. case $host_cpu in
  12284. hppa*64*)
  12285. ;;
  12286. *)
  12287. lt_prog_compiler_pic_CXX='-fPIC'
  12288. ;;
  12289. esac
  12290. ;;
  12291. *qnx* | *nto*)
  12292. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12293. # it will coredump.
  12294. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12295. ;;
  12296. *)
  12297. lt_prog_compiler_pic_CXX='-fPIC'
  12298. ;;
  12299. esac
  12300. else
  12301. case $host_os in
  12302. aix[4-9]*)
  12303. # All AIX code is PIC.
  12304. if test "$host_cpu" = ia64; then
  12305. # AIX 5 now supports IA64 processor
  12306. lt_prog_compiler_static_CXX='-Bstatic'
  12307. else
  12308. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12309. fi
  12310. ;;
  12311. chorus*)
  12312. case $cc_basename in
  12313. cxch68*)
  12314. # Green Hills C++ Compiler
  12315. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12316. ;;
  12317. esac
  12318. ;;
  12319. dgux*)
  12320. case $cc_basename in
  12321. ec++*)
  12322. lt_prog_compiler_pic_CXX='-KPIC'
  12323. ;;
  12324. ghcx*)
  12325. # Green Hills C++ Compiler
  12326. lt_prog_compiler_pic_CXX='-pic'
  12327. ;;
  12328. *)
  12329. ;;
  12330. esac
  12331. ;;
  12332. freebsd* | dragonfly*)
  12333. # FreeBSD uses GNU C++
  12334. ;;
  12335. hpux9* | hpux10* | hpux11*)
  12336. case $cc_basename in
  12337. CC*)
  12338. lt_prog_compiler_wl_CXX='-Wl,'
  12339. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12340. if test "$host_cpu" != ia64; then
  12341. lt_prog_compiler_pic_CXX='+Z'
  12342. fi
  12343. ;;
  12344. aCC*)
  12345. lt_prog_compiler_wl_CXX='-Wl,'
  12346. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12347. case $host_cpu in
  12348. hppa*64*|ia64*)
  12349. # +Z the default
  12350. ;;
  12351. *)
  12352. lt_prog_compiler_pic_CXX='+Z'
  12353. ;;
  12354. esac
  12355. ;;
  12356. *)
  12357. ;;
  12358. esac
  12359. ;;
  12360. interix*)
  12361. # This is c89, which is MS Visual C++ (no shared libs)
  12362. # Anyone wants to do a port?
  12363. ;;
  12364. irix5* | irix6* | nonstopux*)
  12365. case $cc_basename in
  12366. CC*)
  12367. lt_prog_compiler_wl_CXX='-Wl,'
  12368. lt_prog_compiler_static_CXX='-non_shared'
  12369. # CC pic flag -KPIC is the default.
  12370. ;;
  12371. *)
  12372. ;;
  12373. esac
  12374. ;;
  12375. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12376. case $cc_basename in
  12377. KCC*)
  12378. # KAI C++ Compiler
  12379. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12380. lt_prog_compiler_pic_CXX='-fPIC'
  12381. ;;
  12382. ecpc* )
  12383. # old Intel C++ for x86_64 which still supported -KPIC.
  12384. lt_prog_compiler_wl_CXX='-Wl,'
  12385. lt_prog_compiler_pic_CXX='-KPIC'
  12386. lt_prog_compiler_static_CXX='-static'
  12387. ;;
  12388. icpc* )
  12389. # Intel C++, used to be incompatible with GCC.
  12390. # ICC 10 doesn't accept -KPIC any more.
  12391. lt_prog_compiler_wl_CXX='-Wl,'
  12392. lt_prog_compiler_pic_CXX='-fPIC'
  12393. lt_prog_compiler_static_CXX='-static'
  12394. ;;
  12395. pgCC* | pgcpp*)
  12396. # Portland Group C++ compiler
  12397. lt_prog_compiler_wl_CXX='-Wl,'
  12398. lt_prog_compiler_pic_CXX='-fpic'
  12399. lt_prog_compiler_static_CXX='-Bstatic'
  12400. ;;
  12401. cxx*)
  12402. # Compaq C++
  12403. # Make sure the PIC flag is empty. It appears that all Alpha
  12404. # Linux and Compaq Tru64 Unix objects are PIC.
  12405. lt_prog_compiler_pic_CXX=
  12406. lt_prog_compiler_static_CXX='-non_shared'
  12407. ;;
  12408. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12409. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12410. lt_prog_compiler_wl_CXX='-Wl,'
  12411. lt_prog_compiler_pic_CXX='-qpic'
  12412. lt_prog_compiler_static_CXX='-qstaticlink'
  12413. ;;
  12414. *)
  12415. case `$CC -V 2>&1 | sed 5q` in
  12416. *Sun\ C*)
  12417. # Sun C++ 5.9
  12418. lt_prog_compiler_pic_CXX='-KPIC'
  12419. lt_prog_compiler_static_CXX='-Bstatic'
  12420. lt_prog_compiler_wl_CXX='-Qoption ld '
  12421. ;;
  12422. esac
  12423. ;;
  12424. esac
  12425. ;;
  12426. lynxos*)
  12427. ;;
  12428. m88k*)
  12429. ;;
  12430. mvs*)
  12431. case $cc_basename in
  12432. cxx*)
  12433. lt_prog_compiler_pic_CXX='-W c,exportall'
  12434. ;;
  12435. *)
  12436. ;;
  12437. esac
  12438. ;;
  12439. netbsd*)
  12440. ;;
  12441. *qnx* | *nto*)
  12442. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12443. # it will coredump.
  12444. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12445. ;;
  12446. osf3* | osf4* | osf5*)
  12447. case $cc_basename in
  12448. KCC*)
  12449. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12450. ;;
  12451. RCC*)
  12452. # Rational C++ 2.4.1
  12453. lt_prog_compiler_pic_CXX='-pic'
  12454. ;;
  12455. cxx*)
  12456. # Digital/Compaq C++
  12457. lt_prog_compiler_wl_CXX='-Wl,'
  12458. # Make sure the PIC flag is empty. It appears that all Alpha
  12459. # Linux and Compaq Tru64 Unix objects are PIC.
  12460. lt_prog_compiler_pic_CXX=
  12461. lt_prog_compiler_static_CXX='-non_shared'
  12462. ;;
  12463. *)
  12464. ;;
  12465. esac
  12466. ;;
  12467. psos*)
  12468. ;;
  12469. solaris*)
  12470. case $cc_basename in
  12471. CC*)
  12472. # Sun C++ 4.2, 5.x and Centerline C++
  12473. lt_prog_compiler_pic_CXX='-KPIC'
  12474. lt_prog_compiler_static_CXX='-Bstatic'
  12475. lt_prog_compiler_wl_CXX='-Qoption ld '
  12476. ;;
  12477. gcx*)
  12478. # Green Hills C++ Compiler
  12479. lt_prog_compiler_pic_CXX='-PIC'
  12480. ;;
  12481. *)
  12482. ;;
  12483. esac
  12484. ;;
  12485. sunos4*)
  12486. case $cc_basename in
  12487. CC*)
  12488. # Sun C++ 4.x
  12489. lt_prog_compiler_pic_CXX='-pic'
  12490. lt_prog_compiler_static_CXX='-Bstatic'
  12491. ;;
  12492. lcc*)
  12493. # Lucid
  12494. lt_prog_compiler_pic_CXX='-pic'
  12495. ;;
  12496. *)
  12497. ;;
  12498. esac
  12499. ;;
  12500. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12501. case $cc_basename in
  12502. CC*)
  12503. lt_prog_compiler_wl_CXX='-Wl,'
  12504. lt_prog_compiler_pic_CXX='-KPIC'
  12505. lt_prog_compiler_static_CXX='-Bstatic'
  12506. ;;
  12507. esac
  12508. ;;
  12509. tandem*)
  12510. case $cc_basename in
  12511. NCC*)
  12512. # NonStop-UX NCC 3.20
  12513. lt_prog_compiler_pic_CXX='-KPIC'
  12514. ;;
  12515. *)
  12516. ;;
  12517. esac
  12518. ;;
  12519. vxworks*)
  12520. ;;
  12521. *)
  12522. lt_prog_compiler_can_build_shared_CXX=no
  12523. ;;
  12524. esac
  12525. fi
  12526. case $host_os in
  12527. # For platforms which do not support PIC, -DPIC is meaningless:
  12528. *djgpp*)
  12529. lt_prog_compiler_pic_CXX=
  12530. ;;
  12531. *)
  12532. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12533. ;;
  12534. esac
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12536. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12537. #
  12538. # Check to make sure the PIC flag actually works.
  12539. #
  12540. if test -n "$lt_prog_compiler_pic_CXX"; then
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12542. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12543. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12544. $as_echo_n "(cached) " >&6
  12545. else
  12546. lt_cv_prog_compiler_pic_works_CXX=no
  12547. ac_outfile=conftest.$ac_objext
  12548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12549. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12550. # Insert the option either (1) after the last *FLAGS variable, or
  12551. # (2) before a word containing "conftest.", or (3) at the end.
  12552. # Note that $ac_compile itself does not contain backslashes and begins
  12553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12554. # The option is referenced via a variable to avoid confusing sed.
  12555. lt_compile=`echo "$ac_compile" | $SED \
  12556. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12557. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12558. -e 's:$: $lt_compiler_flag:'`
  12559. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12560. (eval "$lt_compile" 2>conftest.err)
  12561. ac_status=$?
  12562. cat conftest.err >&5
  12563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12564. if (exit $ac_status) && test -s "$ac_outfile"; then
  12565. # The compiler can only warn and ignore the option if not recognized
  12566. # So say no if there are warnings other than the usual output.
  12567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12568. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12569. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12570. lt_cv_prog_compiler_pic_works_CXX=yes
  12571. fi
  12572. fi
  12573. $RM conftest*
  12574. fi
  12575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12576. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12577. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12578. case $lt_prog_compiler_pic_CXX in
  12579. "" | " "*) ;;
  12580. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12581. esac
  12582. else
  12583. lt_prog_compiler_pic_CXX=
  12584. lt_prog_compiler_can_build_shared_CXX=no
  12585. fi
  12586. fi
  12587. #
  12588. # Check to make sure the static flag actually works.
  12589. #
  12590. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12592. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12593. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12594. $as_echo_n "(cached) " >&6
  12595. else
  12596. lt_cv_prog_compiler_static_works_CXX=no
  12597. save_LDFLAGS="$LDFLAGS"
  12598. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12599. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12600. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12601. # The linker can only warn and ignore the option if not recognized
  12602. # So say no if there are warnings
  12603. if test -s conftest.err; then
  12604. # Append any errors to the config.log.
  12605. cat conftest.err 1>&5
  12606. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12607. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12608. if diff conftest.exp conftest.er2 >/dev/null; then
  12609. lt_cv_prog_compiler_static_works_CXX=yes
  12610. fi
  12611. else
  12612. lt_cv_prog_compiler_static_works_CXX=yes
  12613. fi
  12614. fi
  12615. $RM -r conftest*
  12616. LDFLAGS="$save_LDFLAGS"
  12617. fi
  12618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12619. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12620. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12621. :
  12622. else
  12623. lt_prog_compiler_static_CXX=
  12624. fi
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12626. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12627. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12628. $as_echo_n "(cached) " >&6
  12629. else
  12630. lt_cv_prog_compiler_c_o_CXX=no
  12631. $RM -r conftest 2>/dev/null
  12632. mkdir conftest
  12633. cd conftest
  12634. mkdir out
  12635. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12636. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12637. # Insert the option either (1) after the last *FLAGS variable, or
  12638. # (2) before a word containing "conftest.", or (3) at the end.
  12639. # Note that $ac_compile itself does not contain backslashes and begins
  12640. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12641. lt_compile=`echo "$ac_compile" | $SED \
  12642. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12643. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12644. -e 's:$: $lt_compiler_flag:'`
  12645. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12646. (eval "$lt_compile" 2>out/conftest.err)
  12647. ac_status=$?
  12648. cat out/conftest.err >&5
  12649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12650. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12651. then
  12652. # The compiler can only warn and ignore the option if not recognized
  12653. # So say no if there are warnings
  12654. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12655. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12656. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12657. lt_cv_prog_compiler_c_o_CXX=yes
  12658. fi
  12659. fi
  12660. chmod u+w . 2>&5
  12661. $RM conftest*
  12662. # SGI C++ compiler will create directory out/ii_files/ for
  12663. # template instantiation
  12664. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12665. $RM out/* && rmdir out
  12666. cd ..
  12667. $RM -r conftest
  12668. $RM conftest*
  12669. fi
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12671. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12673. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12674. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12675. $as_echo_n "(cached) " >&6
  12676. else
  12677. lt_cv_prog_compiler_c_o_CXX=no
  12678. $RM -r conftest 2>/dev/null
  12679. mkdir conftest
  12680. cd conftest
  12681. mkdir out
  12682. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12683. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12684. # Insert the option either (1) after the last *FLAGS variable, or
  12685. # (2) before a word containing "conftest.", or (3) at the end.
  12686. # Note that $ac_compile itself does not contain backslashes and begins
  12687. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12688. lt_compile=`echo "$ac_compile" | $SED \
  12689. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12690. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12691. -e 's:$: $lt_compiler_flag:'`
  12692. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12693. (eval "$lt_compile" 2>out/conftest.err)
  12694. ac_status=$?
  12695. cat out/conftest.err >&5
  12696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12697. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12698. then
  12699. # The compiler can only warn and ignore the option if not recognized
  12700. # So say no if there are warnings
  12701. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12702. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12703. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12704. lt_cv_prog_compiler_c_o_CXX=yes
  12705. fi
  12706. fi
  12707. chmod u+w . 2>&5
  12708. $RM conftest*
  12709. # SGI C++ compiler will create directory out/ii_files/ for
  12710. # template instantiation
  12711. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12712. $RM out/* && rmdir out
  12713. cd ..
  12714. $RM -r conftest
  12715. $RM conftest*
  12716. fi
  12717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12718. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12719. hard_links="nottested"
  12720. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12721. # do not overwrite the value of need_locks provided by the user
  12722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12723. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12724. hard_links=yes
  12725. $RM conftest*
  12726. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12727. touch conftest.a
  12728. ln conftest.a conftest.b 2>&5 || hard_links=no
  12729. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12731. $as_echo "$hard_links" >&6; }
  12732. if test "$hard_links" = no; then
  12733. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12734. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12735. need_locks=warn
  12736. fi
  12737. else
  12738. need_locks=no
  12739. fi
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12741. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12742. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12743. case $host_os in
  12744. aix[4-9]*)
  12745. # If we're using GNU nm, then we don't want the "-C" option.
  12746. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12747. # Also, AIX nm treats weak defined symbols like other global defined
  12748. # symbols, whereas GNU nm marks them as "W".
  12749. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12750. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12751. else
  12752. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12753. fi
  12754. ;;
  12755. pw32*)
  12756. export_symbols_cmds_CXX="$ltdll_cmds"
  12757. ;;
  12758. cygwin* | mingw* | cegcc*)
  12759. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12760. ;;
  12761. *)
  12762. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12763. ;;
  12764. esac
  12765. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12767. $as_echo "$ld_shlibs_CXX" >&6; }
  12768. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12769. with_gnu_ld_CXX=$with_gnu_ld
  12770. #
  12771. # Do we need to explicitly link libc?
  12772. #
  12773. case "x$archive_cmds_need_lc_CXX" in
  12774. x|xyes)
  12775. # Assume -lc should be added
  12776. archive_cmds_need_lc_CXX=yes
  12777. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12778. case $archive_cmds_CXX in
  12779. *'~'*)
  12780. # FIXME: we may have to deal with multi-command sequences.
  12781. ;;
  12782. '$CC '*)
  12783. # Test whether the compiler implicitly links with -lc since on some
  12784. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12785. # to ld, don't add -lc before -lgcc.
  12786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12787. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12788. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12789. $as_echo_n "(cached) " >&6
  12790. else
  12791. $RM conftest*
  12792. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12793. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12794. (eval $ac_compile) 2>&5
  12795. ac_status=$?
  12796. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12797. test $ac_status = 0; } 2>conftest.err; then
  12798. soname=conftest
  12799. lib=conftest
  12800. libobjs=conftest.$ac_objext
  12801. deplibs=
  12802. wl=$lt_prog_compiler_wl_CXX
  12803. pic_flag=$lt_prog_compiler_pic_CXX
  12804. compiler_flags=-v
  12805. linker_flags=-v
  12806. verstring=
  12807. output_objdir=.
  12808. libname=conftest
  12809. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12810. allow_undefined_flag_CXX=
  12811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12812. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12813. ac_status=$?
  12814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12815. test $ac_status = 0; }
  12816. then
  12817. lt_cv_archive_cmds_need_lc_CXX=no
  12818. else
  12819. lt_cv_archive_cmds_need_lc_CXX=yes
  12820. fi
  12821. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12822. else
  12823. cat conftest.err 1>&5
  12824. fi
  12825. $RM conftest*
  12826. fi
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12828. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12829. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12830. ;;
  12831. esac
  12832. fi
  12833. ;;
  12834. esac
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12836. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12837. library_names_spec=
  12838. libname_spec='lib$name'
  12839. soname_spec=
  12840. shrext_cmds=".so"
  12841. postinstall_cmds=
  12842. postuninstall_cmds=
  12843. finish_cmds=
  12844. finish_eval=
  12845. shlibpath_var=
  12846. shlibpath_overrides_runpath=unknown
  12847. version_type=none
  12848. dynamic_linker="$host_os ld.so"
  12849. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12850. need_lib_prefix=unknown
  12851. hardcode_into_libs=no
  12852. # when you set need_version to no, make sure it does not cause -set_version
  12853. # flags to be left without arguments
  12854. need_version=unknown
  12855. case $host_os in
  12856. aix3*)
  12857. version_type=linux
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12859. shlibpath_var=LIBPATH
  12860. # AIX 3 has no versioning support, so we append a major version to the name.
  12861. soname_spec='${libname}${release}${shared_ext}$major'
  12862. ;;
  12863. aix[4-9]*)
  12864. version_type=linux
  12865. need_lib_prefix=no
  12866. need_version=no
  12867. hardcode_into_libs=yes
  12868. if test "$host_cpu" = ia64; then
  12869. # AIX 5 supports IA64
  12870. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12871. shlibpath_var=LD_LIBRARY_PATH
  12872. else
  12873. # With GCC up to 2.95.x, collect2 would create an import file
  12874. # for dependence libraries. The import file would start with
  12875. # the line `#! .'. This would cause the generated library to
  12876. # depend on `.', always an invalid library. This was fixed in
  12877. # development snapshots of GCC prior to 3.0.
  12878. case $host_os in
  12879. aix4 | aix4.[01] | aix4.[01].*)
  12880. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12881. echo ' yes '
  12882. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12883. :
  12884. else
  12885. can_build_shared=no
  12886. fi
  12887. ;;
  12888. esac
  12889. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12890. # soname into executable. Probably we can add versioning support to
  12891. # collect2, so additional links can be useful in future.
  12892. if test "$aix_use_runtimelinking" = yes; then
  12893. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12894. # instead of lib<name>.a to let people know that these are not
  12895. # typical AIX shared libraries.
  12896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12897. else
  12898. # We preserve .a as extension for shared libraries through AIX4.2
  12899. # and later when we are not doing run time linking.
  12900. library_names_spec='${libname}${release}.a $libname.a'
  12901. soname_spec='${libname}${release}${shared_ext}$major'
  12902. fi
  12903. shlibpath_var=LIBPATH
  12904. fi
  12905. ;;
  12906. amigaos*)
  12907. case $host_cpu in
  12908. powerpc)
  12909. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12910. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12912. ;;
  12913. m68k)
  12914. library_names_spec='$libname.ixlibrary $libname.a'
  12915. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12916. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12917. ;;
  12918. esac
  12919. ;;
  12920. beos*)
  12921. library_names_spec='${libname}${shared_ext}'
  12922. dynamic_linker="$host_os ld.so"
  12923. shlibpath_var=LIBRARY_PATH
  12924. ;;
  12925. bsdi[45]*)
  12926. version_type=linux
  12927. need_version=no
  12928. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12929. soname_spec='${libname}${release}${shared_ext}$major'
  12930. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12931. shlibpath_var=LD_LIBRARY_PATH
  12932. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12933. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12934. # the default ld.so.conf also contains /usr/contrib/lib and
  12935. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12936. # libtool to hard-code these into programs
  12937. ;;
  12938. cygwin* | mingw* | pw32* | cegcc*)
  12939. version_type=windows
  12940. shrext_cmds=".dll"
  12941. need_version=no
  12942. need_lib_prefix=no
  12943. case $GCC,$host_os in
  12944. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12945. library_names_spec='$libname.dll.a'
  12946. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12947. postinstall_cmds='base_file=`basename \${file}`~
  12948. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12949. dldir=$destdir/`dirname \$dlpath`~
  12950. test -d \$dldir || mkdir -p \$dldir~
  12951. $install_prog $dir/$dlname \$dldir/$dlname~
  12952. chmod a+x \$dldir/$dlname~
  12953. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12954. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12955. fi'
  12956. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12957. dlpath=$dir/\$dldll~
  12958. $RM \$dlpath'
  12959. shlibpath_overrides_runpath=yes
  12960. case $host_os in
  12961. cygwin*)
  12962. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12963. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12964. ;;
  12965. mingw* | cegcc*)
  12966. # MinGW DLLs use traditional 'lib' prefix
  12967. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12968. ;;
  12969. pw32*)
  12970. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12971. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12972. ;;
  12973. esac
  12974. ;;
  12975. *)
  12976. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12977. ;;
  12978. esac
  12979. dynamic_linker='Win32 ld.exe'
  12980. # FIXME: first we should search . and the directory the executable is in
  12981. shlibpath_var=PATH
  12982. ;;
  12983. darwin* | rhapsody*)
  12984. dynamic_linker="$host_os dyld"
  12985. version_type=darwin
  12986. need_lib_prefix=no
  12987. need_version=no
  12988. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12989. soname_spec='${libname}${release}${major}$shared_ext'
  12990. shlibpath_overrides_runpath=yes
  12991. shlibpath_var=DYLD_LIBRARY_PATH
  12992. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12993. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12994. ;;
  12995. dgux*)
  12996. version_type=linux
  12997. need_lib_prefix=no
  12998. need_version=no
  12999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13000. soname_spec='${libname}${release}${shared_ext}$major'
  13001. shlibpath_var=LD_LIBRARY_PATH
  13002. ;;
  13003. freebsd* | dragonfly*)
  13004. # DragonFly does not have aout. When/if they implement a new
  13005. # versioning mechanism, adjust this.
  13006. if test -x /usr/bin/objformat; then
  13007. objformat=`/usr/bin/objformat`
  13008. else
  13009. case $host_os in
  13010. freebsd[23].*) objformat=aout ;;
  13011. *) objformat=elf ;;
  13012. esac
  13013. fi
  13014. version_type=freebsd-$objformat
  13015. case $version_type in
  13016. freebsd-elf*)
  13017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13018. need_version=no
  13019. need_lib_prefix=no
  13020. ;;
  13021. freebsd-*)
  13022. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13023. need_version=yes
  13024. ;;
  13025. esac
  13026. shlibpath_var=LD_LIBRARY_PATH
  13027. case $host_os in
  13028. freebsd2.*)
  13029. shlibpath_overrides_runpath=yes
  13030. ;;
  13031. freebsd3.[01]* | freebsdelf3.[01]*)
  13032. shlibpath_overrides_runpath=yes
  13033. hardcode_into_libs=yes
  13034. ;;
  13035. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13036. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13037. shlibpath_overrides_runpath=no
  13038. hardcode_into_libs=yes
  13039. ;;
  13040. *) # from 4.6 on, and DragonFly
  13041. shlibpath_overrides_runpath=yes
  13042. hardcode_into_libs=yes
  13043. ;;
  13044. esac
  13045. ;;
  13046. haiku*)
  13047. version_type=linux
  13048. need_lib_prefix=no
  13049. need_version=no
  13050. dynamic_linker="$host_os runtime_loader"
  13051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13052. soname_spec='${libname}${release}${shared_ext}$major'
  13053. shlibpath_var=LIBRARY_PATH
  13054. shlibpath_overrides_runpath=yes
  13055. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  13056. hardcode_into_libs=yes
  13057. ;;
  13058. hpux9* | hpux10* | hpux11*)
  13059. # Give a soname corresponding to the major version so that dld.sl refuses to
  13060. # link against other versions.
  13061. version_type=sunos
  13062. need_lib_prefix=no
  13063. need_version=no
  13064. case $host_cpu in
  13065. ia64*)
  13066. shrext_cmds='.so'
  13067. hardcode_into_libs=yes
  13068. dynamic_linker="$host_os dld.so"
  13069. shlibpath_var=LD_LIBRARY_PATH
  13070. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13072. soname_spec='${libname}${release}${shared_ext}$major'
  13073. if test "X$HPUX_IA64_MODE" = X32; then
  13074. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13075. else
  13076. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13077. fi
  13078. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13079. ;;
  13080. hppa*64*)
  13081. shrext_cmds='.sl'
  13082. hardcode_into_libs=yes
  13083. dynamic_linker="$host_os dld.sl"
  13084. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13085. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13087. soname_spec='${libname}${release}${shared_ext}$major'
  13088. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13089. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13090. ;;
  13091. *)
  13092. shrext_cmds='.sl'
  13093. dynamic_linker="$host_os dld.sl"
  13094. shlibpath_var=SHLIB_PATH
  13095. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13097. soname_spec='${libname}${release}${shared_ext}$major'
  13098. ;;
  13099. esac
  13100. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13101. postinstall_cmds='chmod 555 $lib'
  13102. # or fails outright, so override atomically:
  13103. install_override_mode=555
  13104. ;;
  13105. interix[3-9]*)
  13106. version_type=linux
  13107. need_lib_prefix=no
  13108. need_version=no
  13109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13110. soname_spec='${libname}${release}${shared_ext}$major'
  13111. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. shlibpath_overrides_runpath=no
  13114. hardcode_into_libs=yes
  13115. ;;
  13116. irix5* | irix6* | nonstopux*)
  13117. case $host_os in
  13118. nonstopux*) version_type=nonstopux ;;
  13119. *)
  13120. if test "$lt_cv_prog_gnu_ld" = yes; then
  13121. version_type=linux
  13122. else
  13123. version_type=irix
  13124. fi ;;
  13125. esac
  13126. need_lib_prefix=no
  13127. need_version=no
  13128. soname_spec='${libname}${release}${shared_ext}$major'
  13129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13130. case $host_os in
  13131. irix5* | nonstopux*)
  13132. libsuff= shlibsuff=
  13133. ;;
  13134. *)
  13135. case $LD in # libtool.m4 will add one of these switches to LD
  13136. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13137. libsuff= shlibsuff= libmagic=32-bit;;
  13138. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13139. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13140. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13141. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13142. *) libsuff= shlibsuff= libmagic=never-match;;
  13143. esac
  13144. ;;
  13145. esac
  13146. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13147. shlibpath_overrides_runpath=no
  13148. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13149. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13150. hardcode_into_libs=yes
  13151. ;;
  13152. # No shared lib support for Linux oldld, aout, or coff.
  13153. linux*oldld* | linux*aout* | linux*coff*)
  13154. dynamic_linker=no
  13155. ;;
  13156. # This must be Linux ELF.
  13157. # uclinux* changes (here and below) have been submitted to the libtool
  13158. # project, but have not yet been accepted: they are GCC-local changes
  13159. # for the time being. (See
  13160. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  13161. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  13162. version_type=linux
  13163. need_lib_prefix=no
  13164. need_version=no
  13165. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13166. soname_spec='${libname}${release}${shared_ext}$major'
  13167. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13168. shlibpath_var=LD_LIBRARY_PATH
  13169. shlibpath_overrides_runpath=no
  13170. # Some binutils ld are patched to set DT_RUNPATH
  13171. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13172. $as_echo_n "(cached) " >&6
  13173. else
  13174. lt_cv_shlibpath_overrides_runpath=no
  13175. save_LDFLAGS=$LDFLAGS
  13176. save_libdir=$libdir
  13177. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13178. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13179. if test x$gcc_no_link = xyes; then
  13180. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13181. fi
  13182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13183. /* end confdefs.h. */
  13184. int
  13185. main ()
  13186. {
  13187. ;
  13188. return 0;
  13189. }
  13190. _ACEOF
  13191. if ac_fn_cxx_try_link "$LINENO"; then :
  13192. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13193. lt_cv_shlibpath_overrides_runpath=yes
  13194. fi
  13195. fi
  13196. rm -f core conftest.err conftest.$ac_objext \
  13197. conftest$ac_exeext conftest.$ac_ext
  13198. LDFLAGS=$save_LDFLAGS
  13199. libdir=$save_libdir
  13200. fi
  13201. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13202. # This implies no fast_install, which is unacceptable.
  13203. # Some rework will be needed to allow for fast_install
  13204. # before this can be enabled.
  13205. hardcode_into_libs=yes
  13206. # Append ld.so.conf contents to the search path
  13207. if test -f /etc/ld.so.conf; then
  13208. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13209. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13210. fi
  13211. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13212. # powerpc, because MkLinux only supported shared libraries with the
  13213. # GNU dynamic linker. Since this was broken with cross compilers,
  13214. # most powerpc-linux boxes support dynamic linking these days and
  13215. # people can always --disable-shared, the test was removed, and we
  13216. # assume the GNU/Linux dynamic linker is in use.
  13217. dynamic_linker='GNU/Linux ld.so'
  13218. ;;
  13219. netbsd*)
  13220. version_type=sunos
  13221. need_lib_prefix=no
  13222. need_version=no
  13223. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13226. dynamic_linker='NetBSD (a.out) ld.so'
  13227. else
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. dynamic_linker='NetBSD ld.elf_so'
  13231. fi
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=yes
  13234. hardcode_into_libs=yes
  13235. ;;
  13236. newsos6)
  13237. version_type=linux
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. shlibpath_overrides_runpath=yes
  13241. ;;
  13242. *nto* | *qnx*)
  13243. version_type=qnx
  13244. need_lib_prefix=no
  13245. need_version=no
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. shlibpath_overrides_runpath=no
  13250. hardcode_into_libs=yes
  13251. dynamic_linker='ldqnx.so'
  13252. ;;
  13253. openbsd*)
  13254. version_type=sunos
  13255. sys_lib_dlsearch_path_spec="/usr/lib"
  13256. need_lib_prefix=no
  13257. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13258. case $host_os in
  13259. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13260. *) need_version=no ;;
  13261. esac
  13262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13264. shlibpath_var=LD_LIBRARY_PATH
  13265. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13266. case $host_os in
  13267. openbsd2.[89] | openbsd2.[89].*)
  13268. shlibpath_overrides_runpath=no
  13269. ;;
  13270. *)
  13271. shlibpath_overrides_runpath=yes
  13272. ;;
  13273. esac
  13274. else
  13275. shlibpath_overrides_runpath=yes
  13276. fi
  13277. ;;
  13278. os2*)
  13279. libname_spec='$name'
  13280. shrext_cmds=".dll"
  13281. need_lib_prefix=no
  13282. library_names_spec='$libname${shared_ext} $libname.a'
  13283. dynamic_linker='OS/2 ld.exe'
  13284. shlibpath_var=LIBPATH
  13285. ;;
  13286. osf3* | osf4* | osf5*)
  13287. version_type=osf
  13288. need_lib_prefix=no
  13289. need_version=no
  13290. soname_spec='${libname}${release}${shared_ext}$major'
  13291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13292. shlibpath_var=LD_LIBRARY_PATH
  13293. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13294. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13295. ;;
  13296. rdos*)
  13297. dynamic_linker=no
  13298. ;;
  13299. solaris*)
  13300. version_type=linux
  13301. need_lib_prefix=no
  13302. need_version=no
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13304. soname_spec='${libname}${release}${shared_ext}$major'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. shlibpath_overrides_runpath=yes
  13307. hardcode_into_libs=yes
  13308. # ldd complains unless libraries are executable
  13309. postinstall_cmds='chmod +x $lib'
  13310. ;;
  13311. sunos4*)
  13312. version_type=sunos
  13313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13314. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13315. shlibpath_var=LD_LIBRARY_PATH
  13316. shlibpath_overrides_runpath=yes
  13317. if test "$with_gnu_ld" = yes; then
  13318. need_lib_prefix=no
  13319. fi
  13320. need_version=yes
  13321. ;;
  13322. sysv4 | sysv4.3*)
  13323. version_type=linux
  13324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13325. soname_spec='${libname}${release}${shared_ext}$major'
  13326. shlibpath_var=LD_LIBRARY_PATH
  13327. case $host_vendor in
  13328. sni)
  13329. shlibpath_overrides_runpath=no
  13330. need_lib_prefix=no
  13331. runpath_var=LD_RUN_PATH
  13332. ;;
  13333. siemens)
  13334. need_lib_prefix=no
  13335. ;;
  13336. motorola)
  13337. need_lib_prefix=no
  13338. need_version=no
  13339. shlibpath_overrides_runpath=no
  13340. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13341. ;;
  13342. esac
  13343. ;;
  13344. sysv4*MP*)
  13345. if test -d /usr/nec ;then
  13346. version_type=linux
  13347. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13348. soname_spec='$libname${shared_ext}.$major'
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. fi
  13351. ;;
  13352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13353. version_type=freebsd-elf
  13354. need_lib_prefix=no
  13355. need_version=no
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13357. soname_spec='${libname}${release}${shared_ext}$major'
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=yes
  13360. hardcode_into_libs=yes
  13361. if test "$with_gnu_ld" = yes; then
  13362. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13363. else
  13364. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13365. case $host_os in
  13366. sco3.2v5*)
  13367. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13368. ;;
  13369. esac
  13370. fi
  13371. sys_lib_dlsearch_path_spec='/usr/lib'
  13372. ;;
  13373. tpf*)
  13374. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13375. version_type=linux
  13376. need_lib_prefix=no
  13377. need_version=no
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=no
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. uts4*)
  13384. version_type=linux
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13386. soname_spec='${libname}${release}${shared_ext}$major'
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. ;;
  13389. *)
  13390. dynamic_linker=no
  13391. ;;
  13392. esac
  13393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13394. $as_echo "$dynamic_linker" >&6; }
  13395. test "$dynamic_linker" = no && can_build_shared=no
  13396. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13397. if test "$GCC" = yes; then
  13398. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13399. fi
  13400. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13401. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13402. fi
  13403. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13404. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13407. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13408. hardcode_action_CXX=
  13409. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13410. test -n "$runpath_var_CXX" ||
  13411. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13412. # We can hardcode non-existent directories.
  13413. if test "$hardcode_direct_CXX" != no &&
  13414. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13415. # have to relink, otherwise we might link with an installed library
  13416. # when we should be linking with a yet-to-be-installed one
  13417. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13418. test "$hardcode_minus_L_CXX" != no; then
  13419. # Linking always hardcodes the temporary library directory.
  13420. hardcode_action_CXX=relink
  13421. else
  13422. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13423. hardcode_action_CXX=immediate
  13424. fi
  13425. else
  13426. # We cannot hardcode anything, or else we can only hardcode existing
  13427. # directories.
  13428. hardcode_action_CXX=unsupported
  13429. fi
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13431. $as_echo "$hardcode_action_CXX" >&6; }
  13432. if test "$hardcode_action_CXX" = relink ||
  13433. test "$inherit_rpath_CXX" = yes; then
  13434. # Fast installation is not supported
  13435. enable_fast_install=no
  13436. elif test "$shlibpath_overrides_runpath" = yes ||
  13437. test "$enable_shared" = no; then
  13438. # Fast installation is not necessary
  13439. enable_fast_install=needless
  13440. fi
  13441. fi # test -n "$compiler"
  13442. CC=$lt_save_CC
  13443. LDCXX=$LD
  13444. LD=$lt_save_LD
  13445. GCC=$lt_save_GCC
  13446. with_gnu_ld=$lt_save_with_gnu_ld
  13447. lt_cv_path_LDCXX=$lt_cv_path_LD
  13448. lt_cv_path_LD=$lt_save_path_LD
  13449. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13450. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13451. fi # test "$_lt_caught_CXX_error" != yes
  13452. ac_ext=c
  13453. ac_cpp='$CPP $CPPFLAGS'
  13454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13457. ac_config_commands="$ac_config_commands libtool"
  13458. # Only expand once:
  13459. case $host in
  13460. *-cygwin* | *-mingw*)
  13461. # 'host' will be top-level target in the case of a target lib,
  13462. # we must compare to with_cross_host to decide if this is a native
  13463. # or cross-compiler and select where to install dlls appropriately.
  13464. if test -n "$with_cross_host" &&
  13465. test x"$with_cross_host" != x"no"; then
  13466. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  13467. else
  13468. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  13469. fi
  13470. ;;
  13471. *)
  13472. lt_host_flags=
  13473. ;;
  13474. esac
  13475. if test "$enable_vtable_verify" = yes; then
  13476. predep_objects_CXX="${predep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_start.o"
  13477. postdep_objects_CXX="${postdep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_end.o"
  13478. fi
  13479. # libtool variables for C++ shared and position-independent compiles.
  13480. #
  13481. # Use glibcxx_lt_pic_flag to designate the automake variable
  13482. # used to encapsulate the default libtool approach to creating objects
  13483. # with position-independent code. Default: -prefer-pic.
  13484. #
  13485. # Use glibcxx_compiler_shared_flag to designate a compile-time flags for
  13486. # creating shared objects. Default: -D_GLIBCXX_SHARED.
  13487. #
  13488. # Use glibcxx_compiler_pic_flag to designate a compile-time flags for
  13489. # creating position-independent objects. This varies with the target
  13490. # hardware and operating system, but is often: -DPIC -fPIC.
  13491. if test "$enable_shared" = yes; then
  13492. glibcxx_lt_pic_flag="-prefer-pic"
  13493. glibcxx_compiler_pic_flag="$lt_prog_compiler_pic_CXX"
  13494. glibcxx_compiler_shared_flag="-D_GLIBCXX_SHARED"
  13495. else
  13496. glibcxx_lt_pic_flag=
  13497. glibcxx_compiler_pic_flag=
  13498. glibcxx_compiler_shared_flag=
  13499. fi
  13500. # Override the libtool's pic_flag and pic_mode.
  13501. # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
  13502. # NB: this impacts --with-pic and --without-pic.
  13503. lt_prog_compiler_pic_CXX="$glibcxx_compiler_pic_flag $glibcxx_compiler_shared_flag"
  13504. pic_mode='default'
  13505. # Eliminate -lstdc++ addition to postdeps for cross compiles.
  13506. postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
  13507. # Possibly disable most of the library.
  13508. ## TODO: Consider skipping unncessary tests altogether in this case, rather
  13509. ## than just ignoring the results. Faster /and/ more correct, win win.
  13510. # Check whether --enable-hosted-libstdcxx was given.
  13511. if test "${enable_hosted_libstdcxx+set}" = set; then :
  13512. enableval=$enable_hosted_libstdcxx;
  13513. else
  13514. case "$host" in
  13515. arm*-*-symbianelf*)
  13516. enable_hosted_libstdcxx=no
  13517. ;;
  13518. *)
  13519. enable_hosted_libstdcxx=yes
  13520. ;;
  13521. esac
  13522. fi
  13523. freestanding_flags=
  13524. if test "$enable_hosted_libstdcxx" = no; then
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: Only freestanding libraries will be built" >&5
  13526. $as_echo "$as_me: Only freestanding libraries will be built" >&6;}
  13527. is_hosted=no
  13528. hosted_define=0
  13529. enable_abi_check=no
  13530. enable_libstdcxx_pch=no
  13531. if test "x$with_headers" = xno; then
  13532. freestanding_flags="-ffreestanding"
  13533. fi
  13534. else
  13535. is_hosted=yes
  13536. hosted_define=1
  13537. fi
  13538. cat >>confdefs.h <<_ACEOF
  13539. #define _GLIBCXX_HOSTED $hosted_define
  13540. _ACEOF
  13541. FREESTANDING_FLAGS="$freestanding_flags"
  13542. # Enable descriptive messages to standard output on termination.
  13543. # Check whether --enable-libstdcxx-verbose was given.
  13544. if test "${enable_libstdcxx_verbose+set}" = set; then :
  13545. enableval=$enable_libstdcxx_verbose;
  13546. else
  13547. enable_libstdcxx_verbose=yes
  13548. fi
  13549. if test x"$enable_libstdcxx_verbose" = xyes; then
  13550. verbose_define=1
  13551. else
  13552. { $as_echo "$as_me:${as_lineno-$LINENO}: verbose termination messages are disabled" >&5
  13553. $as_echo "$as_me: verbose termination messages are disabled" >&6;}
  13554. verbose_define=0
  13555. fi
  13556. cat >>confdefs.h <<_ACEOF
  13557. #define _GLIBCXX_VERBOSE $verbose_define
  13558. _ACEOF
  13559. # Enable compiler support that doesn't require linking.
  13560. # Check whether --enable-libstdcxx-pch was given.
  13561. if test "${enable_libstdcxx_pch+set}" = set; then :
  13562. enableval=$enable_libstdcxx_pch;
  13563. case "$enableval" in
  13564. yes|no) ;;
  13565. *) as_fn_error $? "Argument to enable/disable libstdcxx-pch must be yes or no" "$LINENO" 5 ;;
  13566. esac
  13567. else
  13568. enable_libstdcxx_pch=$is_hosted
  13569. fi
  13570. if test $enable_libstdcxx_pch = yes; then
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5
  13572. $as_echo_n "checking for compiler with PCH support... " >&6; }
  13573. if ${glibcxx_cv_prog_CXX_pch+:} false; then :
  13574. $as_echo_n "(cached) " >&6
  13575. else
  13576. ac_save_CXXFLAGS="$CXXFLAGS"
  13577. CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
  13578. ac_ext=cpp
  13579. ac_cpp='$CXXCPP $CPPFLAGS'
  13580. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13581. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13582. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13583. echo '#include <math.h>' > conftest.h
  13584. if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
  13585. -o conftest.h.gch 1>&5 2>&1 &&
  13586. echo '#error "pch failed"' > conftest.h &&
  13587. echo '#include "conftest.h"' > conftest.cc &&
  13588. $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
  13589. then
  13590. glibcxx_cv_prog_CXX_pch=yes
  13591. else
  13592. glibcxx_cv_prog_CXX_pch=no
  13593. fi
  13594. rm -f conftest*
  13595. CXXFLAGS=$ac_save_CXXFLAGS
  13596. ac_ext=c
  13597. ac_cpp='$CPP $CPPFLAGS'
  13598. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13599. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13600. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13601. fi
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_prog_CXX_pch" >&5
  13603. $as_echo "$glibcxx_cv_prog_CXX_pch" >&6; }
  13604. enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
  13605. fi
  13606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled PCH" >&5
  13607. $as_echo_n "checking for enabled PCH... " >&6; }
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_pch" >&5
  13609. $as_echo "$enable_libstdcxx_pch" >&6; }
  13610. if test $enable_libstdcxx_pch = yes; then
  13611. glibcxx_PCHFLAGS="-include bits/stdc++.h"
  13612. else
  13613. glibcxx_PCHFLAGS=""
  13614. fi
  13615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  13616. $as_echo_n "checking for thread model used by GCC... " >&6; }
  13617. target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
  13618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
  13619. $as_echo "$target_thread_file" >&6; }
  13620. case $target_thread_file in
  13621. aix) thread_header=config/rs6000/gthr-aix.h ;;
  13622. dce) thread_header=config/pa/gthr-dce.h ;;
  13623. gcn) thread_header=config/gcn/gthr-gcn.h ;;
  13624. lynx) thread_header=config/gthr-lynx.h ;;
  13625. mipssde) thread_header=config/mips/gthr-mipssde.h ;;
  13626. posix) thread_header=gthr-posix.h ;;
  13627. rtems) thread_header=config/gthr-rtems.h ;;
  13628. single) thread_header=gthr-single.h ;;
  13629. tpf) thread_header=config/s390/gthr-tpf.h ;;
  13630. vxworks) thread_header=config/gthr-vxworks.h ;;
  13631. win32) thread_header=config/i386/gthr-win32.h ;;
  13632. esac
  13633. ac_ext=cpp
  13634. ac_cpp='$CXXCPP $CPPFLAGS'
  13635. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13636. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13637. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13638. old_CXXFLAGS="$CXXFLAGS"
  13639. # Do link tests if possible, instead asm tests, limited to some platforms
  13640. # see discussion in PR target/40134, PR libstdc++/40133 and the thread
  13641. # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
  13642. atomic_builtins_link_tests=no
  13643. if test x$gcc_no_link != xyes; then
  13644. # Can do link tests. Limit to some tested platforms
  13645. case "$host" in
  13646. *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
  13647. atomic_builtins_link_tests=yes
  13648. ;;
  13649. esac
  13650. fi
  13651. if test x$atomic_builtins_link_tests = xyes; then
  13652. # Do link tests.
  13653. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
  13655. $as_echo_n "checking for atomic builtins for bool... " >&6; }
  13656. if ${glibcxx_cv_atomic_bool+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. if test x$gcc_no_link = xyes; then
  13660. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13661. fi
  13662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13663. /* end confdefs.h. */
  13664. int
  13665. main ()
  13666. {
  13667. typedef bool atomic_type;
  13668. atomic_type c1;
  13669. atomic_type c2;
  13670. atomic_type c3(0);
  13671. // N.B. __atomic_fetch_add is not supported for bool.
  13672. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13673. __ATOMIC_RELAXED);
  13674. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13675. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13676. ;
  13677. return 0;
  13678. }
  13679. _ACEOF
  13680. if ac_fn_cxx_try_link "$LINENO"; then :
  13681. glibcxx_cv_atomic_bool=yes
  13682. else
  13683. glibcxx_cv_atomic_bool=no
  13684. fi
  13685. rm -f core conftest.err conftest.$ac_objext \
  13686. conftest$ac_exeext conftest.$ac_ext
  13687. fi
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
  13689. $as_echo "$glibcxx_cv_atomic_bool" >&6; }
  13690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
  13691. $as_echo_n "checking for atomic builtins for short... " >&6; }
  13692. if ${glibcxx_cv_atomic_short+:} false; then :
  13693. $as_echo_n "(cached) " >&6
  13694. else
  13695. if test x$gcc_no_link = xyes; then
  13696. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13697. fi
  13698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13699. /* end confdefs.h. */
  13700. int
  13701. main ()
  13702. {
  13703. typedef short atomic_type;
  13704. atomic_type c1;
  13705. atomic_type c2;
  13706. atomic_type c3(0);
  13707. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13708. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13709. __ATOMIC_RELAXED);
  13710. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13711. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13712. ;
  13713. return 0;
  13714. }
  13715. _ACEOF
  13716. if ac_fn_cxx_try_link "$LINENO"; then :
  13717. glibcxx_cv_atomic_short=yes
  13718. else
  13719. glibcxx_cv_atomic_short=no
  13720. fi
  13721. rm -f core conftest.err conftest.$ac_objext \
  13722. conftest$ac_exeext conftest.$ac_ext
  13723. fi
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
  13725. $as_echo "$glibcxx_cv_atomic_short" >&6; }
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
  13727. $as_echo_n "checking for atomic builtins for int... " >&6; }
  13728. if ${glibcxx_cv_atomic_int+:} false; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. if test x$gcc_no_link = xyes; then
  13732. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13733. fi
  13734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13735. /* end confdefs.h. */
  13736. int
  13737. main ()
  13738. {
  13739. typedef int atomic_type;
  13740. atomic_type c1;
  13741. atomic_type c2;
  13742. atomic_type c3(0);
  13743. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13744. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13745. __ATOMIC_RELAXED);
  13746. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13747. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13748. ;
  13749. return 0;
  13750. }
  13751. _ACEOF
  13752. if ac_fn_cxx_try_link "$LINENO"; then :
  13753. glibcxx_cv_atomic_int=yes
  13754. else
  13755. glibcxx_cv_atomic_int=no
  13756. fi
  13757. rm -f core conftest.err conftest.$ac_objext \
  13758. conftest$ac_exeext conftest.$ac_ext
  13759. fi
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
  13761. $as_echo "$glibcxx_cv_atomic_int" >&6; }
  13762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
  13763. $as_echo_n "checking for atomic builtins for long long... " >&6; }
  13764. if ${glibcxx_cv_atomic_long_long+:} false; then :
  13765. $as_echo_n "(cached) " >&6
  13766. else
  13767. if test x$gcc_no_link = xyes; then
  13768. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  13769. fi
  13770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13771. /* end confdefs.h. */
  13772. int
  13773. main ()
  13774. {
  13775. typedef long long atomic_type;
  13776. atomic_type c1;
  13777. atomic_type c2;
  13778. atomic_type c3(0);
  13779. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13780. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13781. __ATOMIC_RELAXED);
  13782. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13783. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_cxx_try_link "$LINENO"; then :
  13789. glibcxx_cv_atomic_long_long=yes
  13790. else
  13791. glibcxx_cv_atomic_long_long=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext \
  13794. conftest$ac_exeext conftest.$ac_ext
  13795. fi
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
  13797. $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
  13798. else
  13799. # Do asm tests.
  13800. # Compile unoptimized.
  13801. CXXFLAGS='-O0 -S'
  13802. # Fake what AC_TRY_COMPILE does.
  13803. cat > conftest.$ac_ext << EOF
  13804. #line 15984 "configure"
  13805. int main()
  13806. {
  13807. typedef bool atomic_type;
  13808. atomic_type c1;
  13809. atomic_type c2;
  13810. atomic_type c3(0);
  13811. // N.B. __atomic_fetch_add is not supported for bool.
  13812. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13813. __ATOMIC_RELAXED);
  13814. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13815. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13816. return 0;
  13817. }
  13818. EOF
  13819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
  13820. $as_echo_n "checking for atomic builtins for bool... " >&6; }
  13821. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13822. (eval $ac_compile) 2>&5
  13823. ac_status=$?
  13824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13825. test $ac_status = 0; }; then
  13826. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  13827. glibcxx_cv_atomic_bool=no
  13828. else
  13829. glibcxx_cv_atomic_bool=yes
  13830. fi
  13831. fi
  13832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
  13833. $as_echo "$glibcxx_cv_atomic_bool" >&6; }
  13834. rm -f conftest*
  13835. cat > conftest.$ac_ext << EOF
  13836. #line 16019 "configure"
  13837. int main()
  13838. {
  13839. typedef short atomic_type;
  13840. atomic_type c1;
  13841. atomic_type c2;
  13842. atomic_type c3(0);
  13843. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13844. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13845. __ATOMIC_RELAXED);
  13846. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13847. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13848. return 0;
  13849. }
  13850. EOF
  13851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
  13852. $as_echo_n "checking for atomic builtins for short... " >&6; }
  13853. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13854. (eval $ac_compile) 2>&5
  13855. ac_status=$?
  13856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13857. test $ac_status = 0; }; then
  13858. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  13859. glibcxx_cv_atomic_short=no
  13860. else
  13861. glibcxx_cv_atomic_short=yes
  13862. fi
  13863. fi
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
  13865. $as_echo "$glibcxx_cv_atomic_short" >&6; }
  13866. rm -f conftest*
  13867. cat > conftest.$ac_ext << EOF
  13868. #line 16054 "configure"
  13869. int main()
  13870. {
  13871. // NB: _Atomic_word not necessarily int.
  13872. typedef int atomic_type;
  13873. atomic_type c1;
  13874. atomic_type c2;
  13875. atomic_type c3(0);
  13876. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13877. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13878. __ATOMIC_RELAXED);
  13879. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13880. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13881. return 0;
  13882. }
  13883. EOF
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
  13885. $as_echo_n "checking for atomic builtins for int... " >&6; }
  13886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13887. (eval $ac_compile) 2>&5
  13888. ac_status=$?
  13889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13890. test $ac_status = 0; }; then
  13891. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  13892. glibcxx_cv_atomic_int=no
  13893. else
  13894. glibcxx_cv_atomic_int=yes
  13895. fi
  13896. fi
  13897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
  13898. $as_echo "$glibcxx_cv_atomic_int" >&6; }
  13899. rm -f conftest*
  13900. cat > conftest.$ac_ext << EOF
  13901. #line 16090 "configure"
  13902. int main()
  13903. {
  13904. typedef long long atomic_type;
  13905. atomic_type c1;
  13906. atomic_type c2;
  13907. atomic_type c3(0);
  13908. __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
  13909. __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
  13910. __ATOMIC_RELAXED);
  13911. __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
  13912. __atomic_load_n(&c1, __ATOMIC_RELAXED);
  13913. return 0;
  13914. }
  13915. EOF
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
  13917. $as_echo_n "checking for atomic builtins for long long... " >&6; }
  13918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13919. (eval $ac_compile) 2>&5
  13920. ac_status=$?
  13921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13922. test $ac_status = 0; }; then
  13923. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  13924. glibcxx_cv_atomic_long_long=no
  13925. else
  13926. glibcxx_cv_atomic_long_long=yes
  13927. fi
  13928. fi
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
  13930. $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
  13931. rm -f conftest*
  13932. fi
  13933. CXXFLAGS="$old_CXXFLAGS"
  13934. ac_ext=c
  13935. ac_cpp='$CPP $CPPFLAGS'
  13936. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13937. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13938. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13939. # Set atomicity_dir to builtins if all but the long long test above passes,
  13940. # or if the builtins were already chosen (e.g. by configure.host).
  13941. if { test "$glibcxx_cv_atomic_bool" = yes \
  13942. && test "$glibcxx_cv_atomic_short" = yes \
  13943. && test "$glibcxx_cv_atomic_int" = yes; } \
  13944. || test "$atomicity_dir" = "cpu/generic/atomicity_builtins"; then
  13945. $as_echo "#define _GLIBCXX_ATOMIC_BUILTINS 1" >>confdefs.h
  13946. atomicity_dir=cpu/generic/atomicity_builtins
  13947. fi
  13948. # If still generic, set to mutex.
  13949. if test $atomicity_dir = "cpu/generic" ; then
  13950. atomicity_dir=cpu/generic/atomicity_mutex
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native atomic operations are provided for this platform." >&5
  13952. $as_echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
  13953. if test "x$target_thread_file" = xsingle; then
  13954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They cannot be faked when thread support is disabled." >&5
  13955. $as_echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Thread-safety of certain classes is not guaranteed." >&5
  13957. $as_echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
  13958. else
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They will be faked using a mutex." >&5
  13960. $as_echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance of certain classes will degrade as a result." >&5
  13962. $as_echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
  13963. fi
  13964. fi
  13965. # Check whether --with-libstdcxx-lock-policy was given.
  13966. if test "${with_libstdcxx_lock_policy+set}" = set; then :
  13967. withval=$with_libstdcxx_lock_policy; libstdcxx_atomic_lock_policy=$withval
  13968. else
  13969. libstdcxx_atomic_lock_policy=auto
  13970. fi
  13971. case "$libstdcxx_atomic_lock_policy" in
  13972. atomic|mutex|auto) ;;
  13973. *) as_fn_error $? "Invalid argument for --with-libstdcxx-lock-policy" "$LINENO" 5 ;;
  13974. esac
  13975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock policy for shared_ptr reference counts" >&5
  13976. $as_echo_n "checking for lock policy for shared_ptr reference counts... " >&6; }
  13977. if test x"$libstdcxx_atomic_lock_policy" = x"auto"; then
  13978. ac_ext=cpp
  13979. ac_cpp='$CXXCPP $CPPFLAGS'
  13980. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13981. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13982. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13983. ac_save_CXXFLAGS="$CXXFLAGS"
  13984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13985. /* end confdefs.h. */
  13986. #if ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
  13987. # error "No 2-byte compare-and-swap"
  13988. #elif ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
  13989. # error "No 4-byte compare-and-swap"
  13990. #endif
  13991. int
  13992. main ()
  13993. {
  13994. ;
  13995. return 0;
  13996. }
  13997. _ACEOF
  13998. if ac_fn_cxx_try_compile "$LINENO"; then :
  13999. libstdcxx_atomic_lock_policy=atomic
  14000. else
  14001. libstdcxx_atomic_lock_policy=mutex
  14002. fi
  14003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14004. ac_ext=c
  14005. ac_cpp='$CPP $CPPFLAGS'
  14006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14009. CXXFLAGS="$ac_save_CXXFLAGS"
  14010. fi
  14011. if test x"$libstdcxx_atomic_lock_policy" = x"atomic"; then
  14012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: atomic" >&5
  14013. $as_echo "atomic" >&6; }
  14014. $as_echo "#define HAVE_ATOMIC_LOCK_POLICY 1" >>confdefs.h
  14015. else
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: mutex" >&5
  14017. $as_echo "mutex" >&6; }
  14018. fi
  14019. # Fake what AC_TRY_COMPILE does, without linking as this is
  14020. # unnecessary for this test.
  14021. cat > conftest.$ac_ext << EOF
  14022. #line 16243 "configure"
  14023. int main()
  14024. {
  14025. _Decimal32 d1;
  14026. _Decimal64 d2;
  14027. _Decimal128 d3;
  14028. return 0;
  14029. }
  14030. EOF
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC TR 24733 " >&5
  14032. $as_echo_n "checking for ISO/IEC TR 24733 ... " >&6; }
  14033. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14034. (eval $ac_compile) 2>&5
  14035. ac_status=$?
  14036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14037. test $ac_status = 0; }; then
  14038. $as_echo "#define _GLIBCXX_USE_DECIMAL_FLOAT 1" >>confdefs.h
  14039. enable_dfp=yes
  14040. else
  14041. enable_dfp=no
  14042. fi
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dfp" >&5
  14044. $as_echo "$enable_dfp" >&6; }
  14045. rm -f conftest*
  14046. ac_ext=cpp
  14047. ac_cpp='$CXXCPP $CPPFLAGS'
  14048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14051. # Fake what AC_TRY_COMPILE does, without linking as this is
  14052. # unnecessary for this test.
  14053. cat > conftest.$ac_ext << EOF
  14054. #line 16285 "configure"
  14055. template<typename T1, typename T2>
  14056. struct same
  14057. { typedef T2 type; };
  14058. template<typename T>
  14059. struct same<T, T>;
  14060. int main()
  14061. {
  14062. typename same<double, __float128>::type f1;
  14063. typename same<long double, __float128>::type f2;
  14064. }
  14065. EOF
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5
  14067. $as_echo_n "checking for __float128... " >&6; }
  14068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14069. (eval $ac_compile) 2>&5
  14070. ac_status=$?
  14071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14072. test $ac_status = 0; }; then
  14073. enable_float128=yes
  14074. else
  14075. enable_float128=no
  14076. fi
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float128" >&5
  14078. $as_echo "$enable_float128" >&6; }
  14079. rm -f conftest*
  14080. ac_ext=c
  14081. ac_cpp='$CPP $CPPFLAGS'
  14082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14085. if test "$enable_float128" = yes; then
  14086. port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/abi/pre/float128.ver"
  14087. fi
  14088. # Checks for compiler support that doesn't require linking.
  14089. # All these tests are for C++; save the language and the compiler flags.
  14090. # The CXXFLAGS thing is suspicious, but based on similar bits previously
  14091. # found in GLIBCXX_CONFIGURE.
  14092. ac_ext=cpp
  14093. ac_cpp='$CXXCPP $CPPFLAGS'
  14094. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14095. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14096. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14097. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  14098. ac_save_CXXFLAGS="$CXXFLAGS"
  14099. # Check for -ffunction-sections -fdata-sections
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
  14101. $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
  14102. CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. int foo; void bar() { };
  14106. int
  14107. main ()
  14108. {
  14109. ;
  14110. return 0;
  14111. }
  14112. _ACEOF
  14113. if ac_fn_cxx_try_compile "$LINENO"; then :
  14114. ac_fdsections=yes
  14115. else
  14116. ac_fdsections=no
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. if test "$ac_test_CXXFLAGS" = set; then
  14120. CXXFLAGS="$ac_save_CXXFLAGS"
  14121. else
  14122. # this is the suspicious part
  14123. CXXFLAGS=''
  14124. fi
  14125. if test x"$ac_fdsections" = x"yes"; then
  14126. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  14127. fi
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  14129. $as_echo "$ac_fdsections" >&6; }
  14130. ac_ext=c
  14131. ac_cpp='$CPP $CPPFLAGS'
  14132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14135. # Enable all the variable C++ runtime options that don't require linking.
  14136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underlying I/O to use" >&5
  14137. $as_echo_n "checking for underlying I/O to use... " >&6; }
  14138. # Check whether --enable-cstdio was given.
  14139. if test "${enable_cstdio+set}" = set; then :
  14140. enableval=$enable_cstdio;
  14141. case "$enableval" in
  14142. stdio|stdio_posix|stdio_pure) ;;
  14143. *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
  14144. esac
  14145. else
  14146. enable_cstdio=stdio
  14147. fi
  14148. # The only available I/O model is based on stdio, via basic_file_stdio.
  14149. # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
  14150. # to get a file descriptor and then uses read(3) and write(3) with it.
  14151. # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
  14152. case ${enable_cstdio} in
  14153. stdio*)
  14154. CSTDIO_H=config/io/c_io_stdio.h
  14155. BASIC_FILE_H=config/io/basic_file_stdio.h
  14156. BASIC_FILE_CC=config/io/basic_file_stdio.cc
  14157. if test "x$enable_cstdio" = "xstdio_pure" ; then
  14158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5
  14159. $as_echo "stdio (without POSIX read/write)" >&6; }
  14160. $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
  14161. else
  14162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5
  14163. $as_echo "stdio (with POSIX read/write)" >&6; }
  14164. fi
  14165. ;;
  14166. esac
  14167. # Check whether --enable-clocale was given.
  14168. if test "${enable_clocale+set}" = set; then :
  14169. enableval=$enable_clocale;
  14170. case "$enableval" in
  14171. generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;;
  14172. *) as_fn_error $? "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
  14173. esac
  14174. else
  14175. enable_clocale=auto
  14176. fi
  14177. # Deal with gettext issues. Default to not using it (=no) until we detect
  14178. # support for it later. Let the user turn it off via --e/d, but let that
  14179. # default to on for easier handling.
  14180. USE_NLS=no
  14181. # Check whether --enable-nls was given.
  14182. if test "${enable_nls+set}" = set; then :
  14183. enableval=$enable_nls;
  14184. else
  14185. enable_nls=yes
  14186. fi
  14187. # Either a known package, or "auto"
  14188. if test $enable_clocale = no || test $enable_clocale = yes; then
  14189. enable_clocale=auto
  14190. fi
  14191. enable_clocale_flag=$enable_clocale
  14192. # Probe for locale model to use if none specified.
  14193. # Default to "generic".
  14194. if test $enable_clocale_flag = auto; then
  14195. case ${target_os} in
  14196. linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
  14197. enable_clocale_flag=gnu
  14198. ;;
  14199. darwin*)
  14200. enable_clocale_flag=darwin
  14201. ;;
  14202. vxworks*)
  14203. enable_clocale_flag=vxworks
  14204. ;;
  14205. dragonfly* | freebsd*)
  14206. enable_clocale_flag=dragonfly
  14207. ;;
  14208. openbsd*)
  14209. enable_clocale_flag=newlib
  14210. ;;
  14211. *)
  14212. if test x"$with_newlib" = x"yes"; then
  14213. enable_clocale_flag=newlib
  14214. else
  14215. enable_clocale_flag=generic
  14216. fi
  14217. ;;
  14218. esac
  14219. fi
  14220. # Sanity check model, and test for special functionality.
  14221. if test $enable_clocale_flag = gnu; then
  14222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14223. /* end confdefs.h. */
  14224. #include <features.h>
  14225. #if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(__UCLIBC__)
  14226. _GLIBCXX_ok
  14227. #endif
  14228. _ACEOF
  14229. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14230. $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then :
  14231. enable_clocale_flag=gnu
  14232. else
  14233. enable_clocale_flag=generic
  14234. fi
  14235. rm -f conftest*
  14236. # Set it to scream when it hurts.
  14237. ac_save_CFLAGS="$CFLAGS"
  14238. CFLAGS="-Wimplicit-function-declaration -Werror"
  14239. # Use strxfrm_l if available.
  14240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14241. /* end confdefs.h. */
  14242. #define _GNU_SOURCE 1
  14243. #include <string.h>
  14244. #include <locale.h>
  14245. int
  14246. main ()
  14247. {
  14248. char s[128]; __locale_t loc; strxfrm_l(s, "C", 5, loc);
  14249. ;
  14250. return 0;
  14251. }
  14252. _ACEOF
  14253. if ac_fn_c_try_compile "$LINENO"; then :
  14254. $as_echo "#define HAVE_STRXFRM_L 1" >>confdefs.h
  14255. fi
  14256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14257. # Use strerror_l if available.
  14258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14259. /* end confdefs.h. */
  14260. #define _GNU_SOURCE 1
  14261. #include <string.h>
  14262. #include <locale.h>
  14263. int
  14264. main ()
  14265. {
  14266. __locale_t loc; strerror_l(5, loc);
  14267. ;
  14268. return 0;
  14269. }
  14270. _ACEOF
  14271. if ac_fn_c_try_compile "$LINENO"; then :
  14272. $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14275. CFLAGS="$ac_save_CFLAGS"
  14276. fi
  14277. # Perhaps use strerror_r if available, and strerror_l isn't.
  14278. ac_save_CFLAGS="$CFLAGS"
  14279. CFLAGS="-Wimplicit-function-declaration -Werror"
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. #define _GNU_SOURCE 1
  14283. #include <string.h>
  14284. #include <locale.h>
  14285. int
  14286. main ()
  14287. {
  14288. char s[128]; strerror_r(5, s, 128);
  14289. ;
  14290. return 0;
  14291. }
  14292. _ACEOF
  14293. if ac_fn_c_try_compile "$LINENO"; then :
  14294. $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
  14295. fi
  14296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14297. CFLAGS="$ac_save_CFLAGS"
  14298. # Set configure bits for specified locale package
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C locale to use" >&5
  14300. $as_echo_n "checking for C locale to use... " >&6; }
  14301. case ${enable_clocale_flag} in
  14302. generic)
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: generic" >&5
  14304. $as_echo "generic" >&6; }
  14305. CLOCALE_H=config/locale/generic/c_locale.h
  14306. CLOCALE_CC=config/locale/generic/c_locale.cc
  14307. CCODECVT_CC=config/locale/generic/codecvt_members.cc
  14308. CCOLLATE_CC=config/locale/generic/collate_members.cc
  14309. CCTYPE_CC=config/locale/generic/ctype_members.cc
  14310. CMESSAGES_H=config/locale/generic/messages_members.h
  14311. CMESSAGES_CC=config/locale/generic/messages_members.cc
  14312. CMONEY_CC=config/locale/generic/monetary_members.cc
  14313. CNUMERIC_CC=config/locale/generic/numeric_members.cc
  14314. CTIME_H=config/locale/generic/time_members.h
  14315. CTIME_CC=config/locale/generic/time_members.cc
  14316. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14317. ;;
  14318. darwin)
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
  14320. $as_echo "darwin" >&6; }
  14321. CLOCALE_H=config/locale/generic/c_locale.h
  14322. CLOCALE_CC=config/locale/generic/c_locale.cc
  14323. CCODECVT_CC=config/locale/generic/codecvt_members.cc
  14324. CCOLLATE_CC=config/locale/generic/collate_members.cc
  14325. CCTYPE_CC=config/locale/darwin/ctype_members.cc
  14326. CMESSAGES_H=config/locale/generic/messages_members.h
  14327. CMESSAGES_CC=config/locale/generic/messages_members.cc
  14328. CMONEY_CC=config/locale/generic/monetary_members.cc
  14329. CNUMERIC_CC=config/locale/generic/numeric_members.cc
  14330. CTIME_H=config/locale/generic/time_members.h
  14331. CTIME_CC=config/locale/generic/time_members.cc
  14332. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14333. ;;
  14334. vxworks)
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: vxworks" >&5
  14336. $as_echo "vxworks" >&6; }
  14337. CLOCALE_H=config/locale/generic/c_locale.h
  14338. CLOCALE_CC=config/locale/generic/c_locale.cc
  14339. CCODECVT_CC=config/locale/generic/codecvt_members.cc
  14340. CCOLLATE_CC=config/locale/generic/collate_members.cc
  14341. CCTYPE_CC=config/locale/vxworks/ctype_members.cc
  14342. CMESSAGES_H=config/locale/generic/messages_members.h
  14343. CMESSAGES_CC=config/locale/generic/messages_members.cc
  14344. CMONEY_CC=config/locale/generic/monetary_members.cc
  14345. CNUMERIC_CC=config/locale/generic/numeric_members.cc
  14346. CTIME_H=config/locale/generic/time_members.h
  14347. CTIME_CC=config/locale/generic/time_members.cc
  14348. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14349. ;;
  14350. dragonfly)
  14351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly or freebsd" >&5
  14352. $as_echo "dragonfly or freebsd" >&6; }
  14353. CLOCALE_H=config/locale/dragonfly/c_locale.h
  14354. CLOCALE_CC=config/locale/dragonfly/c_locale.cc
  14355. CCODECVT_CC=config/locale/dragonfly/codecvt_members.cc
  14356. CCOLLATE_CC=config/locale/dragonfly/collate_members.cc
  14357. CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
  14358. CMESSAGES_H=config/locale/generic/messages_members.h
  14359. CMESSAGES_CC=config/locale/generic/messages_members.cc
  14360. CMONEY_CC=config/locale/dragonfly/monetary_members.cc
  14361. CNUMERIC_CC=config/locale/dragonfly/numeric_members.cc
  14362. CTIME_H=config/locale/dragonfly/time_members.h
  14363. CTIME_CC=config/locale/dragonfly/time_members.cc
  14364. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14365. ;;
  14366. gnu)
  14367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnu" >&5
  14368. $as_echo "gnu" >&6; }
  14369. # Declare intention to use gettext, and add support for specific
  14370. # languages.
  14371. # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
  14372. ALL_LINGUAS="de fr"
  14373. # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
  14374. # Extract the first word of "msgfmt", so it can be a program name with args.
  14375. set dummy msgfmt; ac_word=$2
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14377. $as_echo_n "checking for $ac_word... " >&6; }
  14378. if ${ac_cv_prog_check_msgfmt+:} false; then :
  14379. $as_echo_n "(cached) " >&6
  14380. else
  14381. if test -n "$check_msgfmt"; then
  14382. ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
  14383. else
  14384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14385. for as_dir in $PATH
  14386. do
  14387. IFS=$as_save_IFS
  14388. test -z "$as_dir" && as_dir=.
  14389. for ac_exec_ext in '' $ac_executable_extensions; do
  14390. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14391. ac_cv_prog_check_msgfmt="yes"
  14392. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14393. break 2
  14394. fi
  14395. done
  14396. done
  14397. IFS=$as_save_IFS
  14398. test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
  14399. fi
  14400. fi
  14401. check_msgfmt=$ac_cv_prog_check_msgfmt
  14402. if test -n "$check_msgfmt"; then
  14403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_msgfmt" >&5
  14404. $as_echo "$check_msgfmt" >&6; }
  14405. else
  14406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14407. $as_echo "no" >&6; }
  14408. fi
  14409. if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
  14410. USE_NLS=yes
  14411. fi
  14412. # Export the build objects.
  14413. for ling in $ALL_LINGUAS; do \
  14414. glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
  14415. glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
  14416. done
  14417. CLOCALE_H=config/locale/gnu/c_locale.h
  14418. CLOCALE_CC=config/locale/gnu/c_locale.cc
  14419. CCODECVT_CC=config/locale/gnu/codecvt_members.cc
  14420. CCOLLATE_CC=config/locale/gnu/collate_members.cc
  14421. CCTYPE_CC=config/locale/gnu/ctype_members.cc
  14422. CMESSAGES_H=config/locale/gnu/messages_members.h
  14423. CMESSAGES_CC=config/locale/gnu/messages_members.cc
  14424. CMONEY_CC=config/locale/gnu/monetary_members.cc
  14425. CNUMERIC_CC=config/locale/gnu/numeric_members.cc
  14426. CTIME_H=config/locale/gnu/time_members.h
  14427. CTIME_CC=config/locale/gnu/time_members.cc
  14428. CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
  14429. ;;
  14430. ieee_1003.1-2001)
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE 1003.1" >&5
  14432. $as_echo "IEEE 1003.1" >&6; }
  14433. CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
  14434. CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
  14435. CCODECVT_CC=config/locale/generic/codecvt_members.cc
  14436. CCOLLATE_CC=config/locale/generic/collate_members.cc
  14437. CCTYPE_CC=config/locale/generic/ctype_members.cc
  14438. CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
  14439. CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
  14440. CMONEY_CC=config/locale/generic/monetary_members.cc
  14441. CNUMERIC_CC=config/locale/generic/numeric_members.cc
  14442. CTIME_H=config/locale/generic/time_members.h
  14443. CTIME_CC=config/locale/generic/time_members.cc
  14444. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14445. ;;
  14446. newlib)
  14447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: newlib" >&5
  14448. $as_echo "newlib" >&6; }
  14449. CLOCALE_H=config/locale/generic/c_locale.h
  14450. CLOCALE_CC=config/locale/generic/c_locale.cc
  14451. CCODECVT_CC=config/locale/generic/codecvt_members.cc
  14452. CCOLLATE_CC=config/locale/generic/collate_members.cc
  14453. CCTYPE_CC=config/locale/newlib/ctype_members.cc
  14454. CMESSAGES_H=config/locale/generic/messages_members.h
  14455. CMESSAGES_CC=config/locale/generic/messages_members.cc
  14456. CMONEY_CC=config/locale/generic/monetary_members.cc
  14457. CNUMERIC_CC=config/locale/generic/numeric_members.cc
  14458. CTIME_H=config/locale/generic/time_members.h
  14459. CTIME_CC=config/locale/generic/time_members.cc
  14460. CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
  14461. ;;
  14462. esac
  14463. # This is where the testsuite looks for locale catalogs, using the
  14464. # -DLOCALEDIR define during testsuite compilation.
  14465. glibcxx_localedir=${glibcxx_builddir}/po/share/locale
  14466. # A standalone libintl (e.g., GNU libintl) may be in use.
  14467. if test $USE_NLS = yes; then
  14468. for ac_header in libintl.h
  14469. do :
  14470. ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  14471. if test "x$ac_cv_header_libintl_h" = xyes; then :
  14472. cat >>confdefs.h <<_ACEOF
  14473. #define HAVE_LIBINTL_H 1
  14474. _ACEOF
  14475. else
  14476. USE_NLS=no
  14477. fi
  14478. done
  14479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
  14480. $as_echo_n "checking for library containing gettext... " >&6; }
  14481. if ${ac_cv_search_gettext+:} false; then :
  14482. $as_echo_n "(cached) " >&6
  14483. else
  14484. ac_func_search_save_LIBS=$LIBS
  14485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14486. /* end confdefs.h. */
  14487. /* Override any GCC internal prototype to avoid an error.
  14488. Use char because int might match the return type of a GCC
  14489. builtin and then its argument prototype would still apply. */
  14490. #ifdef __cplusplus
  14491. extern "C"
  14492. #endif
  14493. char gettext ();
  14494. int
  14495. main ()
  14496. {
  14497. return gettext ();
  14498. ;
  14499. return 0;
  14500. }
  14501. _ACEOF
  14502. for ac_lib in '' intl; do
  14503. if test -z "$ac_lib"; then
  14504. ac_res="none required"
  14505. else
  14506. ac_res=-l$ac_lib
  14507. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14508. fi
  14509. if test x$gcc_no_link = xyes; then
  14510. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14511. fi
  14512. if ac_fn_c_try_link "$LINENO"; then :
  14513. ac_cv_search_gettext=$ac_res
  14514. fi
  14515. rm -f core conftest.err conftest.$ac_objext \
  14516. conftest$ac_exeext
  14517. if ${ac_cv_search_gettext+:} false; then :
  14518. break
  14519. fi
  14520. done
  14521. if ${ac_cv_search_gettext+:} false; then :
  14522. else
  14523. ac_cv_search_gettext=no
  14524. fi
  14525. rm conftest.$ac_ext
  14526. LIBS=$ac_func_search_save_LIBS
  14527. fi
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
  14529. $as_echo "$ac_cv_search_gettext" >&6; }
  14530. ac_res=$ac_cv_search_gettext
  14531. if test "$ac_res" != no; then :
  14532. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14533. else
  14534. USE_NLS=no
  14535. fi
  14536. fi
  14537. if test $USE_NLS = yes; then
  14538. $as_echo "#define _GLIBCXX_USE_NLS 1" >>confdefs.h
  14539. fi
  14540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::allocator base class" >&5
  14541. $as_echo_n "checking for std::allocator base class... " >&6; }
  14542. # Check whether --enable-libstdcxx-allocator was given.
  14543. if test "${enable_libstdcxx_allocator+set}" = set; then :
  14544. enableval=$enable_libstdcxx_allocator;
  14545. case "$enableval" in
  14546. new|malloc|yes|no|auto) ;;
  14547. *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-allocator" "$LINENO" 5 ;;
  14548. esac
  14549. else
  14550. enable_libstdcxx_allocator=auto
  14551. fi
  14552. # If they didn't use this option switch, or if they specified --enable
  14553. # with no specific model, we'll have to look for one. If they
  14554. # specified --disable (???), do likewise.
  14555. if test $enable_libstdcxx_allocator = no ||
  14556. test $enable_libstdcxx_allocator = yes;
  14557. then
  14558. enable_libstdcxx_allocator=auto
  14559. fi
  14560. # Either a known package, or "auto". Auto implies the default choice
  14561. # for a particular platform.
  14562. enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
  14563. # Probe for host-specific support if no specific model is specified.
  14564. # Default to "new".
  14565. if test $enable_libstdcxx_allocator_flag = auto; then
  14566. case ${target_os} in
  14567. linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
  14568. enable_libstdcxx_allocator_flag=new
  14569. ;;
  14570. *)
  14571. enable_libstdcxx_allocator_flag=new
  14572. ;;
  14573. esac
  14574. fi
  14575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_allocator_flag" >&5
  14576. $as_echo "$enable_libstdcxx_allocator_flag" >&6; }
  14577. # Set configure bits for specified locale package
  14578. case ${enable_libstdcxx_allocator_flag} in
  14579. malloc)
  14580. ALLOCATOR_H=config/allocator/malloc_allocator_base.h
  14581. ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
  14582. ;;
  14583. new)
  14584. ALLOCATOR_H=config/allocator/new_allocator_base.h
  14585. ALLOCATOR_NAME=__gnu_cxx::new_allocator
  14586. ;;
  14587. esac
  14588. # Check whether --enable-cheaders-obsolete was given.
  14589. if test "${enable_cheaders_obsolete+set}" = set; then :
  14590. enableval=$enable_cheaders_obsolete;
  14591. case "$enableval" in
  14592. yes|no) ;;
  14593. *) as_fn_error $? "Argument to enable/disable cheaders-obsolete must be yes or no" "$LINENO" 5 ;;
  14594. esac
  14595. else
  14596. enable_cheaders_obsolete=no
  14597. fi
  14598. # Check whether --enable-cheaders was given.
  14599. if test "${enable_cheaders+set}" = set; then :
  14600. enableval=$enable_cheaders;
  14601. case "$enableval" in
  14602. c|c_global|c_std) ;;
  14603. *) as_fn_error $? "Unknown argument to enable/disable cheaders" "$LINENO" 5 ;;
  14604. esac
  14605. else
  14606. enable_cheaders=$c_model
  14607. fi
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: \"C\" header strategy set to $enable_cheaders" >&5
  14609. $as_echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
  14610. if test $enable_cheaders = c_std ; then
  14611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&5
  14612. $as_echo "$as_me: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&2;}
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&5
  14614. $as_echo "$as_me: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&2;}
  14615. if test $enable_cheaders_obsolete != yes ; then
  14616. as_fn_error $? "use --enable-cheaders-obsolete to use c_std \"C\" headers" "$LINENO" 5
  14617. fi
  14618. fi
  14619. C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
  14620. # Allow overrides to configure.host here.
  14621. if test $enable_cheaders = c_global; then
  14622. c_compatibility=yes
  14623. fi
  14624. # Check whether --enable-long-long was given.
  14625. if test "${enable_long_long+set}" = set; then :
  14626. enableval=$enable_long_long;
  14627. case "$enableval" in
  14628. yes|no) ;;
  14629. *) as_fn_error $? "Argument to enable/disable long-long must be yes or no" "$LINENO" 5 ;;
  14630. esac
  14631. else
  14632. enable_long_long=yes
  14633. fi
  14634. if test $enable_long_long = yes; then
  14635. $as_echo "#define _GLIBCXX_USE_LONG_LONG 1" >>confdefs.h
  14636. fi
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled long long specializations" >&5
  14638. $as_echo_n "checking for enabled long long specializations... " >&6; }
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_long" >&5
  14640. $as_echo "$enable_long_long" >&6; }
  14641. # Check whether --enable-wchar_t was given.
  14642. if test "${enable_wchar_t+set}" = set; then :
  14643. enableval=$enable_wchar_t;
  14644. case "$enableval" in
  14645. yes|no) ;;
  14646. *) as_fn_error $? "Argument to enable/disable wchar_t must be yes or no" "$LINENO" 5 ;;
  14647. esac
  14648. else
  14649. enable_wchar_t=yes
  14650. fi
  14651. # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
  14652. for ac_header in wchar.h
  14653. do :
  14654. ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  14655. if test "x$ac_cv_header_wchar_h" = xyes; then :
  14656. cat >>confdefs.h <<_ACEOF
  14657. #define HAVE_WCHAR_H 1
  14658. _ACEOF
  14659. ac_has_wchar_h=yes
  14660. else
  14661. ac_has_wchar_h=no
  14662. fi
  14663. done
  14664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  14665. $as_echo_n "checking for mbstate_t... " >&6; }
  14666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14667. /* end confdefs.h. */
  14668. #include <wchar.h>
  14669. int
  14670. main ()
  14671. {
  14672. mbstate_t teststate;
  14673. ;
  14674. return 0;
  14675. }
  14676. _ACEOF
  14677. if ac_fn_c_try_compile "$LINENO"; then :
  14678. have_mbstate_t=yes
  14679. else
  14680. have_mbstate_t=no
  14681. fi
  14682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
  14684. $as_echo "$have_mbstate_t" >&6; }
  14685. if test x"$have_mbstate_t" = xyes; then
  14686. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  14687. fi
  14688. # Test it always, for use in GLIBCXX_ENABLE_C99, together with
  14689. # ac_has_wchar_h.
  14690. for ac_header in wctype.h
  14691. do :
  14692. ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
  14693. if test "x$ac_cv_header_wctype_h" = xyes; then :
  14694. cat >>confdefs.h <<_ACEOF
  14695. #define HAVE_WCTYPE_H 1
  14696. _ACEOF
  14697. ac_has_wctype_h=yes
  14698. else
  14699. ac_has_wctype_h=no
  14700. fi
  14701. done
  14702. if test x"$enable_wchar_t" = x"yes"; then
  14703. ac_ext=cpp
  14704. ac_cpp='$CXXCPP $CPPFLAGS'
  14705. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14706. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14707. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14708. if test x"$ac_has_wchar_h" = xyes &&
  14709. test x"$ac_has_wctype_h" = xyes; then
  14710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14711. /* end confdefs.h. */
  14712. #include <wchar.h>
  14713. #include <stddef.h>
  14714. wint_t i;
  14715. long l = WEOF;
  14716. long j = WCHAR_MIN;
  14717. long k = WCHAR_MAX;
  14718. namespace test
  14719. {
  14720. using ::btowc;
  14721. using ::fgetwc;
  14722. using ::fgetws;
  14723. using ::fputwc;
  14724. using ::fputws;
  14725. using ::fwide;
  14726. using ::fwprintf;
  14727. using ::fwscanf;
  14728. using ::getwc;
  14729. using ::getwchar;
  14730. using ::mbrlen;
  14731. using ::mbrtowc;
  14732. using ::mbsinit;
  14733. using ::mbsrtowcs;
  14734. using ::putwc;
  14735. using ::putwchar;
  14736. using ::swprintf;
  14737. using ::swscanf;
  14738. using ::ungetwc;
  14739. using ::vfwprintf;
  14740. using ::vswprintf;
  14741. using ::vwprintf;
  14742. using ::wcrtomb;
  14743. using ::wcscat;
  14744. using ::wcschr;
  14745. using ::wcscmp;
  14746. using ::wcscoll;
  14747. using ::wcscpy;
  14748. using ::wcscspn;
  14749. using ::wcsftime;
  14750. using ::wcslen;
  14751. using ::wcsncat;
  14752. using ::wcsncmp;
  14753. using ::wcsncpy;
  14754. using ::wcspbrk;
  14755. using ::wcsrchr;
  14756. using ::wcsrtombs;
  14757. using ::wcsspn;
  14758. using ::wcsstr;
  14759. using ::wcstod;
  14760. using ::wcstok;
  14761. using ::wcstol;
  14762. using ::wcstoul;
  14763. using ::wcsxfrm;
  14764. using ::wctob;
  14765. using ::wmemchr;
  14766. using ::wmemcmp;
  14767. using ::wmemcpy;
  14768. using ::wmemmove;
  14769. using ::wmemset;
  14770. using ::wprintf;
  14771. using ::wscanf;
  14772. }
  14773. int
  14774. main ()
  14775. {
  14776. ;
  14777. return 0;
  14778. }
  14779. _ACEOF
  14780. if ac_fn_cxx_try_compile "$LINENO"; then :
  14781. else
  14782. enable_wchar_t=no
  14783. fi
  14784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14785. else
  14786. enable_wchar_t=no
  14787. fi
  14788. ac_ext=c
  14789. ac_cpp='$CPP $CPPFLAGS'
  14790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14793. fi
  14794. if test x"$enable_wchar_t" = x"yes"; then
  14795. $as_echo "#define _GLIBCXX_USE_WCHAR_T 1" >>confdefs.h
  14796. fi
  14797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled wchar_t specializations" >&5
  14798. $as_echo_n "checking for enabled wchar_t specializations... " >&6; }
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wchar_t" >&5
  14800. $as_echo "$enable_wchar_t" >&6; }
  14801. # Check whether --enable-c99 was given.
  14802. if test "${enable_c99+set}" = set; then :
  14803. enableval=$enable_c99;
  14804. case "$enableval" in
  14805. yes|no) ;;
  14806. *) as_fn_error $? "Argument to enable/disable c99 must be yes or no" "$LINENO" 5 ;;
  14807. esac
  14808. else
  14809. enable_c99=yes
  14810. fi
  14811. if test x"$enable_c99" = x"yes"; then
  14812. ac_ext=cpp
  14813. ac_cpp='$CXXCPP $CPPFLAGS'
  14814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14817. # Use -std=c++98 (instead of -std=gnu++98) because leaving __STRICT_ANSI__
  14818. # undefined may cause fake C99 facilities, like pre-standard snprintf,
  14819. # to be spuriously enabled.
  14820. ac_save_CXXFLAGS="$CXXFLAGS"
  14821. CXXFLAGS="$CXXFLAGS -std=c++98"
  14822. ac_save_LIBS="$LIBS"
  14823. ac_save_gcc_no_link="$gcc_no_link"
  14824. if test x$gcc_no_link != xyes; then
  14825. # Use -fno-exceptions to that the C driver can link these tests without
  14826. # hitting undefined references to personality routines.
  14827. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  14829. $as_echo_n "checking for sin in -lm... " >&6; }
  14830. if ${ac_cv_lib_m_sin+:} false; then :
  14831. $as_echo_n "(cached) " >&6
  14832. else
  14833. ac_check_lib_save_LIBS=$LIBS
  14834. LIBS="-lm $LIBS"
  14835. if test x$gcc_no_link = xyes; then
  14836. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14837. fi
  14838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14839. /* end confdefs.h. */
  14840. /* Override any GCC internal prototype to avoid an error.
  14841. Use char because int might match the return type of a GCC
  14842. builtin and then its argument prototype would still apply. */
  14843. #ifdef __cplusplus
  14844. extern "C"
  14845. #endif
  14846. char sin ();
  14847. int
  14848. main ()
  14849. {
  14850. return sin ();
  14851. ;
  14852. return 0;
  14853. }
  14854. _ACEOF
  14855. if ac_fn_cxx_try_link "$LINENO"; then :
  14856. ac_cv_lib_m_sin=yes
  14857. else
  14858. ac_cv_lib_m_sin=no
  14859. fi
  14860. rm -f core conftest.err conftest.$ac_objext \
  14861. conftest$ac_exeext conftest.$ac_ext
  14862. LIBS=$ac_check_lib_save_LIBS
  14863. fi
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  14865. $as_echo "$ac_cv_lib_m_sin" >&6; }
  14866. if test "x$ac_cv_lib_m_sin" = xyes; then :
  14867. LIBS="$LIBS -lm"
  14868. else
  14869. # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
  14870. gcc_no_link=yes
  14871. fi
  14872. fi
  14873. # Check for the existence of <math.h> functions used if C99 is enabled.
  14874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <math.h> for C++98" >&5
  14875. $as_echo_n "checking for ISO C99 support in <math.h> for C++98... " >&6; }
  14876. if ${glibcxx_cv_c99_math_cxx98+:} false; then :
  14877. $as_echo_n "(cached) " >&6
  14878. else
  14879. if test x$gcc_no_link = xyes; then
  14880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14881. /* end confdefs.h. */
  14882. #include <math.h>
  14883. volatile double d1, d2;
  14884. volatile int i;
  14885. int
  14886. main ()
  14887. {
  14888. i = fpclassify(d1);
  14889. i = isfinite(d1);
  14890. i = isinf(d1);
  14891. i = isnan(d1);
  14892. i = isnormal(d1);
  14893. i = signbit(d1);
  14894. i = isgreater(d1, d2);
  14895. i = isgreaterequal(d1, d2);
  14896. i = isless(d1, d2);
  14897. i = islessequal(d1, d2);
  14898. i = islessgreater(d1, d2);
  14899. i = islessgreater(d1, d2);
  14900. i = isunordered(d1, d2);
  14901. ;
  14902. return 0;
  14903. }
  14904. _ACEOF
  14905. if ac_fn_cxx_try_compile "$LINENO"; then :
  14906. glibcxx_cv_c99_math_cxx98=yes
  14907. else
  14908. glibcxx_cv_c99_math_cxx98=no
  14909. fi
  14910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14911. else
  14912. if test x$gcc_no_link = xyes; then
  14913. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  14914. fi
  14915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14916. /* end confdefs.h. */
  14917. #include <math.h>
  14918. volatile double d1, d2;
  14919. volatile int i;
  14920. int
  14921. main ()
  14922. {
  14923. i = fpclassify(d1);
  14924. i = isfinite(d1);
  14925. i = isinf(d1);
  14926. i = isnan(d1);
  14927. i = isnormal(d1);
  14928. i = signbit(d1);
  14929. i = isgreater(d1, d2);
  14930. i = isgreaterequal(d1, d2);
  14931. i = isless(d1, d2);
  14932. i = islessequal(d1, d2);
  14933. i = islessgreater(d1, d2);
  14934. i = islessgreater(d1, d2);
  14935. i = isunordered(d1, d2);
  14936. ;
  14937. return 0;
  14938. }
  14939. _ACEOF
  14940. if ac_fn_cxx_try_link "$LINENO"; then :
  14941. glibcxx_cv_c99_math_cxx98=yes
  14942. else
  14943. glibcxx_cv_c99_math_cxx98=no
  14944. fi
  14945. rm -f core conftest.err conftest.$ac_objext \
  14946. conftest$ac_exeext conftest.$ac_ext
  14947. fi
  14948. fi
  14949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx98" >&5
  14950. $as_echo "$glibcxx_cv_c99_math_cxx98" >&6; }
  14951. if test x"$glibcxx_cv_c99_math_cxx98" = x"yes"; then
  14952. $as_echo "#define _GLIBCXX98_USE_C99_MATH 1" >>confdefs.h
  14953. fi
  14954. # Check for the existence of <complex.h> complex math functions.
  14955. # This is necessary even though libstdc++ uses the builtin versions
  14956. # of these functions, because if the builtin cannot be used, a reference
  14957. # to the library function is emitted.
  14958. for ac_header in tgmath.h
  14959. do :
  14960. ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
  14961. if test "x$ac_cv_header_tgmath_h" = xyes; then :
  14962. cat >>confdefs.h <<_ACEOF
  14963. #define HAVE_TGMATH_H 1
  14964. _ACEOF
  14965. ac_has_tgmath_h=yes
  14966. else
  14967. ac_has_tgmath_h=no
  14968. fi
  14969. done
  14970. for ac_header in complex.h
  14971. do :
  14972. ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
  14973. if test "x$ac_cv_header_complex_h" = xyes; then :
  14974. cat >>confdefs.h <<_ACEOF
  14975. #define HAVE_COMPLEX_H 1
  14976. _ACEOF
  14977. ac_has_complex_h=yes
  14978. else
  14979. ac_has_complex_h=no
  14980. fi
  14981. done
  14982. if test x"$ac_has_complex_h" = x"yes"; then
  14983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++98" >&5
  14984. $as_echo_n "checking for ISO C99 support in <complex.h> for C++98... " >&6; }
  14985. if ${glibcxx_cv_c99_complex_cxx98+:} false; then :
  14986. $as_echo_n "(cached) " >&6
  14987. else
  14988. if test x$gcc_no_link = xyes; then
  14989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14990. /* end confdefs.h. */
  14991. #include <complex.h>
  14992. typedef __complex__ float float_type;
  14993. typedef __complex__ double double_type;
  14994. typedef __complex__ long double ld_type;
  14995. volatile float_type tmpf;
  14996. volatile double_type tmpd;
  14997. volatile ld_type tmpld;
  14998. volatile float f;
  14999. volatile double d;
  15000. volatile long double ld;
  15001. int
  15002. main ()
  15003. {
  15004. f = cabsf(tmpf);
  15005. f = cargf(tmpf);
  15006. tmpf = ccosf(tmpf);
  15007. tmpf = ccoshf(tmpf);
  15008. tmpf = cexpf(tmpf);
  15009. tmpf = clogf(tmpf);
  15010. tmpf = csinf(tmpf);
  15011. tmpf = csinhf(tmpf);
  15012. tmpf = csqrtf(tmpf);
  15013. tmpf = ctanf(tmpf);
  15014. tmpf = ctanhf(tmpf);
  15015. tmpf = cpowf(tmpf, tmpf);
  15016. tmpf = cprojf(tmpf);
  15017. d = cabs(tmpd);
  15018. d = carg(tmpd);
  15019. tmpd = ccos(tmpd);
  15020. tmpd = ccosh(tmpd);
  15021. tmpd = cexp(tmpd);
  15022. tmpd = clog(tmpd);
  15023. tmpd = csin(tmpd);
  15024. tmpd = csinh(tmpd);
  15025. tmpd = csqrt(tmpd);
  15026. tmpd = ctan(tmpd);
  15027. tmpd = ctanh(tmpd);
  15028. tmpd = cpow(tmpd, tmpd);
  15029. tmpd = cproj(tmpd);
  15030. ld = cabsl(tmpld);
  15031. ld = cargl(tmpld);
  15032. tmpld = ccosl(tmpld);
  15033. tmpld = ccoshl(tmpld);
  15034. tmpld = cexpl(tmpld);
  15035. tmpld = clogl(tmpld);
  15036. tmpld = csinl(tmpld);
  15037. tmpld = csinhl(tmpld);
  15038. tmpld = csqrtl(tmpld);
  15039. tmpld = ctanl(tmpld);
  15040. tmpld = ctanhl(tmpld);
  15041. tmpld = cpowl(tmpld, tmpld);
  15042. tmpld = cprojl(tmpld);
  15043. ;
  15044. return 0;
  15045. }
  15046. _ACEOF
  15047. if ac_fn_cxx_try_compile "$LINENO"; then :
  15048. glibcxx_cv_c99_complex_cxx98=yes
  15049. else
  15050. glibcxx_cv_c99_complex_cxx98=no
  15051. fi
  15052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15053. else
  15054. if test x$gcc_no_link = xyes; then
  15055. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15056. fi
  15057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15058. /* end confdefs.h. */
  15059. #include <complex.h>
  15060. typedef __complex__ float float_type;
  15061. typedef __complex__ double double_type;
  15062. typedef __complex__ long double ld_type;
  15063. volatile float_type tmpf;
  15064. volatile double_type tmpd;
  15065. volatile ld_type tmpld;
  15066. volatile float f;
  15067. volatile double d;
  15068. volatile long double ld;
  15069. int
  15070. main ()
  15071. {
  15072. f = cabsf(tmpf);
  15073. f = cargf(tmpf);
  15074. tmpf = ccosf(tmpf);
  15075. tmpf = ccoshf(tmpf);
  15076. tmpf = cexpf(tmpf);
  15077. tmpf = clogf(tmpf);
  15078. tmpf = csinf(tmpf);
  15079. tmpf = csinhf(tmpf);
  15080. tmpf = csqrtf(tmpf);
  15081. tmpf = ctanf(tmpf);
  15082. tmpf = ctanhf(tmpf);
  15083. tmpf = cpowf(tmpf, tmpf);
  15084. tmpf = cprojf(tmpf);
  15085. d = cabs(tmpd);
  15086. d = carg(tmpd);
  15087. tmpd = ccos(tmpd);
  15088. tmpd = ccosh(tmpd);
  15089. tmpd = cexp(tmpd);
  15090. tmpd = clog(tmpd);
  15091. tmpd = csin(tmpd);
  15092. tmpd = csinh(tmpd);
  15093. tmpd = csqrt(tmpd);
  15094. tmpd = ctan(tmpd);
  15095. tmpd = ctanh(tmpd);
  15096. tmpd = cpow(tmpd, tmpd);
  15097. tmpd = cproj(tmpd);
  15098. ld = cabsl(tmpld);
  15099. ld = cargl(tmpld);
  15100. tmpld = ccosl(tmpld);
  15101. tmpld = ccoshl(tmpld);
  15102. tmpld = cexpl(tmpld);
  15103. tmpld = clogl(tmpld);
  15104. tmpld = csinl(tmpld);
  15105. tmpld = csinhl(tmpld);
  15106. tmpld = csqrtl(tmpld);
  15107. tmpld = ctanl(tmpld);
  15108. tmpld = ctanhl(tmpld);
  15109. tmpld = cpowl(tmpld, tmpld);
  15110. tmpld = cprojl(tmpld);
  15111. ;
  15112. return 0;
  15113. }
  15114. _ACEOF
  15115. if ac_fn_cxx_try_link "$LINENO"; then :
  15116. glibcxx_cv_c99_complex_cxx98=yes
  15117. else
  15118. glibcxx_cv_c99_complex_cxx98=no
  15119. fi
  15120. rm -f core conftest.err conftest.$ac_objext \
  15121. conftest$ac_exeext conftest.$ac_ext
  15122. fi
  15123. fi
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx98" >&5
  15125. $as_echo "$glibcxx_cv_c99_complex_cxx98" >&6; }
  15126. fi
  15127. if test x"$glibcxx_cv_c99_complex_cxx98" = x"yes"; then
  15128. $as_echo "#define _GLIBCXX98_USE_C99_COMPLEX 1" >>confdefs.h
  15129. fi
  15130. # Check for the existence in <stdio.h> of vscanf, et. al.
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++98" >&5
  15132. $as_echo_n "checking for ISO C99 support in <stdio.h> for C++98... " >&6; }
  15133. if ${glibcxx_cv_c99_stdio_cxx98+:} false; then :
  15134. $as_echo_n "(cached) " >&6
  15135. else
  15136. if test x$gcc_no_link = xyes; then
  15137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15138. /* end confdefs.h. */
  15139. #include <stdio.h>
  15140. #include <stdarg.h>
  15141. void foo(char* fmt, ...)
  15142. {
  15143. va_list args; va_start(args, fmt);
  15144. vfscanf(stderr, "%i", args);
  15145. vscanf("%i", args);
  15146. vsnprintf(fmt, 0, "%i", args);
  15147. vsscanf(fmt, "%i", args);
  15148. snprintf(fmt, 0, "%i");
  15149. }
  15150. int
  15151. main ()
  15152. {
  15153. ;
  15154. return 0;
  15155. }
  15156. _ACEOF
  15157. if ac_fn_cxx_try_compile "$LINENO"; then :
  15158. glibcxx_cv_c99_stdio_cxx98=yes
  15159. else
  15160. glibcxx_cv_c99_stdio_cxx98=no
  15161. fi
  15162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15163. else
  15164. if test x$gcc_no_link = xyes; then
  15165. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15166. fi
  15167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15168. /* end confdefs.h. */
  15169. #include <stdio.h>
  15170. #include <stdarg.h>
  15171. void foo(char* fmt, ...)
  15172. {
  15173. va_list args; va_start(args, fmt);
  15174. vfscanf(stderr, "%i", args);
  15175. vscanf("%i", args);
  15176. vsnprintf(fmt, 0, "%i", args);
  15177. vsscanf(fmt, "%i", args);
  15178. snprintf(fmt, 0, "%i");
  15179. }
  15180. int
  15181. main ()
  15182. {
  15183. ;
  15184. return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_cxx_try_link "$LINENO"; then :
  15188. glibcxx_cv_c99_stdio_cxx98=yes
  15189. else
  15190. glibcxx_cv_c99_stdio_cxx98=no
  15191. fi
  15192. rm -f core conftest.err conftest.$ac_objext \
  15193. conftest$ac_exeext conftest.$ac_ext
  15194. fi
  15195. fi
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx98" >&5
  15197. $as_echo "$glibcxx_cv_c99_stdio_cxx98" >&6; }
  15198. if test x"$glibcxx_cv_c99_stdio_cxx98" = x"yes"; then
  15199. $as_echo "#define _GLIBCXX98_USE_C99_STDIO 1" >>confdefs.h
  15200. fi
  15201. # Check for the existence in <stdlib.h> of lldiv_t, et. al.
  15202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++98" >&5
  15203. $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++98... " >&6; }
  15204. if ${glibcxx_cv_c99_stdlib_cxx98+:} false; then :
  15205. $as_echo_n "(cached) " >&6
  15206. else
  15207. if test x$gcc_no_link = xyes; then
  15208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15209. /* end confdefs.h. */
  15210. #include <stdlib.h>
  15211. volatile float f;
  15212. volatile long double ld;
  15213. volatile unsigned long long ll;
  15214. lldiv_t mydivt;
  15215. int
  15216. main ()
  15217. {
  15218. char* tmp;
  15219. f = strtof("gnu", &tmp);
  15220. ld = strtold("gnu", &tmp);
  15221. ll = strtoll("gnu", &tmp, 10);
  15222. ll = strtoull("gnu", &tmp, 10);
  15223. ll = llabs(10);
  15224. mydivt = lldiv(10,1);
  15225. ll = mydivt.quot;
  15226. ll = mydivt.rem;
  15227. ll = atoll("10");
  15228. _Exit(0);
  15229. ;
  15230. return 0;
  15231. }
  15232. _ACEOF
  15233. if ac_fn_cxx_try_compile "$LINENO"; then :
  15234. glibcxx_cv_c99_stdlib_cxx98=yes
  15235. else
  15236. glibcxx_cv_c99_stdlib_cxx98=no
  15237. fi
  15238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15239. else
  15240. if test x$gcc_no_link = xyes; then
  15241. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15242. fi
  15243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15244. /* end confdefs.h. */
  15245. #include <stdlib.h>
  15246. volatile float f;
  15247. volatile long double ld;
  15248. volatile unsigned long long ll;
  15249. lldiv_t mydivt;
  15250. int
  15251. main ()
  15252. {
  15253. char* tmp;
  15254. f = strtof("gnu", &tmp);
  15255. ld = strtold("gnu", &tmp);
  15256. ll = strtoll("gnu", &tmp, 10);
  15257. ll = strtoull("gnu", &tmp, 10);
  15258. ll = llabs(10);
  15259. mydivt = lldiv(10,1);
  15260. ll = mydivt.quot;
  15261. ll = mydivt.rem;
  15262. ll = atoll("10");
  15263. _Exit(0);
  15264. ;
  15265. return 0;
  15266. }
  15267. _ACEOF
  15268. if ac_fn_cxx_try_link "$LINENO"; then :
  15269. glibcxx_cv_c99_stdlib_cxx98=yes
  15270. else
  15271. glibcxx_cv_c99_stdlib_cxx98=no
  15272. fi
  15273. rm -f core conftest.err conftest.$ac_objext \
  15274. conftest$ac_exeext conftest.$ac_ext
  15275. fi
  15276. fi
  15277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx98" >&5
  15278. $as_echo "$glibcxx_cv_c99_stdlib_cxx98" >&6; }
  15279. if test x"$glibcxx_cv_c99_stdlib_cxx98" = x"yes"; then
  15280. $as_echo "#define _GLIBCXX98_USE_C99_STDLIB 1" >>confdefs.h
  15281. fi
  15282. # Check for the existence in <wchar.h> of wcstold, etc.
  15283. if test x"$ac_has_wchar_h" = xyes &&
  15284. test x"$ac_has_wctype_h" = xyes; then
  15285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++98" >&5
  15286. $as_echo_n "checking for ISO C99 support in <wchar.h> for C++98... " >&6; }
  15287. if ${glibcxx_cv_c99_wchar_cxx98+:} false; then :
  15288. $as_echo_n "(cached) " >&6
  15289. else
  15290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15291. /* end confdefs.h. */
  15292. #include <wchar.h>
  15293. namespace test
  15294. {
  15295. using ::wcstold;
  15296. using ::wcstoll;
  15297. using ::wcstoull;
  15298. }
  15299. int
  15300. main ()
  15301. {
  15302. ;
  15303. return 0;
  15304. }
  15305. _ACEOF
  15306. if ac_fn_cxx_try_compile "$LINENO"; then :
  15307. glibcxx_cv_c99_wchar_cxx98=yes
  15308. else
  15309. glibcxx_cv_c99_wchar_cxx98=no
  15310. fi
  15311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15312. fi
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx98" >&5
  15314. $as_echo "$glibcxx_cv_c99_wchar_cxx98" >&6; }
  15315. # Checks for wide character functions that may not be present.
  15316. # Injection of these is wrapped with guard macros.
  15317. # NB: only put functions here, instead of immediately above, if
  15318. # absolutely necessary.
  15319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15320. /* end confdefs.h. */
  15321. #include <wchar.h>
  15322. namespace test { using ::vfwscanf; }
  15323. int
  15324. main ()
  15325. {
  15326. ;
  15327. return 0;
  15328. }
  15329. _ACEOF
  15330. if ac_fn_cxx_try_compile "$LINENO"; then :
  15331. $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
  15332. fi
  15333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15335. /* end confdefs.h. */
  15336. #include <wchar.h>
  15337. namespace test { using ::vswscanf; }
  15338. int
  15339. main ()
  15340. {
  15341. ;
  15342. return 0;
  15343. }
  15344. _ACEOF
  15345. if ac_fn_cxx_try_compile "$LINENO"; then :
  15346. $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
  15347. fi
  15348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15350. /* end confdefs.h. */
  15351. #include <wchar.h>
  15352. namespace test { using ::vwscanf; }
  15353. int
  15354. main ()
  15355. {
  15356. ;
  15357. return 0;
  15358. }
  15359. _ACEOF
  15360. if ac_fn_cxx_try_compile "$LINENO"; then :
  15361. $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
  15362. fi
  15363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15365. /* end confdefs.h. */
  15366. #include <wchar.h>
  15367. namespace test { using ::wcstof; }
  15368. int
  15369. main ()
  15370. {
  15371. ;
  15372. return 0;
  15373. }
  15374. _ACEOF
  15375. if ac_fn_cxx_try_compile "$LINENO"; then :
  15376. $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
  15377. fi
  15378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15380. /* end confdefs.h. */
  15381. #include <wctype.h>
  15382. int
  15383. main ()
  15384. {
  15385. wint_t t; int i = iswblank(t);
  15386. ;
  15387. return 0;
  15388. }
  15389. _ACEOF
  15390. if ac_fn_cxx_try_compile "$LINENO"; then :
  15391. $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
  15392. fi
  15393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15394. if test x"$glibcxx_cv_c99_wchar_cxx98" = x"yes"; then
  15395. $as_echo "#define _GLIBCXX98_USE_C99_WCHAR 1" >>confdefs.h
  15396. fi
  15397. fi
  15398. # Option parsed, now set things appropriately.
  15399. if test x"$glibcxx_cv_c99_math_cxx98" = x"no" ||
  15400. test x"$glibcxx_cv_c99_complex_cxx98" = x"no" ||
  15401. test x"$glibcxx_cv_c99_stdio_cxx98" = x"no" ||
  15402. test x"$glibcxx_cv_c99_stdlib_cxx98" = x"no" ||
  15403. test x"$glibcxx_cv_c99_wchar_cxx98" = x"no"; then
  15404. enable_c99=no;
  15405. else
  15406. $as_echo "#define _GLIBCXX_USE_C99 1" >>confdefs.h
  15407. fi
  15408. gcc_no_link="$ac_save_gcc_no_link"
  15409. LIBS="$ac_save_LIBS"
  15410. CXXFLAGS="$ac_save_CXXFLAGS"
  15411. ac_ext=c
  15412. ac_cpp='$CPP $CPPFLAGS'
  15413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15416. ac_ext=cpp
  15417. ac_cpp='$CXXCPP $CPPFLAGS'
  15418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15421. # Use -std=c++11 and test again for C99 library feature in C++11 mode.
  15422. # For the reasons given above we use -std=c++11 not -std=gnu++11.
  15423. ac_save_CXXFLAGS="$CXXFLAGS"
  15424. CXXFLAGS="$CXXFLAGS -std=c++11"
  15425. ac_save_LIBS="$LIBS"
  15426. ac_save_gcc_no_link="$gcc_no_link"
  15427. if test x$gcc_no_link != xyes; then
  15428. # Use -fno-exceptions to that the C driver can link these tests without
  15429. # hitting undefined references to personality routines.
  15430. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  15432. $as_echo_n "checking for sin in -lm... " >&6; }
  15433. if ${ac_cv_lib_m_sin+:} false; then :
  15434. $as_echo_n "(cached) " >&6
  15435. else
  15436. ac_check_lib_save_LIBS=$LIBS
  15437. LIBS="-lm $LIBS"
  15438. if test x$gcc_no_link = xyes; then
  15439. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15440. fi
  15441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15442. /* end confdefs.h. */
  15443. /* Override any GCC internal prototype to avoid an error.
  15444. Use char because int might match the return type of a GCC
  15445. builtin and then its argument prototype would still apply. */
  15446. #ifdef __cplusplus
  15447. extern "C"
  15448. #endif
  15449. char sin ();
  15450. int
  15451. main ()
  15452. {
  15453. return sin ();
  15454. ;
  15455. return 0;
  15456. }
  15457. _ACEOF
  15458. if ac_fn_cxx_try_link "$LINENO"; then :
  15459. ac_cv_lib_m_sin=yes
  15460. else
  15461. ac_cv_lib_m_sin=no
  15462. fi
  15463. rm -f core conftest.err conftest.$ac_objext \
  15464. conftest$ac_exeext conftest.$ac_ext
  15465. LIBS=$ac_check_lib_save_LIBS
  15466. fi
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  15468. $as_echo "$ac_cv_lib_m_sin" >&6; }
  15469. if test "x$ac_cv_lib_m_sin" = xyes; then :
  15470. LIBS="$LIBS -lm"
  15471. else
  15472. # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
  15473. gcc_no_link=yes
  15474. fi
  15475. fi
  15476. # Check for the existence of <math.h> functions used if C99 is enabled.
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <math.h> for C++11" >&5
  15478. $as_echo_n "checking for ISO C99 support in <math.h> for C++11... " >&6; }
  15479. if ${glibcxx_cv_c99_math_cxx11+:} false; then :
  15480. $as_echo_n "(cached) " >&6
  15481. else
  15482. if test x$gcc_no_link = xyes; then
  15483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15484. /* end confdefs.h. */
  15485. #include <math.h>
  15486. volatile double d1, d2;
  15487. volatile int i;
  15488. int
  15489. main ()
  15490. {
  15491. i = fpclassify(d1);
  15492. i = isfinite(d1);
  15493. i = isinf(d1);
  15494. i = isnan(d1);
  15495. i = isnormal(d1);
  15496. i = signbit(d1);
  15497. i = isgreater(d1, d2);
  15498. i = isgreaterequal(d1, d2);
  15499. i = isless(d1, d2);
  15500. i = islessequal(d1, d2);
  15501. i = islessgreater(d1, d2);
  15502. i = islessgreater(d1, d2);
  15503. i = isunordered(d1, d2);
  15504. ;
  15505. return 0;
  15506. }
  15507. _ACEOF
  15508. if ac_fn_cxx_try_compile "$LINENO"; then :
  15509. glibcxx_cv_c99_math_cxx11=yes
  15510. else
  15511. glibcxx_cv_c99_math_cxx11=no
  15512. fi
  15513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15514. else
  15515. if test x$gcc_no_link = xyes; then
  15516. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15517. fi
  15518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15519. /* end confdefs.h. */
  15520. #include <math.h>
  15521. volatile double d1, d2;
  15522. volatile int i;
  15523. int
  15524. main ()
  15525. {
  15526. i = fpclassify(d1);
  15527. i = isfinite(d1);
  15528. i = isinf(d1);
  15529. i = isnan(d1);
  15530. i = isnormal(d1);
  15531. i = signbit(d1);
  15532. i = isgreater(d1, d2);
  15533. i = isgreaterequal(d1, d2);
  15534. i = isless(d1, d2);
  15535. i = islessequal(d1, d2);
  15536. i = islessgreater(d1, d2);
  15537. i = islessgreater(d1, d2);
  15538. i = isunordered(d1, d2);
  15539. ;
  15540. return 0;
  15541. }
  15542. _ACEOF
  15543. if ac_fn_cxx_try_link "$LINENO"; then :
  15544. glibcxx_cv_c99_math_cxx11=yes
  15545. else
  15546. glibcxx_cv_c99_math_cxx11=no
  15547. fi
  15548. rm -f core conftest.err conftest.$ac_objext \
  15549. conftest$ac_exeext conftest.$ac_ext
  15550. fi
  15551. fi
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx11" >&5
  15553. $as_echo "$glibcxx_cv_c99_math_cxx11" >&6; }
  15554. if test x"$glibcxx_cv_c99_math_cxx11" = x"yes"; then
  15555. $as_echo "#define _GLIBCXX11_USE_C99_MATH 1" >>confdefs.h
  15556. fi
  15557. # Check for the existence of <complex.h> complex math functions.
  15558. # This is necessary even though libstdc++ uses the builtin versions
  15559. # of these functions, because if the builtin cannot be used, a reference
  15560. # to the library function is emitted.
  15561. for ac_header in tgmath.h
  15562. do :
  15563. ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
  15564. if test "x$ac_cv_header_tgmath_h" = xyes; then :
  15565. cat >>confdefs.h <<_ACEOF
  15566. #define HAVE_TGMATH_H 1
  15567. _ACEOF
  15568. ac_has_tgmath_h=yes
  15569. else
  15570. ac_has_tgmath_h=no
  15571. fi
  15572. done
  15573. for ac_header in complex.h
  15574. do :
  15575. ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
  15576. if test "x$ac_cv_header_complex_h" = xyes; then :
  15577. cat >>confdefs.h <<_ACEOF
  15578. #define HAVE_COMPLEX_H 1
  15579. _ACEOF
  15580. ac_has_complex_h=yes
  15581. else
  15582. ac_has_complex_h=no
  15583. fi
  15584. done
  15585. if test x"$ac_has_complex_h" = x"yes"; then
  15586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++11" >&5
  15587. $as_echo_n "checking for ISO C99 support in <complex.h> for C++11... " >&6; }
  15588. if ${glibcxx_cv_c99_complex_cxx11+:} false; then :
  15589. $as_echo_n "(cached) " >&6
  15590. else
  15591. if test x$gcc_no_link = xyes; then
  15592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15593. /* end confdefs.h. */
  15594. #include <complex.h>
  15595. typedef __complex__ float float_type;
  15596. typedef __complex__ double double_type;
  15597. typedef __complex__ long double ld_type;
  15598. volatile float_type tmpf;
  15599. volatile double_type tmpd;
  15600. volatile ld_type tmpld;
  15601. volatile float f;
  15602. volatile double d;
  15603. volatile long double ld;
  15604. int
  15605. main ()
  15606. {
  15607. f = cabsf(tmpf);
  15608. f = cargf(tmpf);
  15609. tmpf = ccosf(tmpf);
  15610. tmpf = ccoshf(tmpf);
  15611. tmpf = cexpf(tmpf);
  15612. tmpf = clogf(tmpf);
  15613. tmpf = csinf(tmpf);
  15614. tmpf = csinhf(tmpf);
  15615. tmpf = csqrtf(tmpf);
  15616. tmpf = ctanf(tmpf);
  15617. tmpf = ctanhf(tmpf);
  15618. tmpf = cpowf(tmpf, tmpf);
  15619. tmpf = cprojf(tmpf);
  15620. d = cabs(tmpd);
  15621. d = carg(tmpd);
  15622. tmpd = ccos(tmpd);
  15623. tmpd = ccosh(tmpd);
  15624. tmpd = cexp(tmpd);
  15625. tmpd = clog(tmpd);
  15626. tmpd = csin(tmpd);
  15627. tmpd = csinh(tmpd);
  15628. tmpd = csqrt(tmpd);
  15629. tmpd = ctan(tmpd);
  15630. tmpd = ctanh(tmpd);
  15631. tmpd = cpow(tmpd, tmpd);
  15632. tmpd = cproj(tmpd);
  15633. ld = cabsl(tmpld);
  15634. ld = cargl(tmpld);
  15635. tmpld = ccosl(tmpld);
  15636. tmpld = ccoshl(tmpld);
  15637. tmpld = cexpl(tmpld);
  15638. tmpld = clogl(tmpld);
  15639. tmpld = csinl(tmpld);
  15640. tmpld = csinhl(tmpld);
  15641. tmpld = csqrtl(tmpld);
  15642. tmpld = ctanl(tmpld);
  15643. tmpld = ctanhl(tmpld);
  15644. tmpld = cpowl(tmpld, tmpld);
  15645. tmpld = cprojl(tmpld);
  15646. ;
  15647. return 0;
  15648. }
  15649. _ACEOF
  15650. if ac_fn_cxx_try_compile "$LINENO"; then :
  15651. glibcxx_cv_c99_complex_cxx11=yes
  15652. else
  15653. glibcxx_cv_c99_complex_cxx11=no
  15654. fi
  15655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15656. else
  15657. if test x$gcc_no_link = xyes; then
  15658. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15659. fi
  15660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15661. /* end confdefs.h. */
  15662. #include <complex.h>
  15663. typedef __complex__ float float_type;
  15664. typedef __complex__ double double_type;
  15665. typedef __complex__ long double ld_type;
  15666. volatile float_type tmpf;
  15667. volatile double_type tmpd;
  15668. volatile ld_type tmpld;
  15669. volatile float f;
  15670. volatile double d;
  15671. volatile long double ld;
  15672. int
  15673. main ()
  15674. {
  15675. f = cabsf(tmpf);
  15676. f = cargf(tmpf);
  15677. tmpf = ccosf(tmpf);
  15678. tmpf = ccoshf(tmpf);
  15679. tmpf = cexpf(tmpf);
  15680. tmpf = clogf(tmpf);
  15681. tmpf = csinf(tmpf);
  15682. tmpf = csinhf(tmpf);
  15683. tmpf = csqrtf(tmpf);
  15684. tmpf = ctanf(tmpf);
  15685. tmpf = ctanhf(tmpf);
  15686. tmpf = cpowf(tmpf, tmpf);
  15687. tmpf = cprojf(tmpf);
  15688. d = cabs(tmpd);
  15689. d = carg(tmpd);
  15690. tmpd = ccos(tmpd);
  15691. tmpd = ccosh(tmpd);
  15692. tmpd = cexp(tmpd);
  15693. tmpd = clog(tmpd);
  15694. tmpd = csin(tmpd);
  15695. tmpd = csinh(tmpd);
  15696. tmpd = csqrt(tmpd);
  15697. tmpd = ctan(tmpd);
  15698. tmpd = ctanh(tmpd);
  15699. tmpd = cpow(tmpd, tmpd);
  15700. tmpd = cproj(tmpd);
  15701. ld = cabsl(tmpld);
  15702. ld = cargl(tmpld);
  15703. tmpld = ccosl(tmpld);
  15704. tmpld = ccoshl(tmpld);
  15705. tmpld = cexpl(tmpld);
  15706. tmpld = clogl(tmpld);
  15707. tmpld = csinl(tmpld);
  15708. tmpld = csinhl(tmpld);
  15709. tmpld = csqrtl(tmpld);
  15710. tmpld = ctanl(tmpld);
  15711. tmpld = ctanhl(tmpld);
  15712. tmpld = cpowl(tmpld, tmpld);
  15713. tmpld = cprojl(tmpld);
  15714. ;
  15715. return 0;
  15716. }
  15717. _ACEOF
  15718. if ac_fn_cxx_try_link "$LINENO"; then :
  15719. glibcxx_cv_c99_complex_cxx11=yes
  15720. else
  15721. glibcxx_cv_c99_complex_cxx11=no
  15722. fi
  15723. rm -f core conftest.err conftest.$ac_objext \
  15724. conftest$ac_exeext conftest.$ac_ext
  15725. fi
  15726. fi
  15727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx11" >&5
  15728. $as_echo "$glibcxx_cv_c99_complex_cxx11" >&6; }
  15729. fi
  15730. if test x"$glibcxx_cv_c99_complex_cxx11" = x"yes"; then
  15731. $as_echo "#define _GLIBCXX11_USE_C99_COMPLEX 1" >>confdefs.h
  15732. fi
  15733. # Check for the existence in <stdio.h> of vscanf, et. al.
  15734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++11" >&5
  15735. $as_echo_n "checking for ISO C99 support in <stdio.h> for C++11... " >&6; }
  15736. if ${glibcxx_cv_c99_stdio_cxx11+:} false; then :
  15737. $as_echo_n "(cached) " >&6
  15738. else
  15739. if test x$gcc_no_link = xyes; then
  15740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15741. /* end confdefs.h. */
  15742. #include <stdio.h>
  15743. #include <stdarg.h>
  15744. void foo(char* fmt, ...)
  15745. {
  15746. va_list args; va_start(args, fmt);
  15747. vfscanf(stderr, "%i", args);
  15748. vscanf("%i", args);
  15749. vsnprintf(fmt, 0, "%i", args);
  15750. vsscanf(fmt, "%i", args);
  15751. snprintf(fmt, 0, "%i");
  15752. }
  15753. int
  15754. main ()
  15755. {
  15756. ;
  15757. return 0;
  15758. }
  15759. _ACEOF
  15760. if ac_fn_cxx_try_compile "$LINENO"; then :
  15761. glibcxx_cv_c99_stdio_cxx11=yes
  15762. else
  15763. glibcxx_cv_c99_stdio_cxx11=no
  15764. fi
  15765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15766. else
  15767. if test x$gcc_no_link = xyes; then
  15768. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15769. fi
  15770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15771. /* end confdefs.h. */
  15772. #include <stdio.h>
  15773. #include <stdarg.h>
  15774. void foo(char* fmt, ...)
  15775. {
  15776. va_list args; va_start(args, fmt);
  15777. vfscanf(stderr, "%i", args);
  15778. vscanf("%i", args);
  15779. vsnprintf(fmt, 0, "%i", args);
  15780. vsscanf(fmt, "%i", args);
  15781. snprintf(fmt, 0, "%i");
  15782. }
  15783. int
  15784. main ()
  15785. {
  15786. ;
  15787. return 0;
  15788. }
  15789. _ACEOF
  15790. if ac_fn_cxx_try_link "$LINENO"; then :
  15791. glibcxx_cv_c99_stdio_cxx11=yes
  15792. else
  15793. glibcxx_cv_c99_stdio_cxx11=no
  15794. fi
  15795. rm -f core conftest.err conftest.$ac_objext \
  15796. conftest$ac_exeext conftest.$ac_ext
  15797. fi
  15798. fi
  15799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx11" >&5
  15800. $as_echo "$glibcxx_cv_c99_stdio_cxx11" >&6; }
  15801. if test x"$glibcxx_cv_c99_stdio_cxx11" = x"yes"; then
  15802. $as_echo "#define _GLIBCXX11_USE_C99_STDIO 1" >>confdefs.h
  15803. fi
  15804. # Check for the existence in <stdlib.h> of lldiv_t, et. al.
  15805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++11" >&5
  15806. $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++11... " >&6; }
  15807. if ${glibcxx_cv_c99_stdlib_cxx11+:} false; then :
  15808. $as_echo_n "(cached) " >&6
  15809. else
  15810. if test x$gcc_no_link = xyes; then
  15811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15812. /* end confdefs.h. */
  15813. #include <stdlib.h>
  15814. volatile float f;
  15815. volatile long double ld;
  15816. volatile unsigned long long ll;
  15817. lldiv_t mydivt;
  15818. int
  15819. main ()
  15820. {
  15821. char* tmp;
  15822. f = strtof("gnu", &tmp);
  15823. ld = strtold("gnu", &tmp);
  15824. ll = strtoll("gnu", &tmp, 10);
  15825. ll = strtoull("gnu", &tmp, 10);
  15826. ll = llabs(10);
  15827. mydivt = lldiv(10,1);
  15828. ll = mydivt.quot;
  15829. ll = mydivt.rem;
  15830. ll = atoll("10");
  15831. _Exit(0);
  15832. ;
  15833. return 0;
  15834. }
  15835. _ACEOF
  15836. if ac_fn_cxx_try_compile "$LINENO"; then :
  15837. glibcxx_cv_c99_stdlib_cxx11=yes
  15838. else
  15839. glibcxx_cv_c99_stdlib_cxx11=no
  15840. fi
  15841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15842. else
  15843. if test x$gcc_no_link = xyes; then
  15844. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  15845. fi
  15846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15847. /* end confdefs.h. */
  15848. #include <stdlib.h>
  15849. volatile float f;
  15850. volatile long double ld;
  15851. volatile unsigned long long ll;
  15852. lldiv_t mydivt;
  15853. int
  15854. main ()
  15855. {
  15856. char* tmp;
  15857. f = strtof("gnu", &tmp);
  15858. ld = strtold("gnu", &tmp);
  15859. ll = strtoll("gnu", &tmp, 10);
  15860. ll = strtoull("gnu", &tmp, 10);
  15861. ll = llabs(10);
  15862. mydivt = lldiv(10,1);
  15863. ll = mydivt.quot;
  15864. ll = mydivt.rem;
  15865. ll = atoll("10");
  15866. _Exit(0);
  15867. ;
  15868. return 0;
  15869. }
  15870. _ACEOF
  15871. if ac_fn_cxx_try_link "$LINENO"; then :
  15872. glibcxx_cv_c99_stdlib_cxx11=yes
  15873. else
  15874. glibcxx_cv_c99_stdlib_cxx11=no
  15875. fi
  15876. rm -f core conftest.err conftest.$ac_objext \
  15877. conftest$ac_exeext conftest.$ac_ext
  15878. fi
  15879. fi
  15880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx11" >&5
  15881. $as_echo "$glibcxx_cv_c99_stdlib_cxx11" >&6; }
  15882. if test x"$glibcxx_cv_c99_stdlib_cxx11" = x"yes"; then
  15883. $as_echo "#define _GLIBCXX11_USE_C99_STDLIB 1" >>confdefs.h
  15884. fi
  15885. # Check for the existence in <wchar.h> of wcstold, etc.
  15886. if test x"$ac_has_wchar_h" = xyes &&
  15887. test x"$ac_has_wctype_h" = xyes; then
  15888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++11" >&5
  15889. $as_echo_n "checking for ISO C99 support in <wchar.h> for C++11... " >&6; }
  15890. if ${glibcxx_cv_c99_wchar_cxx11+:} false; then :
  15891. $as_echo_n "(cached) " >&6
  15892. else
  15893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15894. /* end confdefs.h. */
  15895. #include <wchar.h>
  15896. namespace test
  15897. {
  15898. using ::wcstold;
  15899. using ::wcstoll;
  15900. using ::wcstoull;
  15901. }
  15902. int
  15903. main ()
  15904. {
  15905. ;
  15906. return 0;
  15907. }
  15908. _ACEOF
  15909. if ac_fn_cxx_try_compile "$LINENO"; then :
  15910. glibcxx_cv_c99_wchar_cxx11=yes
  15911. else
  15912. glibcxx_cv_c99_wchar_cxx11=no
  15913. fi
  15914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15915. fi
  15916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx11" >&5
  15917. $as_echo "$glibcxx_cv_c99_wchar_cxx11" >&6; }
  15918. # Checks for wide character functions that may not be present.
  15919. # Injection of these is wrapped with guard macros.
  15920. # NB: only put functions here, instead of immediately above, if
  15921. # absolutely necessary.
  15922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15923. /* end confdefs.h. */
  15924. #include <wchar.h>
  15925. namespace test { using ::vfwscanf; }
  15926. int
  15927. main ()
  15928. {
  15929. ;
  15930. return 0;
  15931. }
  15932. _ACEOF
  15933. if ac_fn_cxx_try_compile "$LINENO"; then :
  15934. $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
  15935. fi
  15936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15938. /* end confdefs.h. */
  15939. #include <wchar.h>
  15940. namespace test { using ::vswscanf; }
  15941. int
  15942. main ()
  15943. {
  15944. ;
  15945. return 0;
  15946. }
  15947. _ACEOF
  15948. if ac_fn_cxx_try_compile "$LINENO"; then :
  15949. $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
  15950. fi
  15951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15953. /* end confdefs.h. */
  15954. #include <wchar.h>
  15955. namespace test { using ::vwscanf; }
  15956. int
  15957. main ()
  15958. {
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. if ac_fn_cxx_try_compile "$LINENO"; then :
  15964. $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
  15965. fi
  15966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15968. /* end confdefs.h. */
  15969. #include <wchar.h>
  15970. namespace test { using ::wcstof; }
  15971. int
  15972. main ()
  15973. {
  15974. ;
  15975. return 0;
  15976. }
  15977. _ACEOF
  15978. if ac_fn_cxx_try_compile "$LINENO"; then :
  15979. $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
  15980. fi
  15981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15983. /* end confdefs.h. */
  15984. #include <wctype.h>
  15985. int
  15986. main ()
  15987. {
  15988. wint_t t; int i = iswblank(t);
  15989. ;
  15990. return 0;
  15991. }
  15992. _ACEOF
  15993. if ac_fn_cxx_try_compile "$LINENO"; then :
  15994. $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15997. if test x"$glibcxx_cv_c99_wchar_cxx11" = x"yes"; then
  15998. $as_echo "#define _GLIBCXX11_USE_C99_WCHAR 1" >>confdefs.h
  15999. fi
  16000. fi
  16001. gcc_no_link="$ac_save_gcc_no_link"
  16002. LIBS="$ac_save_LIBS"
  16003. CXXFLAGS="$ac_save_CXXFLAGS"
  16004. ac_ext=c
  16005. ac_cpp='$CPP $CPPFLAGS'
  16006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16009. fi
  16010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fully enabled ISO C99 support" >&5
  16011. $as_echo_n "checking for fully enabled ISO C99 support... " >&6; }
  16012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_c99" >&5
  16013. $as_echo "$enable_c99" >&6; }
  16014. # Check whether --enable-concept-checks was given.
  16015. if test "${enable_concept_checks+set}" = set; then :
  16016. enableval=$enable_concept_checks;
  16017. case "$enableval" in
  16018. yes|no) ;;
  16019. *) as_fn_error $? "Argument to enable/disable concept-checks must be yes or no" "$LINENO" 5 ;;
  16020. esac
  16021. else
  16022. enable_concept_checks=no
  16023. fi
  16024. if test $enable_concept_checks = yes; then
  16025. $as_echo "#define _GLIBCXX_CONCEPT_CHECKS 1" >>confdefs.h
  16026. fi
  16027. # Check whether --enable-libstdcxx-debug-flags was given.
  16028. if test "${enable_libstdcxx_debug_flags+set}" = set; then :
  16029. enableval=$enable_libstdcxx_debug_flags; case "x$enable_libstdcxx_debug_flags" in
  16030. xno | x) enable_libstdcxx_debug_flags= ;;
  16031. x-*) ;;
  16032. *) as_fn_error $? "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;;
  16033. esac
  16034. else
  16035. enable_libstdcxx_debug_flags="-g3 -O0 -D_GLIBCXX_ASSERTIONS"
  16036. fi
  16037. # Option parsed, now set things appropriately
  16038. DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: Debug build flags set to $DEBUG_FLAGS" >&5
  16040. $as_echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional debug build" >&5
  16042. $as_echo_n "checking for additional debug build... " >&6; }
  16043. skip_debug_build=
  16044. # Check whether --enable-libstdcxx-debug was given.
  16045. if test "${enable_libstdcxx_debug+set}" = set; then :
  16046. enableval=$enable_libstdcxx_debug;
  16047. case "$enableval" in
  16048. yes|no) ;;
  16049. *) as_fn_error $? "Argument to enable/disable libstdcxx-debug must be yes or no" "$LINENO" 5 ;;
  16050. esac
  16051. else
  16052. enable_libstdcxx_debug=no
  16053. fi
  16054. if test x$enable_libstdcxx_debug = xyes; then
  16055. if test -f $toplevel_builddir/../stage_final \
  16056. && test -f $toplevel_builddir/../stage_current; then
  16057. stage_final=`cat $toplevel_builddir/../stage_final`
  16058. stage_current=`cat $toplevel_builddir/../stage_current`
  16059. if test x$stage_current != x$stage_final ; then
  16060. skip_debug_build=" (skipped for bootstrap stage $stage_current)"
  16061. enable_libstdcxx_debug=no
  16062. fi
  16063. fi
  16064. fi
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_debug$skip_debug_build" >&5
  16066. $as_echo "$enable_libstdcxx_debug$skip_debug_build" >&6; }
  16067. enable_parallel=no;
  16068. # See if configured libgomp/omp.h exists. (libgomp may be in
  16069. # noconfigdirs but not explicitly disabled.)
  16070. if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
  16071. enable_parallel=yes;
  16072. else
  16073. { $as_echo "$as_me:${as_lineno-$LINENO}: target-libgomp not built" >&5
  16074. $as_echo "$as_me: target-libgomp not built" >&6;}
  16075. fi
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parallel mode support" >&5
  16077. $as_echo_n "checking for parallel mode support... " >&6; }
  16078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel" >&5
  16079. $as_echo "$enable_parallel" >&6; }
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra compiler flags for building" >&5
  16081. $as_echo_n "checking for extra compiler flags for building... " >&6; }
  16082. # Check whether --enable-cxx-flags was given.
  16083. if test "${enable_cxx_flags+set}" = set; then :
  16084. enableval=$enable_cxx_flags; case "x$enable_cxx_flags" in
  16085. xno | x) enable_cxx_flags= ;;
  16086. x-*) ;;
  16087. *) as_fn_error $? "--enable-cxx-flags needs compiler flags as arguments" "$LINENO" 5 ;;
  16088. esac
  16089. else
  16090. enable_cxx_flags=
  16091. fi
  16092. # Run through flags (either default or command-line) and set anything
  16093. # extra (e.g., #defines) that must accompany particular g++ options.
  16094. if test -n "$enable_cxx_flags"; then
  16095. for f in $enable_cxx_flags; do
  16096. case "$f" in
  16097. -fhonor-std) ;;
  16098. -*) ;;
  16099. *) # and we're trying to pass /what/ exactly?
  16100. as_fn_error $? "compiler flags start with a -" "$LINENO" 5 ;;
  16101. esac
  16102. done
  16103. fi
  16104. EXTRA_CXX_FLAGS="$enable_cxx_flags"
  16105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CXX_FLAGS" >&5
  16106. $as_echo "$EXTRA_CXX_FLAGS" >&6; }
  16107. # Check whether --enable-fully-dynamic-string was given.
  16108. if test "${enable_fully_dynamic_string+set}" = set; then :
  16109. enableval=$enable_fully_dynamic_string;
  16110. case "$enableval" in
  16111. yes|no) ;;
  16112. *) as_fn_error $? "Unknown argument to enable/disable fully-dynamic-string" "$LINENO" 5 ;;
  16113. esac
  16114. else
  16115. enable_fully_dynamic_string=no
  16116. fi
  16117. if test $enable_fully_dynamic_string = yes; then
  16118. enable_fully_dynamic_string_def=1
  16119. else
  16120. enable_fully_dynamic_string_def=0
  16121. fi
  16122. cat >>confdefs.h <<_ACEOF
  16123. #define _GLIBCXX_FULLY_DYNAMIC_STRING ${enable_fully_dynamic_string_def}
  16124. _ACEOF
  16125. # Check whether --enable-extern-template was given.
  16126. if test "${enable_extern_template+set}" = set; then :
  16127. enableval=$enable_extern_template;
  16128. case "$enableval" in
  16129. yes|no) ;;
  16130. *) as_fn_error $? "Argument to enable/disable extern-template must be yes or no" "$LINENO" 5 ;;
  16131. esac
  16132. else
  16133. enable_extern_template=yes
  16134. fi
  16135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern template support" >&5
  16136. $as_echo_n "checking for extern template support... " >&6; }
  16137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extern_template" >&5
  16138. $as_echo "$enable_extern_template" >&6; }
  16139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom python install directory" >&5
  16140. $as_echo_n "checking for custom python install directory... " >&6; }
  16141. # Check whether --with-python-dir was given.
  16142. if test "${with_python_dir+set}" = set; then :
  16143. withval=$with_python_dir; with_python_dir=$withval
  16144. else
  16145. with_python_dir="no"
  16146. fi
  16147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_python_dir}" >&5
  16148. $as_echo "${with_python_dir}" >&6; }
  16149. # Needed for installing Python modules during make install.
  16150. python_mod_dir="${with_python_dir}"
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror" >&5
  16152. $as_echo_n "checking for -Werror... " >&6; }
  16153. # Check whether --enable-werror was given.
  16154. if test "${enable_werror+set}" = set; then :
  16155. enableval=$enable_werror;
  16156. case "$enableval" in
  16157. yes|no) ;;
  16158. *) as_fn_error $? "Argument to enable/disable werror must be yes or no" "$LINENO" 5 ;;
  16159. esac
  16160. else
  16161. enable_werror=no
  16162. fi
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_werror" >&5
  16164. $as_echo "$enable_werror" >&6; }
  16165. # Check whether --enable-vtable-verify was given.
  16166. if test "${enable_vtable_verify+set}" = set; then :
  16167. enableval=$enable_vtable_verify;
  16168. case "$enableval" in
  16169. yes|no) ;;
  16170. *) as_fn_error $? "Argument to enable/disable vtable-verify must be yes or no" "$LINENO" 5 ;;
  16171. esac
  16172. else
  16173. enable_vtable_verify=no
  16174. fi
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtable verify support" >&5
  16176. $as_echo_n "checking for vtable verify support... " >&6; }
  16177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  16178. $as_echo "$enable_vtable_verify" >&6; }
  16179. vtv_cygmin=no
  16180. if test $enable_vtable_verify = yes; then
  16181. case ${target_os} in
  16182. cygwin*|mingw32*)
  16183. VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
  16184. VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
  16185. vtv_cygmin=yes
  16186. ;;
  16187. darwin*)
  16188. VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end"
  16189. VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-rpath,${toplevel_builddir}/libvtv/.libs"
  16190. ;;
  16191. solaris2*)
  16192. VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
  16193. VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-R -Wl,${toplevel_builddir}/libvtv/.libs"
  16194. ;;
  16195. *)
  16196. VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
  16197. VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
  16198. ;;
  16199. esac
  16200. VTV_PCH_CXXFLAGS="-fvtable-verify=std"
  16201. else
  16202. VTV_CXXFLAGS=
  16203. VTV_PCH_CXXFLAGS=
  16204. VTV_CXXLINKFLAGS=
  16205. fi
  16206. if test x$vtv_cygmin = xyes; then
  16207. VTV_CYGMIN_TRUE=
  16208. VTV_CYGMIN_FALSE='#'
  16209. else
  16210. VTV_CYGMIN_TRUE='#'
  16211. VTV_CYGMIN_FALSE=
  16212. fi
  16213. # Checks for operating systems support that doesn't require linking.
  16214. ac_ext=cpp
  16215. ac_cpp='$CXXCPP $CPPFLAGS'
  16216. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16217. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16218. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16219. # Use C++11 because a conforming <stdio.h> won't define gets for C++14,
  16220. # and we don't need a declaration for C++14 anyway.
  16221. ac_save_CXXFLAGS="$CXXFLAGS"
  16222. CXXFLAGS="$CXXFLAGS -std=gnu++11"
  16223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gets declaration" >&5
  16224. $as_echo_n "checking for gets declaration... " >&6; }
  16225. if ${glibcxx_cv_gets+:} false; then :
  16226. $as_echo_n "(cached) " >&6
  16227. else
  16228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16229. /* end confdefs.h. */
  16230. #include <stdio.h>
  16231. namespace test
  16232. {
  16233. using ::gets;
  16234. }
  16235. _ACEOF
  16236. if ac_fn_cxx_try_compile "$LINENO"; then :
  16237. glibcxx_cv_gets=yes
  16238. else
  16239. glibcxx_cv_gets=no
  16240. fi
  16241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16242. fi
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_gets" >&5
  16244. $as_echo "$glibcxx_cv_gets" >&6; }
  16245. if test $glibcxx_cv_gets = yes; then
  16246. $as_echo "#define HAVE_GETS 1" >>confdefs.h
  16247. fi
  16248. CXXFLAGS="$ac_save_CXXFLAGS"
  16249. ac_ext=c
  16250. ac_cpp='$CPP $CPPFLAGS'
  16251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16254. ac_ext=cpp
  16255. ac_cpp='$CXXCPP $CPPFLAGS'
  16256. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16257. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16258. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16259. ac_save_CXXFLAGS="$CXXFLAGS"
  16260. CXXFLAGS="$CXXFLAGS -std=c++11"
  16261. case "$host" in
  16262. *-*-solaris2.*)
  16263. # Solaris 12 Build 86, Solaris 11.3 SRU 3.6, and Solaris 10 Patch
  16264. # 11996[67]-02 introduced the C++11 <math.h> floating point overloads.
  16265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> floating point overloads" >&5
  16266. $as_echo_n "checking for C++11 <math.h> floating point overloads... " >&6; }
  16267. if ${glibcxx_cv_math11_fp_overload+:} false; then :
  16268. $as_echo_n "(cached) " >&6
  16269. else
  16270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16271. /* end confdefs.h. */
  16272. #include <math.h>
  16273. #undef isfinite
  16274. namespace std {
  16275. inline bool isfinite(float __x)
  16276. { return __builtin_isfinite(__x); }
  16277. }
  16278. _ACEOF
  16279. if ac_fn_cxx_try_compile "$LINENO"; then :
  16280. glibcxx_cv_math11_fp_overload=no
  16281. else
  16282. glibcxx_cv_math11_fp_overload=yes
  16283. fi
  16284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16285. fi
  16286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_fp_overload" >&5
  16287. $as_echo "$glibcxx_cv_math11_fp_overload" >&6; }
  16288. # autoheader cannot handle indented templates.
  16289. if test $glibcxx_cv_math11_fp_overload = yes; then
  16290. $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_FP 1" >>confdefs.h
  16291. fi
  16292. # Solaris 12 Build 90, Solaris 11.3 SRU 5.6, and Solaris 10 Patch
  16293. # 11996[67]-02 introduced the C++11 <math.h> integral type overloads.
  16294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> integral type overloads" >&5
  16295. $as_echo_n "checking for C++11 <math.h> integral type overloads... " >&6; }
  16296. if ${glibcxx_cv_math11_int_overload+:} false; then :
  16297. $as_echo_n "(cached) " >&6
  16298. else
  16299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16300. /* end confdefs.h. */
  16301. #include <math.h>
  16302. namespace std {
  16303. template<typename _Tp>
  16304. struct __is_integer;
  16305. template<>
  16306. struct __is_integer<int>
  16307. {
  16308. enum { __value = 1 };
  16309. };
  16310. }
  16311. namespace __gnu_cxx {
  16312. template<bool, typename>
  16313. struct __enable_if;
  16314. template<typename _Tp>
  16315. struct __enable_if<true, _Tp>
  16316. { typedef _Tp __type; };
  16317. }
  16318. namespace std {
  16319. template<typename _Tp>
  16320. constexpr typename __gnu_cxx::__enable_if
  16321. <__is_integer<_Tp>::__value, double>::__type
  16322. log2(_Tp __x)
  16323. { return __builtin_log2(__x); }
  16324. }
  16325. int
  16326. main (void)
  16327. {
  16328. int i = 1000;
  16329. return std::log2(i);
  16330. }
  16331. _ACEOF
  16332. if ac_fn_cxx_try_compile "$LINENO"; then :
  16333. glibcxx_cv_math11_int_overload=no
  16334. else
  16335. glibcxx_cv_math11_int_overload=yes
  16336. fi
  16337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16338. fi
  16339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_int_overload" >&5
  16340. $as_echo "$glibcxx_cv_math11_int_overload" >&6; }
  16341. # autoheader cannot handle indented templates.
  16342. if test $glibcxx_cv_math11_int_overload = yes; then
  16343. $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_INT 1" >>confdefs.h
  16344. fi
  16345. ;;
  16346. *)
  16347. # If <math.h> defines the obsolete isinf(double) and isnan(double)
  16348. # functions (instead of or as well as the C99 generic macros) then we
  16349. # can't define std::isinf(double) and std::isnan(double) in <cmath>
  16350. # and must use the ones from <math.h> instead.
  16351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf function in <math.h>" >&5
  16352. $as_echo_n "checking for obsolete isinf function in <math.h>... " >&6; }
  16353. if ${glibcxx_cv_obsolete_isinf+:} false; then :
  16354. $as_echo_n "(cached) " >&6
  16355. else
  16356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16357. /* end confdefs.h. */
  16358. #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
  16359. #include <math.h>
  16360. #undef isinf
  16361. namespace std {
  16362. using ::isinf;
  16363. bool isinf(float);
  16364. bool isinf(long double);
  16365. }
  16366. using std::isinf;
  16367. bool b = isinf(0.0);
  16368. _ACEOF
  16369. if ac_fn_cxx_try_compile "$LINENO"; then :
  16370. glibcxx_cv_obsolete_isinf=yes
  16371. else
  16372. glibcxx_cv_obsolete_isinf=no
  16373. fi
  16374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16375. fi
  16376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf" >&5
  16377. $as_echo "$glibcxx_cv_obsolete_isinf" >&6; }
  16378. if test $glibcxx_cv_obsolete_isinf = yes; then
  16379. $as_echo "#define HAVE_OBSOLETE_ISINF 1" >>confdefs.h
  16380. fi
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isnan function in <math.h>" >&5
  16382. $as_echo_n "checking for obsolete isnan function in <math.h>... " >&6; }
  16383. if ${glibcxx_cv_obsolete_isnan+:} false; then :
  16384. $as_echo_n "(cached) " >&6
  16385. else
  16386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16387. /* end confdefs.h. */
  16388. #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
  16389. #include <math.h>
  16390. #undef isnan
  16391. namespace std {
  16392. using ::isnan;
  16393. bool isnan(float);
  16394. bool isnan(long double);
  16395. }
  16396. using std::isnan;
  16397. bool b = isnan(0.0);
  16398. _ACEOF
  16399. if ac_fn_cxx_try_compile "$LINENO"; then :
  16400. glibcxx_cv_obsolete_isnan=yes
  16401. else
  16402. glibcxx_cv_obsolete_isnan=no
  16403. fi
  16404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isnan" >&5
  16407. $as_echo "$glibcxx_cv_obsolete_isnan" >&6; }
  16408. if test $glibcxx_cv_obsolete_isnan = yes; then
  16409. $as_echo "#define HAVE_OBSOLETE_ISNAN 1" >>confdefs.h
  16410. fi
  16411. ;;
  16412. esac
  16413. CXXFLAGS="$ac_save_CXXFLAGS"
  16414. ac_ext=c
  16415. ac_cpp='$CPP $CPPFLAGS'
  16416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16419. # Test uchar.h.
  16420. for ac_header in uchar.h
  16421. do :
  16422. ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
  16423. if test "x$ac_cv_header_uchar_h" = xyes; then :
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define HAVE_UCHAR_H 1
  16426. _ACEOF
  16427. ac_has_uchar_h=yes
  16428. else
  16429. ac_has_uchar_h=no
  16430. fi
  16431. done
  16432. ac_ext=cpp
  16433. ac_cpp='$CXXCPP $CPPFLAGS'
  16434. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16435. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16436. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16437. ac_save_CXXFLAGS="$CXXFLAGS"
  16438. CXXFLAGS="$CXXFLAGS -std=c++11"
  16439. if test x"$ac_has_uchar_h" = x"yes"; then
  16440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 support for <uchar.h>" >&5
  16441. $as_echo_n "checking for ISO C11 support for <uchar.h>... " >&6; }
  16442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16443. /* end confdefs.h. */
  16444. #include <uchar.h>
  16445. #ifdef __STDC_UTF_16__
  16446. long i = __STDC_UTF_16__;
  16447. #endif
  16448. #ifdef __STDC_UTF_32__
  16449. long j = __STDC_UTF_32__;
  16450. #endif
  16451. namespace test
  16452. {
  16453. using ::c16rtomb;
  16454. using ::c32rtomb;
  16455. using ::mbrtoc16;
  16456. using ::mbrtoc32;
  16457. }
  16458. int
  16459. main ()
  16460. {
  16461. ;
  16462. return 0;
  16463. }
  16464. _ACEOF
  16465. if ac_fn_cxx_try_compile "$LINENO"; then :
  16466. ac_c11_uchar_cxx11=yes
  16467. else
  16468. ac_c11_uchar_cxx11=no
  16469. fi
  16470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c11_uchar_cxx11" >&5
  16472. $as_echo "$ac_c11_uchar_cxx11" >&6; }
  16473. else
  16474. ac_c11_uchar_cxx11=no
  16475. fi
  16476. if test x"$ac_c11_uchar_cxx11" = x"yes"; then
  16477. $as_echo "#define _GLIBCXX_USE_C11_UCHAR_CXX11 1" >>confdefs.h
  16478. fi
  16479. CXXFLAGS="$CXXFLAGS -fchar8_t"
  16480. if test x"$ac_has_uchar_h" = x"yes"; then
  16481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t" >&5
  16482. $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t... " >&6; }
  16483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16484. /* end confdefs.h. */
  16485. #include <uchar.h>
  16486. namespace test
  16487. {
  16488. using ::c8rtomb;
  16489. using ::mbrtoc8;
  16490. }
  16491. int
  16492. main ()
  16493. {
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. if ac_fn_cxx_try_compile "$LINENO"; then :
  16499. ac_uchar_c8rtomb_mbrtoc8_fchar8_t=yes
  16500. else
  16501. ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
  16502. fi
  16503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16504. else
  16505. ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
  16506. fi
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&5
  16508. $as_echo "$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&6; }
  16509. if test x"$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" = x"yes"; then
  16510. $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_FCHAR8_T 1" >>confdefs.h
  16511. fi
  16512. CXXFLAGS="$CXXFLAGS -std=c++20"
  16513. if test x"$ac_has_uchar_h" = x"yes"; then
  16514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20" >&5
  16515. $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20... " >&6; }
  16516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16517. /* end confdefs.h. */
  16518. #include <uchar.h>
  16519. namespace test
  16520. {
  16521. using ::c8rtomb;
  16522. using ::mbrtoc8;
  16523. }
  16524. int
  16525. main ()
  16526. {
  16527. ;
  16528. return 0;
  16529. }
  16530. _ACEOF
  16531. if ac_fn_cxx_try_compile "$LINENO"; then :
  16532. ac_uchar_c8rtomb_mbrtoc8_cxx20=yes
  16533. else
  16534. ac_uchar_c8rtomb_mbrtoc8_cxx20=no
  16535. fi
  16536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16537. else
  16538. ac_uchar_c8rtomb_mbrtoc8_cxx20=no
  16539. fi
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_cxx20" >&5
  16541. $as_echo "$ac_uchar_c8rtomb_mbrtoc8_cxx20" >&6; }
  16542. if test x"$ac_uchar_c8rtomb_mbrtoc8_cxx20" = x"yes"; then
  16543. $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_CXX20 1" >>confdefs.h
  16544. fi
  16545. CXXFLAGS="$ac_save_CXXFLAGS"
  16546. ac_ext=c
  16547. ac_cpp='$CPP $CPPFLAGS'
  16548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16551. # For LFS support.
  16552. ac_ext=cpp
  16553. ac_cpp='$CXXCPP $CPPFLAGS'
  16554. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16555. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16556. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16557. ac_save_CXXFLAGS="$CXXFLAGS"
  16558. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  16559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LFS support" >&5
  16560. $as_echo_n "checking for LFS support... " >&6; }
  16561. if ${glibcxx_cv_LFS+:} false; then :
  16562. $as_echo_n "(cached) " >&6
  16563. else
  16564. if test x$gcc_no_link = xyes; then
  16565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16566. /* end confdefs.h. */
  16567. #include <unistd.h>
  16568. #include <stdio.h>
  16569. #include <sys/stat.h>
  16570. int
  16571. main ()
  16572. {
  16573. FILE* fp;
  16574. fopen64("t", "w");
  16575. fseeko64(fp, 0, SEEK_CUR);
  16576. ftello64(fp);
  16577. lseek64(1, 0, SEEK_CUR);
  16578. struct stat64 buf;
  16579. fstat64(1, &buf);
  16580. ;
  16581. return 0;
  16582. }
  16583. _ACEOF
  16584. if ac_fn_cxx_try_compile "$LINENO"; then :
  16585. glibcxx_cv_LFS=yes
  16586. else
  16587. glibcxx_cv_LFS=no
  16588. fi
  16589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16590. else
  16591. if test x$gcc_no_link = xyes; then
  16592. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16593. fi
  16594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16595. /* end confdefs.h. */
  16596. #include <unistd.h>
  16597. #include <stdio.h>
  16598. #include <sys/stat.h>
  16599. int
  16600. main ()
  16601. {
  16602. FILE* fp;
  16603. fopen64("t", "w");
  16604. fseeko64(fp, 0, SEEK_CUR);
  16605. ftello64(fp);
  16606. lseek64(1, 0, SEEK_CUR);
  16607. struct stat64 buf;
  16608. fstat64(1, &buf);
  16609. ;
  16610. return 0;
  16611. }
  16612. _ACEOF
  16613. if ac_fn_cxx_try_link "$LINENO"; then :
  16614. glibcxx_cv_LFS=yes
  16615. else
  16616. glibcxx_cv_LFS=no
  16617. fi
  16618. rm -f core conftest.err conftest.$ac_objext \
  16619. conftest$ac_exeext conftest.$ac_ext
  16620. fi
  16621. fi
  16622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_LFS" >&5
  16623. $as_echo "$glibcxx_cv_LFS" >&6; }
  16624. if test $glibcxx_cv_LFS = yes; then
  16625. $as_echo "#define _GLIBCXX_USE_LFS 1" >>confdefs.h
  16626. fi
  16627. CXXFLAGS="$ac_save_CXXFLAGS"
  16628. ac_ext=c
  16629. ac_cpp='$CPP $CPPFLAGS'
  16630. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16631. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16632. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16633. # For showmanyc_helper().
  16634. for ac_header in sys/ioctl.h sys/filio.h
  16635. do :
  16636. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16637. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16638. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16639. cat >>confdefs.h <<_ACEOF
  16640. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16641. _ACEOF
  16642. fi
  16643. done
  16644. ac_ext=cpp
  16645. ac_cpp='$CXXCPP $CPPFLAGS'
  16646. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16647. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16648. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16649. ac_save_CXXFLAGS="$CXXFLAGS"
  16650. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  16651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
  16652. $as_echo_n "checking for poll... " >&6; }
  16653. if ${glibcxx_cv_POLL+:} false; then :
  16654. $as_echo_n "(cached) " >&6
  16655. else
  16656. if test x$gcc_no_link = xyes; then
  16657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16658. /* end confdefs.h. */
  16659. #include <poll.h>
  16660. int
  16661. main ()
  16662. {
  16663. struct pollfd pfd[1];
  16664. pfd[0].events = POLLIN;
  16665. poll(pfd, 1, 0);
  16666. ;
  16667. return 0;
  16668. }
  16669. _ACEOF
  16670. if ac_fn_cxx_try_compile "$LINENO"; then :
  16671. glibcxx_cv_POLL=yes
  16672. else
  16673. glibcxx_cv_POLL=no
  16674. fi
  16675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16676. else
  16677. if test x$gcc_no_link = xyes; then
  16678. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16679. fi
  16680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16681. /* end confdefs.h. */
  16682. #include <poll.h>
  16683. int
  16684. main ()
  16685. {
  16686. struct pollfd pfd[1];
  16687. pfd[0].events = POLLIN;
  16688. poll(pfd, 1, 0);
  16689. ;
  16690. return 0;
  16691. }
  16692. _ACEOF
  16693. if ac_fn_cxx_try_link "$LINENO"; then :
  16694. glibcxx_cv_POLL=yes
  16695. else
  16696. glibcxx_cv_POLL=no
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext \
  16699. conftest$ac_exeext conftest.$ac_ext
  16700. fi
  16701. fi
  16702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_POLL" >&5
  16703. $as_echo "$glibcxx_cv_POLL" >&6; }
  16704. if test $glibcxx_cv_POLL = yes; then
  16705. $as_echo "#define HAVE_POLL 1" >>confdefs.h
  16706. fi
  16707. CXXFLAGS="$ac_save_CXXFLAGS"
  16708. ac_ext=c
  16709. ac_cpp='$CPP $CPPFLAGS'
  16710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16713. ac_ext=cpp
  16714. ac_cpp='$CXXCPP $CPPFLAGS'
  16715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16718. ac_save_CXXFLAGS="$CXXFLAGS"
  16719. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  16720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISREG or S_IFREG" >&5
  16721. $as_echo_n "checking for S_ISREG or S_IFREG... " >&6; }
  16722. if ${glibcxx_cv_S_ISREG+:} false; then :
  16723. $as_echo_n "(cached) " >&6
  16724. else
  16725. if test x$gcc_no_link = xyes; then
  16726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16727. /* end confdefs.h. */
  16728. #include <sys/stat.h>
  16729. int
  16730. main ()
  16731. {
  16732. struct stat buffer;
  16733. fstat(0, &buffer);
  16734. S_ISREG(buffer.st_mode);
  16735. ;
  16736. return 0;
  16737. }
  16738. _ACEOF
  16739. if ac_fn_cxx_try_compile "$LINENO"; then :
  16740. glibcxx_cv_S_ISREG=yes
  16741. else
  16742. glibcxx_cv_S_ISREG=no
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16745. else
  16746. if test x$gcc_no_link = xyes; then
  16747. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16748. fi
  16749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16750. /* end confdefs.h. */
  16751. #include <sys/stat.h>
  16752. int
  16753. main ()
  16754. {
  16755. struct stat buffer;
  16756. fstat(0, &buffer);
  16757. S_ISREG(buffer.st_mode);
  16758. ;
  16759. return 0;
  16760. }
  16761. _ACEOF
  16762. if ac_fn_cxx_try_link "$LINENO"; then :
  16763. glibcxx_cv_S_ISREG=yes
  16764. else
  16765. glibcxx_cv_S_ISREG=no
  16766. fi
  16767. rm -f core conftest.err conftest.$ac_objext \
  16768. conftest$ac_exeext conftest.$ac_ext
  16769. fi
  16770. fi
  16771. if ${glibcxx_cv_S_IFREG+:} false; then :
  16772. $as_echo_n "(cached) " >&6
  16773. else
  16774. if test x$gcc_no_link = xyes; then
  16775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16776. /* end confdefs.h. */
  16777. #include <sys/stat.h>
  16778. int
  16779. main ()
  16780. {
  16781. struct stat buffer;
  16782. fstat(0, &buffer);
  16783. S_IFREG & buffer.st_mode;
  16784. ;
  16785. return 0;
  16786. }
  16787. _ACEOF
  16788. if ac_fn_cxx_try_compile "$LINENO"; then :
  16789. glibcxx_cv_S_IFREG=yes
  16790. else
  16791. glibcxx_cv_S_IFREG=no
  16792. fi
  16793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16794. else
  16795. if test x$gcc_no_link = xyes; then
  16796. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16797. fi
  16798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16799. /* end confdefs.h. */
  16800. #include <sys/stat.h>
  16801. int
  16802. main ()
  16803. {
  16804. struct stat buffer;
  16805. fstat(0, &buffer);
  16806. S_IFREG & buffer.st_mode;
  16807. ;
  16808. return 0;
  16809. }
  16810. _ACEOF
  16811. if ac_fn_cxx_try_link "$LINENO"; then :
  16812. glibcxx_cv_S_IFREG=yes
  16813. else
  16814. glibcxx_cv_S_IFREG=no
  16815. fi
  16816. rm -f core conftest.err conftest.$ac_objext \
  16817. conftest$ac_exeext conftest.$ac_ext
  16818. fi
  16819. fi
  16820. res=no
  16821. if test $glibcxx_cv_S_ISREG = yes; then
  16822. $as_echo "#define HAVE_S_ISREG 1" >>confdefs.h
  16823. res=S_ISREG
  16824. elif test $glibcxx_cv_S_IFREG = yes; then
  16825. $as_echo "#define HAVE_S_IFREG 1" >>confdefs.h
  16826. res=S_IFREG
  16827. fi
  16828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  16829. $as_echo "$res" >&6; }
  16830. CXXFLAGS="$ac_save_CXXFLAGS"
  16831. ac_ext=c
  16832. ac_cpp='$CPP $CPPFLAGS'
  16833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16836. # For xsputn_2().
  16837. for ac_header in sys/uio.h
  16838. do :
  16839. ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
  16840. if test "x$ac_cv_header_sys_uio_h" = xyes; then :
  16841. cat >>confdefs.h <<_ACEOF
  16842. #define HAVE_SYS_UIO_H 1
  16843. _ACEOF
  16844. fi
  16845. done
  16846. ac_ext=cpp
  16847. ac_cpp='$CXXCPP $CPPFLAGS'
  16848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16851. ac_save_CXXFLAGS="$CXXFLAGS"
  16852. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev" >&5
  16854. $as_echo_n "checking for writev... " >&6; }
  16855. if ${glibcxx_cv_WRITEV+:} false; then :
  16856. $as_echo_n "(cached) " >&6
  16857. else
  16858. if test x$gcc_no_link = xyes; then
  16859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16860. /* end confdefs.h. */
  16861. #include <sys/uio.h>
  16862. int
  16863. main ()
  16864. {
  16865. struct iovec iov[2];
  16866. writev(0, iov, 0);
  16867. ;
  16868. return 0;
  16869. }
  16870. _ACEOF
  16871. if ac_fn_cxx_try_compile "$LINENO"; then :
  16872. glibcxx_cv_WRITEV=yes
  16873. else
  16874. glibcxx_cv_WRITEV=no
  16875. fi
  16876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16877. else
  16878. if test x$gcc_no_link = xyes; then
  16879. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  16880. fi
  16881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16882. /* end confdefs.h. */
  16883. #include <sys/uio.h>
  16884. int
  16885. main ()
  16886. {
  16887. struct iovec iov[2];
  16888. writev(0, iov, 0);
  16889. ;
  16890. return 0;
  16891. }
  16892. _ACEOF
  16893. if ac_fn_cxx_try_link "$LINENO"; then :
  16894. glibcxx_cv_WRITEV=yes
  16895. else
  16896. glibcxx_cv_WRITEV=no
  16897. fi
  16898. rm -f core conftest.err conftest.$ac_objext \
  16899. conftest$ac_exeext conftest.$ac_ext
  16900. fi
  16901. fi
  16902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_WRITEV" >&5
  16903. $as_echo "$glibcxx_cv_WRITEV" >&6; }
  16904. if test $glibcxx_cv_WRITEV = yes; then
  16905. $as_echo "#define HAVE_WRITEV 1" >>confdefs.h
  16906. fi
  16907. CXXFLAGS="$ac_save_CXXFLAGS"
  16908. ac_ext=c
  16909. ac_cpp='$CPP $CPPFLAGS'
  16910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16913. # Check for fenv.h and complex.h before GLIBCXX_CHECK_C99_TR1
  16914. # so that the check is done with the C compiler (not C++).
  16915. # Checking with C++ can break a canadian cross build if either
  16916. # file does not exist in C but does in C++.
  16917. for ac_header in fenv.h complex.h
  16918. do :
  16919. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16920. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16921. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16922. cat >>confdefs.h <<_ACEOF
  16923. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16924. _ACEOF
  16925. fi
  16926. done
  16927. # For C99 support to TR1.
  16928. ac_ext=cpp
  16929. ac_cpp='$CXXCPP $CPPFLAGS'
  16930. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16931. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16932. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16933. # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__
  16934. # undefined and fake C99 facilities may be spuriously enabled.
  16935. ac_save_CXXFLAGS="$CXXFLAGS"
  16936. CXXFLAGS="$CXXFLAGS -std=c++98"
  16937. # Check for the existence of <complex.h> complex math functions used
  16938. # by tr1/complex.
  16939. for ac_header in complex.h
  16940. do :
  16941. ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
  16942. if test "x$ac_cv_header_complex_h" = xyes; then :
  16943. cat >>confdefs.h <<_ACEOF
  16944. #define HAVE_COMPLEX_H 1
  16945. _ACEOF
  16946. ac_has_complex_h=yes
  16947. else
  16948. ac_has_complex_h=no
  16949. fi
  16950. done
  16951. ac_c99_complex_tr1=no;
  16952. if test x"$ac_has_complex_h" = x"yes"; then
  16953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <complex.h>" >&5
  16954. $as_echo_n "checking for ISO C99 support to TR1 in <complex.h>... " >&6; }
  16955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16956. /* end confdefs.h. */
  16957. #include <complex.h>
  16958. int
  16959. main ()
  16960. {
  16961. typedef __complex__ float float_type; float_type tmpf;
  16962. cacosf(tmpf);
  16963. casinf(tmpf);
  16964. catanf(tmpf);
  16965. cacoshf(tmpf);
  16966. casinhf(tmpf);
  16967. catanhf(tmpf);
  16968. typedef __complex__ double double_type; double_type tmpd;
  16969. cacos(tmpd);
  16970. casin(tmpd);
  16971. catan(tmpd);
  16972. cacosh(tmpd);
  16973. casinh(tmpd);
  16974. catanh(tmpd);
  16975. typedef __complex__ long double ld_type; ld_type tmpld;
  16976. cacosl(tmpld);
  16977. casinl(tmpld);
  16978. catanl(tmpld);
  16979. cacoshl(tmpld);
  16980. casinhl(tmpld);
  16981. catanhl(tmpld);
  16982. ;
  16983. return 0;
  16984. }
  16985. _ACEOF
  16986. if ac_fn_cxx_try_compile "$LINENO"; then :
  16987. ac_c99_complex_tr1=yes
  16988. else
  16989. ac_c99_complex_tr1=no
  16990. fi
  16991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16992. fi
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_tr1" >&5
  16994. $as_echo "$ac_c99_complex_tr1" >&6; }
  16995. if test x"$ac_c99_complex_tr1" = x"yes"; then
  16996. $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_TR1 1" >>confdefs.h
  16997. fi
  16998. # Check for the existence of <ctype.h> functions.
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <ctype.h>" >&5
  17000. $as_echo_n "checking for ISO C99 support to TR1 in <ctype.h>... " >&6; }
  17001. if ${glibcxx_cv_c99_ctype_tr1+:} false; then :
  17002. $as_echo_n "(cached) " >&6
  17003. else
  17004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17005. /* end confdefs.h. */
  17006. #include <ctype.h>
  17007. int
  17008. main ()
  17009. {
  17010. int ch;
  17011. int ret;
  17012. ret = isblank(ch);
  17013. ;
  17014. return 0;
  17015. }
  17016. _ACEOF
  17017. if ac_fn_cxx_try_compile "$LINENO"; then :
  17018. glibcxx_cv_c99_ctype_tr1=yes
  17019. else
  17020. glibcxx_cv_c99_ctype_tr1=no
  17021. fi
  17022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17023. fi
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype_tr1" >&5
  17025. $as_echo "$glibcxx_cv_c99_ctype_tr1" >&6; }
  17026. if test x"$glibcxx_cv_c99_ctype_tr1" = x"yes"; then
  17027. $as_echo "#define _GLIBCXX_USE_C99_CTYPE_TR1 1" >>confdefs.h
  17028. fi
  17029. # Check for the existence of <fenv.h> functions.
  17030. for ac_header in fenv.h
  17031. do :
  17032. ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
  17033. if test "x$ac_cv_header_fenv_h" = xyes; then :
  17034. cat >>confdefs.h <<_ACEOF
  17035. #define HAVE_FENV_H 1
  17036. _ACEOF
  17037. ac_has_fenv_h=yes
  17038. else
  17039. ac_has_fenv_h=no
  17040. fi
  17041. done
  17042. ac_c99_fenv_tr1=no;
  17043. if test x"$ac_has_fenv_h" = x"yes"; then
  17044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <fenv.h>" >&5
  17045. $as_echo_n "checking for ISO C99 support to TR1 in <fenv.h>... " >&6; }
  17046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17047. /* end confdefs.h. */
  17048. #include <fenv.h>
  17049. int
  17050. main ()
  17051. {
  17052. int except, mode;
  17053. fexcept_t* pflag;
  17054. fenv_t* penv;
  17055. int ret;
  17056. ret = feclearexcept(except);
  17057. ret = fegetexceptflag(pflag, except);
  17058. ret = feraiseexcept(except);
  17059. ret = fesetexceptflag(pflag, except);
  17060. ret = fetestexcept(except);
  17061. ret = fegetround();
  17062. ret = fesetround(mode);
  17063. ret = fegetenv(penv);
  17064. ret = feholdexcept(penv);
  17065. ret = fesetenv(penv);
  17066. ret = feupdateenv(penv);
  17067. ;
  17068. return 0;
  17069. }
  17070. _ACEOF
  17071. if ac_fn_cxx_try_compile "$LINENO"; then :
  17072. ac_c99_fenv_tr1=yes
  17073. else
  17074. ac_c99_fenv_tr1=no
  17075. fi
  17076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv_tr1" >&5
  17078. $as_echo "$ac_c99_fenv_tr1" >&6; }
  17079. fi
  17080. if test x"$ac_c99_fenv_tr1" = x"yes"; then
  17081. $as_echo "#define _GLIBCXX_USE_C99_FENV_TR1 1" >>confdefs.h
  17082. fi
  17083. # Check for the existence of <stdint.h> types.
  17084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <stdint.h>" >&5
  17085. $as_echo_n "checking for ISO C99 support to TR1 in <stdint.h>... " >&6; }
  17086. if ${glibcxx_cv_c99_stdint_tr1+:} false; then :
  17087. $as_echo_n "(cached) " >&6
  17088. else
  17089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17090. /* end confdefs.h. */
  17091. #define __STDC_LIMIT_MACROS
  17092. #define __STDC_CONSTANT_MACROS
  17093. #include <stdint.h>
  17094. int
  17095. main ()
  17096. {
  17097. typedef int8_t my_int8_t;
  17098. my_int8_t i8 = INT8_MIN;
  17099. i8 = INT8_MAX;
  17100. typedef int16_t my_int16_t;
  17101. my_int16_t i16 = INT16_MIN;
  17102. i16 = INT16_MAX;
  17103. typedef int32_t my_int32_t;
  17104. my_int32_t i32 = INT32_MIN;
  17105. i32 = INT32_MAX;
  17106. typedef int64_t my_int64_t;
  17107. my_int64_t i64 = INT64_MIN;
  17108. i64 = INT64_MAX;
  17109. typedef int_fast8_t my_int_fast8_t;
  17110. my_int_fast8_t if8 = INT_FAST8_MIN;
  17111. if8 = INT_FAST8_MAX;
  17112. typedef int_fast16_t my_int_fast16_t;
  17113. my_int_fast16_t if16 = INT_FAST16_MIN;
  17114. if16 = INT_FAST16_MAX;
  17115. typedef int_fast32_t my_int_fast32_t;
  17116. my_int_fast32_t if32 = INT_FAST32_MIN;
  17117. if32 = INT_FAST32_MAX;
  17118. typedef int_fast64_t my_int_fast64_t;
  17119. my_int_fast64_t if64 = INT_FAST64_MIN;
  17120. if64 = INT_FAST64_MAX;
  17121. typedef int_least8_t my_int_least8_t;
  17122. my_int_least8_t il8 = INT_LEAST8_MIN;
  17123. il8 = INT_LEAST8_MAX;
  17124. typedef int_least16_t my_int_least16_t;
  17125. my_int_least16_t il16 = INT_LEAST16_MIN;
  17126. il16 = INT_LEAST16_MAX;
  17127. typedef int_least32_t my_int_least32_t;
  17128. my_int_least32_t il32 = INT_LEAST32_MIN;
  17129. il32 = INT_LEAST32_MAX;
  17130. typedef int_least64_t my_int_least64_t;
  17131. my_int_least64_t il64 = INT_LEAST64_MIN;
  17132. il64 = INT_LEAST64_MAX;
  17133. typedef intmax_t my_intmax_t;
  17134. my_intmax_t im = INTMAX_MAX;
  17135. im = INTMAX_MIN;
  17136. typedef intptr_t my_intptr_t;
  17137. my_intptr_t ip = INTPTR_MAX;
  17138. ip = INTPTR_MIN;
  17139. typedef uint8_t my_uint8_t;
  17140. my_uint8_t ui8 = UINT8_MAX;
  17141. ui8 = UINT8_MAX;
  17142. typedef uint16_t my_uint16_t;
  17143. my_uint16_t ui16 = UINT16_MAX;
  17144. ui16 = UINT16_MAX;
  17145. typedef uint32_t my_uint32_t;
  17146. my_uint32_t ui32 = UINT32_MAX;
  17147. ui32 = UINT32_MAX;
  17148. typedef uint64_t my_uint64_t;
  17149. my_uint64_t ui64 = UINT64_MAX;
  17150. ui64 = UINT64_MAX;
  17151. typedef uint_fast8_t my_uint_fast8_t;
  17152. my_uint_fast8_t uif8 = UINT_FAST8_MAX;
  17153. uif8 = UINT_FAST8_MAX;
  17154. typedef uint_fast16_t my_uint_fast16_t;
  17155. my_uint_fast16_t uif16 = UINT_FAST16_MAX;
  17156. uif16 = UINT_FAST16_MAX;
  17157. typedef uint_fast32_t my_uint_fast32_t;
  17158. my_uint_fast32_t uif32 = UINT_FAST32_MAX;
  17159. uif32 = UINT_FAST32_MAX;
  17160. typedef uint_fast64_t my_uint_fast64_t;
  17161. my_uint_fast64_t uif64 = UINT_FAST64_MAX;
  17162. uif64 = UINT_FAST64_MAX;
  17163. typedef uint_least8_t my_uint_least8_t;
  17164. my_uint_least8_t uil8 = UINT_LEAST8_MAX;
  17165. uil8 = UINT_LEAST8_MAX;
  17166. typedef uint_least16_t my_uint_least16_t;
  17167. my_uint_least16_t uil16 = UINT_LEAST16_MAX;
  17168. uil16 = UINT_LEAST16_MAX;
  17169. typedef uint_least32_t my_uint_least32_t;
  17170. my_uint_least32_t uil32 = UINT_LEAST32_MAX;
  17171. uil32 = UINT_LEAST32_MAX;
  17172. typedef uint_least64_t my_uint_least64_t;
  17173. my_uint_least64_t uil64 = UINT_LEAST64_MAX;
  17174. uil64 = UINT_LEAST64_MAX;
  17175. typedef uintmax_t my_uintmax_t;
  17176. my_uintmax_t uim = UINTMAX_MAX;
  17177. uim = UINTMAX_MAX;
  17178. typedef uintptr_t my_uintptr_t;
  17179. my_uintptr_t uip = UINTPTR_MAX;
  17180. uip = UINTPTR_MAX;
  17181. ;
  17182. return 0;
  17183. }
  17184. _ACEOF
  17185. if ac_fn_cxx_try_compile "$LINENO"; then :
  17186. glibcxx_cv_c99_stdint_tr1=yes
  17187. else
  17188. glibcxx_cv_c99_stdint_tr1=no
  17189. fi
  17190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17191. fi
  17192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint_tr1" >&5
  17193. $as_echo "$glibcxx_cv_c99_stdint_tr1" >&6; }
  17194. if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
  17195. $as_echo "#define _GLIBCXX_USE_C99_STDINT_TR1 1" >>confdefs.h
  17196. fi
  17197. # Check for the existence of <math.h> functions.
  17198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <math.h>" >&5
  17199. $as_echo_n "checking for ISO C99 support to TR1 in <math.h>... " >&6; }
  17200. if ${glibcxx_cv_c99_math_tr1+:} false; then :
  17201. $as_echo_n "(cached) " >&6
  17202. else
  17203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17204. /* end confdefs.h. */
  17205. #include <math.h>
  17206. int
  17207. main ()
  17208. {
  17209. typedef double_t my_double_t;
  17210. typedef float_t my_float_t;
  17211. acosh(0.0);
  17212. acoshf(0.0f);
  17213. acoshl(0.0l);
  17214. asinh(0.0);
  17215. asinhf(0.0f);
  17216. asinhl(0.0l);
  17217. atanh(0.0);
  17218. atanhf(0.0f);
  17219. atanhl(0.0l);
  17220. cbrt(0.0);
  17221. cbrtf(0.0f);
  17222. cbrtl(0.0l);
  17223. copysign(0.0, 0.0);
  17224. copysignf(0.0f, 0.0f);
  17225. copysignl(0.0l, 0.0l);
  17226. erf(0.0);
  17227. erff(0.0f);
  17228. erfl(0.0l);
  17229. erfc(0.0);
  17230. erfcf(0.0f);
  17231. erfcl(0.0l);
  17232. exp2(0.0);
  17233. exp2f(0.0f);
  17234. exp2l(0.0l);
  17235. expm1(0.0);
  17236. expm1f(0.0f);
  17237. expm1l(0.0l);
  17238. fdim(0.0, 0.0);
  17239. fdimf(0.0f, 0.0f);
  17240. fdiml(0.0l, 0.0l);
  17241. fma(0.0, 0.0, 0.0);
  17242. fmaf(0.0f, 0.0f, 0.0f);
  17243. fmal(0.0l, 0.0l, 0.0l);
  17244. fmax(0.0, 0.0);
  17245. fmaxf(0.0f, 0.0f);
  17246. fmaxl(0.0l, 0.0l);
  17247. fmin(0.0, 0.0);
  17248. fminf(0.0f, 0.0f);
  17249. fminl(0.0l, 0.0l);
  17250. hypot(0.0, 0.0);
  17251. hypotf(0.0f, 0.0f);
  17252. hypotl(0.0l, 0.0l);
  17253. ilogb(0.0);
  17254. ilogbf(0.0f);
  17255. ilogbl(0.0l);
  17256. lgamma(0.0);
  17257. lgammaf(0.0f);
  17258. lgammal(0.0l);
  17259. #ifndef __APPLE__ /* see below */
  17260. llrint(0.0);
  17261. llrintf(0.0f);
  17262. llrintl(0.0l);
  17263. llround(0.0);
  17264. llroundf(0.0f);
  17265. llroundl(0.0l);
  17266. #endif
  17267. log1p(0.0);
  17268. log1pf(0.0f);
  17269. log1pl(0.0l);
  17270. log2(0.0);
  17271. log2f(0.0f);
  17272. log2l(0.0l);
  17273. logb(0.0);
  17274. logbf(0.0f);
  17275. logbl(0.0l);
  17276. lrint(0.0);
  17277. lrintf(0.0f);
  17278. lrintl(0.0l);
  17279. lround(0.0);
  17280. lroundf(0.0f);
  17281. lroundl(0.0l);
  17282. nan(0);
  17283. nanf(0);
  17284. nanl(0);
  17285. nearbyint(0.0);
  17286. nearbyintf(0.0f);
  17287. nearbyintl(0.0l);
  17288. nextafter(0.0, 0.0);
  17289. nextafterf(0.0f, 0.0f);
  17290. nextafterl(0.0l, 0.0l);
  17291. nexttoward(0.0, 0.0);
  17292. nexttowardf(0.0f, 0.0f);
  17293. nexttowardl(0.0l, 0.0l);
  17294. remainder(0.0, 0.0);
  17295. remainderf(0.0f, 0.0f);
  17296. remainderl(0.0l, 0.0l);
  17297. remquo(0.0, 0.0, 0);
  17298. remquof(0.0f, 0.0f, 0);
  17299. remquol(0.0l, 0.0l, 0);
  17300. rint(0.0);
  17301. rintf(0.0f);
  17302. rintl(0.0l);
  17303. round(0.0);
  17304. roundf(0.0f);
  17305. roundl(0.0l);
  17306. scalbln(0.0, 0l);
  17307. scalblnf(0.0f, 0l);
  17308. scalblnl(0.0l, 0l);
  17309. scalbn(0.0, 0);
  17310. scalbnf(0.0f, 0);
  17311. scalbnl(0.0l, 0);
  17312. tgamma(0.0);
  17313. tgammaf(0.0f);
  17314. tgammal(0.0l);
  17315. trunc(0.0);
  17316. truncf(0.0f);
  17317. truncl(0.0l);
  17318. ;
  17319. return 0;
  17320. }
  17321. _ACEOF
  17322. if ac_fn_cxx_try_compile "$LINENO"; then :
  17323. glibcxx_cv_c99_math_tr1=yes
  17324. else
  17325. glibcxx_cv_c99_math_tr1=no
  17326. fi
  17327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17328. fi
  17329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_tr1" >&5
  17330. $as_echo "$glibcxx_cv_c99_math_tr1" >&6; }
  17331. if test x"$glibcxx_cv_c99_math_tr1" = x"yes"; then
  17332. $as_echo "#define _GLIBCXX_USE_C99_MATH_TR1 1" >>confdefs.h
  17333. case "${target_os}" in
  17334. darwin*)
  17335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 rounding functions in <math.h>" >&5
  17336. $as_echo_n "checking for ISO C99 rounding functions in <math.h>... " >&6; }
  17337. if ${glibcxx_cv_c99_math_llround+:} false; then :
  17338. $as_echo_n "(cached) " >&6
  17339. else
  17340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17341. /* end confdefs.h. */
  17342. #include <math.h>
  17343. int
  17344. main ()
  17345. {
  17346. llrint(0.0);
  17347. llrintf(0.0f);
  17348. llrintl(0.0l);
  17349. llround(0.0);
  17350. llroundf(0.0f);
  17351. llroundl(0.0l);
  17352. ;
  17353. return 0;
  17354. }
  17355. _ACEOF
  17356. if ac_fn_cxx_try_compile "$LINENO"; then :
  17357. glibcxx_cv_c99_math_llround=yes
  17358. else
  17359. glibcxx_cv_c99_math_llround=no
  17360. fi
  17361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17362. fi
  17363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_llround" >&5
  17364. $as_echo "$glibcxx_cv_c99_math_llround" >&6; }
  17365. ;;
  17366. esac
  17367. if test x"$glibcxx_cv_c99_math_llround" = x"no"; then
  17368. $as_echo "#define _GLIBCXX_NO_C99_ROUNDING_FUNCS 1" >>confdefs.h
  17369. fi
  17370. fi
  17371. # Check for the existence of <inttypes.h> functions (NB: doesn't make
  17372. # sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
  17373. ac_c99_inttypes_tr1=no;
  17374. if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
  17375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <inttypes.h>" >&5
  17376. $as_echo_n "checking for ISO C99 support to TR1 in <inttypes.h>... " >&6; }
  17377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17378. /* end confdefs.h. */
  17379. #include <inttypes.h>
  17380. int
  17381. main ()
  17382. {
  17383. intmax_t i, numer, denom, base;
  17384. const char* s;
  17385. char** endptr;
  17386. intmax_t ret = imaxabs(i);
  17387. imaxdiv_t dret = imaxdiv(numer, denom);
  17388. ret = strtoimax(s, endptr, base);
  17389. uintmax_t uret = strtoumax(s, endptr, base);
  17390. ;
  17391. return 0;
  17392. }
  17393. _ACEOF
  17394. if ac_fn_cxx_try_compile "$LINENO"; then :
  17395. ac_c99_inttypes_tr1=yes
  17396. else
  17397. ac_c99_inttypes_tr1=no
  17398. fi
  17399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_tr1" >&5
  17401. $as_echo "$ac_c99_inttypes_tr1" >&6; }
  17402. fi
  17403. if test x"$ac_c99_inttypes_tr1" = x"yes"; then
  17404. $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_TR1 1" >>confdefs.h
  17405. fi
  17406. # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
  17407. # make sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
  17408. ac_c99_inttypes_wchar_t_tr1=no;
  17409. if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
  17410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support to TR1 in <inttypes.h>" >&5
  17411. $as_echo_n "checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... " >&6; }
  17412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17413. /* end confdefs.h. */
  17414. #include <inttypes.h>
  17415. int
  17416. main ()
  17417. {
  17418. intmax_t base;
  17419. const wchar_t* s;
  17420. wchar_t** endptr;
  17421. intmax_t ret = wcstoimax(s, endptr, base);
  17422. uintmax_t uret = wcstoumax(s, endptr, base);
  17423. ;
  17424. return 0;
  17425. }
  17426. _ACEOF
  17427. if ac_fn_cxx_try_compile "$LINENO"; then :
  17428. ac_c99_inttypes_wchar_t_tr1=yes
  17429. else
  17430. ac_c99_inttypes_wchar_t_tr1=no
  17431. fi
  17432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t_tr1" >&5
  17434. $as_echo "$ac_c99_inttypes_wchar_t_tr1" >&6; }
  17435. fi
  17436. if test x"$ac_c99_inttypes_wchar_t_tr1" = x"yes"; then
  17437. $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1 1" >>confdefs.h
  17438. fi
  17439. # Check for the existence of the <stdbool.h> header.
  17440. for ac_header in stdbool.h
  17441. do :
  17442. ac_fn_cxx_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
  17443. if test "x$ac_cv_header_stdbool_h" = xyes; then :
  17444. cat >>confdefs.h <<_ACEOF
  17445. #define HAVE_STDBOOL_H 1
  17446. _ACEOF
  17447. fi
  17448. done
  17449. # Check for the existence of the <stdalign.h> header.
  17450. for ac_header in stdalign.h
  17451. do :
  17452. ac_fn_cxx_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
  17453. if test "x$ac_cv_header_stdalign_h" = xyes; then :
  17454. cat >>confdefs.h <<_ACEOF
  17455. #define HAVE_STDALIGN_H 1
  17456. _ACEOF
  17457. fi
  17458. done
  17459. CXXFLAGS="$ac_save_CXXFLAGS"
  17460. ac_ext=c
  17461. ac_cpp='$CPP $CPPFLAGS'
  17462. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17463. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17464. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17465. # For the EOF, SEEK_CUR, and SEEK_END integer constants.
  17466. if test "$is_hosted" = yes; then
  17467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of EOF" >&5
  17468. $as_echo_n "checking for the value of EOF... " >&6; }
  17469. if ${glibcxx_cv_stdio_eof+:} false; then :
  17470. $as_echo_n "(cached) " >&6
  17471. else
  17472. if ac_fn_c_compute_int "$LINENO" "EOF" "glibcxx_cv_stdio_eof" "#include <stdio.h>"; then :
  17473. else
  17474. as_fn_error $? "computing EOF failed" "$LINENO" 5
  17475. fi
  17476. fi
  17477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_eof" >&5
  17478. $as_echo "$glibcxx_cv_stdio_eof" >&6; }
  17479. cat >>confdefs.h <<_ACEOF
  17480. #define _GLIBCXX_STDIO_EOF $glibcxx_cv_stdio_eof
  17481. _ACEOF
  17482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_CUR" >&5
  17483. $as_echo_n "checking for the value of SEEK_CUR... " >&6; }
  17484. if ${glibcxx_cv_stdio_seek_cur+:} false; then :
  17485. $as_echo_n "(cached) " >&6
  17486. else
  17487. if ac_fn_c_compute_int "$LINENO" "SEEK_CUR" "glibcxx_cv_stdio_seek_cur" "#include <stdio.h>"; then :
  17488. else
  17489. as_fn_error $? "computing SEEK_CUR failed" "$LINENO" 5
  17490. fi
  17491. fi
  17492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_cur" >&5
  17493. $as_echo "$glibcxx_cv_stdio_seek_cur" >&6; }
  17494. cat >>confdefs.h <<_ACEOF
  17495. #define _GLIBCXX_STDIO_SEEK_CUR $glibcxx_cv_stdio_seek_cur
  17496. _ACEOF
  17497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_END" >&5
  17498. $as_echo_n "checking for the value of SEEK_END... " >&6; }
  17499. if ${glibcxx_cv_stdio_seek_end+:} false; then :
  17500. $as_echo_n "(cached) " >&6
  17501. else
  17502. if ac_fn_c_compute_int "$LINENO" "SEEK_END" "glibcxx_cv_stdio_seek_end" "#include <stdio.h>"; then :
  17503. else
  17504. as_fn_error $? "computing SEEK_END failed" "$LINENO" 5
  17505. fi
  17506. fi
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_end" >&5
  17508. $as_echo "$glibcxx_cv_stdio_seek_end" >&6; }
  17509. cat >>confdefs.h <<_ACEOF
  17510. #define _GLIBCXX_STDIO_SEEK_END $glibcxx_cv_stdio_seek_end
  17511. _ACEOF
  17512. fi
  17513. # For gettimeofday support.
  17514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
  17515. $as_echo_n "checking for gettimeofday... " >&6; }
  17516. ac_ext=cpp
  17517. ac_cpp='$CXXCPP $CPPFLAGS'
  17518. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17519. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17520. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17521. ac_save_CXXFLAGS="$CXXFLAGS"
  17522. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  17523. ac_has_gettimeofday=no;
  17524. for ac_header in sys/time.h
  17525. do :
  17526. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  17527. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  17528. cat >>confdefs.h <<_ACEOF
  17529. #define HAVE_SYS_TIME_H 1
  17530. _ACEOF
  17531. ac_has_sys_time_h=yes
  17532. else
  17533. ac_has_sys_time_h=no
  17534. fi
  17535. done
  17536. if test x"$ac_has_sys_time_h" = x"yes"; then
  17537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
  17538. $as_echo_n "checking for gettimeofday... " >&6; }
  17539. if test x$gcc_no_link = xyes; then
  17540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17541. /* end confdefs.h. */
  17542. #include <sys/time.h>
  17543. int
  17544. main ()
  17545. {
  17546. timeval tv; gettimeofday(&tv, 0);
  17547. ;
  17548. return 0;
  17549. }
  17550. _ACEOF
  17551. if ac_fn_cxx_try_compile "$LINENO"; then :
  17552. ac_has_gettimeofday=yes
  17553. else
  17554. ac_has_gettimeofday=no
  17555. fi
  17556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17557. else
  17558. if test x$gcc_no_link = xyes; then
  17559. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17560. fi
  17561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17562. /* end confdefs.h. */
  17563. #include <sys/time.h>
  17564. int
  17565. main ()
  17566. {
  17567. timeval tv; gettimeofday(&tv, 0);
  17568. ;
  17569. return 0;
  17570. }
  17571. _ACEOF
  17572. if ac_fn_cxx_try_link "$LINENO"; then :
  17573. ac_has_gettimeofday=yes
  17574. else
  17575. ac_has_gettimeofday=no
  17576. fi
  17577. rm -f core conftest.err conftest.$ac_objext \
  17578. conftest$ac_exeext conftest.$ac_ext
  17579. fi
  17580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
  17581. $as_echo "$ac_has_gettimeofday" >&6; }
  17582. fi
  17583. if test x"$ac_has_gettimeofday" = x"yes"; then
  17584. $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
  17585. fi
  17586. CXXFLAGS="$ac_save_CXXFLAGS"
  17587. ac_ext=c
  17588. ac_cpp='$CPP $CPPFLAGS'
  17589. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17590. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17591. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17592. # For clock_gettime, nanosleep and sched_yield support.
  17593. # Check whether --enable-libstdcxx-time was given.
  17594. if test "${enable_libstdcxx_time+set}" = set; then :
  17595. enableval=$enable_libstdcxx_time;
  17596. case "$enableval" in
  17597. yes|no|rt) ;;
  17598. *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
  17599. esac
  17600. else
  17601. enable_libstdcxx_time=auto
  17602. fi
  17603. ac_ext=cpp
  17604. ac_cpp='$CXXCPP $CPPFLAGS'
  17605. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17606. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17607. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  17608. ac_save_CXXFLAGS="$CXXFLAGS"
  17609. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  17610. ac_save_LIBS="$LIBS"
  17611. ac_has_clock_monotonic=no
  17612. ac_has_clock_realtime=no
  17613. ac_has_nanosleep=no
  17614. ac_has_sched_yield=no
  17615. if test x"$enable_libstdcxx_time" = x"auto"; then
  17616. case "${target_os}" in
  17617. cygwin*)
  17618. ac_has_nanosleep=yes
  17619. ;;
  17620. darwin*)
  17621. ac_has_nanosleep=yes
  17622. ac_has_sched_yield=yes
  17623. ;;
  17624. # VxWorks has nanosleep as soon as the kernel is configured with
  17625. # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
  17626. vxworks*)
  17627. ac_has_nanosleep=yes
  17628. ;;
  17629. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
  17630. # Don't use link test for freestanding library, in case gcc_no_link=yes
  17631. if test x"$is_hosted" = xyes; then
  17632. # Versions of glibc before 2.17 needed -lrt for clock_gettime.
  17633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  17634. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  17635. if ${ac_cv_search_clock_gettime+:} false; then :
  17636. $as_echo_n "(cached) " >&6
  17637. else
  17638. ac_func_search_save_LIBS=$LIBS
  17639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17640. /* end confdefs.h. */
  17641. /* Override any GCC internal prototype to avoid an error.
  17642. Use char because int might match the return type of a GCC
  17643. builtin and then its argument prototype would still apply. */
  17644. #ifdef __cplusplus
  17645. extern "C"
  17646. #endif
  17647. char clock_gettime ();
  17648. int
  17649. main ()
  17650. {
  17651. return clock_gettime ();
  17652. ;
  17653. return 0;
  17654. }
  17655. _ACEOF
  17656. for ac_lib in '' rt; do
  17657. if test -z "$ac_lib"; then
  17658. ac_res="none required"
  17659. else
  17660. ac_res=-l$ac_lib
  17661. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17662. fi
  17663. if test x$gcc_no_link = xyes; then
  17664. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17665. fi
  17666. if ac_fn_cxx_try_link "$LINENO"; then :
  17667. ac_cv_search_clock_gettime=$ac_res
  17668. fi
  17669. rm -f core conftest.err conftest.$ac_objext \
  17670. conftest$ac_exeext
  17671. if ${ac_cv_search_clock_gettime+:} false; then :
  17672. break
  17673. fi
  17674. done
  17675. if ${ac_cv_search_clock_gettime+:} false; then :
  17676. else
  17677. ac_cv_search_clock_gettime=no
  17678. fi
  17679. rm conftest.$ac_ext
  17680. LIBS=$ac_func_search_save_LIBS
  17681. fi
  17682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  17683. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  17684. ac_res=$ac_cv_search_clock_gettime
  17685. if test "$ac_res" != no; then :
  17686. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17687. fi
  17688. if test x"$ac_cv_search_clock_gettime" = x"none required"; then
  17689. ac_has_clock_monotonic=yes
  17690. ac_has_clock_realtime=yes
  17691. fi
  17692. fi
  17693. ac_has_nanosleep=yes
  17694. ac_has_sched_yield=yes
  17695. ;;
  17696. freebsd*|netbsd*|dragonfly*|rtems*)
  17697. ac_has_clock_monotonic=yes
  17698. ac_has_clock_realtime=yes
  17699. ac_has_nanosleep=yes
  17700. ac_has_sched_yield=yes
  17701. ;;
  17702. openbsd*)
  17703. ac_has_clock_monotonic=yes
  17704. ac_has_clock_realtime=yes
  17705. ac_has_nanosleep=yes
  17706. ;;
  17707. solaris*)
  17708. ac_has_clock_monotonic=yes
  17709. ac_has_clock_realtime=yes
  17710. ac_has_nanosleep=yes
  17711. ac_has_sched_yield=yes
  17712. ;;
  17713. uclinux*)
  17714. ac_has_nanosleep=yes
  17715. ac_has_sched_yield=yes
  17716. esac
  17717. elif test x"$enable_libstdcxx_time" != x"no"; then
  17718. if test x"$enable_libstdcxx_time" = x"rt"; then
  17719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  17720. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  17721. if ${ac_cv_search_clock_gettime+:} false; then :
  17722. $as_echo_n "(cached) " >&6
  17723. else
  17724. ac_func_search_save_LIBS=$LIBS
  17725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17726. /* end confdefs.h. */
  17727. /* Override any GCC internal prototype to avoid an error.
  17728. Use char because int might match the return type of a GCC
  17729. builtin and then its argument prototype would still apply. */
  17730. #ifdef __cplusplus
  17731. extern "C"
  17732. #endif
  17733. char clock_gettime ();
  17734. int
  17735. main ()
  17736. {
  17737. return clock_gettime ();
  17738. ;
  17739. return 0;
  17740. }
  17741. _ACEOF
  17742. for ac_lib in '' rt; do
  17743. if test -z "$ac_lib"; then
  17744. ac_res="none required"
  17745. else
  17746. ac_res=-l$ac_lib
  17747. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17748. fi
  17749. if test x$gcc_no_link = xyes; then
  17750. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17751. fi
  17752. if ac_fn_cxx_try_link "$LINENO"; then :
  17753. ac_cv_search_clock_gettime=$ac_res
  17754. fi
  17755. rm -f core conftest.err conftest.$ac_objext \
  17756. conftest$ac_exeext
  17757. if ${ac_cv_search_clock_gettime+:} false; then :
  17758. break
  17759. fi
  17760. done
  17761. if ${ac_cv_search_clock_gettime+:} false; then :
  17762. else
  17763. ac_cv_search_clock_gettime=no
  17764. fi
  17765. rm conftest.$ac_ext
  17766. LIBS=$ac_func_search_save_LIBS
  17767. fi
  17768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  17769. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  17770. ac_res=$ac_cv_search_clock_gettime
  17771. if test "$ac_res" != no; then :
  17772. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17773. fi
  17774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
  17775. $as_echo_n "checking for library containing nanosleep... " >&6; }
  17776. if ${ac_cv_search_nanosleep+:} false; then :
  17777. $as_echo_n "(cached) " >&6
  17778. else
  17779. ac_func_search_save_LIBS=$LIBS
  17780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17781. /* end confdefs.h. */
  17782. /* Override any GCC internal prototype to avoid an error.
  17783. Use char because int might match the return type of a GCC
  17784. builtin and then its argument prototype would still apply. */
  17785. #ifdef __cplusplus
  17786. extern "C"
  17787. #endif
  17788. char nanosleep ();
  17789. int
  17790. main ()
  17791. {
  17792. return nanosleep ();
  17793. ;
  17794. return 0;
  17795. }
  17796. _ACEOF
  17797. for ac_lib in '' rt; do
  17798. if test -z "$ac_lib"; then
  17799. ac_res="none required"
  17800. else
  17801. ac_res=-l$ac_lib
  17802. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17803. fi
  17804. if test x$gcc_no_link = xyes; then
  17805. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17806. fi
  17807. if ac_fn_cxx_try_link "$LINENO"; then :
  17808. ac_cv_search_nanosleep=$ac_res
  17809. fi
  17810. rm -f core conftest.err conftest.$ac_objext \
  17811. conftest$ac_exeext
  17812. if ${ac_cv_search_nanosleep+:} false; then :
  17813. break
  17814. fi
  17815. done
  17816. if ${ac_cv_search_nanosleep+:} false; then :
  17817. else
  17818. ac_cv_search_nanosleep=no
  17819. fi
  17820. rm conftest.$ac_ext
  17821. LIBS=$ac_func_search_save_LIBS
  17822. fi
  17823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
  17824. $as_echo "$ac_cv_search_nanosleep" >&6; }
  17825. ac_res=$ac_cv_search_nanosleep
  17826. if test "$ac_res" != no; then :
  17827. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17828. fi
  17829. else
  17830. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  17831. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  17832. fi
  17833. ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17834. if test "x$ac_cv_func_nanosleep" = xyes; then :
  17835. fi
  17836. fi
  17837. case "$ac_cv_search_clock_gettime" in
  17838. -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
  17839. ;;
  17840. esac
  17841. case "$ac_cv_search_nanosleep" in
  17842. -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
  17843. ;;
  17844. esac
  17845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
  17846. $as_echo_n "checking for library containing sched_yield... " >&6; }
  17847. if ${ac_cv_search_sched_yield+:} false; then :
  17848. $as_echo_n "(cached) " >&6
  17849. else
  17850. ac_func_search_save_LIBS=$LIBS
  17851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17852. /* end confdefs.h. */
  17853. /* Override any GCC internal prototype to avoid an error.
  17854. Use char because int might match the return type of a GCC
  17855. builtin and then its argument prototype would still apply. */
  17856. #ifdef __cplusplus
  17857. extern "C"
  17858. #endif
  17859. char sched_yield ();
  17860. int
  17861. main ()
  17862. {
  17863. return sched_yield ();
  17864. ;
  17865. return 0;
  17866. }
  17867. _ACEOF
  17868. for ac_lib in '' rt; do
  17869. if test -z "$ac_lib"; then
  17870. ac_res="none required"
  17871. else
  17872. ac_res=-l$ac_lib
  17873. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17874. fi
  17875. if test x$gcc_no_link = xyes; then
  17876. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17877. fi
  17878. if ac_fn_cxx_try_link "$LINENO"; then :
  17879. ac_cv_search_sched_yield=$ac_res
  17880. fi
  17881. rm -f core conftest.err conftest.$ac_objext \
  17882. conftest$ac_exeext
  17883. if ${ac_cv_search_sched_yield+:} false; then :
  17884. break
  17885. fi
  17886. done
  17887. if ${ac_cv_search_sched_yield+:} false; then :
  17888. else
  17889. ac_cv_search_sched_yield=no
  17890. fi
  17891. rm conftest.$ac_ext
  17892. LIBS=$ac_func_search_save_LIBS
  17893. fi
  17894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
  17895. $as_echo "$ac_cv_search_sched_yield" >&6; }
  17896. ac_res=$ac_cv_search_sched_yield
  17897. if test "$ac_res" != no; then :
  17898. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17899. fi
  17900. case "$ac_cv_search_sched_yield" in
  17901. -lrt*)
  17902. if test x"$enable_libstdcxx_time" = x"rt"; then
  17903. GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
  17904. ac_has_sched_yield=yes
  17905. fi
  17906. ;;
  17907. *)
  17908. ac_has_sched_yield=yes
  17909. ;;
  17910. esac
  17911. for ac_header in unistd.h
  17912. do :
  17913. ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  17914. if test "x$ac_cv_header_unistd_h" = xyes; then :
  17915. cat >>confdefs.h <<_ACEOF
  17916. #define HAVE_UNISTD_H 1
  17917. _ACEOF
  17918. ac_has_unistd_h=yes
  17919. else
  17920. ac_has_unistd_h=no
  17921. fi
  17922. done
  17923. if test x"$ac_has_unistd_h" = x"yes"; then
  17924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
  17925. $as_echo_n "checking for monotonic clock... " >&6; }
  17926. if test x$gcc_no_link = xyes; then
  17927. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17928. fi
  17929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17930. /* end confdefs.h. */
  17931. #include <unistd.h>
  17932. #include <time.h>
  17933. int
  17934. main ()
  17935. {
  17936. #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
  17937. timespec tp;
  17938. #endif
  17939. clock_gettime(CLOCK_MONOTONIC, &tp);
  17940. ;
  17941. return 0;
  17942. }
  17943. _ACEOF
  17944. if ac_fn_cxx_try_link "$LINENO"; then :
  17945. ac_has_clock_monotonic=yes
  17946. else
  17947. ac_has_clock_monotonic=no
  17948. fi
  17949. rm -f core conftest.err conftest.$ac_objext \
  17950. conftest$ac_exeext conftest.$ac_ext
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
  17952. $as_echo "$ac_has_clock_monotonic" >&6; }
  17953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
  17954. $as_echo_n "checking for realtime clock... " >&6; }
  17955. if test x$gcc_no_link = xyes; then
  17956. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17957. fi
  17958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17959. /* end confdefs.h. */
  17960. #include <unistd.h>
  17961. #include <time.h>
  17962. int
  17963. main ()
  17964. {
  17965. #if _POSIX_TIMERS > 0
  17966. timespec tp;
  17967. #endif
  17968. clock_gettime(CLOCK_REALTIME, &tp);
  17969. ;
  17970. return 0;
  17971. }
  17972. _ACEOF
  17973. if ac_fn_cxx_try_link "$LINENO"; then :
  17974. ac_has_clock_realtime=yes
  17975. else
  17976. ac_has_clock_realtime=no
  17977. fi
  17978. rm -f core conftest.err conftest.$ac_objext \
  17979. conftest$ac_exeext conftest.$ac_ext
  17980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
  17981. $as_echo "$ac_has_clock_realtime" >&6; }
  17982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
  17983. $as_echo_n "checking for nanosleep... " >&6; }
  17984. if test x$gcc_no_link = xyes; then
  17985. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  17986. fi
  17987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17988. /* end confdefs.h. */
  17989. #include <unistd.h>
  17990. #include <time.h>
  17991. int
  17992. main ()
  17993. {
  17994. #if _POSIX_TIMERS > 0
  17995. timespec tp;
  17996. #endif
  17997. nanosleep(&tp, 0);
  17998. ;
  17999. return 0;
  18000. }
  18001. _ACEOF
  18002. if ac_fn_cxx_try_link "$LINENO"; then :
  18003. ac_has_nanosleep=yes
  18004. else
  18005. ac_has_nanosleep=no
  18006. fi
  18007. rm -f core conftest.err conftest.$ac_objext \
  18008. conftest$ac_exeext conftest.$ac_ext
  18009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
  18010. $as_echo "$ac_has_nanosleep" >&6; }
  18011. fi
  18012. fi
  18013. if test x"$ac_has_clock_monotonic" != x"yes"; then
  18014. case ${target_os} in
  18015. linux* | uclinux*)
  18016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
  18017. $as_echo_n "checking for clock_gettime syscall... " >&6; }
  18018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18019. /* end confdefs.h. */
  18020. #include <unistd.h>
  18021. #include <time.h>
  18022. #include <sys/syscall.h>
  18023. int
  18024. main ()
  18025. {
  18026. #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
  18027. timespec tp;
  18028. #endif
  18029. syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
  18030. syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
  18031. ;
  18032. return 0;
  18033. }
  18034. _ACEOF
  18035. if ac_fn_cxx_try_compile "$LINENO"; then :
  18036. ac_has_clock_gettime_syscall=yes
  18037. else
  18038. ac_has_clock_gettime_syscall=no
  18039. fi
  18040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
  18042. $as_echo "$ac_has_clock_gettime_syscall" >&6; }
  18043. if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
  18044. $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
  18045. ac_has_clock_monotonic=yes
  18046. ac_has_clock_realtime=yes
  18047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
  18048. $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
  18049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18050. /* end confdefs.h. */
  18051. #include <time.h>
  18052. #include <sys/syscall.h>
  18053. int
  18054. main ()
  18055. {
  18056. #ifdef SYS_clock_gettime64
  18057. #if SYS_clock_gettime64 != SYS_clock_gettime
  18058. // We need to use SYS_clock_gettime and libc appears to
  18059. // also know about the SYS_clock_gettime64 syscall.
  18060. // Check that userspace doesn't use time64 version of timespec.
  18061. static_assert(sizeof(timespec::tv_sec) == sizeof(long),
  18062. "struct timespec must be compatible with SYS_clock_gettime");
  18063. #endif
  18064. #endif
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. if ac_fn_cxx_try_compile "$LINENO"; then :
  18070. ac_timespec_matches_syscall=yes
  18071. else
  18072. ac_timespec_matches_syscall=no
  18073. fi
  18074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
  18076. $as_echo "$ac_timespec_matches_syscall" >&6; }
  18077. if test x"$ac_timespec_matches_syscall" = no; then
  18078. as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
  18079. fi
  18080. fi;;
  18081. esac
  18082. fi
  18083. if test x"$ac_has_clock_monotonic" = x"yes"; then
  18084. $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
  18085. fi
  18086. if test x"$ac_has_clock_realtime" = x"yes"; then
  18087. $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
  18088. fi
  18089. if test x"$ac_has_sched_yield" = x"yes"; then
  18090. $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
  18091. fi
  18092. if test x"$ac_has_nanosleep" = x"yes"; then
  18093. $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
  18094. else
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
  18096. $as_echo_n "checking for sleep... " >&6; }
  18097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18098. /* end confdefs.h. */
  18099. #include <unistd.h>
  18100. int
  18101. main ()
  18102. {
  18103. sleep(1)
  18104. ;
  18105. return 0;
  18106. }
  18107. _ACEOF
  18108. if ac_fn_cxx_try_compile "$LINENO"; then :
  18109. ac_has_sleep=yes
  18110. else
  18111. ac_has_sleep=no
  18112. fi
  18113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18114. if test x"$ac_has_sleep" = x"yes"; then
  18115. $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
  18116. fi
  18117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
  18118. $as_echo "$ac_has_sleep" >&6; }
  18119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
  18120. $as_echo_n "checking for usleep... " >&6; }
  18121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18122. /* end confdefs.h. */
  18123. #include <unistd.h>
  18124. int
  18125. main ()
  18126. {
  18127. sleep(1);
  18128. usleep(100);
  18129. ;
  18130. return 0;
  18131. }
  18132. _ACEOF
  18133. if ac_fn_cxx_try_compile "$LINENO"; then :
  18134. ac_has_usleep=yes
  18135. else
  18136. ac_has_usleep=no
  18137. fi
  18138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18139. if test x"$ac_has_usleep" = x"yes"; then
  18140. $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
  18141. fi
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
  18143. $as_echo "$ac_has_usleep" >&6; }
  18144. fi
  18145. if test x"$ac_has_nanosleep$ac_has_sleep" = x"nono"; then
  18146. ac_no_sleep=yes
  18147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Sleep" >&5
  18148. $as_echo_n "checking for Sleep... " >&6; }
  18149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18150. /* end confdefs.h. */
  18151. #include <windows.h>
  18152. int
  18153. main ()
  18154. {
  18155. Sleep(1)
  18156. ;
  18157. return 0;
  18158. }
  18159. _ACEOF
  18160. if ac_fn_cxx_try_compile "$LINENO"; then :
  18161. ac_has_win32_sleep=yes
  18162. else
  18163. ac_has_win32_sleep=no
  18164. fi
  18165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18166. if test x"$ac_has_win32_sleep" = x"yes"; then
  18167. $as_echo "#define HAVE_WIN32_SLEEP 1" >>confdefs.h
  18168. ac_no_sleep=no
  18169. fi
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_win32_sleep" >&5
  18171. $as_echo "$ac_has_win32_sleep" >&6; }
  18172. fi
  18173. if test x"$ac_no_sleep" = x"yes"; then
  18174. $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
  18175. fi
  18176. CXXFLAGS="$ac_save_CXXFLAGS"
  18177. LIBS="$ac_save_LIBS"
  18178. ac_ext=c
  18179. ac_cpp='$CPP $CPPFLAGS'
  18180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18183. # Check for tmpnam which is obsolescent in POSIX.1-2008
  18184. ac_ext=cpp
  18185. ac_cpp='$CXXCPP $CPPFLAGS'
  18186. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18187. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18188. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18189. ac_save_CXXFLAGS="$CXXFLAGS"
  18190. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpnam" >&5
  18192. $as_echo_n "checking for tmpnam... " >&6; }
  18193. if ${glibcxx_cv_TMPNAM+:} false; then :
  18194. $as_echo_n "(cached) " >&6
  18195. else
  18196. if test x$gcc_no_link = xyes; then
  18197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18198. /* end confdefs.h. */
  18199. #include <stdio.h>
  18200. int
  18201. main ()
  18202. {
  18203. char *tmp = tmpnam(NULL);
  18204. ;
  18205. return 0;
  18206. }
  18207. _ACEOF
  18208. if ac_fn_cxx_try_compile "$LINENO"; then :
  18209. glibcxx_cv_TMPNAM=yes
  18210. else
  18211. glibcxx_cv_TMPNAM=no
  18212. fi
  18213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18214. else
  18215. if test x$gcc_no_link = xyes; then
  18216. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18217. fi
  18218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18219. /* end confdefs.h. */
  18220. #include <stdio.h>
  18221. int
  18222. main ()
  18223. {
  18224. char *tmp = tmpnam(NULL);
  18225. ;
  18226. return 0;
  18227. }
  18228. _ACEOF
  18229. if ac_fn_cxx_try_link "$LINENO"; then :
  18230. glibcxx_cv_TMPNAM=yes
  18231. else
  18232. glibcxx_cv_TMPNAM=no
  18233. fi
  18234. rm -f core conftest.err conftest.$ac_objext \
  18235. conftest$ac_exeext conftest.$ac_ext
  18236. fi
  18237. fi
  18238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_TMPNAM" >&5
  18239. $as_echo "$glibcxx_cv_TMPNAM" >&6; }
  18240. if test $glibcxx_cv_TMPNAM = yes; then
  18241. $as_echo "#define _GLIBCXX_USE_TMPNAM 1" >>confdefs.h
  18242. fi
  18243. CXXFLAGS="$ac_save_CXXFLAGS"
  18244. ac_ext=c
  18245. ac_cpp='$CPP $CPPFLAGS'
  18246. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18247. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18248. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18249. # For pthread_cond_clockwait
  18250. ac_ext=cpp
  18251. ac_cpp='$CXXCPP $CPPFLAGS'
  18252. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18253. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18254. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18255. ac_save_CXXFLAGS="$CXXFLAGS"
  18256. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18257. ac_save_LIBS="$LIBS"
  18258. LIBS="$LIBS -lpthread"
  18259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_clockwait" >&5
  18260. $as_echo_n "checking for pthread_cond_clockwait... " >&6; }
  18261. if ${glibcxx_cv_PTHREAD_COND_CLOCKWAIT+:} false; then :
  18262. $as_echo_n "(cached) " >&6
  18263. else
  18264. if test x$gcc_no_link = xyes; then
  18265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18266. /* end confdefs.h. */
  18267. #include <pthread.h>
  18268. int
  18269. main ()
  18270. {
  18271. pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
  18272. ;
  18273. return 0;
  18274. }
  18275. _ACEOF
  18276. if ac_fn_cxx_try_compile "$LINENO"; then :
  18277. glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
  18278. else
  18279. glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
  18280. fi
  18281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18282. else
  18283. if test x$gcc_no_link = xyes; then
  18284. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18285. fi
  18286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #include <pthread.h>
  18289. int
  18290. main ()
  18291. {
  18292. pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
  18293. ;
  18294. return 0;
  18295. }
  18296. _ACEOF
  18297. if ac_fn_cxx_try_link "$LINENO"; then :
  18298. glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
  18299. else
  18300. glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
  18301. fi
  18302. rm -f core conftest.err conftest.$ac_objext \
  18303. conftest$ac_exeext conftest.$ac_ext
  18304. fi
  18305. fi
  18306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&5
  18307. $as_echo "$glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&6; }
  18308. if test $glibcxx_cv_PTHREAD_COND_CLOCKWAIT = yes; then
  18309. $as_echo "#define _GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT 1" >>confdefs.h
  18310. fi
  18311. CXXFLAGS="$ac_save_CXXFLAGS"
  18312. LIBS="$ac_save_LIBS"
  18313. ac_ext=c
  18314. ac_cpp='$CPP $CPPFLAGS'
  18315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18318. # For pthread_mutex_clocklock
  18319. ac_ext=cpp
  18320. ac_cpp='$CXXCPP $CPPFLAGS'
  18321. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18322. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18323. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18324. ac_save_CXXFLAGS="$CXXFLAGS"
  18325. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18326. ac_save_LIBS="$LIBS"
  18327. LIBS="$LIBS -lpthread"
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_clocklock" >&5
  18329. $as_echo_n "checking for pthread_mutex_clocklock... " >&6; }
  18330. if ${glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK+:} false; then :
  18331. $as_echo_n "(cached) " >&6
  18332. else
  18333. if test x$gcc_no_link = xyes; then
  18334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18335. /* end confdefs.h. */
  18336. #include <pthread.h>
  18337. int
  18338. main ()
  18339. {
  18340. pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. if ac_fn_cxx_try_compile "$LINENO"; then :
  18346. glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
  18347. else
  18348. glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18351. else
  18352. if test x$gcc_no_link = xyes; then
  18353. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18354. fi
  18355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18356. /* end confdefs.h. */
  18357. #include <pthread.h>
  18358. int
  18359. main ()
  18360. {
  18361. pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
  18362. ;
  18363. return 0;
  18364. }
  18365. _ACEOF
  18366. if ac_fn_cxx_try_link "$LINENO"; then :
  18367. glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
  18368. else
  18369. glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
  18370. fi
  18371. rm -f core conftest.err conftest.$ac_objext \
  18372. conftest$ac_exeext conftest.$ac_ext
  18373. fi
  18374. fi
  18375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&5
  18376. $as_echo "$glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&6; }
  18377. if test $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK = yes; then
  18378. $as_echo "#define _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK 1" >>confdefs.h
  18379. fi
  18380. CXXFLAGS="$ac_save_CXXFLAGS"
  18381. LIBS="$ac_save_LIBS"
  18382. ac_ext=c
  18383. ac_cpp='$CPP $CPPFLAGS'
  18384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18387. # For pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock
  18388. ac_ext=cpp
  18389. ac_cpp='$CXXCPP $CPPFLAGS'
  18390. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18391. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18392. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18393. ac_save_CXXFLAGS="$CXXFLAGS"
  18394. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18395. ac_save_LIBS="$LIBS"
  18396. LIBS="$LIBS -lpthread"
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock" >&5
  18398. $as_echo_n "checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock... " >&6; }
  18399. if ${glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK+:} false; then :
  18400. $as_echo_n "(cached) " >&6
  18401. else
  18402. if test x$gcc_no_link = xyes; then
  18403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18404. /* end confdefs.h. */
  18405. #include <pthread.h>
  18406. int
  18407. main ()
  18408. {
  18409. pthread_rwlock_t rwl; struct timespec ts;
  18410. int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
  18411. int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
  18412. ;
  18413. return 0;
  18414. }
  18415. _ACEOF
  18416. if ac_fn_cxx_try_compile "$LINENO"; then :
  18417. glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
  18418. else
  18419. glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
  18420. fi
  18421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18422. else
  18423. if test x$gcc_no_link = xyes; then
  18424. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18425. fi
  18426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18427. /* end confdefs.h. */
  18428. #include <pthread.h>
  18429. int
  18430. main ()
  18431. {
  18432. pthread_rwlock_t rwl; struct timespec ts;
  18433. int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
  18434. int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
  18435. ;
  18436. return 0;
  18437. }
  18438. _ACEOF
  18439. if ac_fn_cxx_try_link "$LINENO"; then :
  18440. glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
  18441. else
  18442. glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
  18443. fi
  18444. rm -f core conftest.err conftest.$ac_objext \
  18445. conftest$ac_exeext conftest.$ac_ext
  18446. fi
  18447. fi
  18448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&5
  18449. $as_echo "$glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&6; }
  18450. if test $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK = yes; then
  18451. $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_CLOCKLOCK 1" >>confdefs.h
  18452. fi
  18453. CXXFLAGS="$ac_save_CXXFLAGS"
  18454. LIBS="$ac_save_LIBS"
  18455. ac_ext=c
  18456. ac_cpp='$CPP $CPPFLAGS'
  18457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18460. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  18461. if test "x$ac_cv_header_locale_h" = xyes; then :
  18462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  18463. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  18464. if ${ac_cv_val_LC_MESSAGES+:} false; then :
  18465. $as_echo_n "(cached) " >&6
  18466. else
  18467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18468. /* end confdefs.h. */
  18469. #include <locale.h>
  18470. int
  18471. main ()
  18472. {
  18473. return LC_MESSAGES
  18474. ;
  18475. return 0;
  18476. }
  18477. _ACEOF
  18478. if ac_fn_c_try_compile "$LINENO"; then :
  18479. ac_cv_val_LC_MESSAGES=yes
  18480. else
  18481. ac_cv_val_LC_MESSAGES=no
  18482. fi
  18483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18484. fi
  18485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_val_LC_MESSAGES" >&5
  18486. $as_echo "$ac_cv_val_LC_MESSAGES" >&6; }
  18487. if test $ac_cv_val_LC_MESSAGES = yes; then
  18488. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  18489. fi
  18490. fi
  18491. # For hardware_concurrency
  18492. for ac_header in sys/sysinfo.h
  18493. do :
  18494. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
  18495. if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
  18496. cat >>confdefs.h <<_ACEOF
  18497. #define HAVE_SYS_SYSINFO_H 1
  18498. _ACEOF
  18499. fi
  18500. done
  18501. ac_ext=cpp
  18502. ac_cpp='$CXXCPP $CPPFLAGS'
  18503. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18504. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18505. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18506. ac_save_CXXFLAGS="$CXXFLAGS"
  18507. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_nprocs" >&5
  18509. $as_echo_n "checking for get_nprocs... " >&6; }
  18510. if ${glibcxx_cv_GET_NPROCS+:} false; then :
  18511. $as_echo_n "(cached) " >&6
  18512. else
  18513. if test x$gcc_no_link = xyes; then
  18514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18515. /* end confdefs.h. */
  18516. #include <sys/sysinfo.h>
  18517. int
  18518. main ()
  18519. {
  18520. int n = get_nprocs();
  18521. ;
  18522. return 0;
  18523. }
  18524. _ACEOF
  18525. if ac_fn_cxx_try_compile "$LINENO"; then :
  18526. glibcxx_cv_GET_NPROCS=yes
  18527. else
  18528. glibcxx_cv_GET_NPROCS=no
  18529. fi
  18530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18531. else
  18532. if test x$gcc_no_link = xyes; then
  18533. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18534. fi
  18535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18536. /* end confdefs.h. */
  18537. #include <sys/sysinfo.h>
  18538. int
  18539. main ()
  18540. {
  18541. int n = get_nprocs();
  18542. ;
  18543. return 0;
  18544. }
  18545. _ACEOF
  18546. if ac_fn_cxx_try_link "$LINENO"; then :
  18547. glibcxx_cv_GET_NPROCS=yes
  18548. else
  18549. glibcxx_cv_GET_NPROCS=no
  18550. fi
  18551. rm -f core conftest.err conftest.$ac_objext \
  18552. conftest$ac_exeext conftest.$ac_ext
  18553. fi
  18554. fi
  18555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_GET_NPROCS" >&5
  18556. $as_echo "$glibcxx_cv_GET_NPROCS" >&6; }
  18557. if test $glibcxx_cv_GET_NPROCS = yes; then
  18558. $as_echo "#define _GLIBCXX_USE_GET_NPROCS 1" >>confdefs.h
  18559. fi
  18560. CXXFLAGS="$ac_save_CXXFLAGS"
  18561. ac_ext=c
  18562. ac_cpp='$CPP $CPPFLAGS'
  18563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18566. for ac_header in unistd.h
  18567. do :
  18568. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  18569. if test "x$ac_cv_header_unistd_h" = xyes; then :
  18570. cat >>confdefs.h <<_ACEOF
  18571. #define HAVE_UNISTD_H 1
  18572. _ACEOF
  18573. fi
  18574. done
  18575. ac_ext=cpp
  18576. ac_cpp='$CXXCPP $CPPFLAGS'
  18577. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18578. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18580. ac_save_CXXFLAGS="$CXXFLAGS"
  18581. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5
  18583. $as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
  18584. if ${glibcxx_cv_SC_NPROCESSORS_ONLN+:} false; then :
  18585. $as_echo_n "(cached) " >&6
  18586. else
  18587. if test x$gcc_no_link = xyes; then
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. #include <unistd.h>
  18591. int
  18592. main ()
  18593. {
  18594. int n = sysconf(_SC_NPROCESSORS_ONLN);
  18595. ;
  18596. return 0;
  18597. }
  18598. _ACEOF
  18599. if ac_fn_cxx_try_compile "$LINENO"; then :
  18600. glibcxx_cv_SC_NPROCESSORS_ONLN=yes
  18601. else
  18602. glibcxx_cv_SC_NPROCESSORS_ONLN=no
  18603. fi
  18604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18605. else
  18606. if test x$gcc_no_link = xyes; then
  18607. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18608. fi
  18609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18610. /* end confdefs.h. */
  18611. #include <unistd.h>
  18612. int
  18613. main ()
  18614. {
  18615. int n = sysconf(_SC_NPROCESSORS_ONLN);
  18616. ;
  18617. return 0;
  18618. }
  18619. _ACEOF
  18620. if ac_fn_cxx_try_link "$LINENO"; then :
  18621. glibcxx_cv_SC_NPROCESSORS_ONLN=yes
  18622. else
  18623. glibcxx_cv_SC_NPROCESSORS_ONLN=no
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext \
  18626. conftest$ac_exeext conftest.$ac_ext
  18627. fi
  18628. fi
  18629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROCESSORS_ONLN" >&5
  18630. $as_echo "$glibcxx_cv_SC_NPROCESSORS_ONLN" >&6; }
  18631. if test $glibcxx_cv_SC_NPROCESSORS_ONLN = yes; then
  18632. $as_echo "#define _GLIBCXX_USE_SC_NPROCESSORS_ONLN 1" >>confdefs.h
  18633. fi
  18634. CXXFLAGS="$ac_save_CXXFLAGS"
  18635. ac_ext=c
  18636. ac_cpp='$CPP $CPPFLAGS'
  18637. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18638. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18640. ac_ext=cpp
  18641. ac_cpp='$CXXCPP $CPPFLAGS'
  18642. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18643. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18644. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18645. ac_save_CXXFLAGS="$CXXFLAGS"
  18646. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROC_ONLN" >&5
  18648. $as_echo_n "checking for _SC_NPROC_ONLN... " >&6; }
  18649. if ${glibcxx_cv_SC_NPROC_ONLN+:} false; then :
  18650. $as_echo_n "(cached) " >&6
  18651. else
  18652. if test x$gcc_no_link = xyes; then
  18653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18654. /* end confdefs.h. */
  18655. #include <unistd.h>
  18656. int
  18657. main ()
  18658. {
  18659. int n = sysconf(_SC_NPROC_ONLN);
  18660. ;
  18661. return 0;
  18662. }
  18663. _ACEOF
  18664. if ac_fn_cxx_try_compile "$LINENO"; then :
  18665. glibcxx_cv_SC_NPROC_ONLN=yes
  18666. else
  18667. glibcxx_cv_SC_NPROC_ONLN=no
  18668. fi
  18669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18670. else
  18671. if test x$gcc_no_link = xyes; then
  18672. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18673. fi
  18674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18675. /* end confdefs.h. */
  18676. #include <unistd.h>
  18677. int
  18678. main ()
  18679. {
  18680. int n = sysconf(_SC_NPROC_ONLN);
  18681. ;
  18682. return 0;
  18683. }
  18684. _ACEOF
  18685. if ac_fn_cxx_try_link "$LINENO"; then :
  18686. glibcxx_cv_SC_NPROC_ONLN=yes
  18687. else
  18688. glibcxx_cv_SC_NPROC_ONLN=no
  18689. fi
  18690. rm -f core conftest.err conftest.$ac_objext \
  18691. conftest$ac_exeext conftest.$ac_ext
  18692. fi
  18693. fi
  18694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROC_ONLN" >&5
  18695. $as_echo "$glibcxx_cv_SC_NPROC_ONLN" >&6; }
  18696. if test $glibcxx_cv_SC_NPROC_ONLN = yes; then
  18697. $as_echo "#define _GLIBCXX_USE_SC_NPROC_ONLN 1" >>confdefs.h
  18698. fi
  18699. CXXFLAGS="$ac_save_CXXFLAGS"
  18700. ac_ext=c
  18701. ac_cpp='$CPP $CPPFLAGS'
  18702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18705. ac_ext=cpp
  18706. ac_cpp='$CXXCPP $CPPFLAGS'
  18707. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18708. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18709. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18710. ac_save_CXXFLAGS="$CXXFLAGS"
  18711. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_num_processors_np" >&5
  18713. $as_echo_n "checking for pthreads_num_processors_np... " >&6; }
  18714. if ${glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP+:} false; then :
  18715. $as_echo_n "(cached) " >&6
  18716. else
  18717. if test x$gcc_no_link = xyes; then
  18718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18719. /* end confdefs.h. */
  18720. #include <pthread.h>
  18721. int
  18722. main ()
  18723. {
  18724. int n = pthread_num_processors_np();
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_cxx_try_compile "$LINENO"; then :
  18730. glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
  18731. else
  18732. glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
  18733. fi
  18734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18735. else
  18736. if test x$gcc_no_link = xyes; then
  18737. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18738. fi
  18739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18740. /* end confdefs.h. */
  18741. #include <pthread.h>
  18742. int
  18743. main ()
  18744. {
  18745. int n = pthread_num_processors_np();
  18746. ;
  18747. return 0;
  18748. }
  18749. _ACEOF
  18750. if ac_fn_cxx_try_link "$LINENO"; then :
  18751. glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
  18752. else
  18753. glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
  18754. fi
  18755. rm -f core conftest.err conftest.$ac_objext \
  18756. conftest$ac_exeext conftest.$ac_ext
  18757. fi
  18758. fi
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&5
  18760. $as_echo "$glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&6; }
  18761. if test $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP = yes; then
  18762. $as_echo "#define _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP 1" >>confdefs.h
  18763. fi
  18764. CXXFLAGS="$ac_save_CXXFLAGS"
  18765. ac_ext=c
  18766. ac_cpp='$CPP $CPPFLAGS'
  18767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18770. ac_ext=cpp
  18771. ac_cpp='$CXXCPP $CPPFLAGS'
  18772. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18773. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18774. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18775. ac_save_CXXFLAGS="$CXXFLAGS"
  18776. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hw.ncpu sysctl" >&5
  18778. $as_echo_n "checking for hw.ncpu sysctl... " >&6; }
  18779. if ${glibcxx_cv_SYSCTL_HW_NCPU+:} false; then :
  18780. $as_echo_n "(cached) " >&6
  18781. else
  18782. if test x$gcc_no_link = xyes; then
  18783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18784. /* end confdefs.h. */
  18785. #include <stddef.h>
  18786. #include <sys/sysctl.h>
  18787. int
  18788. main ()
  18789. {
  18790. int count;
  18791. size_t size = sizeof(count);
  18792. int mib[] = { CTL_HW, HW_NCPU };
  18793. sysctl(mib, 2, &count, &size, NULL, 0);
  18794. ;
  18795. return 0;
  18796. }
  18797. _ACEOF
  18798. if ac_fn_cxx_try_compile "$LINENO"; then :
  18799. glibcxx_cv_SYSCTL_HW_NCPU=yes
  18800. else
  18801. glibcxx_cv_SYSCTL_HW_NCPU=no
  18802. fi
  18803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18804. else
  18805. if test x$gcc_no_link = xyes; then
  18806. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  18807. fi
  18808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18809. /* end confdefs.h. */
  18810. #include <stddef.h>
  18811. #include <sys/sysctl.h>
  18812. int
  18813. main ()
  18814. {
  18815. int count;
  18816. size_t size = sizeof(count);
  18817. int mib[] = { CTL_HW, HW_NCPU };
  18818. sysctl(mib, 2, &count, &size, NULL, 0);
  18819. ;
  18820. return 0;
  18821. }
  18822. _ACEOF
  18823. if ac_fn_cxx_try_link "$LINENO"; then :
  18824. glibcxx_cv_SYSCTL_HW_NCPU=yes
  18825. else
  18826. glibcxx_cv_SYSCTL_HW_NCPU=no
  18827. fi
  18828. rm -f core conftest.err conftest.$ac_objext \
  18829. conftest$ac_exeext conftest.$ac_ext
  18830. fi
  18831. fi
  18832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SYSCTL_HW_NCPU" >&5
  18833. $as_echo "$glibcxx_cv_SYSCTL_HW_NCPU" >&6; }
  18834. if test $glibcxx_cv_SYSCTL_HW_NCPU = yes; then
  18835. $as_echo "#define _GLIBCXX_USE_SYSCTL_HW_NCPU 1" >>confdefs.h
  18836. fi
  18837. CXXFLAGS="$ac_save_CXXFLAGS"
  18838. ac_ext=c
  18839. ac_cpp='$CPP $CPPFLAGS'
  18840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18843. # Note that this test has to be run with the C language.
  18844. # Otherwise, sdt.h will try to include some headers from
  18845. # libstdc++ itself.
  18846. ac_ext=c
  18847. ac_cpp='$CPP $CPPFLAGS'
  18848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sys/sdt.h" >&5
  18852. $as_echo_n "checking for suitable sys/sdt.h... " >&6; }
  18853. if ${glibcxx_cv_sys_sdt_h+:} false; then :
  18854. $as_echo_n "(cached) " >&6
  18855. else
  18856. # Because we have to run the test in C, we use grep rather
  18857. # than the compiler to check for the bug. The bug is that
  18858. # were strings without trailing whitespace, causing g++
  18859. # to look for operator"". The pattern searches for the fixed
  18860. # output.
  18861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18862. /* end confdefs.h. */
  18863. #include <sys/sdt.h>
  18864. int f() { STAP_PROBE(hi, bob); }
  18865. _ACEOF
  18866. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18867. $EGREP " \",\" " >/dev/null 2>&1; then :
  18868. glibcxx_cv_sys_sdt_h=yes
  18869. else
  18870. glibcxx_cv_sys_sdt_h=no
  18871. fi
  18872. rm -f conftest*
  18873. fi
  18874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5
  18875. $as_echo "$glibcxx_cv_sys_sdt_h" >&6; }
  18876. ac_ext=c
  18877. ac_cpp='$CPP $CPPFLAGS'
  18878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18880. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18881. if test $glibcxx_cv_sys_sdt_h = yes; then
  18882. $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
  18883. fi
  18884. # Check for available headers.
  18885. for ac_header in endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
  18886. locale.h machine/endian.h machine/param.h nan.h stdint.h stdlib.h string.h \
  18887. strings.h sys/ipc.h sys/isa_defs.h sys/machine.h sys/param.h \
  18888. sys/resource.h sys/sem.h sys/stat.h sys/time.h sys/types.h unistd.h \
  18889. wchar.h wctype.h linux/types.h
  18890. do :
  18891. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18892. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  18893. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  18894. cat >>confdefs.h <<_ACEOF
  18895. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18896. _ACEOF
  18897. fi
  18898. done
  18899. for ac_header in linux/random.h
  18900. do :
  18901. ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "#ifdef HAVE_LINUX_TYPES_H
  18902. # include <linux/types.h>
  18903. #endif
  18904. "
  18905. if test "x$ac_cv_header_linux_random_h" = xyes; then :
  18906. cat >>confdefs.h <<_ACEOF
  18907. #define HAVE_LINUX_RANDOM_H 1
  18908. _ACEOF
  18909. fi
  18910. done
  18911. for ac_header in xlocale.h
  18912. do :
  18913. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  18914. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  18915. cat >>confdefs.h <<_ACEOF
  18916. #define HAVE_XLOCALE_H 1
  18917. _ACEOF
  18918. fi
  18919. done
  18920. # Only do link tests if native. Else, hardcode.
  18921. if $GLIBCXX_IS_NATIVE; then
  18922. # We can do more elaborate tests that assume a working linker.
  18923. CANADIAN=no
  18924. # Check whether --with-gnu-ld was given.
  18925. if test "${with_gnu_ld+set}" = set; then :
  18926. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  18927. else
  18928. with_gnu_ld=no
  18929. fi
  18930. ac_prog=ld
  18931. if test "$GCC" = yes; then
  18932. # Check if gcc -print-prog-name=ld gives a path.
  18933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  18934. $as_echo_n "checking for ld used by $CC... " >&6; }
  18935. case $host in
  18936. *-*-mingw*)
  18937. # gcc leaves a trailing carriage return which upsets mingw
  18938. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  18939. *)
  18940. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  18941. esac
  18942. case $ac_prog in
  18943. # Accept absolute paths.
  18944. [\\/]* | ?:[\\/]*)
  18945. re_direlt='/[^/][^/]*/\.\./'
  18946. # Canonicalize the pathname of ld
  18947. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  18948. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  18949. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  18950. done
  18951. test -z "$LD" && LD="$ac_prog"
  18952. ;;
  18953. "")
  18954. # If it fails, then pretend we aren't using GCC.
  18955. ac_prog=ld
  18956. ;;
  18957. *)
  18958. # If it is relative, then search for the first ld in PATH.
  18959. with_gnu_ld=unknown
  18960. ;;
  18961. esac
  18962. elif test "$with_gnu_ld" = yes; then
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  18964. $as_echo_n "checking for GNU ld... " >&6; }
  18965. else
  18966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  18967. $as_echo_n "checking for non-GNU ld... " >&6; }
  18968. fi
  18969. if ${lt_cv_path_LD+:} false; then :
  18970. $as_echo_n "(cached) " >&6
  18971. else
  18972. if test -z "$LD"; then
  18973. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18974. for ac_dir in $PATH; do
  18975. IFS="$lt_save_ifs"
  18976. test -z "$ac_dir" && ac_dir=.
  18977. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18978. lt_cv_path_LD="$ac_dir/$ac_prog"
  18979. # Check to see if the program is GNU ld. I'd rather use --version,
  18980. # but apparently some variants of GNU ld only accept -v.
  18981. # Break only if it was the GNU/non-GNU ld that we prefer.
  18982. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  18983. *GNU* | *'with BFD'*)
  18984. test "$with_gnu_ld" != no && break
  18985. ;;
  18986. *)
  18987. test "$with_gnu_ld" != yes && break
  18988. ;;
  18989. esac
  18990. fi
  18991. done
  18992. IFS="$lt_save_ifs"
  18993. else
  18994. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  18995. fi
  18996. fi
  18997. LD="$lt_cv_path_LD"
  18998. if test -n "$LD"; then
  18999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  19000. $as_echo "$LD" >&6; }
  19001. else
  19002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19003. $as_echo "no" >&6; }
  19004. fi
  19005. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  19006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  19007. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  19008. if ${lt_cv_prog_gnu_ld+:} false; then :
  19009. $as_echo_n "(cached) " >&6
  19010. else
  19011. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  19012. case `$LD -v 2>&1 </dev/null` in
  19013. *GNU* | *'with BFD'*)
  19014. lt_cv_prog_gnu_ld=yes
  19015. ;;
  19016. *)
  19017. lt_cv_prog_gnu_ld=no
  19018. ;;
  19019. esac
  19020. fi
  19021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  19022. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  19023. with_gnu_ld=$lt_cv_prog_gnu_ld
  19024. # If we're not using GNU ld, then there's no point in even trying these
  19025. # tests. Check for that first. We should have already tested for gld
  19026. # by now (in libtool), but require it now just to be safe...
  19027. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  19028. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  19029. # The name set by libtool depends on the version of libtool. Shame on us
  19030. # for depending on an impl detail, but c'est la vie. Older versions used
  19031. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  19032. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  19033. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  19034. # set (hence we're using an older libtool), then set it.
  19035. if test x${with_gnu_ld+set} != xset; then
  19036. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  19037. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  19038. with_gnu_ld=no
  19039. else
  19040. with_gnu_ld=$ac_cv_prog_gnu_ld
  19041. fi
  19042. fi
  19043. # Start by getting the version number. I think the libtool test already
  19044. # does some of this, but throws away the result.
  19045. glibcxx_ld_is_gold=no
  19046. glibcxx_ld_is_mold=no
  19047. if test x"$with_gnu_ld" = x"yes"; then
  19048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  19049. $as_echo_n "checking for ld version... " >&6; }
  19050. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  19051. glibcxx_ld_is_gold=yes
  19052. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  19053. glibcxx_ld_is_mold=yes
  19054. fi
  19055. ldver=`$LD --version 2>/dev/null |
  19056. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  19057. glibcxx_gnu_ld_version=`echo $ldver | \
  19058. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  19060. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  19061. fi
  19062. # Set --gc-sections.
  19063. glibcxx_have_gc_sections=no
  19064. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  19065. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  19066. glibcxx_have_gc_sections=yes
  19067. fi
  19068. else
  19069. glibcxx_gcsections_min_ld=21602
  19070. if test x"$with_gnu_ld" = x"yes" &&
  19071. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  19072. glibcxx_have_gc_sections=yes
  19073. fi
  19074. fi
  19075. if test "$glibcxx_have_gc_sections" = "yes"; then
  19076. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  19077. # NB: This flag only works reliably after 2.16.1. Configure tests
  19078. # for this are difficult, so hard wire a value that should work.
  19079. ac_test_CFLAGS="${CFLAGS+set}"
  19080. ac_save_CFLAGS="$CFLAGS"
  19081. CFLAGS='-Wl,--gc-sections'
  19082. # Check for -Wl,--gc-sections
  19083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  19084. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  19085. if test x$gcc_no_link = xyes; then
  19086. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19087. fi
  19088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19089. /* end confdefs.h. */
  19090. int one(void) { return 1; }
  19091. int two(void) { return 2; }
  19092. int
  19093. main ()
  19094. {
  19095. two();
  19096. ;
  19097. return 0;
  19098. }
  19099. _ACEOF
  19100. if ac_fn_c_try_link "$LINENO"; then :
  19101. ac_gcsections=yes
  19102. else
  19103. ac_gcsections=no
  19104. fi
  19105. rm -f core conftest.err conftest.$ac_objext \
  19106. conftest$ac_exeext conftest.$ac_ext
  19107. if test "$ac_gcsections" = "yes"; then
  19108. rm -f conftest.c
  19109. touch conftest.c
  19110. if $CC -c conftest.c; then
  19111. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  19112. grep "Warning: gc-sections option ignored" > /dev/null; then
  19113. ac_gcsections=no
  19114. fi
  19115. fi
  19116. rm -f conftest.c conftest.o conftest
  19117. fi
  19118. if test "$ac_gcsections" = "yes"; then
  19119. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  19120. fi
  19121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  19122. $as_echo "$ac_gcsections" >&6; }
  19123. if test "$ac_test_CFLAGS" = set; then
  19124. CFLAGS="$ac_save_CFLAGS"
  19125. else
  19126. # this is the suspicious part
  19127. CFLAGS=''
  19128. fi
  19129. fi
  19130. # Set -z,relro.
  19131. # Note this is only for shared objects.
  19132. ac_ld_relro=no
  19133. if test x"$with_gnu_ld" = x"yes"; then
  19134. # cygwin and mingw uses PE, which has no ELF relro support,
  19135. # multi target ld may confuse configure machinery
  19136. case "$host" in
  19137. *-*-cygwin*)
  19138. ;;
  19139. *-*-mingw*)
  19140. ;;
  19141. *)
  19142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  19143. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  19144. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  19145. if test -n "$cxx_z_relo"; then
  19146. OPT_LDFLAGS="-Wl,-z,relro"
  19147. ac_ld_relro=yes
  19148. fi
  19149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  19150. $as_echo "$ac_ld_relro" >&6; }
  19151. esac
  19152. fi
  19153. # Set linker optimization flags.
  19154. if test x"$with_gnu_ld" = x"yes"; then
  19155. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  19156. fi
  19157. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  19158. ac_save_CXXFLAGS="$CXXFLAGS"
  19159. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  19160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  19161. $as_echo_n "checking for sin in -lm... " >&6; }
  19162. if ${ac_cv_lib_m_sin+:} false; then :
  19163. $as_echo_n "(cached) " >&6
  19164. else
  19165. ac_check_lib_save_LIBS=$LIBS
  19166. LIBS="-lm $LIBS"
  19167. if test x$gcc_no_link = xyes; then
  19168. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  19169. fi
  19170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19171. /* end confdefs.h. */
  19172. /* Override any GCC internal prototype to avoid an error.
  19173. Use char because int might match the return type of a GCC
  19174. builtin and then its argument prototype would still apply. */
  19175. #ifdef __cplusplus
  19176. extern "C"
  19177. #endif
  19178. char sin ();
  19179. int
  19180. main ()
  19181. {
  19182. return sin ();
  19183. ;
  19184. return 0;
  19185. }
  19186. _ACEOF
  19187. if ac_fn_c_try_link "$LINENO"; then :
  19188. ac_cv_lib_m_sin=yes
  19189. else
  19190. ac_cv_lib_m_sin=no
  19191. fi
  19192. rm -f core conftest.err conftest.$ac_objext \
  19193. conftest$ac_exeext conftest.$ac_ext
  19194. LIBS=$ac_check_lib_save_LIBS
  19195. fi
  19196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  19197. $as_echo "$ac_cv_lib_m_sin" >&6; }
  19198. if test "x$ac_cv_lib_m_sin" = xyes; then :
  19199. libm="-lm"
  19200. fi
  19201. ac_save_LIBS="$LIBS"
  19202. LIBS="$LIBS $libm"
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  19204. $as_echo_n "checking for isinf declaration... " >&6; }
  19205. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  19206. if ${glibcxx_cv_func_isinf_use+:} false; then :
  19207. $as_echo_n "(cached) " >&6
  19208. else
  19209. ac_ext=cpp
  19210. ac_cpp='$CXXCPP $CPPFLAGS'
  19211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19215. /* end confdefs.h. */
  19216. #include <math.h>
  19217. #ifdef HAVE_IEEEFP_H
  19218. #include <ieeefp.h>
  19219. #endif
  19220. int
  19221. main ()
  19222. {
  19223. isinf(0);
  19224. ;
  19225. return 0;
  19226. }
  19227. _ACEOF
  19228. if ac_fn_cxx_try_compile "$LINENO"; then :
  19229. glibcxx_cv_func_isinf_use=yes
  19230. else
  19231. glibcxx_cv_func_isinf_use=no
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19234. ac_ext=c
  19235. ac_cpp='$CPP $CPPFLAGS'
  19236. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19237. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19238. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19239. fi
  19240. fi
  19241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  19242. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  19243. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  19244. for ac_func in isinf
  19245. do :
  19246. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  19247. if test "x$ac_cv_func_isinf" = xyes; then :
  19248. cat >>confdefs.h <<_ACEOF
  19249. #define HAVE_ISINF 1
  19250. _ACEOF
  19251. fi
  19252. done
  19253. else
  19254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  19255. $as_echo_n "checking for _isinf declaration... " >&6; }
  19256. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  19257. if ${glibcxx_cv_func__isinf_use+:} false; then :
  19258. $as_echo_n "(cached) " >&6
  19259. else
  19260. ac_ext=cpp
  19261. ac_cpp='$CXXCPP $CPPFLAGS'
  19262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19266. /* end confdefs.h. */
  19267. #include <math.h>
  19268. #ifdef HAVE_IEEEFP_H
  19269. #include <ieeefp.h>
  19270. #endif
  19271. int
  19272. main ()
  19273. {
  19274. _isinf(0);
  19275. ;
  19276. return 0;
  19277. }
  19278. _ACEOF
  19279. if ac_fn_cxx_try_compile "$LINENO"; then :
  19280. glibcxx_cv_func__isinf_use=yes
  19281. else
  19282. glibcxx_cv_func__isinf_use=no
  19283. fi
  19284. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19285. ac_ext=c
  19286. ac_cpp='$CPP $CPPFLAGS'
  19287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19290. fi
  19291. fi
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  19293. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  19294. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  19295. for ac_func in _isinf
  19296. do :
  19297. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  19298. if test "x$ac_cv_func__isinf" = xyes; then :
  19299. cat >>confdefs.h <<_ACEOF
  19300. #define HAVE__ISINF 1
  19301. _ACEOF
  19302. fi
  19303. done
  19304. fi
  19305. fi
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  19307. $as_echo_n "checking for isnan declaration... " >&6; }
  19308. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  19309. if ${glibcxx_cv_func_isnan_use+:} false; then :
  19310. $as_echo_n "(cached) " >&6
  19311. else
  19312. ac_ext=cpp
  19313. ac_cpp='$CXXCPP $CPPFLAGS'
  19314. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19315. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19316. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19318. /* end confdefs.h. */
  19319. #include <math.h>
  19320. #ifdef HAVE_IEEEFP_H
  19321. #include <ieeefp.h>
  19322. #endif
  19323. int
  19324. main ()
  19325. {
  19326. isnan(0);
  19327. ;
  19328. return 0;
  19329. }
  19330. _ACEOF
  19331. if ac_fn_cxx_try_compile "$LINENO"; then :
  19332. glibcxx_cv_func_isnan_use=yes
  19333. else
  19334. glibcxx_cv_func_isnan_use=no
  19335. fi
  19336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19337. ac_ext=c
  19338. ac_cpp='$CPP $CPPFLAGS'
  19339. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19340. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19341. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19342. fi
  19343. fi
  19344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  19345. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  19346. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  19347. for ac_func in isnan
  19348. do :
  19349. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  19350. if test "x$ac_cv_func_isnan" = xyes; then :
  19351. cat >>confdefs.h <<_ACEOF
  19352. #define HAVE_ISNAN 1
  19353. _ACEOF
  19354. fi
  19355. done
  19356. else
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  19358. $as_echo_n "checking for _isnan declaration... " >&6; }
  19359. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  19360. if ${glibcxx_cv_func__isnan_use+:} false; then :
  19361. $as_echo_n "(cached) " >&6
  19362. else
  19363. ac_ext=cpp
  19364. ac_cpp='$CXXCPP $CPPFLAGS'
  19365. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19366. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19367. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19369. /* end confdefs.h. */
  19370. #include <math.h>
  19371. #ifdef HAVE_IEEEFP_H
  19372. #include <ieeefp.h>
  19373. #endif
  19374. int
  19375. main ()
  19376. {
  19377. _isnan(0);
  19378. ;
  19379. return 0;
  19380. }
  19381. _ACEOF
  19382. if ac_fn_cxx_try_compile "$LINENO"; then :
  19383. glibcxx_cv_func__isnan_use=yes
  19384. else
  19385. glibcxx_cv_func__isnan_use=no
  19386. fi
  19387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19388. ac_ext=c
  19389. ac_cpp='$CPP $CPPFLAGS'
  19390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19393. fi
  19394. fi
  19395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  19396. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  19397. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  19398. for ac_func in _isnan
  19399. do :
  19400. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  19401. if test "x$ac_cv_func__isnan" = xyes; then :
  19402. cat >>confdefs.h <<_ACEOF
  19403. #define HAVE__ISNAN 1
  19404. _ACEOF
  19405. fi
  19406. done
  19407. fi
  19408. fi
  19409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  19410. $as_echo_n "checking for finite declaration... " >&6; }
  19411. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  19412. if ${glibcxx_cv_func_finite_use+:} false; then :
  19413. $as_echo_n "(cached) " >&6
  19414. else
  19415. ac_ext=cpp
  19416. ac_cpp='$CXXCPP $CPPFLAGS'
  19417. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19418. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19419. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19421. /* end confdefs.h. */
  19422. #include <math.h>
  19423. #ifdef HAVE_IEEEFP_H
  19424. #include <ieeefp.h>
  19425. #endif
  19426. int
  19427. main ()
  19428. {
  19429. finite(0);
  19430. ;
  19431. return 0;
  19432. }
  19433. _ACEOF
  19434. if ac_fn_cxx_try_compile "$LINENO"; then :
  19435. glibcxx_cv_func_finite_use=yes
  19436. else
  19437. glibcxx_cv_func_finite_use=no
  19438. fi
  19439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19440. ac_ext=c
  19441. ac_cpp='$CPP $CPPFLAGS'
  19442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19445. fi
  19446. fi
  19447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  19448. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  19449. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  19450. for ac_func in finite
  19451. do :
  19452. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  19453. if test "x$ac_cv_func_finite" = xyes; then :
  19454. cat >>confdefs.h <<_ACEOF
  19455. #define HAVE_FINITE 1
  19456. _ACEOF
  19457. fi
  19458. done
  19459. else
  19460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  19461. $as_echo_n "checking for _finite declaration... " >&6; }
  19462. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  19463. if ${glibcxx_cv_func__finite_use+:} false; then :
  19464. $as_echo_n "(cached) " >&6
  19465. else
  19466. ac_ext=cpp
  19467. ac_cpp='$CXXCPP $CPPFLAGS'
  19468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19472. /* end confdefs.h. */
  19473. #include <math.h>
  19474. #ifdef HAVE_IEEEFP_H
  19475. #include <ieeefp.h>
  19476. #endif
  19477. int
  19478. main ()
  19479. {
  19480. _finite(0);
  19481. ;
  19482. return 0;
  19483. }
  19484. _ACEOF
  19485. if ac_fn_cxx_try_compile "$LINENO"; then :
  19486. glibcxx_cv_func__finite_use=yes
  19487. else
  19488. glibcxx_cv_func__finite_use=no
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19491. ac_ext=c
  19492. ac_cpp='$CPP $CPPFLAGS'
  19493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19496. fi
  19497. fi
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  19499. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  19500. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  19501. for ac_func in _finite
  19502. do :
  19503. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  19504. if test "x$ac_cv_func__finite" = xyes; then :
  19505. cat >>confdefs.h <<_ACEOF
  19506. #define HAVE__FINITE 1
  19507. _ACEOF
  19508. fi
  19509. done
  19510. fi
  19511. fi
  19512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  19513. $as_echo_n "checking for sincos declaration... " >&6; }
  19514. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  19515. if ${glibcxx_cv_func_sincos_use+:} false; then :
  19516. $as_echo_n "(cached) " >&6
  19517. else
  19518. ac_ext=cpp
  19519. ac_cpp='$CXXCPP $CPPFLAGS'
  19520. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19521. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19522. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19524. /* end confdefs.h. */
  19525. #include <math.h>
  19526. int
  19527. main ()
  19528. {
  19529. sincos(0, 0, 0);
  19530. ;
  19531. return 0;
  19532. }
  19533. _ACEOF
  19534. if ac_fn_cxx_try_compile "$LINENO"; then :
  19535. glibcxx_cv_func_sincos_use=yes
  19536. else
  19537. glibcxx_cv_func_sincos_use=no
  19538. fi
  19539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19540. ac_ext=c
  19541. ac_cpp='$CPP $CPPFLAGS'
  19542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19545. fi
  19546. fi
  19547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  19548. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  19549. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  19550. for ac_func in sincos
  19551. do :
  19552. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  19553. if test "x$ac_cv_func_sincos" = xyes; then :
  19554. cat >>confdefs.h <<_ACEOF
  19555. #define HAVE_SINCOS 1
  19556. _ACEOF
  19557. fi
  19558. done
  19559. else
  19560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  19561. $as_echo_n "checking for _sincos declaration... " >&6; }
  19562. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  19563. if ${glibcxx_cv_func__sincos_use+:} false; then :
  19564. $as_echo_n "(cached) " >&6
  19565. else
  19566. ac_ext=cpp
  19567. ac_cpp='$CXXCPP $CPPFLAGS'
  19568. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19569. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19570. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19572. /* end confdefs.h. */
  19573. #include <math.h>
  19574. int
  19575. main ()
  19576. {
  19577. _sincos(0, 0, 0);
  19578. ;
  19579. return 0;
  19580. }
  19581. _ACEOF
  19582. if ac_fn_cxx_try_compile "$LINENO"; then :
  19583. glibcxx_cv_func__sincos_use=yes
  19584. else
  19585. glibcxx_cv_func__sincos_use=no
  19586. fi
  19587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19588. ac_ext=c
  19589. ac_cpp='$CPP $CPPFLAGS'
  19590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19593. fi
  19594. fi
  19595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  19596. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  19597. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  19598. for ac_func in _sincos
  19599. do :
  19600. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  19601. if test "x$ac_cv_func__sincos" = xyes; then :
  19602. cat >>confdefs.h <<_ACEOF
  19603. #define HAVE__SINCOS 1
  19604. _ACEOF
  19605. fi
  19606. done
  19607. fi
  19608. fi
  19609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  19610. $as_echo_n "checking for fpclass declaration... " >&6; }
  19611. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  19612. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  19613. $as_echo_n "(cached) " >&6
  19614. else
  19615. ac_ext=cpp
  19616. ac_cpp='$CXXCPP $CPPFLAGS'
  19617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19621. /* end confdefs.h. */
  19622. #include <math.h>
  19623. #ifdef HAVE_IEEEFP_H
  19624. #include <ieeefp.h>
  19625. #endif
  19626. int
  19627. main ()
  19628. {
  19629. fpclass(0);
  19630. ;
  19631. return 0;
  19632. }
  19633. _ACEOF
  19634. if ac_fn_cxx_try_compile "$LINENO"; then :
  19635. glibcxx_cv_func_fpclass_use=yes
  19636. else
  19637. glibcxx_cv_func_fpclass_use=no
  19638. fi
  19639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19640. ac_ext=c
  19641. ac_cpp='$CPP $CPPFLAGS'
  19642. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19643. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19644. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19645. fi
  19646. fi
  19647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  19648. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  19649. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  19650. for ac_func in fpclass
  19651. do :
  19652. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  19653. if test "x$ac_cv_func_fpclass" = xyes; then :
  19654. cat >>confdefs.h <<_ACEOF
  19655. #define HAVE_FPCLASS 1
  19656. _ACEOF
  19657. fi
  19658. done
  19659. else
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  19661. $as_echo_n "checking for _fpclass declaration... " >&6; }
  19662. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  19663. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  19664. $as_echo_n "(cached) " >&6
  19665. else
  19666. ac_ext=cpp
  19667. ac_cpp='$CXXCPP $CPPFLAGS'
  19668. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19669. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19670. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19672. /* end confdefs.h. */
  19673. #include <math.h>
  19674. #ifdef HAVE_IEEEFP_H
  19675. #include <ieeefp.h>
  19676. #endif
  19677. int
  19678. main ()
  19679. {
  19680. _fpclass(0);
  19681. ;
  19682. return 0;
  19683. }
  19684. _ACEOF
  19685. if ac_fn_cxx_try_compile "$LINENO"; then :
  19686. glibcxx_cv_func__fpclass_use=yes
  19687. else
  19688. glibcxx_cv_func__fpclass_use=no
  19689. fi
  19690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19691. ac_ext=c
  19692. ac_cpp='$CPP $CPPFLAGS'
  19693. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19694. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19695. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19696. fi
  19697. fi
  19698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  19699. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  19700. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  19701. for ac_func in _fpclass
  19702. do :
  19703. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  19704. if test "x$ac_cv_func__fpclass" = xyes; then :
  19705. cat >>confdefs.h <<_ACEOF
  19706. #define HAVE__FPCLASS 1
  19707. _ACEOF
  19708. fi
  19709. done
  19710. fi
  19711. fi
  19712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  19713. $as_echo_n "checking for qfpclass declaration... " >&6; }
  19714. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  19715. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  19716. $as_echo_n "(cached) " >&6
  19717. else
  19718. ac_ext=cpp
  19719. ac_cpp='$CXXCPP $CPPFLAGS'
  19720. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19721. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19722. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19724. /* end confdefs.h. */
  19725. #include <math.h>
  19726. #ifdef HAVE_IEEEFP_H
  19727. #include <ieeefp.h>
  19728. #endif
  19729. int
  19730. main ()
  19731. {
  19732. qfpclass(0);
  19733. ;
  19734. return 0;
  19735. }
  19736. _ACEOF
  19737. if ac_fn_cxx_try_compile "$LINENO"; then :
  19738. glibcxx_cv_func_qfpclass_use=yes
  19739. else
  19740. glibcxx_cv_func_qfpclass_use=no
  19741. fi
  19742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19743. ac_ext=c
  19744. ac_cpp='$CPP $CPPFLAGS'
  19745. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19746. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19747. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19748. fi
  19749. fi
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  19751. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  19752. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  19753. for ac_func in qfpclass
  19754. do :
  19755. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  19756. if test "x$ac_cv_func_qfpclass" = xyes; then :
  19757. cat >>confdefs.h <<_ACEOF
  19758. #define HAVE_QFPCLASS 1
  19759. _ACEOF
  19760. fi
  19761. done
  19762. else
  19763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  19764. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  19765. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  19766. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  19767. $as_echo_n "(cached) " >&6
  19768. else
  19769. ac_ext=cpp
  19770. ac_cpp='$CXXCPP $CPPFLAGS'
  19771. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19772. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19773. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19775. /* end confdefs.h. */
  19776. #include <math.h>
  19777. #ifdef HAVE_IEEEFP_H
  19778. #include <ieeefp.h>
  19779. #endif
  19780. int
  19781. main ()
  19782. {
  19783. _qfpclass(0);
  19784. ;
  19785. return 0;
  19786. }
  19787. _ACEOF
  19788. if ac_fn_cxx_try_compile "$LINENO"; then :
  19789. glibcxx_cv_func__qfpclass_use=yes
  19790. else
  19791. glibcxx_cv_func__qfpclass_use=no
  19792. fi
  19793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19794. ac_ext=c
  19795. ac_cpp='$CPP $CPPFLAGS'
  19796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19799. fi
  19800. fi
  19801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  19802. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  19803. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  19804. for ac_func in _qfpclass
  19805. do :
  19806. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  19807. if test "x$ac_cv_func__qfpclass" = xyes; then :
  19808. cat >>confdefs.h <<_ACEOF
  19809. #define HAVE__QFPCLASS 1
  19810. _ACEOF
  19811. fi
  19812. done
  19813. fi
  19814. fi
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  19816. $as_echo_n "checking for hypot declaration... " >&6; }
  19817. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  19818. if ${glibcxx_cv_func_hypot_use+:} false; then :
  19819. $as_echo_n "(cached) " >&6
  19820. else
  19821. ac_ext=cpp
  19822. ac_cpp='$CXXCPP $CPPFLAGS'
  19823. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19824. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19825. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19827. /* end confdefs.h. */
  19828. #include <math.h>
  19829. int
  19830. main ()
  19831. {
  19832. hypot(0, 0);
  19833. ;
  19834. return 0;
  19835. }
  19836. _ACEOF
  19837. if ac_fn_cxx_try_compile "$LINENO"; then :
  19838. glibcxx_cv_func_hypot_use=yes
  19839. else
  19840. glibcxx_cv_func_hypot_use=no
  19841. fi
  19842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19843. ac_ext=c
  19844. ac_cpp='$CPP $CPPFLAGS'
  19845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19848. fi
  19849. fi
  19850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  19851. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  19852. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  19853. for ac_func in hypot
  19854. do :
  19855. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  19856. if test "x$ac_cv_func_hypot" = xyes; then :
  19857. cat >>confdefs.h <<_ACEOF
  19858. #define HAVE_HYPOT 1
  19859. _ACEOF
  19860. fi
  19861. done
  19862. else
  19863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  19864. $as_echo_n "checking for _hypot declaration... " >&6; }
  19865. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  19866. if ${glibcxx_cv_func__hypot_use+:} false; then :
  19867. $as_echo_n "(cached) " >&6
  19868. else
  19869. ac_ext=cpp
  19870. ac_cpp='$CXXCPP $CPPFLAGS'
  19871. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19872. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19873. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19875. /* end confdefs.h. */
  19876. #include <math.h>
  19877. int
  19878. main ()
  19879. {
  19880. _hypot(0, 0);
  19881. ;
  19882. return 0;
  19883. }
  19884. _ACEOF
  19885. if ac_fn_cxx_try_compile "$LINENO"; then :
  19886. glibcxx_cv_func__hypot_use=yes
  19887. else
  19888. glibcxx_cv_func__hypot_use=no
  19889. fi
  19890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19891. ac_ext=c
  19892. ac_cpp='$CPP $CPPFLAGS'
  19893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19896. fi
  19897. fi
  19898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  19899. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  19900. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  19901. for ac_func in _hypot
  19902. do :
  19903. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  19904. if test "x$ac_cv_func__hypot" = xyes; then :
  19905. cat >>confdefs.h <<_ACEOF
  19906. #define HAVE__HYPOT 1
  19907. _ACEOF
  19908. fi
  19909. done
  19910. fi
  19911. fi
  19912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  19913. $as_echo_n "checking for float trig functions... " >&6; }
  19914. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  19915. $as_echo_n "(cached) " >&6
  19916. else
  19917. ac_ext=cpp
  19918. ac_cpp='$CXXCPP $CPPFLAGS'
  19919. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19920. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19921. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19923. /* end confdefs.h. */
  19924. #include <math.h>
  19925. int
  19926. main ()
  19927. {
  19928. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  19929. ;
  19930. return 0;
  19931. }
  19932. _ACEOF
  19933. if ac_fn_cxx_try_compile "$LINENO"; then :
  19934. glibcxx_cv_func_float_trig_use=yes
  19935. else
  19936. glibcxx_cv_func_float_trig_use=no
  19937. fi
  19938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19939. ac_ext=c
  19940. ac_cpp='$CPP $CPPFLAGS'
  19941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19944. fi
  19945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  19946. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  19947. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  19948. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  19949. do :
  19950. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19951. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19952. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  19953. cat >>confdefs.h <<_ACEOF
  19954. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19955. _ACEOF
  19956. fi
  19957. done
  19958. else
  19959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  19960. $as_echo_n "checking for _float trig functions... " >&6; }
  19961. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  19962. $as_echo_n "(cached) " >&6
  19963. else
  19964. ac_ext=cpp
  19965. ac_cpp='$CXXCPP $CPPFLAGS'
  19966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19970. /* end confdefs.h. */
  19971. #include <math.h>
  19972. int
  19973. main ()
  19974. {
  19975. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  19976. ;
  19977. return 0;
  19978. }
  19979. _ACEOF
  19980. if ac_fn_cxx_try_compile "$LINENO"; then :
  19981. glibcxx_cv_func__float_trig_use=yes
  19982. else
  19983. glibcxx_cv_func__float_trig_use=no
  19984. fi
  19985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19986. ac_ext=c
  19987. ac_cpp='$CPP $CPPFLAGS'
  19988. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19989. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19990. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19991. fi
  19992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  19993. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  19994. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  19995. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  19996. do :
  19997. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19998. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  19999. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20000. cat >>confdefs.h <<_ACEOF
  20001. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20002. _ACEOF
  20003. fi
  20004. done
  20005. fi
  20006. fi
  20007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  20008. $as_echo_n "checking for float round functions... " >&6; }
  20009. if ${glibcxx_cv_func_float_round_use+:} false; then :
  20010. $as_echo_n "(cached) " >&6
  20011. else
  20012. ac_ext=cpp
  20013. ac_cpp='$CXXCPP $CPPFLAGS'
  20014. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20015. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20016. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20018. /* end confdefs.h. */
  20019. #include <math.h>
  20020. int
  20021. main ()
  20022. {
  20023. ceilf (0); floorf (0);
  20024. ;
  20025. return 0;
  20026. }
  20027. _ACEOF
  20028. if ac_fn_cxx_try_compile "$LINENO"; then :
  20029. glibcxx_cv_func_float_round_use=yes
  20030. else
  20031. glibcxx_cv_func_float_round_use=no
  20032. fi
  20033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20034. ac_ext=c
  20035. ac_cpp='$CPP $CPPFLAGS'
  20036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20039. fi
  20040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  20041. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  20042. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  20043. for ac_func in ceilf floorf
  20044. do :
  20045. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20046. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20047. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20048. cat >>confdefs.h <<_ACEOF
  20049. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20050. _ACEOF
  20051. fi
  20052. done
  20053. else
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  20055. $as_echo_n "checking for _float round functions... " >&6; }
  20056. if ${glibcxx_cv_func__float_round_use+:} false; then :
  20057. $as_echo_n "(cached) " >&6
  20058. else
  20059. ac_ext=cpp
  20060. ac_cpp='$CXXCPP $CPPFLAGS'
  20061. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20062. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20063. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20065. /* end confdefs.h. */
  20066. #include <math.h>
  20067. int
  20068. main ()
  20069. {
  20070. _ceilf (0); _floorf (0);
  20071. ;
  20072. return 0;
  20073. }
  20074. _ACEOF
  20075. if ac_fn_cxx_try_compile "$LINENO"; then :
  20076. glibcxx_cv_func__float_round_use=yes
  20077. else
  20078. glibcxx_cv_func__float_round_use=no
  20079. fi
  20080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20081. ac_ext=c
  20082. ac_cpp='$CPP $CPPFLAGS'
  20083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20086. fi
  20087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  20088. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  20089. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  20090. for ac_func in _ceilf _floorf
  20091. do :
  20092. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20093. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20094. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  20095. cat >>confdefs.h <<_ACEOF
  20096. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20097. _ACEOF
  20098. fi
  20099. done
  20100. fi
  20101. fi
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  20103. $as_echo_n "checking for expf declaration... " >&6; }
  20104. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  20105. if ${glibcxx_cv_func_expf_use+:} false; then :
  20106. $as_echo_n "(cached) " >&6
  20107. else
  20108. ac_ext=cpp
  20109. ac_cpp='$CXXCPP $CPPFLAGS'
  20110. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20111. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20112. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20114. /* end confdefs.h. */
  20115. #include <math.h>
  20116. #ifdef HAVE_IEEEFP_H
  20117. #include <ieeefp.h>
  20118. #endif
  20119. int
  20120. main ()
  20121. {
  20122. expf(0);
  20123. ;
  20124. return 0;
  20125. }
  20126. _ACEOF
  20127. if ac_fn_cxx_try_compile "$LINENO"; then :
  20128. glibcxx_cv_func_expf_use=yes
  20129. else
  20130. glibcxx_cv_func_expf_use=no
  20131. fi
  20132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20133. ac_ext=c
  20134. ac_cpp='$CPP $CPPFLAGS'
  20135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20138. fi
  20139. fi
  20140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  20141. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  20142. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  20143. for ac_func in expf
  20144. do :
  20145. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  20146. if test "x$ac_cv_func_expf" = xyes; then :
  20147. cat >>confdefs.h <<_ACEOF
  20148. #define HAVE_EXPF 1
  20149. _ACEOF
  20150. fi
  20151. done
  20152. else
  20153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  20154. $as_echo_n "checking for _expf declaration... " >&6; }
  20155. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  20156. if ${glibcxx_cv_func__expf_use+:} false; then :
  20157. $as_echo_n "(cached) " >&6
  20158. else
  20159. ac_ext=cpp
  20160. ac_cpp='$CXXCPP $CPPFLAGS'
  20161. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20162. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20163. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20165. /* end confdefs.h. */
  20166. #include <math.h>
  20167. #ifdef HAVE_IEEEFP_H
  20168. #include <ieeefp.h>
  20169. #endif
  20170. int
  20171. main ()
  20172. {
  20173. _expf(0);
  20174. ;
  20175. return 0;
  20176. }
  20177. _ACEOF
  20178. if ac_fn_cxx_try_compile "$LINENO"; then :
  20179. glibcxx_cv_func__expf_use=yes
  20180. else
  20181. glibcxx_cv_func__expf_use=no
  20182. fi
  20183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20184. ac_ext=c
  20185. ac_cpp='$CPP $CPPFLAGS'
  20186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20189. fi
  20190. fi
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  20192. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  20193. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  20194. for ac_func in _expf
  20195. do :
  20196. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  20197. if test "x$ac_cv_func__expf" = xyes; then :
  20198. cat >>confdefs.h <<_ACEOF
  20199. #define HAVE__EXPF 1
  20200. _ACEOF
  20201. fi
  20202. done
  20203. fi
  20204. fi
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  20206. $as_echo_n "checking for isnanf declaration... " >&6; }
  20207. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  20208. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  20209. $as_echo_n "(cached) " >&6
  20210. else
  20211. ac_ext=cpp
  20212. ac_cpp='$CXXCPP $CPPFLAGS'
  20213. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20214. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20215. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20217. /* end confdefs.h. */
  20218. #include <math.h>
  20219. #ifdef HAVE_IEEEFP_H
  20220. #include <ieeefp.h>
  20221. #endif
  20222. int
  20223. main ()
  20224. {
  20225. isnanf(0);
  20226. ;
  20227. return 0;
  20228. }
  20229. _ACEOF
  20230. if ac_fn_cxx_try_compile "$LINENO"; then :
  20231. glibcxx_cv_func_isnanf_use=yes
  20232. else
  20233. glibcxx_cv_func_isnanf_use=no
  20234. fi
  20235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20236. ac_ext=c
  20237. ac_cpp='$CPP $CPPFLAGS'
  20238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20241. fi
  20242. fi
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  20244. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  20245. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  20246. for ac_func in isnanf
  20247. do :
  20248. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  20249. if test "x$ac_cv_func_isnanf" = xyes; then :
  20250. cat >>confdefs.h <<_ACEOF
  20251. #define HAVE_ISNANF 1
  20252. _ACEOF
  20253. fi
  20254. done
  20255. else
  20256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  20257. $as_echo_n "checking for _isnanf declaration... " >&6; }
  20258. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  20259. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  20260. $as_echo_n "(cached) " >&6
  20261. else
  20262. ac_ext=cpp
  20263. ac_cpp='$CXXCPP $CPPFLAGS'
  20264. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20265. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20266. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20268. /* end confdefs.h. */
  20269. #include <math.h>
  20270. #ifdef HAVE_IEEEFP_H
  20271. #include <ieeefp.h>
  20272. #endif
  20273. int
  20274. main ()
  20275. {
  20276. _isnanf(0);
  20277. ;
  20278. return 0;
  20279. }
  20280. _ACEOF
  20281. if ac_fn_cxx_try_compile "$LINENO"; then :
  20282. glibcxx_cv_func__isnanf_use=yes
  20283. else
  20284. glibcxx_cv_func__isnanf_use=no
  20285. fi
  20286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20287. ac_ext=c
  20288. ac_cpp='$CPP $CPPFLAGS'
  20289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20292. fi
  20293. fi
  20294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  20295. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  20296. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  20297. for ac_func in _isnanf
  20298. do :
  20299. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  20300. if test "x$ac_cv_func__isnanf" = xyes; then :
  20301. cat >>confdefs.h <<_ACEOF
  20302. #define HAVE__ISNANF 1
  20303. _ACEOF
  20304. fi
  20305. done
  20306. fi
  20307. fi
  20308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  20309. $as_echo_n "checking for isinff declaration... " >&6; }
  20310. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  20311. if ${glibcxx_cv_func_isinff_use+:} false; then :
  20312. $as_echo_n "(cached) " >&6
  20313. else
  20314. ac_ext=cpp
  20315. ac_cpp='$CXXCPP $CPPFLAGS'
  20316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20320. /* end confdefs.h. */
  20321. #include <math.h>
  20322. #ifdef HAVE_IEEEFP_H
  20323. #include <ieeefp.h>
  20324. #endif
  20325. int
  20326. main ()
  20327. {
  20328. isinff(0);
  20329. ;
  20330. return 0;
  20331. }
  20332. _ACEOF
  20333. if ac_fn_cxx_try_compile "$LINENO"; then :
  20334. glibcxx_cv_func_isinff_use=yes
  20335. else
  20336. glibcxx_cv_func_isinff_use=no
  20337. fi
  20338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20339. ac_ext=c
  20340. ac_cpp='$CPP $CPPFLAGS'
  20341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20344. fi
  20345. fi
  20346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  20347. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  20348. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  20349. for ac_func in isinff
  20350. do :
  20351. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  20352. if test "x$ac_cv_func_isinff" = xyes; then :
  20353. cat >>confdefs.h <<_ACEOF
  20354. #define HAVE_ISINFF 1
  20355. _ACEOF
  20356. fi
  20357. done
  20358. else
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  20360. $as_echo_n "checking for _isinff declaration... " >&6; }
  20361. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  20362. if ${glibcxx_cv_func__isinff_use+:} false; then :
  20363. $as_echo_n "(cached) " >&6
  20364. else
  20365. ac_ext=cpp
  20366. ac_cpp='$CXXCPP $CPPFLAGS'
  20367. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20368. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20369. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20371. /* end confdefs.h. */
  20372. #include <math.h>
  20373. #ifdef HAVE_IEEEFP_H
  20374. #include <ieeefp.h>
  20375. #endif
  20376. int
  20377. main ()
  20378. {
  20379. _isinff(0);
  20380. ;
  20381. return 0;
  20382. }
  20383. _ACEOF
  20384. if ac_fn_cxx_try_compile "$LINENO"; then :
  20385. glibcxx_cv_func__isinff_use=yes
  20386. else
  20387. glibcxx_cv_func__isinff_use=no
  20388. fi
  20389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20390. ac_ext=c
  20391. ac_cpp='$CPP $CPPFLAGS'
  20392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20395. fi
  20396. fi
  20397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  20398. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  20399. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  20400. for ac_func in _isinff
  20401. do :
  20402. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  20403. if test "x$ac_cv_func__isinff" = xyes; then :
  20404. cat >>confdefs.h <<_ACEOF
  20405. #define HAVE__ISINFF 1
  20406. _ACEOF
  20407. fi
  20408. done
  20409. fi
  20410. fi
  20411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  20412. $as_echo_n "checking for atan2f declaration... " >&6; }
  20413. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  20414. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  20415. $as_echo_n "(cached) " >&6
  20416. else
  20417. ac_ext=cpp
  20418. ac_cpp='$CXXCPP $CPPFLAGS'
  20419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20423. /* end confdefs.h. */
  20424. #include <math.h>
  20425. int
  20426. main ()
  20427. {
  20428. atan2f(0, 0);
  20429. ;
  20430. return 0;
  20431. }
  20432. _ACEOF
  20433. if ac_fn_cxx_try_compile "$LINENO"; then :
  20434. glibcxx_cv_func_atan2f_use=yes
  20435. else
  20436. glibcxx_cv_func_atan2f_use=no
  20437. fi
  20438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20439. ac_ext=c
  20440. ac_cpp='$CPP $CPPFLAGS'
  20441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20444. fi
  20445. fi
  20446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  20447. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  20448. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  20449. for ac_func in atan2f
  20450. do :
  20451. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  20452. if test "x$ac_cv_func_atan2f" = xyes; then :
  20453. cat >>confdefs.h <<_ACEOF
  20454. #define HAVE_ATAN2F 1
  20455. _ACEOF
  20456. fi
  20457. done
  20458. else
  20459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  20460. $as_echo_n "checking for _atan2f declaration... " >&6; }
  20461. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  20462. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  20463. $as_echo_n "(cached) " >&6
  20464. else
  20465. ac_ext=cpp
  20466. ac_cpp='$CXXCPP $CPPFLAGS'
  20467. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20468. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20469. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20471. /* end confdefs.h. */
  20472. #include <math.h>
  20473. int
  20474. main ()
  20475. {
  20476. _atan2f(0, 0);
  20477. ;
  20478. return 0;
  20479. }
  20480. _ACEOF
  20481. if ac_fn_cxx_try_compile "$LINENO"; then :
  20482. glibcxx_cv_func__atan2f_use=yes
  20483. else
  20484. glibcxx_cv_func__atan2f_use=no
  20485. fi
  20486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20487. ac_ext=c
  20488. ac_cpp='$CPP $CPPFLAGS'
  20489. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20490. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20491. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20492. fi
  20493. fi
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  20495. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  20496. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  20497. for ac_func in _atan2f
  20498. do :
  20499. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  20500. if test "x$ac_cv_func__atan2f" = xyes; then :
  20501. cat >>confdefs.h <<_ACEOF
  20502. #define HAVE__ATAN2F 1
  20503. _ACEOF
  20504. fi
  20505. done
  20506. fi
  20507. fi
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  20509. $as_echo_n "checking for fabsf declaration... " >&6; }
  20510. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  20511. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  20512. $as_echo_n "(cached) " >&6
  20513. else
  20514. ac_ext=cpp
  20515. ac_cpp='$CXXCPP $CPPFLAGS'
  20516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20520. /* end confdefs.h. */
  20521. #include <math.h>
  20522. #ifdef HAVE_IEEEFP_H
  20523. #include <ieeefp.h>
  20524. #endif
  20525. int
  20526. main ()
  20527. {
  20528. fabsf(0);
  20529. ;
  20530. return 0;
  20531. }
  20532. _ACEOF
  20533. if ac_fn_cxx_try_compile "$LINENO"; then :
  20534. glibcxx_cv_func_fabsf_use=yes
  20535. else
  20536. glibcxx_cv_func_fabsf_use=no
  20537. fi
  20538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20539. ac_ext=c
  20540. ac_cpp='$CPP $CPPFLAGS'
  20541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20544. fi
  20545. fi
  20546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  20547. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  20548. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  20549. for ac_func in fabsf
  20550. do :
  20551. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  20552. if test "x$ac_cv_func_fabsf" = xyes; then :
  20553. cat >>confdefs.h <<_ACEOF
  20554. #define HAVE_FABSF 1
  20555. _ACEOF
  20556. fi
  20557. done
  20558. else
  20559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  20560. $as_echo_n "checking for _fabsf declaration... " >&6; }
  20561. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  20562. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  20563. $as_echo_n "(cached) " >&6
  20564. else
  20565. ac_ext=cpp
  20566. ac_cpp='$CXXCPP $CPPFLAGS'
  20567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20571. /* end confdefs.h. */
  20572. #include <math.h>
  20573. #ifdef HAVE_IEEEFP_H
  20574. #include <ieeefp.h>
  20575. #endif
  20576. int
  20577. main ()
  20578. {
  20579. _fabsf(0);
  20580. ;
  20581. return 0;
  20582. }
  20583. _ACEOF
  20584. if ac_fn_cxx_try_compile "$LINENO"; then :
  20585. glibcxx_cv_func__fabsf_use=yes
  20586. else
  20587. glibcxx_cv_func__fabsf_use=no
  20588. fi
  20589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20590. ac_ext=c
  20591. ac_cpp='$CPP $CPPFLAGS'
  20592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20595. fi
  20596. fi
  20597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  20598. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  20599. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  20600. for ac_func in _fabsf
  20601. do :
  20602. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  20603. if test "x$ac_cv_func__fabsf" = xyes; then :
  20604. cat >>confdefs.h <<_ACEOF
  20605. #define HAVE__FABSF 1
  20606. _ACEOF
  20607. fi
  20608. done
  20609. fi
  20610. fi
  20611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  20612. $as_echo_n "checking for fmodf declaration... " >&6; }
  20613. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  20614. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  20615. $as_echo_n "(cached) " >&6
  20616. else
  20617. ac_ext=cpp
  20618. ac_cpp='$CXXCPP $CPPFLAGS'
  20619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20623. /* end confdefs.h. */
  20624. #include <math.h>
  20625. int
  20626. main ()
  20627. {
  20628. fmodf(0, 0);
  20629. ;
  20630. return 0;
  20631. }
  20632. _ACEOF
  20633. if ac_fn_cxx_try_compile "$LINENO"; then :
  20634. glibcxx_cv_func_fmodf_use=yes
  20635. else
  20636. glibcxx_cv_func_fmodf_use=no
  20637. fi
  20638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20639. ac_ext=c
  20640. ac_cpp='$CPP $CPPFLAGS'
  20641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20644. fi
  20645. fi
  20646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  20647. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  20648. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  20649. for ac_func in fmodf
  20650. do :
  20651. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  20652. if test "x$ac_cv_func_fmodf" = xyes; then :
  20653. cat >>confdefs.h <<_ACEOF
  20654. #define HAVE_FMODF 1
  20655. _ACEOF
  20656. fi
  20657. done
  20658. else
  20659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  20660. $as_echo_n "checking for _fmodf declaration... " >&6; }
  20661. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  20662. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  20663. $as_echo_n "(cached) " >&6
  20664. else
  20665. ac_ext=cpp
  20666. ac_cpp='$CXXCPP $CPPFLAGS'
  20667. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20668. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20669. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20671. /* end confdefs.h. */
  20672. #include <math.h>
  20673. int
  20674. main ()
  20675. {
  20676. _fmodf(0, 0);
  20677. ;
  20678. return 0;
  20679. }
  20680. _ACEOF
  20681. if ac_fn_cxx_try_compile "$LINENO"; then :
  20682. glibcxx_cv_func__fmodf_use=yes
  20683. else
  20684. glibcxx_cv_func__fmodf_use=no
  20685. fi
  20686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20687. ac_ext=c
  20688. ac_cpp='$CPP $CPPFLAGS'
  20689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20692. fi
  20693. fi
  20694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  20695. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  20696. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  20697. for ac_func in _fmodf
  20698. do :
  20699. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  20700. if test "x$ac_cv_func__fmodf" = xyes; then :
  20701. cat >>confdefs.h <<_ACEOF
  20702. #define HAVE__FMODF 1
  20703. _ACEOF
  20704. fi
  20705. done
  20706. fi
  20707. fi
  20708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  20709. $as_echo_n "checking for frexpf declaration... " >&6; }
  20710. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  20711. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  20712. $as_echo_n "(cached) " >&6
  20713. else
  20714. ac_ext=cpp
  20715. ac_cpp='$CXXCPP $CPPFLAGS'
  20716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20720. /* end confdefs.h. */
  20721. #include <math.h>
  20722. int
  20723. main ()
  20724. {
  20725. frexpf(0, 0);
  20726. ;
  20727. return 0;
  20728. }
  20729. _ACEOF
  20730. if ac_fn_cxx_try_compile "$LINENO"; then :
  20731. glibcxx_cv_func_frexpf_use=yes
  20732. else
  20733. glibcxx_cv_func_frexpf_use=no
  20734. fi
  20735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20736. ac_ext=c
  20737. ac_cpp='$CPP $CPPFLAGS'
  20738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20741. fi
  20742. fi
  20743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  20744. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  20745. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  20746. for ac_func in frexpf
  20747. do :
  20748. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  20749. if test "x$ac_cv_func_frexpf" = xyes; then :
  20750. cat >>confdefs.h <<_ACEOF
  20751. #define HAVE_FREXPF 1
  20752. _ACEOF
  20753. fi
  20754. done
  20755. else
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  20757. $as_echo_n "checking for _frexpf declaration... " >&6; }
  20758. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  20759. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  20760. $as_echo_n "(cached) " >&6
  20761. else
  20762. ac_ext=cpp
  20763. ac_cpp='$CXXCPP $CPPFLAGS'
  20764. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20765. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20766. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20768. /* end confdefs.h. */
  20769. #include <math.h>
  20770. int
  20771. main ()
  20772. {
  20773. _frexpf(0, 0);
  20774. ;
  20775. return 0;
  20776. }
  20777. _ACEOF
  20778. if ac_fn_cxx_try_compile "$LINENO"; then :
  20779. glibcxx_cv_func__frexpf_use=yes
  20780. else
  20781. glibcxx_cv_func__frexpf_use=no
  20782. fi
  20783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20784. ac_ext=c
  20785. ac_cpp='$CPP $CPPFLAGS'
  20786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20789. fi
  20790. fi
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  20792. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  20793. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  20794. for ac_func in _frexpf
  20795. do :
  20796. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  20797. if test "x$ac_cv_func__frexpf" = xyes; then :
  20798. cat >>confdefs.h <<_ACEOF
  20799. #define HAVE__FREXPF 1
  20800. _ACEOF
  20801. fi
  20802. done
  20803. fi
  20804. fi
  20805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  20806. $as_echo_n "checking for hypotf declaration... " >&6; }
  20807. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  20808. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  20809. $as_echo_n "(cached) " >&6
  20810. else
  20811. ac_ext=cpp
  20812. ac_cpp='$CXXCPP $CPPFLAGS'
  20813. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20814. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20815. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20817. /* end confdefs.h. */
  20818. #include <math.h>
  20819. int
  20820. main ()
  20821. {
  20822. hypotf(0, 0);
  20823. ;
  20824. return 0;
  20825. }
  20826. _ACEOF
  20827. if ac_fn_cxx_try_compile "$LINENO"; then :
  20828. glibcxx_cv_func_hypotf_use=yes
  20829. else
  20830. glibcxx_cv_func_hypotf_use=no
  20831. fi
  20832. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20833. ac_ext=c
  20834. ac_cpp='$CPP $CPPFLAGS'
  20835. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20836. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20837. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20838. fi
  20839. fi
  20840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  20841. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  20842. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  20843. for ac_func in hypotf
  20844. do :
  20845. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  20846. if test "x$ac_cv_func_hypotf" = xyes; then :
  20847. cat >>confdefs.h <<_ACEOF
  20848. #define HAVE_HYPOTF 1
  20849. _ACEOF
  20850. fi
  20851. done
  20852. else
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  20854. $as_echo_n "checking for _hypotf declaration... " >&6; }
  20855. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  20856. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  20857. $as_echo_n "(cached) " >&6
  20858. else
  20859. ac_ext=cpp
  20860. ac_cpp='$CXXCPP $CPPFLAGS'
  20861. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20862. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20863. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20865. /* end confdefs.h. */
  20866. #include <math.h>
  20867. int
  20868. main ()
  20869. {
  20870. _hypotf(0, 0);
  20871. ;
  20872. return 0;
  20873. }
  20874. _ACEOF
  20875. if ac_fn_cxx_try_compile "$LINENO"; then :
  20876. glibcxx_cv_func__hypotf_use=yes
  20877. else
  20878. glibcxx_cv_func__hypotf_use=no
  20879. fi
  20880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20881. ac_ext=c
  20882. ac_cpp='$CPP $CPPFLAGS'
  20883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20886. fi
  20887. fi
  20888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  20889. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  20890. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  20891. for ac_func in _hypotf
  20892. do :
  20893. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  20894. if test "x$ac_cv_func__hypotf" = xyes; then :
  20895. cat >>confdefs.h <<_ACEOF
  20896. #define HAVE__HYPOTF 1
  20897. _ACEOF
  20898. fi
  20899. done
  20900. fi
  20901. fi
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  20903. $as_echo_n "checking for ldexpf declaration... " >&6; }
  20904. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  20905. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  20906. $as_echo_n "(cached) " >&6
  20907. else
  20908. ac_ext=cpp
  20909. ac_cpp='$CXXCPP $CPPFLAGS'
  20910. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20911. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20912. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20914. /* end confdefs.h. */
  20915. #include <math.h>
  20916. int
  20917. main ()
  20918. {
  20919. ldexpf(0, 0);
  20920. ;
  20921. return 0;
  20922. }
  20923. _ACEOF
  20924. if ac_fn_cxx_try_compile "$LINENO"; then :
  20925. glibcxx_cv_func_ldexpf_use=yes
  20926. else
  20927. glibcxx_cv_func_ldexpf_use=no
  20928. fi
  20929. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20930. ac_ext=c
  20931. ac_cpp='$CPP $CPPFLAGS'
  20932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20935. fi
  20936. fi
  20937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  20938. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  20939. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  20940. for ac_func in ldexpf
  20941. do :
  20942. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  20943. if test "x$ac_cv_func_ldexpf" = xyes; then :
  20944. cat >>confdefs.h <<_ACEOF
  20945. #define HAVE_LDEXPF 1
  20946. _ACEOF
  20947. fi
  20948. done
  20949. else
  20950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  20951. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  20952. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  20953. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  20954. $as_echo_n "(cached) " >&6
  20955. else
  20956. ac_ext=cpp
  20957. ac_cpp='$CXXCPP $CPPFLAGS'
  20958. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20959. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20960. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20961. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20962. /* end confdefs.h. */
  20963. #include <math.h>
  20964. int
  20965. main ()
  20966. {
  20967. _ldexpf(0, 0);
  20968. ;
  20969. return 0;
  20970. }
  20971. _ACEOF
  20972. if ac_fn_cxx_try_compile "$LINENO"; then :
  20973. glibcxx_cv_func__ldexpf_use=yes
  20974. else
  20975. glibcxx_cv_func__ldexpf_use=no
  20976. fi
  20977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20978. ac_ext=c
  20979. ac_cpp='$CPP $CPPFLAGS'
  20980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20983. fi
  20984. fi
  20985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  20986. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  20987. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  20988. for ac_func in _ldexpf
  20989. do :
  20990. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  20991. if test "x$ac_cv_func__ldexpf" = xyes; then :
  20992. cat >>confdefs.h <<_ACEOF
  20993. #define HAVE__LDEXPF 1
  20994. _ACEOF
  20995. fi
  20996. done
  20997. fi
  20998. fi
  20999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  21000. $as_echo_n "checking for logf declaration... " >&6; }
  21001. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  21002. if ${glibcxx_cv_func_logf_use+:} false; then :
  21003. $as_echo_n "(cached) " >&6
  21004. else
  21005. ac_ext=cpp
  21006. ac_cpp='$CXXCPP $CPPFLAGS'
  21007. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21008. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21009. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21011. /* end confdefs.h. */
  21012. #include <math.h>
  21013. #ifdef HAVE_IEEEFP_H
  21014. #include <ieeefp.h>
  21015. #endif
  21016. int
  21017. main ()
  21018. {
  21019. logf(0);
  21020. ;
  21021. return 0;
  21022. }
  21023. _ACEOF
  21024. if ac_fn_cxx_try_compile "$LINENO"; then :
  21025. glibcxx_cv_func_logf_use=yes
  21026. else
  21027. glibcxx_cv_func_logf_use=no
  21028. fi
  21029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21030. ac_ext=c
  21031. ac_cpp='$CPP $CPPFLAGS'
  21032. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21033. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21034. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21035. fi
  21036. fi
  21037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  21038. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  21039. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  21040. for ac_func in logf
  21041. do :
  21042. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  21043. if test "x$ac_cv_func_logf" = xyes; then :
  21044. cat >>confdefs.h <<_ACEOF
  21045. #define HAVE_LOGF 1
  21046. _ACEOF
  21047. fi
  21048. done
  21049. else
  21050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  21051. $as_echo_n "checking for _logf declaration... " >&6; }
  21052. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  21053. if ${glibcxx_cv_func__logf_use+:} false; then :
  21054. $as_echo_n "(cached) " >&6
  21055. else
  21056. ac_ext=cpp
  21057. ac_cpp='$CXXCPP $CPPFLAGS'
  21058. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21059. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21060. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21062. /* end confdefs.h. */
  21063. #include <math.h>
  21064. #ifdef HAVE_IEEEFP_H
  21065. #include <ieeefp.h>
  21066. #endif
  21067. int
  21068. main ()
  21069. {
  21070. _logf(0);
  21071. ;
  21072. return 0;
  21073. }
  21074. _ACEOF
  21075. if ac_fn_cxx_try_compile "$LINENO"; then :
  21076. glibcxx_cv_func__logf_use=yes
  21077. else
  21078. glibcxx_cv_func__logf_use=no
  21079. fi
  21080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21081. ac_ext=c
  21082. ac_cpp='$CPP $CPPFLAGS'
  21083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21086. fi
  21087. fi
  21088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  21089. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  21090. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  21091. for ac_func in _logf
  21092. do :
  21093. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  21094. if test "x$ac_cv_func__logf" = xyes; then :
  21095. cat >>confdefs.h <<_ACEOF
  21096. #define HAVE__LOGF 1
  21097. _ACEOF
  21098. fi
  21099. done
  21100. fi
  21101. fi
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  21103. $as_echo_n "checking for log10f declaration... " >&6; }
  21104. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  21105. if ${glibcxx_cv_func_log10f_use+:} false; then :
  21106. $as_echo_n "(cached) " >&6
  21107. else
  21108. ac_ext=cpp
  21109. ac_cpp='$CXXCPP $CPPFLAGS'
  21110. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21111. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21112. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21114. /* end confdefs.h. */
  21115. #include <math.h>
  21116. #ifdef HAVE_IEEEFP_H
  21117. #include <ieeefp.h>
  21118. #endif
  21119. int
  21120. main ()
  21121. {
  21122. log10f(0);
  21123. ;
  21124. return 0;
  21125. }
  21126. _ACEOF
  21127. if ac_fn_cxx_try_compile "$LINENO"; then :
  21128. glibcxx_cv_func_log10f_use=yes
  21129. else
  21130. glibcxx_cv_func_log10f_use=no
  21131. fi
  21132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21133. ac_ext=c
  21134. ac_cpp='$CPP $CPPFLAGS'
  21135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21138. fi
  21139. fi
  21140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  21141. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  21142. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  21143. for ac_func in log10f
  21144. do :
  21145. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  21146. if test "x$ac_cv_func_log10f" = xyes; then :
  21147. cat >>confdefs.h <<_ACEOF
  21148. #define HAVE_LOG10F 1
  21149. _ACEOF
  21150. fi
  21151. done
  21152. else
  21153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  21154. $as_echo_n "checking for _log10f declaration... " >&6; }
  21155. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  21156. if ${glibcxx_cv_func__log10f_use+:} false; then :
  21157. $as_echo_n "(cached) " >&6
  21158. else
  21159. ac_ext=cpp
  21160. ac_cpp='$CXXCPP $CPPFLAGS'
  21161. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21162. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21163. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21165. /* end confdefs.h. */
  21166. #include <math.h>
  21167. #ifdef HAVE_IEEEFP_H
  21168. #include <ieeefp.h>
  21169. #endif
  21170. int
  21171. main ()
  21172. {
  21173. _log10f(0);
  21174. ;
  21175. return 0;
  21176. }
  21177. _ACEOF
  21178. if ac_fn_cxx_try_compile "$LINENO"; then :
  21179. glibcxx_cv_func__log10f_use=yes
  21180. else
  21181. glibcxx_cv_func__log10f_use=no
  21182. fi
  21183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21184. ac_ext=c
  21185. ac_cpp='$CPP $CPPFLAGS'
  21186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21189. fi
  21190. fi
  21191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  21192. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  21193. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  21194. for ac_func in _log10f
  21195. do :
  21196. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  21197. if test "x$ac_cv_func__log10f" = xyes; then :
  21198. cat >>confdefs.h <<_ACEOF
  21199. #define HAVE__LOG10F 1
  21200. _ACEOF
  21201. fi
  21202. done
  21203. fi
  21204. fi
  21205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  21206. $as_echo_n "checking for modff declaration... " >&6; }
  21207. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  21208. if ${glibcxx_cv_func_modff_use+:} false; then :
  21209. $as_echo_n "(cached) " >&6
  21210. else
  21211. ac_ext=cpp
  21212. ac_cpp='$CXXCPP $CPPFLAGS'
  21213. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21214. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21215. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21217. /* end confdefs.h. */
  21218. #include <math.h>
  21219. int
  21220. main ()
  21221. {
  21222. modff(0, 0);
  21223. ;
  21224. return 0;
  21225. }
  21226. _ACEOF
  21227. if ac_fn_cxx_try_compile "$LINENO"; then :
  21228. glibcxx_cv_func_modff_use=yes
  21229. else
  21230. glibcxx_cv_func_modff_use=no
  21231. fi
  21232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21233. ac_ext=c
  21234. ac_cpp='$CPP $CPPFLAGS'
  21235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21238. fi
  21239. fi
  21240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  21241. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  21242. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  21243. for ac_func in modff
  21244. do :
  21245. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  21246. if test "x$ac_cv_func_modff" = xyes; then :
  21247. cat >>confdefs.h <<_ACEOF
  21248. #define HAVE_MODFF 1
  21249. _ACEOF
  21250. fi
  21251. done
  21252. else
  21253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  21254. $as_echo_n "checking for _modff declaration... " >&6; }
  21255. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  21256. if ${glibcxx_cv_func__modff_use+:} false; then :
  21257. $as_echo_n "(cached) " >&6
  21258. else
  21259. ac_ext=cpp
  21260. ac_cpp='$CXXCPP $CPPFLAGS'
  21261. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21262. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21263. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21265. /* end confdefs.h. */
  21266. #include <math.h>
  21267. int
  21268. main ()
  21269. {
  21270. _modff(0, 0);
  21271. ;
  21272. return 0;
  21273. }
  21274. _ACEOF
  21275. if ac_fn_cxx_try_compile "$LINENO"; then :
  21276. glibcxx_cv_func__modff_use=yes
  21277. else
  21278. glibcxx_cv_func__modff_use=no
  21279. fi
  21280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21281. ac_ext=c
  21282. ac_cpp='$CPP $CPPFLAGS'
  21283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21286. fi
  21287. fi
  21288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  21289. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  21290. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  21291. for ac_func in _modff
  21292. do :
  21293. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  21294. if test "x$ac_cv_func__modff" = xyes; then :
  21295. cat >>confdefs.h <<_ACEOF
  21296. #define HAVE__MODFF 1
  21297. _ACEOF
  21298. fi
  21299. done
  21300. fi
  21301. fi
  21302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  21303. $as_echo_n "checking for modf declaration... " >&6; }
  21304. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  21305. if ${glibcxx_cv_func_modf_use+:} false; then :
  21306. $as_echo_n "(cached) " >&6
  21307. else
  21308. ac_ext=cpp
  21309. ac_cpp='$CXXCPP $CPPFLAGS'
  21310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21314. /* end confdefs.h. */
  21315. #include <math.h>
  21316. int
  21317. main ()
  21318. {
  21319. modf(0, 0);
  21320. ;
  21321. return 0;
  21322. }
  21323. _ACEOF
  21324. if ac_fn_cxx_try_compile "$LINENO"; then :
  21325. glibcxx_cv_func_modf_use=yes
  21326. else
  21327. glibcxx_cv_func_modf_use=no
  21328. fi
  21329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21330. ac_ext=c
  21331. ac_cpp='$CPP $CPPFLAGS'
  21332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21335. fi
  21336. fi
  21337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  21338. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  21339. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  21340. for ac_func in modf
  21341. do :
  21342. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  21343. if test "x$ac_cv_func_modf" = xyes; then :
  21344. cat >>confdefs.h <<_ACEOF
  21345. #define HAVE_MODF 1
  21346. _ACEOF
  21347. fi
  21348. done
  21349. else
  21350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  21351. $as_echo_n "checking for _modf declaration... " >&6; }
  21352. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  21353. if ${glibcxx_cv_func__modf_use+:} false; then :
  21354. $as_echo_n "(cached) " >&6
  21355. else
  21356. ac_ext=cpp
  21357. ac_cpp='$CXXCPP $CPPFLAGS'
  21358. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21359. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21360. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21362. /* end confdefs.h. */
  21363. #include <math.h>
  21364. int
  21365. main ()
  21366. {
  21367. _modf(0, 0);
  21368. ;
  21369. return 0;
  21370. }
  21371. _ACEOF
  21372. if ac_fn_cxx_try_compile "$LINENO"; then :
  21373. glibcxx_cv_func__modf_use=yes
  21374. else
  21375. glibcxx_cv_func__modf_use=no
  21376. fi
  21377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21378. ac_ext=c
  21379. ac_cpp='$CPP $CPPFLAGS'
  21380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21383. fi
  21384. fi
  21385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  21386. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  21387. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  21388. for ac_func in _modf
  21389. do :
  21390. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  21391. if test "x$ac_cv_func__modf" = xyes; then :
  21392. cat >>confdefs.h <<_ACEOF
  21393. #define HAVE__MODF 1
  21394. _ACEOF
  21395. fi
  21396. done
  21397. fi
  21398. fi
  21399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  21400. $as_echo_n "checking for powf declaration... " >&6; }
  21401. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  21402. if ${glibcxx_cv_func_powf_use+:} false; then :
  21403. $as_echo_n "(cached) " >&6
  21404. else
  21405. ac_ext=cpp
  21406. ac_cpp='$CXXCPP $CPPFLAGS'
  21407. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21408. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21409. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21411. /* end confdefs.h. */
  21412. #include <math.h>
  21413. int
  21414. main ()
  21415. {
  21416. powf(0, 0);
  21417. ;
  21418. return 0;
  21419. }
  21420. _ACEOF
  21421. if ac_fn_cxx_try_compile "$LINENO"; then :
  21422. glibcxx_cv_func_powf_use=yes
  21423. else
  21424. glibcxx_cv_func_powf_use=no
  21425. fi
  21426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21427. ac_ext=c
  21428. ac_cpp='$CPP $CPPFLAGS'
  21429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21432. fi
  21433. fi
  21434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  21435. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  21436. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  21437. for ac_func in powf
  21438. do :
  21439. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  21440. if test "x$ac_cv_func_powf" = xyes; then :
  21441. cat >>confdefs.h <<_ACEOF
  21442. #define HAVE_POWF 1
  21443. _ACEOF
  21444. fi
  21445. done
  21446. else
  21447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  21448. $as_echo_n "checking for _powf declaration... " >&6; }
  21449. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  21450. if ${glibcxx_cv_func__powf_use+:} false; then :
  21451. $as_echo_n "(cached) " >&6
  21452. else
  21453. ac_ext=cpp
  21454. ac_cpp='$CXXCPP $CPPFLAGS'
  21455. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21456. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21457. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21459. /* end confdefs.h. */
  21460. #include <math.h>
  21461. int
  21462. main ()
  21463. {
  21464. _powf(0, 0);
  21465. ;
  21466. return 0;
  21467. }
  21468. _ACEOF
  21469. if ac_fn_cxx_try_compile "$LINENO"; then :
  21470. glibcxx_cv_func__powf_use=yes
  21471. else
  21472. glibcxx_cv_func__powf_use=no
  21473. fi
  21474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21475. ac_ext=c
  21476. ac_cpp='$CPP $CPPFLAGS'
  21477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21480. fi
  21481. fi
  21482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  21483. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  21484. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  21485. for ac_func in _powf
  21486. do :
  21487. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  21488. if test "x$ac_cv_func__powf" = xyes; then :
  21489. cat >>confdefs.h <<_ACEOF
  21490. #define HAVE__POWF 1
  21491. _ACEOF
  21492. fi
  21493. done
  21494. fi
  21495. fi
  21496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  21497. $as_echo_n "checking for sqrtf declaration... " >&6; }
  21498. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  21499. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  21500. $as_echo_n "(cached) " >&6
  21501. else
  21502. ac_ext=cpp
  21503. ac_cpp='$CXXCPP $CPPFLAGS'
  21504. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21505. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21506. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21508. /* end confdefs.h. */
  21509. #include <math.h>
  21510. #ifdef HAVE_IEEEFP_H
  21511. #include <ieeefp.h>
  21512. #endif
  21513. int
  21514. main ()
  21515. {
  21516. sqrtf(0);
  21517. ;
  21518. return 0;
  21519. }
  21520. _ACEOF
  21521. if ac_fn_cxx_try_compile "$LINENO"; then :
  21522. glibcxx_cv_func_sqrtf_use=yes
  21523. else
  21524. glibcxx_cv_func_sqrtf_use=no
  21525. fi
  21526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21527. ac_ext=c
  21528. ac_cpp='$CPP $CPPFLAGS'
  21529. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21530. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21531. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21532. fi
  21533. fi
  21534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  21535. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  21536. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  21537. for ac_func in sqrtf
  21538. do :
  21539. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  21540. if test "x$ac_cv_func_sqrtf" = xyes; then :
  21541. cat >>confdefs.h <<_ACEOF
  21542. #define HAVE_SQRTF 1
  21543. _ACEOF
  21544. fi
  21545. done
  21546. else
  21547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  21548. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  21549. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  21550. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  21551. $as_echo_n "(cached) " >&6
  21552. else
  21553. ac_ext=cpp
  21554. ac_cpp='$CXXCPP $CPPFLAGS'
  21555. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21556. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21557. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21559. /* end confdefs.h. */
  21560. #include <math.h>
  21561. #ifdef HAVE_IEEEFP_H
  21562. #include <ieeefp.h>
  21563. #endif
  21564. int
  21565. main ()
  21566. {
  21567. _sqrtf(0);
  21568. ;
  21569. return 0;
  21570. }
  21571. _ACEOF
  21572. if ac_fn_cxx_try_compile "$LINENO"; then :
  21573. glibcxx_cv_func__sqrtf_use=yes
  21574. else
  21575. glibcxx_cv_func__sqrtf_use=no
  21576. fi
  21577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21578. ac_ext=c
  21579. ac_cpp='$CPP $CPPFLAGS'
  21580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21583. fi
  21584. fi
  21585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  21586. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  21587. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  21588. for ac_func in _sqrtf
  21589. do :
  21590. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  21591. if test "x$ac_cv_func__sqrtf" = xyes; then :
  21592. cat >>confdefs.h <<_ACEOF
  21593. #define HAVE__SQRTF 1
  21594. _ACEOF
  21595. fi
  21596. done
  21597. fi
  21598. fi
  21599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  21600. $as_echo_n "checking for sincosf declaration... " >&6; }
  21601. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  21602. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  21603. $as_echo_n "(cached) " >&6
  21604. else
  21605. ac_ext=cpp
  21606. ac_cpp='$CXXCPP $CPPFLAGS'
  21607. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21608. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21609. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21611. /* end confdefs.h. */
  21612. #include <math.h>
  21613. int
  21614. main ()
  21615. {
  21616. sincosf(0, 0, 0);
  21617. ;
  21618. return 0;
  21619. }
  21620. _ACEOF
  21621. if ac_fn_cxx_try_compile "$LINENO"; then :
  21622. glibcxx_cv_func_sincosf_use=yes
  21623. else
  21624. glibcxx_cv_func_sincosf_use=no
  21625. fi
  21626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21627. ac_ext=c
  21628. ac_cpp='$CPP $CPPFLAGS'
  21629. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21630. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21631. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21632. fi
  21633. fi
  21634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  21635. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  21636. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  21637. for ac_func in sincosf
  21638. do :
  21639. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  21640. if test "x$ac_cv_func_sincosf" = xyes; then :
  21641. cat >>confdefs.h <<_ACEOF
  21642. #define HAVE_SINCOSF 1
  21643. _ACEOF
  21644. fi
  21645. done
  21646. else
  21647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  21648. $as_echo_n "checking for _sincosf declaration... " >&6; }
  21649. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  21650. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  21651. $as_echo_n "(cached) " >&6
  21652. else
  21653. ac_ext=cpp
  21654. ac_cpp='$CXXCPP $CPPFLAGS'
  21655. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21656. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21657. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21659. /* end confdefs.h. */
  21660. #include <math.h>
  21661. int
  21662. main ()
  21663. {
  21664. _sincosf(0, 0, 0);
  21665. ;
  21666. return 0;
  21667. }
  21668. _ACEOF
  21669. if ac_fn_cxx_try_compile "$LINENO"; then :
  21670. glibcxx_cv_func__sincosf_use=yes
  21671. else
  21672. glibcxx_cv_func__sincosf_use=no
  21673. fi
  21674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21675. ac_ext=c
  21676. ac_cpp='$CPP $CPPFLAGS'
  21677. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21678. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21679. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21680. fi
  21681. fi
  21682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  21683. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  21684. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  21685. for ac_func in _sincosf
  21686. do :
  21687. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  21688. if test "x$ac_cv_func__sincosf" = xyes; then :
  21689. cat >>confdefs.h <<_ACEOF
  21690. #define HAVE__SINCOSF 1
  21691. _ACEOF
  21692. fi
  21693. done
  21694. fi
  21695. fi
  21696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  21697. $as_echo_n "checking for finitef declaration... " >&6; }
  21698. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  21699. if ${glibcxx_cv_func_finitef_use+:} false; then :
  21700. $as_echo_n "(cached) " >&6
  21701. else
  21702. ac_ext=cpp
  21703. ac_cpp='$CXXCPP $CPPFLAGS'
  21704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21708. /* end confdefs.h. */
  21709. #include <math.h>
  21710. #ifdef HAVE_IEEEFP_H
  21711. #include <ieeefp.h>
  21712. #endif
  21713. int
  21714. main ()
  21715. {
  21716. finitef(0);
  21717. ;
  21718. return 0;
  21719. }
  21720. _ACEOF
  21721. if ac_fn_cxx_try_compile "$LINENO"; then :
  21722. glibcxx_cv_func_finitef_use=yes
  21723. else
  21724. glibcxx_cv_func_finitef_use=no
  21725. fi
  21726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21727. ac_ext=c
  21728. ac_cpp='$CPP $CPPFLAGS'
  21729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21732. fi
  21733. fi
  21734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  21735. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  21736. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  21737. for ac_func in finitef
  21738. do :
  21739. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  21740. if test "x$ac_cv_func_finitef" = xyes; then :
  21741. cat >>confdefs.h <<_ACEOF
  21742. #define HAVE_FINITEF 1
  21743. _ACEOF
  21744. fi
  21745. done
  21746. else
  21747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  21748. $as_echo_n "checking for _finitef declaration... " >&6; }
  21749. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  21750. if ${glibcxx_cv_func__finitef_use+:} false; then :
  21751. $as_echo_n "(cached) " >&6
  21752. else
  21753. ac_ext=cpp
  21754. ac_cpp='$CXXCPP $CPPFLAGS'
  21755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21759. /* end confdefs.h. */
  21760. #include <math.h>
  21761. #ifdef HAVE_IEEEFP_H
  21762. #include <ieeefp.h>
  21763. #endif
  21764. int
  21765. main ()
  21766. {
  21767. _finitef(0);
  21768. ;
  21769. return 0;
  21770. }
  21771. _ACEOF
  21772. if ac_fn_cxx_try_compile "$LINENO"; then :
  21773. glibcxx_cv_func__finitef_use=yes
  21774. else
  21775. glibcxx_cv_func__finitef_use=no
  21776. fi
  21777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21778. ac_ext=c
  21779. ac_cpp='$CPP $CPPFLAGS'
  21780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21783. fi
  21784. fi
  21785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  21786. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  21787. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  21788. for ac_func in _finitef
  21789. do :
  21790. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  21791. if test "x$ac_cv_func__finitef" = xyes; then :
  21792. cat >>confdefs.h <<_ACEOF
  21793. #define HAVE__FINITEF 1
  21794. _ACEOF
  21795. fi
  21796. done
  21797. fi
  21798. fi
  21799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  21800. $as_echo_n "checking for long double trig functions... " >&6; }
  21801. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  21802. $as_echo_n "(cached) " >&6
  21803. else
  21804. ac_ext=cpp
  21805. ac_cpp='$CXXCPP $CPPFLAGS'
  21806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21810. /* end confdefs.h. */
  21811. #include <math.h>
  21812. int
  21813. main ()
  21814. {
  21815. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  21816. ;
  21817. return 0;
  21818. }
  21819. _ACEOF
  21820. if ac_fn_cxx_try_compile "$LINENO"; then :
  21821. glibcxx_cv_func_long_double_trig_use=yes
  21822. else
  21823. glibcxx_cv_func_long_double_trig_use=no
  21824. fi
  21825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21826. ac_ext=c
  21827. ac_cpp='$CPP $CPPFLAGS'
  21828. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21829. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21830. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21831. fi
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  21833. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  21834. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  21835. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  21836. do :
  21837. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21838. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21839. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21840. cat >>confdefs.h <<_ACEOF
  21841. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21842. _ACEOF
  21843. fi
  21844. done
  21845. else
  21846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  21847. $as_echo_n "checking for _long double trig functions... " >&6; }
  21848. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  21849. $as_echo_n "(cached) " >&6
  21850. else
  21851. ac_ext=cpp
  21852. ac_cpp='$CXXCPP $CPPFLAGS'
  21853. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21854. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21855. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21857. /* end confdefs.h. */
  21858. #include <math.h>
  21859. int
  21860. main ()
  21861. {
  21862. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  21863. ;
  21864. return 0;
  21865. }
  21866. _ACEOF
  21867. if ac_fn_cxx_try_compile "$LINENO"; then :
  21868. glibcxx_cv_func__long_double_trig_use=yes
  21869. else
  21870. glibcxx_cv_func__long_double_trig_use=no
  21871. fi
  21872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21873. ac_ext=c
  21874. ac_cpp='$CPP $CPPFLAGS'
  21875. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21876. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21877. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21878. fi
  21879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  21880. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  21881. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  21882. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  21883. do :
  21884. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21885. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21886. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21887. cat >>confdefs.h <<_ACEOF
  21888. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21889. _ACEOF
  21890. fi
  21891. done
  21892. fi
  21893. fi
  21894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  21895. $as_echo_n "checking for long double round functions... " >&6; }
  21896. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  21897. $as_echo_n "(cached) " >&6
  21898. else
  21899. ac_ext=cpp
  21900. ac_cpp='$CXXCPP $CPPFLAGS'
  21901. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21902. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21903. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21905. /* end confdefs.h. */
  21906. #include <math.h>
  21907. int
  21908. main ()
  21909. {
  21910. ceill (0); floorl (0);
  21911. ;
  21912. return 0;
  21913. }
  21914. _ACEOF
  21915. if ac_fn_cxx_try_compile "$LINENO"; then :
  21916. glibcxx_cv_func_long_double_round_use=yes
  21917. else
  21918. glibcxx_cv_func_long_double_round_use=no
  21919. fi
  21920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21921. ac_ext=c
  21922. ac_cpp='$CPP $CPPFLAGS'
  21923. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21924. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21925. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21926. fi
  21927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  21928. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  21929. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  21930. for ac_func in ceill floorl
  21931. do :
  21932. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21933. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21934. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21935. cat >>confdefs.h <<_ACEOF
  21936. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21937. _ACEOF
  21938. fi
  21939. done
  21940. else
  21941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  21942. $as_echo_n "checking for _long double round functions... " >&6; }
  21943. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  21944. $as_echo_n "(cached) " >&6
  21945. else
  21946. ac_ext=cpp
  21947. ac_cpp='$CXXCPP $CPPFLAGS'
  21948. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21949. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21950. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21952. /* end confdefs.h. */
  21953. #include <math.h>
  21954. int
  21955. main ()
  21956. {
  21957. _ceill (0); _floorl (0);
  21958. ;
  21959. return 0;
  21960. }
  21961. _ACEOF
  21962. if ac_fn_cxx_try_compile "$LINENO"; then :
  21963. glibcxx_cv_func__long_double_round_use=yes
  21964. else
  21965. glibcxx_cv_func__long_double_round_use=no
  21966. fi
  21967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21968. ac_ext=c
  21969. ac_cpp='$CPP $CPPFLAGS'
  21970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21973. fi
  21974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  21975. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  21976. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  21977. for ac_func in _ceill _floorl
  21978. do :
  21979. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  21980. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  21981. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  21982. cat >>confdefs.h <<_ACEOF
  21983. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  21984. _ACEOF
  21985. fi
  21986. done
  21987. fi
  21988. fi
  21989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  21990. $as_echo_n "checking for isnanl declaration... " >&6; }
  21991. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  21992. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  21993. $as_echo_n "(cached) " >&6
  21994. else
  21995. ac_ext=cpp
  21996. ac_cpp='$CXXCPP $CPPFLAGS'
  21997. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21998. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21999. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22001. /* end confdefs.h. */
  22002. #include <math.h>
  22003. #ifdef HAVE_IEEEFP_H
  22004. #include <ieeefp.h>
  22005. #endif
  22006. int
  22007. main ()
  22008. {
  22009. isnanl(0);
  22010. ;
  22011. return 0;
  22012. }
  22013. _ACEOF
  22014. if ac_fn_cxx_try_compile "$LINENO"; then :
  22015. glibcxx_cv_func_isnanl_use=yes
  22016. else
  22017. glibcxx_cv_func_isnanl_use=no
  22018. fi
  22019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22020. ac_ext=c
  22021. ac_cpp='$CPP $CPPFLAGS'
  22022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22025. fi
  22026. fi
  22027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  22028. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  22029. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  22030. for ac_func in isnanl
  22031. do :
  22032. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  22033. if test "x$ac_cv_func_isnanl" = xyes; then :
  22034. cat >>confdefs.h <<_ACEOF
  22035. #define HAVE_ISNANL 1
  22036. _ACEOF
  22037. fi
  22038. done
  22039. else
  22040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  22041. $as_echo_n "checking for _isnanl declaration... " >&6; }
  22042. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  22043. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  22044. $as_echo_n "(cached) " >&6
  22045. else
  22046. ac_ext=cpp
  22047. ac_cpp='$CXXCPP $CPPFLAGS'
  22048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22052. /* end confdefs.h. */
  22053. #include <math.h>
  22054. #ifdef HAVE_IEEEFP_H
  22055. #include <ieeefp.h>
  22056. #endif
  22057. int
  22058. main ()
  22059. {
  22060. _isnanl(0);
  22061. ;
  22062. return 0;
  22063. }
  22064. _ACEOF
  22065. if ac_fn_cxx_try_compile "$LINENO"; then :
  22066. glibcxx_cv_func__isnanl_use=yes
  22067. else
  22068. glibcxx_cv_func__isnanl_use=no
  22069. fi
  22070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22071. ac_ext=c
  22072. ac_cpp='$CPP $CPPFLAGS'
  22073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22076. fi
  22077. fi
  22078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  22079. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  22080. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  22081. for ac_func in _isnanl
  22082. do :
  22083. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  22084. if test "x$ac_cv_func__isnanl" = xyes; then :
  22085. cat >>confdefs.h <<_ACEOF
  22086. #define HAVE__ISNANL 1
  22087. _ACEOF
  22088. fi
  22089. done
  22090. fi
  22091. fi
  22092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  22093. $as_echo_n "checking for isinfl declaration... " >&6; }
  22094. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  22095. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  22096. $as_echo_n "(cached) " >&6
  22097. else
  22098. ac_ext=cpp
  22099. ac_cpp='$CXXCPP $CPPFLAGS'
  22100. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22101. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22102. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22104. /* end confdefs.h. */
  22105. #include <math.h>
  22106. #ifdef HAVE_IEEEFP_H
  22107. #include <ieeefp.h>
  22108. #endif
  22109. int
  22110. main ()
  22111. {
  22112. isinfl(0);
  22113. ;
  22114. return 0;
  22115. }
  22116. _ACEOF
  22117. if ac_fn_cxx_try_compile "$LINENO"; then :
  22118. glibcxx_cv_func_isinfl_use=yes
  22119. else
  22120. glibcxx_cv_func_isinfl_use=no
  22121. fi
  22122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22123. ac_ext=c
  22124. ac_cpp='$CPP $CPPFLAGS'
  22125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22128. fi
  22129. fi
  22130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  22131. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  22132. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  22133. for ac_func in isinfl
  22134. do :
  22135. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  22136. if test "x$ac_cv_func_isinfl" = xyes; then :
  22137. cat >>confdefs.h <<_ACEOF
  22138. #define HAVE_ISINFL 1
  22139. _ACEOF
  22140. fi
  22141. done
  22142. else
  22143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  22144. $as_echo_n "checking for _isinfl declaration... " >&6; }
  22145. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  22146. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  22147. $as_echo_n "(cached) " >&6
  22148. else
  22149. ac_ext=cpp
  22150. ac_cpp='$CXXCPP $CPPFLAGS'
  22151. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22152. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22153. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22155. /* end confdefs.h. */
  22156. #include <math.h>
  22157. #ifdef HAVE_IEEEFP_H
  22158. #include <ieeefp.h>
  22159. #endif
  22160. int
  22161. main ()
  22162. {
  22163. _isinfl(0);
  22164. ;
  22165. return 0;
  22166. }
  22167. _ACEOF
  22168. if ac_fn_cxx_try_compile "$LINENO"; then :
  22169. glibcxx_cv_func__isinfl_use=yes
  22170. else
  22171. glibcxx_cv_func__isinfl_use=no
  22172. fi
  22173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22174. ac_ext=c
  22175. ac_cpp='$CPP $CPPFLAGS'
  22176. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22177. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22178. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22179. fi
  22180. fi
  22181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  22182. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  22183. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  22184. for ac_func in _isinfl
  22185. do :
  22186. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  22187. if test "x$ac_cv_func__isinfl" = xyes; then :
  22188. cat >>confdefs.h <<_ACEOF
  22189. #define HAVE__ISINFL 1
  22190. _ACEOF
  22191. fi
  22192. done
  22193. fi
  22194. fi
  22195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  22196. $as_echo_n "checking for atan2l declaration... " >&6; }
  22197. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  22198. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  22199. $as_echo_n "(cached) " >&6
  22200. else
  22201. ac_ext=cpp
  22202. ac_cpp='$CXXCPP $CPPFLAGS'
  22203. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22204. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22205. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22207. /* end confdefs.h. */
  22208. #include <math.h>
  22209. int
  22210. main ()
  22211. {
  22212. atan2l(0, 0);
  22213. ;
  22214. return 0;
  22215. }
  22216. _ACEOF
  22217. if ac_fn_cxx_try_compile "$LINENO"; then :
  22218. glibcxx_cv_func_atan2l_use=yes
  22219. else
  22220. glibcxx_cv_func_atan2l_use=no
  22221. fi
  22222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22223. ac_ext=c
  22224. ac_cpp='$CPP $CPPFLAGS'
  22225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22228. fi
  22229. fi
  22230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  22231. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  22232. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  22233. for ac_func in atan2l
  22234. do :
  22235. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  22236. if test "x$ac_cv_func_atan2l" = xyes; then :
  22237. cat >>confdefs.h <<_ACEOF
  22238. #define HAVE_ATAN2L 1
  22239. _ACEOF
  22240. fi
  22241. done
  22242. else
  22243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  22244. $as_echo_n "checking for _atan2l declaration... " >&6; }
  22245. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  22246. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  22247. $as_echo_n "(cached) " >&6
  22248. else
  22249. ac_ext=cpp
  22250. ac_cpp='$CXXCPP $CPPFLAGS'
  22251. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22252. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22253. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22255. /* end confdefs.h. */
  22256. #include <math.h>
  22257. int
  22258. main ()
  22259. {
  22260. _atan2l(0, 0);
  22261. ;
  22262. return 0;
  22263. }
  22264. _ACEOF
  22265. if ac_fn_cxx_try_compile "$LINENO"; then :
  22266. glibcxx_cv_func__atan2l_use=yes
  22267. else
  22268. glibcxx_cv_func__atan2l_use=no
  22269. fi
  22270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22271. ac_ext=c
  22272. ac_cpp='$CPP $CPPFLAGS'
  22273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22276. fi
  22277. fi
  22278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  22279. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  22280. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  22281. for ac_func in _atan2l
  22282. do :
  22283. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  22284. if test "x$ac_cv_func__atan2l" = xyes; then :
  22285. cat >>confdefs.h <<_ACEOF
  22286. #define HAVE__ATAN2L 1
  22287. _ACEOF
  22288. fi
  22289. done
  22290. fi
  22291. fi
  22292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  22293. $as_echo_n "checking for expl declaration... " >&6; }
  22294. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  22295. if ${glibcxx_cv_func_expl_use+:} false; then :
  22296. $as_echo_n "(cached) " >&6
  22297. else
  22298. ac_ext=cpp
  22299. ac_cpp='$CXXCPP $CPPFLAGS'
  22300. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22301. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22302. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22304. /* end confdefs.h. */
  22305. #include <math.h>
  22306. #ifdef HAVE_IEEEFP_H
  22307. #include <ieeefp.h>
  22308. #endif
  22309. int
  22310. main ()
  22311. {
  22312. expl(0);
  22313. ;
  22314. return 0;
  22315. }
  22316. _ACEOF
  22317. if ac_fn_cxx_try_compile "$LINENO"; then :
  22318. glibcxx_cv_func_expl_use=yes
  22319. else
  22320. glibcxx_cv_func_expl_use=no
  22321. fi
  22322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22323. ac_ext=c
  22324. ac_cpp='$CPP $CPPFLAGS'
  22325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22328. fi
  22329. fi
  22330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  22331. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  22332. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  22333. for ac_func in expl
  22334. do :
  22335. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  22336. if test "x$ac_cv_func_expl" = xyes; then :
  22337. cat >>confdefs.h <<_ACEOF
  22338. #define HAVE_EXPL 1
  22339. _ACEOF
  22340. fi
  22341. done
  22342. else
  22343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  22344. $as_echo_n "checking for _expl declaration... " >&6; }
  22345. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  22346. if ${glibcxx_cv_func__expl_use+:} false; then :
  22347. $as_echo_n "(cached) " >&6
  22348. else
  22349. ac_ext=cpp
  22350. ac_cpp='$CXXCPP $CPPFLAGS'
  22351. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22352. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22353. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22355. /* end confdefs.h. */
  22356. #include <math.h>
  22357. #ifdef HAVE_IEEEFP_H
  22358. #include <ieeefp.h>
  22359. #endif
  22360. int
  22361. main ()
  22362. {
  22363. _expl(0);
  22364. ;
  22365. return 0;
  22366. }
  22367. _ACEOF
  22368. if ac_fn_cxx_try_compile "$LINENO"; then :
  22369. glibcxx_cv_func__expl_use=yes
  22370. else
  22371. glibcxx_cv_func__expl_use=no
  22372. fi
  22373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22374. ac_ext=c
  22375. ac_cpp='$CPP $CPPFLAGS'
  22376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22379. fi
  22380. fi
  22381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  22382. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  22383. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  22384. for ac_func in _expl
  22385. do :
  22386. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  22387. if test "x$ac_cv_func__expl" = xyes; then :
  22388. cat >>confdefs.h <<_ACEOF
  22389. #define HAVE__EXPL 1
  22390. _ACEOF
  22391. fi
  22392. done
  22393. fi
  22394. fi
  22395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  22396. $as_echo_n "checking for fabsl declaration... " >&6; }
  22397. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  22398. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  22399. $as_echo_n "(cached) " >&6
  22400. else
  22401. ac_ext=cpp
  22402. ac_cpp='$CXXCPP $CPPFLAGS'
  22403. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22404. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22405. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22407. /* end confdefs.h. */
  22408. #include <math.h>
  22409. #ifdef HAVE_IEEEFP_H
  22410. #include <ieeefp.h>
  22411. #endif
  22412. int
  22413. main ()
  22414. {
  22415. fabsl(0);
  22416. ;
  22417. return 0;
  22418. }
  22419. _ACEOF
  22420. if ac_fn_cxx_try_compile "$LINENO"; then :
  22421. glibcxx_cv_func_fabsl_use=yes
  22422. else
  22423. glibcxx_cv_func_fabsl_use=no
  22424. fi
  22425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22426. ac_ext=c
  22427. ac_cpp='$CPP $CPPFLAGS'
  22428. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22429. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22430. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22431. fi
  22432. fi
  22433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  22434. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  22435. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  22436. for ac_func in fabsl
  22437. do :
  22438. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  22439. if test "x$ac_cv_func_fabsl" = xyes; then :
  22440. cat >>confdefs.h <<_ACEOF
  22441. #define HAVE_FABSL 1
  22442. _ACEOF
  22443. fi
  22444. done
  22445. else
  22446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  22447. $as_echo_n "checking for _fabsl declaration... " >&6; }
  22448. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  22449. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  22450. $as_echo_n "(cached) " >&6
  22451. else
  22452. ac_ext=cpp
  22453. ac_cpp='$CXXCPP $CPPFLAGS'
  22454. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22455. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22456. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22458. /* end confdefs.h. */
  22459. #include <math.h>
  22460. #ifdef HAVE_IEEEFP_H
  22461. #include <ieeefp.h>
  22462. #endif
  22463. int
  22464. main ()
  22465. {
  22466. _fabsl(0);
  22467. ;
  22468. return 0;
  22469. }
  22470. _ACEOF
  22471. if ac_fn_cxx_try_compile "$LINENO"; then :
  22472. glibcxx_cv_func__fabsl_use=yes
  22473. else
  22474. glibcxx_cv_func__fabsl_use=no
  22475. fi
  22476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22477. ac_ext=c
  22478. ac_cpp='$CPP $CPPFLAGS'
  22479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22482. fi
  22483. fi
  22484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  22485. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  22486. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  22487. for ac_func in _fabsl
  22488. do :
  22489. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  22490. if test "x$ac_cv_func__fabsl" = xyes; then :
  22491. cat >>confdefs.h <<_ACEOF
  22492. #define HAVE__FABSL 1
  22493. _ACEOF
  22494. fi
  22495. done
  22496. fi
  22497. fi
  22498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  22499. $as_echo_n "checking for fmodl declaration... " >&6; }
  22500. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  22501. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  22502. $as_echo_n "(cached) " >&6
  22503. else
  22504. ac_ext=cpp
  22505. ac_cpp='$CXXCPP $CPPFLAGS'
  22506. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22507. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22508. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22510. /* end confdefs.h. */
  22511. #include <math.h>
  22512. int
  22513. main ()
  22514. {
  22515. fmodl(0, 0);
  22516. ;
  22517. return 0;
  22518. }
  22519. _ACEOF
  22520. if ac_fn_cxx_try_compile "$LINENO"; then :
  22521. glibcxx_cv_func_fmodl_use=yes
  22522. else
  22523. glibcxx_cv_func_fmodl_use=no
  22524. fi
  22525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22526. ac_ext=c
  22527. ac_cpp='$CPP $CPPFLAGS'
  22528. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22529. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22530. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22531. fi
  22532. fi
  22533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  22534. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  22535. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  22536. for ac_func in fmodl
  22537. do :
  22538. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  22539. if test "x$ac_cv_func_fmodl" = xyes; then :
  22540. cat >>confdefs.h <<_ACEOF
  22541. #define HAVE_FMODL 1
  22542. _ACEOF
  22543. fi
  22544. done
  22545. else
  22546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  22547. $as_echo_n "checking for _fmodl declaration... " >&6; }
  22548. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  22549. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  22550. $as_echo_n "(cached) " >&6
  22551. else
  22552. ac_ext=cpp
  22553. ac_cpp='$CXXCPP $CPPFLAGS'
  22554. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22555. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22556. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22558. /* end confdefs.h. */
  22559. #include <math.h>
  22560. int
  22561. main ()
  22562. {
  22563. _fmodl(0, 0);
  22564. ;
  22565. return 0;
  22566. }
  22567. _ACEOF
  22568. if ac_fn_cxx_try_compile "$LINENO"; then :
  22569. glibcxx_cv_func__fmodl_use=yes
  22570. else
  22571. glibcxx_cv_func__fmodl_use=no
  22572. fi
  22573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22574. ac_ext=c
  22575. ac_cpp='$CPP $CPPFLAGS'
  22576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22579. fi
  22580. fi
  22581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  22582. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  22583. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  22584. for ac_func in _fmodl
  22585. do :
  22586. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  22587. if test "x$ac_cv_func__fmodl" = xyes; then :
  22588. cat >>confdefs.h <<_ACEOF
  22589. #define HAVE__FMODL 1
  22590. _ACEOF
  22591. fi
  22592. done
  22593. fi
  22594. fi
  22595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  22596. $as_echo_n "checking for frexpl declaration... " >&6; }
  22597. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  22598. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  22599. $as_echo_n "(cached) " >&6
  22600. else
  22601. ac_ext=cpp
  22602. ac_cpp='$CXXCPP $CPPFLAGS'
  22603. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22604. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22605. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22607. /* end confdefs.h. */
  22608. #include <math.h>
  22609. int
  22610. main ()
  22611. {
  22612. frexpl(0, 0);
  22613. ;
  22614. return 0;
  22615. }
  22616. _ACEOF
  22617. if ac_fn_cxx_try_compile "$LINENO"; then :
  22618. glibcxx_cv_func_frexpl_use=yes
  22619. else
  22620. glibcxx_cv_func_frexpl_use=no
  22621. fi
  22622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22623. ac_ext=c
  22624. ac_cpp='$CPP $CPPFLAGS'
  22625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22628. fi
  22629. fi
  22630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  22631. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  22632. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  22633. for ac_func in frexpl
  22634. do :
  22635. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  22636. if test "x$ac_cv_func_frexpl" = xyes; then :
  22637. cat >>confdefs.h <<_ACEOF
  22638. #define HAVE_FREXPL 1
  22639. _ACEOF
  22640. fi
  22641. done
  22642. else
  22643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  22644. $as_echo_n "checking for _frexpl declaration... " >&6; }
  22645. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  22646. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  22647. $as_echo_n "(cached) " >&6
  22648. else
  22649. ac_ext=cpp
  22650. ac_cpp='$CXXCPP $CPPFLAGS'
  22651. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22652. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22653. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22655. /* end confdefs.h. */
  22656. #include <math.h>
  22657. int
  22658. main ()
  22659. {
  22660. _frexpl(0, 0);
  22661. ;
  22662. return 0;
  22663. }
  22664. _ACEOF
  22665. if ac_fn_cxx_try_compile "$LINENO"; then :
  22666. glibcxx_cv_func__frexpl_use=yes
  22667. else
  22668. glibcxx_cv_func__frexpl_use=no
  22669. fi
  22670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22671. ac_ext=c
  22672. ac_cpp='$CPP $CPPFLAGS'
  22673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22676. fi
  22677. fi
  22678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  22679. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  22680. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  22681. for ac_func in _frexpl
  22682. do :
  22683. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  22684. if test "x$ac_cv_func__frexpl" = xyes; then :
  22685. cat >>confdefs.h <<_ACEOF
  22686. #define HAVE__FREXPL 1
  22687. _ACEOF
  22688. fi
  22689. done
  22690. fi
  22691. fi
  22692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  22693. $as_echo_n "checking for hypotl declaration... " >&6; }
  22694. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  22695. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  22696. $as_echo_n "(cached) " >&6
  22697. else
  22698. ac_ext=cpp
  22699. ac_cpp='$CXXCPP $CPPFLAGS'
  22700. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22701. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22702. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22704. /* end confdefs.h. */
  22705. #include <math.h>
  22706. int
  22707. main ()
  22708. {
  22709. hypotl(0, 0);
  22710. ;
  22711. return 0;
  22712. }
  22713. _ACEOF
  22714. if ac_fn_cxx_try_compile "$LINENO"; then :
  22715. glibcxx_cv_func_hypotl_use=yes
  22716. else
  22717. glibcxx_cv_func_hypotl_use=no
  22718. fi
  22719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22720. ac_ext=c
  22721. ac_cpp='$CPP $CPPFLAGS'
  22722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22725. fi
  22726. fi
  22727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  22728. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  22729. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  22730. for ac_func in hypotl
  22731. do :
  22732. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  22733. if test "x$ac_cv_func_hypotl" = xyes; then :
  22734. cat >>confdefs.h <<_ACEOF
  22735. #define HAVE_HYPOTL 1
  22736. _ACEOF
  22737. fi
  22738. done
  22739. else
  22740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  22741. $as_echo_n "checking for _hypotl declaration... " >&6; }
  22742. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  22743. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  22744. $as_echo_n "(cached) " >&6
  22745. else
  22746. ac_ext=cpp
  22747. ac_cpp='$CXXCPP $CPPFLAGS'
  22748. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22749. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22752. /* end confdefs.h. */
  22753. #include <math.h>
  22754. int
  22755. main ()
  22756. {
  22757. _hypotl(0, 0);
  22758. ;
  22759. return 0;
  22760. }
  22761. _ACEOF
  22762. if ac_fn_cxx_try_compile "$LINENO"; then :
  22763. glibcxx_cv_func__hypotl_use=yes
  22764. else
  22765. glibcxx_cv_func__hypotl_use=no
  22766. fi
  22767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22768. ac_ext=c
  22769. ac_cpp='$CPP $CPPFLAGS'
  22770. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22771. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22772. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22773. fi
  22774. fi
  22775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  22776. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  22777. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  22778. for ac_func in _hypotl
  22779. do :
  22780. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  22781. if test "x$ac_cv_func__hypotl" = xyes; then :
  22782. cat >>confdefs.h <<_ACEOF
  22783. #define HAVE__HYPOTL 1
  22784. _ACEOF
  22785. fi
  22786. done
  22787. fi
  22788. fi
  22789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  22790. $as_echo_n "checking for ldexpl declaration... " >&6; }
  22791. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  22792. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  22793. $as_echo_n "(cached) " >&6
  22794. else
  22795. ac_ext=cpp
  22796. ac_cpp='$CXXCPP $CPPFLAGS'
  22797. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22798. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22799. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22801. /* end confdefs.h. */
  22802. #include <math.h>
  22803. int
  22804. main ()
  22805. {
  22806. ldexpl(0, 0);
  22807. ;
  22808. return 0;
  22809. }
  22810. _ACEOF
  22811. if ac_fn_cxx_try_compile "$LINENO"; then :
  22812. glibcxx_cv_func_ldexpl_use=yes
  22813. else
  22814. glibcxx_cv_func_ldexpl_use=no
  22815. fi
  22816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22817. ac_ext=c
  22818. ac_cpp='$CPP $CPPFLAGS'
  22819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22822. fi
  22823. fi
  22824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  22825. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  22826. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  22827. for ac_func in ldexpl
  22828. do :
  22829. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  22830. if test "x$ac_cv_func_ldexpl" = xyes; then :
  22831. cat >>confdefs.h <<_ACEOF
  22832. #define HAVE_LDEXPL 1
  22833. _ACEOF
  22834. fi
  22835. done
  22836. else
  22837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  22838. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  22839. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  22840. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  22841. $as_echo_n "(cached) " >&6
  22842. else
  22843. ac_ext=cpp
  22844. ac_cpp='$CXXCPP $CPPFLAGS'
  22845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22849. /* end confdefs.h. */
  22850. #include <math.h>
  22851. int
  22852. main ()
  22853. {
  22854. _ldexpl(0, 0);
  22855. ;
  22856. return 0;
  22857. }
  22858. _ACEOF
  22859. if ac_fn_cxx_try_compile "$LINENO"; then :
  22860. glibcxx_cv_func__ldexpl_use=yes
  22861. else
  22862. glibcxx_cv_func__ldexpl_use=no
  22863. fi
  22864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22865. ac_ext=c
  22866. ac_cpp='$CPP $CPPFLAGS'
  22867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22870. fi
  22871. fi
  22872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  22873. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  22874. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  22875. for ac_func in _ldexpl
  22876. do :
  22877. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  22878. if test "x$ac_cv_func__ldexpl" = xyes; then :
  22879. cat >>confdefs.h <<_ACEOF
  22880. #define HAVE__LDEXPL 1
  22881. _ACEOF
  22882. fi
  22883. done
  22884. fi
  22885. fi
  22886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  22887. $as_echo_n "checking for logl declaration... " >&6; }
  22888. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  22889. if ${glibcxx_cv_func_logl_use+:} false; then :
  22890. $as_echo_n "(cached) " >&6
  22891. else
  22892. ac_ext=cpp
  22893. ac_cpp='$CXXCPP $CPPFLAGS'
  22894. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22895. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22896. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22898. /* end confdefs.h. */
  22899. #include <math.h>
  22900. #ifdef HAVE_IEEEFP_H
  22901. #include <ieeefp.h>
  22902. #endif
  22903. int
  22904. main ()
  22905. {
  22906. logl(0);
  22907. ;
  22908. return 0;
  22909. }
  22910. _ACEOF
  22911. if ac_fn_cxx_try_compile "$LINENO"; then :
  22912. glibcxx_cv_func_logl_use=yes
  22913. else
  22914. glibcxx_cv_func_logl_use=no
  22915. fi
  22916. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22917. ac_ext=c
  22918. ac_cpp='$CPP $CPPFLAGS'
  22919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22922. fi
  22923. fi
  22924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  22925. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  22926. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  22927. for ac_func in logl
  22928. do :
  22929. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  22930. if test "x$ac_cv_func_logl" = xyes; then :
  22931. cat >>confdefs.h <<_ACEOF
  22932. #define HAVE_LOGL 1
  22933. _ACEOF
  22934. fi
  22935. done
  22936. else
  22937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  22938. $as_echo_n "checking for _logl declaration... " >&6; }
  22939. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  22940. if ${glibcxx_cv_func__logl_use+:} false; then :
  22941. $as_echo_n "(cached) " >&6
  22942. else
  22943. ac_ext=cpp
  22944. ac_cpp='$CXXCPP $CPPFLAGS'
  22945. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22946. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22947. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22949. /* end confdefs.h. */
  22950. #include <math.h>
  22951. #ifdef HAVE_IEEEFP_H
  22952. #include <ieeefp.h>
  22953. #endif
  22954. int
  22955. main ()
  22956. {
  22957. _logl(0);
  22958. ;
  22959. return 0;
  22960. }
  22961. _ACEOF
  22962. if ac_fn_cxx_try_compile "$LINENO"; then :
  22963. glibcxx_cv_func__logl_use=yes
  22964. else
  22965. glibcxx_cv_func__logl_use=no
  22966. fi
  22967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22968. ac_ext=c
  22969. ac_cpp='$CPP $CPPFLAGS'
  22970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22973. fi
  22974. fi
  22975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  22976. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  22977. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  22978. for ac_func in _logl
  22979. do :
  22980. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  22981. if test "x$ac_cv_func__logl" = xyes; then :
  22982. cat >>confdefs.h <<_ACEOF
  22983. #define HAVE__LOGL 1
  22984. _ACEOF
  22985. fi
  22986. done
  22987. fi
  22988. fi
  22989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  22990. $as_echo_n "checking for log10l declaration... " >&6; }
  22991. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  22992. if ${glibcxx_cv_func_log10l_use+:} false; then :
  22993. $as_echo_n "(cached) " >&6
  22994. else
  22995. ac_ext=cpp
  22996. ac_cpp='$CXXCPP $CPPFLAGS'
  22997. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22998. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22999. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23001. /* end confdefs.h. */
  23002. #include <math.h>
  23003. #ifdef HAVE_IEEEFP_H
  23004. #include <ieeefp.h>
  23005. #endif
  23006. int
  23007. main ()
  23008. {
  23009. log10l(0);
  23010. ;
  23011. return 0;
  23012. }
  23013. _ACEOF
  23014. if ac_fn_cxx_try_compile "$LINENO"; then :
  23015. glibcxx_cv_func_log10l_use=yes
  23016. else
  23017. glibcxx_cv_func_log10l_use=no
  23018. fi
  23019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23020. ac_ext=c
  23021. ac_cpp='$CPP $CPPFLAGS'
  23022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23025. fi
  23026. fi
  23027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  23028. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  23029. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  23030. for ac_func in log10l
  23031. do :
  23032. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  23033. if test "x$ac_cv_func_log10l" = xyes; then :
  23034. cat >>confdefs.h <<_ACEOF
  23035. #define HAVE_LOG10L 1
  23036. _ACEOF
  23037. fi
  23038. done
  23039. else
  23040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  23041. $as_echo_n "checking for _log10l declaration... " >&6; }
  23042. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  23043. if ${glibcxx_cv_func__log10l_use+:} false; then :
  23044. $as_echo_n "(cached) " >&6
  23045. else
  23046. ac_ext=cpp
  23047. ac_cpp='$CXXCPP $CPPFLAGS'
  23048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23052. /* end confdefs.h. */
  23053. #include <math.h>
  23054. #ifdef HAVE_IEEEFP_H
  23055. #include <ieeefp.h>
  23056. #endif
  23057. int
  23058. main ()
  23059. {
  23060. _log10l(0);
  23061. ;
  23062. return 0;
  23063. }
  23064. _ACEOF
  23065. if ac_fn_cxx_try_compile "$LINENO"; then :
  23066. glibcxx_cv_func__log10l_use=yes
  23067. else
  23068. glibcxx_cv_func__log10l_use=no
  23069. fi
  23070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23071. ac_ext=c
  23072. ac_cpp='$CPP $CPPFLAGS'
  23073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23076. fi
  23077. fi
  23078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  23079. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  23080. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  23081. for ac_func in _log10l
  23082. do :
  23083. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  23084. if test "x$ac_cv_func__log10l" = xyes; then :
  23085. cat >>confdefs.h <<_ACEOF
  23086. #define HAVE__LOG10L 1
  23087. _ACEOF
  23088. fi
  23089. done
  23090. fi
  23091. fi
  23092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  23093. $as_echo_n "checking for modfl declaration... " >&6; }
  23094. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  23095. if ${glibcxx_cv_func_modfl_use+:} false; then :
  23096. $as_echo_n "(cached) " >&6
  23097. else
  23098. ac_ext=cpp
  23099. ac_cpp='$CXXCPP $CPPFLAGS'
  23100. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23101. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23102. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23104. /* end confdefs.h. */
  23105. #include <math.h>
  23106. int
  23107. main ()
  23108. {
  23109. modfl(0, 0);
  23110. ;
  23111. return 0;
  23112. }
  23113. _ACEOF
  23114. if ac_fn_cxx_try_compile "$LINENO"; then :
  23115. glibcxx_cv_func_modfl_use=yes
  23116. else
  23117. glibcxx_cv_func_modfl_use=no
  23118. fi
  23119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23120. ac_ext=c
  23121. ac_cpp='$CPP $CPPFLAGS'
  23122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23125. fi
  23126. fi
  23127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  23128. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  23129. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  23130. for ac_func in modfl
  23131. do :
  23132. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  23133. if test "x$ac_cv_func_modfl" = xyes; then :
  23134. cat >>confdefs.h <<_ACEOF
  23135. #define HAVE_MODFL 1
  23136. _ACEOF
  23137. fi
  23138. done
  23139. else
  23140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  23141. $as_echo_n "checking for _modfl declaration... " >&6; }
  23142. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  23143. if ${glibcxx_cv_func__modfl_use+:} false; then :
  23144. $as_echo_n "(cached) " >&6
  23145. else
  23146. ac_ext=cpp
  23147. ac_cpp='$CXXCPP $CPPFLAGS'
  23148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23152. /* end confdefs.h. */
  23153. #include <math.h>
  23154. int
  23155. main ()
  23156. {
  23157. _modfl(0, 0);
  23158. ;
  23159. return 0;
  23160. }
  23161. _ACEOF
  23162. if ac_fn_cxx_try_compile "$LINENO"; then :
  23163. glibcxx_cv_func__modfl_use=yes
  23164. else
  23165. glibcxx_cv_func__modfl_use=no
  23166. fi
  23167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23168. ac_ext=c
  23169. ac_cpp='$CPP $CPPFLAGS'
  23170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23173. fi
  23174. fi
  23175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  23176. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  23177. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  23178. for ac_func in _modfl
  23179. do :
  23180. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  23181. if test "x$ac_cv_func__modfl" = xyes; then :
  23182. cat >>confdefs.h <<_ACEOF
  23183. #define HAVE__MODFL 1
  23184. _ACEOF
  23185. fi
  23186. done
  23187. fi
  23188. fi
  23189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  23190. $as_echo_n "checking for powl declaration... " >&6; }
  23191. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  23192. if ${glibcxx_cv_func_powl_use+:} false; then :
  23193. $as_echo_n "(cached) " >&6
  23194. else
  23195. ac_ext=cpp
  23196. ac_cpp='$CXXCPP $CPPFLAGS'
  23197. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23198. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23199. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23201. /* end confdefs.h. */
  23202. #include <math.h>
  23203. int
  23204. main ()
  23205. {
  23206. powl(0, 0);
  23207. ;
  23208. return 0;
  23209. }
  23210. _ACEOF
  23211. if ac_fn_cxx_try_compile "$LINENO"; then :
  23212. glibcxx_cv_func_powl_use=yes
  23213. else
  23214. glibcxx_cv_func_powl_use=no
  23215. fi
  23216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23217. ac_ext=c
  23218. ac_cpp='$CPP $CPPFLAGS'
  23219. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23220. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23221. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23222. fi
  23223. fi
  23224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  23225. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  23226. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  23227. for ac_func in powl
  23228. do :
  23229. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  23230. if test "x$ac_cv_func_powl" = xyes; then :
  23231. cat >>confdefs.h <<_ACEOF
  23232. #define HAVE_POWL 1
  23233. _ACEOF
  23234. fi
  23235. done
  23236. else
  23237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  23238. $as_echo_n "checking for _powl declaration... " >&6; }
  23239. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  23240. if ${glibcxx_cv_func__powl_use+:} false; then :
  23241. $as_echo_n "(cached) " >&6
  23242. else
  23243. ac_ext=cpp
  23244. ac_cpp='$CXXCPP $CPPFLAGS'
  23245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23249. /* end confdefs.h. */
  23250. #include <math.h>
  23251. int
  23252. main ()
  23253. {
  23254. _powl(0, 0);
  23255. ;
  23256. return 0;
  23257. }
  23258. _ACEOF
  23259. if ac_fn_cxx_try_compile "$LINENO"; then :
  23260. glibcxx_cv_func__powl_use=yes
  23261. else
  23262. glibcxx_cv_func__powl_use=no
  23263. fi
  23264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23265. ac_ext=c
  23266. ac_cpp='$CPP $CPPFLAGS'
  23267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23270. fi
  23271. fi
  23272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  23273. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  23274. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  23275. for ac_func in _powl
  23276. do :
  23277. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  23278. if test "x$ac_cv_func__powl" = xyes; then :
  23279. cat >>confdefs.h <<_ACEOF
  23280. #define HAVE__POWL 1
  23281. _ACEOF
  23282. fi
  23283. done
  23284. fi
  23285. fi
  23286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  23287. $as_echo_n "checking for sqrtl declaration... " >&6; }
  23288. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  23289. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  23290. $as_echo_n "(cached) " >&6
  23291. else
  23292. ac_ext=cpp
  23293. ac_cpp='$CXXCPP $CPPFLAGS'
  23294. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23295. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23296. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23298. /* end confdefs.h. */
  23299. #include <math.h>
  23300. #ifdef HAVE_IEEEFP_H
  23301. #include <ieeefp.h>
  23302. #endif
  23303. int
  23304. main ()
  23305. {
  23306. sqrtl(0);
  23307. ;
  23308. return 0;
  23309. }
  23310. _ACEOF
  23311. if ac_fn_cxx_try_compile "$LINENO"; then :
  23312. glibcxx_cv_func_sqrtl_use=yes
  23313. else
  23314. glibcxx_cv_func_sqrtl_use=no
  23315. fi
  23316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23317. ac_ext=c
  23318. ac_cpp='$CPP $CPPFLAGS'
  23319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23322. fi
  23323. fi
  23324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  23325. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  23326. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  23327. for ac_func in sqrtl
  23328. do :
  23329. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  23330. if test "x$ac_cv_func_sqrtl" = xyes; then :
  23331. cat >>confdefs.h <<_ACEOF
  23332. #define HAVE_SQRTL 1
  23333. _ACEOF
  23334. fi
  23335. done
  23336. else
  23337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  23338. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  23339. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  23340. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  23341. $as_echo_n "(cached) " >&6
  23342. else
  23343. ac_ext=cpp
  23344. ac_cpp='$CXXCPP $CPPFLAGS'
  23345. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23346. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23347. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23349. /* end confdefs.h. */
  23350. #include <math.h>
  23351. #ifdef HAVE_IEEEFP_H
  23352. #include <ieeefp.h>
  23353. #endif
  23354. int
  23355. main ()
  23356. {
  23357. _sqrtl(0);
  23358. ;
  23359. return 0;
  23360. }
  23361. _ACEOF
  23362. if ac_fn_cxx_try_compile "$LINENO"; then :
  23363. glibcxx_cv_func__sqrtl_use=yes
  23364. else
  23365. glibcxx_cv_func__sqrtl_use=no
  23366. fi
  23367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23368. ac_ext=c
  23369. ac_cpp='$CPP $CPPFLAGS'
  23370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23373. fi
  23374. fi
  23375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  23376. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  23377. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  23378. for ac_func in _sqrtl
  23379. do :
  23380. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  23381. if test "x$ac_cv_func__sqrtl" = xyes; then :
  23382. cat >>confdefs.h <<_ACEOF
  23383. #define HAVE__SQRTL 1
  23384. _ACEOF
  23385. fi
  23386. done
  23387. fi
  23388. fi
  23389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  23390. $as_echo_n "checking for sincosl declaration... " >&6; }
  23391. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  23392. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  23393. $as_echo_n "(cached) " >&6
  23394. else
  23395. ac_ext=cpp
  23396. ac_cpp='$CXXCPP $CPPFLAGS'
  23397. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23398. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23399. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23401. /* end confdefs.h. */
  23402. #include <math.h>
  23403. int
  23404. main ()
  23405. {
  23406. sincosl(0, 0, 0);
  23407. ;
  23408. return 0;
  23409. }
  23410. _ACEOF
  23411. if ac_fn_cxx_try_compile "$LINENO"; then :
  23412. glibcxx_cv_func_sincosl_use=yes
  23413. else
  23414. glibcxx_cv_func_sincosl_use=no
  23415. fi
  23416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23417. ac_ext=c
  23418. ac_cpp='$CPP $CPPFLAGS'
  23419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23422. fi
  23423. fi
  23424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  23425. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  23426. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  23427. for ac_func in sincosl
  23428. do :
  23429. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  23430. if test "x$ac_cv_func_sincosl" = xyes; then :
  23431. cat >>confdefs.h <<_ACEOF
  23432. #define HAVE_SINCOSL 1
  23433. _ACEOF
  23434. fi
  23435. done
  23436. else
  23437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  23438. $as_echo_n "checking for _sincosl declaration... " >&6; }
  23439. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  23440. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  23441. $as_echo_n "(cached) " >&6
  23442. else
  23443. ac_ext=cpp
  23444. ac_cpp='$CXXCPP $CPPFLAGS'
  23445. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23446. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23447. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23449. /* end confdefs.h. */
  23450. #include <math.h>
  23451. int
  23452. main ()
  23453. {
  23454. _sincosl(0, 0, 0);
  23455. ;
  23456. return 0;
  23457. }
  23458. _ACEOF
  23459. if ac_fn_cxx_try_compile "$LINENO"; then :
  23460. glibcxx_cv_func__sincosl_use=yes
  23461. else
  23462. glibcxx_cv_func__sincosl_use=no
  23463. fi
  23464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23465. ac_ext=c
  23466. ac_cpp='$CPP $CPPFLAGS'
  23467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23470. fi
  23471. fi
  23472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  23473. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  23474. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  23475. for ac_func in _sincosl
  23476. do :
  23477. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  23478. if test "x$ac_cv_func__sincosl" = xyes; then :
  23479. cat >>confdefs.h <<_ACEOF
  23480. #define HAVE__SINCOSL 1
  23481. _ACEOF
  23482. fi
  23483. done
  23484. fi
  23485. fi
  23486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  23487. $as_echo_n "checking for finitel declaration... " >&6; }
  23488. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  23489. if ${glibcxx_cv_func_finitel_use+:} false; then :
  23490. $as_echo_n "(cached) " >&6
  23491. else
  23492. ac_ext=cpp
  23493. ac_cpp='$CXXCPP $CPPFLAGS'
  23494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23498. /* end confdefs.h. */
  23499. #include <math.h>
  23500. #ifdef HAVE_IEEEFP_H
  23501. #include <ieeefp.h>
  23502. #endif
  23503. int
  23504. main ()
  23505. {
  23506. finitel(0);
  23507. ;
  23508. return 0;
  23509. }
  23510. _ACEOF
  23511. if ac_fn_cxx_try_compile "$LINENO"; then :
  23512. glibcxx_cv_func_finitel_use=yes
  23513. else
  23514. glibcxx_cv_func_finitel_use=no
  23515. fi
  23516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23517. ac_ext=c
  23518. ac_cpp='$CPP $CPPFLAGS'
  23519. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23520. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23521. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23522. fi
  23523. fi
  23524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  23525. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  23526. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  23527. for ac_func in finitel
  23528. do :
  23529. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  23530. if test "x$ac_cv_func_finitel" = xyes; then :
  23531. cat >>confdefs.h <<_ACEOF
  23532. #define HAVE_FINITEL 1
  23533. _ACEOF
  23534. fi
  23535. done
  23536. else
  23537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  23538. $as_echo_n "checking for _finitel declaration... " >&6; }
  23539. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  23540. if ${glibcxx_cv_func__finitel_use+:} false; then :
  23541. $as_echo_n "(cached) " >&6
  23542. else
  23543. ac_ext=cpp
  23544. ac_cpp='$CXXCPP $CPPFLAGS'
  23545. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23546. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23547. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23549. /* end confdefs.h. */
  23550. #include <math.h>
  23551. #ifdef HAVE_IEEEFP_H
  23552. #include <ieeefp.h>
  23553. #endif
  23554. int
  23555. main ()
  23556. {
  23557. _finitel(0);
  23558. ;
  23559. return 0;
  23560. }
  23561. _ACEOF
  23562. if ac_fn_cxx_try_compile "$LINENO"; then :
  23563. glibcxx_cv_func__finitel_use=yes
  23564. else
  23565. glibcxx_cv_func__finitel_use=no
  23566. fi
  23567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23568. ac_ext=c
  23569. ac_cpp='$CPP $CPPFLAGS'
  23570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23573. fi
  23574. fi
  23575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  23576. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  23577. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  23578. for ac_func in _finitel
  23579. do :
  23580. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  23581. if test "x$ac_cv_func__finitel" = xyes; then :
  23582. cat >>confdefs.h <<_ACEOF
  23583. #define HAVE__FINITEL 1
  23584. _ACEOF
  23585. fi
  23586. done
  23587. fi
  23588. fi
  23589. LIBS="$ac_save_LIBS"
  23590. CXXFLAGS="$ac_save_CXXFLAGS"
  23591. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  23592. ac_save_CXXFLAGS="$CXXFLAGS"
  23593. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  23594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  23595. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  23596. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  23597. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  23598. $as_echo_n "(cached) " >&6
  23599. else
  23600. ac_ext=cpp
  23601. ac_cpp='$CXXCPP $CPPFLAGS'
  23602. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23603. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23604. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23606. /* end confdefs.h. */
  23607. #include <stdlib.h>
  23608. int
  23609. main ()
  23610. {
  23611. at_quick_exit(0);
  23612. ;
  23613. return 0;
  23614. }
  23615. _ACEOF
  23616. if ac_fn_cxx_try_compile "$LINENO"; then :
  23617. glibcxx_cv_func_at_quick_exit_use=yes
  23618. else
  23619. glibcxx_cv_func_at_quick_exit_use=no
  23620. fi
  23621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23622. ac_ext=c
  23623. ac_cpp='$CPP $CPPFLAGS'
  23624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23627. fi
  23628. fi
  23629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  23630. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  23631. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  23632. for ac_func in at_quick_exit
  23633. do :
  23634. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  23635. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  23636. cat >>confdefs.h <<_ACEOF
  23637. #define HAVE_AT_QUICK_EXIT 1
  23638. _ACEOF
  23639. fi
  23640. done
  23641. fi
  23642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  23643. $as_echo_n "checking for quick_exit declaration... " >&6; }
  23644. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  23645. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  23646. $as_echo_n "(cached) " >&6
  23647. else
  23648. ac_ext=cpp
  23649. ac_cpp='$CXXCPP $CPPFLAGS'
  23650. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23651. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23652. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23654. /* end confdefs.h. */
  23655. #include <stdlib.h>
  23656. int
  23657. main ()
  23658. {
  23659. quick_exit(0);
  23660. ;
  23661. return 0;
  23662. }
  23663. _ACEOF
  23664. if ac_fn_cxx_try_compile "$LINENO"; then :
  23665. glibcxx_cv_func_quick_exit_use=yes
  23666. else
  23667. glibcxx_cv_func_quick_exit_use=no
  23668. fi
  23669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23670. ac_ext=c
  23671. ac_cpp='$CPP $CPPFLAGS'
  23672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23675. fi
  23676. fi
  23677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  23678. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  23679. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  23680. for ac_func in quick_exit
  23681. do :
  23682. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  23683. if test "x$ac_cv_func_quick_exit" = xyes; then :
  23684. cat >>confdefs.h <<_ACEOF
  23685. #define HAVE_QUICK_EXIT 1
  23686. _ACEOF
  23687. fi
  23688. done
  23689. fi
  23690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  23691. $as_echo_n "checking for strtold declaration... " >&6; }
  23692. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  23693. if ${glibcxx_cv_func_strtold_use+:} false; then :
  23694. $as_echo_n "(cached) " >&6
  23695. else
  23696. ac_ext=cpp
  23697. ac_cpp='$CXXCPP $CPPFLAGS'
  23698. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23699. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23700. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23702. /* end confdefs.h. */
  23703. #include <stdlib.h>
  23704. int
  23705. main ()
  23706. {
  23707. strtold(0, 0);
  23708. ;
  23709. return 0;
  23710. }
  23711. _ACEOF
  23712. if ac_fn_cxx_try_compile "$LINENO"; then :
  23713. glibcxx_cv_func_strtold_use=yes
  23714. else
  23715. glibcxx_cv_func_strtold_use=no
  23716. fi
  23717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23718. ac_ext=c
  23719. ac_cpp='$CPP $CPPFLAGS'
  23720. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23721. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23722. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23723. fi
  23724. fi
  23725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  23726. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  23727. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  23728. for ac_func in strtold
  23729. do :
  23730. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  23731. if test "x$ac_cv_func_strtold" = xyes; then :
  23732. cat >>confdefs.h <<_ACEOF
  23733. #define HAVE_STRTOLD 1
  23734. _ACEOF
  23735. fi
  23736. done
  23737. fi
  23738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  23739. $as_echo_n "checking for strtof declaration... " >&6; }
  23740. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  23741. if ${glibcxx_cv_func_strtof_use+:} false; then :
  23742. $as_echo_n "(cached) " >&6
  23743. else
  23744. ac_ext=cpp
  23745. ac_cpp='$CXXCPP $CPPFLAGS'
  23746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23750. /* end confdefs.h. */
  23751. #include <stdlib.h>
  23752. int
  23753. main ()
  23754. {
  23755. strtof(0, 0);
  23756. ;
  23757. return 0;
  23758. }
  23759. _ACEOF
  23760. if ac_fn_cxx_try_compile "$LINENO"; then :
  23761. glibcxx_cv_func_strtof_use=yes
  23762. else
  23763. glibcxx_cv_func_strtof_use=no
  23764. fi
  23765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  23766. ac_ext=c
  23767. ac_cpp='$CPP $CPPFLAGS'
  23768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23771. fi
  23772. fi
  23773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  23774. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  23775. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  23776. for ac_func in strtof
  23777. do :
  23778. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  23779. if test "x$ac_cv_func_strtof" = xyes; then :
  23780. cat >>confdefs.h <<_ACEOF
  23781. #define HAVE_STRTOF 1
  23782. _ACEOF
  23783. fi
  23784. done
  23785. fi
  23786. CXXFLAGS="$ac_save_CXXFLAGS"
  23787. # For /dev/random and /dev/urandom for std::random_device.
  23788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device" >&5
  23789. $as_echo_n "checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device... " >&6; }
  23790. if ${glibcxx_cv_dev_random+:} false; then :
  23791. $as_echo_n "(cached) " >&6
  23792. else
  23793. if test -r /dev/random && test -r /dev/urandom; then
  23794. ## For MSys environment the test above is detected as false-positive
  23795. ## on mingw-targets. So disable it explicitly for them.
  23796. case ${target_os} in
  23797. *mingw*) glibcxx_cv_dev_random=no ;;
  23798. *) glibcxx_cv_dev_random=yes ;;
  23799. esac
  23800. else
  23801. glibcxx_cv_dev_random=no;
  23802. fi
  23803. fi
  23804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dev_random" >&5
  23805. $as_echo "$glibcxx_cv_dev_random" >&6; }
  23806. if test x"$glibcxx_cv_dev_random" = x"yes"; then
  23807. $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
  23808. $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
  23809. fi
  23810. # For TLS support.
  23811. # Check whether --enable-tls was given.
  23812. if test "${enable_tls+set}" = set; then :
  23813. enableval=$enable_tls;
  23814. case "$enableval" in
  23815. yes|no) ;;
  23816. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  23817. esac
  23818. else
  23819. enable_tls=yes
  23820. fi
  23821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  23822. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  23823. if ${gcc_cv_have_tls+:} false; then :
  23824. $as_echo_n "(cached) " >&6
  23825. else
  23826. if test "$cross_compiling" = yes; then :
  23827. if test x$gcc_no_link = xyes; then
  23828. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  23829. fi
  23830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23831. /* end confdefs.h. */
  23832. __thread int a; int b; int main() { return a = b; }
  23833. _ACEOF
  23834. if ac_fn_c_try_link "$LINENO"; then :
  23835. chktls_save_LDFLAGS="$LDFLAGS"
  23836. case $host in
  23837. *-*-linux* | -*-uclinuxfdpic*)
  23838. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  23839. ;;
  23840. esac
  23841. chktls_save_CFLAGS="$CFLAGS"
  23842. CFLAGS="-fPIC $CFLAGS"
  23843. if test x$gcc_no_link = xyes; then
  23844. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  23845. fi
  23846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23847. /* end confdefs.h. */
  23848. int f() { return 0; }
  23849. _ACEOF
  23850. if ac_fn_c_try_link "$LINENO"; then :
  23851. if test x$gcc_no_link = xyes; then
  23852. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  23853. fi
  23854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23855. /* end confdefs.h. */
  23856. __thread int a; int b; int f() { return a = b; }
  23857. _ACEOF
  23858. if ac_fn_c_try_link "$LINENO"; then :
  23859. gcc_cv_have_tls=yes
  23860. else
  23861. gcc_cv_have_tls=no
  23862. fi
  23863. rm -f core conftest.err conftest.$ac_objext \
  23864. conftest$ac_exeext conftest.$ac_ext
  23865. else
  23866. gcc_cv_have_tls=yes
  23867. fi
  23868. rm -f core conftest.err conftest.$ac_objext \
  23869. conftest$ac_exeext conftest.$ac_ext
  23870. CFLAGS="$chktls_save_CFLAGS"
  23871. LDFLAGS="$chktls_save_LDFLAGS"
  23872. else
  23873. gcc_cv_have_tls=no
  23874. fi
  23875. rm -f core conftest.err conftest.$ac_objext \
  23876. conftest$ac_exeext conftest.$ac_ext
  23877. else
  23878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23879. /* end confdefs.h. */
  23880. __thread int a; int b; int main() { return a = b; }
  23881. _ACEOF
  23882. if ac_fn_c_try_run "$LINENO"; then :
  23883. chktls_save_LDFLAGS="$LDFLAGS"
  23884. LDFLAGS="-static $LDFLAGS"
  23885. if test x$gcc_no_link = xyes; then
  23886. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  23887. fi
  23888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23889. /* end confdefs.h. */
  23890. int main() { return 0; }
  23891. _ACEOF
  23892. if ac_fn_c_try_link "$LINENO"; then :
  23893. if test "$cross_compiling" = yes; then :
  23894. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23896. as_fn_error $? "cannot run test program while cross compiling
  23897. See \`config.log' for more details" "$LINENO" 5; }
  23898. else
  23899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23900. /* end confdefs.h. */
  23901. __thread int a; int b; int main() { return a = b; }
  23902. _ACEOF
  23903. if ac_fn_c_try_run "$LINENO"; then :
  23904. gcc_cv_have_tls=yes
  23905. else
  23906. gcc_cv_have_tls=no
  23907. fi
  23908. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23909. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23910. fi
  23911. else
  23912. gcc_cv_have_tls=yes
  23913. fi
  23914. rm -f core conftest.err conftest.$ac_objext \
  23915. conftest$ac_exeext conftest.$ac_ext
  23916. LDFLAGS="$chktls_save_LDFLAGS"
  23917. if test $gcc_cv_have_tls = yes; then
  23918. chktls_save_CFLAGS="$CFLAGS"
  23919. thread_CFLAGS=failed
  23920. for flag in '' '-pthread' '-lpthread'; do
  23921. CFLAGS="$flag $chktls_save_CFLAGS"
  23922. if test x$gcc_no_link = xyes; then
  23923. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  23924. fi
  23925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23926. /* end confdefs.h. */
  23927. #include <pthread.h>
  23928. void *g(void *d) { return NULL; }
  23929. int
  23930. main ()
  23931. {
  23932. pthread_t t; pthread_create(&t,NULL,g,NULL);
  23933. ;
  23934. return 0;
  23935. }
  23936. _ACEOF
  23937. if ac_fn_c_try_link "$LINENO"; then :
  23938. thread_CFLAGS="$flag"
  23939. fi
  23940. rm -f core conftest.err conftest.$ac_objext \
  23941. conftest$ac_exeext conftest.$ac_ext
  23942. if test "X$thread_CFLAGS" != Xfailed; then
  23943. break
  23944. fi
  23945. done
  23946. CFLAGS="$chktls_save_CFLAGS"
  23947. if test "X$thread_CFLAGS" != Xfailed; then
  23948. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  23949. if test "$cross_compiling" = yes; then :
  23950. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23952. as_fn_error $? "cannot run test program while cross compiling
  23953. See \`config.log' for more details" "$LINENO" 5; }
  23954. else
  23955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23956. /* end confdefs.h. */
  23957. #include <pthread.h>
  23958. __thread int a;
  23959. static int *volatile a_in_other_thread;
  23960. static void *
  23961. thread_func (void *arg)
  23962. {
  23963. a_in_other_thread = &a;
  23964. return (void *)0;
  23965. }
  23966. int
  23967. main ()
  23968. {
  23969. pthread_t thread;
  23970. void *thread_retval;
  23971. int *volatile a_in_main_thread;
  23972. a_in_main_thread = &a;
  23973. if (pthread_create (&thread, (pthread_attr_t *)0,
  23974. thread_func, (void *)0))
  23975. return 0;
  23976. if (pthread_join (thread, &thread_retval))
  23977. return 0;
  23978. return (a_in_other_thread == a_in_main_thread);
  23979. ;
  23980. return 0;
  23981. }
  23982. _ACEOF
  23983. if ac_fn_c_try_run "$LINENO"; then :
  23984. gcc_cv_have_tls=yes
  23985. else
  23986. gcc_cv_have_tls=no
  23987. fi
  23988. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23989. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23990. fi
  23991. CFLAGS="$chktls_save_CFLAGS"
  23992. fi
  23993. fi
  23994. else
  23995. gcc_cv_have_tls=no
  23996. fi
  23997. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  23998. conftest.$ac_objext conftest.beam conftest.$ac_ext
  23999. fi
  24000. fi
  24001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  24002. $as_echo "$gcc_cv_have_tls" >&6; }
  24003. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  24004. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  24005. fi
  24006. for ac_func in __cxa_thread_atexit_impl __cxa_thread_atexit
  24007. do :
  24008. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24009. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  24010. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  24011. cat >>confdefs.h <<_ACEOF
  24012. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24013. _ACEOF
  24014. fi
  24015. done
  24016. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  24017. do :
  24018. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  24019. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  24020. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  24021. cat >>confdefs.h <<_ACEOF
  24022. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  24023. _ACEOF
  24024. fi
  24025. done
  24026. for ac_func in _wfopen
  24027. do :
  24028. ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
  24029. if test "x$ac_cv_func__wfopen" = xyes; then :
  24030. cat >>confdefs.h <<_ACEOF
  24031. #define HAVE__WFOPEN 1
  24032. _ACEOF
  24033. fi
  24034. done
  24035. for ac_func in secure_getenv
  24036. do :
  24037. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  24038. if test "x$ac_cv_func_secure_getenv" = xyes; then :
  24039. cat >>confdefs.h <<_ACEOF
  24040. #define HAVE_SECURE_GETENV 1
  24041. _ACEOF
  24042. fi
  24043. done
  24044. # C11 functions for C++17 library
  24045. for ac_func in timespec_get
  24046. do :
  24047. ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
  24048. if test "x$ac_cv_func_timespec_get" = xyes; then :
  24049. cat >>confdefs.h <<_ACEOF
  24050. #define HAVE_TIMESPEC_GET 1
  24051. _ACEOF
  24052. fi
  24053. done
  24054. # For Networking TS.
  24055. for ac_func in sockatmark
  24056. do :
  24057. ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
  24058. if test "x$ac_cv_func_sockatmark" = xyes; then :
  24059. cat >>confdefs.h <<_ACEOF
  24060. #define HAVE_SOCKATMARK 1
  24061. _ACEOF
  24062. fi
  24063. done
  24064. # Non-standard functions used by C++17 std::from_chars
  24065. for ac_func in uselocale
  24066. do :
  24067. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  24068. if test "x$ac_cv_func_uselocale" = xyes; then :
  24069. cat >>confdefs.h <<_ACEOF
  24070. #define HAVE_USELOCALE 1
  24071. _ACEOF
  24072. fi
  24073. done
  24074. # For iconv support.
  24075. if test "X$prefix" = "XNONE"; then
  24076. acl_final_prefix="$ac_default_prefix"
  24077. else
  24078. acl_final_prefix="$prefix"
  24079. fi
  24080. if test "X$exec_prefix" = "XNONE"; then
  24081. acl_final_exec_prefix='${prefix}'
  24082. else
  24083. acl_final_exec_prefix="$exec_prefix"
  24084. fi
  24085. acl_save_prefix="$prefix"
  24086. prefix="$acl_final_prefix"
  24087. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  24088. prefix="$acl_save_prefix"
  24089. # Check whether --with-gnu-ld was given.
  24090. if test "${with_gnu_ld+set}" = set; then :
  24091. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  24092. else
  24093. with_gnu_ld=no
  24094. fi
  24095. # Prepare PATH_SEPARATOR.
  24096. # The user is always right.
  24097. if test "${PATH_SEPARATOR+set}" != set; then
  24098. echo "#! /bin/sh" >conf$$.sh
  24099. echo "exit 0" >>conf$$.sh
  24100. chmod +x conf$$.sh
  24101. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  24102. PATH_SEPARATOR=';'
  24103. else
  24104. PATH_SEPARATOR=:
  24105. fi
  24106. rm -f conf$$.sh
  24107. fi
  24108. ac_prog=ld
  24109. if test "$GCC" = yes; then
  24110. # Check if gcc -print-prog-name=ld gives a path.
  24111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  24112. $as_echo_n "checking for ld used by GCC... " >&6; }
  24113. case $host in
  24114. *-*-mingw*)
  24115. # gcc leaves a trailing carriage return which upsets mingw
  24116. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  24117. *)
  24118. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  24119. esac
  24120. case $ac_prog in
  24121. # Accept absolute paths.
  24122. [\\/]* | [A-Za-z]:[\\/]*)
  24123. re_direlt='/[^/][^/]*/\.\./'
  24124. # Canonicalize the path of ld
  24125. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  24126. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  24127. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  24128. done
  24129. test -z "$LD" && LD="$ac_prog"
  24130. ;;
  24131. "")
  24132. # If it fails, then pretend we aren't using GCC.
  24133. ac_prog=ld
  24134. ;;
  24135. *)
  24136. # If it is relative, then search for the first ld in PATH.
  24137. with_gnu_ld=unknown
  24138. ;;
  24139. esac
  24140. elif test "$with_gnu_ld" = yes; then
  24141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  24142. $as_echo_n "checking for GNU ld... " >&6; }
  24143. else
  24144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  24145. $as_echo_n "checking for non-GNU ld... " >&6; }
  24146. fi
  24147. if ${acl_cv_path_LD+:} false; then :
  24148. $as_echo_n "(cached) " >&6
  24149. else
  24150. if test -z "$LD"; then
  24151. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  24152. for ac_dir in $PATH; do
  24153. test -z "$ac_dir" && ac_dir=.
  24154. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  24155. acl_cv_path_LD="$ac_dir/$ac_prog"
  24156. # Check to see if the program is GNU ld. I'd rather use --version,
  24157. # but apparently some GNU ld's only accept -v.
  24158. # Break only if it was the GNU/non-GNU ld that we prefer.
  24159. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  24160. test "$with_gnu_ld" != no && break
  24161. else
  24162. test "$with_gnu_ld" != yes && break
  24163. fi
  24164. fi
  24165. done
  24166. IFS="$ac_save_ifs"
  24167. else
  24168. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  24169. fi
  24170. fi
  24171. LD="$acl_cv_path_LD"
  24172. if test -n "$LD"; then
  24173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  24174. $as_echo "$LD" >&6; }
  24175. else
  24176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24177. $as_echo "no" >&6; }
  24178. fi
  24179. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  24180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  24181. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  24182. if ${acl_cv_prog_gnu_ld+:} false; then :
  24183. $as_echo_n "(cached) " >&6
  24184. else
  24185. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  24186. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  24187. acl_cv_prog_gnu_ld=yes
  24188. else
  24189. acl_cv_prog_gnu_ld=no
  24190. fi
  24191. fi
  24192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  24193. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  24194. with_gnu_ld=$acl_cv_prog_gnu_ld
  24195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  24196. $as_echo_n "checking for shared library run path origin... " >&6; }
  24197. if ${acl_cv_rpath+:} false; then :
  24198. $as_echo_n "(cached) " >&6
  24199. else
  24200. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  24201. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  24202. . ./conftest.sh
  24203. rm -f ./conftest.sh
  24204. acl_cv_rpath=done
  24205. fi
  24206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  24207. $as_echo "$acl_cv_rpath" >&6; }
  24208. wl="$acl_cv_wl"
  24209. libext="$acl_cv_libext"
  24210. shlibext="$acl_cv_shlibext"
  24211. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  24212. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  24213. hardcode_direct="$acl_cv_hardcode_direct"
  24214. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  24215. # Check whether --enable-rpath was given.
  24216. if test "${enable_rpath+set}" = set; then :
  24217. enableval=$enable_rpath; :
  24218. else
  24219. enable_rpath=yes
  24220. fi
  24221. use_additional=yes
  24222. acl_save_prefix="$prefix"
  24223. prefix="$acl_final_prefix"
  24224. acl_save_exec_prefix="$exec_prefix"
  24225. exec_prefix="$acl_final_exec_prefix"
  24226. eval additional_includedir=\"$includedir\"
  24227. eval additional_libdir=\"$libdir\"
  24228. exec_prefix="$acl_save_exec_prefix"
  24229. prefix="$acl_save_prefix"
  24230. # Check whether --with-libiconv-prefix was given.
  24231. if test "${with_libiconv_prefix+set}" = set; then :
  24232. withval=$with_libiconv_prefix;
  24233. if test "X$withval" = "Xno"; then
  24234. use_additional=no
  24235. else
  24236. if test "X$withval" = "X"; then
  24237. acl_save_prefix="$prefix"
  24238. prefix="$acl_final_prefix"
  24239. acl_save_exec_prefix="$exec_prefix"
  24240. exec_prefix="$acl_final_exec_prefix"
  24241. eval additional_includedir=\"$includedir\"
  24242. eval additional_libdir=\"$libdir\"
  24243. exec_prefix="$acl_save_exec_prefix"
  24244. prefix="$acl_save_prefix"
  24245. else
  24246. additional_includedir="$withval/include"
  24247. additional_libdir="$withval/lib"
  24248. fi
  24249. fi
  24250. fi
  24251. # Check whether --with-libiconv-type was given.
  24252. if test "${with_libiconv_type+set}" = set; then :
  24253. withval=$with_libiconv_type; with_libiconv_type=$withval
  24254. else
  24255. with_libiconv_type=auto
  24256. fi
  24257. lib_type=`eval echo \$with_libiconv_type`
  24258. LIBICONV=
  24259. LTLIBICONV=
  24260. INCICONV=
  24261. rpathdirs=
  24262. ltrpathdirs=
  24263. names_already_handled=
  24264. names_next_round='iconv '
  24265. while test -n "$names_next_round"; do
  24266. names_this_round="$names_next_round"
  24267. names_next_round=
  24268. for name in $names_this_round; do
  24269. already_handled=
  24270. for n in $names_already_handled; do
  24271. if test "$n" = "$name"; then
  24272. already_handled=yes
  24273. break
  24274. fi
  24275. done
  24276. if test -z "$already_handled"; then
  24277. names_already_handled="$names_already_handled $name"
  24278. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  24279. eval value=\"\$HAVE_LIB$uppername\"
  24280. if test -n "$value"; then
  24281. if test "$value" = yes; then
  24282. eval value=\"\$LIB$uppername\"
  24283. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  24284. eval value=\"\$LTLIB$uppername\"
  24285. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  24286. else
  24287. :
  24288. fi
  24289. else
  24290. found_dir=
  24291. found_la=
  24292. found_so=
  24293. found_a=
  24294. if test $use_additional = yes; then
  24295. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  24296. found_dir="$additional_libdir"
  24297. found_so="$additional_libdir/lib$name.$shlibext"
  24298. if test -f "$additional_libdir/lib$name.la"; then
  24299. found_la="$additional_libdir/lib$name.la"
  24300. fi
  24301. elif test x$lib_type != xshared; then
  24302. if test -f "$additional_libdir/lib$name.$libext"; then
  24303. found_dir="$additional_libdir"
  24304. found_a="$additional_libdir/lib$name.$libext"
  24305. if test -f "$additional_libdir/lib$name.la"; then
  24306. found_la="$additional_libdir/lib$name.la"
  24307. fi
  24308. fi
  24309. fi
  24310. fi
  24311. if test "X$found_dir" = "X"; then
  24312. for x in $LDFLAGS $LTLIBICONV; do
  24313. acl_save_prefix="$prefix"
  24314. prefix="$acl_final_prefix"
  24315. acl_save_exec_prefix="$exec_prefix"
  24316. exec_prefix="$acl_final_exec_prefix"
  24317. eval x=\"$x\"
  24318. exec_prefix="$acl_save_exec_prefix"
  24319. prefix="$acl_save_prefix"
  24320. case "$x" in
  24321. -L*)
  24322. dir=`echo "X$x" | sed -e 's/^X-L//'`
  24323. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
  24324. found_dir="$dir"
  24325. found_so="$dir/lib$name.$shlibext"
  24326. if test -f "$dir/lib$name.la"; then
  24327. found_la="$dir/lib$name.la"
  24328. fi
  24329. elif test x$lib_type != xshared; then
  24330. if test -f "$dir/lib$name.$libext"; then
  24331. found_dir="$dir"
  24332. found_a="$dir/lib$name.$libext"
  24333. if test -f "$dir/lib$name.la"; then
  24334. found_la="$dir/lib$name.la"
  24335. fi
  24336. fi
  24337. fi
  24338. ;;
  24339. esac
  24340. if test "X$found_dir" != "X"; then
  24341. break
  24342. fi
  24343. done
  24344. fi
  24345. if test "X$found_dir" != "X"; then
  24346. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  24347. if test "X$found_so" != "X"; then
  24348. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  24349. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24350. else
  24351. haveit=
  24352. for x in $ltrpathdirs; do
  24353. if test "X$x" = "X$found_dir"; then
  24354. haveit=yes
  24355. break
  24356. fi
  24357. done
  24358. if test -z "$haveit"; then
  24359. ltrpathdirs="$ltrpathdirs $found_dir"
  24360. fi
  24361. if test "$hardcode_direct" = yes; then
  24362. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24363. else
  24364. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  24365. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24366. haveit=
  24367. for x in $rpathdirs; do
  24368. if test "X$x" = "X$found_dir"; then
  24369. haveit=yes
  24370. break
  24371. fi
  24372. done
  24373. if test -z "$haveit"; then
  24374. rpathdirs="$rpathdirs $found_dir"
  24375. fi
  24376. else
  24377. haveit=
  24378. for x in $LDFLAGS $LIBICONV; do
  24379. acl_save_prefix="$prefix"
  24380. prefix="$acl_final_prefix"
  24381. acl_save_exec_prefix="$exec_prefix"
  24382. exec_prefix="$acl_final_exec_prefix"
  24383. eval x=\"$x\"
  24384. exec_prefix="$acl_save_exec_prefix"
  24385. prefix="$acl_save_prefix"
  24386. if test "X$x" = "X-L$found_dir"; then
  24387. haveit=yes
  24388. break
  24389. fi
  24390. done
  24391. if test -z "$haveit"; then
  24392. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  24393. fi
  24394. if test "$hardcode_minus_L" != no; then
  24395. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24396. else
  24397. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  24398. fi
  24399. fi
  24400. fi
  24401. fi
  24402. else
  24403. if test "X$found_a" != "X"; then
  24404. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  24405. else
  24406. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  24407. fi
  24408. fi
  24409. additional_includedir=
  24410. case "$found_dir" in
  24411. */lib | */lib/)
  24412. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  24413. additional_includedir="$basedir/include"
  24414. ;;
  24415. esac
  24416. if test "X$additional_includedir" != "X"; then
  24417. if test "X$additional_includedir" != "X/usr/include"; then
  24418. haveit=
  24419. if test "X$additional_includedir" = "X/usr/local/include"; then
  24420. if test -n "$GCC"; then
  24421. case $host_os in
  24422. linux*) haveit=yes;;
  24423. esac
  24424. fi
  24425. fi
  24426. if test -z "$haveit"; then
  24427. for x in $CPPFLAGS $INCICONV; do
  24428. acl_save_prefix="$prefix"
  24429. prefix="$acl_final_prefix"
  24430. acl_save_exec_prefix="$exec_prefix"
  24431. exec_prefix="$acl_final_exec_prefix"
  24432. eval x=\"$x\"
  24433. exec_prefix="$acl_save_exec_prefix"
  24434. prefix="$acl_save_prefix"
  24435. if test "X$x" = "X-I$additional_includedir"; then
  24436. haveit=yes
  24437. break
  24438. fi
  24439. done
  24440. if test -z "$haveit"; then
  24441. if test -d "$additional_includedir"; then
  24442. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  24443. fi
  24444. fi
  24445. fi
  24446. fi
  24447. fi
  24448. if test -n "$found_la"; then
  24449. save_libdir="$libdir"
  24450. case "$found_la" in
  24451. */* | *\\*) . "$found_la" ;;
  24452. *) . "./$found_la" ;;
  24453. esac
  24454. libdir="$save_libdir"
  24455. for dep in $dependency_libs; do
  24456. case "$dep" in
  24457. -L*)
  24458. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  24459. if test "X$additional_libdir" != "X/usr/lib"; then
  24460. haveit=
  24461. if test "X$additional_libdir" = "X/usr/local/lib"; then
  24462. if test -n "$GCC"; then
  24463. case $host_os in
  24464. linux*) haveit=yes;;
  24465. esac
  24466. fi
  24467. fi
  24468. if test -z "$haveit"; then
  24469. haveit=
  24470. for x in $LDFLAGS $LIBICONV; do
  24471. acl_save_prefix="$prefix"
  24472. prefix="$acl_final_prefix"
  24473. acl_save_exec_prefix="$exec_prefix"
  24474. exec_prefix="$acl_final_exec_prefix"
  24475. eval x=\"$x\"
  24476. exec_prefix="$acl_save_exec_prefix"
  24477. prefix="$acl_save_prefix"
  24478. if test "X$x" = "X-L$additional_libdir"; then
  24479. haveit=yes
  24480. break
  24481. fi
  24482. done
  24483. if test -z "$haveit"; then
  24484. if test -d "$additional_libdir"; then
  24485. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  24486. fi
  24487. fi
  24488. haveit=
  24489. for x in $LDFLAGS $LTLIBICONV; do
  24490. acl_save_prefix="$prefix"
  24491. prefix="$acl_final_prefix"
  24492. acl_save_exec_prefix="$exec_prefix"
  24493. exec_prefix="$acl_final_exec_prefix"
  24494. eval x=\"$x\"
  24495. exec_prefix="$acl_save_exec_prefix"
  24496. prefix="$acl_save_prefix"
  24497. if test "X$x" = "X-L$additional_libdir"; then
  24498. haveit=yes
  24499. break
  24500. fi
  24501. done
  24502. if test -z "$haveit"; then
  24503. if test -d "$additional_libdir"; then
  24504. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  24505. fi
  24506. fi
  24507. fi
  24508. fi
  24509. ;;
  24510. -R*)
  24511. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  24512. if test "$enable_rpath" != no; then
  24513. haveit=
  24514. for x in $rpathdirs; do
  24515. if test "X$x" = "X$dir"; then
  24516. haveit=yes
  24517. break
  24518. fi
  24519. done
  24520. if test -z "$haveit"; then
  24521. rpathdirs="$rpathdirs $dir"
  24522. fi
  24523. haveit=
  24524. for x in $ltrpathdirs; do
  24525. if test "X$x" = "X$dir"; then
  24526. haveit=yes
  24527. break
  24528. fi
  24529. done
  24530. if test -z "$haveit"; then
  24531. ltrpathdirs="$ltrpathdirs $dir"
  24532. fi
  24533. fi
  24534. ;;
  24535. -l*)
  24536. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  24537. ;;
  24538. *.la)
  24539. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  24540. ;;
  24541. *)
  24542. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  24543. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  24544. ;;
  24545. esac
  24546. done
  24547. fi
  24548. else
  24549. if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
  24550. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  24551. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  24552. else
  24553. LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
  24554. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
  24555. fi
  24556. fi
  24557. fi
  24558. fi
  24559. done
  24560. done
  24561. if test "X$rpathdirs" != "X"; then
  24562. if test -n "$hardcode_libdir_separator"; then
  24563. alldirs=
  24564. for found_dir in $rpathdirs; do
  24565. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  24566. done
  24567. acl_save_libdir="$libdir"
  24568. libdir="$alldirs"
  24569. eval flag=\"$hardcode_libdir_flag_spec\"
  24570. libdir="$acl_save_libdir"
  24571. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  24572. else
  24573. for found_dir in $rpathdirs; do
  24574. acl_save_libdir="$libdir"
  24575. libdir="$found_dir"
  24576. eval flag=\"$hardcode_libdir_flag_spec\"
  24577. libdir="$acl_save_libdir"
  24578. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  24579. done
  24580. fi
  24581. fi
  24582. if test "X$ltrpathdirs" != "X"; then
  24583. for found_dir in $ltrpathdirs; do
  24584. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  24585. done
  24586. fi
  24587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  24588. $as_echo_n "checking for iconv... " >&6; }
  24589. if ${am_cv_func_iconv+:} false; then :
  24590. $as_echo_n "(cached) " >&6
  24591. else
  24592. am_cv_func_iconv="no, consider installing GNU libiconv"
  24593. am_cv_lib_iconv=no
  24594. am_save_CPPFLAGS="$CPPFLAGS"
  24595. CPPFLAGS="$CPPFLAGS $INCICONV"
  24596. if test x$gcc_no_link = xyes; then
  24597. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  24598. fi
  24599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24600. /* end confdefs.h. */
  24601. #include <stdlib.h>
  24602. #include <iconv.h>
  24603. int
  24604. main ()
  24605. {
  24606. iconv_t cd = iconv_open("","");
  24607. iconv(cd,NULL,NULL,NULL,NULL);
  24608. iconv_close(cd);
  24609. ;
  24610. return 0;
  24611. }
  24612. _ACEOF
  24613. if ac_fn_c_try_link "$LINENO"; then :
  24614. am_cv_func_iconv=yes
  24615. fi
  24616. rm -f core conftest.err conftest.$ac_objext \
  24617. conftest$ac_exeext conftest.$ac_ext
  24618. CPPFLAGS="$am_save_CPPFLAGS"
  24619. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  24620. for _libs in .libs _libs; do
  24621. am_save_CPPFLAGS="$CPPFLAGS"
  24622. am_save_LIBS="$LIBS"
  24623. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  24624. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  24625. if test x$gcc_no_link = xyes; then
  24626. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  24627. fi
  24628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24629. /* end confdefs.h. */
  24630. #include <stdlib.h>
  24631. #include <iconv.h>
  24632. int
  24633. main ()
  24634. {
  24635. iconv_t cd = iconv_open("","");
  24636. iconv(cd,NULL,NULL,NULL,NULL);
  24637. iconv_close(cd);
  24638. ;
  24639. return 0;
  24640. }
  24641. _ACEOF
  24642. if ac_fn_c_try_link "$LINENO"; then :
  24643. INCICONV="-I../libiconv/include"
  24644. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  24645. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  24646. am_cv_lib_iconv=yes
  24647. am_cv_func_iconv=yes
  24648. fi
  24649. rm -f core conftest.err conftest.$ac_objext \
  24650. conftest$ac_exeext conftest.$ac_ext
  24651. CPPFLAGS="$am_save_CPPFLAGS"
  24652. LIBS="$am_save_LIBS"
  24653. if test "$am_cv_func_iconv" = "yes"; then
  24654. break
  24655. fi
  24656. done
  24657. fi
  24658. if test "$am_cv_func_iconv" != yes; then
  24659. am_save_CPPFLAGS="$CPPFLAGS"
  24660. am_save_LIBS="$LIBS"
  24661. CPPFLAGS="$CPPFLAGS $INCICONV"
  24662. LIBS="$LIBS $LIBICONV"
  24663. if test x$gcc_no_link = xyes; then
  24664. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  24665. fi
  24666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24667. /* end confdefs.h. */
  24668. #include <stdlib.h>
  24669. #include <iconv.h>
  24670. int
  24671. main ()
  24672. {
  24673. iconv_t cd = iconv_open("","");
  24674. iconv(cd,NULL,NULL,NULL,NULL);
  24675. iconv_close(cd);
  24676. ;
  24677. return 0;
  24678. }
  24679. _ACEOF
  24680. if ac_fn_c_try_link "$LINENO"; then :
  24681. am_cv_lib_iconv=yes
  24682. am_cv_func_iconv=yes
  24683. fi
  24684. rm -f core conftest.err conftest.$ac_objext \
  24685. conftest$ac_exeext conftest.$ac_ext
  24686. CPPFLAGS="$am_save_CPPFLAGS"
  24687. LIBS="$am_save_LIBS"
  24688. fi
  24689. fi
  24690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  24691. $as_echo "$am_cv_func_iconv" >&6; }
  24692. if test "$am_cv_func_iconv" = yes; then
  24693. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  24694. fi
  24695. if test "$am_cv_lib_iconv" = yes; then
  24696. for element in $INCICONV; do
  24697. haveit=
  24698. for x in $CPPFLAGS; do
  24699. acl_save_prefix="$prefix"
  24700. prefix="$acl_final_prefix"
  24701. acl_save_exec_prefix="$exec_prefix"
  24702. exec_prefix="$acl_final_exec_prefix"
  24703. eval x=\"$x\"
  24704. exec_prefix="$acl_save_exec_prefix"
  24705. prefix="$acl_save_prefix"
  24706. if test "X$x" = "X$element"; then
  24707. haveit=yes
  24708. break
  24709. fi
  24710. done
  24711. if test -z "$haveit"; then
  24712. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  24713. fi
  24714. done
  24715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  24716. $as_echo_n "checking how to link with libiconv... " >&6; }
  24717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  24718. $as_echo "$LIBICONV" >&6; }
  24719. else
  24720. LIBICONV=
  24721. LTLIBICONV=
  24722. fi
  24723. if test "$am_cv_func_iconv" = yes; then
  24724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  24725. $as_echo_n "checking for iconv declaration... " >&6; }
  24726. if ${am_cv_proto_iconv+:} false; then :
  24727. $as_echo_n "(cached) " >&6
  24728. else
  24729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24730. /* end confdefs.h. */
  24731. #include <stdlib.h>
  24732. #include <iconv.h>
  24733. extern
  24734. #ifdef __cplusplus
  24735. "C"
  24736. #endif
  24737. #if defined(__STDC__) || defined(__cplusplus)
  24738. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  24739. #else
  24740. size_t iconv();
  24741. #endif
  24742. int
  24743. main ()
  24744. {
  24745. ;
  24746. return 0;
  24747. }
  24748. _ACEOF
  24749. if ac_fn_c_try_compile "$LINENO"; then :
  24750. am_cv_proto_iconv_arg1=""
  24751. else
  24752. am_cv_proto_iconv_arg1="const"
  24753. fi
  24754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24755. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  24756. fi
  24757. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  24758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  24759. }$am_cv_proto_iconv" >&5
  24760. $as_echo "${ac_t:-
  24761. }$am_cv_proto_iconv" >&6; }
  24762. cat >>confdefs.h <<_ACEOF
  24763. #define ICONV_CONST $am_cv_proto_iconv_arg1
  24764. _ACEOF
  24765. fi
  24766. else
  24767. # This lets us hard-code the functionality we know we'll have in the cross
  24768. # target environment. "Let" is a sugar-coated word placed on an especially
  24769. # dull and tedious hack, actually.
  24770. #
  24771. # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
  24772. # that involve linking, can't be used:
  24773. # "cannot open sim-crt0.o"
  24774. # "cannot open crt0.o"
  24775. # etc. All this is because there currently exists no unified, consistent
  24776. # way for top level CC information to be passed down to target directories:
  24777. # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
  24778. # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
  24779. # crosses can be removed.
  24780. # If Canadian cross, then don't pick up tools from the build directory.
  24781. # Used only in GLIBCXX_EXPORT_INCLUDES.
  24782. if test -n "$with_cross_host" &&
  24783. test x"$build_alias" != x"$with_cross_host" &&
  24784. test x"$build" != x"$target";
  24785. then
  24786. CANADIAN=yes
  24787. else
  24788. CANADIAN=no
  24789. fi
  24790. # Construct crosses by hand, eliminating bits that need ld...
  24791. # GLIBCXX_CHECK_MATH_SUPPORT
  24792. # First, test for "known" system libraries. We may be using newlib even
  24793. # on a hosted environment.
  24794. if test "x${with_newlib}" = "xyes"; then
  24795. os_include_dir="os/newlib"
  24796. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  24797. # GLIBCXX_CHECK_STDLIB_SUPPORT
  24798. $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
  24799. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  24800. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  24801. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  24802. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  24803. $as_echo "#define HAVE_CEILF 1" >>confdefs.h
  24804. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  24805. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  24806. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  24807. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  24808. $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
  24809. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  24810. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  24811. $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
  24812. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  24813. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  24814. $as_echo "#define HAVE_MODFF 1" >>confdefs.h
  24815. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  24816. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  24817. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  24818. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  24819. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  24820. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  24821. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  24822. $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h
  24823. elif test "x$with_headers" != "xno"; then
  24824. # Base decisions on target environment.
  24825. case "${host}" in
  24826. arm*-*-symbianelf*)
  24827. # This is a freestanding configuration; there is nothing to do here.
  24828. ;;
  24829. avr*-*-*)
  24830. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  24831. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  24832. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  24833. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  24834. $as_echo "#define HAVE_CEILF 1" >>confdefs.h
  24835. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  24836. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  24837. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  24838. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  24839. $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
  24840. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  24841. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  24842. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  24843. $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
  24844. $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
  24845. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  24846. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  24847. $as_echo "#define HAVE_MODFF 1" >>confdefs.h
  24848. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  24849. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  24850. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  24851. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  24852. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  24853. ;;
  24854. mips*-sde-elf*)
  24855. # These definitions are for the SDE C library rather than newlib.
  24856. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  24857. # All these tests are for C++; save the language and the compiler flags.
  24858. # The CXXFLAGS thing is suspicious, but based on similar bits previously
  24859. # found in GLIBCXX_CONFIGURE.
  24860. ac_ext=cpp
  24861. ac_cpp='$CXXCPP $CPPFLAGS'
  24862. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24863. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24864. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24865. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  24866. ac_save_CXXFLAGS="$CXXFLAGS"
  24867. # Check for -ffunction-sections -fdata-sections
  24868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
  24869. $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
  24870. CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
  24871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24872. /* end confdefs.h. */
  24873. int foo; void bar() { };
  24874. int
  24875. main ()
  24876. {
  24877. ;
  24878. return 0;
  24879. }
  24880. _ACEOF
  24881. if ac_fn_cxx_try_compile "$LINENO"; then :
  24882. ac_fdsections=yes
  24883. else
  24884. ac_fdsections=no
  24885. fi
  24886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  24887. if test "$ac_test_CXXFLAGS" = set; then
  24888. CXXFLAGS="$ac_save_CXXFLAGS"
  24889. else
  24890. # this is the suspicious part
  24891. CXXFLAGS=''
  24892. fi
  24893. if test x"$ac_fdsections" = x"yes"; then
  24894. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  24895. fi
  24896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  24897. $as_echo "$ac_fdsections" >&6; }
  24898. ac_ext=c
  24899. ac_cpp='$CPP $CPPFLAGS'
  24900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24903. # If we're not using GNU ld, then there's no point in even trying these
  24904. # tests. Check for that first. We should have already tested for gld
  24905. # by now (in libtool), but require it now just to be safe...
  24906. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  24907. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  24908. # The name set by libtool depends on the version of libtool. Shame on us
  24909. # for depending on an impl detail, but c'est la vie. Older versions used
  24910. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  24911. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  24912. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  24913. # set (hence we're using an older libtool), then set it.
  24914. if test x${with_gnu_ld+set} != xset; then
  24915. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  24916. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  24917. with_gnu_ld=no
  24918. else
  24919. with_gnu_ld=$ac_cv_prog_gnu_ld
  24920. fi
  24921. fi
  24922. # Start by getting the version number. I think the libtool test already
  24923. # does some of this, but throws away the result.
  24924. glibcxx_ld_is_gold=no
  24925. glibcxx_ld_is_mold=no
  24926. if test x"$with_gnu_ld" = x"yes"; then
  24927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  24928. $as_echo_n "checking for ld version... " >&6; }
  24929. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  24930. glibcxx_ld_is_gold=yes
  24931. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  24932. glibcxx_ld_is_mold=yes
  24933. fi
  24934. ldver=`$LD --version 2>/dev/null |
  24935. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  24936. glibcxx_gnu_ld_version=`echo $ldver | \
  24937. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  24938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  24939. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  24940. fi
  24941. # Set --gc-sections.
  24942. glibcxx_have_gc_sections=no
  24943. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  24944. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  24945. glibcxx_have_gc_sections=yes
  24946. fi
  24947. else
  24948. glibcxx_gcsections_min_ld=21602
  24949. if test x"$with_gnu_ld" = x"yes" &&
  24950. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  24951. glibcxx_have_gc_sections=yes
  24952. fi
  24953. fi
  24954. if test "$glibcxx_have_gc_sections" = "yes"; then
  24955. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  24956. # NB: This flag only works reliably after 2.16.1. Configure tests
  24957. # for this are difficult, so hard wire a value that should work.
  24958. ac_test_CFLAGS="${CFLAGS+set}"
  24959. ac_save_CFLAGS="$CFLAGS"
  24960. CFLAGS='-Wl,--gc-sections'
  24961. # Check for -Wl,--gc-sections
  24962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  24963. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  24964. if test x$gcc_no_link = xyes; then
  24965. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  24966. fi
  24967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24968. /* end confdefs.h. */
  24969. int one(void) { return 1; }
  24970. int two(void) { return 2; }
  24971. int
  24972. main ()
  24973. {
  24974. two();
  24975. ;
  24976. return 0;
  24977. }
  24978. _ACEOF
  24979. if ac_fn_c_try_link "$LINENO"; then :
  24980. ac_gcsections=yes
  24981. else
  24982. ac_gcsections=no
  24983. fi
  24984. rm -f core conftest.err conftest.$ac_objext \
  24985. conftest$ac_exeext conftest.$ac_ext
  24986. if test "$ac_gcsections" = "yes"; then
  24987. rm -f conftest.c
  24988. touch conftest.c
  24989. if $CC -c conftest.c; then
  24990. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  24991. grep "Warning: gc-sections option ignored" > /dev/null; then
  24992. ac_gcsections=no
  24993. fi
  24994. fi
  24995. rm -f conftest.c conftest.o conftest
  24996. fi
  24997. if test "$ac_gcsections" = "yes"; then
  24998. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  24999. fi
  25000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  25001. $as_echo "$ac_gcsections" >&6; }
  25002. if test "$ac_test_CFLAGS" = set; then
  25003. CFLAGS="$ac_save_CFLAGS"
  25004. else
  25005. # this is the suspicious part
  25006. CFLAGS=''
  25007. fi
  25008. fi
  25009. # Set -z,relro.
  25010. # Note this is only for shared objects.
  25011. ac_ld_relro=no
  25012. if test x"$with_gnu_ld" = x"yes"; then
  25013. # cygwin and mingw uses PE, which has no ELF relro support,
  25014. # multi target ld may confuse configure machinery
  25015. case "$host" in
  25016. *-*-cygwin*)
  25017. ;;
  25018. *-*-mingw*)
  25019. ;;
  25020. *)
  25021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  25022. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  25023. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  25024. if test -n "$cxx_z_relo"; then
  25025. OPT_LDFLAGS="-Wl,-z,relro"
  25026. ac_ld_relro=yes
  25027. fi
  25028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  25029. $as_echo "$ac_ld_relro" >&6; }
  25030. esac
  25031. fi
  25032. # Set linker optimization flags.
  25033. if test x"$with_gnu_ld" = x"yes"; then
  25034. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  25035. fi
  25036. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  25037. ac_save_CXXFLAGS="$CXXFLAGS"
  25038. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  25039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  25040. $as_echo_n "checking for sin in -lm... " >&6; }
  25041. if ${ac_cv_lib_m_sin+:} false; then :
  25042. $as_echo_n "(cached) " >&6
  25043. else
  25044. ac_check_lib_save_LIBS=$LIBS
  25045. LIBS="-lm $LIBS"
  25046. if test x$gcc_no_link = xyes; then
  25047. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  25048. fi
  25049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25050. /* end confdefs.h. */
  25051. /* Override any GCC internal prototype to avoid an error.
  25052. Use char because int might match the return type of a GCC
  25053. builtin and then its argument prototype would still apply. */
  25054. #ifdef __cplusplus
  25055. extern "C"
  25056. #endif
  25057. char sin ();
  25058. int
  25059. main ()
  25060. {
  25061. return sin ();
  25062. ;
  25063. return 0;
  25064. }
  25065. _ACEOF
  25066. if ac_fn_c_try_link "$LINENO"; then :
  25067. ac_cv_lib_m_sin=yes
  25068. else
  25069. ac_cv_lib_m_sin=no
  25070. fi
  25071. rm -f core conftest.err conftest.$ac_objext \
  25072. conftest$ac_exeext conftest.$ac_ext
  25073. LIBS=$ac_check_lib_save_LIBS
  25074. fi
  25075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  25076. $as_echo "$ac_cv_lib_m_sin" >&6; }
  25077. if test "x$ac_cv_lib_m_sin" = xyes; then :
  25078. libm="-lm"
  25079. fi
  25080. ac_save_LIBS="$LIBS"
  25081. LIBS="$LIBS $libm"
  25082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  25083. $as_echo_n "checking for isinf declaration... " >&6; }
  25084. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  25085. if ${glibcxx_cv_func_isinf_use+:} false; then :
  25086. $as_echo_n "(cached) " >&6
  25087. else
  25088. ac_ext=cpp
  25089. ac_cpp='$CXXCPP $CPPFLAGS'
  25090. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25091. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25092. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25094. /* end confdefs.h. */
  25095. #include <math.h>
  25096. #ifdef HAVE_IEEEFP_H
  25097. #include <ieeefp.h>
  25098. #endif
  25099. int
  25100. main ()
  25101. {
  25102. isinf(0);
  25103. ;
  25104. return 0;
  25105. }
  25106. _ACEOF
  25107. if ac_fn_cxx_try_compile "$LINENO"; then :
  25108. glibcxx_cv_func_isinf_use=yes
  25109. else
  25110. glibcxx_cv_func_isinf_use=no
  25111. fi
  25112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25113. ac_ext=c
  25114. ac_cpp='$CPP $CPPFLAGS'
  25115. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25116. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25117. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25118. fi
  25119. fi
  25120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  25121. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  25122. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  25123. for ac_func in isinf
  25124. do :
  25125. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  25126. if test "x$ac_cv_func_isinf" = xyes; then :
  25127. cat >>confdefs.h <<_ACEOF
  25128. #define HAVE_ISINF 1
  25129. _ACEOF
  25130. fi
  25131. done
  25132. else
  25133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  25134. $as_echo_n "checking for _isinf declaration... " >&6; }
  25135. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  25136. if ${glibcxx_cv_func__isinf_use+:} false; then :
  25137. $as_echo_n "(cached) " >&6
  25138. else
  25139. ac_ext=cpp
  25140. ac_cpp='$CXXCPP $CPPFLAGS'
  25141. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25142. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25143. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25145. /* end confdefs.h. */
  25146. #include <math.h>
  25147. #ifdef HAVE_IEEEFP_H
  25148. #include <ieeefp.h>
  25149. #endif
  25150. int
  25151. main ()
  25152. {
  25153. _isinf(0);
  25154. ;
  25155. return 0;
  25156. }
  25157. _ACEOF
  25158. if ac_fn_cxx_try_compile "$LINENO"; then :
  25159. glibcxx_cv_func__isinf_use=yes
  25160. else
  25161. glibcxx_cv_func__isinf_use=no
  25162. fi
  25163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25164. ac_ext=c
  25165. ac_cpp='$CPP $CPPFLAGS'
  25166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25169. fi
  25170. fi
  25171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  25172. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  25173. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  25174. for ac_func in _isinf
  25175. do :
  25176. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  25177. if test "x$ac_cv_func__isinf" = xyes; then :
  25178. cat >>confdefs.h <<_ACEOF
  25179. #define HAVE__ISINF 1
  25180. _ACEOF
  25181. fi
  25182. done
  25183. fi
  25184. fi
  25185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  25186. $as_echo_n "checking for isnan declaration... " >&6; }
  25187. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  25188. if ${glibcxx_cv_func_isnan_use+:} false; then :
  25189. $as_echo_n "(cached) " >&6
  25190. else
  25191. ac_ext=cpp
  25192. ac_cpp='$CXXCPP $CPPFLAGS'
  25193. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25194. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25195. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25197. /* end confdefs.h. */
  25198. #include <math.h>
  25199. #ifdef HAVE_IEEEFP_H
  25200. #include <ieeefp.h>
  25201. #endif
  25202. int
  25203. main ()
  25204. {
  25205. isnan(0);
  25206. ;
  25207. return 0;
  25208. }
  25209. _ACEOF
  25210. if ac_fn_cxx_try_compile "$LINENO"; then :
  25211. glibcxx_cv_func_isnan_use=yes
  25212. else
  25213. glibcxx_cv_func_isnan_use=no
  25214. fi
  25215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25216. ac_ext=c
  25217. ac_cpp='$CPP $CPPFLAGS'
  25218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25221. fi
  25222. fi
  25223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  25224. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  25225. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  25226. for ac_func in isnan
  25227. do :
  25228. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  25229. if test "x$ac_cv_func_isnan" = xyes; then :
  25230. cat >>confdefs.h <<_ACEOF
  25231. #define HAVE_ISNAN 1
  25232. _ACEOF
  25233. fi
  25234. done
  25235. else
  25236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  25237. $as_echo_n "checking for _isnan declaration... " >&6; }
  25238. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  25239. if ${glibcxx_cv_func__isnan_use+:} false; then :
  25240. $as_echo_n "(cached) " >&6
  25241. else
  25242. ac_ext=cpp
  25243. ac_cpp='$CXXCPP $CPPFLAGS'
  25244. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25245. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25246. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25248. /* end confdefs.h. */
  25249. #include <math.h>
  25250. #ifdef HAVE_IEEEFP_H
  25251. #include <ieeefp.h>
  25252. #endif
  25253. int
  25254. main ()
  25255. {
  25256. _isnan(0);
  25257. ;
  25258. return 0;
  25259. }
  25260. _ACEOF
  25261. if ac_fn_cxx_try_compile "$LINENO"; then :
  25262. glibcxx_cv_func__isnan_use=yes
  25263. else
  25264. glibcxx_cv_func__isnan_use=no
  25265. fi
  25266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25267. ac_ext=c
  25268. ac_cpp='$CPP $CPPFLAGS'
  25269. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25270. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25271. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25272. fi
  25273. fi
  25274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  25275. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  25276. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  25277. for ac_func in _isnan
  25278. do :
  25279. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  25280. if test "x$ac_cv_func__isnan" = xyes; then :
  25281. cat >>confdefs.h <<_ACEOF
  25282. #define HAVE__ISNAN 1
  25283. _ACEOF
  25284. fi
  25285. done
  25286. fi
  25287. fi
  25288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  25289. $as_echo_n "checking for finite declaration... " >&6; }
  25290. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  25291. if ${glibcxx_cv_func_finite_use+:} false; then :
  25292. $as_echo_n "(cached) " >&6
  25293. else
  25294. ac_ext=cpp
  25295. ac_cpp='$CXXCPP $CPPFLAGS'
  25296. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25297. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25298. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25300. /* end confdefs.h. */
  25301. #include <math.h>
  25302. #ifdef HAVE_IEEEFP_H
  25303. #include <ieeefp.h>
  25304. #endif
  25305. int
  25306. main ()
  25307. {
  25308. finite(0);
  25309. ;
  25310. return 0;
  25311. }
  25312. _ACEOF
  25313. if ac_fn_cxx_try_compile "$LINENO"; then :
  25314. glibcxx_cv_func_finite_use=yes
  25315. else
  25316. glibcxx_cv_func_finite_use=no
  25317. fi
  25318. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25319. ac_ext=c
  25320. ac_cpp='$CPP $CPPFLAGS'
  25321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25324. fi
  25325. fi
  25326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  25327. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  25328. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  25329. for ac_func in finite
  25330. do :
  25331. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  25332. if test "x$ac_cv_func_finite" = xyes; then :
  25333. cat >>confdefs.h <<_ACEOF
  25334. #define HAVE_FINITE 1
  25335. _ACEOF
  25336. fi
  25337. done
  25338. else
  25339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  25340. $as_echo_n "checking for _finite declaration... " >&6; }
  25341. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  25342. if ${glibcxx_cv_func__finite_use+:} false; then :
  25343. $as_echo_n "(cached) " >&6
  25344. else
  25345. ac_ext=cpp
  25346. ac_cpp='$CXXCPP $CPPFLAGS'
  25347. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25348. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25349. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25351. /* end confdefs.h. */
  25352. #include <math.h>
  25353. #ifdef HAVE_IEEEFP_H
  25354. #include <ieeefp.h>
  25355. #endif
  25356. int
  25357. main ()
  25358. {
  25359. _finite(0);
  25360. ;
  25361. return 0;
  25362. }
  25363. _ACEOF
  25364. if ac_fn_cxx_try_compile "$LINENO"; then :
  25365. glibcxx_cv_func__finite_use=yes
  25366. else
  25367. glibcxx_cv_func__finite_use=no
  25368. fi
  25369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25370. ac_ext=c
  25371. ac_cpp='$CPP $CPPFLAGS'
  25372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25375. fi
  25376. fi
  25377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  25378. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  25379. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  25380. for ac_func in _finite
  25381. do :
  25382. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  25383. if test "x$ac_cv_func__finite" = xyes; then :
  25384. cat >>confdefs.h <<_ACEOF
  25385. #define HAVE__FINITE 1
  25386. _ACEOF
  25387. fi
  25388. done
  25389. fi
  25390. fi
  25391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  25392. $as_echo_n "checking for sincos declaration... " >&6; }
  25393. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  25394. if ${glibcxx_cv_func_sincos_use+:} false; then :
  25395. $as_echo_n "(cached) " >&6
  25396. else
  25397. ac_ext=cpp
  25398. ac_cpp='$CXXCPP $CPPFLAGS'
  25399. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25400. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25401. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25403. /* end confdefs.h. */
  25404. #include <math.h>
  25405. int
  25406. main ()
  25407. {
  25408. sincos(0, 0, 0);
  25409. ;
  25410. return 0;
  25411. }
  25412. _ACEOF
  25413. if ac_fn_cxx_try_compile "$LINENO"; then :
  25414. glibcxx_cv_func_sincos_use=yes
  25415. else
  25416. glibcxx_cv_func_sincos_use=no
  25417. fi
  25418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25419. ac_ext=c
  25420. ac_cpp='$CPP $CPPFLAGS'
  25421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25424. fi
  25425. fi
  25426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  25427. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  25428. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  25429. for ac_func in sincos
  25430. do :
  25431. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  25432. if test "x$ac_cv_func_sincos" = xyes; then :
  25433. cat >>confdefs.h <<_ACEOF
  25434. #define HAVE_SINCOS 1
  25435. _ACEOF
  25436. fi
  25437. done
  25438. else
  25439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  25440. $as_echo_n "checking for _sincos declaration... " >&6; }
  25441. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  25442. if ${glibcxx_cv_func__sincos_use+:} false; then :
  25443. $as_echo_n "(cached) " >&6
  25444. else
  25445. ac_ext=cpp
  25446. ac_cpp='$CXXCPP $CPPFLAGS'
  25447. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25448. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25449. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25451. /* end confdefs.h. */
  25452. #include <math.h>
  25453. int
  25454. main ()
  25455. {
  25456. _sincos(0, 0, 0);
  25457. ;
  25458. return 0;
  25459. }
  25460. _ACEOF
  25461. if ac_fn_cxx_try_compile "$LINENO"; then :
  25462. glibcxx_cv_func__sincos_use=yes
  25463. else
  25464. glibcxx_cv_func__sincos_use=no
  25465. fi
  25466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25467. ac_ext=c
  25468. ac_cpp='$CPP $CPPFLAGS'
  25469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25472. fi
  25473. fi
  25474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  25475. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  25476. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  25477. for ac_func in _sincos
  25478. do :
  25479. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  25480. if test "x$ac_cv_func__sincos" = xyes; then :
  25481. cat >>confdefs.h <<_ACEOF
  25482. #define HAVE__SINCOS 1
  25483. _ACEOF
  25484. fi
  25485. done
  25486. fi
  25487. fi
  25488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  25489. $as_echo_n "checking for fpclass declaration... " >&6; }
  25490. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  25491. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  25492. $as_echo_n "(cached) " >&6
  25493. else
  25494. ac_ext=cpp
  25495. ac_cpp='$CXXCPP $CPPFLAGS'
  25496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25500. /* end confdefs.h. */
  25501. #include <math.h>
  25502. #ifdef HAVE_IEEEFP_H
  25503. #include <ieeefp.h>
  25504. #endif
  25505. int
  25506. main ()
  25507. {
  25508. fpclass(0);
  25509. ;
  25510. return 0;
  25511. }
  25512. _ACEOF
  25513. if ac_fn_cxx_try_compile "$LINENO"; then :
  25514. glibcxx_cv_func_fpclass_use=yes
  25515. else
  25516. glibcxx_cv_func_fpclass_use=no
  25517. fi
  25518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25519. ac_ext=c
  25520. ac_cpp='$CPP $CPPFLAGS'
  25521. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25522. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25523. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25524. fi
  25525. fi
  25526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  25527. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  25528. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  25529. for ac_func in fpclass
  25530. do :
  25531. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  25532. if test "x$ac_cv_func_fpclass" = xyes; then :
  25533. cat >>confdefs.h <<_ACEOF
  25534. #define HAVE_FPCLASS 1
  25535. _ACEOF
  25536. fi
  25537. done
  25538. else
  25539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  25540. $as_echo_n "checking for _fpclass declaration... " >&6; }
  25541. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  25542. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  25543. $as_echo_n "(cached) " >&6
  25544. else
  25545. ac_ext=cpp
  25546. ac_cpp='$CXXCPP $CPPFLAGS'
  25547. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25548. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25549. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25551. /* end confdefs.h. */
  25552. #include <math.h>
  25553. #ifdef HAVE_IEEEFP_H
  25554. #include <ieeefp.h>
  25555. #endif
  25556. int
  25557. main ()
  25558. {
  25559. _fpclass(0);
  25560. ;
  25561. return 0;
  25562. }
  25563. _ACEOF
  25564. if ac_fn_cxx_try_compile "$LINENO"; then :
  25565. glibcxx_cv_func__fpclass_use=yes
  25566. else
  25567. glibcxx_cv_func__fpclass_use=no
  25568. fi
  25569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25570. ac_ext=c
  25571. ac_cpp='$CPP $CPPFLAGS'
  25572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25575. fi
  25576. fi
  25577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  25578. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  25579. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  25580. for ac_func in _fpclass
  25581. do :
  25582. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  25583. if test "x$ac_cv_func__fpclass" = xyes; then :
  25584. cat >>confdefs.h <<_ACEOF
  25585. #define HAVE__FPCLASS 1
  25586. _ACEOF
  25587. fi
  25588. done
  25589. fi
  25590. fi
  25591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  25592. $as_echo_n "checking for qfpclass declaration... " >&6; }
  25593. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  25594. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  25595. $as_echo_n "(cached) " >&6
  25596. else
  25597. ac_ext=cpp
  25598. ac_cpp='$CXXCPP $CPPFLAGS'
  25599. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25600. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25601. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25603. /* end confdefs.h. */
  25604. #include <math.h>
  25605. #ifdef HAVE_IEEEFP_H
  25606. #include <ieeefp.h>
  25607. #endif
  25608. int
  25609. main ()
  25610. {
  25611. qfpclass(0);
  25612. ;
  25613. return 0;
  25614. }
  25615. _ACEOF
  25616. if ac_fn_cxx_try_compile "$LINENO"; then :
  25617. glibcxx_cv_func_qfpclass_use=yes
  25618. else
  25619. glibcxx_cv_func_qfpclass_use=no
  25620. fi
  25621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25622. ac_ext=c
  25623. ac_cpp='$CPP $CPPFLAGS'
  25624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25627. fi
  25628. fi
  25629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  25630. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  25631. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  25632. for ac_func in qfpclass
  25633. do :
  25634. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  25635. if test "x$ac_cv_func_qfpclass" = xyes; then :
  25636. cat >>confdefs.h <<_ACEOF
  25637. #define HAVE_QFPCLASS 1
  25638. _ACEOF
  25639. fi
  25640. done
  25641. else
  25642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  25643. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  25644. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  25645. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  25646. $as_echo_n "(cached) " >&6
  25647. else
  25648. ac_ext=cpp
  25649. ac_cpp='$CXXCPP $CPPFLAGS'
  25650. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25651. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25652. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25654. /* end confdefs.h. */
  25655. #include <math.h>
  25656. #ifdef HAVE_IEEEFP_H
  25657. #include <ieeefp.h>
  25658. #endif
  25659. int
  25660. main ()
  25661. {
  25662. _qfpclass(0);
  25663. ;
  25664. return 0;
  25665. }
  25666. _ACEOF
  25667. if ac_fn_cxx_try_compile "$LINENO"; then :
  25668. glibcxx_cv_func__qfpclass_use=yes
  25669. else
  25670. glibcxx_cv_func__qfpclass_use=no
  25671. fi
  25672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25673. ac_ext=c
  25674. ac_cpp='$CPP $CPPFLAGS'
  25675. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25676. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25677. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25678. fi
  25679. fi
  25680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  25681. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  25682. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  25683. for ac_func in _qfpclass
  25684. do :
  25685. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  25686. if test "x$ac_cv_func__qfpclass" = xyes; then :
  25687. cat >>confdefs.h <<_ACEOF
  25688. #define HAVE__QFPCLASS 1
  25689. _ACEOF
  25690. fi
  25691. done
  25692. fi
  25693. fi
  25694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  25695. $as_echo_n "checking for hypot declaration... " >&6; }
  25696. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  25697. if ${glibcxx_cv_func_hypot_use+:} false; then :
  25698. $as_echo_n "(cached) " >&6
  25699. else
  25700. ac_ext=cpp
  25701. ac_cpp='$CXXCPP $CPPFLAGS'
  25702. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25703. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25704. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25706. /* end confdefs.h. */
  25707. #include <math.h>
  25708. int
  25709. main ()
  25710. {
  25711. hypot(0, 0);
  25712. ;
  25713. return 0;
  25714. }
  25715. _ACEOF
  25716. if ac_fn_cxx_try_compile "$LINENO"; then :
  25717. glibcxx_cv_func_hypot_use=yes
  25718. else
  25719. glibcxx_cv_func_hypot_use=no
  25720. fi
  25721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25722. ac_ext=c
  25723. ac_cpp='$CPP $CPPFLAGS'
  25724. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25725. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25726. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25727. fi
  25728. fi
  25729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  25730. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  25731. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  25732. for ac_func in hypot
  25733. do :
  25734. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  25735. if test "x$ac_cv_func_hypot" = xyes; then :
  25736. cat >>confdefs.h <<_ACEOF
  25737. #define HAVE_HYPOT 1
  25738. _ACEOF
  25739. fi
  25740. done
  25741. else
  25742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  25743. $as_echo_n "checking for _hypot declaration... " >&6; }
  25744. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  25745. if ${glibcxx_cv_func__hypot_use+:} false; then :
  25746. $as_echo_n "(cached) " >&6
  25747. else
  25748. ac_ext=cpp
  25749. ac_cpp='$CXXCPP $CPPFLAGS'
  25750. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25751. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25752. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25754. /* end confdefs.h. */
  25755. #include <math.h>
  25756. int
  25757. main ()
  25758. {
  25759. _hypot(0, 0);
  25760. ;
  25761. return 0;
  25762. }
  25763. _ACEOF
  25764. if ac_fn_cxx_try_compile "$LINENO"; then :
  25765. glibcxx_cv_func__hypot_use=yes
  25766. else
  25767. glibcxx_cv_func__hypot_use=no
  25768. fi
  25769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25770. ac_ext=c
  25771. ac_cpp='$CPP $CPPFLAGS'
  25772. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25773. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25774. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25775. fi
  25776. fi
  25777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  25778. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  25779. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  25780. for ac_func in _hypot
  25781. do :
  25782. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  25783. if test "x$ac_cv_func__hypot" = xyes; then :
  25784. cat >>confdefs.h <<_ACEOF
  25785. #define HAVE__HYPOT 1
  25786. _ACEOF
  25787. fi
  25788. done
  25789. fi
  25790. fi
  25791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  25792. $as_echo_n "checking for float trig functions... " >&6; }
  25793. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  25794. $as_echo_n "(cached) " >&6
  25795. else
  25796. ac_ext=cpp
  25797. ac_cpp='$CXXCPP $CPPFLAGS'
  25798. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25799. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25800. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25802. /* end confdefs.h. */
  25803. #include <math.h>
  25804. int
  25805. main ()
  25806. {
  25807. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  25808. ;
  25809. return 0;
  25810. }
  25811. _ACEOF
  25812. if ac_fn_cxx_try_compile "$LINENO"; then :
  25813. glibcxx_cv_func_float_trig_use=yes
  25814. else
  25815. glibcxx_cv_func_float_trig_use=no
  25816. fi
  25817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25818. ac_ext=c
  25819. ac_cpp='$CPP $CPPFLAGS'
  25820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25823. fi
  25824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  25825. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  25826. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  25827. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  25828. do :
  25829. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25830. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  25831. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  25832. cat >>confdefs.h <<_ACEOF
  25833. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25834. _ACEOF
  25835. fi
  25836. done
  25837. else
  25838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  25839. $as_echo_n "checking for _float trig functions... " >&6; }
  25840. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  25841. $as_echo_n "(cached) " >&6
  25842. else
  25843. ac_ext=cpp
  25844. ac_cpp='$CXXCPP $CPPFLAGS'
  25845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25849. /* end confdefs.h. */
  25850. #include <math.h>
  25851. int
  25852. main ()
  25853. {
  25854. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  25855. ;
  25856. return 0;
  25857. }
  25858. _ACEOF
  25859. if ac_fn_cxx_try_compile "$LINENO"; then :
  25860. glibcxx_cv_func__float_trig_use=yes
  25861. else
  25862. glibcxx_cv_func__float_trig_use=no
  25863. fi
  25864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25865. ac_ext=c
  25866. ac_cpp='$CPP $CPPFLAGS'
  25867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25870. fi
  25871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  25872. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  25873. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  25874. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  25875. do :
  25876. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25877. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  25878. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  25879. cat >>confdefs.h <<_ACEOF
  25880. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25881. _ACEOF
  25882. fi
  25883. done
  25884. fi
  25885. fi
  25886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  25887. $as_echo_n "checking for float round functions... " >&6; }
  25888. if ${glibcxx_cv_func_float_round_use+:} false; then :
  25889. $as_echo_n "(cached) " >&6
  25890. else
  25891. ac_ext=cpp
  25892. ac_cpp='$CXXCPP $CPPFLAGS'
  25893. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25894. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25895. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25897. /* end confdefs.h. */
  25898. #include <math.h>
  25899. int
  25900. main ()
  25901. {
  25902. ceilf (0); floorf (0);
  25903. ;
  25904. return 0;
  25905. }
  25906. _ACEOF
  25907. if ac_fn_cxx_try_compile "$LINENO"; then :
  25908. glibcxx_cv_func_float_round_use=yes
  25909. else
  25910. glibcxx_cv_func_float_round_use=no
  25911. fi
  25912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25913. ac_ext=c
  25914. ac_cpp='$CPP $CPPFLAGS'
  25915. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25916. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25917. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25918. fi
  25919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  25920. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  25921. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  25922. for ac_func in ceilf floorf
  25923. do :
  25924. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25925. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  25926. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  25927. cat >>confdefs.h <<_ACEOF
  25928. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25929. _ACEOF
  25930. fi
  25931. done
  25932. else
  25933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  25934. $as_echo_n "checking for _float round functions... " >&6; }
  25935. if ${glibcxx_cv_func__float_round_use+:} false; then :
  25936. $as_echo_n "(cached) " >&6
  25937. else
  25938. ac_ext=cpp
  25939. ac_cpp='$CXXCPP $CPPFLAGS'
  25940. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25941. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25942. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25944. /* end confdefs.h. */
  25945. #include <math.h>
  25946. int
  25947. main ()
  25948. {
  25949. _ceilf (0); _floorf (0);
  25950. ;
  25951. return 0;
  25952. }
  25953. _ACEOF
  25954. if ac_fn_cxx_try_compile "$LINENO"; then :
  25955. glibcxx_cv_func__float_round_use=yes
  25956. else
  25957. glibcxx_cv_func__float_round_use=no
  25958. fi
  25959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25960. ac_ext=c
  25961. ac_cpp='$CPP $CPPFLAGS'
  25962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25965. fi
  25966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  25967. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  25968. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  25969. for ac_func in _ceilf _floorf
  25970. do :
  25971. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  25972. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  25973. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  25974. cat >>confdefs.h <<_ACEOF
  25975. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  25976. _ACEOF
  25977. fi
  25978. done
  25979. fi
  25980. fi
  25981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  25982. $as_echo_n "checking for expf declaration... " >&6; }
  25983. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  25984. if ${glibcxx_cv_func_expf_use+:} false; then :
  25985. $as_echo_n "(cached) " >&6
  25986. else
  25987. ac_ext=cpp
  25988. ac_cpp='$CXXCPP $CPPFLAGS'
  25989. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25990. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25991. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  25992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25993. /* end confdefs.h. */
  25994. #include <math.h>
  25995. #ifdef HAVE_IEEEFP_H
  25996. #include <ieeefp.h>
  25997. #endif
  25998. int
  25999. main ()
  26000. {
  26001. expf(0);
  26002. ;
  26003. return 0;
  26004. }
  26005. _ACEOF
  26006. if ac_fn_cxx_try_compile "$LINENO"; then :
  26007. glibcxx_cv_func_expf_use=yes
  26008. else
  26009. glibcxx_cv_func_expf_use=no
  26010. fi
  26011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26012. ac_ext=c
  26013. ac_cpp='$CPP $CPPFLAGS'
  26014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26017. fi
  26018. fi
  26019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  26020. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  26021. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  26022. for ac_func in expf
  26023. do :
  26024. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  26025. if test "x$ac_cv_func_expf" = xyes; then :
  26026. cat >>confdefs.h <<_ACEOF
  26027. #define HAVE_EXPF 1
  26028. _ACEOF
  26029. fi
  26030. done
  26031. else
  26032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  26033. $as_echo_n "checking for _expf declaration... " >&6; }
  26034. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  26035. if ${glibcxx_cv_func__expf_use+:} false; then :
  26036. $as_echo_n "(cached) " >&6
  26037. else
  26038. ac_ext=cpp
  26039. ac_cpp='$CXXCPP $CPPFLAGS'
  26040. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26041. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26042. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26044. /* end confdefs.h. */
  26045. #include <math.h>
  26046. #ifdef HAVE_IEEEFP_H
  26047. #include <ieeefp.h>
  26048. #endif
  26049. int
  26050. main ()
  26051. {
  26052. _expf(0);
  26053. ;
  26054. return 0;
  26055. }
  26056. _ACEOF
  26057. if ac_fn_cxx_try_compile "$LINENO"; then :
  26058. glibcxx_cv_func__expf_use=yes
  26059. else
  26060. glibcxx_cv_func__expf_use=no
  26061. fi
  26062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26063. ac_ext=c
  26064. ac_cpp='$CPP $CPPFLAGS'
  26065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26068. fi
  26069. fi
  26070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  26071. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  26072. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  26073. for ac_func in _expf
  26074. do :
  26075. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  26076. if test "x$ac_cv_func__expf" = xyes; then :
  26077. cat >>confdefs.h <<_ACEOF
  26078. #define HAVE__EXPF 1
  26079. _ACEOF
  26080. fi
  26081. done
  26082. fi
  26083. fi
  26084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  26085. $as_echo_n "checking for isnanf declaration... " >&6; }
  26086. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  26087. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  26088. $as_echo_n "(cached) " >&6
  26089. else
  26090. ac_ext=cpp
  26091. ac_cpp='$CXXCPP $CPPFLAGS'
  26092. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26093. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26094. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26096. /* end confdefs.h. */
  26097. #include <math.h>
  26098. #ifdef HAVE_IEEEFP_H
  26099. #include <ieeefp.h>
  26100. #endif
  26101. int
  26102. main ()
  26103. {
  26104. isnanf(0);
  26105. ;
  26106. return 0;
  26107. }
  26108. _ACEOF
  26109. if ac_fn_cxx_try_compile "$LINENO"; then :
  26110. glibcxx_cv_func_isnanf_use=yes
  26111. else
  26112. glibcxx_cv_func_isnanf_use=no
  26113. fi
  26114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26115. ac_ext=c
  26116. ac_cpp='$CPP $CPPFLAGS'
  26117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26120. fi
  26121. fi
  26122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  26123. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  26124. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  26125. for ac_func in isnanf
  26126. do :
  26127. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  26128. if test "x$ac_cv_func_isnanf" = xyes; then :
  26129. cat >>confdefs.h <<_ACEOF
  26130. #define HAVE_ISNANF 1
  26131. _ACEOF
  26132. fi
  26133. done
  26134. else
  26135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  26136. $as_echo_n "checking for _isnanf declaration... " >&6; }
  26137. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  26138. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  26139. $as_echo_n "(cached) " >&6
  26140. else
  26141. ac_ext=cpp
  26142. ac_cpp='$CXXCPP $CPPFLAGS'
  26143. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26144. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26145. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26147. /* end confdefs.h. */
  26148. #include <math.h>
  26149. #ifdef HAVE_IEEEFP_H
  26150. #include <ieeefp.h>
  26151. #endif
  26152. int
  26153. main ()
  26154. {
  26155. _isnanf(0);
  26156. ;
  26157. return 0;
  26158. }
  26159. _ACEOF
  26160. if ac_fn_cxx_try_compile "$LINENO"; then :
  26161. glibcxx_cv_func__isnanf_use=yes
  26162. else
  26163. glibcxx_cv_func__isnanf_use=no
  26164. fi
  26165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26166. ac_ext=c
  26167. ac_cpp='$CPP $CPPFLAGS'
  26168. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26169. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26170. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26171. fi
  26172. fi
  26173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  26174. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  26175. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  26176. for ac_func in _isnanf
  26177. do :
  26178. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  26179. if test "x$ac_cv_func__isnanf" = xyes; then :
  26180. cat >>confdefs.h <<_ACEOF
  26181. #define HAVE__ISNANF 1
  26182. _ACEOF
  26183. fi
  26184. done
  26185. fi
  26186. fi
  26187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  26188. $as_echo_n "checking for isinff declaration... " >&6; }
  26189. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  26190. if ${glibcxx_cv_func_isinff_use+:} false; then :
  26191. $as_echo_n "(cached) " >&6
  26192. else
  26193. ac_ext=cpp
  26194. ac_cpp='$CXXCPP $CPPFLAGS'
  26195. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26196. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26197. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26199. /* end confdefs.h. */
  26200. #include <math.h>
  26201. #ifdef HAVE_IEEEFP_H
  26202. #include <ieeefp.h>
  26203. #endif
  26204. int
  26205. main ()
  26206. {
  26207. isinff(0);
  26208. ;
  26209. return 0;
  26210. }
  26211. _ACEOF
  26212. if ac_fn_cxx_try_compile "$LINENO"; then :
  26213. glibcxx_cv_func_isinff_use=yes
  26214. else
  26215. glibcxx_cv_func_isinff_use=no
  26216. fi
  26217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26218. ac_ext=c
  26219. ac_cpp='$CPP $CPPFLAGS'
  26220. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26221. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26222. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26223. fi
  26224. fi
  26225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  26226. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  26227. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  26228. for ac_func in isinff
  26229. do :
  26230. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  26231. if test "x$ac_cv_func_isinff" = xyes; then :
  26232. cat >>confdefs.h <<_ACEOF
  26233. #define HAVE_ISINFF 1
  26234. _ACEOF
  26235. fi
  26236. done
  26237. else
  26238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  26239. $as_echo_n "checking for _isinff declaration... " >&6; }
  26240. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  26241. if ${glibcxx_cv_func__isinff_use+:} false; then :
  26242. $as_echo_n "(cached) " >&6
  26243. else
  26244. ac_ext=cpp
  26245. ac_cpp='$CXXCPP $CPPFLAGS'
  26246. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26247. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26248. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26250. /* end confdefs.h. */
  26251. #include <math.h>
  26252. #ifdef HAVE_IEEEFP_H
  26253. #include <ieeefp.h>
  26254. #endif
  26255. int
  26256. main ()
  26257. {
  26258. _isinff(0);
  26259. ;
  26260. return 0;
  26261. }
  26262. _ACEOF
  26263. if ac_fn_cxx_try_compile "$LINENO"; then :
  26264. glibcxx_cv_func__isinff_use=yes
  26265. else
  26266. glibcxx_cv_func__isinff_use=no
  26267. fi
  26268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26269. ac_ext=c
  26270. ac_cpp='$CPP $CPPFLAGS'
  26271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26274. fi
  26275. fi
  26276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  26277. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  26278. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  26279. for ac_func in _isinff
  26280. do :
  26281. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  26282. if test "x$ac_cv_func__isinff" = xyes; then :
  26283. cat >>confdefs.h <<_ACEOF
  26284. #define HAVE__ISINFF 1
  26285. _ACEOF
  26286. fi
  26287. done
  26288. fi
  26289. fi
  26290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  26291. $as_echo_n "checking for atan2f declaration... " >&6; }
  26292. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  26293. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  26294. $as_echo_n "(cached) " >&6
  26295. else
  26296. ac_ext=cpp
  26297. ac_cpp='$CXXCPP $CPPFLAGS'
  26298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26302. /* end confdefs.h. */
  26303. #include <math.h>
  26304. int
  26305. main ()
  26306. {
  26307. atan2f(0, 0);
  26308. ;
  26309. return 0;
  26310. }
  26311. _ACEOF
  26312. if ac_fn_cxx_try_compile "$LINENO"; then :
  26313. glibcxx_cv_func_atan2f_use=yes
  26314. else
  26315. glibcxx_cv_func_atan2f_use=no
  26316. fi
  26317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26318. ac_ext=c
  26319. ac_cpp='$CPP $CPPFLAGS'
  26320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26323. fi
  26324. fi
  26325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  26326. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  26327. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  26328. for ac_func in atan2f
  26329. do :
  26330. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  26331. if test "x$ac_cv_func_atan2f" = xyes; then :
  26332. cat >>confdefs.h <<_ACEOF
  26333. #define HAVE_ATAN2F 1
  26334. _ACEOF
  26335. fi
  26336. done
  26337. else
  26338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  26339. $as_echo_n "checking for _atan2f declaration... " >&6; }
  26340. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  26341. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  26342. $as_echo_n "(cached) " >&6
  26343. else
  26344. ac_ext=cpp
  26345. ac_cpp='$CXXCPP $CPPFLAGS'
  26346. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26347. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26348. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26350. /* end confdefs.h. */
  26351. #include <math.h>
  26352. int
  26353. main ()
  26354. {
  26355. _atan2f(0, 0);
  26356. ;
  26357. return 0;
  26358. }
  26359. _ACEOF
  26360. if ac_fn_cxx_try_compile "$LINENO"; then :
  26361. glibcxx_cv_func__atan2f_use=yes
  26362. else
  26363. glibcxx_cv_func__atan2f_use=no
  26364. fi
  26365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26366. ac_ext=c
  26367. ac_cpp='$CPP $CPPFLAGS'
  26368. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26369. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26370. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26371. fi
  26372. fi
  26373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  26374. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  26375. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  26376. for ac_func in _atan2f
  26377. do :
  26378. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  26379. if test "x$ac_cv_func__atan2f" = xyes; then :
  26380. cat >>confdefs.h <<_ACEOF
  26381. #define HAVE__ATAN2F 1
  26382. _ACEOF
  26383. fi
  26384. done
  26385. fi
  26386. fi
  26387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  26388. $as_echo_n "checking for fabsf declaration... " >&6; }
  26389. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  26390. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  26391. $as_echo_n "(cached) " >&6
  26392. else
  26393. ac_ext=cpp
  26394. ac_cpp='$CXXCPP $CPPFLAGS'
  26395. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26396. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26397. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26399. /* end confdefs.h. */
  26400. #include <math.h>
  26401. #ifdef HAVE_IEEEFP_H
  26402. #include <ieeefp.h>
  26403. #endif
  26404. int
  26405. main ()
  26406. {
  26407. fabsf(0);
  26408. ;
  26409. return 0;
  26410. }
  26411. _ACEOF
  26412. if ac_fn_cxx_try_compile "$LINENO"; then :
  26413. glibcxx_cv_func_fabsf_use=yes
  26414. else
  26415. glibcxx_cv_func_fabsf_use=no
  26416. fi
  26417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26418. ac_ext=c
  26419. ac_cpp='$CPP $CPPFLAGS'
  26420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26423. fi
  26424. fi
  26425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  26426. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  26427. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  26428. for ac_func in fabsf
  26429. do :
  26430. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  26431. if test "x$ac_cv_func_fabsf" = xyes; then :
  26432. cat >>confdefs.h <<_ACEOF
  26433. #define HAVE_FABSF 1
  26434. _ACEOF
  26435. fi
  26436. done
  26437. else
  26438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  26439. $as_echo_n "checking for _fabsf declaration... " >&6; }
  26440. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  26441. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  26442. $as_echo_n "(cached) " >&6
  26443. else
  26444. ac_ext=cpp
  26445. ac_cpp='$CXXCPP $CPPFLAGS'
  26446. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26447. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26448. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26450. /* end confdefs.h. */
  26451. #include <math.h>
  26452. #ifdef HAVE_IEEEFP_H
  26453. #include <ieeefp.h>
  26454. #endif
  26455. int
  26456. main ()
  26457. {
  26458. _fabsf(0);
  26459. ;
  26460. return 0;
  26461. }
  26462. _ACEOF
  26463. if ac_fn_cxx_try_compile "$LINENO"; then :
  26464. glibcxx_cv_func__fabsf_use=yes
  26465. else
  26466. glibcxx_cv_func__fabsf_use=no
  26467. fi
  26468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26469. ac_ext=c
  26470. ac_cpp='$CPP $CPPFLAGS'
  26471. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26472. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26473. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26474. fi
  26475. fi
  26476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  26477. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  26478. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  26479. for ac_func in _fabsf
  26480. do :
  26481. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  26482. if test "x$ac_cv_func__fabsf" = xyes; then :
  26483. cat >>confdefs.h <<_ACEOF
  26484. #define HAVE__FABSF 1
  26485. _ACEOF
  26486. fi
  26487. done
  26488. fi
  26489. fi
  26490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  26491. $as_echo_n "checking for fmodf declaration... " >&6; }
  26492. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  26493. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  26494. $as_echo_n "(cached) " >&6
  26495. else
  26496. ac_ext=cpp
  26497. ac_cpp='$CXXCPP $CPPFLAGS'
  26498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26502. /* end confdefs.h. */
  26503. #include <math.h>
  26504. int
  26505. main ()
  26506. {
  26507. fmodf(0, 0);
  26508. ;
  26509. return 0;
  26510. }
  26511. _ACEOF
  26512. if ac_fn_cxx_try_compile "$LINENO"; then :
  26513. glibcxx_cv_func_fmodf_use=yes
  26514. else
  26515. glibcxx_cv_func_fmodf_use=no
  26516. fi
  26517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26518. ac_ext=c
  26519. ac_cpp='$CPP $CPPFLAGS'
  26520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26523. fi
  26524. fi
  26525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  26526. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  26527. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  26528. for ac_func in fmodf
  26529. do :
  26530. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  26531. if test "x$ac_cv_func_fmodf" = xyes; then :
  26532. cat >>confdefs.h <<_ACEOF
  26533. #define HAVE_FMODF 1
  26534. _ACEOF
  26535. fi
  26536. done
  26537. else
  26538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  26539. $as_echo_n "checking for _fmodf declaration... " >&6; }
  26540. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  26541. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  26542. $as_echo_n "(cached) " >&6
  26543. else
  26544. ac_ext=cpp
  26545. ac_cpp='$CXXCPP $CPPFLAGS'
  26546. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26547. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26548. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26550. /* end confdefs.h. */
  26551. #include <math.h>
  26552. int
  26553. main ()
  26554. {
  26555. _fmodf(0, 0);
  26556. ;
  26557. return 0;
  26558. }
  26559. _ACEOF
  26560. if ac_fn_cxx_try_compile "$LINENO"; then :
  26561. glibcxx_cv_func__fmodf_use=yes
  26562. else
  26563. glibcxx_cv_func__fmodf_use=no
  26564. fi
  26565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26566. ac_ext=c
  26567. ac_cpp='$CPP $CPPFLAGS'
  26568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26571. fi
  26572. fi
  26573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  26574. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  26575. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  26576. for ac_func in _fmodf
  26577. do :
  26578. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  26579. if test "x$ac_cv_func__fmodf" = xyes; then :
  26580. cat >>confdefs.h <<_ACEOF
  26581. #define HAVE__FMODF 1
  26582. _ACEOF
  26583. fi
  26584. done
  26585. fi
  26586. fi
  26587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  26588. $as_echo_n "checking for frexpf declaration... " >&6; }
  26589. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  26590. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  26591. $as_echo_n "(cached) " >&6
  26592. else
  26593. ac_ext=cpp
  26594. ac_cpp='$CXXCPP $CPPFLAGS'
  26595. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26596. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26597. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26599. /* end confdefs.h. */
  26600. #include <math.h>
  26601. int
  26602. main ()
  26603. {
  26604. frexpf(0, 0);
  26605. ;
  26606. return 0;
  26607. }
  26608. _ACEOF
  26609. if ac_fn_cxx_try_compile "$LINENO"; then :
  26610. glibcxx_cv_func_frexpf_use=yes
  26611. else
  26612. glibcxx_cv_func_frexpf_use=no
  26613. fi
  26614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26615. ac_ext=c
  26616. ac_cpp='$CPP $CPPFLAGS'
  26617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26620. fi
  26621. fi
  26622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  26623. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  26624. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  26625. for ac_func in frexpf
  26626. do :
  26627. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  26628. if test "x$ac_cv_func_frexpf" = xyes; then :
  26629. cat >>confdefs.h <<_ACEOF
  26630. #define HAVE_FREXPF 1
  26631. _ACEOF
  26632. fi
  26633. done
  26634. else
  26635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  26636. $as_echo_n "checking for _frexpf declaration... " >&6; }
  26637. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  26638. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  26639. $as_echo_n "(cached) " >&6
  26640. else
  26641. ac_ext=cpp
  26642. ac_cpp='$CXXCPP $CPPFLAGS'
  26643. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26644. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26645. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26647. /* end confdefs.h. */
  26648. #include <math.h>
  26649. int
  26650. main ()
  26651. {
  26652. _frexpf(0, 0);
  26653. ;
  26654. return 0;
  26655. }
  26656. _ACEOF
  26657. if ac_fn_cxx_try_compile "$LINENO"; then :
  26658. glibcxx_cv_func__frexpf_use=yes
  26659. else
  26660. glibcxx_cv_func__frexpf_use=no
  26661. fi
  26662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26663. ac_ext=c
  26664. ac_cpp='$CPP $CPPFLAGS'
  26665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26668. fi
  26669. fi
  26670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  26671. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  26672. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  26673. for ac_func in _frexpf
  26674. do :
  26675. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  26676. if test "x$ac_cv_func__frexpf" = xyes; then :
  26677. cat >>confdefs.h <<_ACEOF
  26678. #define HAVE__FREXPF 1
  26679. _ACEOF
  26680. fi
  26681. done
  26682. fi
  26683. fi
  26684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  26685. $as_echo_n "checking for hypotf declaration... " >&6; }
  26686. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  26687. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  26688. $as_echo_n "(cached) " >&6
  26689. else
  26690. ac_ext=cpp
  26691. ac_cpp='$CXXCPP $CPPFLAGS'
  26692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26696. /* end confdefs.h. */
  26697. #include <math.h>
  26698. int
  26699. main ()
  26700. {
  26701. hypotf(0, 0);
  26702. ;
  26703. return 0;
  26704. }
  26705. _ACEOF
  26706. if ac_fn_cxx_try_compile "$LINENO"; then :
  26707. glibcxx_cv_func_hypotf_use=yes
  26708. else
  26709. glibcxx_cv_func_hypotf_use=no
  26710. fi
  26711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26712. ac_ext=c
  26713. ac_cpp='$CPP $CPPFLAGS'
  26714. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26715. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26716. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26717. fi
  26718. fi
  26719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  26720. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  26721. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  26722. for ac_func in hypotf
  26723. do :
  26724. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  26725. if test "x$ac_cv_func_hypotf" = xyes; then :
  26726. cat >>confdefs.h <<_ACEOF
  26727. #define HAVE_HYPOTF 1
  26728. _ACEOF
  26729. fi
  26730. done
  26731. else
  26732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  26733. $as_echo_n "checking for _hypotf declaration... " >&6; }
  26734. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  26735. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  26736. $as_echo_n "(cached) " >&6
  26737. else
  26738. ac_ext=cpp
  26739. ac_cpp='$CXXCPP $CPPFLAGS'
  26740. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26741. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26742. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26744. /* end confdefs.h. */
  26745. #include <math.h>
  26746. int
  26747. main ()
  26748. {
  26749. _hypotf(0, 0);
  26750. ;
  26751. return 0;
  26752. }
  26753. _ACEOF
  26754. if ac_fn_cxx_try_compile "$LINENO"; then :
  26755. glibcxx_cv_func__hypotf_use=yes
  26756. else
  26757. glibcxx_cv_func__hypotf_use=no
  26758. fi
  26759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26760. ac_ext=c
  26761. ac_cpp='$CPP $CPPFLAGS'
  26762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26765. fi
  26766. fi
  26767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  26768. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  26769. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  26770. for ac_func in _hypotf
  26771. do :
  26772. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  26773. if test "x$ac_cv_func__hypotf" = xyes; then :
  26774. cat >>confdefs.h <<_ACEOF
  26775. #define HAVE__HYPOTF 1
  26776. _ACEOF
  26777. fi
  26778. done
  26779. fi
  26780. fi
  26781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  26782. $as_echo_n "checking for ldexpf declaration... " >&6; }
  26783. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  26784. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  26785. $as_echo_n "(cached) " >&6
  26786. else
  26787. ac_ext=cpp
  26788. ac_cpp='$CXXCPP $CPPFLAGS'
  26789. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26790. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26791. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26793. /* end confdefs.h. */
  26794. #include <math.h>
  26795. int
  26796. main ()
  26797. {
  26798. ldexpf(0, 0);
  26799. ;
  26800. return 0;
  26801. }
  26802. _ACEOF
  26803. if ac_fn_cxx_try_compile "$LINENO"; then :
  26804. glibcxx_cv_func_ldexpf_use=yes
  26805. else
  26806. glibcxx_cv_func_ldexpf_use=no
  26807. fi
  26808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26809. ac_ext=c
  26810. ac_cpp='$CPP $CPPFLAGS'
  26811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26814. fi
  26815. fi
  26816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  26817. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  26818. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  26819. for ac_func in ldexpf
  26820. do :
  26821. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  26822. if test "x$ac_cv_func_ldexpf" = xyes; then :
  26823. cat >>confdefs.h <<_ACEOF
  26824. #define HAVE_LDEXPF 1
  26825. _ACEOF
  26826. fi
  26827. done
  26828. else
  26829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  26830. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  26831. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  26832. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  26833. $as_echo_n "(cached) " >&6
  26834. else
  26835. ac_ext=cpp
  26836. ac_cpp='$CXXCPP $CPPFLAGS'
  26837. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26838. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26839. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26841. /* end confdefs.h. */
  26842. #include <math.h>
  26843. int
  26844. main ()
  26845. {
  26846. _ldexpf(0, 0);
  26847. ;
  26848. return 0;
  26849. }
  26850. _ACEOF
  26851. if ac_fn_cxx_try_compile "$LINENO"; then :
  26852. glibcxx_cv_func__ldexpf_use=yes
  26853. else
  26854. glibcxx_cv_func__ldexpf_use=no
  26855. fi
  26856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26857. ac_ext=c
  26858. ac_cpp='$CPP $CPPFLAGS'
  26859. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26860. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26861. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26862. fi
  26863. fi
  26864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  26865. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  26866. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  26867. for ac_func in _ldexpf
  26868. do :
  26869. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  26870. if test "x$ac_cv_func__ldexpf" = xyes; then :
  26871. cat >>confdefs.h <<_ACEOF
  26872. #define HAVE__LDEXPF 1
  26873. _ACEOF
  26874. fi
  26875. done
  26876. fi
  26877. fi
  26878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  26879. $as_echo_n "checking for logf declaration... " >&6; }
  26880. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  26881. if ${glibcxx_cv_func_logf_use+:} false; then :
  26882. $as_echo_n "(cached) " >&6
  26883. else
  26884. ac_ext=cpp
  26885. ac_cpp='$CXXCPP $CPPFLAGS'
  26886. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26887. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26888. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26890. /* end confdefs.h. */
  26891. #include <math.h>
  26892. #ifdef HAVE_IEEEFP_H
  26893. #include <ieeefp.h>
  26894. #endif
  26895. int
  26896. main ()
  26897. {
  26898. logf(0);
  26899. ;
  26900. return 0;
  26901. }
  26902. _ACEOF
  26903. if ac_fn_cxx_try_compile "$LINENO"; then :
  26904. glibcxx_cv_func_logf_use=yes
  26905. else
  26906. glibcxx_cv_func_logf_use=no
  26907. fi
  26908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26909. ac_ext=c
  26910. ac_cpp='$CPP $CPPFLAGS'
  26911. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26912. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26913. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26914. fi
  26915. fi
  26916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  26917. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  26918. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  26919. for ac_func in logf
  26920. do :
  26921. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  26922. if test "x$ac_cv_func_logf" = xyes; then :
  26923. cat >>confdefs.h <<_ACEOF
  26924. #define HAVE_LOGF 1
  26925. _ACEOF
  26926. fi
  26927. done
  26928. else
  26929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  26930. $as_echo_n "checking for _logf declaration... " >&6; }
  26931. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  26932. if ${glibcxx_cv_func__logf_use+:} false; then :
  26933. $as_echo_n "(cached) " >&6
  26934. else
  26935. ac_ext=cpp
  26936. ac_cpp='$CXXCPP $CPPFLAGS'
  26937. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26938. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26939. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26941. /* end confdefs.h. */
  26942. #include <math.h>
  26943. #ifdef HAVE_IEEEFP_H
  26944. #include <ieeefp.h>
  26945. #endif
  26946. int
  26947. main ()
  26948. {
  26949. _logf(0);
  26950. ;
  26951. return 0;
  26952. }
  26953. _ACEOF
  26954. if ac_fn_cxx_try_compile "$LINENO"; then :
  26955. glibcxx_cv_func__logf_use=yes
  26956. else
  26957. glibcxx_cv_func__logf_use=no
  26958. fi
  26959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26960. ac_ext=c
  26961. ac_cpp='$CPP $CPPFLAGS'
  26962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26965. fi
  26966. fi
  26967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  26968. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  26969. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  26970. for ac_func in _logf
  26971. do :
  26972. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  26973. if test "x$ac_cv_func__logf" = xyes; then :
  26974. cat >>confdefs.h <<_ACEOF
  26975. #define HAVE__LOGF 1
  26976. _ACEOF
  26977. fi
  26978. done
  26979. fi
  26980. fi
  26981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  26982. $as_echo_n "checking for log10f declaration... " >&6; }
  26983. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  26984. if ${glibcxx_cv_func_log10f_use+:} false; then :
  26985. $as_echo_n "(cached) " >&6
  26986. else
  26987. ac_ext=cpp
  26988. ac_cpp='$CXXCPP $CPPFLAGS'
  26989. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26990. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26991. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26993. /* end confdefs.h. */
  26994. #include <math.h>
  26995. #ifdef HAVE_IEEEFP_H
  26996. #include <ieeefp.h>
  26997. #endif
  26998. int
  26999. main ()
  27000. {
  27001. log10f(0);
  27002. ;
  27003. return 0;
  27004. }
  27005. _ACEOF
  27006. if ac_fn_cxx_try_compile "$LINENO"; then :
  27007. glibcxx_cv_func_log10f_use=yes
  27008. else
  27009. glibcxx_cv_func_log10f_use=no
  27010. fi
  27011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27012. ac_ext=c
  27013. ac_cpp='$CPP $CPPFLAGS'
  27014. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27015. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27016. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27017. fi
  27018. fi
  27019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  27020. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  27021. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  27022. for ac_func in log10f
  27023. do :
  27024. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  27025. if test "x$ac_cv_func_log10f" = xyes; then :
  27026. cat >>confdefs.h <<_ACEOF
  27027. #define HAVE_LOG10F 1
  27028. _ACEOF
  27029. fi
  27030. done
  27031. else
  27032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  27033. $as_echo_n "checking for _log10f declaration... " >&6; }
  27034. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  27035. if ${glibcxx_cv_func__log10f_use+:} false; then :
  27036. $as_echo_n "(cached) " >&6
  27037. else
  27038. ac_ext=cpp
  27039. ac_cpp='$CXXCPP $CPPFLAGS'
  27040. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27041. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27042. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27044. /* end confdefs.h. */
  27045. #include <math.h>
  27046. #ifdef HAVE_IEEEFP_H
  27047. #include <ieeefp.h>
  27048. #endif
  27049. int
  27050. main ()
  27051. {
  27052. _log10f(0);
  27053. ;
  27054. return 0;
  27055. }
  27056. _ACEOF
  27057. if ac_fn_cxx_try_compile "$LINENO"; then :
  27058. glibcxx_cv_func__log10f_use=yes
  27059. else
  27060. glibcxx_cv_func__log10f_use=no
  27061. fi
  27062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27063. ac_ext=c
  27064. ac_cpp='$CPP $CPPFLAGS'
  27065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27068. fi
  27069. fi
  27070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  27071. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  27072. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  27073. for ac_func in _log10f
  27074. do :
  27075. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  27076. if test "x$ac_cv_func__log10f" = xyes; then :
  27077. cat >>confdefs.h <<_ACEOF
  27078. #define HAVE__LOG10F 1
  27079. _ACEOF
  27080. fi
  27081. done
  27082. fi
  27083. fi
  27084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  27085. $as_echo_n "checking for modff declaration... " >&6; }
  27086. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  27087. if ${glibcxx_cv_func_modff_use+:} false; then :
  27088. $as_echo_n "(cached) " >&6
  27089. else
  27090. ac_ext=cpp
  27091. ac_cpp='$CXXCPP $CPPFLAGS'
  27092. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27093. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27094. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27096. /* end confdefs.h. */
  27097. #include <math.h>
  27098. int
  27099. main ()
  27100. {
  27101. modff(0, 0);
  27102. ;
  27103. return 0;
  27104. }
  27105. _ACEOF
  27106. if ac_fn_cxx_try_compile "$LINENO"; then :
  27107. glibcxx_cv_func_modff_use=yes
  27108. else
  27109. glibcxx_cv_func_modff_use=no
  27110. fi
  27111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27112. ac_ext=c
  27113. ac_cpp='$CPP $CPPFLAGS'
  27114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27117. fi
  27118. fi
  27119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  27120. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  27121. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  27122. for ac_func in modff
  27123. do :
  27124. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  27125. if test "x$ac_cv_func_modff" = xyes; then :
  27126. cat >>confdefs.h <<_ACEOF
  27127. #define HAVE_MODFF 1
  27128. _ACEOF
  27129. fi
  27130. done
  27131. else
  27132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  27133. $as_echo_n "checking for _modff declaration... " >&6; }
  27134. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  27135. if ${glibcxx_cv_func__modff_use+:} false; then :
  27136. $as_echo_n "(cached) " >&6
  27137. else
  27138. ac_ext=cpp
  27139. ac_cpp='$CXXCPP $CPPFLAGS'
  27140. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27141. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27142. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27144. /* end confdefs.h. */
  27145. #include <math.h>
  27146. int
  27147. main ()
  27148. {
  27149. _modff(0, 0);
  27150. ;
  27151. return 0;
  27152. }
  27153. _ACEOF
  27154. if ac_fn_cxx_try_compile "$LINENO"; then :
  27155. glibcxx_cv_func__modff_use=yes
  27156. else
  27157. glibcxx_cv_func__modff_use=no
  27158. fi
  27159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27160. ac_ext=c
  27161. ac_cpp='$CPP $CPPFLAGS'
  27162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27165. fi
  27166. fi
  27167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  27168. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  27169. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  27170. for ac_func in _modff
  27171. do :
  27172. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  27173. if test "x$ac_cv_func__modff" = xyes; then :
  27174. cat >>confdefs.h <<_ACEOF
  27175. #define HAVE__MODFF 1
  27176. _ACEOF
  27177. fi
  27178. done
  27179. fi
  27180. fi
  27181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  27182. $as_echo_n "checking for modf declaration... " >&6; }
  27183. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  27184. if ${glibcxx_cv_func_modf_use+:} false; then :
  27185. $as_echo_n "(cached) " >&6
  27186. else
  27187. ac_ext=cpp
  27188. ac_cpp='$CXXCPP $CPPFLAGS'
  27189. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27190. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27191. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27193. /* end confdefs.h. */
  27194. #include <math.h>
  27195. int
  27196. main ()
  27197. {
  27198. modf(0, 0);
  27199. ;
  27200. return 0;
  27201. }
  27202. _ACEOF
  27203. if ac_fn_cxx_try_compile "$LINENO"; then :
  27204. glibcxx_cv_func_modf_use=yes
  27205. else
  27206. glibcxx_cv_func_modf_use=no
  27207. fi
  27208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27209. ac_ext=c
  27210. ac_cpp='$CPP $CPPFLAGS'
  27211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27214. fi
  27215. fi
  27216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  27217. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  27218. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  27219. for ac_func in modf
  27220. do :
  27221. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  27222. if test "x$ac_cv_func_modf" = xyes; then :
  27223. cat >>confdefs.h <<_ACEOF
  27224. #define HAVE_MODF 1
  27225. _ACEOF
  27226. fi
  27227. done
  27228. else
  27229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  27230. $as_echo_n "checking for _modf declaration... " >&6; }
  27231. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  27232. if ${glibcxx_cv_func__modf_use+:} false; then :
  27233. $as_echo_n "(cached) " >&6
  27234. else
  27235. ac_ext=cpp
  27236. ac_cpp='$CXXCPP $CPPFLAGS'
  27237. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27238. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27239. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27241. /* end confdefs.h. */
  27242. #include <math.h>
  27243. int
  27244. main ()
  27245. {
  27246. _modf(0, 0);
  27247. ;
  27248. return 0;
  27249. }
  27250. _ACEOF
  27251. if ac_fn_cxx_try_compile "$LINENO"; then :
  27252. glibcxx_cv_func__modf_use=yes
  27253. else
  27254. glibcxx_cv_func__modf_use=no
  27255. fi
  27256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27257. ac_ext=c
  27258. ac_cpp='$CPP $CPPFLAGS'
  27259. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27260. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27261. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27262. fi
  27263. fi
  27264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  27265. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  27266. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  27267. for ac_func in _modf
  27268. do :
  27269. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  27270. if test "x$ac_cv_func__modf" = xyes; then :
  27271. cat >>confdefs.h <<_ACEOF
  27272. #define HAVE__MODF 1
  27273. _ACEOF
  27274. fi
  27275. done
  27276. fi
  27277. fi
  27278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  27279. $as_echo_n "checking for powf declaration... " >&6; }
  27280. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  27281. if ${glibcxx_cv_func_powf_use+:} false; then :
  27282. $as_echo_n "(cached) " >&6
  27283. else
  27284. ac_ext=cpp
  27285. ac_cpp='$CXXCPP $CPPFLAGS'
  27286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27290. /* end confdefs.h. */
  27291. #include <math.h>
  27292. int
  27293. main ()
  27294. {
  27295. powf(0, 0);
  27296. ;
  27297. return 0;
  27298. }
  27299. _ACEOF
  27300. if ac_fn_cxx_try_compile "$LINENO"; then :
  27301. glibcxx_cv_func_powf_use=yes
  27302. else
  27303. glibcxx_cv_func_powf_use=no
  27304. fi
  27305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27306. ac_ext=c
  27307. ac_cpp='$CPP $CPPFLAGS'
  27308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27311. fi
  27312. fi
  27313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  27314. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  27315. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  27316. for ac_func in powf
  27317. do :
  27318. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  27319. if test "x$ac_cv_func_powf" = xyes; then :
  27320. cat >>confdefs.h <<_ACEOF
  27321. #define HAVE_POWF 1
  27322. _ACEOF
  27323. fi
  27324. done
  27325. else
  27326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  27327. $as_echo_n "checking for _powf declaration... " >&6; }
  27328. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  27329. if ${glibcxx_cv_func__powf_use+:} false; then :
  27330. $as_echo_n "(cached) " >&6
  27331. else
  27332. ac_ext=cpp
  27333. ac_cpp='$CXXCPP $CPPFLAGS'
  27334. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27335. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27336. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27338. /* end confdefs.h. */
  27339. #include <math.h>
  27340. int
  27341. main ()
  27342. {
  27343. _powf(0, 0);
  27344. ;
  27345. return 0;
  27346. }
  27347. _ACEOF
  27348. if ac_fn_cxx_try_compile "$LINENO"; then :
  27349. glibcxx_cv_func__powf_use=yes
  27350. else
  27351. glibcxx_cv_func__powf_use=no
  27352. fi
  27353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27354. ac_ext=c
  27355. ac_cpp='$CPP $CPPFLAGS'
  27356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27359. fi
  27360. fi
  27361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  27362. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  27363. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  27364. for ac_func in _powf
  27365. do :
  27366. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  27367. if test "x$ac_cv_func__powf" = xyes; then :
  27368. cat >>confdefs.h <<_ACEOF
  27369. #define HAVE__POWF 1
  27370. _ACEOF
  27371. fi
  27372. done
  27373. fi
  27374. fi
  27375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  27376. $as_echo_n "checking for sqrtf declaration... " >&6; }
  27377. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  27378. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  27379. $as_echo_n "(cached) " >&6
  27380. else
  27381. ac_ext=cpp
  27382. ac_cpp='$CXXCPP $CPPFLAGS'
  27383. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27384. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27385. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27387. /* end confdefs.h. */
  27388. #include <math.h>
  27389. #ifdef HAVE_IEEEFP_H
  27390. #include <ieeefp.h>
  27391. #endif
  27392. int
  27393. main ()
  27394. {
  27395. sqrtf(0);
  27396. ;
  27397. return 0;
  27398. }
  27399. _ACEOF
  27400. if ac_fn_cxx_try_compile "$LINENO"; then :
  27401. glibcxx_cv_func_sqrtf_use=yes
  27402. else
  27403. glibcxx_cv_func_sqrtf_use=no
  27404. fi
  27405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27406. ac_ext=c
  27407. ac_cpp='$CPP $CPPFLAGS'
  27408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27411. fi
  27412. fi
  27413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  27414. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  27415. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  27416. for ac_func in sqrtf
  27417. do :
  27418. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  27419. if test "x$ac_cv_func_sqrtf" = xyes; then :
  27420. cat >>confdefs.h <<_ACEOF
  27421. #define HAVE_SQRTF 1
  27422. _ACEOF
  27423. fi
  27424. done
  27425. else
  27426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  27427. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  27428. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  27429. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  27430. $as_echo_n "(cached) " >&6
  27431. else
  27432. ac_ext=cpp
  27433. ac_cpp='$CXXCPP $CPPFLAGS'
  27434. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27435. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27436. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27438. /* end confdefs.h. */
  27439. #include <math.h>
  27440. #ifdef HAVE_IEEEFP_H
  27441. #include <ieeefp.h>
  27442. #endif
  27443. int
  27444. main ()
  27445. {
  27446. _sqrtf(0);
  27447. ;
  27448. return 0;
  27449. }
  27450. _ACEOF
  27451. if ac_fn_cxx_try_compile "$LINENO"; then :
  27452. glibcxx_cv_func__sqrtf_use=yes
  27453. else
  27454. glibcxx_cv_func__sqrtf_use=no
  27455. fi
  27456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27457. ac_ext=c
  27458. ac_cpp='$CPP $CPPFLAGS'
  27459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27462. fi
  27463. fi
  27464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  27465. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  27466. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  27467. for ac_func in _sqrtf
  27468. do :
  27469. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  27470. if test "x$ac_cv_func__sqrtf" = xyes; then :
  27471. cat >>confdefs.h <<_ACEOF
  27472. #define HAVE__SQRTF 1
  27473. _ACEOF
  27474. fi
  27475. done
  27476. fi
  27477. fi
  27478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  27479. $as_echo_n "checking for sincosf declaration... " >&6; }
  27480. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  27481. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  27482. $as_echo_n "(cached) " >&6
  27483. else
  27484. ac_ext=cpp
  27485. ac_cpp='$CXXCPP $CPPFLAGS'
  27486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27490. /* end confdefs.h. */
  27491. #include <math.h>
  27492. int
  27493. main ()
  27494. {
  27495. sincosf(0, 0, 0);
  27496. ;
  27497. return 0;
  27498. }
  27499. _ACEOF
  27500. if ac_fn_cxx_try_compile "$LINENO"; then :
  27501. glibcxx_cv_func_sincosf_use=yes
  27502. else
  27503. glibcxx_cv_func_sincosf_use=no
  27504. fi
  27505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27506. ac_ext=c
  27507. ac_cpp='$CPP $CPPFLAGS'
  27508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27511. fi
  27512. fi
  27513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  27514. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  27515. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  27516. for ac_func in sincosf
  27517. do :
  27518. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  27519. if test "x$ac_cv_func_sincosf" = xyes; then :
  27520. cat >>confdefs.h <<_ACEOF
  27521. #define HAVE_SINCOSF 1
  27522. _ACEOF
  27523. fi
  27524. done
  27525. else
  27526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  27527. $as_echo_n "checking for _sincosf declaration... " >&6; }
  27528. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  27529. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  27530. $as_echo_n "(cached) " >&6
  27531. else
  27532. ac_ext=cpp
  27533. ac_cpp='$CXXCPP $CPPFLAGS'
  27534. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27535. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27536. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27538. /* end confdefs.h. */
  27539. #include <math.h>
  27540. int
  27541. main ()
  27542. {
  27543. _sincosf(0, 0, 0);
  27544. ;
  27545. return 0;
  27546. }
  27547. _ACEOF
  27548. if ac_fn_cxx_try_compile "$LINENO"; then :
  27549. glibcxx_cv_func__sincosf_use=yes
  27550. else
  27551. glibcxx_cv_func__sincosf_use=no
  27552. fi
  27553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27554. ac_ext=c
  27555. ac_cpp='$CPP $CPPFLAGS'
  27556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27559. fi
  27560. fi
  27561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  27562. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  27563. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  27564. for ac_func in _sincosf
  27565. do :
  27566. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  27567. if test "x$ac_cv_func__sincosf" = xyes; then :
  27568. cat >>confdefs.h <<_ACEOF
  27569. #define HAVE__SINCOSF 1
  27570. _ACEOF
  27571. fi
  27572. done
  27573. fi
  27574. fi
  27575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  27576. $as_echo_n "checking for finitef declaration... " >&6; }
  27577. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  27578. if ${glibcxx_cv_func_finitef_use+:} false; then :
  27579. $as_echo_n "(cached) " >&6
  27580. else
  27581. ac_ext=cpp
  27582. ac_cpp='$CXXCPP $CPPFLAGS'
  27583. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27584. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27585. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27587. /* end confdefs.h. */
  27588. #include <math.h>
  27589. #ifdef HAVE_IEEEFP_H
  27590. #include <ieeefp.h>
  27591. #endif
  27592. int
  27593. main ()
  27594. {
  27595. finitef(0);
  27596. ;
  27597. return 0;
  27598. }
  27599. _ACEOF
  27600. if ac_fn_cxx_try_compile "$LINENO"; then :
  27601. glibcxx_cv_func_finitef_use=yes
  27602. else
  27603. glibcxx_cv_func_finitef_use=no
  27604. fi
  27605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27606. ac_ext=c
  27607. ac_cpp='$CPP $CPPFLAGS'
  27608. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27609. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27610. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27611. fi
  27612. fi
  27613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  27614. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  27615. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  27616. for ac_func in finitef
  27617. do :
  27618. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  27619. if test "x$ac_cv_func_finitef" = xyes; then :
  27620. cat >>confdefs.h <<_ACEOF
  27621. #define HAVE_FINITEF 1
  27622. _ACEOF
  27623. fi
  27624. done
  27625. else
  27626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  27627. $as_echo_n "checking for _finitef declaration... " >&6; }
  27628. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  27629. if ${glibcxx_cv_func__finitef_use+:} false; then :
  27630. $as_echo_n "(cached) " >&6
  27631. else
  27632. ac_ext=cpp
  27633. ac_cpp='$CXXCPP $CPPFLAGS'
  27634. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27635. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27636. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27638. /* end confdefs.h. */
  27639. #include <math.h>
  27640. #ifdef HAVE_IEEEFP_H
  27641. #include <ieeefp.h>
  27642. #endif
  27643. int
  27644. main ()
  27645. {
  27646. _finitef(0);
  27647. ;
  27648. return 0;
  27649. }
  27650. _ACEOF
  27651. if ac_fn_cxx_try_compile "$LINENO"; then :
  27652. glibcxx_cv_func__finitef_use=yes
  27653. else
  27654. glibcxx_cv_func__finitef_use=no
  27655. fi
  27656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27657. ac_ext=c
  27658. ac_cpp='$CPP $CPPFLAGS'
  27659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27662. fi
  27663. fi
  27664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  27665. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  27666. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  27667. for ac_func in _finitef
  27668. do :
  27669. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  27670. if test "x$ac_cv_func__finitef" = xyes; then :
  27671. cat >>confdefs.h <<_ACEOF
  27672. #define HAVE__FINITEF 1
  27673. _ACEOF
  27674. fi
  27675. done
  27676. fi
  27677. fi
  27678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  27679. $as_echo_n "checking for long double trig functions... " >&6; }
  27680. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  27681. $as_echo_n "(cached) " >&6
  27682. else
  27683. ac_ext=cpp
  27684. ac_cpp='$CXXCPP $CPPFLAGS'
  27685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27689. /* end confdefs.h. */
  27690. #include <math.h>
  27691. int
  27692. main ()
  27693. {
  27694. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  27695. ;
  27696. return 0;
  27697. }
  27698. _ACEOF
  27699. if ac_fn_cxx_try_compile "$LINENO"; then :
  27700. glibcxx_cv_func_long_double_trig_use=yes
  27701. else
  27702. glibcxx_cv_func_long_double_trig_use=no
  27703. fi
  27704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27705. ac_ext=c
  27706. ac_cpp='$CPP $CPPFLAGS'
  27707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27710. fi
  27711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  27712. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  27713. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  27714. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  27715. do :
  27716. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27717. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27718. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  27719. cat >>confdefs.h <<_ACEOF
  27720. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27721. _ACEOF
  27722. fi
  27723. done
  27724. else
  27725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  27726. $as_echo_n "checking for _long double trig functions... " >&6; }
  27727. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  27728. $as_echo_n "(cached) " >&6
  27729. else
  27730. ac_ext=cpp
  27731. ac_cpp='$CXXCPP $CPPFLAGS'
  27732. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27733. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27734. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27736. /* end confdefs.h. */
  27737. #include <math.h>
  27738. int
  27739. main ()
  27740. {
  27741. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  27742. ;
  27743. return 0;
  27744. }
  27745. _ACEOF
  27746. if ac_fn_cxx_try_compile "$LINENO"; then :
  27747. glibcxx_cv_func__long_double_trig_use=yes
  27748. else
  27749. glibcxx_cv_func__long_double_trig_use=no
  27750. fi
  27751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27752. ac_ext=c
  27753. ac_cpp='$CPP $CPPFLAGS'
  27754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27757. fi
  27758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  27759. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  27760. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  27761. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  27762. do :
  27763. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27764. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27765. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  27766. cat >>confdefs.h <<_ACEOF
  27767. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27768. _ACEOF
  27769. fi
  27770. done
  27771. fi
  27772. fi
  27773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  27774. $as_echo_n "checking for long double round functions... " >&6; }
  27775. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  27776. $as_echo_n "(cached) " >&6
  27777. else
  27778. ac_ext=cpp
  27779. ac_cpp='$CXXCPP $CPPFLAGS'
  27780. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27781. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27782. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27784. /* end confdefs.h. */
  27785. #include <math.h>
  27786. int
  27787. main ()
  27788. {
  27789. ceill (0); floorl (0);
  27790. ;
  27791. return 0;
  27792. }
  27793. _ACEOF
  27794. if ac_fn_cxx_try_compile "$LINENO"; then :
  27795. glibcxx_cv_func_long_double_round_use=yes
  27796. else
  27797. glibcxx_cv_func_long_double_round_use=no
  27798. fi
  27799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27800. ac_ext=c
  27801. ac_cpp='$CPP $CPPFLAGS'
  27802. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27803. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27804. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27805. fi
  27806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  27807. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  27808. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  27809. for ac_func in ceill floorl
  27810. do :
  27811. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27812. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27813. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  27814. cat >>confdefs.h <<_ACEOF
  27815. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27816. _ACEOF
  27817. fi
  27818. done
  27819. else
  27820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  27821. $as_echo_n "checking for _long double round functions... " >&6; }
  27822. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  27823. $as_echo_n "(cached) " >&6
  27824. else
  27825. ac_ext=cpp
  27826. ac_cpp='$CXXCPP $CPPFLAGS'
  27827. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27828. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27829. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27831. /* end confdefs.h. */
  27832. #include <math.h>
  27833. int
  27834. main ()
  27835. {
  27836. _ceill (0); _floorl (0);
  27837. ;
  27838. return 0;
  27839. }
  27840. _ACEOF
  27841. if ac_fn_cxx_try_compile "$LINENO"; then :
  27842. glibcxx_cv_func__long_double_round_use=yes
  27843. else
  27844. glibcxx_cv_func__long_double_round_use=no
  27845. fi
  27846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27847. ac_ext=c
  27848. ac_cpp='$CPP $CPPFLAGS'
  27849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27852. fi
  27853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  27854. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  27855. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  27856. for ac_func in _ceill _floorl
  27857. do :
  27858. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  27859. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  27860. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  27861. cat >>confdefs.h <<_ACEOF
  27862. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  27863. _ACEOF
  27864. fi
  27865. done
  27866. fi
  27867. fi
  27868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  27869. $as_echo_n "checking for isnanl declaration... " >&6; }
  27870. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  27871. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  27872. $as_echo_n "(cached) " >&6
  27873. else
  27874. ac_ext=cpp
  27875. ac_cpp='$CXXCPP $CPPFLAGS'
  27876. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27877. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27878. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27880. /* end confdefs.h. */
  27881. #include <math.h>
  27882. #ifdef HAVE_IEEEFP_H
  27883. #include <ieeefp.h>
  27884. #endif
  27885. int
  27886. main ()
  27887. {
  27888. isnanl(0);
  27889. ;
  27890. return 0;
  27891. }
  27892. _ACEOF
  27893. if ac_fn_cxx_try_compile "$LINENO"; then :
  27894. glibcxx_cv_func_isnanl_use=yes
  27895. else
  27896. glibcxx_cv_func_isnanl_use=no
  27897. fi
  27898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27899. ac_ext=c
  27900. ac_cpp='$CPP $CPPFLAGS'
  27901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27904. fi
  27905. fi
  27906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  27907. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  27908. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  27909. for ac_func in isnanl
  27910. do :
  27911. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  27912. if test "x$ac_cv_func_isnanl" = xyes; then :
  27913. cat >>confdefs.h <<_ACEOF
  27914. #define HAVE_ISNANL 1
  27915. _ACEOF
  27916. fi
  27917. done
  27918. else
  27919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  27920. $as_echo_n "checking for _isnanl declaration... " >&6; }
  27921. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  27922. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  27923. $as_echo_n "(cached) " >&6
  27924. else
  27925. ac_ext=cpp
  27926. ac_cpp='$CXXCPP $CPPFLAGS'
  27927. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27928. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27929. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27931. /* end confdefs.h. */
  27932. #include <math.h>
  27933. #ifdef HAVE_IEEEFP_H
  27934. #include <ieeefp.h>
  27935. #endif
  27936. int
  27937. main ()
  27938. {
  27939. _isnanl(0);
  27940. ;
  27941. return 0;
  27942. }
  27943. _ACEOF
  27944. if ac_fn_cxx_try_compile "$LINENO"; then :
  27945. glibcxx_cv_func__isnanl_use=yes
  27946. else
  27947. glibcxx_cv_func__isnanl_use=no
  27948. fi
  27949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27950. ac_ext=c
  27951. ac_cpp='$CPP $CPPFLAGS'
  27952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27955. fi
  27956. fi
  27957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  27958. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  27959. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  27960. for ac_func in _isnanl
  27961. do :
  27962. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  27963. if test "x$ac_cv_func__isnanl" = xyes; then :
  27964. cat >>confdefs.h <<_ACEOF
  27965. #define HAVE__ISNANL 1
  27966. _ACEOF
  27967. fi
  27968. done
  27969. fi
  27970. fi
  27971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  27972. $as_echo_n "checking for isinfl declaration... " >&6; }
  27973. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  27974. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  27975. $as_echo_n "(cached) " >&6
  27976. else
  27977. ac_ext=cpp
  27978. ac_cpp='$CXXCPP $CPPFLAGS'
  27979. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27980. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27981. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  27982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27983. /* end confdefs.h. */
  27984. #include <math.h>
  27985. #ifdef HAVE_IEEEFP_H
  27986. #include <ieeefp.h>
  27987. #endif
  27988. int
  27989. main ()
  27990. {
  27991. isinfl(0);
  27992. ;
  27993. return 0;
  27994. }
  27995. _ACEOF
  27996. if ac_fn_cxx_try_compile "$LINENO"; then :
  27997. glibcxx_cv_func_isinfl_use=yes
  27998. else
  27999. glibcxx_cv_func_isinfl_use=no
  28000. fi
  28001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28002. ac_ext=c
  28003. ac_cpp='$CPP $CPPFLAGS'
  28004. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28005. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28006. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28007. fi
  28008. fi
  28009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  28010. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  28011. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  28012. for ac_func in isinfl
  28013. do :
  28014. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  28015. if test "x$ac_cv_func_isinfl" = xyes; then :
  28016. cat >>confdefs.h <<_ACEOF
  28017. #define HAVE_ISINFL 1
  28018. _ACEOF
  28019. fi
  28020. done
  28021. else
  28022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  28023. $as_echo_n "checking for _isinfl declaration... " >&6; }
  28024. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  28025. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  28026. $as_echo_n "(cached) " >&6
  28027. else
  28028. ac_ext=cpp
  28029. ac_cpp='$CXXCPP $CPPFLAGS'
  28030. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28031. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28032. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28034. /* end confdefs.h. */
  28035. #include <math.h>
  28036. #ifdef HAVE_IEEEFP_H
  28037. #include <ieeefp.h>
  28038. #endif
  28039. int
  28040. main ()
  28041. {
  28042. _isinfl(0);
  28043. ;
  28044. return 0;
  28045. }
  28046. _ACEOF
  28047. if ac_fn_cxx_try_compile "$LINENO"; then :
  28048. glibcxx_cv_func__isinfl_use=yes
  28049. else
  28050. glibcxx_cv_func__isinfl_use=no
  28051. fi
  28052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28053. ac_ext=c
  28054. ac_cpp='$CPP $CPPFLAGS'
  28055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28058. fi
  28059. fi
  28060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  28061. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  28062. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  28063. for ac_func in _isinfl
  28064. do :
  28065. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  28066. if test "x$ac_cv_func__isinfl" = xyes; then :
  28067. cat >>confdefs.h <<_ACEOF
  28068. #define HAVE__ISINFL 1
  28069. _ACEOF
  28070. fi
  28071. done
  28072. fi
  28073. fi
  28074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  28075. $as_echo_n "checking for atan2l declaration... " >&6; }
  28076. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  28077. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  28078. $as_echo_n "(cached) " >&6
  28079. else
  28080. ac_ext=cpp
  28081. ac_cpp='$CXXCPP $CPPFLAGS'
  28082. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28083. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28084. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28086. /* end confdefs.h. */
  28087. #include <math.h>
  28088. int
  28089. main ()
  28090. {
  28091. atan2l(0, 0);
  28092. ;
  28093. return 0;
  28094. }
  28095. _ACEOF
  28096. if ac_fn_cxx_try_compile "$LINENO"; then :
  28097. glibcxx_cv_func_atan2l_use=yes
  28098. else
  28099. glibcxx_cv_func_atan2l_use=no
  28100. fi
  28101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28102. ac_ext=c
  28103. ac_cpp='$CPP $CPPFLAGS'
  28104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28107. fi
  28108. fi
  28109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  28110. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  28111. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  28112. for ac_func in atan2l
  28113. do :
  28114. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  28115. if test "x$ac_cv_func_atan2l" = xyes; then :
  28116. cat >>confdefs.h <<_ACEOF
  28117. #define HAVE_ATAN2L 1
  28118. _ACEOF
  28119. fi
  28120. done
  28121. else
  28122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  28123. $as_echo_n "checking for _atan2l declaration... " >&6; }
  28124. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  28125. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  28126. $as_echo_n "(cached) " >&6
  28127. else
  28128. ac_ext=cpp
  28129. ac_cpp='$CXXCPP $CPPFLAGS'
  28130. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28131. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28132. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28134. /* end confdefs.h. */
  28135. #include <math.h>
  28136. int
  28137. main ()
  28138. {
  28139. _atan2l(0, 0);
  28140. ;
  28141. return 0;
  28142. }
  28143. _ACEOF
  28144. if ac_fn_cxx_try_compile "$LINENO"; then :
  28145. glibcxx_cv_func__atan2l_use=yes
  28146. else
  28147. glibcxx_cv_func__atan2l_use=no
  28148. fi
  28149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28150. ac_ext=c
  28151. ac_cpp='$CPP $CPPFLAGS'
  28152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28155. fi
  28156. fi
  28157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  28158. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  28159. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  28160. for ac_func in _atan2l
  28161. do :
  28162. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  28163. if test "x$ac_cv_func__atan2l" = xyes; then :
  28164. cat >>confdefs.h <<_ACEOF
  28165. #define HAVE__ATAN2L 1
  28166. _ACEOF
  28167. fi
  28168. done
  28169. fi
  28170. fi
  28171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  28172. $as_echo_n "checking for expl declaration... " >&6; }
  28173. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  28174. if ${glibcxx_cv_func_expl_use+:} false; then :
  28175. $as_echo_n "(cached) " >&6
  28176. else
  28177. ac_ext=cpp
  28178. ac_cpp='$CXXCPP $CPPFLAGS'
  28179. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28180. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28181. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28183. /* end confdefs.h. */
  28184. #include <math.h>
  28185. #ifdef HAVE_IEEEFP_H
  28186. #include <ieeefp.h>
  28187. #endif
  28188. int
  28189. main ()
  28190. {
  28191. expl(0);
  28192. ;
  28193. return 0;
  28194. }
  28195. _ACEOF
  28196. if ac_fn_cxx_try_compile "$LINENO"; then :
  28197. glibcxx_cv_func_expl_use=yes
  28198. else
  28199. glibcxx_cv_func_expl_use=no
  28200. fi
  28201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28202. ac_ext=c
  28203. ac_cpp='$CPP $CPPFLAGS'
  28204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28207. fi
  28208. fi
  28209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  28210. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  28211. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  28212. for ac_func in expl
  28213. do :
  28214. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  28215. if test "x$ac_cv_func_expl" = xyes; then :
  28216. cat >>confdefs.h <<_ACEOF
  28217. #define HAVE_EXPL 1
  28218. _ACEOF
  28219. fi
  28220. done
  28221. else
  28222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  28223. $as_echo_n "checking for _expl declaration... " >&6; }
  28224. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  28225. if ${glibcxx_cv_func__expl_use+:} false; then :
  28226. $as_echo_n "(cached) " >&6
  28227. else
  28228. ac_ext=cpp
  28229. ac_cpp='$CXXCPP $CPPFLAGS'
  28230. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28231. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28232. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28234. /* end confdefs.h. */
  28235. #include <math.h>
  28236. #ifdef HAVE_IEEEFP_H
  28237. #include <ieeefp.h>
  28238. #endif
  28239. int
  28240. main ()
  28241. {
  28242. _expl(0);
  28243. ;
  28244. return 0;
  28245. }
  28246. _ACEOF
  28247. if ac_fn_cxx_try_compile "$LINENO"; then :
  28248. glibcxx_cv_func__expl_use=yes
  28249. else
  28250. glibcxx_cv_func__expl_use=no
  28251. fi
  28252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28253. ac_ext=c
  28254. ac_cpp='$CPP $CPPFLAGS'
  28255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28258. fi
  28259. fi
  28260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  28261. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  28262. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  28263. for ac_func in _expl
  28264. do :
  28265. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  28266. if test "x$ac_cv_func__expl" = xyes; then :
  28267. cat >>confdefs.h <<_ACEOF
  28268. #define HAVE__EXPL 1
  28269. _ACEOF
  28270. fi
  28271. done
  28272. fi
  28273. fi
  28274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  28275. $as_echo_n "checking for fabsl declaration... " >&6; }
  28276. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  28277. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  28278. $as_echo_n "(cached) " >&6
  28279. else
  28280. ac_ext=cpp
  28281. ac_cpp='$CXXCPP $CPPFLAGS'
  28282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28286. /* end confdefs.h. */
  28287. #include <math.h>
  28288. #ifdef HAVE_IEEEFP_H
  28289. #include <ieeefp.h>
  28290. #endif
  28291. int
  28292. main ()
  28293. {
  28294. fabsl(0);
  28295. ;
  28296. return 0;
  28297. }
  28298. _ACEOF
  28299. if ac_fn_cxx_try_compile "$LINENO"; then :
  28300. glibcxx_cv_func_fabsl_use=yes
  28301. else
  28302. glibcxx_cv_func_fabsl_use=no
  28303. fi
  28304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28305. ac_ext=c
  28306. ac_cpp='$CPP $CPPFLAGS'
  28307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28310. fi
  28311. fi
  28312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  28313. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  28314. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  28315. for ac_func in fabsl
  28316. do :
  28317. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  28318. if test "x$ac_cv_func_fabsl" = xyes; then :
  28319. cat >>confdefs.h <<_ACEOF
  28320. #define HAVE_FABSL 1
  28321. _ACEOF
  28322. fi
  28323. done
  28324. else
  28325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  28326. $as_echo_n "checking for _fabsl declaration... " >&6; }
  28327. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  28328. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  28329. $as_echo_n "(cached) " >&6
  28330. else
  28331. ac_ext=cpp
  28332. ac_cpp='$CXXCPP $CPPFLAGS'
  28333. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28334. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28335. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28337. /* end confdefs.h. */
  28338. #include <math.h>
  28339. #ifdef HAVE_IEEEFP_H
  28340. #include <ieeefp.h>
  28341. #endif
  28342. int
  28343. main ()
  28344. {
  28345. _fabsl(0);
  28346. ;
  28347. return 0;
  28348. }
  28349. _ACEOF
  28350. if ac_fn_cxx_try_compile "$LINENO"; then :
  28351. glibcxx_cv_func__fabsl_use=yes
  28352. else
  28353. glibcxx_cv_func__fabsl_use=no
  28354. fi
  28355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28356. ac_ext=c
  28357. ac_cpp='$CPP $CPPFLAGS'
  28358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28361. fi
  28362. fi
  28363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  28364. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  28365. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  28366. for ac_func in _fabsl
  28367. do :
  28368. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  28369. if test "x$ac_cv_func__fabsl" = xyes; then :
  28370. cat >>confdefs.h <<_ACEOF
  28371. #define HAVE__FABSL 1
  28372. _ACEOF
  28373. fi
  28374. done
  28375. fi
  28376. fi
  28377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  28378. $as_echo_n "checking for fmodl declaration... " >&6; }
  28379. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  28380. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  28381. $as_echo_n "(cached) " >&6
  28382. else
  28383. ac_ext=cpp
  28384. ac_cpp='$CXXCPP $CPPFLAGS'
  28385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28389. /* end confdefs.h. */
  28390. #include <math.h>
  28391. int
  28392. main ()
  28393. {
  28394. fmodl(0, 0);
  28395. ;
  28396. return 0;
  28397. }
  28398. _ACEOF
  28399. if ac_fn_cxx_try_compile "$LINENO"; then :
  28400. glibcxx_cv_func_fmodl_use=yes
  28401. else
  28402. glibcxx_cv_func_fmodl_use=no
  28403. fi
  28404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28405. ac_ext=c
  28406. ac_cpp='$CPP $CPPFLAGS'
  28407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28410. fi
  28411. fi
  28412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  28413. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  28414. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  28415. for ac_func in fmodl
  28416. do :
  28417. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  28418. if test "x$ac_cv_func_fmodl" = xyes; then :
  28419. cat >>confdefs.h <<_ACEOF
  28420. #define HAVE_FMODL 1
  28421. _ACEOF
  28422. fi
  28423. done
  28424. else
  28425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  28426. $as_echo_n "checking for _fmodl declaration... " >&6; }
  28427. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  28428. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  28429. $as_echo_n "(cached) " >&6
  28430. else
  28431. ac_ext=cpp
  28432. ac_cpp='$CXXCPP $CPPFLAGS'
  28433. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28434. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28435. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28437. /* end confdefs.h. */
  28438. #include <math.h>
  28439. int
  28440. main ()
  28441. {
  28442. _fmodl(0, 0);
  28443. ;
  28444. return 0;
  28445. }
  28446. _ACEOF
  28447. if ac_fn_cxx_try_compile "$LINENO"; then :
  28448. glibcxx_cv_func__fmodl_use=yes
  28449. else
  28450. glibcxx_cv_func__fmodl_use=no
  28451. fi
  28452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28453. ac_ext=c
  28454. ac_cpp='$CPP $CPPFLAGS'
  28455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28458. fi
  28459. fi
  28460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  28461. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  28462. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  28463. for ac_func in _fmodl
  28464. do :
  28465. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  28466. if test "x$ac_cv_func__fmodl" = xyes; then :
  28467. cat >>confdefs.h <<_ACEOF
  28468. #define HAVE__FMODL 1
  28469. _ACEOF
  28470. fi
  28471. done
  28472. fi
  28473. fi
  28474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  28475. $as_echo_n "checking for frexpl declaration... " >&6; }
  28476. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  28477. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  28478. $as_echo_n "(cached) " >&6
  28479. else
  28480. ac_ext=cpp
  28481. ac_cpp='$CXXCPP $CPPFLAGS'
  28482. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28483. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28484. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28486. /* end confdefs.h. */
  28487. #include <math.h>
  28488. int
  28489. main ()
  28490. {
  28491. frexpl(0, 0);
  28492. ;
  28493. return 0;
  28494. }
  28495. _ACEOF
  28496. if ac_fn_cxx_try_compile "$LINENO"; then :
  28497. glibcxx_cv_func_frexpl_use=yes
  28498. else
  28499. glibcxx_cv_func_frexpl_use=no
  28500. fi
  28501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28502. ac_ext=c
  28503. ac_cpp='$CPP $CPPFLAGS'
  28504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28507. fi
  28508. fi
  28509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  28510. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  28511. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  28512. for ac_func in frexpl
  28513. do :
  28514. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  28515. if test "x$ac_cv_func_frexpl" = xyes; then :
  28516. cat >>confdefs.h <<_ACEOF
  28517. #define HAVE_FREXPL 1
  28518. _ACEOF
  28519. fi
  28520. done
  28521. else
  28522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  28523. $as_echo_n "checking for _frexpl declaration... " >&6; }
  28524. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  28525. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  28526. $as_echo_n "(cached) " >&6
  28527. else
  28528. ac_ext=cpp
  28529. ac_cpp='$CXXCPP $CPPFLAGS'
  28530. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28531. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28532. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28534. /* end confdefs.h. */
  28535. #include <math.h>
  28536. int
  28537. main ()
  28538. {
  28539. _frexpl(0, 0);
  28540. ;
  28541. return 0;
  28542. }
  28543. _ACEOF
  28544. if ac_fn_cxx_try_compile "$LINENO"; then :
  28545. glibcxx_cv_func__frexpl_use=yes
  28546. else
  28547. glibcxx_cv_func__frexpl_use=no
  28548. fi
  28549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28550. ac_ext=c
  28551. ac_cpp='$CPP $CPPFLAGS'
  28552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28555. fi
  28556. fi
  28557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  28558. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  28559. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  28560. for ac_func in _frexpl
  28561. do :
  28562. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  28563. if test "x$ac_cv_func__frexpl" = xyes; then :
  28564. cat >>confdefs.h <<_ACEOF
  28565. #define HAVE__FREXPL 1
  28566. _ACEOF
  28567. fi
  28568. done
  28569. fi
  28570. fi
  28571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  28572. $as_echo_n "checking for hypotl declaration... " >&6; }
  28573. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  28574. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  28575. $as_echo_n "(cached) " >&6
  28576. else
  28577. ac_ext=cpp
  28578. ac_cpp='$CXXCPP $CPPFLAGS'
  28579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28583. /* end confdefs.h. */
  28584. #include <math.h>
  28585. int
  28586. main ()
  28587. {
  28588. hypotl(0, 0);
  28589. ;
  28590. return 0;
  28591. }
  28592. _ACEOF
  28593. if ac_fn_cxx_try_compile "$LINENO"; then :
  28594. glibcxx_cv_func_hypotl_use=yes
  28595. else
  28596. glibcxx_cv_func_hypotl_use=no
  28597. fi
  28598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28599. ac_ext=c
  28600. ac_cpp='$CPP $CPPFLAGS'
  28601. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28602. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28603. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28604. fi
  28605. fi
  28606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  28607. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  28608. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  28609. for ac_func in hypotl
  28610. do :
  28611. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  28612. if test "x$ac_cv_func_hypotl" = xyes; then :
  28613. cat >>confdefs.h <<_ACEOF
  28614. #define HAVE_HYPOTL 1
  28615. _ACEOF
  28616. fi
  28617. done
  28618. else
  28619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  28620. $as_echo_n "checking for _hypotl declaration... " >&6; }
  28621. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  28622. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  28623. $as_echo_n "(cached) " >&6
  28624. else
  28625. ac_ext=cpp
  28626. ac_cpp='$CXXCPP $CPPFLAGS'
  28627. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28628. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28629. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28631. /* end confdefs.h. */
  28632. #include <math.h>
  28633. int
  28634. main ()
  28635. {
  28636. _hypotl(0, 0);
  28637. ;
  28638. return 0;
  28639. }
  28640. _ACEOF
  28641. if ac_fn_cxx_try_compile "$LINENO"; then :
  28642. glibcxx_cv_func__hypotl_use=yes
  28643. else
  28644. glibcxx_cv_func__hypotl_use=no
  28645. fi
  28646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28647. ac_ext=c
  28648. ac_cpp='$CPP $CPPFLAGS'
  28649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28652. fi
  28653. fi
  28654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  28655. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  28656. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  28657. for ac_func in _hypotl
  28658. do :
  28659. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  28660. if test "x$ac_cv_func__hypotl" = xyes; then :
  28661. cat >>confdefs.h <<_ACEOF
  28662. #define HAVE__HYPOTL 1
  28663. _ACEOF
  28664. fi
  28665. done
  28666. fi
  28667. fi
  28668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  28669. $as_echo_n "checking for ldexpl declaration... " >&6; }
  28670. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  28671. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  28672. $as_echo_n "(cached) " >&6
  28673. else
  28674. ac_ext=cpp
  28675. ac_cpp='$CXXCPP $CPPFLAGS'
  28676. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28677. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28678. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28680. /* end confdefs.h. */
  28681. #include <math.h>
  28682. int
  28683. main ()
  28684. {
  28685. ldexpl(0, 0);
  28686. ;
  28687. return 0;
  28688. }
  28689. _ACEOF
  28690. if ac_fn_cxx_try_compile "$LINENO"; then :
  28691. glibcxx_cv_func_ldexpl_use=yes
  28692. else
  28693. glibcxx_cv_func_ldexpl_use=no
  28694. fi
  28695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28696. ac_ext=c
  28697. ac_cpp='$CPP $CPPFLAGS'
  28698. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28699. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28700. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28701. fi
  28702. fi
  28703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  28704. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  28705. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  28706. for ac_func in ldexpl
  28707. do :
  28708. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  28709. if test "x$ac_cv_func_ldexpl" = xyes; then :
  28710. cat >>confdefs.h <<_ACEOF
  28711. #define HAVE_LDEXPL 1
  28712. _ACEOF
  28713. fi
  28714. done
  28715. else
  28716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  28717. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  28718. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  28719. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  28720. $as_echo_n "(cached) " >&6
  28721. else
  28722. ac_ext=cpp
  28723. ac_cpp='$CXXCPP $CPPFLAGS'
  28724. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28725. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28726. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28728. /* end confdefs.h. */
  28729. #include <math.h>
  28730. int
  28731. main ()
  28732. {
  28733. _ldexpl(0, 0);
  28734. ;
  28735. return 0;
  28736. }
  28737. _ACEOF
  28738. if ac_fn_cxx_try_compile "$LINENO"; then :
  28739. glibcxx_cv_func__ldexpl_use=yes
  28740. else
  28741. glibcxx_cv_func__ldexpl_use=no
  28742. fi
  28743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28744. ac_ext=c
  28745. ac_cpp='$CPP $CPPFLAGS'
  28746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28749. fi
  28750. fi
  28751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  28752. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  28753. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  28754. for ac_func in _ldexpl
  28755. do :
  28756. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  28757. if test "x$ac_cv_func__ldexpl" = xyes; then :
  28758. cat >>confdefs.h <<_ACEOF
  28759. #define HAVE__LDEXPL 1
  28760. _ACEOF
  28761. fi
  28762. done
  28763. fi
  28764. fi
  28765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  28766. $as_echo_n "checking for logl declaration... " >&6; }
  28767. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  28768. if ${glibcxx_cv_func_logl_use+:} false; then :
  28769. $as_echo_n "(cached) " >&6
  28770. else
  28771. ac_ext=cpp
  28772. ac_cpp='$CXXCPP $CPPFLAGS'
  28773. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28774. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28775. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28777. /* end confdefs.h. */
  28778. #include <math.h>
  28779. #ifdef HAVE_IEEEFP_H
  28780. #include <ieeefp.h>
  28781. #endif
  28782. int
  28783. main ()
  28784. {
  28785. logl(0);
  28786. ;
  28787. return 0;
  28788. }
  28789. _ACEOF
  28790. if ac_fn_cxx_try_compile "$LINENO"; then :
  28791. glibcxx_cv_func_logl_use=yes
  28792. else
  28793. glibcxx_cv_func_logl_use=no
  28794. fi
  28795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28796. ac_ext=c
  28797. ac_cpp='$CPP $CPPFLAGS'
  28798. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28799. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28800. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28801. fi
  28802. fi
  28803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  28804. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  28805. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  28806. for ac_func in logl
  28807. do :
  28808. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  28809. if test "x$ac_cv_func_logl" = xyes; then :
  28810. cat >>confdefs.h <<_ACEOF
  28811. #define HAVE_LOGL 1
  28812. _ACEOF
  28813. fi
  28814. done
  28815. else
  28816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  28817. $as_echo_n "checking for _logl declaration... " >&6; }
  28818. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  28819. if ${glibcxx_cv_func__logl_use+:} false; then :
  28820. $as_echo_n "(cached) " >&6
  28821. else
  28822. ac_ext=cpp
  28823. ac_cpp='$CXXCPP $CPPFLAGS'
  28824. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28825. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28826. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28828. /* end confdefs.h. */
  28829. #include <math.h>
  28830. #ifdef HAVE_IEEEFP_H
  28831. #include <ieeefp.h>
  28832. #endif
  28833. int
  28834. main ()
  28835. {
  28836. _logl(0);
  28837. ;
  28838. return 0;
  28839. }
  28840. _ACEOF
  28841. if ac_fn_cxx_try_compile "$LINENO"; then :
  28842. glibcxx_cv_func__logl_use=yes
  28843. else
  28844. glibcxx_cv_func__logl_use=no
  28845. fi
  28846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28847. ac_ext=c
  28848. ac_cpp='$CPP $CPPFLAGS'
  28849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28852. fi
  28853. fi
  28854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  28855. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  28856. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  28857. for ac_func in _logl
  28858. do :
  28859. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  28860. if test "x$ac_cv_func__logl" = xyes; then :
  28861. cat >>confdefs.h <<_ACEOF
  28862. #define HAVE__LOGL 1
  28863. _ACEOF
  28864. fi
  28865. done
  28866. fi
  28867. fi
  28868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  28869. $as_echo_n "checking for log10l declaration... " >&6; }
  28870. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  28871. if ${glibcxx_cv_func_log10l_use+:} false; then :
  28872. $as_echo_n "(cached) " >&6
  28873. else
  28874. ac_ext=cpp
  28875. ac_cpp='$CXXCPP $CPPFLAGS'
  28876. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28877. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28878. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28880. /* end confdefs.h. */
  28881. #include <math.h>
  28882. #ifdef HAVE_IEEEFP_H
  28883. #include <ieeefp.h>
  28884. #endif
  28885. int
  28886. main ()
  28887. {
  28888. log10l(0);
  28889. ;
  28890. return 0;
  28891. }
  28892. _ACEOF
  28893. if ac_fn_cxx_try_compile "$LINENO"; then :
  28894. glibcxx_cv_func_log10l_use=yes
  28895. else
  28896. glibcxx_cv_func_log10l_use=no
  28897. fi
  28898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28899. ac_ext=c
  28900. ac_cpp='$CPP $CPPFLAGS'
  28901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28904. fi
  28905. fi
  28906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  28907. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  28908. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  28909. for ac_func in log10l
  28910. do :
  28911. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  28912. if test "x$ac_cv_func_log10l" = xyes; then :
  28913. cat >>confdefs.h <<_ACEOF
  28914. #define HAVE_LOG10L 1
  28915. _ACEOF
  28916. fi
  28917. done
  28918. else
  28919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  28920. $as_echo_n "checking for _log10l declaration... " >&6; }
  28921. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  28922. if ${glibcxx_cv_func__log10l_use+:} false; then :
  28923. $as_echo_n "(cached) " >&6
  28924. else
  28925. ac_ext=cpp
  28926. ac_cpp='$CXXCPP $CPPFLAGS'
  28927. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28928. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28929. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28931. /* end confdefs.h. */
  28932. #include <math.h>
  28933. #ifdef HAVE_IEEEFP_H
  28934. #include <ieeefp.h>
  28935. #endif
  28936. int
  28937. main ()
  28938. {
  28939. _log10l(0);
  28940. ;
  28941. return 0;
  28942. }
  28943. _ACEOF
  28944. if ac_fn_cxx_try_compile "$LINENO"; then :
  28945. glibcxx_cv_func__log10l_use=yes
  28946. else
  28947. glibcxx_cv_func__log10l_use=no
  28948. fi
  28949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28950. ac_ext=c
  28951. ac_cpp='$CPP $CPPFLAGS'
  28952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  28955. fi
  28956. fi
  28957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  28958. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  28959. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  28960. for ac_func in _log10l
  28961. do :
  28962. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  28963. if test "x$ac_cv_func__log10l" = xyes; then :
  28964. cat >>confdefs.h <<_ACEOF
  28965. #define HAVE__LOG10L 1
  28966. _ACEOF
  28967. fi
  28968. done
  28969. fi
  28970. fi
  28971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  28972. $as_echo_n "checking for modfl declaration... " >&6; }
  28973. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  28974. if ${glibcxx_cv_func_modfl_use+:} false; then :
  28975. $as_echo_n "(cached) " >&6
  28976. else
  28977. ac_ext=cpp
  28978. ac_cpp='$CXXCPP $CPPFLAGS'
  28979. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  28980. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  28981. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  28982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28983. /* end confdefs.h. */
  28984. #include <math.h>
  28985. int
  28986. main ()
  28987. {
  28988. modfl(0, 0);
  28989. ;
  28990. return 0;
  28991. }
  28992. _ACEOF
  28993. if ac_fn_cxx_try_compile "$LINENO"; then :
  28994. glibcxx_cv_func_modfl_use=yes
  28995. else
  28996. glibcxx_cv_func_modfl_use=no
  28997. fi
  28998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  28999. ac_ext=c
  29000. ac_cpp='$CPP $CPPFLAGS'
  29001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29004. fi
  29005. fi
  29006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  29007. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  29008. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  29009. for ac_func in modfl
  29010. do :
  29011. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  29012. if test "x$ac_cv_func_modfl" = xyes; then :
  29013. cat >>confdefs.h <<_ACEOF
  29014. #define HAVE_MODFL 1
  29015. _ACEOF
  29016. fi
  29017. done
  29018. else
  29019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  29020. $as_echo_n "checking for _modfl declaration... " >&6; }
  29021. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  29022. if ${glibcxx_cv_func__modfl_use+:} false; then :
  29023. $as_echo_n "(cached) " >&6
  29024. else
  29025. ac_ext=cpp
  29026. ac_cpp='$CXXCPP $CPPFLAGS'
  29027. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29028. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29029. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29031. /* end confdefs.h. */
  29032. #include <math.h>
  29033. int
  29034. main ()
  29035. {
  29036. _modfl(0, 0);
  29037. ;
  29038. return 0;
  29039. }
  29040. _ACEOF
  29041. if ac_fn_cxx_try_compile "$LINENO"; then :
  29042. glibcxx_cv_func__modfl_use=yes
  29043. else
  29044. glibcxx_cv_func__modfl_use=no
  29045. fi
  29046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29047. ac_ext=c
  29048. ac_cpp='$CPP $CPPFLAGS'
  29049. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29050. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29051. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29052. fi
  29053. fi
  29054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  29055. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  29056. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  29057. for ac_func in _modfl
  29058. do :
  29059. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  29060. if test "x$ac_cv_func__modfl" = xyes; then :
  29061. cat >>confdefs.h <<_ACEOF
  29062. #define HAVE__MODFL 1
  29063. _ACEOF
  29064. fi
  29065. done
  29066. fi
  29067. fi
  29068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  29069. $as_echo_n "checking for powl declaration... " >&6; }
  29070. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  29071. if ${glibcxx_cv_func_powl_use+:} false; then :
  29072. $as_echo_n "(cached) " >&6
  29073. else
  29074. ac_ext=cpp
  29075. ac_cpp='$CXXCPP $CPPFLAGS'
  29076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29080. /* end confdefs.h. */
  29081. #include <math.h>
  29082. int
  29083. main ()
  29084. {
  29085. powl(0, 0);
  29086. ;
  29087. return 0;
  29088. }
  29089. _ACEOF
  29090. if ac_fn_cxx_try_compile "$LINENO"; then :
  29091. glibcxx_cv_func_powl_use=yes
  29092. else
  29093. glibcxx_cv_func_powl_use=no
  29094. fi
  29095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29096. ac_ext=c
  29097. ac_cpp='$CPP $CPPFLAGS'
  29098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29101. fi
  29102. fi
  29103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  29104. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  29105. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  29106. for ac_func in powl
  29107. do :
  29108. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  29109. if test "x$ac_cv_func_powl" = xyes; then :
  29110. cat >>confdefs.h <<_ACEOF
  29111. #define HAVE_POWL 1
  29112. _ACEOF
  29113. fi
  29114. done
  29115. else
  29116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  29117. $as_echo_n "checking for _powl declaration... " >&6; }
  29118. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  29119. if ${glibcxx_cv_func__powl_use+:} false; then :
  29120. $as_echo_n "(cached) " >&6
  29121. else
  29122. ac_ext=cpp
  29123. ac_cpp='$CXXCPP $CPPFLAGS'
  29124. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29125. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29126. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29128. /* end confdefs.h. */
  29129. #include <math.h>
  29130. int
  29131. main ()
  29132. {
  29133. _powl(0, 0);
  29134. ;
  29135. return 0;
  29136. }
  29137. _ACEOF
  29138. if ac_fn_cxx_try_compile "$LINENO"; then :
  29139. glibcxx_cv_func__powl_use=yes
  29140. else
  29141. glibcxx_cv_func__powl_use=no
  29142. fi
  29143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29144. ac_ext=c
  29145. ac_cpp='$CPP $CPPFLAGS'
  29146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29149. fi
  29150. fi
  29151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  29152. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  29153. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  29154. for ac_func in _powl
  29155. do :
  29156. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  29157. if test "x$ac_cv_func__powl" = xyes; then :
  29158. cat >>confdefs.h <<_ACEOF
  29159. #define HAVE__POWL 1
  29160. _ACEOF
  29161. fi
  29162. done
  29163. fi
  29164. fi
  29165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  29166. $as_echo_n "checking for sqrtl declaration... " >&6; }
  29167. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  29168. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  29169. $as_echo_n "(cached) " >&6
  29170. else
  29171. ac_ext=cpp
  29172. ac_cpp='$CXXCPP $CPPFLAGS'
  29173. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29174. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29175. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29177. /* end confdefs.h. */
  29178. #include <math.h>
  29179. #ifdef HAVE_IEEEFP_H
  29180. #include <ieeefp.h>
  29181. #endif
  29182. int
  29183. main ()
  29184. {
  29185. sqrtl(0);
  29186. ;
  29187. return 0;
  29188. }
  29189. _ACEOF
  29190. if ac_fn_cxx_try_compile "$LINENO"; then :
  29191. glibcxx_cv_func_sqrtl_use=yes
  29192. else
  29193. glibcxx_cv_func_sqrtl_use=no
  29194. fi
  29195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29196. ac_ext=c
  29197. ac_cpp='$CPP $CPPFLAGS'
  29198. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29199. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29200. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29201. fi
  29202. fi
  29203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  29204. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  29205. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  29206. for ac_func in sqrtl
  29207. do :
  29208. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  29209. if test "x$ac_cv_func_sqrtl" = xyes; then :
  29210. cat >>confdefs.h <<_ACEOF
  29211. #define HAVE_SQRTL 1
  29212. _ACEOF
  29213. fi
  29214. done
  29215. else
  29216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  29217. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  29218. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  29219. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  29220. $as_echo_n "(cached) " >&6
  29221. else
  29222. ac_ext=cpp
  29223. ac_cpp='$CXXCPP $CPPFLAGS'
  29224. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29225. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29226. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29228. /* end confdefs.h. */
  29229. #include <math.h>
  29230. #ifdef HAVE_IEEEFP_H
  29231. #include <ieeefp.h>
  29232. #endif
  29233. int
  29234. main ()
  29235. {
  29236. _sqrtl(0);
  29237. ;
  29238. return 0;
  29239. }
  29240. _ACEOF
  29241. if ac_fn_cxx_try_compile "$LINENO"; then :
  29242. glibcxx_cv_func__sqrtl_use=yes
  29243. else
  29244. glibcxx_cv_func__sqrtl_use=no
  29245. fi
  29246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29247. ac_ext=c
  29248. ac_cpp='$CPP $CPPFLAGS'
  29249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29252. fi
  29253. fi
  29254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  29255. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  29256. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  29257. for ac_func in _sqrtl
  29258. do :
  29259. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  29260. if test "x$ac_cv_func__sqrtl" = xyes; then :
  29261. cat >>confdefs.h <<_ACEOF
  29262. #define HAVE__SQRTL 1
  29263. _ACEOF
  29264. fi
  29265. done
  29266. fi
  29267. fi
  29268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  29269. $as_echo_n "checking for sincosl declaration... " >&6; }
  29270. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  29271. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  29272. $as_echo_n "(cached) " >&6
  29273. else
  29274. ac_ext=cpp
  29275. ac_cpp='$CXXCPP $CPPFLAGS'
  29276. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29277. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29278. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29280. /* end confdefs.h. */
  29281. #include <math.h>
  29282. int
  29283. main ()
  29284. {
  29285. sincosl(0, 0, 0);
  29286. ;
  29287. return 0;
  29288. }
  29289. _ACEOF
  29290. if ac_fn_cxx_try_compile "$LINENO"; then :
  29291. glibcxx_cv_func_sincosl_use=yes
  29292. else
  29293. glibcxx_cv_func_sincosl_use=no
  29294. fi
  29295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29296. ac_ext=c
  29297. ac_cpp='$CPP $CPPFLAGS'
  29298. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29299. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29300. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29301. fi
  29302. fi
  29303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  29304. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  29305. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  29306. for ac_func in sincosl
  29307. do :
  29308. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  29309. if test "x$ac_cv_func_sincosl" = xyes; then :
  29310. cat >>confdefs.h <<_ACEOF
  29311. #define HAVE_SINCOSL 1
  29312. _ACEOF
  29313. fi
  29314. done
  29315. else
  29316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  29317. $as_echo_n "checking for _sincosl declaration... " >&6; }
  29318. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  29319. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  29320. $as_echo_n "(cached) " >&6
  29321. else
  29322. ac_ext=cpp
  29323. ac_cpp='$CXXCPP $CPPFLAGS'
  29324. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29325. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29326. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29328. /* end confdefs.h. */
  29329. #include <math.h>
  29330. int
  29331. main ()
  29332. {
  29333. _sincosl(0, 0, 0);
  29334. ;
  29335. return 0;
  29336. }
  29337. _ACEOF
  29338. if ac_fn_cxx_try_compile "$LINENO"; then :
  29339. glibcxx_cv_func__sincosl_use=yes
  29340. else
  29341. glibcxx_cv_func__sincosl_use=no
  29342. fi
  29343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29344. ac_ext=c
  29345. ac_cpp='$CPP $CPPFLAGS'
  29346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29349. fi
  29350. fi
  29351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  29352. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  29353. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  29354. for ac_func in _sincosl
  29355. do :
  29356. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  29357. if test "x$ac_cv_func__sincosl" = xyes; then :
  29358. cat >>confdefs.h <<_ACEOF
  29359. #define HAVE__SINCOSL 1
  29360. _ACEOF
  29361. fi
  29362. done
  29363. fi
  29364. fi
  29365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  29366. $as_echo_n "checking for finitel declaration... " >&6; }
  29367. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  29368. if ${glibcxx_cv_func_finitel_use+:} false; then :
  29369. $as_echo_n "(cached) " >&6
  29370. else
  29371. ac_ext=cpp
  29372. ac_cpp='$CXXCPP $CPPFLAGS'
  29373. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29374. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29375. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29377. /* end confdefs.h. */
  29378. #include <math.h>
  29379. #ifdef HAVE_IEEEFP_H
  29380. #include <ieeefp.h>
  29381. #endif
  29382. int
  29383. main ()
  29384. {
  29385. finitel(0);
  29386. ;
  29387. return 0;
  29388. }
  29389. _ACEOF
  29390. if ac_fn_cxx_try_compile "$LINENO"; then :
  29391. glibcxx_cv_func_finitel_use=yes
  29392. else
  29393. glibcxx_cv_func_finitel_use=no
  29394. fi
  29395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29396. ac_ext=c
  29397. ac_cpp='$CPP $CPPFLAGS'
  29398. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29399. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29400. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29401. fi
  29402. fi
  29403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  29404. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  29405. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  29406. for ac_func in finitel
  29407. do :
  29408. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  29409. if test "x$ac_cv_func_finitel" = xyes; then :
  29410. cat >>confdefs.h <<_ACEOF
  29411. #define HAVE_FINITEL 1
  29412. _ACEOF
  29413. fi
  29414. done
  29415. else
  29416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  29417. $as_echo_n "checking for _finitel declaration... " >&6; }
  29418. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  29419. if ${glibcxx_cv_func__finitel_use+:} false; then :
  29420. $as_echo_n "(cached) " >&6
  29421. else
  29422. ac_ext=cpp
  29423. ac_cpp='$CXXCPP $CPPFLAGS'
  29424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29428. /* end confdefs.h. */
  29429. #include <math.h>
  29430. #ifdef HAVE_IEEEFP_H
  29431. #include <ieeefp.h>
  29432. #endif
  29433. int
  29434. main ()
  29435. {
  29436. _finitel(0);
  29437. ;
  29438. return 0;
  29439. }
  29440. _ACEOF
  29441. if ac_fn_cxx_try_compile "$LINENO"; then :
  29442. glibcxx_cv_func__finitel_use=yes
  29443. else
  29444. glibcxx_cv_func__finitel_use=no
  29445. fi
  29446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29447. ac_ext=c
  29448. ac_cpp='$CPP $CPPFLAGS'
  29449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29452. fi
  29453. fi
  29454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  29455. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  29456. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  29457. for ac_func in _finitel
  29458. do :
  29459. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  29460. if test "x$ac_cv_func__finitel" = xyes; then :
  29461. cat >>confdefs.h <<_ACEOF
  29462. #define HAVE__FINITEL 1
  29463. _ACEOF
  29464. fi
  29465. done
  29466. fi
  29467. fi
  29468. LIBS="$ac_save_LIBS"
  29469. CXXFLAGS="$ac_save_CXXFLAGS"
  29470. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  29471. ac_save_CXXFLAGS="$CXXFLAGS"
  29472. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  29473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  29474. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  29475. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  29476. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  29477. $as_echo_n "(cached) " >&6
  29478. else
  29479. ac_ext=cpp
  29480. ac_cpp='$CXXCPP $CPPFLAGS'
  29481. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29482. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29483. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29485. /* end confdefs.h. */
  29486. #include <stdlib.h>
  29487. int
  29488. main ()
  29489. {
  29490. at_quick_exit(0);
  29491. ;
  29492. return 0;
  29493. }
  29494. _ACEOF
  29495. if ac_fn_cxx_try_compile "$LINENO"; then :
  29496. glibcxx_cv_func_at_quick_exit_use=yes
  29497. else
  29498. glibcxx_cv_func_at_quick_exit_use=no
  29499. fi
  29500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29501. ac_ext=c
  29502. ac_cpp='$CPP $CPPFLAGS'
  29503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29506. fi
  29507. fi
  29508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  29509. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  29510. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  29511. for ac_func in at_quick_exit
  29512. do :
  29513. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  29514. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  29515. cat >>confdefs.h <<_ACEOF
  29516. #define HAVE_AT_QUICK_EXIT 1
  29517. _ACEOF
  29518. fi
  29519. done
  29520. fi
  29521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  29522. $as_echo_n "checking for quick_exit declaration... " >&6; }
  29523. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  29524. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  29525. $as_echo_n "(cached) " >&6
  29526. else
  29527. ac_ext=cpp
  29528. ac_cpp='$CXXCPP $CPPFLAGS'
  29529. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29530. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29531. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29533. /* end confdefs.h. */
  29534. #include <stdlib.h>
  29535. int
  29536. main ()
  29537. {
  29538. quick_exit(0);
  29539. ;
  29540. return 0;
  29541. }
  29542. _ACEOF
  29543. if ac_fn_cxx_try_compile "$LINENO"; then :
  29544. glibcxx_cv_func_quick_exit_use=yes
  29545. else
  29546. glibcxx_cv_func_quick_exit_use=no
  29547. fi
  29548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29549. ac_ext=c
  29550. ac_cpp='$CPP $CPPFLAGS'
  29551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29554. fi
  29555. fi
  29556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  29557. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  29558. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  29559. for ac_func in quick_exit
  29560. do :
  29561. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  29562. if test "x$ac_cv_func_quick_exit" = xyes; then :
  29563. cat >>confdefs.h <<_ACEOF
  29564. #define HAVE_QUICK_EXIT 1
  29565. _ACEOF
  29566. fi
  29567. done
  29568. fi
  29569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  29570. $as_echo_n "checking for strtold declaration... " >&6; }
  29571. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  29572. if ${glibcxx_cv_func_strtold_use+:} false; then :
  29573. $as_echo_n "(cached) " >&6
  29574. else
  29575. ac_ext=cpp
  29576. ac_cpp='$CXXCPP $CPPFLAGS'
  29577. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29578. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29581. /* end confdefs.h. */
  29582. #include <stdlib.h>
  29583. int
  29584. main ()
  29585. {
  29586. strtold(0, 0);
  29587. ;
  29588. return 0;
  29589. }
  29590. _ACEOF
  29591. if ac_fn_cxx_try_compile "$LINENO"; then :
  29592. glibcxx_cv_func_strtold_use=yes
  29593. else
  29594. glibcxx_cv_func_strtold_use=no
  29595. fi
  29596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29597. ac_ext=c
  29598. ac_cpp='$CPP $CPPFLAGS'
  29599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29602. fi
  29603. fi
  29604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  29605. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  29606. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  29607. for ac_func in strtold
  29608. do :
  29609. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  29610. if test "x$ac_cv_func_strtold" = xyes; then :
  29611. cat >>confdefs.h <<_ACEOF
  29612. #define HAVE_STRTOLD 1
  29613. _ACEOF
  29614. fi
  29615. done
  29616. fi
  29617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  29618. $as_echo_n "checking for strtof declaration... " >&6; }
  29619. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  29620. if ${glibcxx_cv_func_strtof_use+:} false; then :
  29621. $as_echo_n "(cached) " >&6
  29622. else
  29623. ac_ext=cpp
  29624. ac_cpp='$CXXCPP $CPPFLAGS'
  29625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29629. /* end confdefs.h. */
  29630. #include <stdlib.h>
  29631. int
  29632. main ()
  29633. {
  29634. strtof(0, 0);
  29635. ;
  29636. return 0;
  29637. }
  29638. _ACEOF
  29639. if ac_fn_cxx_try_compile "$LINENO"; then :
  29640. glibcxx_cv_func_strtof_use=yes
  29641. else
  29642. glibcxx_cv_func_strtof_use=no
  29643. fi
  29644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29645. ac_ext=c
  29646. ac_cpp='$CPP $CPPFLAGS'
  29647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29650. fi
  29651. fi
  29652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  29653. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  29654. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  29655. for ac_func in strtof
  29656. do :
  29657. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  29658. if test "x$ac_cv_func_strtof" = xyes; then :
  29659. cat >>confdefs.h <<_ACEOF
  29660. #define HAVE_STRTOF 1
  29661. _ACEOF
  29662. fi
  29663. done
  29664. fi
  29665. CXXFLAGS="$ac_save_CXXFLAGS"
  29666. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  29667. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  29668. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  29669. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  29670. $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
  29671. $as_echo "#define HAVE_MODF 1" >>confdefs.h
  29672. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  29673. ;;
  29674. *-aix*)
  29675. # If we're not using GNU ld, then there's no point in even trying these
  29676. # tests. Check for that first. We should have already tested for gld
  29677. # by now (in libtool), but require it now just to be safe...
  29678. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  29679. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  29680. # The name set by libtool depends on the version of libtool. Shame on us
  29681. # for depending on an impl detail, but c'est la vie. Older versions used
  29682. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  29683. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  29684. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  29685. # set (hence we're using an older libtool), then set it.
  29686. if test x${with_gnu_ld+set} != xset; then
  29687. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  29688. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  29689. with_gnu_ld=no
  29690. else
  29691. with_gnu_ld=$ac_cv_prog_gnu_ld
  29692. fi
  29693. fi
  29694. # Start by getting the version number. I think the libtool test already
  29695. # does some of this, but throws away the result.
  29696. glibcxx_ld_is_gold=no
  29697. glibcxx_ld_is_mold=no
  29698. if test x"$with_gnu_ld" = x"yes"; then
  29699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  29700. $as_echo_n "checking for ld version... " >&6; }
  29701. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  29702. glibcxx_ld_is_gold=yes
  29703. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  29704. glibcxx_ld_is_mold=yes
  29705. fi
  29706. ldver=`$LD --version 2>/dev/null |
  29707. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  29708. glibcxx_gnu_ld_version=`echo $ldver | \
  29709. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  29710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  29711. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  29712. fi
  29713. # Set --gc-sections.
  29714. glibcxx_have_gc_sections=no
  29715. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  29716. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  29717. glibcxx_have_gc_sections=yes
  29718. fi
  29719. else
  29720. glibcxx_gcsections_min_ld=21602
  29721. if test x"$with_gnu_ld" = x"yes" &&
  29722. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  29723. glibcxx_have_gc_sections=yes
  29724. fi
  29725. fi
  29726. if test "$glibcxx_have_gc_sections" = "yes"; then
  29727. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  29728. # NB: This flag only works reliably after 2.16.1. Configure tests
  29729. # for this are difficult, so hard wire a value that should work.
  29730. ac_test_CFLAGS="${CFLAGS+set}"
  29731. ac_save_CFLAGS="$CFLAGS"
  29732. CFLAGS='-Wl,--gc-sections'
  29733. # Check for -Wl,--gc-sections
  29734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  29735. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  29736. if test x$gcc_no_link = xyes; then
  29737. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  29738. fi
  29739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29740. /* end confdefs.h. */
  29741. int one(void) { return 1; }
  29742. int two(void) { return 2; }
  29743. int
  29744. main ()
  29745. {
  29746. two();
  29747. ;
  29748. return 0;
  29749. }
  29750. _ACEOF
  29751. if ac_fn_c_try_link "$LINENO"; then :
  29752. ac_gcsections=yes
  29753. else
  29754. ac_gcsections=no
  29755. fi
  29756. rm -f core conftest.err conftest.$ac_objext \
  29757. conftest$ac_exeext conftest.$ac_ext
  29758. if test "$ac_gcsections" = "yes"; then
  29759. rm -f conftest.c
  29760. touch conftest.c
  29761. if $CC -c conftest.c; then
  29762. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  29763. grep "Warning: gc-sections option ignored" > /dev/null; then
  29764. ac_gcsections=no
  29765. fi
  29766. fi
  29767. rm -f conftest.c conftest.o conftest
  29768. fi
  29769. if test "$ac_gcsections" = "yes"; then
  29770. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  29771. fi
  29772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  29773. $as_echo "$ac_gcsections" >&6; }
  29774. if test "$ac_test_CFLAGS" = set; then
  29775. CFLAGS="$ac_save_CFLAGS"
  29776. else
  29777. # this is the suspicious part
  29778. CFLAGS=''
  29779. fi
  29780. fi
  29781. # Set -z,relro.
  29782. # Note this is only for shared objects.
  29783. ac_ld_relro=no
  29784. if test x"$with_gnu_ld" = x"yes"; then
  29785. # cygwin and mingw uses PE, which has no ELF relro support,
  29786. # multi target ld may confuse configure machinery
  29787. case "$host" in
  29788. *-*-cygwin*)
  29789. ;;
  29790. *-*-mingw*)
  29791. ;;
  29792. *)
  29793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  29794. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  29795. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  29796. if test -n "$cxx_z_relo"; then
  29797. OPT_LDFLAGS="-Wl,-z,relro"
  29798. ac_ld_relro=yes
  29799. fi
  29800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  29801. $as_echo "$ac_ld_relro" >&6; }
  29802. esac
  29803. fi
  29804. # Set linker optimization flags.
  29805. if test x"$with_gnu_ld" = x"yes"; then
  29806. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  29807. fi
  29808. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  29809. ac_save_CXXFLAGS="$CXXFLAGS"
  29810. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  29811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  29812. $as_echo_n "checking for sin in -lm... " >&6; }
  29813. if ${ac_cv_lib_m_sin+:} false; then :
  29814. $as_echo_n "(cached) " >&6
  29815. else
  29816. ac_check_lib_save_LIBS=$LIBS
  29817. LIBS="-lm $LIBS"
  29818. if test x$gcc_no_link = xyes; then
  29819. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  29820. fi
  29821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29822. /* end confdefs.h. */
  29823. /* Override any GCC internal prototype to avoid an error.
  29824. Use char because int might match the return type of a GCC
  29825. builtin and then its argument prototype would still apply. */
  29826. #ifdef __cplusplus
  29827. extern "C"
  29828. #endif
  29829. char sin ();
  29830. int
  29831. main ()
  29832. {
  29833. return sin ();
  29834. ;
  29835. return 0;
  29836. }
  29837. _ACEOF
  29838. if ac_fn_c_try_link "$LINENO"; then :
  29839. ac_cv_lib_m_sin=yes
  29840. else
  29841. ac_cv_lib_m_sin=no
  29842. fi
  29843. rm -f core conftest.err conftest.$ac_objext \
  29844. conftest$ac_exeext conftest.$ac_ext
  29845. LIBS=$ac_check_lib_save_LIBS
  29846. fi
  29847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  29848. $as_echo "$ac_cv_lib_m_sin" >&6; }
  29849. if test "x$ac_cv_lib_m_sin" = xyes; then :
  29850. libm="-lm"
  29851. fi
  29852. ac_save_LIBS="$LIBS"
  29853. LIBS="$LIBS $libm"
  29854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  29855. $as_echo_n "checking for isinf declaration... " >&6; }
  29856. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  29857. if ${glibcxx_cv_func_isinf_use+:} false; then :
  29858. $as_echo_n "(cached) " >&6
  29859. else
  29860. ac_ext=cpp
  29861. ac_cpp='$CXXCPP $CPPFLAGS'
  29862. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29863. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29864. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29866. /* end confdefs.h. */
  29867. #include <math.h>
  29868. #ifdef HAVE_IEEEFP_H
  29869. #include <ieeefp.h>
  29870. #endif
  29871. int
  29872. main ()
  29873. {
  29874. isinf(0);
  29875. ;
  29876. return 0;
  29877. }
  29878. _ACEOF
  29879. if ac_fn_cxx_try_compile "$LINENO"; then :
  29880. glibcxx_cv_func_isinf_use=yes
  29881. else
  29882. glibcxx_cv_func_isinf_use=no
  29883. fi
  29884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29885. ac_ext=c
  29886. ac_cpp='$CPP $CPPFLAGS'
  29887. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29888. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29889. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29890. fi
  29891. fi
  29892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  29893. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  29894. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  29895. for ac_func in isinf
  29896. do :
  29897. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  29898. if test "x$ac_cv_func_isinf" = xyes; then :
  29899. cat >>confdefs.h <<_ACEOF
  29900. #define HAVE_ISINF 1
  29901. _ACEOF
  29902. fi
  29903. done
  29904. else
  29905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  29906. $as_echo_n "checking for _isinf declaration... " >&6; }
  29907. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  29908. if ${glibcxx_cv_func__isinf_use+:} false; then :
  29909. $as_echo_n "(cached) " >&6
  29910. else
  29911. ac_ext=cpp
  29912. ac_cpp='$CXXCPP $CPPFLAGS'
  29913. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29914. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29915. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29917. /* end confdefs.h. */
  29918. #include <math.h>
  29919. #ifdef HAVE_IEEEFP_H
  29920. #include <ieeefp.h>
  29921. #endif
  29922. int
  29923. main ()
  29924. {
  29925. _isinf(0);
  29926. ;
  29927. return 0;
  29928. }
  29929. _ACEOF
  29930. if ac_fn_cxx_try_compile "$LINENO"; then :
  29931. glibcxx_cv_func__isinf_use=yes
  29932. else
  29933. glibcxx_cv_func__isinf_use=no
  29934. fi
  29935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29936. ac_ext=c
  29937. ac_cpp='$CPP $CPPFLAGS'
  29938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29941. fi
  29942. fi
  29943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  29944. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  29945. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  29946. for ac_func in _isinf
  29947. do :
  29948. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  29949. if test "x$ac_cv_func__isinf" = xyes; then :
  29950. cat >>confdefs.h <<_ACEOF
  29951. #define HAVE__ISINF 1
  29952. _ACEOF
  29953. fi
  29954. done
  29955. fi
  29956. fi
  29957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  29958. $as_echo_n "checking for isnan declaration... " >&6; }
  29959. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  29960. if ${glibcxx_cv_func_isnan_use+:} false; then :
  29961. $as_echo_n "(cached) " >&6
  29962. else
  29963. ac_ext=cpp
  29964. ac_cpp='$CXXCPP $CPPFLAGS'
  29965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29969. /* end confdefs.h. */
  29970. #include <math.h>
  29971. #ifdef HAVE_IEEEFP_H
  29972. #include <ieeefp.h>
  29973. #endif
  29974. int
  29975. main ()
  29976. {
  29977. isnan(0);
  29978. ;
  29979. return 0;
  29980. }
  29981. _ACEOF
  29982. if ac_fn_cxx_try_compile "$LINENO"; then :
  29983. glibcxx_cv_func_isnan_use=yes
  29984. else
  29985. glibcxx_cv_func_isnan_use=no
  29986. fi
  29987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  29988. ac_ext=c
  29989. ac_cpp='$CPP $CPPFLAGS'
  29990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29993. fi
  29994. fi
  29995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  29996. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  29997. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  29998. for ac_func in isnan
  29999. do :
  30000. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  30001. if test "x$ac_cv_func_isnan" = xyes; then :
  30002. cat >>confdefs.h <<_ACEOF
  30003. #define HAVE_ISNAN 1
  30004. _ACEOF
  30005. fi
  30006. done
  30007. else
  30008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  30009. $as_echo_n "checking for _isnan declaration... " >&6; }
  30010. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  30011. if ${glibcxx_cv_func__isnan_use+:} false; then :
  30012. $as_echo_n "(cached) " >&6
  30013. else
  30014. ac_ext=cpp
  30015. ac_cpp='$CXXCPP $CPPFLAGS'
  30016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30020. /* end confdefs.h. */
  30021. #include <math.h>
  30022. #ifdef HAVE_IEEEFP_H
  30023. #include <ieeefp.h>
  30024. #endif
  30025. int
  30026. main ()
  30027. {
  30028. _isnan(0);
  30029. ;
  30030. return 0;
  30031. }
  30032. _ACEOF
  30033. if ac_fn_cxx_try_compile "$LINENO"; then :
  30034. glibcxx_cv_func__isnan_use=yes
  30035. else
  30036. glibcxx_cv_func__isnan_use=no
  30037. fi
  30038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30039. ac_ext=c
  30040. ac_cpp='$CPP $CPPFLAGS'
  30041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30044. fi
  30045. fi
  30046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  30047. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  30048. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  30049. for ac_func in _isnan
  30050. do :
  30051. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  30052. if test "x$ac_cv_func__isnan" = xyes; then :
  30053. cat >>confdefs.h <<_ACEOF
  30054. #define HAVE__ISNAN 1
  30055. _ACEOF
  30056. fi
  30057. done
  30058. fi
  30059. fi
  30060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  30061. $as_echo_n "checking for finite declaration... " >&6; }
  30062. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  30063. if ${glibcxx_cv_func_finite_use+:} false; then :
  30064. $as_echo_n "(cached) " >&6
  30065. else
  30066. ac_ext=cpp
  30067. ac_cpp='$CXXCPP $CPPFLAGS'
  30068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30072. /* end confdefs.h. */
  30073. #include <math.h>
  30074. #ifdef HAVE_IEEEFP_H
  30075. #include <ieeefp.h>
  30076. #endif
  30077. int
  30078. main ()
  30079. {
  30080. finite(0);
  30081. ;
  30082. return 0;
  30083. }
  30084. _ACEOF
  30085. if ac_fn_cxx_try_compile "$LINENO"; then :
  30086. glibcxx_cv_func_finite_use=yes
  30087. else
  30088. glibcxx_cv_func_finite_use=no
  30089. fi
  30090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30091. ac_ext=c
  30092. ac_cpp='$CPP $CPPFLAGS'
  30093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30096. fi
  30097. fi
  30098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  30099. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  30100. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  30101. for ac_func in finite
  30102. do :
  30103. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  30104. if test "x$ac_cv_func_finite" = xyes; then :
  30105. cat >>confdefs.h <<_ACEOF
  30106. #define HAVE_FINITE 1
  30107. _ACEOF
  30108. fi
  30109. done
  30110. else
  30111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  30112. $as_echo_n "checking for _finite declaration... " >&6; }
  30113. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  30114. if ${glibcxx_cv_func__finite_use+:} false; then :
  30115. $as_echo_n "(cached) " >&6
  30116. else
  30117. ac_ext=cpp
  30118. ac_cpp='$CXXCPP $CPPFLAGS'
  30119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30123. /* end confdefs.h. */
  30124. #include <math.h>
  30125. #ifdef HAVE_IEEEFP_H
  30126. #include <ieeefp.h>
  30127. #endif
  30128. int
  30129. main ()
  30130. {
  30131. _finite(0);
  30132. ;
  30133. return 0;
  30134. }
  30135. _ACEOF
  30136. if ac_fn_cxx_try_compile "$LINENO"; then :
  30137. glibcxx_cv_func__finite_use=yes
  30138. else
  30139. glibcxx_cv_func__finite_use=no
  30140. fi
  30141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30142. ac_ext=c
  30143. ac_cpp='$CPP $CPPFLAGS'
  30144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30147. fi
  30148. fi
  30149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  30150. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  30151. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  30152. for ac_func in _finite
  30153. do :
  30154. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  30155. if test "x$ac_cv_func__finite" = xyes; then :
  30156. cat >>confdefs.h <<_ACEOF
  30157. #define HAVE__FINITE 1
  30158. _ACEOF
  30159. fi
  30160. done
  30161. fi
  30162. fi
  30163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  30164. $as_echo_n "checking for sincos declaration... " >&6; }
  30165. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  30166. if ${glibcxx_cv_func_sincos_use+:} false; then :
  30167. $as_echo_n "(cached) " >&6
  30168. else
  30169. ac_ext=cpp
  30170. ac_cpp='$CXXCPP $CPPFLAGS'
  30171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30175. /* end confdefs.h. */
  30176. #include <math.h>
  30177. int
  30178. main ()
  30179. {
  30180. sincos(0, 0, 0);
  30181. ;
  30182. return 0;
  30183. }
  30184. _ACEOF
  30185. if ac_fn_cxx_try_compile "$LINENO"; then :
  30186. glibcxx_cv_func_sincos_use=yes
  30187. else
  30188. glibcxx_cv_func_sincos_use=no
  30189. fi
  30190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30191. ac_ext=c
  30192. ac_cpp='$CPP $CPPFLAGS'
  30193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30196. fi
  30197. fi
  30198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  30199. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  30200. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  30201. for ac_func in sincos
  30202. do :
  30203. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  30204. if test "x$ac_cv_func_sincos" = xyes; then :
  30205. cat >>confdefs.h <<_ACEOF
  30206. #define HAVE_SINCOS 1
  30207. _ACEOF
  30208. fi
  30209. done
  30210. else
  30211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  30212. $as_echo_n "checking for _sincos declaration... " >&6; }
  30213. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  30214. if ${glibcxx_cv_func__sincos_use+:} false; then :
  30215. $as_echo_n "(cached) " >&6
  30216. else
  30217. ac_ext=cpp
  30218. ac_cpp='$CXXCPP $CPPFLAGS'
  30219. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30220. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30221. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30223. /* end confdefs.h. */
  30224. #include <math.h>
  30225. int
  30226. main ()
  30227. {
  30228. _sincos(0, 0, 0);
  30229. ;
  30230. return 0;
  30231. }
  30232. _ACEOF
  30233. if ac_fn_cxx_try_compile "$LINENO"; then :
  30234. glibcxx_cv_func__sincos_use=yes
  30235. else
  30236. glibcxx_cv_func__sincos_use=no
  30237. fi
  30238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30239. ac_ext=c
  30240. ac_cpp='$CPP $CPPFLAGS'
  30241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30244. fi
  30245. fi
  30246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  30247. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  30248. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  30249. for ac_func in _sincos
  30250. do :
  30251. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  30252. if test "x$ac_cv_func__sincos" = xyes; then :
  30253. cat >>confdefs.h <<_ACEOF
  30254. #define HAVE__SINCOS 1
  30255. _ACEOF
  30256. fi
  30257. done
  30258. fi
  30259. fi
  30260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  30261. $as_echo_n "checking for fpclass declaration... " >&6; }
  30262. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  30263. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  30264. $as_echo_n "(cached) " >&6
  30265. else
  30266. ac_ext=cpp
  30267. ac_cpp='$CXXCPP $CPPFLAGS'
  30268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30272. /* end confdefs.h. */
  30273. #include <math.h>
  30274. #ifdef HAVE_IEEEFP_H
  30275. #include <ieeefp.h>
  30276. #endif
  30277. int
  30278. main ()
  30279. {
  30280. fpclass(0);
  30281. ;
  30282. return 0;
  30283. }
  30284. _ACEOF
  30285. if ac_fn_cxx_try_compile "$LINENO"; then :
  30286. glibcxx_cv_func_fpclass_use=yes
  30287. else
  30288. glibcxx_cv_func_fpclass_use=no
  30289. fi
  30290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30291. ac_ext=c
  30292. ac_cpp='$CPP $CPPFLAGS'
  30293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30296. fi
  30297. fi
  30298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  30299. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  30300. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  30301. for ac_func in fpclass
  30302. do :
  30303. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  30304. if test "x$ac_cv_func_fpclass" = xyes; then :
  30305. cat >>confdefs.h <<_ACEOF
  30306. #define HAVE_FPCLASS 1
  30307. _ACEOF
  30308. fi
  30309. done
  30310. else
  30311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  30312. $as_echo_n "checking for _fpclass declaration... " >&6; }
  30313. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  30314. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  30315. $as_echo_n "(cached) " >&6
  30316. else
  30317. ac_ext=cpp
  30318. ac_cpp='$CXXCPP $CPPFLAGS'
  30319. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30320. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30321. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30323. /* end confdefs.h. */
  30324. #include <math.h>
  30325. #ifdef HAVE_IEEEFP_H
  30326. #include <ieeefp.h>
  30327. #endif
  30328. int
  30329. main ()
  30330. {
  30331. _fpclass(0);
  30332. ;
  30333. return 0;
  30334. }
  30335. _ACEOF
  30336. if ac_fn_cxx_try_compile "$LINENO"; then :
  30337. glibcxx_cv_func__fpclass_use=yes
  30338. else
  30339. glibcxx_cv_func__fpclass_use=no
  30340. fi
  30341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30342. ac_ext=c
  30343. ac_cpp='$CPP $CPPFLAGS'
  30344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30347. fi
  30348. fi
  30349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  30350. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  30351. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  30352. for ac_func in _fpclass
  30353. do :
  30354. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  30355. if test "x$ac_cv_func__fpclass" = xyes; then :
  30356. cat >>confdefs.h <<_ACEOF
  30357. #define HAVE__FPCLASS 1
  30358. _ACEOF
  30359. fi
  30360. done
  30361. fi
  30362. fi
  30363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  30364. $as_echo_n "checking for qfpclass declaration... " >&6; }
  30365. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  30366. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  30367. $as_echo_n "(cached) " >&6
  30368. else
  30369. ac_ext=cpp
  30370. ac_cpp='$CXXCPP $CPPFLAGS'
  30371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30375. /* end confdefs.h. */
  30376. #include <math.h>
  30377. #ifdef HAVE_IEEEFP_H
  30378. #include <ieeefp.h>
  30379. #endif
  30380. int
  30381. main ()
  30382. {
  30383. qfpclass(0);
  30384. ;
  30385. return 0;
  30386. }
  30387. _ACEOF
  30388. if ac_fn_cxx_try_compile "$LINENO"; then :
  30389. glibcxx_cv_func_qfpclass_use=yes
  30390. else
  30391. glibcxx_cv_func_qfpclass_use=no
  30392. fi
  30393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30394. ac_ext=c
  30395. ac_cpp='$CPP $CPPFLAGS'
  30396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30399. fi
  30400. fi
  30401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  30402. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  30403. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  30404. for ac_func in qfpclass
  30405. do :
  30406. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  30407. if test "x$ac_cv_func_qfpclass" = xyes; then :
  30408. cat >>confdefs.h <<_ACEOF
  30409. #define HAVE_QFPCLASS 1
  30410. _ACEOF
  30411. fi
  30412. done
  30413. else
  30414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  30415. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  30416. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  30417. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  30418. $as_echo_n "(cached) " >&6
  30419. else
  30420. ac_ext=cpp
  30421. ac_cpp='$CXXCPP $CPPFLAGS'
  30422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30426. /* end confdefs.h. */
  30427. #include <math.h>
  30428. #ifdef HAVE_IEEEFP_H
  30429. #include <ieeefp.h>
  30430. #endif
  30431. int
  30432. main ()
  30433. {
  30434. _qfpclass(0);
  30435. ;
  30436. return 0;
  30437. }
  30438. _ACEOF
  30439. if ac_fn_cxx_try_compile "$LINENO"; then :
  30440. glibcxx_cv_func__qfpclass_use=yes
  30441. else
  30442. glibcxx_cv_func__qfpclass_use=no
  30443. fi
  30444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30445. ac_ext=c
  30446. ac_cpp='$CPP $CPPFLAGS'
  30447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30450. fi
  30451. fi
  30452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  30453. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  30454. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  30455. for ac_func in _qfpclass
  30456. do :
  30457. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  30458. if test "x$ac_cv_func__qfpclass" = xyes; then :
  30459. cat >>confdefs.h <<_ACEOF
  30460. #define HAVE__QFPCLASS 1
  30461. _ACEOF
  30462. fi
  30463. done
  30464. fi
  30465. fi
  30466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  30467. $as_echo_n "checking for hypot declaration... " >&6; }
  30468. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  30469. if ${glibcxx_cv_func_hypot_use+:} false; then :
  30470. $as_echo_n "(cached) " >&6
  30471. else
  30472. ac_ext=cpp
  30473. ac_cpp='$CXXCPP $CPPFLAGS'
  30474. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30475. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30476. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30478. /* end confdefs.h. */
  30479. #include <math.h>
  30480. int
  30481. main ()
  30482. {
  30483. hypot(0, 0);
  30484. ;
  30485. return 0;
  30486. }
  30487. _ACEOF
  30488. if ac_fn_cxx_try_compile "$LINENO"; then :
  30489. glibcxx_cv_func_hypot_use=yes
  30490. else
  30491. glibcxx_cv_func_hypot_use=no
  30492. fi
  30493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30494. ac_ext=c
  30495. ac_cpp='$CPP $CPPFLAGS'
  30496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30499. fi
  30500. fi
  30501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  30502. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  30503. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  30504. for ac_func in hypot
  30505. do :
  30506. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  30507. if test "x$ac_cv_func_hypot" = xyes; then :
  30508. cat >>confdefs.h <<_ACEOF
  30509. #define HAVE_HYPOT 1
  30510. _ACEOF
  30511. fi
  30512. done
  30513. else
  30514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  30515. $as_echo_n "checking for _hypot declaration... " >&6; }
  30516. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  30517. if ${glibcxx_cv_func__hypot_use+:} false; then :
  30518. $as_echo_n "(cached) " >&6
  30519. else
  30520. ac_ext=cpp
  30521. ac_cpp='$CXXCPP $CPPFLAGS'
  30522. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30523. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30524. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30526. /* end confdefs.h. */
  30527. #include <math.h>
  30528. int
  30529. main ()
  30530. {
  30531. _hypot(0, 0);
  30532. ;
  30533. return 0;
  30534. }
  30535. _ACEOF
  30536. if ac_fn_cxx_try_compile "$LINENO"; then :
  30537. glibcxx_cv_func__hypot_use=yes
  30538. else
  30539. glibcxx_cv_func__hypot_use=no
  30540. fi
  30541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30542. ac_ext=c
  30543. ac_cpp='$CPP $CPPFLAGS'
  30544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30547. fi
  30548. fi
  30549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  30550. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  30551. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  30552. for ac_func in _hypot
  30553. do :
  30554. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  30555. if test "x$ac_cv_func__hypot" = xyes; then :
  30556. cat >>confdefs.h <<_ACEOF
  30557. #define HAVE__HYPOT 1
  30558. _ACEOF
  30559. fi
  30560. done
  30561. fi
  30562. fi
  30563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  30564. $as_echo_n "checking for float trig functions... " >&6; }
  30565. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  30566. $as_echo_n "(cached) " >&6
  30567. else
  30568. ac_ext=cpp
  30569. ac_cpp='$CXXCPP $CPPFLAGS'
  30570. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30571. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30572. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30574. /* end confdefs.h. */
  30575. #include <math.h>
  30576. int
  30577. main ()
  30578. {
  30579. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  30580. ;
  30581. return 0;
  30582. }
  30583. _ACEOF
  30584. if ac_fn_cxx_try_compile "$LINENO"; then :
  30585. glibcxx_cv_func_float_trig_use=yes
  30586. else
  30587. glibcxx_cv_func_float_trig_use=no
  30588. fi
  30589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30590. ac_ext=c
  30591. ac_cpp='$CPP $CPPFLAGS'
  30592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30595. fi
  30596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  30597. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  30598. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  30599. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  30600. do :
  30601. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30602. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  30603. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  30604. cat >>confdefs.h <<_ACEOF
  30605. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30606. _ACEOF
  30607. fi
  30608. done
  30609. else
  30610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  30611. $as_echo_n "checking for _float trig functions... " >&6; }
  30612. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  30613. $as_echo_n "(cached) " >&6
  30614. else
  30615. ac_ext=cpp
  30616. ac_cpp='$CXXCPP $CPPFLAGS'
  30617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30621. /* end confdefs.h. */
  30622. #include <math.h>
  30623. int
  30624. main ()
  30625. {
  30626. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  30627. ;
  30628. return 0;
  30629. }
  30630. _ACEOF
  30631. if ac_fn_cxx_try_compile "$LINENO"; then :
  30632. glibcxx_cv_func__float_trig_use=yes
  30633. else
  30634. glibcxx_cv_func__float_trig_use=no
  30635. fi
  30636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30637. ac_ext=c
  30638. ac_cpp='$CPP $CPPFLAGS'
  30639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30642. fi
  30643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  30644. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  30645. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  30646. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  30647. do :
  30648. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30649. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  30650. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  30651. cat >>confdefs.h <<_ACEOF
  30652. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30653. _ACEOF
  30654. fi
  30655. done
  30656. fi
  30657. fi
  30658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  30659. $as_echo_n "checking for float round functions... " >&6; }
  30660. if ${glibcxx_cv_func_float_round_use+:} false; then :
  30661. $as_echo_n "(cached) " >&6
  30662. else
  30663. ac_ext=cpp
  30664. ac_cpp='$CXXCPP $CPPFLAGS'
  30665. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30666. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30667. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30669. /* end confdefs.h. */
  30670. #include <math.h>
  30671. int
  30672. main ()
  30673. {
  30674. ceilf (0); floorf (0);
  30675. ;
  30676. return 0;
  30677. }
  30678. _ACEOF
  30679. if ac_fn_cxx_try_compile "$LINENO"; then :
  30680. glibcxx_cv_func_float_round_use=yes
  30681. else
  30682. glibcxx_cv_func_float_round_use=no
  30683. fi
  30684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30685. ac_ext=c
  30686. ac_cpp='$CPP $CPPFLAGS'
  30687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30690. fi
  30691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  30692. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  30693. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  30694. for ac_func in ceilf floorf
  30695. do :
  30696. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30697. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  30698. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  30699. cat >>confdefs.h <<_ACEOF
  30700. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30701. _ACEOF
  30702. fi
  30703. done
  30704. else
  30705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  30706. $as_echo_n "checking for _float round functions... " >&6; }
  30707. if ${glibcxx_cv_func__float_round_use+:} false; then :
  30708. $as_echo_n "(cached) " >&6
  30709. else
  30710. ac_ext=cpp
  30711. ac_cpp='$CXXCPP $CPPFLAGS'
  30712. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30713. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30714. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30716. /* end confdefs.h. */
  30717. #include <math.h>
  30718. int
  30719. main ()
  30720. {
  30721. _ceilf (0); _floorf (0);
  30722. ;
  30723. return 0;
  30724. }
  30725. _ACEOF
  30726. if ac_fn_cxx_try_compile "$LINENO"; then :
  30727. glibcxx_cv_func__float_round_use=yes
  30728. else
  30729. glibcxx_cv_func__float_round_use=no
  30730. fi
  30731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30732. ac_ext=c
  30733. ac_cpp='$CPP $CPPFLAGS'
  30734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30737. fi
  30738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  30739. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  30740. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  30741. for ac_func in _ceilf _floorf
  30742. do :
  30743. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  30744. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  30745. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  30746. cat >>confdefs.h <<_ACEOF
  30747. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  30748. _ACEOF
  30749. fi
  30750. done
  30751. fi
  30752. fi
  30753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  30754. $as_echo_n "checking for expf declaration... " >&6; }
  30755. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  30756. if ${glibcxx_cv_func_expf_use+:} false; then :
  30757. $as_echo_n "(cached) " >&6
  30758. else
  30759. ac_ext=cpp
  30760. ac_cpp='$CXXCPP $CPPFLAGS'
  30761. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30762. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30763. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30765. /* end confdefs.h. */
  30766. #include <math.h>
  30767. #ifdef HAVE_IEEEFP_H
  30768. #include <ieeefp.h>
  30769. #endif
  30770. int
  30771. main ()
  30772. {
  30773. expf(0);
  30774. ;
  30775. return 0;
  30776. }
  30777. _ACEOF
  30778. if ac_fn_cxx_try_compile "$LINENO"; then :
  30779. glibcxx_cv_func_expf_use=yes
  30780. else
  30781. glibcxx_cv_func_expf_use=no
  30782. fi
  30783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30784. ac_ext=c
  30785. ac_cpp='$CPP $CPPFLAGS'
  30786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30789. fi
  30790. fi
  30791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  30792. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  30793. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  30794. for ac_func in expf
  30795. do :
  30796. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  30797. if test "x$ac_cv_func_expf" = xyes; then :
  30798. cat >>confdefs.h <<_ACEOF
  30799. #define HAVE_EXPF 1
  30800. _ACEOF
  30801. fi
  30802. done
  30803. else
  30804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  30805. $as_echo_n "checking for _expf declaration... " >&6; }
  30806. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  30807. if ${glibcxx_cv_func__expf_use+:} false; then :
  30808. $as_echo_n "(cached) " >&6
  30809. else
  30810. ac_ext=cpp
  30811. ac_cpp='$CXXCPP $CPPFLAGS'
  30812. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30813. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30814. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30816. /* end confdefs.h. */
  30817. #include <math.h>
  30818. #ifdef HAVE_IEEEFP_H
  30819. #include <ieeefp.h>
  30820. #endif
  30821. int
  30822. main ()
  30823. {
  30824. _expf(0);
  30825. ;
  30826. return 0;
  30827. }
  30828. _ACEOF
  30829. if ac_fn_cxx_try_compile "$LINENO"; then :
  30830. glibcxx_cv_func__expf_use=yes
  30831. else
  30832. glibcxx_cv_func__expf_use=no
  30833. fi
  30834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30835. ac_ext=c
  30836. ac_cpp='$CPP $CPPFLAGS'
  30837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30840. fi
  30841. fi
  30842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  30843. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  30844. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  30845. for ac_func in _expf
  30846. do :
  30847. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  30848. if test "x$ac_cv_func__expf" = xyes; then :
  30849. cat >>confdefs.h <<_ACEOF
  30850. #define HAVE__EXPF 1
  30851. _ACEOF
  30852. fi
  30853. done
  30854. fi
  30855. fi
  30856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  30857. $as_echo_n "checking for isnanf declaration... " >&6; }
  30858. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  30859. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  30860. $as_echo_n "(cached) " >&6
  30861. else
  30862. ac_ext=cpp
  30863. ac_cpp='$CXXCPP $CPPFLAGS'
  30864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30868. /* end confdefs.h. */
  30869. #include <math.h>
  30870. #ifdef HAVE_IEEEFP_H
  30871. #include <ieeefp.h>
  30872. #endif
  30873. int
  30874. main ()
  30875. {
  30876. isnanf(0);
  30877. ;
  30878. return 0;
  30879. }
  30880. _ACEOF
  30881. if ac_fn_cxx_try_compile "$LINENO"; then :
  30882. glibcxx_cv_func_isnanf_use=yes
  30883. else
  30884. glibcxx_cv_func_isnanf_use=no
  30885. fi
  30886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30887. ac_ext=c
  30888. ac_cpp='$CPP $CPPFLAGS'
  30889. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30890. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30891. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30892. fi
  30893. fi
  30894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  30895. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  30896. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  30897. for ac_func in isnanf
  30898. do :
  30899. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  30900. if test "x$ac_cv_func_isnanf" = xyes; then :
  30901. cat >>confdefs.h <<_ACEOF
  30902. #define HAVE_ISNANF 1
  30903. _ACEOF
  30904. fi
  30905. done
  30906. else
  30907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  30908. $as_echo_n "checking for _isnanf declaration... " >&6; }
  30909. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  30910. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  30911. $as_echo_n "(cached) " >&6
  30912. else
  30913. ac_ext=cpp
  30914. ac_cpp='$CXXCPP $CPPFLAGS'
  30915. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30916. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30917. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30919. /* end confdefs.h. */
  30920. #include <math.h>
  30921. #ifdef HAVE_IEEEFP_H
  30922. #include <ieeefp.h>
  30923. #endif
  30924. int
  30925. main ()
  30926. {
  30927. _isnanf(0);
  30928. ;
  30929. return 0;
  30930. }
  30931. _ACEOF
  30932. if ac_fn_cxx_try_compile "$LINENO"; then :
  30933. glibcxx_cv_func__isnanf_use=yes
  30934. else
  30935. glibcxx_cv_func__isnanf_use=no
  30936. fi
  30937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30938. ac_ext=c
  30939. ac_cpp='$CPP $CPPFLAGS'
  30940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30943. fi
  30944. fi
  30945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  30946. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  30947. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  30948. for ac_func in _isnanf
  30949. do :
  30950. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  30951. if test "x$ac_cv_func__isnanf" = xyes; then :
  30952. cat >>confdefs.h <<_ACEOF
  30953. #define HAVE__ISNANF 1
  30954. _ACEOF
  30955. fi
  30956. done
  30957. fi
  30958. fi
  30959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  30960. $as_echo_n "checking for isinff declaration... " >&6; }
  30961. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  30962. if ${glibcxx_cv_func_isinff_use+:} false; then :
  30963. $as_echo_n "(cached) " >&6
  30964. else
  30965. ac_ext=cpp
  30966. ac_cpp='$CXXCPP $CPPFLAGS'
  30967. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30968. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30969. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  30970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30971. /* end confdefs.h. */
  30972. #include <math.h>
  30973. #ifdef HAVE_IEEEFP_H
  30974. #include <ieeefp.h>
  30975. #endif
  30976. int
  30977. main ()
  30978. {
  30979. isinff(0);
  30980. ;
  30981. return 0;
  30982. }
  30983. _ACEOF
  30984. if ac_fn_cxx_try_compile "$LINENO"; then :
  30985. glibcxx_cv_func_isinff_use=yes
  30986. else
  30987. glibcxx_cv_func_isinff_use=no
  30988. fi
  30989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30990. ac_ext=c
  30991. ac_cpp='$CPP $CPPFLAGS'
  30992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30995. fi
  30996. fi
  30997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  30998. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  30999. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  31000. for ac_func in isinff
  31001. do :
  31002. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  31003. if test "x$ac_cv_func_isinff" = xyes; then :
  31004. cat >>confdefs.h <<_ACEOF
  31005. #define HAVE_ISINFF 1
  31006. _ACEOF
  31007. fi
  31008. done
  31009. else
  31010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  31011. $as_echo_n "checking for _isinff declaration... " >&6; }
  31012. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  31013. if ${glibcxx_cv_func__isinff_use+:} false; then :
  31014. $as_echo_n "(cached) " >&6
  31015. else
  31016. ac_ext=cpp
  31017. ac_cpp='$CXXCPP $CPPFLAGS'
  31018. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31019. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31020. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31022. /* end confdefs.h. */
  31023. #include <math.h>
  31024. #ifdef HAVE_IEEEFP_H
  31025. #include <ieeefp.h>
  31026. #endif
  31027. int
  31028. main ()
  31029. {
  31030. _isinff(0);
  31031. ;
  31032. return 0;
  31033. }
  31034. _ACEOF
  31035. if ac_fn_cxx_try_compile "$LINENO"; then :
  31036. glibcxx_cv_func__isinff_use=yes
  31037. else
  31038. glibcxx_cv_func__isinff_use=no
  31039. fi
  31040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31041. ac_ext=c
  31042. ac_cpp='$CPP $CPPFLAGS'
  31043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31046. fi
  31047. fi
  31048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  31049. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  31050. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  31051. for ac_func in _isinff
  31052. do :
  31053. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  31054. if test "x$ac_cv_func__isinff" = xyes; then :
  31055. cat >>confdefs.h <<_ACEOF
  31056. #define HAVE__ISINFF 1
  31057. _ACEOF
  31058. fi
  31059. done
  31060. fi
  31061. fi
  31062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  31063. $as_echo_n "checking for atan2f declaration... " >&6; }
  31064. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  31065. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  31066. $as_echo_n "(cached) " >&6
  31067. else
  31068. ac_ext=cpp
  31069. ac_cpp='$CXXCPP $CPPFLAGS'
  31070. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31071. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31072. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31074. /* end confdefs.h. */
  31075. #include <math.h>
  31076. int
  31077. main ()
  31078. {
  31079. atan2f(0, 0);
  31080. ;
  31081. return 0;
  31082. }
  31083. _ACEOF
  31084. if ac_fn_cxx_try_compile "$LINENO"; then :
  31085. glibcxx_cv_func_atan2f_use=yes
  31086. else
  31087. glibcxx_cv_func_atan2f_use=no
  31088. fi
  31089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31090. ac_ext=c
  31091. ac_cpp='$CPP $CPPFLAGS'
  31092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31095. fi
  31096. fi
  31097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  31098. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  31099. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  31100. for ac_func in atan2f
  31101. do :
  31102. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  31103. if test "x$ac_cv_func_atan2f" = xyes; then :
  31104. cat >>confdefs.h <<_ACEOF
  31105. #define HAVE_ATAN2F 1
  31106. _ACEOF
  31107. fi
  31108. done
  31109. else
  31110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  31111. $as_echo_n "checking for _atan2f declaration... " >&6; }
  31112. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  31113. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  31114. $as_echo_n "(cached) " >&6
  31115. else
  31116. ac_ext=cpp
  31117. ac_cpp='$CXXCPP $CPPFLAGS'
  31118. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31119. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31120. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31122. /* end confdefs.h. */
  31123. #include <math.h>
  31124. int
  31125. main ()
  31126. {
  31127. _atan2f(0, 0);
  31128. ;
  31129. return 0;
  31130. }
  31131. _ACEOF
  31132. if ac_fn_cxx_try_compile "$LINENO"; then :
  31133. glibcxx_cv_func__atan2f_use=yes
  31134. else
  31135. glibcxx_cv_func__atan2f_use=no
  31136. fi
  31137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31138. ac_ext=c
  31139. ac_cpp='$CPP $CPPFLAGS'
  31140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31143. fi
  31144. fi
  31145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  31146. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  31147. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  31148. for ac_func in _atan2f
  31149. do :
  31150. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  31151. if test "x$ac_cv_func__atan2f" = xyes; then :
  31152. cat >>confdefs.h <<_ACEOF
  31153. #define HAVE__ATAN2F 1
  31154. _ACEOF
  31155. fi
  31156. done
  31157. fi
  31158. fi
  31159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  31160. $as_echo_n "checking for fabsf declaration... " >&6; }
  31161. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  31162. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  31163. $as_echo_n "(cached) " >&6
  31164. else
  31165. ac_ext=cpp
  31166. ac_cpp='$CXXCPP $CPPFLAGS'
  31167. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31168. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31169. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31171. /* end confdefs.h. */
  31172. #include <math.h>
  31173. #ifdef HAVE_IEEEFP_H
  31174. #include <ieeefp.h>
  31175. #endif
  31176. int
  31177. main ()
  31178. {
  31179. fabsf(0);
  31180. ;
  31181. return 0;
  31182. }
  31183. _ACEOF
  31184. if ac_fn_cxx_try_compile "$LINENO"; then :
  31185. glibcxx_cv_func_fabsf_use=yes
  31186. else
  31187. glibcxx_cv_func_fabsf_use=no
  31188. fi
  31189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31190. ac_ext=c
  31191. ac_cpp='$CPP $CPPFLAGS'
  31192. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31193. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31194. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31195. fi
  31196. fi
  31197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  31198. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  31199. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  31200. for ac_func in fabsf
  31201. do :
  31202. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  31203. if test "x$ac_cv_func_fabsf" = xyes; then :
  31204. cat >>confdefs.h <<_ACEOF
  31205. #define HAVE_FABSF 1
  31206. _ACEOF
  31207. fi
  31208. done
  31209. else
  31210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  31211. $as_echo_n "checking for _fabsf declaration... " >&6; }
  31212. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  31213. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  31214. $as_echo_n "(cached) " >&6
  31215. else
  31216. ac_ext=cpp
  31217. ac_cpp='$CXXCPP $CPPFLAGS'
  31218. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31219. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31220. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31222. /* end confdefs.h. */
  31223. #include <math.h>
  31224. #ifdef HAVE_IEEEFP_H
  31225. #include <ieeefp.h>
  31226. #endif
  31227. int
  31228. main ()
  31229. {
  31230. _fabsf(0);
  31231. ;
  31232. return 0;
  31233. }
  31234. _ACEOF
  31235. if ac_fn_cxx_try_compile "$LINENO"; then :
  31236. glibcxx_cv_func__fabsf_use=yes
  31237. else
  31238. glibcxx_cv_func__fabsf_use=no
  31239. fi
  31240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31241. ac_ext=c
  31242. ac_cpp='$CPP $CPPFLAGS'
  31243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31246. fi
  31247. fi
  31248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  31249. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  31250. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  31251. for ac_func in _fabsf
  31252. do :
  31253. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  31254. if test "x$ac_cv_func__fabsf" = xyes; then :
  31255. cat >>confdefs.h <<_ACEOF
  31256. #define HAVE__FABSF 1
  31257. _ACEOF
  31258. fi
  31259. done
  31260. fi
  31261. fi
  31262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  31263. $as_echo_n "checking for fmodf declaration... " >&6; }
  31264. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  31265. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  31266. $as_echo_n "(cached) " >&6
  31267. else
  31268. ac_ext=cpp
  31269. ac_cpp='$CXXCPP $CPPFLAGS'
  31270. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31271. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31272. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31274. /* end confdefs.h. */
  31275. #include <math.h>
  31276. int
  31277. main ()
  31278. {
  31279. fmodf(0, 0);
  31280. ;
  31281. return 0;
  31282. }
  31283. _ACEOF
  31284. if ac_fn_cxx_try_compile "$LINENO"; then :
  31285. glibcxx_cv_func_fmodf_use=yes
  31286. else
  31287. glibcxx_cv_func_fmodf_use=no
  31288. fi
  31289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31290. ac_ext=c
  31291. ac_cpp='$CPP $CPPFLAGS'
  31292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31295. fi
  31296. fi
  31297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  31298. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  31299. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  31300. for ac_func in fmodf
  31301. do :
  31302. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  31303. if test "x$ac_cv_func_fmodf" = xyes; then :
  31304. cat >>confdefs.h <<_ACEOF
  31305. #define HAVE_FMODF 1
  31306. _ACEOF
  31307. fi
  31308. done
  31309. else
  31310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  31311. $as_echo_n "checking for _fmodf declaration... " >&6; }
  31312. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  31313. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  31314. $as_echo_n "(cached) " >&6
  31315. else
  31316. ac_ext=cpp
  31317. ac_cpp='$CXXCPP $CPPFLAGS'
  31318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31322. /* end confdefs.h. */
  31323. #include <math.h>
  31324. int
  31325. main ()
  31326. {
  31327. _fmodf(0, 0);
  31328. ;
  31329. return 0;
  31330. }
  31331. _ACEOF
  31332. if ac_fn_cxx_try_compile "$LINENO"; then :
  31333. glibcxx_cv_func__fmodf_use=yes
  31334. else
  31335. glibcxx_cv_func__fmodf_use=no
  31336. fi
  31337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31338. ac_ext=c
  31339. ac_cpp='$CPP $CPPFLAGS'
  31340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31343. fi
  31344. fi
  31345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  31346. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  31347. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  31348. for ac_func in _fmodf
  31349. do :
  31350. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  31351. if test "x$ac_cv_func__fmodf" = xyes; then :
  31352. cat >>confdefs.h <<_ACEOF
  31353. #define HAVE__FMODF 1
  31354. _ACEOF
  31355. fi
  31356. done
  31357. fi
  31358. fi
  31359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  31360. $as_echo_n "checking for frexpf declaration... " >&6; }
  31361. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  31362. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  31363. $as_echo_n "(cached) " >&6
  31364. else
  31365. ac_ext=cpp
  31366. ac_cpp='$CXXCPP $CPPFLAGS'
  31367. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31368. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31369. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31371. /* end confdefs.h. */
  31372. #include <math.h>
  31373. int
  31374. main ()
  31375. {
  31376. frexpf(0, 0);
  31377. ;
  31378. return 0;
  31379. }
  31380. _ACEOF
  31381. if ac_fn_cxx_try_compile "$LINENO"; then :
  31382. glibcxx_cv_func_frexpf_use=yes
  31383. else
  31384. glibcxx_cv_func_frexpf_use=no
  31385. fi
  31386. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31387. ac_ext=c
  31388. ac_cpp='$CPP $CPPFLAGS'
  31389. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31390. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31391. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31392. fi
  31393. fi
  31394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  31395. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  31396. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  31397. for ac_func in frexpf
  31398. do :
  31399. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  31400. if test "x$ac_cv_func_frexpf" = xyes; then :
  31401. cat >>confdefs.h <<_ACEOF
  31402. #define HAVE_FREXPF 1
  31403. _ACEOF
  31404. fi
  31405. done
  31406. else
  31407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  31408. $as_echo_n "checking for _frexpf declaration... " >&6; }
  31409. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  31410. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  31411. $as_echo_n "(cached) " >&6
  31412. else
  31413. ac_ext=cpp
  31414. ac_cpp='$CXXCPP $CPPFLAGS'
  31415. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31416. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31417. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31419. /* end confdefs.h. */
  31420. #include <math.h>
  31421. int
  31422. main ()
  31423. {
  31424. _frexpf(0, 0);
  31425. ;
  31426. return 0;
  31427. }
  31428. _ACEOF
  31429. if ac_fn_cxx_try_compile "$LINENO"; then :
  31430. glibcxx_cv_func__frexpf_use=yes
  31431. else
  31432. glibcxx_cv_func__frexpf_use=no
  31433. fi
  31434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31435. ac_ext=c
  31436. ac_cpp='$CPP $CPPFLAGS'
  31437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31440. fi
  31441. fi
  31442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  31443. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  31444. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  31445. for ac_func in _frexpf
  31446. do :
  31447. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  31448. if test "x$ac_cv_func__frexpf" = xyes; then :
  31449. cat >>confdefs.h <<_ACEOF
  31450. #define HAVE__FREXPF 1
  31451. _ACEOF
  31452. fi
  31453. done
  31454. fi
  31455. fi
  31456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  31457. $as_echo_n "checking for hypotf declaration... " >&6; }
  31458. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  31459. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  31460. $as_echo_n "(cached) " >&6
  31461. else
  31462. ac_ext=cpp
  31463. ac_cpp='$CXXCPP $CPPFLAGS'
  31464. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31465. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31466. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31468. /* end confdefs.h. */
  31469. #include <math.h>
  31470. int
  31471. main ()
  31472. {
  31473. hypotf(0, 0);
  31474. ;
  31475. return 0;
  31476. }
  31477. _ACEOF
  31478. if ac_fn_cxx_try_compile "$LINENO"; then :
  31479. glibcxx_cv_func_hypotf_use=yes
  31480. else
  31481. glibcxx_cv_func_hypotf_use=no
  31482. fi
  31483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31484. ac_ext=c
  31485. ac_cpp='$CPP $CPPFLAGS'
  31486. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31487. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31488. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31489. fi
  31490. fi
  31491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  31492. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  31493. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  31494. for ac_func in hypotf
  31495. do :
  31496. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  31497. if test "x$ac_cv_func_hypotf" = xyes; then :
  31498. cat >>confdefs.h <<_ACEOF
  31499. #define HAVE_HYPOTF 1
  31500. _ACEOF
  31501. fi
  31502. done
  31503. else
  31504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  31505. $as_echo_n "checking for _hypotf declaration... " >&6; }
  31506. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  31507. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  31508. $as_echo_n "(cached) " >&6
  31509. else
  31510. ac_ext=cpp
  31511. ac_cpp='$CXXCPP $CPPFLAGS'
  31512. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31513. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31514. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31516. /* end confdefs.h. */
  31517. #include <math.h>
  31518. int
  31519. main ()
  31520. {
  31521. _hypotf(0, 0);
  31522. ;
  31523. return 0;
  31524. }
  31525. _ACEOF
  31526. if ac_fn_cxx_try_compile "$LINENO"; then :
  31527. glibcxx_cv_func__hypotf_use=yes
  31528. else
  31529. glibcxx_cv_func__hypotf_use=no
  31530. fi
  31531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31532. ac_ext=c
  31533. ac_cpp='$CPP $CPPFLAGS'
  31534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31537. fi
  31538. fi
  31539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  31540. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  31541. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  31542. for ac_func in _hypotf
  31543. do :
  31544. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  31545. if test "x$ac_cv_func__hypotf" = xyes; then :
  31546. cat >>confdefs.h <<_ACEOF
  31547. #define HAVE__HYPOTF 1
  31548. _ACEOF
  31549. fi
  31550. done
  31551. fi
  31552. fi
  31553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  31554. $as_echo_n "checking for ldexpf declaration... " >&6; }
  31555. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  31556. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  31557. $as_echo_n "(cached) " >&6
  31558. else
  31559. ac_ext=cpp
  31560. ac_cpp='$CXXCPP $CPPFLAGS'
  31561. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31562. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31563. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31565. /* end confdefs.h. */
  31566. #include <math.h>
  31567. int
  31568. main ()
  31569. {
  31570. ldexpf(0, 0);
  31571. ;
  31572. return 0;
  31573. }
  31574. _ACEOF
  31575. if ac_fn_cxx_try_compile "$LINENO"; then :
  31576. glibcxx_cv_func_ldexpf_use=yes
  31577. else
  31578. glibcxx_cv_func_ldexpf_use=no
  31579. fi
  31580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31581. ac_ext=c
  31582. ac_cpp='$CPP $CPPFLAGS'
  31583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31586. fi
  31587. fi
  31588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  31589. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  31590. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  31591. for ac_func in ldexpf
  31592. do :
  31593. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  31594. if test "x$ac_cv_func_ldexpf" = xyes; then :
  31595. cat >>confdefs.h <<_ACEOF
  31596. #define HAVE_LDEXPF 1
  31597. _ACEOF
  31598. fi
  31599. done
  31600. else
  31601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  31602. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  31603. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  31604. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  31605. $as_echo_n "(cached) " >&6
  31606. else
  31607. ac_ext=cpp
  31608. ac_cpp='$CXXCPP $CPPFLAGS'
  31609. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31610. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31611. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31613. /* end confdefs.h. */
  31614. #include <math.h>
  31615. int
  31616. main ()
  31617. {
  31618. _ldexpf(0, 0);
  31619. ;
  31620. return 0;
  31621. }
  31622. _ACEOF
  31623. if ac_fn_cxx_try_compile "$LINENO"; then :
  31624. glibcxx_cv_func__ldexpf_use=yes
  31625. else
  31626. glibcxx_cv_func__ldexpf_use=no
  31627. fi
  31628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31629. ac_ext=c
  31630. ac_cpp='$CPP $CPPFLAGS'
  31631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31634. fi
  31635. fi
  31636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  31637. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  31638. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  31639. for ac_func in _ldexpf
  31640. do :
  31641. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  31642. if test "x$ac_cv_func__ldexpf" = xyes; then :
  31643. cat >>confdefs.h <<_ACEOF
  31644. #define HAVE__LDEXPF 1
  31645. _ACEOF
  31646. fi
  31647. done
  31648. fi
  31649. fi
  31650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  31651. $as_echo_n "checking for logf declaration... " >&6; }
  31652. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  31653. if ${glibcxx_cv_func_logf_use+:} false; then :
  31654. $as_echo_n "(cached) " >&6
  31655. else
  31656. ac_ext=cpp
  31657. ac_cpp='$CXXCPP $CPPFLAGS'
  31658. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31659. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31660. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31662. /* end confdefs.h. */
  31663. #include <math.h>
  31664. #ifdef HAVE_IEEEFP_H
  31665. #include <ieeefp.h>
  31666. #endif
  31667. int
  31668. main ()
  31669. {
  31670. logf(0);
  31671. ;
  31672. return 0;
  31673. }
  31674. _ACEOF
  31675. if ac_fn_cxx_try_compile "$LINENO"; then :
  31676. glibcxx_cv_func_logf_use=yes
  31677. else
  31678. glibcxx_cv_func_logf_use=no
  31679. fi
  31680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31681. ac_ext=c
  31682. ac_cpp='$CPP $CPPFLAGS'
  31683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31686. fi
  31687. fi
  31688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  31689. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  31690. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  31691. for ac_func in logf
  31692. do :
  31693. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  31694. if test "x$ac_cv_func_logf" = xyes; then :
  31695. cat >>confdefs.h <<_ACEOF
  31696. #define HAVE_LOGF 1
  31697. _ACEOF
  31698. fi
  31699. done
  31700. else
  31701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  31702. $as_echo_n "checking for _logf declaration... " >&6; }
  31703. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  31704. if ${glibcxx_cv_func__logf_use+:} false; then :
  31705. $as_echo_n "(cached) " >&6
  31706. else
  31707. ac_ext=cpp
  31708. ac_cpp='$CXXCPP $CPPFLAGS'
  31709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31713. /* end confdefs.h. */
  31714. #include <math.h>
  31715. #ifdef HAVE_IEEEFP_H
  31716. #include <ieeefp.h>
  31717. #endif
  31718. int
  31719. main ()
  31720. {
  31721. _logf(0);
  31722. ;
  31723. return 0;
  31724. }
  31725. _ACEOF
  31726. if ac_fn_cxx_try_compile "$LINENO"; then :
  31727. glibcxx_cv_func__logf_use=yes
  31728. else
  31729. glibcxx_cv_func__logf_use=no
  31730. fi
  31731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31732. ac_ext=c
  31733. ac_cpp='$CPP $CPPFLAGS'
  31734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31737. fi
  31738. fi
  31739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  31740. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  31741. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  31742. for ac_func in _logf
  31743. do :
  31744. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  31745. if test "x$ac_cv_func__logf" = xyes; then :
  31746. cat >>confdefs.h <<_ACEOF
  31747. #define HAVE__LOGF 1
  31748. _ACEOF
  31749. fi
  31750. done
  31751. fi
  31752. fi
  31753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  31754. $as_echo_n "checking for log10f declaration... " >&6; }
  31755. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  31756. if ${glibcxx_cv_func_log10f_use+:} false; then :
  31757. $as_echo_n "(cached) " >&6
  31758. else
  31759. ac_ext=cpp
  31760. ac_cpp='$CXXCPP $CPPFLAGS'
  31761. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31762. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31763. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31765. /* end confdefs.h. */
  31766. #include <math.h>
  31767. #ifdef HAVE_IEEEFP_H
  31768. #include <ieeefp.h>
  31769. #endif
  31770. int
  31771. main ()
  31772. {
  31773. log10f(0);
  31774. ;
  31775. return 0;
  31776. }
  31777. _ACEOF
  31778. if ac_fn_cxx_try_compile "$LINENO"; then :
  31779. glibcxx_cv_func_log10f_use=yes
  31780. else
  31781. glibcxx_cv_func_log10f_use=no
  31782. fi
  31783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31784. ac_ext=c
  31785. ac_cpp='$CPP $CPPFLAGS'
  31786. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31787. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31788. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31789. fi
  31790. fi
  31791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  31792. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  31793. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  31794. for ac_func in log10f
  31795. do :
  31796. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  31797. if test "x$ac_cv_func_log10f" = xyes; then :
  31798. cat >>confdefs.h <<_ACEOF
  31799. #define HAVE_LOG10F 1
  31800. _ACEOF
  31801. fi
  31802. done
  31803. else
  31804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  31805. $as_echo_n "checking for _log10f declaration... " >&6; }
  31806. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  31807. if ${glibcxx_cv_func__log10f_use+:} false; then :
  31808. $as_echo_n "(cached) " >&6
  31809. else
  31810. ac_ext=cpp
  31811. ac_cpp='$CXXCPP $CPPFLAGS'
  31812. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31813. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31814. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31816. /* end confdefs.h. */
  31817. #include <math.h>
  31818. #ifdef HAVE_IEEEFP_H
  31819. #include <ieeefp.h>
  31820. #endif
  31821. int
  31822. main ()
  31823. {
  31824. _log10f(0);
  31825. ;
  31826. return 0;
  31827. }
  31828. _ACEOF
  31829. if ac_fn_cxx_try_compile "$LINENO"; then :
  31830. glibcxx_cv_func__log10f_use=yes
  31831. else
  31832. glibcxx_cv_func__log10f_use=no
  31833. fi
  31834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31835. ac_ext=c
  31836. ac_cpp='$CPP $CPPFLAGS'
  31837. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31838. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31839. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31840. fi
  31841. fi
  31842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  31843. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  31844. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  31845. for ac_func in _log10f
  31846. do :
  31847. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  31848. if test "x$ac_cv_func__log10f" = xyes; then :
  31849. cat >>confdefs.h <<_ACEOF
  31850. #define HAVE__LOG10F 1
  31851. _ACEOF
  31852. fi
  31853. done
  31854. fi
  31855. fi
  31856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  31857. $as_echo_n "checking for modff declaration... " >&6; }
  31858. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  31859. if ${glibcxx_cv_func_modff_use+:} false; then :
  31860. $as_echo_n "(cached) " >&6
  31861. else
  31862. ac_ext=cpp
  31863. ac_cpp='$CXXCPP $CPPFLAGS'
  31864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31868. /* end confdefs.h. */
  31869. #include <math.h>
  31870. int
  31871. main ()
  31872. {
  31873. modff(0, 0);
  31874. ;
  31875. return 0;
  31876. }
  31877. _ACEOF
  31878. if ac_fn_cxx_try_compile "$LINENO"; then :
  31879. glibcxx_cv_func_modff_use=yes
  31880. else
  31881. glibcxx_cv_func_modff_use=no
  31882. fi
  31883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31884. ac_ext=c
  31885. ac_cpp='$CPP $CPPFLAGS'
  31886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31889. fi
  31890. fi
  31891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  31892. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  31893. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  31894. for ac_func in modff
  31895. do :
  31896. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  31897. if test "x$ac_cv_func_modff" = xyes; then :
  31898. cat >>confdefs.h <<_ACEOF
  31899. #define HAVE_MODFF 1
  31900. _ACEOF
  31901. fi
  31902. done
  31903. else
  31904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  31905. $as_echo_n "checking for _modff declaration... " >&6; }
  31906. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  31907. if ${glibcxx_cv_func__modff_use+:} false; then :
  31908. $as_echo_n "(cached) " >&6
  31909. else
  31910. ac_ext=cpp
  31911. ac_cpp='$CXXCPP $CPPFLAGS'
  31912. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31913. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31914. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31916. /* end confdefs.h. */
  31917. #include <math.h>
  31918. int
  31919. main ()
  31920. {
  31921. _modff(0, 0);
  31922. ;
  31923. return 0;
  31924. }
  31925. _ACEOF
  31926. if ac_fn_cxx_try_compile "$LINENO"; then :
  31927. glibcxx_cv_func__modff_use=yes
  31928. else
  31929. glibcxx_cv_func__modff_use=no
  31930. fi
  31931. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31932. ac_ext=c
  31933. ac_cpp='$CPP $CPPFLAGS'
  31934. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31935. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31936. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31937. fi
  31938. fi
  31939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  31940. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  31941. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  31942. for ac_func in _modff
  31943. do :
  31944. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  31945. if test "x$ac_cv_func__modff" = xyes; then :
  31946. cat >>confdefs.h <<_ACEOF
  31947. #define HAVE__MODFF 1
  31948. _ACEOF
  31949. fi
  31950. done
  31951. fi
  31952. fi
  31953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  31954. $as_echo_n "checking for modf declaration... " >&6; }
  31955. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  31956. if ${glibcxx_cv_func_modf_use+:} false; then :
  31957. $as_echo_n "(cached) " >&6
  31958. else
  31959. ac_ext=cpp
  31960. ac_cpp='$CXXCPP $CPPFLAGS'
  31961. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31962. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31963. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31965. /* end confdefs.h. */
  31966. #include <math.h>
  31967. int
  31968. main ()
  31969. {
  31970. modf(0, 0);
  31971. ;
  31972. return 0;
  31973. }
  31974. _ACEOF
  31975. if ac_fn_cxx_try_compile "$LINENO"; then :
  31976. glibcxx_cv_func_modf_use=yes
  31977. else
  31978. glibcxx_cv_func_modf_use=no
  31979. fi
  31980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31981. ac_ext=c
  31982. ac_cpp='$CPP $CPPFLAGS'
  31983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31986. fi
  31987. fi
  31988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  31989. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  31990. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  31991. for ac_func in modf
  31992. do :
  31993. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  31994. if test "x$ac_cv_func_modf" = xyes; then :
  31995. cat >>confdefs.h <<_ACEOF
  31996. #define HAVE_MODF 1
  31997. _ACEOF
  31998. fi
  31999. done
  32000. else
  32001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  32002. $as_echo_n "checking for _modf declaration... " >&6; }
  32003. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  32004. if ${glibcxx_cv_func__modf_use+:} false; then :
  32005. $as_echo_n "(cached) " >&6
  32006. else
  32007. ac_ext=cpp
  32008. ac_cpp='$CXXCPP $CPPFLAGS'
  32009. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32010. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32011. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32013. /* end confdefs.h. */
  32014. #include <math.h>
  32015. int
  32016. main ()
  32017. {
  32018. _modf(0, 0);
  32019. ;
  32020. return 0;
  32021. }
  32022. _ACEOF
  32023. if ac_fn_cxx_try_compile "$LINENO"; then :
  32024. glibcxx_cv_func__modf_use=yes
  32025. else
  32026. glibcxx_cv_func__modf_use=no
  32027. fi
  32028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32029. ac_ext=c
  32030. ac_cpp='$CPP $CPPFLAGS'
  32031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32034. fi
  32035. fi
  32036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  32037. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  32038. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  32039. for ac_func in _modf
  32040. do :
  32041. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  32042. if test "x$ac_cv_func__modf" = xyes; then :
  32043. cat >>confdefs.h <<_ACEOF
  32044. #define HAVE__MODF 1
  32045. _ACEOF
  32046. fi
  32047. done
  32048. fi
  32049. fi
  32050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  32051. $as_echo_n "checking for powf declaration... " >&6; }
  32052. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  32053. if ${glibcxx_cv_func_powf_use+:} false; then :
  32054. $as_echo_n "(cached) " >&6
  32055. else
  32056. ac_ext=cpp
  32057. ac_cpp='$CXXCPP $CPPFLAGS'
  32058. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32059. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32060. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32062. /* end confdefs.h. */
  32063. #include <math.h>
  32064. int
  32065. main ()
  32066. {
  32067. powf(0, 0);
  32068. ;
  32069. return 0;
  32070. }
  32071. _ACEOF
  32072. if ac_fn_cxx_try_compile "$LINENO"; then :
  32073. glibcxx_cv_func_powf_use=yes
  32074. else
  32075. glibcxx_cv_func_powf_use=no
  32076. fi
  32077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32078. ac_ext=c
  32079. ac_cpp='$CPP $CPPFLAGS'
  32080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32083. fi
  32084. fi
  32085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  32086. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  32087. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  32088. for ac_func in powf
  32089. do :
  32090. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  32091. if test "x$ac_cv_func_powf" = xyes; then :
  32092. cat >>confdefs.h <<_ACEOF
  32093. #define HAVE_POWF 1
  32094. _ACEOF
  32095. fi
  32096. done
  32097. else
  32098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  32099. $as_echo_n "checking for _powf declaration... " >&6; }
  32100. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  32101. if ${glibcxx_cv_func__powf_use+:} false; then :
  32102. $as_echo_n "(cached) " >&6
  32103. else
  32104. ac_ext=cpp
  32105. ac_cpp='$CXXCPP $CPPFLAGS'
  32106. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32107. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32108. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32110. /* end confdefs.h. */
  32111. #include <math.h>
  32112. int
  32113. main ()
  32114. {
  32115. _powf(0, 0);
  32116. ;
  32117. return 0;
  32118. }
  32119. _ACEOF
  32120. if ac_fn_cxx_try_compile "$LINENO"; then :
  32121. glibcxx_cv_func__powf_use=yes
  32122. else
  32123. glibcxx_cv_func__powf_use=no
  32124. fi
  32125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32126. ac_ext=c
  32127. ac_cpp='$CPP $CPPFLAGS'
  32128. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32129. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32130. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32131. fi
  32132. fi
  32133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  32134. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  32135. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  32136. for ac_func in _powf
  32137. do :
  32138. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  32139. if test "x$ac_cv_func__powf" = xyes; then :
  32140. cat >>confdefs.h <<_ACEOF
  32141. #define HAVE__POWF 1
  32142. _ACEOF
  32143. fi
  32144. done
  32145. fi
  32146. fi
  32147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  32148. $as_echo_n "checking for sqrtf declaration... " >&6; }
  32149. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  32150. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  32151. $as_echo_n "(cached) " >&6
  32152. else
  32153. ac_ext=cpp
  32154. ac_cpp='$CXXCPP $CPPFLAGS'
  32155. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32156. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32157. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32159. /* end confdefs.h. */
  32160. #include <math.h>
  32161. #ifdef HAVE_IEEEFP_H
  32162. #include <ieeefp.h>
  32163. #endif
  32164. int
  32165. main ()
  32166. {
  32167. sqrtf(0);
  32168. ;
  32169. return 0;
  32170. }
  32171. _ACEOF
  32172. if ac_fn_cxx_try_compile "$LINENO"; then :
  32173. glibcxx_cv_func_sqrtf_use=yes
  32174. else
  32175. glibcxx_cv_func_sqrtf_use=no
  32176. fi
  32177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32178. ac_ext=c
  32179. ac_cpp='$CPP $CPPFLAGS'
  32180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32183. fi
  32184. fi
  32185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  32186. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  32187. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  32188. for ac_func in sqrtf
  32189. do :
  32190. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  32191. if test "x$ac_cv_func_sqrtf" = xyes; then :
  32192. cat >>confdefs.h <<_ACEOF
  32193. #define HAVE_SQRTF 1
  32194. _ACEOF
  32195. fi
  32196. done
  32197. else
  32198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  32199. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  32200. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  32201. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  32202. $as_echo_n "(cached) " >&6
  32203. else
  32204. ac_ext=cpp
  32205. ac_cpp='$CXXCPP $CPPFLAGS'
  32206. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32207. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32208. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32210. /* end confdefs.h. */
  32211. #include <math.h>
  32212. #ifdef HAVE_IEEEFP_H
  32213. #include <ieeefp.h>
  32214. #endif
  32215. int
  32216. main ()
  32217. {
  32218. _sqrtf(0);
  32219. ;
  32220. return 0;
  32221. }
  32222. _ACEOF
  32223. if ac_fn_cxx_try_compile "$LINENO"; then :
  32224. glibcxx_cv_func__sqrtf_use=yes
  32225. else
  32226. glibcxx_cv_func__sqrtf_use=no
  32227. fi
  32228. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32229. ac_ext=c
  32230. ac_cpp='$CPP $CPPFLAGS'
  32231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32234. fi
  32235. fi
  32236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  32237. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  32238. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  32239. for ac_func in _sqrtf
  32240. do :
  32241. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  32242. if test "x$ac_cv_func__sqrtf" = xyes; then :
  32243. cat >>confdefs.h <<_ACEOF
  32244. #define HAVE__SQRTF 1
  32245. _ACEOF
  32246. fi
  32247. done
  32248. fi
  32249. fi
  32250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  32251. $as_echo_n "checking for sincosf declaration... " >&6; }
  32252. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  32253. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  32254. $as_echo_n "(cached) " >&6
  32255. else
  32256. ac_ext=cpp
  32257. ac_cpp='$CXXCPP $CPPFLAGS'
  32258. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32259. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32260. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32262. /* end confdefs.h. */
  32263. #include <math.h>
  32264. int
  32265. main ()
  32266. {
  32267. sincosf(0, 0, 0);
  32268. ;
  32269. return 0;
  32270. }
  32271. _ACEOF
  32272. if ac_fn_cxx_try_compile "$LINENO"; then :
  32273. glibcxx_cv_func_sincosf_use=yes
  32274. else
  32275. glibcxx_cv_func_sincosf_use=no
  32276. fi
  32277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32278. ac_ext=c
  32279. ac_cpp='$CPP $CPPFLAGS'
  32280. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32281. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32282. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32283. fi
  32284. fi
  32285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  32286. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  32287. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  32288. for ac_func in sincosf
  32289. do :
  32290. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  32291. if test "x$ac_cv_func_sincosf" = xyes; then :
  32292. cat >>confdefs.h <<_ACEOF
  32293. #define HAVE_SINCOSF 1
  32294. _ACEOF
  32295. fi
  32296. done
  32297. else
  32298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  32299. $as_echo_n "checking for _sincosf declaration... " >&6; }
  32300. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  32301. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  32302. $as_echo_n "(cached) " >&6
  32303. else
  32304. ac_ext=cpp
  32305. ac_cpp='$CXXCPP $CPPFLAGS'
  32306. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32307. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32308. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32310. /* end confdefs.h. */
  32311. #include <math.h>
  32312. int
  32313. main ()
  32314. {
  32315. _sincosf(0, 0, 0);
  32316. ;
  32317. return 0;
  32318. }
  32319. _ACEOF
  32320. if ac_fn_cxx_try_compile "$LINENO"; then :
  32321. glibcxx_cv_func__sincosf_use=yes
  32322. else
  32323. glibcxx_cv_func__sincosf_use=no
  32324. fi
  32325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32326. ac_ext=c
  32327. ac_cpp='$CPP $CPPFLAGS'
  32328. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32329. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32330. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32331. fi
  32332. fi
  32333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  32334. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  32335. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  32336. for ac_func in _sincosf
  32337. do :
  32338. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  32339. if test "x$ac_cv_func__sincosf" = xyes; then :
  32340. cat >>confdefs.h <<_ACEOF
  32341. #define HAVE__SINCOSF 1
  32342. _ACEOF
  32343. fi
  32344. done
  32345. fi
  32346. fi
  32347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  32348. $as_echo_n "checking for finitef declaration... " >&6; }
  32349. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  32350. if ${glibcxx_cv_func_finitef_use+:} false; then :
  32351. $as_echo_n "(cached) " >&6
  32352. else
  32353. ac_ext=cpp
  32354. ac_cpp='$CXXCPP $CPPFLAGS'
  32355. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32356. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32357. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32359. /* end confdefs.h. */
  32360. #include <math.h>
  32361. #ifdef HAVE_IEEEFP_H
  32362. #include <ieeefp.h>
  32363. #endif
  32364. int
  32365. main ()
  32366. {
  32367. finitef(0);
  32368. ;
  32369. return 0;
  32370. }
  32371. _ACEOF
  32372. if ac_fn_cxx_try_compile "$LINENO"; then :
  32373. glibcxx_cv_func_finitef_use=yes
  32374. else
  32375. glibcxx_cv_func_finitef_use=no
  32376. fi
  32377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32378. ac_ext=c
  32379. ac_cpp='$CPP $CPPFLAGS'
  32380. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32381. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32382. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32383. fi
  32384. fi
  32385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  32386. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  32387. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  32388. for ac_func in finitef
  32389. do :
  32390. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  32391. if test "x$ac_cv_func_finitef" = xyes; then :
  32392. cat >>confdefs.h <<_ACEOF
  32393. #define HAVE_FINITEF 1
  32394. _ACEOF
  32395. fi
  32396. done
  32397. else
  32398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  32399. $as_echo_n "checking for _finitef declaration... " >&6; }
  32400. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  32401. if ${glibcxx_cv_func__finitef_use+:} false; then :
  32402. $as_echo_n "(cached) " >&6
  32403. else
  32404. ac_ext=cpp
  32405. ac_cpp='$CXXCPP $CPPFLAGS'
  32406. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32407. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32408. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32410. /* end confdefs.h. */
  32411. #include <math.h>
  32412. #ifdef HAVE_IEEEFP_H
  32413. #include <ieeefp.h>
  32414. #endif
  32415. int
  32416. main ()
  32417. {
  32418. _finitef(0);
  32419. ;
  32420. return 0;
  32421. }
  32422. _ACEOF
  32423. if ac_fn_cxx_try_compile "$LINENO"; then :
  32424. glibcxx_cv_func__finitef_use=yes
  32425. else
  32426. glibcxx_cv_func__finitef_use=no
  32427. fi
  32428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32429. ac_ext=c
  32430. ac_cpp='$CPP $CPPFLAGS'
  32431. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32432. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32433. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32434. fi
  32435. fi
  32436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  32437. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  32438. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  32439. for ac_func in _finitef
  32440. do :
  32441. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  32442. if test "x$ac_cv_func__finitef" = xyes; then :
  32443. cat >>confdefs.h <<_ACEOF
  32444. #define HAVE__FINITEF 1
  32445. _ACEOF
  32446. fi
  32447. done
  32448. fi
  32449. fi
  32450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  32451. $as_echo_n "checking for long double trig functions... " >&6; }
  32452. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  32453. $as_echo_n "(cached) " >&6
  32454. else
  32455. ac_ext=cpp
  32456. ac_cpp='$CXXCPP $CPPFLAGS'
  32457. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32458. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32459. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32461. /* end confdefs.h. */
  32462. #include <math.h>
  32463. int
  32464. main ()
  32465. {
  32466. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  32467. ;
  32468. return 0;
  32469. }
  32470. _ACEOF
  32471. if ac_fn_cxx_try_compile "$LINENO"; then :
  32472. glibcxx_cv_func_long_double_trig_use=yes
  32473. else
  32474. glibcxx_cv_func_long_double_trig_use=no
  32475. fi
  32476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32477. ac_ext=c
  32478. ac_cpp='$CPP $CPPFLAGS'
  32479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32482. fi
  32483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  32484. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  32485. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  32486. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  32487. do :
  32488. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32489. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  32490. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  32491. cat >>confdefs.h <<_ACEOF
  32492. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32493. _ACEOF
  32494. fi
  32495. done
  32496. else
  32497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  32498. $as_echo_n "checking for _long double trig functions... " >&6; }
  32499. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  32500. $as_echo_n "(cached) " >&6
  32501. else
  32502. ac_ext=cpp
  32503. ac_cpp='$CXXCPP $CPPFLAGS'
  32504. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32505. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32506. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32508. /* end confdefs.h. */
  32509. #include <math.h>
  32510. int
  32511. main ()
  32512. {
  32513. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  32514. ;
  32515. return 0;
  32516. }
  32517. _ACEOF
  32518. if ac_fn_cxx_try_compile "$LINENO"; then :
  32519. glibcxx_cv_func__long_double_trig_use=yes
  32520. else
  32521. glibcxx_cv_func__long_double_trig_use=no
  32522. fi
  32523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32524. ac_ext=c
  32525. ac_cpp='$CPP $CPPFLAGS'
  32526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32529. fi
  32530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  32531. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  32532. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  32533. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  32534. do :
  32535. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32536. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  32537. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  32538. cat >>confdefs.h <<_ACEOF
  32539. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32540. _ACEOF
  32541. fi
  32542. done
  32543. fi
  32544. fi
  32545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  32546. $as_echo_n "checking for long double round functions... " >&6; }
  32547. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  32548. $as_echo_n "(cached) " >&6
  32549. else
  32550. ac_ext=cpp
  32551. ac_cpp='$CXXCPP $CPPFLAGS'
  32552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32556. /* end confdefs.h. */
  32557. #include <math.h>
  32558. int
  32559. main ()
  32560. {
  32561. ceill (0); floorl (0);
  32562. ;
  32563. return 0;
  32564. }
  32565. _ACEOF
  32566. if ac_fn_cxx_try_compile "$LINENO"; then :
  32567. glibcxx_cv_func_long_double_round_use=yes
  32568. else
  32569. glibcxx_cv_func_long_double_round_use=no
  32570. fi
  32571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32572. ac_ext=c
  32573. ac_cpp='$CPP $CPPFLAGS'
  32574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32577. fi
  32578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  32579. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  32580. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  32581. for ac_func in ceill floorl
  32582. do :
  32583. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32584. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  32585. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  32586. cat >>confdefs.h <<_ACEOF
  32587. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32588. _ACEOF
  32589. fi
  32590. done
  32591. else
  32592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  32593. $as_echo_n "checking for _long double round functions... " >&6; }
  32594. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  32595. $as_echo_n "(cached) " >&6
  32596. else
  32597. ac_ext=cpp
  32598. ac_cpp='$CXXCPP $CPPFLAGS'
  32599. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32600. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32601. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32603. /* end confdefs.h. */
  32604. #include <math.h>
  32605. int
  32606. main ()
  32607. {
  32608. _ceill (0); _floorl (0);
  32609. ;
  32610. return 0;
  32611. }
  32612. _ACEOF
  32613. if ac_fn_cxx_try_compile "$LINENO"; then :
  32614. glibcxx_cv_func__long_double_round_use=yes
  32615. else
  32616. glibcxx_cv_func__long_double_round_use=no
  32617. fi
  32618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32619. ac_ext=c
  32620. ac_cpp='$CPP $CPPFLAGS'
  32621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32624. fi
  32625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  32626. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  32627. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  32628. for ac_func in _ceill _floorl
  32629. do :
  32630. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  32631. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  32632. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  32633. cat >>confdefs.h <<_ACEOF
  32634. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  32635. _ACEOF
  32636. fi
  32637. done
  32638. fi
  32639. fi
  32640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  32641. $as_echo_n "checking for isnanl declaration... " >&6; }
  32642. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  32643. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  32644. $as_echo_n "(cached) " >&6
  32645. else
  32646. ac_ext=cpp
  32647. ac_cpp='$CXXCPP $CPPFLAGS'
  32648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32652. /* end confdefs.h. */
  32653. #include <math.h>
  32654. #ifdef HAVE_IEEEFP_H
  32655. #include <ieeefp.h>
  32656. #endif
  32657. int
  32658. main ()
  32659. {
  32660. isnanl(0);
  32661. ;
  32662. return 0;
  32663. }
  32664. _ACEOF
  32665. if ac_fn_cxx_try_compile "$LINENO"; then :
  32666. glibcxx_cv_func_isnanl_use=yes
  32667. else
  32668. glibcxx_cv_func_isnanl_use=no
  32669. fi
  32670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32671. ac_ext=c
  32672. ac_cpp='$CPP $CPPFLAGS'
  32673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32676. fi
  32677. fi
  32678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  32679. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  32680. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  32681. for ac_func in isnanl
  32682. do :
  32683. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  32684. if test "x$ac_cv_func_isnanl" = xyes; then :
  32685. cat >>confdefs.h <<_ACEOF
  32686. #define HAVE_ISNANL 1
  32687. _ACEOF
  32688. fi
  32689. done
  32690. else
  32691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  32692. $as_echo_n "checking for _isnanl declaration... " >&6; }
  32693. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  32694. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  32695. $as_echo_n "(cached) " >&6
  32696. else
  32697. ac_ext=cpp
  32698. ac_cpp='$CXXCPP $CPPFLAGS'
  32699. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32700. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32703. /* end confdefs.h. */
  32704. #include <math.h>
  32705. #ifdef HAVE_IEEEFP_H
  32706. #include <ieeefp.h>
  32707. #endif
  32708. int
  32709. main ()
  32710. {
  32711. _isnanl(0);
  32712. ;
  32713. return 0;
  32714. }
  32715. _ACEOF
  32716. if ac_fn_cxx_try_compile "$LINENO"; then :
  32717. glibcxx_cv_func__isnanl_use=yes
  32718. else
  32719. glibcxx_cv_func__isnanl_use=no
  32720. fi
  32721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32722. ac_ext=c
  32723. ac_cpp='$CPP $CPPFLAGS'
  32724. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32725. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32726. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32727. fi
  32728. fi
  32729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  32730. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  32731. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  32732. for ac_func in _isnanl
  32733. do :
  32734. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  32735. if test "x$ac_cv_func__isnanl" = xyes; then :
  32736. cat >>confdefs.h <<_ACEOF
  32737. #define HAVE__ISNANL 1
  32738. _ACEOF
  32739. fi
  32740. done
  32741. fi
  32742. fi
  32743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  32744. $as_echo_n "checking for isinfl declaration... " >&6; }
  32745. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  32746. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  32747. $as_echo_n "(cached) " >&6
  32748. else
  32749. ac_ext=cpp
  32750. ac_cpp='$CXXCPP $CPPFLAGS'
  32751. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32752. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32753. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32755. /* end confdefs.h. */
  32756. #include <math.h>
  32757. #ifdef HAVE_IEEEFP_H
  32758. #include <ieeefp.h>
  32759. #endif
  32760. int
  32761. main ()
  32762. {
  32763. isinfl(0);
  32764. ;
  32765. return 0;
  32766. }
  32767. _ACEOF
  32768. if ac_fn_cxx_try_compile "$LINENO"; then :
  32769. glibcxx_cv_func_isinfl_use=yes
  32770. else
  32771. glibcxx_cv_func_isinfl_use=no
  32772. fi
  32773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32774. ac_ext=c
  32775. ac_cpp='$CPP $CPPFLAGS'
  32776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32779. fi
  32780. fi
  32781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  32782. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  32783. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  32784. for ac_func in isinfl
  32785. do :
  32786. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  32787. if test "x$ac_cv_func_isinfl" = xyes; then :
  32788. cat >>confdefs.h <<_ACEOF
  32789. #define HAVE_ISINFL 1
  32790. _ACEOF
  32791. fi
  32792. done
  32793. else
  32794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  32795. $as_echo_n "checking for _isinfl declaration... " >&6; }
  32796. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  32797. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  32798. $as_echo_n "(cached) " >&6
  32799. else
  32800. ac_ext=cpp
  32801. ac_cpp='$CXXCPP $CPPFLAGS'
  32802. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32803. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32804. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32806. /* end confdefs.h. */
  32807. #include <math.h>
  32808. #ifdef HAVE_IEEEFP_H
  32809. #include <ieeefp.h>
  32810. #endif
  32811. int
  32812. main ()
  32813. {
  32814. _isinfl(0);
  32815. ;
  32816. return 0;
  32817. }
  32818. _ACEOF
  32819. if ac_fn_cxx_try_compile "$LINENO"; then :
  32820. glibcxx_cv_func__isinfl_use=yes
  32821. else
  32822. glibcxx_cv_func__isinfl_use=no
  32823. fi
  32824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32825. ac_ext=c
  32826. ac_cpp='$CPP $CPPFLAGS'
  32827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32830. fi
  32831. fi
  32832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  32833. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  32834. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  32835. for ac_func in _isinfl
  32836. do :
  32837. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  32838. if test "x$ac_cv_func__isinfl" = xyes; then :
  32839. cat >>confdefs.h <<_ACEOF
  32840. #define HAVE__ISINFL 1
  32841. _ACEOF
  32842. fi
  32843. done
  32844. fi
  32845. fi
  32846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  32847. $as_echo_n "checking for atan2l declaration... " >&6; }
  32848. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  32849. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  32850. $as_echo_n "(cached) " >&6
  32851. else
  32852. ac_ext=cpp
  32853. ac_cpp='$CXXCPP $CPPFLAGS'
  32854. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32855. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32856. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32858. /* end confdefs.h. */
  32859. #include <math.h>
  32860. int
  32861. main ()
  32862. {
  32863. atan2l(0, 0);
  32864. ;
  32865. return 0;
  32866. }
  32867. _ACEOF
  32868. if ac_fn_cxx_try_compile "$LINENO"; then :
  32869. glibcxx_cv_func_atan2l_use=yes
  32870. else
  32871. glibcxx_cv_func_atan2l_use=no
  32872. fi
  32873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32874. ac_ext=c
  32875. ac_cpp='$CPP $CPPFLAGS'
  32876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32879. fi
  32880. fi
  32881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  32882. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  32883. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  32884. for ac_func in atan2l
  32885. do :
  32886. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  32887. if test "x$ac_cv_func_atan2l" = xyes; then :
  32888. cat >>confdefs.h <<_ACEOF
  32889. #define HAVE_ATAN2L 1
  32890. _ACEOF
  32891. fi
  32892. done
  32893. else
  32894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  32895. $as_echo_n "checking for _atan2l declaration... " >&6; }
  32896. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  32897. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  32898. $as_echo_n "(cached) " >&6
  32899. else
  32900. ac_ext=cpp
  32901. ac_cpp='$CXXCPP $CPPFLAGS'
  32902. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32903. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32904. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32906. /* end confdefs.h. */
  32907. #include <math.h>
  32908. int
  32909. main ()
  32910. {
  32911. _atan2l(0, 0);
  32912. ;
  32913. return 0;
  32914. }
  32915. _ACEOF
  32916. if ac_fn_cxx_try_compile "$LINENO"; then :
  32917. glibcxx_cv_func__atan2l_use=yes
  32918. else
  32919. glibcxx_cv_func__atan2l_use=no
  32920. fi
  32921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32922. ac_ext=c
  32923. ac_cpp='$CPP $CPPFLAGS'
  32924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32927. fi
  32928. fi
  32929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  32930. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  32931. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  32932. for ac_func in _atan2l
  32933. do :
  32934. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  32935. if test "x$ac_cv_func__atan2l" = xyes; then :
  32936. cat >>confdefs.h <<_ACEOF
  32937. #define HAVE__ATAN2L 1
  32938. _ACEOF
  32939. fi
  32940. done
  32941. fi
  32942. fi
  32943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  32944. $as_echo_n "checking for expl declaration... " >&6; }
  32945. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  32946. if ${glibcxx_cv_func_expl_use+:} false; then :
  32947. $as_echo_n "(cached) " >&6
  32948. else
  32949. ac_ext=cpp
  32950. ac_cpp='$CXXCPP $CPPFLAGS'
  32951. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32952. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32953. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  32954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  32955. /* end confdefs.h. */
  32956. #include <math.h>
  32957. #ifdef HAVE_IEEEFP_H
  32958. #include <ieeefp.h>
  32959. #endif
  32960. int
  32961. main ()
  32962. {
  32963. expl(0);
  32964. ;
  32965. return 0;
  32966. }
  32967. _ACEOF
  32968. if ac_fn_cxx_try_compile "$LINENO"; then :
  32969. glibcxx_cv_func_expl_use=yes
  32970. else
  32971. glibcxx_cv_func_expl_use=no
  32972. fi
  32973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  32974. ac_ext=c
  32975. ac_cpp='$CPP $CPPFLAGS'
  32976. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32977. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32978. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32979. fi
  32980. fi
  32981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  32982. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  32983. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  32984. for ac_func in expl
  32985. do :
  32986. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  32987. if test "x$ac_cv_func_expl" = xyes; then :
  32988. cat >>confdefs.h <<_ACEOF
  32989. #define HAVE_EXPL 1
  32990. _ACEOF
  32991. fi
  32992. done
  32993. else
  32994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  32995. $as_echo_n "checking for _expl declaration... " >&6; }
  32996. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  32997. if ${glibcxx_cv_func__expl_use+:} false; then :
  32998. $as_echo_n "(cached) " >&6
  32999. else
  33000. ac_ext=cpp
  33001. ac_cpp='$CXXCPP $CPPFLAGS'
  33002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33006. /* end confdefs.h. */
  33007. #include <math.h>
  33008. #ifdef HAVE_IEEEFP_H
  33009. #include <ieeefp.h>
  33010. #endif
  33011. int
  33012. main ()
  33013. {
  33014. _expl(0);
  33015. ;
  33016. return 0;
  33017. }
  33018. _ACEOF
  33019. if ac_fn_cxx_try_compile "$LINENO"; then :
  33020. glibcxx_cv_func__expl_use=yes
  33021. else
  33022. glibcxx_cv_func__expl_use=no
  33023. fi
  33024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33025. ac_ext=c
  33026. ac_cpp='$CPP $CPPFLAGS'
  33027. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33028. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33029. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33030. fi
  33031. fi
  33032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  33033. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  33034. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  33035. for ac_func in _expl
  33036. do :
  33037. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  33038. if test "x$ac_cv_func__expl" = xyes; then :
  33039. cat >>confdefs.h <<_ACEOF
  33040. #define HAVE__EXPL 1
  33041. _ACEOF
  33042. fi
  33043. done
  33044. fi
  33045. fi
  33046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  33047. $as_echo_n "checking for fabsl declaration... " >&6; }
  33048. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  33049. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  33050. $as_echo_n "(cached) " >&6
  33051. else
  33052. ac_ext=cpp
  33053. ac_cpp='$CXXCPP $CPPFLAGS'
  33054. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33055. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33056. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33058. /* end confdefs.h. */
  33059. #include <math.h>
  33060. #ifdef HAVE_IEEEFP_H
  33061. #include <ieeefp.h>
  33062. #endif
  33063. int
  33064. main ()
  33065. {
  33066. fabsl(0);
  33067. ;
  33068. return 0;
  33069. }
  33070. _ACEOF
  33071. if ac_fn_cxx_try_compile "$LINENO"; then :
  33072. glibcxx_cv_func_fabsl_use=yes
  33073. else
  33074. glibcxx_cv_func_fabsl_use=no
  33075. fi
  33076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33077. ac_ext=c
  33078. ac_cpp='$CPP $CPPFLAGS'
  33079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33082. fi
  33083. fi
  33084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  33085. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  33086. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  33087. for ac_func in fabsl
  33088. do :
  33089. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  33090. if test "x$ac_cv_func_fabsl" = xyes; then :
  33091. cat >>confdefs.h <<_ACEOF
  33092. #define HAVE_FABSL 1
  33093. _ACEOF
  33094. fi
  33095. done
  33096. else
  33097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  33098. $as_echo_n "checking for _fabsl declaration... " >&6; }
  33099. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  33100. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  33101. $as_echo_n "(cached) " >&6
  33102. else
  33103. ac_ext=cpp
  33104. ac_cpp='$CXXCPP $CPPFLAGS'
  33105. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33106. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33107. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33109. /* end confdefs.h. */
  33110. #include <math.h>
  33111. #ifdef HAVE_IEEEFP_H
  33112. #include <ieeefp.h>
  33113. #endif
  33114. int
  33115. main ()
  33116. {
  33117. _fabsl(0);
  33118. ;
  33119. return 0;
  33120. }
  33121. _ACEOF
  33122. if ac_fn_cxx_try_compile "$LINENO"; then :
  33123. glibcxx_cv_func__fabsl_use=yes
  33124. else
  33125. glibcxx_cv_func__fabsl_use=no
  33126. fi
  33127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33128. ac_ext=c
  33129. ac_cpp='$CPP $CPPFLAGS'
  33130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33133. fi
  33134. fi
  33135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  33136. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  33137. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  33138. for ac_func in _fabsl
  33139. do :
  33140. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  33141. if test "x$ac_cv_func__fabsl" = xyes; then :
  33142. cat >>confdefs.h <<_ACEOF
  33143. #define HAVE__FABSL 1
  33144. _ACEOF
  33145. fi
  33146. done
  33147. fi
  33148. fi
  33149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  33150. $as_echo_n "checking for fmodl declaration... " >&6; }
  33151. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  33152. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  33153. $as_echo_n "(cached) " >&6
  33154. else
  33155. ac_ext=cpp
  33156. ac_cpp='$CXXCPP $CPPFLAGS'
  33157. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33158. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33159. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33161. /* end confdefs.h. */
  33162. #include <math.h>
  33163. int
  33164. main ()
  33165. {
  33166. fmodl(0, 0);
  33167. ;
  33168. return 0;
  33169. }
  33170. _ACEOF
  33171. if ac_fn_cxx_try_compile "$LINENO"; then :
  33172. glibcxx_cv_func_fmodl_use=yes
  33173. else
  33174. glibcxx_cv_func_fmodl_use=no
  33175. fi
  33176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33177. ac_ext=c
  33178. ac_cpp='$CPP $CPPFLAGS'
  33179. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33180. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33181. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33182. fi
  33183. fi
  33184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  33185. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  33186. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  33187. for ac_func in fmodl
  33188. do :
  33189. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  33190. if test "x$ac_cv_func_fmodl" = xyes; then :
  33191. cat >>confdefs.h <<_ACEOF
  33192. #define HAVE_FMODL 1
  33193. _ACEOF
  33194. fi
  33195. done
  33196. else
  33197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  33198. $as_echo_n "checking for _fmodl declaration... " >&6; }
  33199. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  33200. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  33201. $as_echo_n "(cached) " >&6
  33202. else
  33203. ac_ext=cpp
  33204. ac_cpp='$CXXCPP $CPPFLAGS'
  33205. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33206. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33207. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33209. /* end confdefs.h. */
  33210. #include <math.h>
  33211. int
  33212. main ()
  33213. {
  33214. _fmodl(0, 0);
  33215. ;
  33216. return 0;
  33217. }
  33218. _ACEOF
  33219. if ac_fn_cxx_try_compile "$LINENO"; then :
  33220. glibcxx_cv_func__fmodl_use=yes
  33221. else
  33222. glibcxx_cv_func__fmodl_use=no
  33223. fi
  33224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33225. ac_ext=c
  33226. ac_cpp='$CPP $CPPFLAGS'
  33227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33230. fi
  33231. fi
  33232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  33233. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  33234. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  33235. for ac_func in _fmodl
  33236. do :
  33237. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  33238. if test "x$ac_cv_func__fmodl" = xyes; then :
  33239. cat >>confdefs.h <<_ACEOF
  33240. #define HAVE__FMODL 1
  33241. _ACEOF
  33242. fi
  33243. done
  33244. fi
  33245. fi
  33246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  33247. $as_echo_n "checking for frexpl declaration... " >&6; }
  33248. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  33249. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  33250. $as_echo_n "(cached) " >&6
  33251. else
  33252. ac_ext=cpp
  33253. ac_cpp='$CXXCPP $CPPFLAGS'
  33254. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33255. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33256. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33258. /* end confdefs.h. */
  33259. #include <math.h>
  33260. int
  33261. main ()
  33262. {
  33263. frexpl(0, 0);
  33264. ;
  33265. return 0;
  33266. }
  33267. _ACEOF
  33268. if ac_fn_cxx_try_compile "$LINENO"; then :
  33269. glibcxx_cv_func_frexpl_use=yes
  33270. else
  33271. glibcxx_cv_func_frexpl_use=no
  33272. fi
  33273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33274. ac_ext=c
  33275. ac_cpp='$CPP $CPPFLAGS'
  33276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33279. fi
  33280. fi
  33281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  33282. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  33283. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  33284. for ac_func in frexpl
  33285. do :
  33286. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  33287. if test "x$ac_cv_func_frexpl" = xyes; then :
  33288. cat >>confdefs.h <<_ACEOF
  33289. #define HAVE_FREXPL 1
  33290. _ACEOF
  33291. fi
  33292. done
  33293. else
  33294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  33295. $as_echo_n "checking for _frexpl declaration... " >&6; }
  33296. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  33297. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  33298. $as_echo_n "(cached) " >&6
  33299. else
  33300. ac_ext=cpp
  33301. ac_cpp='$CXXCPP $CPPFLAGS'
  33302. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33303. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33304. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33306. /* end confdefs.h. */
  33307. #include <math.h>
  33308. int
  33309. main ()
  33310. {
  33311. _frexpl(0, 0);
  33312. ;
  33313. return 0;
  33314. }
  33315. _ACEOF
  33316. if ac_fn_cxx_try_compile "$LINENO"; then :
  33317. glibcxx_cv_func__frexpl_use=yes
  33318. else
  33319. glibcxx_cv_func__frexpl_use=no
  33320. fi
  33321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33322. ac_ext=c
  33323. ac_cpp='$CPP $CPPFLAGS'
  33324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33327. fi
  33328. fi
  33329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  33330. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  33331. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  33332. for ac_func in _frexpl
  33333. do :
  33334. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  33335. if test "x$ac_cv_func__frexpl" = xyes; then :
  33336. cat >>confdefs.h <<_ACEOF
  33337. #define HAVE__FREXPL 1
  33338. _ACEOF
  33339. fi
  33340. done
  33341. fi
  33342. fi
  33343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  33344. $as_echo_n "checking for hypotl declaration... " >&6; }
  33345. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  33346. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  33347. $as_echo_n "(cached) " >&6
  33348. else
  33349. ac_ext=cpp
  33350. ac_cpp='$CXXCPP $CPPFLAGS'
  33351. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33352. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33353. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33355. /* end confdefs.h. */
  33356. #include <math.h>
  33357. int
  33358. main ()
  33359. {
  33360. hypotl(0, 0);
  33361. ;
  33362. return 0;
  33363. }
  33364. _ACEOF
  33365. if ac_fn_cxx_try_compile "$LINENO"; then :
  33366. glibcxx_cv_func_hypotl_use=yes
  33367. else
  33368. glibcxx_cv_func_hypotl_use=no
  33369. fi
  33370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33371. ac_ext=c
  33372. ac_cpp='$CPP $CPPFLAGS'
  33373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33376. fi
  33377. fi
  33378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  33379. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  33380. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  33381. for ac_func in hypotl
  33382. do :
  33383. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  33384. if test "x$ac_cv_func_hypotl" = xyes; then :
  33385. cat >>confdefs.h <<_ACEOF
  33386. #define HAVE_HYPOTL 1
  33387. _ACEOF
  33388. fi
  33389. done
  33390. else
  33391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  33392. $as_echo_n "checking for _hypotl declaration... " >&6; }
  33393. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  33394. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  33395. $as_echo_n "(cached) " >&6
  33396. else
  33397. ac_ext=cpp
  33398. ac_cpp='$CXXCPP $CPPFLAGS'
  33399. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33400. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33401. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33403. /* end confdefs.h. */
  33404. #include <math.h>
  33405. int
  33406. main ()
  33407. {
  33408. _hypotl(0, 0);
  33409. ;
  33410. return 0;
  33411. }
  33412. _ACEOF
  33413. if ac_fn_cxx_try_compile "$LINENO"; then :
  33414. glibcxx_cv_func__hypotl_use=yes
  33415. else
  33416. glibcxx_cv_func__hypotl_use=no
  33417. fi
  33418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33419. ac_ext=c
  33420. ac_cpp='$CPP $CPPFLAGS'
  33421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33424. fi
  33425. fi
  33426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  33427. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  33428. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  33429. for ac_func in _hypotl
  33430. do :
  33431. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  33432. if test "x$ac_cv_func__hypotl" = xyes; then :
  33433. cat >>confdefs.h <<_ACEOF
  33434. #define HAVE__HYPOTL 1
  33435. _ACEOF
  33436. fi
  33437. done
  33438. fi
  33439. fi
  33440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  33441. $as_echo_n "checking for ldexpl declaration... " >&6; }
  33442. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  33443. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  33444. $as_echo_n "(cached) " >&6
  33445. else
  33446. ac_ext=cpp
  33447. ac_cpp='$CXXCPP $CPPFLAGS'
  33448. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33449. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33450. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33452. /* end confdefs.h. */
  33453. #include <math.h>
  33454. int
  33455. main ()
  33456. {
  33457. ldexpl(0, 0);
  33458. ;
  33459. return 0;
  33460. }
  33461. _ACEOF
  33462. if ac_fn_cxx_try_compile "$LINENO"; then :
  33463. glibcxx_cv_func_ldexpl_use=yes
  33464. else
  33465. glibcxx_cv_func_ldexpl_use=no
  33466. fi
  33467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33468. ac_ext=c
  33469. ac_cpp='$CPP $CPPFLAGS'
  33470. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33471. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33472. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33473. fi
  33474. fi
  33475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  33476. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  33477. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  33478. for ac_func in ldexpl
  33479. do :
  33480. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  33481. if test "x$ac_cv_func_ldexpl" = xyes; then :
  33482. cat >>confdefs.h <<_ACEOF
  33483. #define HAVE_LDEXPL 1
  33484. _ACEOF
  33485. fi
  33486. done
  33487. else
  33488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  33489. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  33490. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  33491. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  33492. $as_echo_n "(cached) " >&6
  33493. else
  33494. ac_ext=cpp
  33495. ac_cpp='$CXXCPP $CPPFLAGS'
  33496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33500. /* end confdefs.h. */
  33501. #include <math.h>
  33502. int
  33503. main ()
  33504. {
  33505. _ldexpl(0, 0);
  33506. ;
  33507. return 0;
  33508. }
  33509. _ACEOF
  33510. if ac_fn_cxx_try_compile "$LINENO"; then :
  33511. glibcxx_cv_func__ldexpl_use=yes
  33512. else
  33513. glibcxx_cv_func__ldexpl_use=no
  33514. fi
  33515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33516. ac_ext=c
  33517. ac_cpp='$CPP $CPPFLAGS'
  33518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33521. fi
  33522. fi
  33523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  33524. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  33525. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  33526. for ac_func in _ldexpl
  33527. do :
  33528. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  33529. if test "x$ac_cv_func__ldexpl" = xyes; then :
  33530. cat >>confdefs.h <<_ACEOF
  33531. #define HAVE__LDEXPL 1
  33532. _ACEOF
  33533. fi
  33534. done
  33535. fi
  33536. fi
  33537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  33538. $as_echo_n "checking for logl declaration... " >&6; }
  33539. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  33540. if ${glibcxx_cv_func_logl_use+:} false; then :
  33541. $as_echo_n "(cached) " >&6
  33542. else
  33543. ac_ext=cpp
  33544. ac_cpp='$CXXCPP $CPPFLAGS'
  33545. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33546. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33547. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33549. /* end confdefs.h. */
  33550. #include <math.h>
  33551. #ifdef HAVE_IEEEFP_H
  33552. #include <ieeefp.h>
  33553. #endif
  33554. int
  33555. main ()
  33556. {
  33557. logl(0);
  33558. ;
  33559. return 0;
  33560. }
  33561. _ACEOF
  33562. if ac_fn_cxx_try_compile "$LINENO"; then :
  33563. glibcxx_cv_func_logl_use=yes
  33564. else
  33565. glibcxx_cv_func_logl_use=no
  33566. fi
  33567. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33568. ac_ext=c
  33569. ac_cpp='$CPP $CPPFLAGS'
  33570. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33571. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33572. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33573. fi
  33574. fi
  33575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  33576. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  33577. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  33578. for ac_func in logl
  33579. do :
  33580. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  33581. if test "x$ac_cv_func_logl" = xyes; then :
  33582. cat >>confdefs.h <<_ACEOF
  33583. #define HAVE_LOGL 1
  33584. _ACEOF
  33585. fi
  33586. done
  33587. else
  33588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  33589. $as_echo_n "checking for _logl declaration... " >&6; }
  33590. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  33591. if ${glibcxx_cv_func__logl_use+:} false; then :
  33592. $as_echo_n "(cached) " >&6
  33593. else
  33594. ac_ext=cpp
  33595. ac_cpp='$CXXCPP $CPPFLAGS'
  33596. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33597. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33598. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33600. /* end confdefs.h. */
  33601. #include <math.h>
  33602. #ifdef HAVE_IEEEFP_H
  33603. #include <ieeefp.h>
  33604. #endif
  33605. int
  33606. main ()
  33607. {
  33608. _logl(0);
  33609. ;
  33610. return 0;
  33611. }
  33612. _ACEOF
  33613. if ac_fn_cxx_try_compile "$LINENO"; then :
  33614. glibcxx_cv_func__logl_use=yes
  33615. else
  33616. glibcxx_cv_func__logl_use=no
  33617. fi
  33618. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33619. ac_ext=c
  33620. ac_cpp='$CPP $CPPFLAGS'
  33621. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33622. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33623. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33624. fi
  33625. fi
  33626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  33627. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  33628. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  33629. for ac_func in _logl
  33630. do :
  33631. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  33632. if test "x$ac_cv_func__logl" = xyes; then :
  33633. cat >>confdefs.h <<_ACEOF
  33634. #define HAVE__LOGL 1
  33635. _ACEOF
  33636. fi
  33637. done
  33638. fi
  33639. fi
  33640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  33641. $as_echo_n "checking for log10l declaration... " >&6; }
  33642. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  33643. if ${glibcxx_cv_func_log10l_use+:} false; then :
  33644. $as_echo_n "(cached) " >&6
  33645. else
  33646. ac_ext=cpp
  33647. ac_cpp='$CXXCPP $CPPFLAGS'
  33648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33652. /* end confdefs.h. */
  33653. #include <math.h>
  33654. #ifdef HAVE_IEEEFP_H
  33655. #include <ieeefp.h>
  33656. #endif
  33657. int
  33658. main ()
  33659. {
  33660. log10l(0);
  33661. ;
  33662. return 0;
  33663. }
  33664. _ACEOF
  33665. if ac_fn_cxx_try_compile "$LINENO"; then :
  33666. glibcxx_cv_func_log10l_use=yes
  33667. else
  33668. glibcxx_cv_func_log10l_use=no
  33669. fi
  33670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33671. ac_ext=c
  33672. ac_cpp='$CPP $CPPFLAGS'
  33673. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33674. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33675. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33676. fi
  33677. fi
  33678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  33679. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  33680. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  33681. for ac_func in log10l
  33682. do :
  33683. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  33684. if test "x$ac_cv_func_log10l" = xyes; then :
  33685. cat >>confdefs.h <<_ACEOF
  33686. #define HAVE_LOG10L 1
  33687. _ACEOF
  33688. fi
  33689. done
  33690. else
  33691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  33692. $as_echo_n "checking for _log10l declaration... " >&6; }
  33693. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  33694. if ${glibcxx_cv_func__log10l_use+:} false; then :
  33695. $as_echo_n "(cached) " >&6
  33696. else
  33697. ac_ext=cpp
  33698. ac_cpp='$CXXCPP $CPPFLAGS'
  33699. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33700. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33703. /* end confdefs.h. */
  33704. #include <math.h>
  33705. #ifdef HAVE_IEEEFP_H
  33706. #include <ieeefp.h>
  33707. #endif
  33708. int
  33709. main ()
  33710. {
  33711. _log10l(0);
  33712. ;
  33713. return 0;
  33714. }
  33715. _ACEOF
  33716. if ac_fn_cxx_try_compile "$LINENO"; then :
  33717. glibcxx_cv_func__log10l_use=yes
  33718. else
  33719. glibcxx_cv_func__log10l_use=no
  33720. fi
  33721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33722. ac_ext=c
  33723. ac_cpp='$CPP $CPPFLAGS'
  33724. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33725. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33726. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33727. fi
  33728. fi
  33729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  33730. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  33731. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  33732. for ac_func in _log10l
  33733. do :
  33734. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  33735. if test "x$ac_cv_func__log10l" = xyes; then :
  33736. cat >>confdefs.h <<_ACEOF
  33737. #define HAVE__LOG10L 1
  33738. _ACEOF
  33739. fi
  33740. done
  33741. fi
  33742. fi
  33743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  33744. $as_echo_n "checking for modfl declaration... " >&6; }
  33745. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  33746. if ${glibcxx_cv_func_modfl_use+:} false; then :
  33747. $as_echo_n "(cached) " >&6
  33748. else
  33749. ac_ext=cpp
  33750. ac_cpp='$CXXCPP $CPPFLAGS'
  33751. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33752. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33753. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33755. /* end confdefs.h. */
  33756. #include <math.h>
  33757. int
  33758. main ()
  33759. {
  33760. modfl(0, 0);
  33761. ;
  33762. return 0;
  33763. }
  33764. _ACEOF
  33765. if ac_fn_cxx_try_compile "$LINENO"; then :
  33766. glibcxx_cv_func_modfl_use=yes
  33767. else
  33768. glibcxx_cv_func_modfl_use=no
  33769. fi
  33770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33771. ac_ext=c
  33772. ac_cpp='$CPP $CPPFLAGS'
  33773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33776. fi
  33777. fi
  33778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  33779. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  33780. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  33781. for ac_func in modfl
  33782. do :
  33783. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  33784. if test "x$ac_cv_func_modfl" = xyes; then :
  33785. cat >>confdefs.h <<_ACEOF
  33786. #define HAVE_MODFL 1
  33787. _ACEOF
  33788. fi
  33789. done
  33790. else
  33791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  33792. $as_echo_n "checking for _modfl declaration... " >&6; }
  33793. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  33794. if ${glibcxx_cv_func__modfl_use+:} false; then :
  33795. $as_echo_n "(cached) " >&6
  33796. else
  33797. ac_ext=cpp
  33798. ac_cpp='$CXXCPP $CPPFLAGS'
  33799. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33800. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33801. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33803. /* end confdefs.h. */
  33804. #include <math.h>
  33805. int
  33806. main ()
  33807. {
  33808. _modfl(0, 0);
  33809. ;
  33810. return 0;
  33811. }
  33812. _ACEOF
  33813. if ac_fn_cxx_try_compile "$LINENO"; then :
  33814. glibcxx_cv_func__modfl_use=yes
  33815. else
  33816. glibcxx_cv_func__modfl_use=no
  33817. fi
  33818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33819. ac_ext=c
  33820. ac_cpp='$CPP $CPPFLAGS'
  33821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33824. fi
  33825. fi
  33826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  33827. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  33828. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  33829. for ac_func in _modfl
  33830. do :
  33831. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  33832. if test "x$ac_cv_func__modfl" = xyes; then :
  33833. cat >>confdefs.h <<_ACEOF
  33834. #define HAVE__MODFL 1
  33835. _ACEOF
  33836. fi
  33837. done
  33838. fi
  33839. fi
  33840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  33841. $as_echo_n "checking for powl declaration... " >&6; }
  33842. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  33843. if ${glibcxx_cv_func_powl_use+:} false; then :
  33844. $as_echo_n "(cached) " >&6
  33845. else
  33846. ac_ext=cpp
  33847. ac_cpp='$CXXCPP $CPPFLAGS'
  33848. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33849. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33850. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33852. /* end confdefs.h. */
  33853. #include <math.h>
  33854. int
  33855. main ()
  33856. {
  33857. powl(0, 0);
  33858. ;
  33859. return 0;
  33860. }
  33861. _ACEOF
  33862. if ac_fn_cxx_try_compile "$LINENO"; then :
  33863. glibcxx_cv_func_powl_use=yes
  33864. else
  33865. glibcxx_cv_func_powl_use=no
  33866. fi
  33867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33868. ac_ext=c
  33869. ac_cpp='$CPP $CPPFLAGS'
  33870. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33871. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33872. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33873. fi
  33874. fi
  33875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  33876. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  33877. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  33878. for ac_func in powl
  33879. do :
  33880. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  33881. if test "x$ac_cv_func_powl" = xyes; then :
  33882. cat >>confdefs.h <<_ACEOF
  33883. #define HAVE_POWL 1
  33884. _ACEOF
  33885. fi
  33886. done
  33887. else
  33888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  33889. $as_echo_n "checking for _powl declaration... " >&6; }
  33890. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  33891. if ${glibcxx_cv_func__powl_use+:} false; then :
  33892. $as_echo_n "(cached) " >&6
  33893. else
  33894. ac_ext=cpp
  33895. ac_cpp='$CXXCPP $CPPFLAGS'
  33896. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33897. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33898. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33900. /* end confdefs.h. */
  33901. #include <math.h>
  33902. int
  33903. main ()
  33904. {
  33905. _powl(0, 0);
  33906. ;
  33907. return 0;
  33908. }
  33909. _ACEOF
  33910. if ac_fn_cxx_try_compile "$LINENO"; then :
  33911. glibcxx_cv_func__powl_use=yes
  33912. else
  33913. glibcxx_cv_func__powl_use=no
  33914. fi
  33915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33916. ac_ext=c
  33917. ac_cpp='$CPP $CPPFLAGS'
  33918. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33919. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33920. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33921. fi
  33922. fi
  33923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  33924. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  33925. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  33926. for ac_func in _powl
  33927. do :
  33928. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  33929. if test "x$ac_cv_func__powl" = xyes; then :
  33930. cat >>confdefs.h <<_ACEOF
  33931. #define HAVE__POWL 1
  33932. _ACEOF
  33933. fi
  33934. done
  33935. fi
  33936. fi
  33937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  33938. $as_echo_n "checking for sqrtl declaration... " >&6; }
  33939. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  33940. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  33941. $as_echo_n "(cached) " >&6
  33942. else
  33943. ac_ext=cpp
  33944. ac_cpp='$CXXCPP $CPPFLAGS'
  33945. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33946. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33947. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  33949. /* end confdefs.h. */
  33950. #include <math.h>
  33951. #ifdef HAVE_IEEEFP_H
  33952. #include <ieeefp.h>
  33953. #endif
  33954. int
  33955. main ()
  33956. {
  33957. sqrtl(0);
  33958. ;
  33959. return 0;
  33960. }
  33961. _ACEOF
  33962. if ac_fn_cxx_try_compile "$LINENO"; then :
  33963. glibcxx_cv_func_sqrtl_use=yes
  33964. else
  33965. glibcxx_cv_func_sqrtl_use=no
  33966. fi
  33967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33968. ac_ext=c
  33969. ac_cpp='$CPP $CPPFLAGS'
  33970. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33971. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33972. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33973. fi
  33974. fi
  33975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  33976. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  33977. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  33978. for ac_func in sqrtl
  33979. do :
  33980. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  33981. if test "x$ac_cv_func_sqrtl" = xyes; then :
  33982. cat >>confdefs.h <<_ACEOF
  33983. #define HAVE_SQRTL 1
  33984. _ACEOF
  33985. fi
  33986. done
  33987. else
  33988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  33989. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  33990. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  33991. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  33992. $as_echo_n "(cached) " >&6
  33993. else
  33994. ac_ext=cpp
  33995. ac_cpp='$CXXCPP $CPPFLAGS'
  33996. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33997. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33998. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  33999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34000. /* end confdefs.h. */
  34001. #include <math.h>
  34002. #ifdef HAVE_IEEEFP_H
  34003. #include <ieeefp.h>
  34004. #endif
  34005. int
  34006. main ()
  34007. {
  34008. _sqrtl(0);
  34009. ;
  34010. return 0;
  34011. }
  34012. _ACEOF
  34013. if ac_fn_cxx_try_compile "$LINENO"; then :
  34014. glibcxx_cv_func__sqrtl_use=yes
  34015. else
  34016. glibcxx_cv_func__sqrtl_use=no
  34017. fi
  34018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34019. ac_ext=c
  34020. ac_cpp='$CPP $CPPFLAGS'
  34021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34024. fi
  34025. fi
  34026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  34027. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  34028. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  34029. for ac_func in _sqrtl
  34030. do :
  34031. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  34032. if test "x$ac_cv_func__sqrtl" = xyes; then :
  34033. cat >>confdefs.h <<_ACEOF
  34034. #define HAVE__SQRTL 1
  34035. _ACEOF
  34036. fi
  34037. done
  34038. fi
  34039. fi
  34040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  34041. $as_echo_n "checking for sincosl declaration... " >&6; }
  34042. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  34043. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  34044. $as_echo_n "(cached) " >&6
  34045. else
  34046. ac_ext=cpp
  34047. ac_cpp='$CXXCPP $CPPFLAGS'
  34048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34052. /* end confdefs.h. */
  34053. #include <math.h>
  34054. int
  34055. main ()
  34056. {
  34057. sincosl(0, 0, 0);
  34058. ;
  34059. return 0;
  34060. }
  34061. _ACEOF
  34062. if ac_fn_cxx_try_compile "$LINENO"; then :
  34063. glibcxx_cv_func_sincosl_use=yes
  34064. else
  34065. glibcxx_cv_func_sincosl_use=no
  34066. fi
  34067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34068. ac_ext=c
  34069. ac_cpp='$CPP $CPPFLAGS'
  34070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34073. fi
  34074. fi
  34075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  34076. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  34077. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  34078. for ac_func in sincosl
  34079. do :
  34080. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  34081. if test "x$ac_cv_func_sincosl" = xyes; then :
  34082. cat >>confdefs.h <<_ACEOF
  34083. #define HAVE_SINCOSL 1
  34084. _ACEOF
  34085. fi
  34086. done
  34087. else
  34088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  34089. $as_echo_n "checking for _sincosl declaration... " >&6; }
  34090. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  34091. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  34092. $as_echo_n "(cached) " >&6
  34093. else
  34094. ac_ext=cpp
  34095. ac_cpp='$CXXCPP $CPPFLAGS'
  34096. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34097. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34098. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34100. /* end confdefs.h. */
  34101. #include <math.h>
  34102. int
  34103. main ()
  34104. {
  34105. _sincosl(0, 0, 0);
  34106. ;
  34107. return 0;
  34108. }
  34109. _ACEOF
  34110. if ac_fn_cxx_try_compile "$LINENO"; then :
  34111. glibcxx_cv_func__sincosl_use=yes
  34112. else
  34113. glibcxx_cv_func__sincosl_use=no
  34114. fi
  34115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34116. ac_ext=c
  34117. ac_cpp='$CPP $CPPFLAGS'
  34118. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34119. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34120. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34121. fi
  34122. fi
  34123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  34124. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  34125. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  34126. for ac_func in _sincosl
  34127. do :
  34128. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  34129. if test "x$ac_cv_func__sincosl" = xyes; then :
  34130. cat >>confdefs.h <<_ACEOF
  34131. #define HAVE__SINCOSL 1
  34132. _ACEOF
  34133. fi
  34134. done
  34135. fi
  34136. fi
  34137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  34138. $as_echo_n "checking for finitel declaration... " >&6; }
  34139. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  34140. if ${glibcxx_cv_func_finitel_use+:} false; then :
  34141. $as_echo_n "(cached) " >&6
  34142. else
  34143. ac_ext=cpp
  34144. ac_cpp='$CXXCPP $CPPFLAGS'
  34145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34149. /* end confdefs.h. */
  34150. #include <math.h>
  34151. #ifdef HAVE_IEEEFP_H
  34152. #include <ieeefp.h>
  34153. #endif
  34154. int
  34155. main ()
  34156. {
  34157. finitel(0);
  34158. ;
  34159. return 0;
  34160. }
  34161. _ACEOF
  34162. if ac_fn_cxx_try_compile "$LINENO"; then :
  34163. glibcxx_cv_func_finitel_use=yes
  34164. else
  34165. glibcxx_cv_func_finitel_use=no
  34166. fi
  34167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34168. ac_ext=c
  34169. ac_cpp='$CPP $CPPFLAGS'
  34170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34173. fi
  34174. fi
  34175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  34176. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  34177. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  34178. for ac_func in finitel
  34179. do :
  34180. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  34181. if test "x$ac_cv_func_finitel" = xyes; then :
  34182. cat >>confdefs.h <<_ACEOF
  34183. #define HAVE_FINITEL 1
  34184. _ACEOF
  34185. fi
  34186. done
  34187. else
  34188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  34189. $as_echo_n "checking for _finitel declaration... " >&6; }
  34190. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  34191. if ${glibcxx_cv_func__finitel_use+:} false; then :
  34192. $as_echo_n "(cached) " >&6
  34193. else
  34194. ac_ext=cpp
  34195. ac_cpp='$CXXCPP $CPPFLAGS'
  34196. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34197. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34198. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34200. /* end confdefs.h. */
  34201. #include <math.h>
  34202. #ifdef HAVE_IEEEFP_H
  34203. #include <ieeefp.h>
  34204. #endif
  34205. int
  34206. main ()
  34207. {
  34208. _finitel(0);
  34209. ;
  34210. return 0;
  34211. }
  34212. _ACEOF
  34213. if ac_fn_cxx_try_compile "$LINENO"; then :
  34214. glibcxx_cv_func__finitel_use=yes
  34215. else
  34216. glibcxx_cv_func__finitel_use=no
  34217. fi
  34218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34219. ac_ext=c
  34220. ac_cpp='$CPP $CPPFLAGS'
  34221. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34222. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34223. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34224. fi
  34225. fi
  34226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  34227. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  34228. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  34229. for ac_func in _finitel
  34230. do :
  34231. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  34232. if test "x$ac_cv_func__finitel" = xyes; then :
  34233. cat >>confdefs.h <<_ACEOF
  34234. #define HAVE__FINITEL 1
  34235. _ACEOF
  34236. fi
  34237. done
  34238. fi
  34239. fi
  34240. LIBS="$ac_save_LIBS"
  34241. CXXFLAGS="$ac_save_CXXFLAGS"
  34242. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  34243. ac_save_CXXFLAGS="$CXXFLAGS"
  34244. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  34245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  34246. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  34247. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  34248. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  34249. $as_echo_n "(cached) " >&6
  34250. else
  34251. ac_ext=cpp
  34252. ac_cpp='$CXXCPP $CPPFLAGS'
  34253. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34254. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34255. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34257. /* end confdefs.h. */
  34258. #include <stdlib.h>
  34259. int
  34260. main ()
  34261. {
  34262. at_quick_exit(0);
  34263. ;
  34264. return 0;
  34265. }
  34266. _ACEOF
  34267. if ac_fn_cxx_try_compile "$LINENO"; then :
  34268. glibcxx_cv_func_at_quick_exit_use=yes
  34269. else
  34270. glibcxx_cv_func_at_quick_exit_use=no
  34271. fi
  34272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34273. ac_ext=c
  34274. ac_cpp='$CPP $CPPFLAGS'
  34275. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34276. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34277. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34278. fi
  34279. fi
  34280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  34281. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  34282. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  34283. for ac_func in at_quick_exit
  34284. do :
  34285. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  34286. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  34287. cat >>confdefs.h <<_ACEOF
  34288. #define HAVE_AT_QUICK_EXIT 1
  34289. _ACEOF
  34290. fi
  34291. done
  34292. fi
  34293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  34294. $as_echo_n "checking for quick_exit declaration... " >&6; }
  34295. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  34296. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  34297. $as_echo_n "(cached) " >&6
  34298. else
  34299. ac_ext=cpp
  34300. ac_cpp='$CXXCPP $CPPFLAGS'
  34301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34305. /* end confdefs.h. */
  34306. #include <stdlib.h>
  34307. int
  34308. main ()
  34309. {
  34310. quick_exit(0);
  34311. ;
  34312. return 0;
  34313. }
  34314. _ACEOF
  34315. if ac_fn_cxx_try_compile "$LINENO"; then :
  34316. glibcxx_cv_func_quick_exit_use=yes
  34317. else
  34318. glibcxx_cv_func_quick_exit_use=no
  34319. fi
  34320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34321. ac_ext=c
  34322. ac_cpp='$CPP $CPPFLAGS'
  34323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34326. fi
  34327. fi
  34328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  34329. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  34330. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  34331. for ac_func in quick_exit
  34332. do :
  34333. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  34334. if test "x$ac_cv_func_quick_exit" = xyes; then :
  34335. cat >>confdefs.h <<_ACEOF
  34336. #define HAVE_QUICK_EXIT 1
  34337. _ACEOF
  34338. fi
  34339. done
  34340. fi
  34341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  34342. $as_echo_n "checking for strtold declaration... " >&6; }
  34343. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  34344. if ${glibcxx_cv_func_strtold_use+:} false; then :
  34345. $as_echo_n "(cached) " >&6
  34346. else
  34347. ac_ext=cpp
  34348. ac_cpp='$CXXCPP $CPPFLAGS'
  34349. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34350. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34351. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34353. /* end confdefs.h. */
  34354. #include <stdlib.h>
  34355. int
  34356. main ()
  34357. {
  34358. strtold(0, 0);
  34359. ;
  34360. return 0;
  34361. }
  34362. _ACEOF
  34363. if ac_fn_cxx_try_compile "$LINENO"; then :
  34364. glibcxx_cv_func_strtold_use=yes
  34365. else
  34366. glibcxx_cv_func_strtold_use=no
  34367. fi
  34368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34369. ac_ext=c
  34370. ac_cpp='$CPP $CPPFLAGS'
  34371. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34372. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34373. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34374. fi
  34375. fi
  34376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  34377. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  34378. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  34379. for ac_func in strtold
  34380. do :
  34381. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  34382. if test "x$ac_cv_func_strtold" = xyes; then :
  34383. cat >>confdefs.h <<_ACEOF
  34384. #define HAVE_STRTOLD 1
  34385. _ACEOF
  34386. fi
  34387. done
  34388. fi
  34389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  34390. $as_echo_n "checking for strtof declaration... " >&6; }
  34391. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  34392. if ${glibcxx_cv_func_strtof_use+:} false; then :
  34393. $as_echo_n "(cached) " >&6
  34394. else
  34395. ac_ext=cpp
  34396. ac_cpp='$CXXCPP $CPPFLAGS'
  34397. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34398. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34399. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34401. /* end confdefs.h. */
  34402. #include <stdlib.h>
  34403. int
  34404. main ()
  34405. {
  34406. strtof(0, 0);
  34407. ;
  34408. return 0;
  34409. }
  34410. _ACEOF
  34411. if ac_fn_cxx_try_compile "$LINENO"; then :
  34412. glibcxx_cv_func_strtof_use=yes
  34413. else
  34414. glibcxx_cv_func_strtof_use=no
  34415. fi
  34416. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34417. ac_ext=c
  34418. ac_cpp='$CPP $CPPFLAGS'
  34419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34422. fi
  34423. fi
  34424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  34425. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  34426. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  34427. for ac_func in strtof
  34428. do :
  34429. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  34430. if test "x$ac_cv_func_strtof" = xyes; then :
  34431. cat >>confdefs.h <<_ACEOF
  34432. #define HAVE_STRTOF 1
  34433. _ACEOF
  34434. fi
  34435. done
  34436. fi
  34437. CXXFLAGS="$ac_save_CXXFLAGS"
  34438. $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
  34439. $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
  34440. # We don't yet support AIX's TLS ABI.
  34441. #GCC_CHECK_TLS
  34442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  34443. $as_echo_n "checking for iconv... " >&6; }
  34444. if ${am_cv_func_iconv+:} false; then :
  34445. $as_echo_n "(cached) " >&6
  34446. else
  34447. am_cv_func_iconv="no, consider installing GNU libiconv"
  34448. am_cv_lib_iconv=no
  34449. am_save_CPPFLAGS="$CPPFLAGS"
  34450. CPPFLAGS="$CPPFLAGS $INCICONV"
  34451. if test x$gcc_no_link = xyes; then
  34452. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  34453. fi
  34454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34455. /* end confdefs.h. */
  34456. #include <stdlib.h>
  34457. #include <iconv.h>
  34458. int
  34459. main ()
  34460. {
  34461. iconv_t cd = iconv_open("","");
  34462. iconv(cd,NULL,NULL,NULL,NULL);
  34463. iconv_close(cd);
  34464. ;
  34465. return 0;
  34466. }
  34467. _ACEOF
  34468. if ac_fn_c_try_link "$LINENO"; then :
  34469. am_cv_func_iconv=yes
  34470. fi
  34471. rm -f core conftest.err conftest.$ac_objext \
  34472. conftest$ac_exeext conftest.$ac_ext
  34473. CPPFLAGS="$am_save_CPPFLAGS"
  34474. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  34475. for _libs in .libs _libs; do
  34476. am_save_CPPFLAGS="$CPPFLAGS"
  34477. am_save_LIBS="$LIBS"
  34478. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  34479. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  34480. if test x$gcc_no_link = xyes; then
  34481. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  34482. fi
  34483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34484. /* end confdefs.h. */
  34485. #include <stdlib.h>
  34486. #include <iconv.h>
  34487. int
  34488. main ()
  34489. {
  34490. iconv_t cd = iconv_open("","");
  34491. iconv(cd,NULL,NULL,NULL,NULL);
  34492. iconv_close(cd);
  34493. ;
  34494. return 0;
  34495. }
  34496. _ACEOF
  34497. if ac_fn_c_try_link "$LINENO"; then :
  34498. INCICONV="-I../libiconv/include"
  34499. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  34500. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  34501. am_cv_lib_iconv=yes
  34502. am_cv_func_iconv=yes
  34503. fi
  34504. rm -f core conftest.err conftest.$ac_objext \
  34505. conftest$ac_exeext conftest.$ac_ext
  34506. CPPFLAGS="$am_save_CPPFLAGS"
  34507. LIBS="$am_save_LIBS"
  34508. if test "$am_cv_func_iconv" = "yes"; then
  34509. break
  34510. fi
  34511. done
  34512. fi
  34513. if test "$am_cv_func_iconv" != yes; then
  34514. am_save_CPPFLAGS="$CPPFLAGS"
  34515. am_save_LIBS="$LIBS"
  34516. CPPFLAGS="$CPPFLAGS $INCICONV"
  34517. LIBS="$LIBS $LIBICONV"
  34518. if test x$gcc_no_link = xyes; then
  34519. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  34520. fi
  34521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34522. /* end confdefs.h. */
  34523. #include <stdlib.h>
  34524. #include <iconv.h>
  34525. int
  34526. main ()
  34527. {
  34528. iconv_t cd = iconv_open("","");
  34529. iconv(cd,NULL,NULL,NULL,NULL);
  34530. iconv_close(cd);
  34531. ;
  34532. return 0;
  34533. }
  34534. _ACEOF
  34535. if ac_fn_c_try_link "$LINENO"; then :
  34536. am_cv_lib_iconv=yes
  34537. am_cv_func_iconv=yes
  34538. fi
  34539. rm -f core conftest.err conftest.$ac_objext \
  34540. conftest$ac_exeext conftest.$ac_ext
  34541. CPPFLAGS="$am_save_CPPFLAGS"
  34542. LIBS="$am_save_LIBS"
  34543. fi
  34544. fi
  34545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  34546. $as_echo "$am_cv_func_iconv" >&6; }
  34547. if test "$am_cv_func_iconv" = yes; then
  34548. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  34549. fi
  34550. if test "$am_cv_lib_iconv" = yes; then
  34551. for element in $INCICONV; do
  34552. haveit=
  34553. for x in $CPPFLAGS; do
  34554. acl_save_prefix="$prefix"
  34555. prefix="$acl_final_prefix"
  34556. acl_save_exec_prefix="$exec_prefix"
  34557. exec_prefix="$acl_final_exec_prefix"
  34558. eval x=\"$x\"
  34559. exec_prefix="$acl_save_exec_prefix"
  34560. prefix="$acl_save_prefix"
  34561. if test "X$x" = "X$element"; then
  34562. haveit=yes
  34563. break
  34564. fi
  34565. done
  34566. if test -z "$haveit"; then
  34567. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  34568. fi
  34569. done
  34570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  34571. $as_echo_n "checking how to link with libiconv... " >&6; }
  34572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  34573. $as_echo "$LIBICONV" >&6; }
  34574. else
  34575. LIBICONV=
  34576. LTLIBICONV=
  34577. fi
  34578. if test "$am_cv_func_iconv" = yes; then
  34579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  34580. $as_echo_n "checking for iconv declaration... " >&6; }
  34581. if ${am_cv_proto_iconv+:} false; then :
  34582. $as_echo_n "(cached) " >&6
  34583. else
  34584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34585. /* end confdefs.h. */
  34586. #include <stdlib.h>
  34587. #include <iconv.h>
  34588. extern
  34589. #ifdef __cplusplus
  34590. "C"
  34591. #endif
  34592. #if defined(__STDC__) || defined(__cplusplus)
  34593. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  34594. #else
  34595. size_t iconv();
  34596. #endif
  34597. int
  34598. main ()
  34599. {
  34600. ;
  34601. return 0;
  34602. }
  34603. _ACEOF
  34604. if ac_fn_c_try_compile "$LINENO"; then :
  34605. am_cv_proto_iconv_arg1=""
  34606. else
  34607. am_cv_proto_iconv_arg1="const"
  34608. fi
  34609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34610. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  34611. fi
  34612. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  34613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  34614. }$am_cv_proto_iconv" >&5
  34615. $as_echo "${ac_t:-
  34616. }$am_cv_proto_iconv" >&6; }
  34617. cat >>confdefs.h <<_ACEOF
  34618. #define ICONV_CONST $am_cv_proto_iconv_arg1
  34619. _ACEOF
  34620. fi
  34621. $as_echo "#define HAVE_USELOCALE 1" >>confdefs.h
  34622. ;;
  34623. *-darwin*)
  34624. # Darwin versions vary, but the linker should work in a cross environment,
  34625. # so we just check for all the features here.
  34626. # Check for available headers.
  34627. # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
  34628. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  34629. ac_save_CXXFLAGS="$CXXFLAGS"
  34630. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  34631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  34632. $as_echo_n "checking for sin in -lm... " >&6; }
  34633. if ${ac_cv_lib_m_sin+:} false; then :
  34634. $as_echo_n "(cached) " >&6
  34635. else
  34636. ac_check_lib_save_LIBS=$LIBS
  34637. LIBS="-lm $LIBS"
  34638. if test x$gcc_no_link = xyes; then
  34639. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  34640. fi
  34641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34642. /* end confdefs.h. */
  34643. /* Override any GCC internal prototype to avoid an error.
  34644. Use char because int might match the return type of a GCC
  34645. builtin and then its argument prototype would still apply. */
  34646. #ifdef __cplusplus
  34647. extern "C"
  34648. #endif
  34649. char sin ();
  34650. int
  34651. main ()
  34652. {
  34653. return sin ();
  34654. ;
  34655. return 0;
  34656. }
  34657. _ACEOF
  34658. if ac_fn_c_try_link "$LINENO"; then :
  34659. ac_cv_lib_m_sin=yes
  34660. else
  34661. ac_cv_lib_m_sin=no
  34662. fi
  34663. rm -f core conftest.err conftest.$ac_objext \
  34664. conftest$ac_exeext conftest.$ac_ext
  34665. LIBS=$ac_check_lib_save_LIBS
  34666. fi
  34667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  34668. $as_echo "$ac_cv_lib_m_sin" >&6; }
  34669. if test "x$ac_cv_lib_m_sin" = xyes; then :
  34670. libm="-lm"
  34671. fi
  34672. ac_save_LIBS="$LIBS"
  34673. LIBS="$LIBS $libm"
  34674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  34675. $as_echo_n "checking for isinf declaration... " >&6; }
  34676. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  34677. if ${glibcxx_cv_func_isinf_use+:} false; then :
  34678. $as_echo_n "(cached) " >&6
  34679. else
  34680. ac_ext=cpp
  34681. ac_cpp='$CXXCPP $CPPFLAGS'
  34682. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34683. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34684. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34686. /* end confdefs.h. */
  34687. #include <math.h>
  34688. #ifdef HAVE_IEEEFP_H
  34689. #include <ieeefp.h>
  34690. #endif
  34691. int
  34692. main ()
  34693. {
  34694. isinf(0);
  34695. ;
  34696. return 0;
  34697. }
  34698. _ACEOF
  34699. if ac_fn_cxx_try_compile "$LINENO"; then :
  34700. glibcxx_cv_func_isinf_use=yes
  34701. else
  34702. glibcxx_cv_func_isinf_use=no
  34703. fi
  34704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34705. ac_ext=c
  34706. ac_cpp='$CPP $CPPFLAGS'
  34707. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34708. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34709. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34710. fi
  34711. fi
  34712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  34713. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  34714. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  34715. for ac_func in isinf
  34716. do :
  34717. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  34718. if test "x$ac_cv_func_isinf" = xyes; then :
  34719. cat >>confdefs.h <<_ACEOF
  34720. #define HAVE_ISINF 1
  34721. _ACEOF
  34722. fi
  34723. done
  34724. else
  34725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  34726. $as_echo_n "checking for _isinf declaration... " >&6; }
  34727. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  34728. if ${glibcxx_cv_func__isinf_use+:} false; then :
  34729. $as_echo_n "(cached) " >&6
  34730. else
  34731. ac_ext=cpp
  34732. ac_cpp='$CXXCPP $CPPFLAGS'
  34733. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34734. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34735. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34737. /* end confdefs.h. */
  34738. #include <math.h>
  34739. #ifdef HAVE_IEEEFP_H
  34740. #include <ieeefp.h>
  34741. #endif
  34742. int
  34743. main ()
  34744. {
  34745. _isinf(0);
  34746. ;
  34747. return 0;
  34748. }
  34749. _ACEOF
  34750. if ac_fn_cxx_try_compile "$LINENO"; then :
  34751. glibcxx_cv_func__isinf_use=yes
  34752. else
  34753. glibcxx_cv_func__isinf_use=no
  34754. fi
  34755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34756. ac_ext=c
  34757. ac_cpp='$CPP $CPPFLAGS'
  34758. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34759. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34760. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34761. fi
  34762. fi
  34763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  34764. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  34765. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  34766. for ac_func in _isinf
  34767. do :
  34768. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  34769. if test "x$ac_cv_func__isinf" = xyes; then :
  34770. cat >>confdefs.h <<_ACEOF
  34771. #define HAVE__ISINF 1
  34772. _ACEOF
  34773. fi
  34774. done
  34775. fi
  34776. fi
  34777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  34778. $as_echo_n "checking for isnan declaration... " >&6; }
  34779. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  34780. if ${glibcxx_cv_func_isnan_use+:} false; then :
  34781. $as_echo_n "(cached) " >&6
  34782. else
  34783. ac_ext=cpp
  34784. ac_cpp='$CXXCPP $CPPFLAGS'
  34785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34789. /* end confdefs.h. */
  34790. #include <math.h>
  34791. #ifdef HAVE_IEEEFP_H
  34792. #include <ieeefp.h>
  34793. #endif
  34794. int
  34795. main ()
  34796. {
  34797. isnan(0);
  34798. ;
  34799. return 0;
  34800. }
  34801. _ACEOF
  34802. if ac_fn_cxx_try_compile "$LINENO"; then :
  34803. glibcxx_cv_func_isnan_use=yes
  34804. else
  34805. glibcxx_cv_func_isnan_use=no
  34806. fi
  34807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34808. ac_ext=c
  34809. ac_cpp='$CPP $CPPFLAGS'
  34810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34813. fi
  34814. fi
  34815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  34816. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  34817. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  34818. for ac_func in isnan
  34819. do :
  34820. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  34821. if test "x$ac_cv_func_isnan" = xyes; then :
  34822. cat >>confdefs.h <<_ACEOF
  34823. #define HAVE_ISNAN 1
  34824. _ACEOF
  34825. fi
  34826. done
  34827. else
  34828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  34829. $as_echo_n "checking for _isnan declaration... " >&6; }
  34830. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  34831. if ${glibcxx_cv_func__isnan_use+:} false; then :
  34832. $as_echo_n "(cached) " >&6
  34833. else
  34834. ac_ext=cpp
  34835. ac_cpp='$CXXCPP $CPPFLAGS'
  34836. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34837. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34838. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34840. /* end confdefs.h. */
  34841. #include <math.h>
  34842. #ifdef HAVE_IEEEFP_H
  34843. #include <ieeefp.h>
  34844. #endif
  34845. int
  34846. main ()
  34847. {
  34848. _isnan(0);
  34849. ;
  34850. return 0;
  34851. }
  34852. _ACEOF
  34853. if ac_fn_cxx_try_compile "$LINENO"; then :
  34854. glibcxx_cv_func__isnan_use=yes
  34855. else
  34856. glibcxx_cv_func__isnan_use=no
  34857. fi
  34858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34859. ac_ext=c
  34860. ac_cpp='$CPP $CPPFLAGS'
  34861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34864. fi
  34865. fi
  34866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  34867. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  34868. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  34869. for ac_func in _isnan
  34870. do :
  34871. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  34872. if test "x$ac_cv_func__isnan" = xyes; then :
  34873. cat >>confdefs.h <<_ACEOF
  34874. #define HAVE__ISNAN 1
  34875. _ACEOF
  34876. fi
  34877. done
  34878. fi
  34879. fi
  34880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  34881. $as_echo_n "checking for finite declaration... " >&6; }
  34882. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  34883. if ${glibcxx_cv_func_finite_use+:} false; then :
  34884. $as_echo_n "(cached) " >&6
  34885. else
  34886. ac_ext=cpp
  34887. ac_cpp='$CXXCPP $CPPFLAGS'
  34888. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34889. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34890. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34892. /* end confdefs.h. */
  34893. #include <math.h>
  34894. #ifdef HAVE_IEEEFP_H
  34895. #include <ieeefp.h>
  34896. #endif
  34897. int
  34898. main ()
  34899. {
  34900. finite(0);
  34901. ;
  34902. return 0;
  34903. }
  34904. _ACEOF
  34905. if ac_fn_cxx_try_compile "$LINENO"; then :
  34906. glibcxx_cv_func_finite_use=yes
  34907. else
  34908. glibcxx_cv_func_finite_use=no
  34909. fi
  34910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34911. ac_ext=c
  34912. ac_cpp='$CPP $CPPFLAGS'
  34913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34916. fi
  34917. fi
  34918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  34919. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  34920. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  34921. for ac_func in finite
  34922. do :
  34923. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  34924. if test "x$ac_cv_func_finite" = xyes; then :
  34925. cat >>confdefs.h <<_ACEOF
  34926. #define HAVE_FINITE 1
  34927. _ACEOF
  34928. fi
  34929. done
  34930. else
  34931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  34932. $as_echo_n "checking for _finite declaration... " >&6; }
  34933. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  34934. if ${glibcxx_cv_func__finite_use+:} false; then :
  34935. $as_echo_n "(cached) " >&6
  34936. else
  34937. ac_ext=cpp
  34938. ac_cpp='$CXXCPP $CPPFLAGS'
  34939. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34940. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34941. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34943. /* end confdefs.h. */
  34944. #include <math.h>
  34945. #ifdef HAVE_IEEEFP_H
  34946. #include <ieeefp.h>
  34947. #endif
  34948. int
  34949. main ()
  34950. {
  34951. _finite(0);
  34952. ;
  34953. return 0;
  34954. }
  34955. _ACEOF
  34956. if ac_fn_cxx_try_compile "$LINENO"; then :
  34957. glibcxx_cv_func__finite_use=yes
  34958. else
  34959. glibcxx_cv_func__finite_use=no
  34960. fi
  34961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34962. ac_ext=c
  34963. ac_cpp='$CPP $CPPFLAGS'
  34964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  34967. fi
  34968. fi
  34969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  34970. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  34971. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  34972. for ac_func in _finite
  34973. do :
  34974. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  34975. if test "x$ac_cv_func__finite" = xyes; then :
  34976. cat >>confdefs.h <<_ACEOF
  34977. #define HAVE__FINITE 1
  34978. _ACEOF
  34979. fi
  34980. done
  34981. fi
  34982. fi
  34983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  34984. $as_echo_n "checking for sincos declaration... " >&6; }
  34985. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  34986. if ${glibcxx_cv_func_sincos_use+:} false; then :
  34987. $as_echo_n "(cached) " >&6
  34988. else
  34989. ac_ext=cpp
  34990. ac_cpp='$CXXCPP $CPPFLAGS'
  34991. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  34992. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  34993. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  34994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34995. /* end confdefs.h. */
  34996. #include <math.h>
  34997. int
  34998. main ()
  34999. {
  35000. sincos(0, 0, 0);
  35001. ;
  35002. return 0;
  35003. }
  35004. _ACEOF
  35005. if ac_fn_cxx_try_compile "$LINENO"; then :
  35006. glibcxx_cv_func_sincos_use=yes
  35007. else
  35008. glibcxx_cv_func_sincos_use=no
  35009. fi
  35010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35011. ac_ext=c
  35012. ac_cpp='$CPP $CPPFLAGS'
  35013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35016. fi
  35017. fi
  35018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  35019. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  35020. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  35021. for ac_func in sincos
  35022. do :
  35023. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  35024. if test "x$ac_cv_func_sincos" = xyes; then :
  35025. cat >>confdefs.h <<_ACEOF
  35026. #define HAVE_SINCOS 1
  35027. _ACEOF
  35028. fi
  35029. done
  35030. else
  35031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  35032. $as_echo_n "checking for _sincos declaration... " >&6; }
  35033. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  35034. if ${glibcxx_cv_func__sincos_use+:} false; then :
  35035. $as_echo_n "(cached) " >&6
  35036. else
  35037. ac_ext=cpp
  35038. ac_cpp='$CXXCPP $CPPFLAGS'
  35039. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35040. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35041. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35043. /* end confdefs.h. */
  35044. #include <math.h>
  35045. int
  35046. main ()
  35047. {
  35048. _sincos(0, 0, 0);
  35049. ;
  35050. return 0;
  35051. }
  35052. _ACEOF
  35053. if ac_fn_cxx_try_compile "$LINENO"; then :
  35054. glibcxx_cv_func__sincos_use=yes
  35055. else
  35056. glibcxx_cv_func__sincos_use=no
  35057. fi
  35058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35059. ac_ext=c
  35060. ac_cpp='$CPP $CPPFLAGS'
  35061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35064. fi
  35065. fi
  35066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  35067. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  35068. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  35069. for ac_func in _sincos
  35070. do :
  35071. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  35072. if test "x$ac_cv_func__sincos" = xyes; then :
  35073. cat >>confdefs.h <<_ACEOF
  35074. #define HAVE__SINCOS 1
  35075. _ACEOF
  35076. fi
  35077. done
  35078. fi
  35079. fi
  35080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  35081. $as_echo_n "checking for fpclass declaration... " >&6; }
  35082. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  35083. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  35084. $as_echo_n "(cached) " >&6
  35085. else
  35086. ac_ext=cpp
  35087. ac_cpp='$CXXCPP $CPPFLAGS'
  35088. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35089. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35090. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35092. /* end confdefs.h. */
  35093. #include <math.h>
  35094. #ifdef HAVE_IEEEFP_H
  35095. #include <ieeefp.h>
  35096. #endif
  35097. int
  35098. main ()
  35099. {
  35100. fpclass(0);
  35101. ;
  35102. return 0;
  35103. }
  35104. _ACEOF
  35105. if ac_fn_cxx_try_compile "$LINENO"; then :
  35106. glibcxx_cv_func_fpclass_use=yes
  35107. else
  35108. glibcxx_cv_func_fpclass_use=no
  35109. fi
  35110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35111. ac_ext=c
  35112. ac_cpp='$CPP $CPPFLAGS'
  35113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35116. fi
  35117. fi
  35118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  35119. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  35120. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  35121. for ac_func in fpclass
  35122. do :
  35123. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  35124. if test "x$ac_cv_func_fpclass" = xyes; then :
  35125. cat >>confdefs.h <<_ACEOF
  35126. #define HAVE_FPCLASS 1
  35127. _ACEOF
  35128. fi
  35129. done
  35130. else
  35131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  35132. $as_echo_n "checking for _fpclass declaration... " >&6; }
  35133. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  35134. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  35135. $as_echo_n "(cached) " >&6
  35136. else
  35137. ac_ext=cpp
  35138. ac_cpp='$CXXCPP $CPPFLAGS'
  35139. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35140. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35141. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35143. /* end confdefs.h. */
  35144. #include <math.h>
  35145. #ifdef HAVE_IEEEFP_H
  35146. #include <ieeefp.h>
  35147. #endif
  35148. int
  35149. main ()
  35150. {
  35151. _fpclass(0);
  35152. ;
  35153. return 0;
  35154. }
  35155. _ACEOF
  35156. if ac_fn_cxx_try_compile "$LINENO"; then :
  35157. glibcxx_cv_func__fpclass_use=yes
  35158. else
  35159. glibcxx_cv_func__fpclass_use=no
  35160. fi
  35161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35162. ac_ext=c
  35163. ac_cpp='$CPP $CPPFLAGS'
  35164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35167. fi
  35168. fi
  35169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  35170. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  35171. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  35172. for ac_func in _fpclass
  35173. do :
  35174. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  35175. if test "x$ac_cv_func__fpclass" = xyes; then :
  35176. cat >>confdefs.h <<_ACEOF
  35177. #define HAVE__FPCLASS 1
  35178. _ACEOF
  35179. fi
  35180. done
  35181. fi
  35182. fi
  35183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  35184. $as_echo_n "checking for qfpclass declaration... " >&6; }
  35185. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  35186. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  35187. $as_echo_n "(cached) " >&6
  35188. else
  35189. ac_ext=cpp
  35190. ac_cpp='$CXXCPP $CPPFLAGS'
  35191. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35192. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35193. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35195. /* end confdefs.h. */
  35196. #include <math.h>
  35197. #ifdef HAVE_IEEEFP_H
  35198. #include <ieeefp.h>
  35199. #endif
  35200. int
  35201. main ()
  35202. {
  35203. qfpclass(0);
  35204. ;
  35205. return 0;
  35206. }
  35207. _ACEOF
  35208. if ac_fn_cxx_try_compile "$LINENO"; then :
  35209. glibcxx_cv_func_qfpclass_use=yes
  35210. else
  35211. glibcxx_cv_func_qfpclass_use=no
  35212. fi
  35213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35214. ac_ext=c
  35215. ac_cpp='$CPP $CPPFLAGS'
  35216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35219. fi
  35220. fi
  35221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  35222. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  35223. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  35224. for ac_func in qfpclass
  35225. do :
  35226. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  35227. if test "x$ac_cv_func_qfpclass" = xyes; then :
  35228. cat >>confdefs.h <<_ACEOF
  35229. #define HAVE_QFPCLASS 1
  35230. _ACEOF
  35231. fi
  35232. done
  35233. else
  35234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  35235. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  35236. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  35237. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  35238. $as_echo_n "(cached) " >&6
  35239. else
  35240. ac_ext=cpp
  35241. ac_cpp='$CXXCPP $CPPFLAGS'
  35242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35246. /* end confdefs.h. */
  35247. #include <math.h>
  35248. #ifdef HAVE_IEEEFP_H
  35249. #include <ieeefp.h>
  35250. #endif
  35251. int
  35252. main ()
  35253. {
  35254. _qfpclass(0);
  35255. ;
  35256. return 0;
  35257. }
  35258. _ACEOF
  35259. if ac_fn_cxx_try_compile "$LINENO"; then :
  35260. glibcxx_cv_func__qfpclass_use=yes
  35261. else
  35262. glibcxx_cv_func__qfpclass_use=no
  35263. fi
  35264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35265. ac_ext=c
  35266. ac_cpp='$CPP $CPPFLAGS'
  35267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35270. fi
  35271. fi
  35272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  35273. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  35274. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  35275. for ac_func in _qfpclass
  35276. do :
  35277. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  35278. if test "x$ac_cv_func__qfpclass" = xyes; then :
  35279. cat >>confdefs.h <<_ACEOF
  35280. #define HAVE__QFPCLASS 1
  35281. _ACEOF
  35282. fi
  35283. done
  35284. fi
  35285. fi
  35286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  35287. $as_echo_n "checking for hypot declaration... " >&6; }
  35288. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  35289. if ${glibcxx_cv_func_hypot_use+:} false; then :
  35290. $as_echo_n "(cached) " >&6
  35291. else
  35292. ac_ext=cpp
  35293. ac_cpp='$CXXCPP $CPPFLAGS'
  35294. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35295. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35296. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35298. /* end confdefs.h. */
  35299. #include <math.h>
  35300. int
  35301. main ()
  35302. {
  35303. hypot(0, 0);
  35304. ;
  35305. return 0;
  35306. }
  35307. _ACEOF
  35308. if ac_fn_cxx_try_compile "$LINENO"; then :
  35309. glibcxx_cv_func_hypot_use=yes
  35310. else
  35311. glibcxx_cv_func_hypot_use=no
  35312. fi
  35313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35314. ac_ext=c
  35315. ac_cpp='$CPP $CPPFLAGS'
  35316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35319. fi
  35320. fi
  35321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  35322. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  35323. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  35324. for ac_func in hypot
  35325. do :
  35326. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  35327. if test "x$ac_cv_func_hypot" = xyes; then :
  35328. cat >>confdefs.h <<_ACEOF
  35329. #define HAVE_HYPOT 1
  35330. _ACEOF
  35331. fi
  35332. done
  35333. else
  35334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  35335. $as_echo_n "checking for _hypot declaration... " >&6; }
  35336. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  35337. if ${glibcxx_cv_func__hypot_use+:} false; then :
  35338. $as_echo_n "(cached) " >&6
  35339. else
  35340. ac_ext=cpp
  35341. ac_cpp='$CXXCPP $CPPFLAGS'
  35342. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35343. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35344. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35346. /* end confdefs.h. */
  35347. #include <math.h>
  35348. int
  35349. main ()
  35350. {
  35351. _hypot(0, 0);
  35352. ;
  35353. return 0;
  35354. }
  35355. _ACEOF
  35356. if ac_fn_cxx_try_compile "$LINENO"; then :
  35357. glibcxx_cv_func__hypot_use=yes
  35358. else
  35359. glibcxx_cv_func__hypot_use=no
  35360. fi
  35361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35362. ac_ext=c
  35363. ac_cpp='$CPP $CPPFLAGS'
  35364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35367. fi
  35368. fi
  35369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  35370. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  35371. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  35372. for ac_func in _hypot
  35373. do :
  35374. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  35375. if test "x$ac_cv_func__hypot" = xyes; then :
  35376. cat >>confdefs.h <<_ACEOF
  35377. #define HAVE__HYPOT 1
  35378. _ACEOF
  35379. fi
  35380. done
  35381. fi
  35382. fi
  35383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  35384. $as_echo_n "checking for float trig functions... " >&6; }
  35385. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  35386. $as_echo_n "(cached) " >&6
  35387. else
  35388. ac_ext=cpp
  35389. ac_cpp='$CXXCPP $CPPFLAGS'
  35390. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35391. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35392. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35394. /* end confdefs.h. */
  35395. #include <math.h>
  35396. int
  35397. main ()
  35398. {
  35399. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  35400. ;
  35401. return 0;
  35402. }
  35403. _ACEOF
  35404. if ac_fn_cxx_try_compile "$LINENO"; then :
  35405. glibcxx_cv_func_float_trig_use=yes
  35406. else
  35407. glibcxx_cv_func_float_trig_use=no
  35408. fi
  35409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35410. ac_ext=c
  35411. ac_cpp='$CPP $CPPFLAGS'
  35412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35415. fi
  35416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  35417. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  35418. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  35419. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  35420. do :
  35421. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35422. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  35423. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  35424. cat >>confdefs.h <<_ACEOF
  35425. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35426. _ACEOF
  35427. fi
  35428. done
  35429. else
  35430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  35431. $as_echo_n "checking for _float trig functions... " >&6; }
  35432. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  35433. $as_echo_n "(cached) " >&6
  35434. else
  35435. ac_ext=cpp
  35436. ac_cpp='$CXXCPP $CPPFLAGS'
  35437. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35438. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35439. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35441. /* end confdefs.h. */
  35442. #include <math.h>
  35443. int
  35444. main ()
  35445. {
  35446. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  35447. ;
  35448. return 0;
  35449. }
  35450. _ACEOF
  35451. if ac_fn_cxx_try_compile "$LINENO"; then :
  35452. glibcxx_cv_func__float_trig_use=yes
  35453. else
  35454. glibcxx_cv_func__float_trig_use=no
  35455. fi
  35456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35457. ac_ext=c
  35458. ac_cpp='$CPP $CPPFLAGS'
  35459. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35460. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35461. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35462. fi
  35463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  35464. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  35465. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  35466. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  35467. do :
  35468. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35469. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  35470. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  35471. cat >>confdefs.h <<_ACEOF
  35472. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35473. _ACEOF
  35474. fi
  35475. done
  35476. fi
  35477. fi
  35478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  35479. $as_echo_n "checking for float round functions... " >&6; }
  35480. if ${glibcxx_cv_func_float_round_use+:} false; then :
  35481. $as_echo_n "(cached) " >&6
  35482. else
  35483. ac_ext=cpp
  35484. ac_cpp='$CXXCPP $CPPFLAGS'
  35485. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35486. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35487. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35489. /* end confdefs.h. */
  35490. #include <math.h>
  35491. int
  35492. main ()
  35493. {
  35494. ceilf (0); floorf (0);
  35495. ;
  35496. return 0;
  35497. }
  35498. _ACEOF
  35499. if ac_fn_cxx_try_compile "$LINENO"; then :
  35500. glibcxx_cv_func_float_round_use=yes
  35501. else
  35502. glibcxx_cv_func_float_round_use=no
  35503. fi
  35504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35505. ac_ext=c
  35506. ac_cpp='$CPP $CPPFLAGS'
  35507. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35510. fi
  35511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  35512. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  35513. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  35514. for ac_func in ceilf floorf
  35515. do :
  35516. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35517. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  35518. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  35519. cat >>confdefs.h <<_ACEOF
  35520. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35521. _ACEOF
  35522. fi
  35523. done
  35524. else
  35525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  35526. $as_echo_n "checking for _float round functions... " >&6; }
  35527. if ${glibcxx_cv_func__float_round_use+:} false; then :
  35528. $as_echo_n "(cached) " >&6
  35529. else
  35530. ac_ext=cpp
  35531. ac_cpp='$CXXCPP $CPPFLAGS'
  35532. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35533. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35534. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35536. /* end confdefs.h. */
  35537. #include <math.h>
  35538. int
  35539. main ()
  35540. {
  35541. _ceilf (0); _floorf (0);
  35542. ;
  35543. return 0;
  35544. }
  35545. _ACEOF
  35546. if ac_fn_cxx_try_compile "$LINENO"; then :
  35547. glibcxx_cv_func__float_round_use=yes
  35548. else
  35549. glibcxx_cv_func__float_round_use=no
  35550. fi
  35551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35552. ac_ext=c
  35553. ac_cpp='$CPP $CPPFLAGS'
  35554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35557. fi
  35558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  35559. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  35560. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  35561. for ac_func in _ceilf _floorf
  35562. do :
  35563. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  35564. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  35565. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  35566. cat >>confdefs.h <<_ACEOF
  35567. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  35568. _ACEOF
  35569. fi
  35570. done
  35571. fi
  35572. fi
  35573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  35574. $as_echo_n "checking for expf declaration... " >&6; }
  35575. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  35576. if ${glibcxx_cv_func_expf_use+:} false; then :
  35577. $as_echo_n "(cached) " >&6
  35578. else
  35579. ac_ext=cpp
  35580. ac_cpp='$CXXCPP $CPPFLAGS'
  35581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35585. /* end confdefs.h. */
  35586. #include <math.h>
  35587. #ifdef HAVE_IEEEFP_H
  35588. #include <ieeefp.h>
  35589. #endif
  35590. int
  35591. main ()
  35592. {
  35593. expf(0);
  35594. ;
  35595. return 0;
  35596. }
  35597. _ACEOF
  35598. if ac_fn_cxx_try_compile "$LINENO"; then :
  35599. glibcxx_cv_func_expf_use=yes
  35600. else
  35601. glibcxx_cv_func_expf_use=no
  35602. fi
  35603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35604. ac_ext=c
  35605. ac_cpp='$CPP $CPPFLAGS'
  35606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35609. fi
  35610. fi
  35611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  35612. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  35613. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  35614. for ac_func in expf
  35615. do :
  35616. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  35617. if test "x$ac_cv_func_expf" = xyes; then :
  35618. cat >>confdefs.h <<_ACEOF
  35619. #define HAVE_EXPF 1
  35620. _ACEOF
  35621. fi
  35622. done
  35623. else
  35624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  35625. $as_echo_n "checking for _expf declaration... " >&6; }
  35626. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  35627. if ${glibcxx_cv_func__expf_use+:} false; then :
  35628. $as_echo_n "(cached) " >&6
  35629. else
  35630. ac_ext=cpp
  35631. ac_cpp='$CXXCPP $CPPFLAGS'
  35632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35636. /* end confdefs.h. */
  35637. #include <math.h>
  35638. #ifdef HAVE_IEEEFP_H
  35639. #include <ieeefp.h>
  35640. #endif
  35641. int
  35642. main ()
  35643. {
  35644. _expf(0);
  35645. ;
  35646. return 0;
  35647. }
  35648. _ACEOF
  35649. if ac_fn_cxx_try_compile "$LINENO"; then :
  35650. glibcxx_cv_func__expf_use=yes
  35651. else
  35652. glibcxx_cv_func__expf_use=no
  35653. fi
  35654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35655. ac_ext=c
  35656. ac_cpp='$CPP $CPPFLAGS'
  35657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35660. fi
  35661. fi
  35662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  35663. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  35664. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  35665. for ac_func in _expf
  35666. do :
  35667. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  35668. if test "x$ac_cv_func__expf" = xyes; then :
  35669. cat >>confdefs.h <<_ACEOF
  35670. #define HAVE__EXPF 1
  35671. _ACEOF
  35672. fi
  35673. done
  35674. fi
  35675. fi
  35676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  35677. $as_echo_n "checking for isnanf declaration... " >&6; }
  35678. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  35679. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  35680. $as_echo_n "(cached) " >&6
  35681. else
  35682. ac_ext=cpp
  35683. ac_cpp='$CXXCPP $CPPFLAGS'
  35684. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35685. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35686. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35688. /* end confdefs.h. */
  35689. #include <math.h>
  35690. #ifdef HAVE_IEEEFP_H
  35691. #include <ieeefp.h>
  35692. #endif
  35693. int
  35694. main ()
  35695. {
  35696. isnanf(0);
  35697. ;
  35698. return 0;
  35699. }
  35700. _ACEOF
  35701. if ac_fn_cxx_try_compile "$LINENO"; then :
  35702. glibcxx_cv_func_isnanf_use=yes
  35703. else
  35704. glibcxx_cv_func_isnanf_use=no
  35705. fi
  35706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35707. ac_ext=c
  35708. ac_cpp='$CPP $CPPFLAGS'
  35709. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35710. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35711. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35712. fi
  35713. fi
  35714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  35715. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  35716. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  35717. for ac_func in isnanf
  35718. do :
  35719. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  35720. if test "x$ac_cv_func_isnanf" = xyes; then :
  35721. cat >>confdefs.h <<_ACEOF
  35722. #define HAVE_ISNANF 1
  35723. _ACEOF
  35724. fi
  35725. done
  35726. else
  35727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  35728. $as_echo_n "checking for _isnanf declaration... " >&6; }
  35729. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  35730. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  35731. $as_echo_n "(cached) " >&6
  35732. else
  35733. ac_ext=cpp
  35734. ac_cpp='$CXXCPP $CPPFLAGS'
  35735. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35736. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35737. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35739. /* end confdefs.h. */
  35740. #include <math.h>
  35741. #ifdef HAVE_IEEEFP_H
  35742. #include <ieeefp.h>
  35743. #endif
  35744. int
  35745. main ()
  35746. {
  35747. _isnanf(0);
  35748. ;
  35749. return 0;
  35750. }
  35751. _ACEOF
  35752. if ac_fn_cxx_try_compile "$LINENO"; then :
  35753. glibcxx_cv_func__isnanf_use=yes
  35754. else
  35755. glibcxx_cv_func__isnanf_use=no
  35756. fi
  35757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35758. ac_ext=c
  35759. ac_cpp='$CPP $CPPFLAGS'
  35760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35763. fi
  35764. fi
  35765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  35766. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  35767. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  35768. for ac_func in _isnanf
  35769. do :
  35770. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  35771. if test "x$ac_cv_func__isnanf" = xyes; then :
  35772. cat >>confdefs.h <<_ACEOF
  35773. #define HAVE__ISNANF 1
  35774. _ACEOF
  35775. fi
  35776. done
  35777. fi
  35778. fi
  35779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  35780. $as_echo_n "checking for isinff declaration... " >&6; }
  35781. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  35782. if ${glibcxx_cv_func_isinff_use+:} false; then :
  35783. $as_echo_n "(cached) " >&6
  35784. else
  35785. ac_ext=cpp
  35786. ac_cpp='$CXXCPP $CPPFLAGS'
  35787. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35788. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35789. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35791. /* end confdefs.h. */
  35792. #include <math.h>
  35793. #ifdef HAVE_IEEEFP_H
  35794. #include <ieeefp.h>
  35795. #endif
  35796. int
  35797. main ()
  35798. {
  35799. isinff(0);
  35800. ;
  35801. return 0;
  35802. }
  35803. _ACEOF
  35804. if ac_fn_cxx_try_compile "$LINENO"; then :
  35805. glibcxx_cv_func_isinff_use=yes
  35806. else
  35807. glibcxx_cv_func_isinff_use=no
  35808. fi
  35809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35810. ac_ext=c
  35811. ac_cpp='$CPP $CPPFLAGS'
  35812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35815. fi
  35816. fi
  35817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  35818. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  35819. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  35820. for ac_func in isinff
  35821. do :
  35822. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  35823. if test "x$ac_cv_func_isinff" = xyes; then :
  35824. cat >>confdefs.h <<_ACEOF
  35825. #define HAVE_ISINFF 1
  35826. _ACEOF
  35827. fi
  35828. done
  35829. else
  35830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  35831. $as_echo_n "checking for _isinff declaration... " >&6; }
  35832. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  35833. if ${glibcxx_cv_func__isinff_use+:} false; then :
  35834. $as_echo_n "(cached) " >&6
  35835. else
  35836. ac_ext=cpp
  35837. ac_cpp='$CXXCPP $CPPFLAGS'
  35838. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35839. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35840. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35842. /* end confdefs.h. */
  35843. #include <math.h>
  35844. #ifdef HAVE_IEEEFP_H
  35845. #include <ieeefp.h>
  35846. #endif
  35847. int
  35848. main ()
  35849. {
  35850. _isinff(0);
  35851. ;
  35852. return 0;
  35853. }
  35854. _ACEOF
  35855. if ac_fn_cxx_try_compile "$LINENO"; then :
  35856. glibcxx_cv_func__isinff_use=yes
  35857. else
  35858. glibcxx_cv_func__isinff_use=no
  35859. fi
  35860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35861. ac_ext=c
  35862. ac_cpp='$CPP $CPPFLAGS'
  35863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35866. fi
  35867. fi
  35868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  35869. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  35870. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  35871. for ac_func in _isinff
  35872. do :
  35873. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  35874. if test "x$ac_cv_func__isinff" = xyes; then :
  35875. cat >>confdefs.h <<_ACEOF
  35876. #define HAVE__ISINFF 1
  35877. _ACEOF
  35878. fi
  35879. done
  35880. fi
  35881. fi
  35882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  35883. $as_echo_n "checking for atan2f declaration... " >&6; }
  35884. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  35885. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  35886. $as_echo_n "(cached) " >&6
  35887. else
  35888. ac_ext=cpp
  35889. ac_cpp='$CXXCPP $CPPFLAGS'
  35890. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35891. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35892. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35894. /* end confdefs.h. */
  35895. #include <math.h>
  35896. int
  35897. main ()
  35898. {
  35899. atan2f(0, 0);
  35900. ;
  35901. return 0;
  35902. }
  35903. _ACEOF
  35904. if ac_fn_cxx_try_compile "$LINENO"; then :
  35905. glibcxx_cv_func_atan2f_use=yes
  35906. else
  35907. glibcxx_cv_func_atan2f_use=no
  35908. fi
  35909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35910. ac_ext=c
  35911. ac_cpp='$CPP $CPPFLAGS'
  35912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35915. fi
  35916. fi
  35917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  35918. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  35919. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  35920. for ac_func in atan2f
  35921. do :
  35922. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  35923. if test "x$ac_cv_func_atan2f" = xyes; then :
  35924. cat >>confdefs.h <<_ACEOF
  35925. #define HAVE_ATAN2F 1
  35926. _ACEOF
  35927. fi
  35928. done
  35929. else
  35930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  35931. $as_echo_n "checking for _atan2f declaration... " >&6; }
  35932. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  35933. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  35934. $as_echo_n "(cached) " >&6
  35935. else
  35936. ac_ext=cpp
  35937. ac_cpp='$CXXCPP $CPPFLAGS'
  35938. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35939. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35940. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35942. /* end confdefs.h. */
  35943. #include <math.h>
  35944. int
  35945. main ()
  35946. {
  35947. _atan2f(0, 0);
  35948. ;
  35949. return 0;
  35950. }
  35951. _ACEOF
  35952. if ac_fn_cxx_try_compile "$LINENO"; then :
  35953. glibcxx_cv_func__atan2f_use=yes
  35954. else
  35955. glibcxx_cv_func__atan2f_use=no
  35956. fi
  35957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  35958. ac_ext=c
  35959. ac_cpp='$CPP $CPPFLAGS'
  35960. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35961. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35962. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35963. fi
  35964. fi
  35965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  35966. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  35967. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  35968. for ac_func in _atan2f
  35969. do :
  35970. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  35971. if test "x$ac_cv_func__atan2f" = xyes; then :
  35972. cat >>confdefs.h <<_ACEOF
  35973. #define HAVE__ATAN2F 1
  35974. _ACEOF
  35975. fi
  35976. done
  35977. fi
  35978. fi
  35979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  35980. $as_echo_n "checking for fabsf declaration... " >&6; }
  35981. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  35982. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  35983. $as_echo_n "(cached) " >&6
  35984. else
  35985. ac_ext=cpp
  35986. ac_cpp='$CXXCPP $CPPFLAGS'
  35987. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35988. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35989. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  35990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35991. /* end confdefs.h. */
  35992. #include <math.h>
  35993. #ifdef HAVE_IEEEFP_H
  35994. #include <ieeefp.h>
  35995. #endif
  35996. int
  35997. main ()
  35998. {
  35999. fabsf(0);
  36000. ;
  36001. return 0;
  36002. }
  36003. _ACEOF
  36004. if ac_fn_cxx_try_compile "$LINENO"; then :
  36005. glibcxx_cv_func_fabsf_use=yes
  36006. else
  36007. glibcxx_cv_func_fabsf_use=no
  36008. fi
  36009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36010. ac_ext=c
  36011. ac_cpp='$CPP $CPPFLAGS'
  36012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36015. fi
  36016. fi
  36017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  36018. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  36019. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  36020. for ac_func in fabsf
  36021. do :
  36022. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  36023. if test "x$ac_cv_func_fabsf" = xyes; then :
  36024. cat >>confdefs.h <<_ACEOF
  36025. #define HAVE_FABSF 1
  36026. _ACEOF
  36027. fi
  36028. done
  36029. else
  36030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  36031. $as_echo_n "checking for _fabsf declaration... " >&6; }
  36032. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  36033. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  36034. $as_echo_n "(cached) " >&6
  36035. else
  36036. ac_ext=cpp
  36037. ac_cpp='$CXXCPP $CPPFLAGS'
  36038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36042. /* end confdefs.h. */
  36043. #include <math.h>
  36044. #ifdef HAVE_IEEEFP_H
  36045. #include <ieeefp.h>
  36046. #endif
  36047. int
  36048. main ()
  36049. {
  36050. _fabsf(0);
  36051. ;
  36052. return 0;
  36053. }
  36054. _ACEOF
  36055. if ac_fn_cxx_try_compile "$LINENO"; then :
  36056. glibcxx_cv_func__fabsf_use=yes
  36057. else
  36058. glibcxx_cv_func__fabsf_use=no
  36059. fi
  36060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36061. ac_ext=c
  36062. ac_cpp='$CPP $CPPFLAGS'
  36063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36066. fi
  36067. fi
  36068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  36069. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  36070. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  36071. for ac_func in _fabsf
  36072. do :
  36073. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  36074. if test "x$ac_cv_func__fabsf" = xyes; then :
  36075. cat >>confdefs.h <<_ACEOF
  36076. #define HAVE__FABSF 1
  36077. _ACEOF
  36078. fi
  36079. done
  36080. fi
  36081. fi
  36082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  36083. $as_echo_n "checking for fmodf declaration... " >&6; }
  36084. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  36085. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  36086. $as_echo_n "(cached) " >&6
  36087. else
  36088. ac_ext=cpp
  36089. ac_cpp='$CXXCPP $CPPFLAGS'
  36090. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36091. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36092. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36094. /* end confdefs.h. */
  36095. #include <math.h>
  36096. int
  36097. main ()
  36098. {
  36099. fmodf(0, 0);
  36100. ;
  36101. return 0;
  36102. }
  36103. _ACEOF
  36104. if ac_fn_cxx_try_compile "$LINENO"; then :
  36105. glibcxx_cv_func_fmodf_use=yes
  36106. else
  36107. glibcxx_cv_func_fmodf_use=no
  36108. fi
  36109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36110. ac_ext=c
  36111. ac_cpp='$CPP $CPPFLAGS'
  36112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36115. fi
  36116. fi
  36117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  36118. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  36119. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  36120. for ac_func in fmodf
  36121. do :
  36122. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  36123. if test "x$ac_cv_func_fmodf" = xyes; then :
  36124. cat >>confdefs.h <<_ACEOF
  36125. #define HAVE_FMODF 1
  36126. _ACEOF
  36127. fi
  36128. done
  36129. else
  36130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  36131. $as_echo_n "checking for _fmodf declaration... " >&6; }
  36132. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  36133. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  36134. $as_echo_n "(cached) " >&6
  36135. else
  36136. ac_ext=cpp
  36137. ac_cpp='$CXXCPP $CPPFLAGS'
  36138. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36139. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36140. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36142. /* end confdefs.h. */
  36143. #include <math.h>
  36144. int
  36145. main ()
  36146. {
  36147. _fmodf(0, 0);
  36148. ;
  36149. return 0;
  36150. }
  36151. _ACEOF
  36152. if ac_fn_cxx_try_compile "$LINENO"; then :
  36153. glibcxx_cv_func__fmodf_use=yes
  36154. else
  36155. glibcxx_cv_func__fmodf_use=no
  36156. fi
  36157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36158. ac_ext=c
  36159. ac_cpp='$CPP $CPPFLAGS'
  36160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36163. fi
  36164. fi
  36165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  36166. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  36167. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  36168. for ac_func in _fmodf
  36169. do :
  36170. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  36171. if test "x$ac_cv_func__fmodf" = xyes; then :
  36172. cat >>confdefs.h <<_ACEOF
  36173. #define HAVE__FMODF 1
  36174. _ACEOF
  36175. fi
  36176. done
  36177. fi
  36178. fi
  36179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  36180. $as_echo_n "checking for frexpf declaration... " >&6; }
  36181. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  36182. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  36183. $as_echo_n "(cached) " >&6
  36184. else
  36185. ac_ext=cpp
  36186. ac_cpp='$CXXCPP $CPPFLAGS'
  36187. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36188. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36189. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36191. /* end confdefs.h. */
  36192. #include <math.h>
  36193. int
  36194. main ()
  36195. {
  36196. frexpf(0, 0);
  36197. ;
  36198. return 0;
  36199. }
  36200. _ACEOF
  36201. if ac_fn_cxx_try_compile "$LINENO"; then :
  36202. glibcxx_cv_func_frexpf_use=yes
  36203. else
  36204. glibcxx_cv_func_frexpf_use=no
  36205. fi
  36206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36207. ac_ext=c
  36208. ac_cpp='$CPP $CPPFLAGS'
  36209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36212. fi
  36213. fi
  36214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  36215. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  36216. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  36217. for ac_func in frexpf
  36218. do :
  36219. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  36220. if test "x$ac_cv_func_frexpf" = xyes; then :
  36221. cat >>confdefs.h <<_ACEOF
  36222. #define HAVE_FREXPF 1
  36223. _ACEOF
  36224. fi
  36225. done
  36226. else
  36227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  36228. $as_echo_n "checking for _frexpf declaration... " >&6; }
  36229. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  36230. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  36231. $as_echo_n "(cached) " >&6
  36232. else
  36233. ac_ext=cpp
  36234. ac_cpp='$CXXCPP $CPPFLAGS'
  36235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36239. /* end confdefs.h. */
  36240. #include <math.h>
  36241. int
  36242. main ()
  36243. {
  36244. _frexpf(0, 0);
  36245. ;
  36246. return 0;
  36247. }
  36248. _ACEOF
  36249. if ac_fn_cxx_try_compile "$LINENO"; then :
  36250. glibcxx_cv_func__frexpf_use=yes
  36251. else
  36252. glibcxx_cv_func__frexpf_use=no
  36253. fi
  36254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36255. ac_ext=c
  36256. ac_cpp='$CPP $CPPFLAGS'
  36257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36260. fi
  36261. fi
  36262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  36263. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  36264. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  36265. for ac_func in _frexpf
  36266. do :
  36267. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  36268. if test "x$ac_cv_func__frexpf" = xyes; then :
  36269. cat >>confdefs.h <<_ACEOF
  36270. #define HAVE__FREXPF 1
  36271. _ACEOF
  36272. fi
  36273. done
  36274. fi
  36275. fi
  36276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  36277. $as_echo_n "checking for hypotf declaration... " >&6; }
  36278. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  36279. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  36280. $as_echo_n "(cached) " >&6
  36281. else
  36282. ac_ext=cpp
  36283. ac_cpp='$CXXCPP $CPPFLAGS'
  36284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36288. /* end confdefs.h. */
  36289. #include <math.h>
  36290. int
  36291. main ()
  36292. {
  36293. hypotf(0, 0);
  36294. ;
  36295. return 0;
  36296. }
  36297. _ACEOF
  36298. if ac_fn_cxx_try_compile "$LINENO"; then :
  36299. glibcxx_cv_func_hypotf_use=yes
  36300. else
  36301. glibcxx_cv_func_hypotf_use=no
  36302. fi
  36303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36304. ac_ext=c
  36305. ac_cpp='$CPP $CPPFLAGS'
  36306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36309. fi
  36310. fi
  36311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  36312. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  36313. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  36314. for ac_func in hypotf
  36315. do :
  36316. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  36317. if test "x$ac_cv_func_hypotf" = xyes; then :
  36318. cat >>confdefs.h <<_ACEOF
  36319. #define HAVE_HYPOTF 1
  36320. _ACEOF
  36321. fi
  36322. done
  36323. else
  36324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  36325. $as_echo_n "checking for _hypotf declaration... " >&6; }
  36326. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  36327. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  36328. $as_echo_n "(cached) " >&6
  36329. else
  36330. ac_ext=cpp
  36331. ac_cpp='$CXXCPP $CPPFLAGS'
  36332. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36333. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36334. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36336. /* end confdefs.h. */
  36337. #include <math.h>
  36338. int
  36339. main ()
  36340. {
  36341. _hypotf(0, 0);
  36342. ;
  36343. return 0;
  36344. }
  36345. _ACEOF
  36346. if ac_fn_cxx_try_compile "$LINENO"; then :
  36347. glibcxx_cv_func__hypotf_use=yes
  36348. else
  36349. glibcxx_cv_func__hypotf_use=no
  36350. fi
  36351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36352. ac_ext=c
  36353. ac_cpp='$CPP $CPPFLAGS'
  36354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36357. fi
  36358. fi
  36359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  36360. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  36361. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  36362. for ac_func in _hypotf
  36363. do :
  36364. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  36365. if test "x$ac_cv_func__hypotf" = xyes; then :
  36366. cat >>confdefs.h <<_ACEOF
  36367. #define HAVE__HYPOTF 1
  36368. _ACEOF
  36369. fi
  36370. done
  36371. fi
  36372. fi
  36373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  36374. $as_echo_n "checking for ldexpf declaration... " >&6; }
  36375. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  36376. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  36377. $as_echo_n "(cached) " >&6
  36378. else
  36379. ac_ext=cpp
  36380. ac_cpp='$CXXCPP $CPPFLAGS'
  36381. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36382. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36383. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36385. /* end confdefs.h. */
  36386. #include <math.h>
  36387. int
  36388. main ()
  36389. {
  36390. ldexpf(0, 0);
  36391. ;
  36392. return 0;
  36393. }
  36394. _ACEOF
  36395. if ac_fn_cxx_try_compile "$LINENO"; then :
  36396. glibcxx_cv_func_ldexpf_use=yes
  36397. else
  36398. glibcxx_cv_func_ldexpf_use=no
  36399. fi
  36400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36401. ac_ext=c
  36402. ac_cpp='$CPP $CPPFLAGS'
  36403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36406. fi
  36407. fi
  36408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  36409. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  36410. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  36411. for ac_func in ldexpf
  36412. do :
  36413. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  36414. if test "x$ac_cv_func_ldexpf" = xyes; then :
  36415. cat >>confdefs.h <<_ACEOF
  36416. #define HAVE_LDEXPF 1
  36417. _ACEOF
  36418. fi
  36419. done
  36420. else
  36421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  36422. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  36423. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  36424. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  36425. $as_echo_n "(cached) " >&6
  36426. else
  36427. ac_ext=cpp
  36428. ac_cpp='$CXXCPP $CPPFLAGS'
  36429. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36430. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36431. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36433. /* end confdefs.h. */
  36434. #include <math.h>
  36435. int
  36436. main ()
  36437. {
  36438. _ldexpf(0, 0);
  36439. ;
  36440. return 0;
  36441. }
  36442. _ACEOF
  36443. if ac_fn_cxx_try_compile "$LINENO"; then :
  36444. glibcxx_cv_func__ldexpf_use=yes
  36445. else
  36446. glibcxx_cv_func__ldexpf_use=no
  36447. fi
  36448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36449. ac_ext=c
  36450. ac_cpp='$CPP $CPPFLAGS'
  36451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36454. fi
  36455. fi
  36456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  36457. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  36458. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  36459. for ac_func in _ldexpf
  36460. do :
  36461. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  36462. if test "x$ac_cv_func__ldexpf" = xyes; then :
  36463. cat >>confdefs.h <<_ACEOF
  36464. #define HAVE__LDEXPF 1
  36465. _ACEOF
  36466. fi
  36467. done
  36468. fi
  36469. fi
  36470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  36471. $as_echo_n "checking for logf declaration... " >&6; }
  36472. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  36473. if ${glibcxx_cv_func_logf_use+:} false; then :
  36474. $as_echo_n "(cached) " >&6
  36475. else
  36476. ac_ext=cpp
  36477. ac_cpp='$CXXCPP $CPPFLAGS'
  36478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36482. /* end confdefs.h. */
  36483. #include <math.h>
  36484. #ifdef HAVE_IEEEFP_H
  36485. #include <ieeefp.h>
  36486. #endif
  36487. int
  36488. main ()
  36489. {
  36490. logf(0);
  36491. ;
  36492. return 0;
  36493. }
  36494. _ACEOF
  36495. if ac_fn_cxx_try_compile "$LINENO"; then :
  36496. glibcxx_cv_func_logf_use=yes
  36497. else
  36498. glibcxx_cv_func_logf_use=no
  36499. fi
  36500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36501. ac_ext=c
  36502. ac_cpp='$CPP $CPPFLAGS'
  36503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36506. fi
  36507. fi
  36508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  36509. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  36510. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  36511. for ac_func in logf
  36512. do :
  36513. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  36514. if test "x$ac_cv_func_logf" = xyes; then :
  36515. cat >>confdefs.h <<_ACEOF
  36516. #define HAVE_LOGF 1
  36517. _ACEOF
  36518. fi
  36519. done
  36520. else
  36521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  36522. $as_echo_n "checking for _logf declaration... " >&6; }
  36523. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  36524. if ${glibcxx_cv_func__logf_use+:} false; then :
  36525. $as_echo_n "(cached) " >&6
  36526. else
  36527. ac_ext=cpp
  36528. ac_cpp='$CXXCPP $CPPFLAGS'
  36529. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36530. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36531. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36533. /* end confdefs.h. */
  36534. #include <math.h>
  36535. #ifdef HAVE_IEEEFP_H
  36536. #include <ieeefp.h>
  36537. #endif
  36538. int
  36539. main ()
  36540. {
  36541. _logf(0);
  36542. ;
  36543. return 0;
  36544. }
  36545. _ACEOF
  36546. if ac_fn_cxx_try_compile "$LINENO"; then :
  36547. glibcxx_cv_func__logf_use=yes
  36548. else
  36549. glibcxx_cv_func__logf_use=no
  36550. fi
  36551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36552. ac_ext=c
  36553. ac_cpp='$CPP $CPPFLAGS'
  36554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36557. fi
  36558. fi
  36559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  36560. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  36561. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  36562. for ac_func in _logf
  36563. do :
  36564. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  36565. if test "x$ac_cv_func__logf" = xyes; then :
  36566. cat >>confdefs.h <<_ACEOF
  36567. #define HAVE__LOGF 1
  36568. _ACEOF
  36569. fi
  36570. done
  36571. fi
  36572. fi
  36573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  36574. $as_echo_n "checking for log10f declaration... " >&6; }
  36575. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  36576. if ${glibcxx_cv_func_log10f_use+:} false; then :
  36577. $as_echo_n "(cached) " >&6
  36578. else
  36579. ac_ext=cpp
  36580. ac_cpp='$CXXCPP $CPPFLAGS'
  36581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36585. /* end confdefs.h. */
  36586. #include <math.h>
  36587. #ifdef HAVE_IEEEFP_H
  36588. #include <ieeefp.h>
  36589. #endif
  36590. int
  36591. main ()
  36592. {
  36593. log10f(0);
  36594. ;
  36595. return 0;
  36596. }
  36597. _ACEOF
  36598. if ac_fn_cxx_try_compile "$LINENO"; then :
  36599. glibcxx_cv_func_log10f_use=yes
  36600. else
  36601. glibcxx_cv_func_log10f_use=no
  36602. fi
  36603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36604. ac_ext=c
  36605. ac_cpp='$CPP $CPPFLAGS'
  36606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36609. fi
  36610. fi
  36611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  36612. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  36613. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  36614. for ac_func in log10f
  36615. do :
  36616. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  36617. if test "x$ac_cv_func_log10f" = xyes; then :
  36618. cat >>confdefs.h <<_ACEOF
  36619. #define HAVE_LOG10F 1
  36620. _ACEOF
  36621. fi
  36622. done
  36623. else
  36624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  36625. $as_echo_n "checking for _log10f declaration... " >&6; }
  36626. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  36627. if ${glibcxx_cv_func__log10f_use+:} false; then :
  36628. $as_echo_n "(cached) " >&6
  36629. else
  36630. ac_ext=cpp
  36631. ac_cpp='$CXXCPP $CPPFLAGS'
  36632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36636. /* end confdefs.h. */
  36637. #include <math.h>
  36638. #ifdef HAVE_IEEEFP_H
  36639. #include <ieeefp.h>
  36640. #endif
  36641. int
  36642. main ()
  36643. {
  36644. _log10f(0);
  36645. ;
  36646. return 0;
  36647. }
  36648. _ACEOF
  36649. if ac_fn_cxx_try_compile "$LINENO"; then :
  36650. glibcxx_cv_func__log10f_use=yes
  36651. else
  36652. glibcxx_cv_func__log10f_use=no
  36653. fi
  36654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36655. ac_ext=c
  36656. ac_cpp='$CPP $CPPFLAGS'
  36657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36660. fi
  36661. fi
  36662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  36663. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  36664. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  36665. for ac_func in _log10f
  36666. do :
  36667. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  36668. if test "x$ac_cv_func__log10f" = xyes; then :
  36669. cat >>confdefs.h <<_ACEOF
  36670. #define HAVE__LOG10F 1
  36671. _ACEOF
  36672. fi
  36673. done
  36674. fi
  36675. fi
  36676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  36677. $as_echo_n "checking for modff declaration... " >&6; }
  36678. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  36679. if ${glibcxx_cv_func_modff_use+:} false; then :
  36680. $as_echo_n "(cached) " >&6
  36681. else
  36682. ac_ext=cpp
  36683. ac_cpp='$CXXCPP $CPPFLAGS'
  36684. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36685. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36686. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36688. /* end confdefs.h. */
  36689. #include <math.h>
  36690. int
  36691. main ()
  36692. {
  36693. modff(0, 0);
  36694. ;
  36695. return 0;
  36696. }
  36697. _ACEOF
  36698. if ac_fn_cxx_try_compile "$LINENO"; then :
  36699. glibcxx_cv_func_modff_use=yes
  36700. else
  36701. glibcxx_cv_func_modff_use=no
  36702. fi
  36703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36704. ac_ext=c
  36705. ac_cpp='$CPP $CPPFLAGS'
  36706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36709. fi
  36710. fi
  36711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  36712. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  36713. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  36714. for ac_func in modff
  36715. do :
  36716. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  36717. if test "x$ac_cv_func_modff" = xyes; then :
  36718. cat >>confdefs.h <<_ACEOF
  36719. #define HAVE_MODFF 1
  36720. _ACEOF
  36721. fi
  36722. done
  36723. else
  36724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  36725. $as_echo_n "checking for _modff declaration... " >&6; }
  36726. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  36727. if ${glibcxx_cv_func__modff_use+:} false; then :
  36728. $as_echo_n "(cached) " >&6
  36729. else
  36730. ac_ext=cpp
  36731. ac_cpp='$CXXCPP $CPPFLAGS'
  36732. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36733. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36734. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36736. /* end confdefs.h. */
  36737. #include <math.h>
  36738. int
  36739. main ()
  36740. {
  36741. _modff(0, 0);
  36742. ;
  36743. return 0;
  36744. }
  36745. _ACEOF
  36746. if ac_fn_cxx_try_compile "$LINENO"; then :
  36747. glibcxx_cv_func__modff_use=yes
  36748. else
  36749. glibcxx_cv_func__modff_use=no
  36750. fi
  36751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36752. ac_ext=c
  36753. ac_cpp='$CPP $CPPFLAGS'
  36754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36757. fi
  36758. fi
  36759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  36760. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  36761. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  36762. for ac_func in _modff
  36763. do :
  36764. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  36765. if test "x$ac_cv_func__modff" = xyes; then :
  36766. cat >>confdefs.h <<_ACEOF
  36767. #define HAVE__MODFF 1
  36768. _ACEOF
  36769. fi
  36770. done
  36771. fi
  36772. fi
  36773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  36774. $as_echo_n "checking for modf declaration... " >&6; }
  36775. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  36776. if ${glibcxx_cv_func_modf_use+:} false; then :
  36777. $as_echo_n "(cached) " >&6
  36778. else
  36779. ac_ext=cpp
  36780. ac_cpp='$CXXCPP $CPPFLAGS'
  36781. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36782. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36783. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36785. /* end confdefs.h. */
  36786. #include <math.h>
  36787. int
  36788. main ()
  36789. {
  36790. modf(0, 0);
  36791. ;
  36792. return 0;
  36793. }
  36794. _ACEOF
  36795. if ac_fn_cxx_try_compile "$LINENO"; then :
  36796. glibcxx_cv_func_modf_use=yes
  36797. else
  36798. glibcxx_cv_func_modf_use=no
  36799. fi
  36800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36801. ac_ext=c
  36802. ac_cpp='$CPP $CPPFLAGS'
  36803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36806. fi
  36807. fi
  36808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  36809. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  36810. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  36811. for ac_func in modf
  36812. do :
  36813. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  36814. if test "x$ac_cv_func_modf" = xyes; then :
  36815. cat >>confdefs.h <<_ACEOF
  36816. #define HAVE_MODF 1
  36817. _ACEOF
  36818. fi
  36819. done
  36820. else
  36821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  36822. $as_echo_n "checking for _modf declaration... " >&6; }
  36823. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  36824. if ${glibcxx_cv_func__modf_use+:} false; then :
  36825. $as_echo_n "(cached) " >&6
  36826. else
  36827. ac_ext=cpp
  36828. ac_cpp='$CXXCPP $CPPFLAGS'
  36829. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36830. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36831. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36833. /* end confdefs.h. */
  36834. #include <math.h>
  36835. int
  36836. main ()
  36837. {
  36838. _modf(0, 0);
  36839. ;
  36840. return 0;
  36841. }
  36842. _ACEOF
  36843. if ac_fn_cxx_try_compile "$LINENO"; then :
  36844. glibcxx_cv_func__modf_use=yes
  36845. else
  36846. glibcxx_cv_func__modf_use=no
  36847. fi
  36848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36849. ac_ext=c
  36850. ac_cpp='$CPP $CPPFLAGS'
  36851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36854. fi
  36855. fi
  36856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  36857. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  36858. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  36859. for ac_func in _modf
  36860. do :
  36861. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  36862. if test "x$ac_cv_func__modf" = xyes; then :
  36863. cat >>confdefs.h <<_ACEOF
  36864. #define HAVE__MODF 1
  36865. _ACEOF
  36866. fi
  36867. done
  36868. fi
  36869. fi
  36870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  36871. $as_echo_n "checking for powf declaration... " >&6; }
  36872. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  36873. if ${glibcxx_cv_func_powf_use+:} false; then :
  36874. $as_echo_n "(cached) " >&6
  36875. else
  36876. ac_ext=cpp
  36877. ac_cpp='$CXXCPP $CPPFLAGS'
  36878. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36879. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36880. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36882. /* end confdefs.h. */
  36883. #include <math.h>
  36884. int
  36885. main ()
  36886. {
  36887. powf(0, 0);
  36888. ;
  36889. return 0;
  36890. }
  36891. _ACEOF
  36892. if ac_fn_cxx_try_compile "$LINENO"; then :
  36893. glibcxx_cv_func_powf_use=yes
  36894. else
  36895. glibcxx_cv_func_powf_use=no
  36896. fi
  36897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36898. ac_ext=c
  36899. ac_cpp='$CPP $CPPFLAGS'
  36900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36903. fi
  36904. fi
  36905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  36906. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  36907. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  36908. for ac_func in powf
  36909. do :
  36910. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  36911. if test "x$ac_cv_func_powf" = xyes; then :
  36912. cat >>confdefs.h <<_ACEOF
  36913. #define HAVE_POWF 1
  36914. _ACEOF
  36915. fi
  36916. done
  36917. else
  36918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  36919. $as_echo_n "checking for _powf declaration... " >&6; }
  36920. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  36921. if ${glibcxx_cv_func__powf_use+:} false; then :
  36922. $as_echo_n "(cached) " >&6
  36923. else
  36924. ac_ext=cpp
  36925. ac_cpp='$CXXCPP $CPPFLAGS'
  36926. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36927. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36928. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36930. /* end confdefs.h. */
  36931. #include <math.h>
  36932. int
  36933. main ()
  36934. {
  36935. _powf(0, 0);
  36936. ;
  36937. return 0;
  36938. }
  36939. _ACEOF
  36940. if ac_fn_cxx_try_compile "$LINENO"; then :
  36941. glibcxx_cv_func__powf_use=yes
  36942. else
  36943. glibcxx_cv_func__powf_use=no
  36944. fi
  36945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36946. ac_ext=c
  36947. ac_cpp='$CPP $CPPFLAGS'
  36948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36951. fi
  36952. fi
  36953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  36954. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  36955. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  36956. for ac_func in _powf
  36957. do :
  36958. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  36959. if test "x$ac_cv_func__powf" = xyes; then :
  36960. cat >>confdefs.h <<_ACEOF
  36961. #define HAVE__POWF 1
  36962. _ACEOF
  36963. fi
  36964. done
  36965. fi
  36966. fi
  36967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  36968. $as_echo_n "checking for sqrtf declaration... " >&6; }
  36969. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  36970. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  36971. $as_echo_n "(cached) " >&6
  36972. else
  36973. ac_ext=cpp
  36974. ac_cpp='$CXXCPP $CPPFLAGS'
  36975. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36976. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36977. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  36978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36979. /* end confdefs.h. */
  36980. #include <math.h>
  36981. #ifdef HAVE_IEEEFP_H
  36982. #include <ieeefp.h>
  36983. #endif
  36984. int
  36985. main ()
  36986. {
  36987. sqrtf(0);
  36988. ;
  36989. return 0;
  36990. }
  36991. _ACEOF
  36992. if ac_fn_cxx_try_compile "$LINENO"; then :
  36993. glibcxx_cv_func_sqrtf_use=yes
  36994. else
  36995. glibcxx_cv_func_sqrtf_use=no
  36996. fi
  36997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  36998. ac_ext=c
  36999. ac_cpp='$CPP $CPPFLAGS'
  37000. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37001. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37002. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37003. fi
  37004. fi
  37005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  37006. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  37007. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  37008. for ac_func in sqrtf
  37009. do :
  37010. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  37011. if test "x$ac_cv_func_sqrtf" = xyes; then :
  37012. cat >>confdefs.h <<_ACEOF
  37013. #define HAVE_SQRTF 1
  37014. _ACEOF
  37015. fi
  37016. done
  37017. else
  37018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  37019. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  37020. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  37021. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  37022. $as_echo_n "(cached) " >&6
  37023. else
  37024. ac_ext=cpp
  37025. ac_cpp='$CXXCPP $CPPFLAGS'
  37026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37030. /* end confdefs.h. */
  37031. #include <math.h>
  37032. #ifdef HAVE_IEEEFP_H
  37033. #include <ieeefp.h>
  37034. #endif
  37035. int
  37036. main ()
  37037. {
  37038. _sqrtf(0);
  37039. ;
  37040. return 0;
  37041. }
  37042. _ACEOF
  37043. if ac_fn_cxx_try_compile "$LINENO"; then :
  37044. glibcxx_cv_func__sqrtf_use=yes
  37045. else
  37046. glibcxx_cv_func__sqrtf_use=no
  37047. fi
  37048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37049. ac_ext=c
  37050. ac_cpp='$CPP $CPPFLAGS'
  37051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37054. fi
  37055. fi
  37056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  37057. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  37058. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  37059. for ac_func in _sqrtf
  37060. do :
  37061. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  37062. if test "x$ac_cv_func__sqrtf" = xyes; then :
  37063. cat >>confdefs.h <<_ACEOF
  37064. #define HAVE__SQRTF 1
  37065. _ACEOF
  37066. fi
  37067. done
  37068. fi
  37069. fi
  37070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  37071. $as_echo_n "checking for sincosf declaration... " >&6; }
  37072. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  37073. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  37074. $as_echo_n "(cached) " >&6
  37075. else
  37076. ac_ext=cpp
  37077. ac_cpp='$CXXCPP $CPPFLAGS'
  37078. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37079. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37080. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37082. /* end confdefs.h. */
  37083. #include <math.h>
  37084. int
  37085. main ()
  37086. {
  37087. sincosf(0, 0, 0);
  37088. ;
  37089. return 0;
  37090. }
  37091. _ACEOF
  37092. if ac_fn_cxx_try_compile "$LINENO"; then :
  37093. glibcxx_cv_func_sincosf_use=yes
  37094. else
  37095. glibcxx_cv_func_sincosf_use=no
  37096. fi
  37097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37098. ac_ext=c
  37099. ac_cpp='$CPP $CPPFLAGS'
  37100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37103. fi
  37104. fi
  37105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  37106. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  37107. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  37108. for ac_func in sincosf
  37109. do :
  37110. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  37111. if test "x$ac_cv_func_sincosf" = xyes; then :
  37112. cat >>confdefs.h <<_ACEOF
  37113. #define HAVE_SINCOSF 1
  37114. _ACEOF
  37115. fi
  37116. done
  37117. else
  37118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  37119. $as_echo_n "checking for _sincosf declaration... " >&6; }
  37120. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  37121. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  37122. $as_echo_n "(cached) " >&6
  37123. else
  37124. ac_ext=cpp
  37125. ac_cpp='$CXXCPP $CPPFLAGS'
  37126. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37127. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37128. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37130. /* end confdefs.h. */
  37131. #include <math.h>
  37132. int
  37133. main ()
  37134. {
  37135. _sincosf(0, 0, 0);
  37136. ;
  37137. return 0;
  37138. }
  37139. _ACEOF
  37140. if ac_fn_cxx_try_compile "$LINENO"; then :
  37141. glibcxx_cv_func__sincosf_use=yes
  37142. else
  37143. glibcxx_cv_func__sincosf_use=no
  37144. fi
  37145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37146. ac_ext=c
  37147. ac_cpp='$CPP $CPPFLAGS'
  37148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37151. fi
  37152. fi
  37153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  37154. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  37155. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  37156. for ac_func in _sincosf
  37157. do :
  37158. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  37159. if test "x$ac_cv_func__sincosf" = xyes; then :
  37160. cat >>confdefs.h <<_ACEOF
  37161. #define HAVE__SINCOSF 1
  37162. _ACEOF
  37163. fi
  37164. done
  37165. fi
  37166. fi
  37167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  37168. $as_echo_n "checking for finitef declaration... " >&6; }
  37169. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  37170. if ${glibcxx_cv_func_finitef_use+:} false; then :
  37171. $as_echo_n "(cached) " >&6
  37172. else
  37173. ac_ext=cpp
  37174. ac_cpp='$CXXCPP $CPPFLAGS'
  37175. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37176. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37177. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37179. /* end confdefs.h. */
  37180. #include <math.h>
  37181. #ifdef HAVE_IEEEFP_H
  37182. #include <ieeefp.h>
  37183. #endif
  37184. int
  37185. main ()
  37186. {
  37187. finitef(0);
  37188. ;
  37189. return 0;
  37190. }
  37191. _ACEOF
  37192. if ac_fn_cxx_try_compile "$LINENO"; then :
  37193. glibcxx_cv_func_finitef_use=yes
  37194. else
  37195. glibcxx_cv_func_finitef_use=no
  37196. fi
  37197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37198. ac_ext=c
  37199. ac_cpp='$CPP $CPPFLAGS'
  37200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37203. fi
  37204. fi
  37205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  37206. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  37207. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  37208. for ac_func in finitef
  37209. do :
  37210. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  37211. if test "x$ac_cv_func_finitef" = xyes; then :
  37212. cat >>confdefs.h <<_ACEOF
  37213. #define HAVE_FINITEF 1
  37214. _ACEOF
  37215. fi
  37216. done
  37217. else
  37218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  37219. $as_echo_n "checking for _finitef declaration... " >&6; }
  37220. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  37221. if ${glibcxx_cv_func__finitef_use+:} false; then :
  37222. $as_echo_n "(cached) " >&6
  37223. else
  37224. ac_ext=cpp
  37225. ac_cpp='$CXXCPP $CPPFLAGS'
  37226. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37227. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37228. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37230. /* end confdefs.h. */
  37231. #include <math.h>
  37232. #ifdef HAVE_IEEEFP_H
  37233. #include <ieeefp.h>
  37234. #endif
  37235. int
  37236. main ()
  37237. {
  37238. _finitef(0);
  37239. ;
  37240. return 0;
  37241. }
  37242. _ACEOF
  37243. if ac_fn_cxx_try_compile "$LINENO"; then :
  37244. glibcxx_cv_func__finitef_use=yes
  37245. else
  37246. glibcxx_cv_func__finitef_use=no
  37247. fi
  37248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37249. ac_ext=c
  37250. ac_cpp='$CPP $CPPFLAGS'
  37251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37254. fi
  37255. fi
  37256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  37257. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  37258. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  37259. for ac_func in _finitef
  37260. do :
  37261. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  37262. if test "x$ac_cv_func__finitef" = xyes; then :
  37263. cat >>confdefs.h <<_ACEOF
  37264. #define HAVE__FINITEF 1
  37265. _ACEOF
  37266. fi
  37267. done
  37268. fi
  37269. fi
  37270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  37271. $as_echo_n "checking for long double trig functions... " >&6; }
  37272. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  37273. $as_echo_n "(cached) " >&6
  37274. else
  37275. ac_ext=cpp
  37276. ac_cpp='$CXXCPP $CPPFLAGS'
  37277. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37278. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37279. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37281. /* end confdefs.h. */
  37282. #include <math.h>
  37283. int
  37284. main ()
  37285. {
  37286. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  37287. ;
  37288. return 0;
  37289. }
  37290. _ACEOF
  37291. if ac_fn_cxx_try_compile "$LINENO"; then :
  37292. glibcxx_cv_func_long_double_trig_use=yes
  37293. else
  37294. glibcxx_cv_func_long_double_trig_use=no
  37295. fi
  37296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37297. ac_ext=c
  37298. ac_cpp='$CPP $CPPFLAGS'
  37299. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37300. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37301. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37302. fi
  37303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  37304. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  37305. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  37306. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  37307. do :
  37308. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37309. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37310. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  37311. cat >>confdefs.h <<_ACEOF
  37312. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37313. _ACEOF
  37314. fi
  37315. done
  37316. else
  37317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  37318. $as_echo_n "checking for _long double trig functions... " >&6; }
  37319. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  37320. $as_echo_n "(cached) " >&6
  37321. else
  37322. ac_ext=cpp
  37323. ac_cpp='$CXXCPP $CPPFLAGS'
  37324. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37325. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37326. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37328. /* end confdefs.h. */
  37329. #include <math.h>
  37330. int
  37331. main ()
  37332. {
  37333. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  37334. ;
  37335. return 0;
  37336. }
  37337. _ACEOF
  37338. if ac_fn_cxx_try_compile "$LINENO"; then :
  37339. glibcxx_cv_func__long_double_trig_use=yes
  37340. else
  37341. glibcxx_cv_func__long_double_trig_use=no
  37342. fi
  37343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37344. ac_ext=c
  37345. ac_cpp='$CPP $CPPFLAGS'
  37346. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37347. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37348. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37349. fi
  37350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  37351. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  37352. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  37353. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  37354. do :
  37355. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37356. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37357. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  37358. cat >>confdefs.h <<_ACEOF
  37359. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37360. _ACEOF
  37361. fi
  37362. done
  37363. fi
  37364. fi
  37365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  37366. $as_echo_n "checking for long double round functions... " >&6; }
  37367. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  37368. $as_echo_n "(cached) " >&6
  37369. else
  37370. ac_ext=cpp
  37371. ac_cpp='$CXXCPP $CPPFLAGS'
  37372. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37373. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37374. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37376. /* end confdefs.h. */
  37377. #include <math.h>
  37378. int
  37379. main ()
  37380. {
  37381. ceill (0); floorl (0);
  37382. ;
  37383. return 0;
  37384. }
  37385. _ACEOF
  37386. if ac_fn_cxx_try_compile "$LINENO"; then :
  37387. glibcxx_cv_func_long_double_round_use=yes
  37388. else
  37389. glibcxx_cv_func_long_double_round_use=no
  37390. fi
  37391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37392. ac_ext=c
  37393. ac_cpp='$CPP $CPPFLAGS'
  37394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37397. fi
  37398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  37399. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  37400. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  37401. for ac_func in ceill floorl
  37402. do :
  37403. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37404. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37405. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  37406. cat >>confdefs.h <<_ACEOF
  37407. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37408. _ACEOF
  37409. fi
  37410. done
  37411. else
  37412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  37413. $as_echo_n "checking for _long double round functions... " >&6; }
  37414. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  37415. $as_echo_n "(cached) " >&6
  37416. else
  37417. ac_ext=cpp
  37418. ac_cpp='$CXXCPP $CPPFLAGS'
  37419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37423. /* end confdefs.h. */
  37424. #include <math.h>
  37425. int
  37426. main ()
  37427. {
  37428. _ceill (0); _floorl (0);
  37429. ;
  37430. return 0;
  37431. }
  37432. _ACEOF
  37433. if ac_fn_cxx_try_compile "$LINENO"; then :
  37434. glibcxx_cv_func__long_double_round_use=yes
  37435. else
  37436. glibcxx_cv_func__long_double_round_use=no
  37437. fi
  37438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37439. ac_ext=c
  37440. ac_cpp='$CPP $CPPFLAGS'
  37441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37444. fi
  37445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  37446. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  37447. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  37448. for ac_func in _ceill _floorl
  37449. do :
  37450. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  37451. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  37452. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  37453. cat >>confdefs.h <<_ACEOF
  37454. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  37455. _ACEOF
  37456. fi
  37457. done
  37458. fi
  37459. fi
  37460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  37461. $as_echo_n "checking for isnanl declaration... " >&6; }
  37462. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  37463. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  37464. $as_echo_n "(cached) " >&6
  37465. else
  37466. ac_ext=cpp
  37467. ac_cpp='$CXXCPP $CPPFLAGS'
  37468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37472. /* end confdefs.h. */
  37473. #include <math.h>
  37474. #ifdef HAVE_IEEEFP_H
  37475. #include <ieeefp.h>
  37476. #endif
  37477. int
  37478. main ()
  37479. {
  37480. isnanl(0);
  37481. ;
  37482. return 0;
  37483. }
  37484. _ACEOF
  37485. if ac_fn_cxx_try_compile "$LINENO"; then :
  37486. glibcxx_cv_func_isnanl_use=yes
  37487. else
  37488. glibcxx_cv_func_isnanl_use=no
  37489. fi
  37490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37491. ac_ext=c
  37492. ac_cpp='$CPP $CPPFLAGS'
  37493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37496. fi
  37497. fi
  37498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  37499. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  37500. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  37501. for ac_func in isnanl
  37502. do :
  37503. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  37504. if test "x$ac_cv_func_isnanl" = xyes; then :
  37505. cat >>confdefs.h <<_ACEOF
  37506. #define HAVE_ISNANL 1
  37507. _ACEOF
  37508. fi
  37509. done
  37510. else
  37511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  37512. $as_echo_n "checking for _isnanl declaration... " >&6; }
  37513. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  37514. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  37515. $as_echo_n "(cached) " >&6
  37516. else
  37517. ac_ext=cpp
  37518. ac_cpp='$CXXCPP $CPPFLAGS'
  37519. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37520. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37521. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37523. /* end confdefs.h. */
  37524. #include <math.h>
  37525. #ifdef HAVE_IEEEFP_H
  37526. #include <ieeefp.h>
  37527. #endif
  37528. int
  37529. main ()
  37530. {
  37531. _isnanl(0);
  37532. ;
  37533. return 0;
  37534. }
  37535. _ACEOF
  37536. if ac_fn_cxx_try_compile "$LINENO"; then :
  37537. glibcxx_cv_func__isnanl_use=yes
  37538. else
  37539. glibcxx_cv_func__isnanl_use=no
  37540. fi
  37541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37542. ac_ext=c
  37543. ac_cpp='$CPP $CPPFLAGS'
  37544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37547. fi
  37548. fi
  37549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  37550. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  37551. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  37552. for ac_func in _isnanl
  37553. do :
  37554. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  37555. if test "x$ac_cv_func__isnanl" = xyes; then :
  37556. cat >>confdefs.h <<_ACEOF
  37557. #define HAVE__ISNANL 1
  37558. _ACEOF
  37559. fi
  37560. done
  37561. fi
  37562. fi
  37563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  37564. $as_echo_n "checking for isinfl declaration... " >&6; }
  37565. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  37566. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  37567. $as_echo_n "(cached) " >&6
  37568. else
  37569. ac_ext=cpp
  37570. ac_cpp='$CXXCPP $CPPFLAGS'
  37571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37575. /* end confdefs.h. */
  37576. #include <math.h>
  37577. #ifdef HAVE_IEEEFP_H
  37578. #include <ieeefp.h>
  37579. #endif
  37580. int
  37581. main ()
  37582. {
  37583. isinfl(0);
  37584. ;
  37585. return 0;
  37586. }
  37587. _ACEOF
  37588. if ac_fn_cxx_try_compile "$LINENO"; then :
  37589. glibcxx_cv_func_isinfl_use=yes
  37590. else
  37591. glibcxx_cv_func_isinfl_use=no
  37592. fi
  37593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37594. ac_ext=c
  37595. ac_cpp='$CPP $CPPFLAGS'
  37596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37599. fi
  37600. fi
  37601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  37602. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  37603. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  37604. for ac_func in isinfl
  37605. do :
  37606. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  37607. if test "x$ac_cv_func_isinfl" = xyes; then :
  37608. cat >>confdefs.h <<_ACEOF
  37609. #define HAVE_ISINFL 1
  37610. _ACEOF
  37611. fi
  37612. done
  37613. else
  37614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  37615. $as_echo_n "checking for _isinfl declaration... " >&6; }
  37616. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  37617. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  37618. $as_echo_n "(cached) " >&6
  37619. else
  37620. ac_ext=cpp
  37621. ac_cpp='$CXXCPP $CPPFLAGS'
  37622. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37623. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37624. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37626. /* end confdefs.h. */
  37627. #include <math.h>
  37628. #ifdef HAVE_IEEEFP_H
  37629. #include <ieeefp.h>
  37630. #endif
  37631. int
  37632. main ()
  37633. {
  37634. _isinfl(0);
  37635. ;
  37636. return 0;
  37637. }
  37638. _ACEOF
  37639. if ac_fn_cxx_try_compile "$LINENO"; then :
  37640. glibcxx_cv_func__isinfl_use=yes
  37641. else
  37642. glibcxx_cv_func__isinfl_use=no
  37643. fi
  37644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37645. ac_ext=c
  37646. ac_cpp='$CPP $CPPFLAGS'
  37647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37650. fi
  37651. fi
  37652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  37653. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  37654. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  37655. for ac_func in _isinfl
  37656. do :
  37657. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  37658. if test "x$ac_cv_func__isinfl" = xyes; then :
  37659. cat >>confdefs.h <<_ACEOF
  37660. #define HAVE__ISINFL 1
  37661. _ACEOF
  37662. fi
  37663. done
  37664. fi
  37665. fi
  37666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  37667. $as_echo_n "checking for atan2l declaration... " >&6; }
  37668. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  37669. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  37670. $as_echo_n "(cached) " >&6
  37671. else
  37672. ac_ext=cpp
  37673. ac_cpp='$CXXCPP $CPPFLAGS'
  37674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37678. /* end confdefs.h. */
  37679. #include <math.h>
  37680. int
  37681. main ()
  37682. {
  37683. atan2l(0, 0);
  37684. ;
  37685. return 0;
  37686. }
  37687. _ACEOF
  37688. if ac_fn_cxx_try_compile "$LINENO"; then :
  37689. glibcxx_cv_func_atan2l_use=yes
  37690. else
  37691. glibcxx_cv_func_atan2l_use=no
  37692. fi
  37693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37694. ac_ext=c
  37695. ac_cpp='$CPP $CPPFLAGS'
  37696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37699. fi
  37700. fi
  37701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  37702. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  37703. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  37704. for ac_func in atan2l
  37705. do :
  37706. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  37707. if test "x$ac_cv_func_atan2l" = xyes; then :
  37708. cat >>confdefs.h <<_ACEOF
  37709. #define HAVE_ATAN2L 1
  37710. _ACEOF
  37711. fi
  37712. done
  37713. else
  37714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  37715. $as_echo_n "checking for _atan2l declaration... " >&6; }
  37716. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  37717. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  37718. $as_echo_n "(cached) " >&6
  37719. else
  37720. ac_ext=cpp
  37721. ac_cpp='$CXXCPP $CPPFLAGS'
  37722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37726. /* end confdefs.h. */
  37727. #include <math.h>
  37728. int
  37729. main ()
  37730. {
  37731. _atan2l(0, 0);
  37732. ;
  37733. return 0;
  37734. }
  37735. _ACEOF
  37736. if ac_fn_cxx_try_compile "$LINENO"; then :
  37737. glibcxx_cv_func__atan2l_use=yes
  37738. else
  37739. glibcxx_cv_func__atan2l_use=no
  37740. fi
  37741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37742. ac_ext=c
  37743. ac_cpp='$CPP $CPPFLAGS'
  37744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37747. fi
  37748. fi
  37749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  37750. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  37751. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  37752. for ac_func in _atan2l
  37753. do :
  37754. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  37755. if test "x$ac_cv_func__atan2l" = xyes; then :
  37756. cat >>confdefs.h <<_ACEOF
  37757. #define HAVE__ATAN2L 1
  37758. _ACEOF
  37759. fi
  37760. done
  37761. fi
  37762. fi
  37763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  37764. $as_echo_n "checking for expl declaration... " >&6; }
  37765. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  37766. if ${glibcxx_cv_func_expl_use+:} false; then :
  37767. $as_echo_n "(cached) " >&6
  37768. else
  37769. ac_ext=cpp
  37770. ac_cpp='$CXXCPP $CPPFLAGS'
  37771. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37772. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37773. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37775. /* end confdefs.h. */
  37776. #include <math.h>
  37777. #ifdef HAVE_IEEEFP_H
  37778. #include <ieeefp.h>
  37779. #endif
  37780. int
  37781. main ()
  37782. {
  37783. expl(0);
  37784. ;
  37785. return 0;
  37786. }
  37787. _ACEOF
  37788. if ac_fn_cxx_try_compile "$LINENO"; then :
  37789. glibcxx_cv_func_expl_use=yes
  37790. else
  37791. glibcxx_cv_func_expl_use=no
  37792. fi
  37793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37794. ac_ext=c
  37795. ac_cpp='$CPP $CPPFLAGS'
  37796. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37797. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37798. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37799. fi
  37800. fi
  37801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  37802. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  37803. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  37804. for ac_func in expl
  37805. do :
  37806. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  37807. if test "x$ac_cv_func_expl" = xyes; then :
  37808. cat >>confdefs.h <<_ACEOF
  37809. #define HAVE_EXPL 1
  37810. _ACEOF
  37811. fi
  37812. done
  37813. else
  37814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  37815. $as_echo_n "checking for _expl declaration... " >&6; }
  37816. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  37817. if ${glibcxx_cv_func__expl_use+:} false; then :
  37818. $as_echo_n "(cached) " >&6
  37819. else
  37820. ac_ext=cpp
  37821. ac_cpp='$CXXCPP $CPPFLAGS'
  37822. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37823. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37824. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37826. /* end confdefs.h. */
  37827. #include <math.h>
  37828. #ifdef HAVE_IEEEFP_H
  37829. #include <ieeefp.h>
  37830. #endif
  37831. int
  37832. main ()
  37833. {
  37834. _expl(0);
  37835. ;
  37836. return 0;
  37837. }
  37838. _ACEOF
  37839. if ac_fn_cxx_try_compile "$LINENO"; then :
  37840. glibcxx_cv_func__expl_use=yes
  37841. else
  37842. glibcxx_cv_func__expl_use=no
  37843. fi
  37844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37845. ac_ext=c
  37846. ac_cpp='$CPP $CPPFLAGS'
  37847. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37848. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37849. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37850. fi
  37851. fi
  37852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  37853. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  37854. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  37855. for ac_func in _expl
  37856. do :
  37857. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  37858. if test "x$ac_cv_func__expl" = xyes; then :
  37859. cat >>confdefs.h <<_ACEOF
  37860. #define HAVE__EXPL 1
  37861. _ACEOF
  37862. fi
  37863. done
  37864. fi
  37865. fi
  37866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  37867. $as_echo_n "checking for fabsl declaration... " >&6; }
  37868. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  37869. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  37870. $as_echo_n "(cached) " >&6
  37871. else
  37872. ac_ext=cpp
  37873. ac_cpp='$CXXCPP $CPPFLAGS'
  37874. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37875. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37876. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37878. /* end confdefs.h. */
  37879. #include <math.h>
  37880. #ifdef HAVE_IEEEFP_H
  37881. #include <ieeefp.h>
  37882. #endif
  37883. int
  37884. main ()
  37885. {
  37886. fabsl(0);
  37887. ;
  37888. return 0;
  37889. }
  37890. _ACEOF
  37891. if ac_fn_cxx_try_compile "$LINENO"; then :
  37892. glibcxx_cv_func_fabsl_use=yes
  37893. else
  37894. glibcxx_cv_func_fabsl_use=no
  37895. fi
  37896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37897. ac_ext=c
  37898. ac_cpp='$CPP $CPPFLAGS'
  37899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37902. fi
  37903. fi
  37904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  37905. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  37906. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  37907. for ac_func in fabsl
  37908. do :
  37909. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  37910. if test "x$ac_cv_func_fabsl" = xyes; then :
  37911. cat >>confdefs.h <<_ACEOF
  37912. #define HAVE_FABSL 1
  37913. _ACEOF
  37914. fi
  37915. done
  37916. else
  37917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  37918. $as_echo_n "checking for _fabsl declaration... " >&6; }
  37919. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  37920. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  37921. $as_echo_n "(cached) " >&6
  37922. else
  37923. ac_ext=cpp
  37924. ac_cpp='$CXXCPP $CPPFLAGS'
  37925. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37926. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37927. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37929. /* end confdefs.h. */
  37930. #include <math.h>
  37931. #ifdef HAVE_IEEEFP_H
  37932. #include <ieeefp.h>
  37933. #endif
  37934. int
  37935. main ()
  37936. {
  37937. _fabsl(0);
  37938. ;
  37939. return 0;
  37940. }
  37941. _ACEOF
  37942. if ac_fn_cxx_try_compile "$LINENO"; then :
  37943. glibcxx_cv_func__fabsl_use=yes
  37944. else
  37945. glibcxx_cv_func__fabsl_use=no
  37946. fi
  37947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37948. ac_ext=c
  37949. ac_cpp='$CPP $CPPFLAGS'
  37950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37953. fi
  37954. fi
  37955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  37956. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  37957. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  37958. for ac_func in _fabsl
  37959. do :
  37960. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  37961. if test "x$ac_cv_func__fabsl" = xyes; then :
  37962. cat >>confdefs.h <<_ACEOF
  37963. #define HAVE__FABSL 1
  37964. _ACEOF
  37965. fi
  37966. done
  37967. fi
  37968. fi
  37969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  37970. $as_echo_n "checking for fmodl declaration... " >&6; }
  37971. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  37972. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  37973. $as_echo_n "(cached) " >&6
  37974. else
  37975. ac_ext=cpp
  37976. ac_cpp='$CXXCPP $CPPFLAGS'
  37977. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37978. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37979. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  37980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37981. /* end confdefs.h. */
  37982. #include <math.h>
  37983. int
  37984. main ()
  37985. {
  37986. fmodl(0, 0);
  37987. ;
  37988. return 0;
  37989. }
  37990. _ACEOF
  37991. if ac_fn_cxx_try_compile "$LINENO"; then :
  37992. glibcxx_cv_func_fmodl_use=yes
  37993. else
  37994. glibcxx_cv_func_fmodl_use=no
  37995. fi
  37996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  37997. ac_ext=c
  37998. ac_cpp='$CPP $CPPFLAGS'
  37999. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38000. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38001. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38002. fi
  38003. fi
  38004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  38005. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  38006. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  38007. for ac_func in fmodl
  38008. do :
  38009. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  38010. if test "x$ac_cv_func_fmodl" = xyes; then :
  38011. cat >>confdefs.h <<_ACEOF
  38012. #define HAVE_FMODL 1
  38013. _ACEOF
  38014. fi
  38015. done
  38016. else
  38017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  38018. $as_echo_n "checking for _fmodl declaration... " >&6; }
  38019. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  38020. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  38021. $as_echo_n "(cached) " >&6
  38022. else
  38023. ac_ext=cpp
  38024. ac_cpp='$CXXCPP $CPPFLAGS'
  38025. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38026. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38027. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38029. /* end confdefs.h. */
  38030. #include <math.h>
  38031. int
  38032. main ()
  38033. {
  38034. _fmodl(0, 0);
  38035. ;
  38036. return 0;
  38037. }
  38038. _ACEOF
  38039. if ac_fn_cxx_try_compile "$LINENO"; then :
  38040. glibcxx_cv_func__fmodl_use=yes
  38041. else
  38042. glibcxx_cv_func__fmodl_use=no
  38043. fi
  38044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38045. ac_ext=c
  38046. ac_cpp='$CPP $CPPFLAGS'
  38047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38050. fi
  38051. fi
  38052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  38053. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  38054. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  38055. for ac_func in _fmodl
  38056. do :
  38057. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  38058. if test "x$ac_cv_func__fmodl" = xyes; then :
  38059. cat >>confdefs.h <<_ACEOF
  38060. #define HAVE__FMODL 1
  38061. _ACEOF
  38062. fi
  38063. done
  38064. fi
  38065. fi
  38066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  38067. $as_echo_n "checking for frexpl declaration... " >&6; }
  38068. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  38069. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  38070. $as_echo_n "(cached) " >&6
  38071. else
  38072. ac_ext=cpp
  38073. ac_cpp='$CXXCPP $CPPFLAGS'
  38074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38078. /* end confdefs.h. */
  38079. #include <math.h>
  38080. int
  38081. main ()
  38082. {
  38083. frexpl(0, 0);
  38084. ;
  38085. return 0;
  38086. }
  38087. _ACEOF
  38088. if ac_fn_cxx_try_compile "$LINENO"; then :
  38089. glibcxx_cv_func_frexpl_use=yes
  38090. else
  38091. glibcxx_cv_func_frexpl_use=no
  38092. fi
  38093. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38094. ac_ext=c
  38095. ac_cpp='$CPP $CPPFLAGS'
  38096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38099. fi
  38100. fi
  38101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  38102. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  38103. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  38104. for ac_func in frexpl
  38105. do :
  38106. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  38107. if test "x$ac_cv_func_frexpl" = xyes; then :
  38108. cat >>confdefs.h <<_ACEOF
  38109. #define HAVE_FREXPL 1
  38110. _ACEOF
  38111. fi
  38112. done
  38113. else
  38114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  38115. $as_echo_n "checking for _frexpl declaration... " >&6; }
  38116. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  38117. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  38118. $as_echo_n "(cached) " >&6
  38119. else
  38120. ac_ext=cpp
  38121. ac_cpp='$CXXCPP $CPPFLAGS'
  38122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38126. /* end confdefs.h. */
  38127. #include <math.h>
  38128. int
  38129. main ()
  38130. {
  38131. _frexpl(0, 0);
  38132. ;
  38133. return 0;
  38134. }
  38135. _ACEOF
  38136. if ac_fn_cxx_try_compile "$LINENO"; then :
  38137. glibcxx_cv_func__frexpl_use=yes
  38138. else
  38139. glibcxx_cv_func__frexpl_use=no
  38140. fi
  38141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38142. ac_ext=c
  38143. ac_cpp='$CPP $CPPFLAGS'
  38144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38147. fi
  38148. fi
  38149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  38150. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  38151. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  38152. for ac_func in _frexpl
  38153. do :
  38154. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  38155. if test "x$ac_cv_func__frexpl" = xyes; then :
  38156. cat >>confdefs.h <<_ACEOF
  38157. #define HAVE__FREXPL 1
  38158. _ACEOF
  38159. fi
  38160. done
  38161. fi
  38162. fi
  38163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  38164. $as_echo_n "checking for hypotl declaration... " >&6; }
  38165. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  38166. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  38167. $as_echo_n "(cached) " >&6
  38168. else
  38169. ac_ext=cpp
  38170. ac_cpp='$CXXCPP $CPPFLAGS'
  38171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38175. /* end confdefs.h. */
  38176. #include <math.h>
  38177. int
  38178. main ()
  38179. {
  38180. hypotl(0, 0);
  38181. ;
  38182. return 0;
  38183. }
  38184. _ACEOF
  38185. if ac_fn_cxx_try_compile "$LINENO"; then :
  38186. glibcxx_cv_func_hypotl_use=yes
  38187. else
  38188. glibcxx_cv_func_hypotl_use=no
  38189. fi
  38190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38191. ac_ext=c
  38192. ac_cpp='$CPP $CPPFLAGS'
  38193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38196. fi
  38197. fi
  38198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  38199. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  38200. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  38201. for ac_func in hypotl
  38202. do :
  38203. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  38204. if test "x$ac_cv_func_hypotl" = xyes; then :
  38205. cat >>confdefs.h <<_ACEOF
  38206. #define HAVE_HYPOTL 1
  38207. _ACEOF
  38208. fi
  38209. done
  38210. else
  38211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  38212. $as_echo_n "checking for _hypotl declaration... " >&6; }
  38213. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  38214. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  38215. $as_echo_n "(cached) " >&6
  38216. else
  38217. ac_ext=cpp
  38218. ac_cpp='$CXXCPP $CPPFLAGS'
  38219. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38220. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38221. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38223. /* end confdefs.h. */
  38224. #include <math.h>
  38225. int
  38226. main ()
  38227. {
  38228. _hypotl(0, 0);
  38229. ;
  38230. return 0;
  38231. }
  38232. _ACEOF
  38233. if ac_fn_cxx_try_compile "$LINENO"; then :
  38234. glibcxx_cv_func__hypotl_use=yes
  38235. else
  38236. glibcxx_cv_func__hypotl_use=no
  38237. fi
  38238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38239. ac_ext=c
  38240. ac_cpp='$CPP $CPPFLAGS'
  38241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38244. fi
  38245. fi
  38246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  38247. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  38248. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  38249. for ac_func in _hypotl
  38250. do :
  38251. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  38252. if test "x$ac_cv_func__hypotl" = xyes; then :
  38253. cat >>confdefs.h <<_ACEOF
  38254. #define HAVE__HYPOTL 1
  38255. _ACEOF
  38256. fi
  38257. done
  38258. fi
  38259. fi
  38260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  38261. $as_echo_n "checking for ldexpl declaration... " >&6; }
  38262. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  38263. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  38264. $as_echo_n "(cached) " >&6
  38265. else
  38266. ac_ext=cpp
  38267. ac_cpp='$CXXCPP $CPPFLAGS'
  38268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38272. /* end confdefs.h. */
  38273. #include <math.h>
  38274. int
  38275. main ()
  38276. {
  38277. ldexpl(0, 0);
  38278. ;
  38279. return 0;
  38280. }
  38281. _ACEOF
  38282. if ac_fn_cxx_try_compile "$LINENO"; then :
  38283. glibcxx_cv_func_ldexpl_use=yes
  38284. else
  38285. glibcxx_cv_func_ldexpl_use=no
  38286. fi
  38287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38288. ac_ext=c
  38289. ac_cpp='$CPP $CPPFLAGS'
  38290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38293. fi
  38294. fi
  38295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  38296. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  38297. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  38298. for ac_func in ldexpl
  38299. do :
  38300. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  38301. if test "x$ac_cv_func_ldexpl" = xyes; then :
  38302. cat >>confdefs.h <<_ACEOF
  38303. #define HAVE_LDEXPL 1
  38304. _ACEOF
  38305. fi
  38306. done
  38307. else
  38308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  38309. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  38310. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  38311. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  38312. $as_echo_n "(cached) " >&6
  38313. else
  38314. ac_ext=cpp
  38315. ac_cpp='$CXXCPP $CPPFLAGS'
  38316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38320. /* end confdefs.h. */
  38321. #include <math.h>
  38322. int
  38323. main ()
  38324. {
  38325. _ldexpl(0, 0);
  38326. ;
  38327. return 0;
  38328. }
  38329. _ACEOF
  38330. if ac_fn_cxx_try_compile "$LINENO"; then :
  38331. glibcxx_cv_func__ldexpl_use=yes
  38332. else
  38333. glibcxx_cv_func__ldexpl_use=no
  38334. fi
  38335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38336. ac_ext=c
  38337. ac_cpp='$CPP $CPPFLAGS'
  38338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38341. fi
  38342. fi
  38343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  38344. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  38345. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  38346. for ac_func in _ldexpl
  38347. do :
  38348. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  38349. if test "x$ac_cv_func__ldexpl" = xyes; then :
  38350. cat >>confdefs.h <<_ACEOF
  38351. #define HAVE__LDEXPL 1
  38352. _ACEOF
  38353. fi
  38354. done
  38355. fi
  38356. fi
  38357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  38358. $as_echo_n "checking for logl declaration... " >&6; }
  38359. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  38360. if ${glibcxx_cv_func_logl_use+:} false; then :
  38361. $as_echo_n "(cached) " >&6
  38362. else
  38363. ac_ext=cpp
  38364. ac_cpp='$CXXCPP $CPPFLAGS'
  38365. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38366. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38367. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38369. /* end confdefs.h. */
  38370. #include <math.h>
  38371. #ifdef HAVE_IEEEFP_H
  38372. #include <ieeefp.h>
  38373. #endif
  38374. int
  38375. main ()
  38376. {
  38377. logl(0);
  38378. ;
  38379. return 0;
  38380. }
  38381. _ACEOF
  38382. if ac_fn_cxx_try_compile "$LINENO"; then :
  38383. glibcxx_cv_func_logl_use=yes
  38384. else
  38385. glibcxx_cv_func_logl_use=no
  38386. fi
  38387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38388. ac_ext=c
  38389. ac_cpp='$CPP $CPPFLAGS'
  38390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38393. fi
  38394. fi
  38395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  38396. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  38397. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  38398. for ac_func in logl
  38399. do :
  38400. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  38401. if test "x$ac_cv_func_logl" = xyes; then :
  38402. cat >>confdefs.h <<_ACEOF
  38403. #define HAVE_LOGL 1
  38404. _ACEOF
  38405. fi
  38406. done
  38407. else
  38408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  38409. $as_echo_n "checking for _logl declaration... " >&6; }
  38410. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  38411. if ${glibcxx_cv_func__logl_use+:} false; then :
  38412. $as_echo_n "(cached) " >&6
  38413. else
  38414. ac_ext=cpp
  38415. ac_cpp='$CXXCPP $CPPFLAGS'
  38416. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38417. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38418. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38420. /* end confdefs.h. */
  38421. #include <math.h>
  38422. #ifdef HAVE_IEEEFP_H
  38423. #include <ieeefp.h>
  38424. #endif
  38425. int
  38426. main ()
  38427. {
  38428. _logl(0);
  38429. ;
  38430. return 0;
  38431. }
  38432. _ACEOF
  38433. if ac_fn_cxx_try_compile "$LINENO"; then :
  38434. glibcxx_cv_func__logl_use=yes
  38435. else
  38436. glibcxx_cv_func__logl_use=no
  38437. fi
  38438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38439. ac_ext=c
  38440. ac_cpp='$CPP $CPPFLAGS'
  38441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38444. fi
  38445. fi
  38446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  38447. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  38448. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  38449. for ac_func in _logl
  38450. do :
  38451. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  38452. if test "x$ac_cv_func__logl" = xyes; then :
  38453. cat >>confdefs.h <<_ACEOF
  38454. #define HAVE__LOGL 1
  38455. _ACEOF
  38456. fi
  38457. done
  38458. fi
  38459. fi
  38460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  38461. $as_echo_n "checking for log10l declaration... " >&6; }
  38462. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  38463. if ${glibcxx_cv_func_log10l_use+:} false; then :
  38464. $as_echo_n "(cached) " >&6
  38465. else
  38466. ac_ext=cpp
  38467. ac_cpp='$CXXCPP $CPPFLAGS'
  38468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38472. /* end confdefs.h. */
  38473. #include <math.h>
  38474. #ifdef HAVE_IEEEFP_H
  38475. #include <ieeefp.h>
  38476. #endif
  38477. int
  38478. main ()
  38479. {
  38480. log10l(0);
  38481. ;
  38482. return 0;
  38483. }
  38484. _ACEOF
  38485. if ac_fn_cxx_try_compile "$LINENO"; then :
  38486. glibcxx_cv_func_log10l_use=yes
  38487. else
  38488. glibcxx_cv_func_log10l_use=no
  38489. fi
  38490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38491. ac_ext=c
  38492. ac_cpp='$CPP $CPPFLAGS'
  38493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38496. fi
  38497. fi
  38498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  38499. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  38500. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  38501. for ac_func in log10l
  38502. do :
  38503. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  38504. if test "x$ac_cv_func_log10l" = xyes; then :
  38505. cat >>confdefs.h <<_ACEOF
  38506. #define HAVE_LOG10L 1
  38507. _ACEOF
  38508. fi
  38509. done
  38510. else
  38511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  38512. $as_echo_n "checking for _log10l declaration... " >&6; }
  38513. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  38514. if ${glibcxx_cv_func__log10l_use+:} false; then :
  38515. $as_echo_n "(cached) " >&6
  38516. else
  38517. ac_ext=cpp
  38518. ac_cpp='$CXXCPP $CPPFLAGS'
  38519. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38520. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38521. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38523. /* end confdefs.h. */
  38524. #include <math.h>
  38525. #ifdef HAVE_IEEEFP_H
  38526. #include <ieeefp.h>
  38527. #endif
  38528. int
  38529. main ()
  38530. {
  38531. _log10l(0);
  38532. ;
  38533. return 0;
  38534. }
  38535. _ACEOF
  38536. if ac_fn_cxx_try_compile "$LINENO"; then :
  38537. glibcxx_cv_func__log10l_use=yes
  38538. else
  38539. glibcxx_cv_func__log10l_use=no
  38540. fi
  38541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38542. ac_ext=c
  38543. ac_cpp='$CPP $CPPFLAGS'
  38544. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38545. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38546. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38547. fi
  38548. fi
  38549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  38550. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  38551. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  38552. for ac_func in _log10l
  38553. do :
  38554. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  38555. if test "x$ac_cv_func__log10l" = xyes; then :
  38556. cat >>confdefs.h <<_ACEOF
  38557. #define HAVE__LOG10L 1
  38558. _ACEOF
  38559. fi
  38560. done
  38561. fi
  38562. fi
  38563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  38564. $as_echo_n "checking for modfl declaration... " >&6; }
  38565. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  38566. if ${glibcxx_cv_func_modfl_use+:} false; then :
  38567. $as_echo_n "(cached) " >&6
  38568. else
  38569. ac_ext=cpp
  38570. ac_cpp='$CXXCPP $CPPFLAGS'
  38571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38575. /* end confdefs.h. */
  38576. #include <math.h>
  38577. int
  38578. main ()
  38579. {
  38580. modfl(0, 0);
  38581. ;
  38582. return 0;
  38583. }
  38584. _ACEOF
  38585. if ac_fn_cxx_try_compile "$LINENO"; then :
  38586. glibcxx_cv_func_modfl_use=yes
  38587. else
  38588. glibcxx_cv_func_modfl_use=no
  38589. fi
  38590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38591. ac_ext=c
  38592. ac_cpp='$CPP $CPPFLAGS'
  38593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38596. fi
  38597. fi
  38598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  38599. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  38600. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  38601. for ac_func in modfl
  38602. do :
  38603. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  38604. if test "x$ac_cv_func_modfl" = xyes; then :
  38605. cat >>confdefs.h <<_ACEOF
  38606. #define HAVE_MODFL 1
  38607. _ACEOF
  38608. fi
  38609. done
  38610. else
  38611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  38612. $as_echo_n "checking for _modfl declaration... " >&6; }
  38613. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  38614. if ${glibcxx_cv_func__modfl_use+:} false; then :
  38615. $as_echo_n "(cached) " >&6
  38616. else
  38617. ac_ext=cpp
  38618. ac_cpp='$CXXCPP $CPPFLAGS'
  38619. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38620. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38621. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38623. /* end confdefs.h. */
  38624. #include <math.h>
  38625. int
  38626. main ()
  38627. {
  38628. _modfl(0, 0);
  38629. ;
  38630. return 0;
  38631. }
  38632. _ACEOF
  38633. if ac_fn_cxx_try_compile "$LINENO"; then :
  38634. glibcxx_cv_func__modfl_use=yes
  38635. else
  38636. glibcxx_cv_func__modfl_use=no
  38637. fi
  38638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38639. ac_ext=c
  38640. ac_cpp='$CPP $CPPFLAGS'
  38641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38644. fi
  38645. fi
  38646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  38647. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  38648. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  38649. for ac_func in _modfl
  38650. do :
  38651. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  38652. if test "x$ac_cv_func__modfl" = xyes; then :
  38653. cat >>confdefs.h <<_ACEOF
  38654. #define HAVE__MODFL 1
  38655. _ACEOF
  38656. fi
  38657. done
  38658. fi
  38659. fi
  38660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  38661. $as_echo_n "checking for powl declaration... " >&6; }
  38662. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  38663. if ${glibcxx_cv_func_powl_use+:} false; then :
  38664. $as_echo_n "(cached) " >&6
  38665. else
  38666. ac_ext=cpp
  38667. ac_cpp='$CXXCPP $CPPFLAGS'
  38668. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38669. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38670. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38672. /* end confdefs.h. */
  38673. #include <math.h>
  38674. int
  38675. main ()
  38676. {
  38677. powl(0, 0);
  38678. ;
  38679. return 0;
  38680. }
  38681. _ACEOF
  38682. if ac_fn_cxx_try_compile "$LINENO"; then :
  38683. glibcxx_cv_func_powl_use=yes
  38684. else
  38685. glibcxx_cv_func_powl_use=no
  38686. fi
  38687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38688. ac_ext=c
  38689. ac_cpp='$CPP $CPPFLAGS'
  38690. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38691. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38692. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38693. fi
  38694. fi
  38695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  38696. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  38697. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  38698. for ac_func in powl
  38699. do :
  38700. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  38701. if test "x$ac_cv_func_powl" = xyes; then :
  38702. cat >>confdefs.h <<_ACEOF
  38703. #define HAVE_POWL 1
  38704. _ACEOF
  38705. fi
  38706. done
  38707. else
  38708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  38709. $as_echo_n "checking for _powl declaration... " >&6; }
  38710. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  38711. if ${glibcxx_cv_func__powl_use+:} false; then :
  38712. $as_echo_n "(cached) " >&6
  38713. else
  38714. ac_ext=cpp
  38715. ac_cpp='$CXXCPP $CPPFLAGS'
  38716. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38717. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38718. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38720. /* end confdefs.h. */
  38721. #include <math.h>
  38722. int
  38723. main ()
  38724. {
  38725. _powl(0, 0);
  38726. ;
  38727. return 0;
  38728. }
  38729. _ACEOF
  38730. if ac_fn_cxx_try_compile "$LINENO"; then :
  38731. glibcxx_cv_func__powl_use=yes
  38732. else
  38733. glibcxx_cv_func__powl_use=no
  38734. fi
  38735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38736. ac_ext=c
  38737. ac_cpp='$CPP $CPPFLAGS'
  38738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38741. fi
  38742. fi
  38743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  38744. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  38745. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  38746. for ac_func in _powl
  38747. do :
  38748. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  38749. if test "x$ac_cv_func__powl" = xyes; then :
  38750. cat >>confdefs.h <<_ACEOF
  38751. #define HAVE__POWL 1
  38752. _ACEOF
  38753. fi
  38754. done
  38755. fi
  38756. fi
  38757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  38758. $as_echo_n "checking for sqrtl declaration... " >&6; }
  38759. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  38760. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  38761. $as_echo_n "(cached) " >&6
  38762. else
  38763. ac_ext=cpp
  38764. ac_cpp='$CXXCPP $CPPFLAGS'
  38765. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38766. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38767. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38769. /* end confdefs.h. */
  38770. #include <math.h>
  38771. #ifdef HAVE_IEEEFP_H
  38772. #include <ieeefp.h>
  38773. #endif
  38774. int
  38775. main ()
  38776. {
  38777. sqrtl(0);
  38778. ;
  38779. return 0;
  38780. }
  38781. _ACEOF
  38782. if ac_fn_cxx_try_compile "$LINENO"; then :
  38783. glibcxx_cv_func_sqrtl_use=yes
  38784. else
  38785. glibcxx_cv_func_sqrtl_use=no
  38786. fi
  38787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38788. ac_ext=c
  38789. ac_cpp='$CPP $CPPFLAGS'
  38790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38793. fi
  38794. fi
  38795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  38796. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  38797. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  38798. for ac_func in sqrtl
  38799. do :
  38800. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  38801. if test "x$ac_cv_func_sqrtl" = xyes; then :
  38802. cat >>confdefs.h <<_ACEOF
  38803. #define HAVE_SQRTL 1
  38804. _ACEOF
  38805. fi
  38806. done
  38807. else
  38808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  38809. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  38810. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  38811. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  38812. $as_echo_n "(cached) " >&6
  38813. else
  38814. ac_ext=cpp
  38815. ac_cpp='$CXXCPP $CPPFLAGS'
  38816. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38817. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38818. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38820. /* end confdefs.h. */
  38821. #include <math.h>
  38822. #ifdef HAVE_IEEEFP_H
  38823. #include <ieeefp.h>
  38824. #endif
  38825. int
  38826. main ()
  38827. {
  38828. _sqrtl(0);
  38829. ;
  38830. return 0;
  38831. }
  38832. _ACEOF
  38833. if ac_fn_cxx_try_compile "$LINENO"; then :
  38834. glibcxx_cv_func__sqrtl_use=yes
  38835. else
  38836. glibcxx_cv_func__sqrtl_use=no
  38837. fi
  38838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38839. ac_ext=c
  38840. ac_cpp='$CPP $CPPFLAGS'
  38841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38844. fi
  38845. fi
  38846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  38847. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  38848. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  38849. for ac_func in _sqrtl
  38850. do :
  38851. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  38852. if test "x$ac_cv_func__sqrtl" = xyes; then :
  38853. cat >>confdefs.h <<_ACEOF
  38854. #define HAVE__SQRTL 1
  38855. _ACEOF
  38856. fi
  38857. done
  38858. fi
  38859. fi
  38860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  38861. $as_echo_n "checking for sincosl declaration... " >&6; }
  38862. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  38863. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  38864. $as_echo_n "(cached) " >&6
  38865. else
  38866. ac_ext=cpp
  38867. ac_cpp='$CXXCPP $CPPFLAGS'
  38868. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38869. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38870. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38872. /* end confdefs.h. */
  38873. #include <math.h>
  38874. int
  38875. main ()
  38876. {
  38877. sincosl(0, 0, 0);
  38878. ;
  38879. return 0;
  38880. }
  38881. _ACEOF
  38882. if ac_fn_cxx_try_compile "$LINENO"; then :
  38883. glibcxx_cv_func_sincosl_use=yes
  38884. else
  38885. glibcxx_cv_func_sincosl_use=no
  38886. fi
  38887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38888. ac_ext=c
  38889. ac_cpp='$CPP $CPPFLAGS'
  38890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38893. fi
  38894. fi
  38895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  38896. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  38897. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  38898. for ac_func in sincosl
  38899. do :
  38900. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  38901. if test "x$ac_cv_func_sincosl" = xyes; then :
  38902. cat >>confdefs.h <<_ACEOF
  38903. #define HAVE_SINCOSL 1
  38904. _ACEOF
  38905. fi
  38906. done
  38907. else
  38908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  38909. $as_echo_n "checking for _sincosl declaration... " >&6; }
  38910. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  38911. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  38912. $as_echo_n "(cached) " >&6
  38913. else
  38914. ac_ext=cpp
  38915. ac_cpp='$CXXCPP $CPPFLAGS'
  38916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38920. /* end confdefs.h. */
  38921. #include <math.h>
  38922. int
  38923. main ()
  38924. {
  38925. _sincosl(0, 0, 0);
  38926. ;
  38927. return 0;
  38928. }
  38929. _ACEOF
  38930. if ac_fn_cxx_try_compile "$LINENO"; then :
  38931. glibcxx_cv_func__sincosl_use=yes
  38932. else
  38933. glibcxx_cv_func__sincosl_use=no
  38934. fi
  38935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38936. ac_ext=c
  38937. ac_cpp='$CPP $CPPFLAGS'
  38938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38941. fi
  38942. fi
  38943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  38944. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  38945. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  38946. for ac_func in _sincosl
  38947. do :
  38948. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  38949. if test "x$ac_cv_func__sincosl" = xyes; then :
  38950. cat >>confdefs.h <<_ACEOF
  38951. #define HAVE__SINCOSL 1
  38952. _ACEOF
  38953. fi
  38954. done
  38955. fi
  38956. fi
  38957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  38958. $as_echo_n "checking for finitel declaration... " >&6; }
  38959. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  38960. if ${glibcxx_cv_func_finitel_use+:} false; then :
  38961. $as_echo_n "(cached) " >&6
  38962. else
  38963. ac_ext=cpp
  38964. ac_cpp='$CXXCPP $CPPFLAGS'
  38965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  38968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38969. /* end confdefs.h. */
  38970. #include <math.h>
  38971. #ifdef HAVE_IEEEFP_H
  38972. #include <ieeefp.h>
  38973. #endif
  38974. int
  38975. main ()
  38976. {
  38977. finitel(0);
  38978. ;
  38979. return 0;
  38980. }
  38981. _ACEOF
  38982. if ac_fn_cxx_try_compile "$LINENO"; then :
  38983. glibcxx_cv_func_finitel_use=yes
  38984. else
  38985. glibcxx_cv_func_finitel_use=no
  38986. fi
  38987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38988. ac_ext=c
  38989. ac_cpp='$CPP $CPPFLAGS'
  38990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38993. fi
  38994. fi
  38995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  38996. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  38997. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  38998. for ac_func in finitel
  38999. do :
  39000. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  39001. if test "x$ac_cv_func_finitel" = xyes; then :
  39002. cat >>confdefs.h <<_ACEOF
  39003. #define HAVE_FINITEL 1
  39004. _ACEOF
  39005. fi
  39006. done
  39007. else
  39008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  39009. $as_echo_n "checking for _finitel declaration... " >&6; }
  39010. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  39011. if ${glibcxx_cv_func__finitel_use+:} false; then :
  39012. $as_echo_n "(cached) " >&6
  39013. else
  39014. ac_ext=cpp
  39015. ac_cpp='$CXXCPP $CPPFLAGS'
  39016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39020. /* end confdefs.h. */
  39021. #include <math.h>
  39022. #ifdef HAVE_IEEEFP_H
  39023. #include <ieeefp.h>
  39024. #endif
  39025. int
  39026. main ()
  39027. {
  39028. _finitel(0);
  39029. ;
  39030. return 0;
  39031. }
  39032. _ACEOF
  39033. if ac_fn_cxx_try_compile "$LINENO"; then :
  39034. glibcxx_cv_func__finitel_use=yes
  39035. else
  39036. glibcxx_cv_func__finitel_use=no
  39037. fi
  39038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39039. ac_ext=c
  39040. ac_cpp='$CPP $CPPFLAGS'
  39041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39044. fi
  39045. fi
  39046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  39047. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  39048. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  39049. for ac_func in _finitel
  39050. do :
  39051. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  39052. if test "x$ac_cv_func__finitel" = xyes; then :
  39053. cat >>confdefs.h <<_ACEOF
  39054. #define HAVE__FINITEL 1
  39055. _ACEOF
  39056. fi
  39057. done
  39058. fi
  39059. fi
  39060. LIBS="$ac_save_LIBS"
  39061. CXXFLAGS="$ac_save_CXXFLAGS"
  39062. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  39063. ac_save_CXXFLAGS="$CXXFLAGS"
  39064. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  39065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  39066. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  39067. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  39068. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  39069. $as_echo_n "(cached) " >&6
  39070. else
  39071. ac_ext=cpp
  39072. ac_cpp='$CXXCPP $CPPFLAGS'
  39073. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39074. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39075. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39077. /* end confdefs.h. */
  39078. #include <stdlib.h>
  39079. int
  39080. main ()
  39081. {
  39082. at_quick_exit(0);
  39083. ;
  39084. return 0;
  39085. }
  39086. _ACEOF
  39087. if ac_fn_cxx_try_compile "$LINENO"; then :
  39088. glibcxx_cv_func_at_quick_exit_use=yes
  39089. else
  39090. glibcxx_cv_func_at_quick_exit_use=no
  39091. fi
  39092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39093. ac_ext=c
  39094. ac_cpp='$CPP $CPPFLAGS'
  39095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39098. fi
  39099. fi
  39100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  39101. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  39102. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  39103. for ac_func in at_quick_exit
  39104. do :
  39105. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  39106. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  39107. cat >>confdefs.h <<_ACEOF
  39108. #define HAVE_AT_QUICK_EXIT 1
  39109. _ACEOF
  39110. fi
  39111. done
  39112. fi
  39113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  39114. $as_echo_n "checking for quick_exit declaration... " >&6; }
  39115. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  39116. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  39117. $as_echo_n "(cached) " >&6
  39118. else
  39119. ac_ext=cpp
  39120. ac_cpp='$CXXCPP $CPPFLAGS'
  39121. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39122. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39123. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39125. /* end confdefs.h. */
  39126. #include <stdlib.h>
  39127. int
  39128. main ()
  39129. {
  39130. quick_exit(0);
  39131. ;
  39132. return 0;
  39133. }
  39134. _ACEOF
  39135. if ac_fn_cxx_try_compile "$LINENO"; then :
  39136. glibcxx_cv_func_quick_exit_use=yes
  39137. else
  39138. glibcxx_cv_func_quick_exit_use=no
  39139. fi
  39140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39141. ac_ext=c
  39142. ac_cpp='$CPP $CPPFLAGS'
  39143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39146. fi
  39147. fi
  39148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  39149. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  39150. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  39151. for ac_func in quick_exit
  39152. do :
  39153. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  39154. if test "x$ac_cv_func_quick_exit" = xyes; then :
  39155. cat >>confdefs.h <<_ACEOF
  39156. #define HAVE_QUICK_EXIT 1
  39157. _ACEOF
  39158. fi
  39159. done
  39160. fi
  39161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  39162. $as_echo_n "checking for strtold declaration... " >&6; }
  39163. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  39164. if ${glibcxx_cv_func_strtold_use+:} false; then :
  39165. $as_echo_n "(cached) " >&6
  39166. else
  39167. ac_ext=cpp
  39168. ac_cpp='$CXXCPP $CPPFLAGS'
  39169. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39170. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39171. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39173. /* end confdefs.h. */
  39174. #include <stdlib.h>
  39175. int
  39176. main ()
  39177. {
  39178. strtold(0, 0);
  39179. ;
  39180. return 0;
  39181. }
  39182. _ACEOF
  39183. if ac_fn_cxx_try_compile "$LINENO"; then :
  39184. glibcxx_cv_func_strtold_use=yes
  39185. else
  39186. glibcxx_cv_func_strtold_use=no
  39187. fi
  39188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39189. ac_ext=c
  39190. ac_cpp='$CPP $CPPFLAGS'
  39191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39194. fi
  39195. fi
  39196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  39197. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  39198. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  39199. for ac_func in strtold
  39200. do :
  39201. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  39202. if test "x$ac_cv_func_strtold" = xyes; then :
  39203. cat >>confdefs.h <<_ACEOF
  39204. #define HAVE_STRTOLD 1
  39205. _ACEOF
  39206. fi
  39207. done
  39208. fi
  39209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  39210. $as_echo_n "checking for strtof declaration... " >&6; }
  39211. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  39212. if ${glibcxx_cv_func_strtof_use+:} false; then :
  39213. $as_echo_n "(cached) " >&6
  39214. else
  39215. ac_ext=cpp
  39216. ac_cpp='$CXXCPP $CPPFLAGS'
  39217. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39218. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39219. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39221. /* end confdefs.h. */
  39222. #include <stdlib.h>
  39223. int
  39224. main ()
  39225. {
  39226. strtof(0, 0);
  39227. ;
  39228. return 0;
  39229. }
  39230. _ACEOF
  39231. if ac_fn_cxx_try_compile "$LINENO"; then :
  39232. glibcxx_cv_func_strtof_use=yes
  39233. else
  39234. glibcxx_cv_func_strtof_use=no
  39235. fi
  39236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39237. ac_ext=c
  39238. ac_cpp='$CPP $CPPFLAGS'
  39239. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39240. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39241. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39242. fi
  39243. fi
  39244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  39245. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  39246. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  39247. for ac_func in strtof
  39248. do :
  39249. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  39250. if test "x$ac_cv_func_strtof" = xyes; then :
  39251. cat >>confdefs.h <<_ACEOF
  39252. #define HAVE_STRTOF 1
  39253. _ACEOF
  39254. fi
  39255. done
  39256. fi
  39257. CXXFLAGS="$ac_save_CXXFLAGS"
  39258. for ac_func in uselocale
  39259. do :
  39260. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  39261. if test "x$ac_cv_func_uselocale" = xyes; then :
  39262. cat >>confdefs.h <<_ACEOF
  39263. #define HAVE_USELOCALE 1
  39264. _ACEOF
  39265. fi
  39266. done
  39267. ;;
  39268. *djgpp)
  39269. # GLIBCXX_CHECK_MATH_SUPPORT
  39270. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  39271. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  39272. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  39273. $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
  39274. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  39275. ;;
  39276. *-freebsd*)
  39277. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  39278. # If we're not using GNU ld, then there's no point in even trying these
  39279. # tests. Check for that first. We should have already tested for gld
  39280. # by now (in libtool), but require it now just to be safe...
  39281. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  39282. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  39283. # The name set by libtool depends on the version of libtool. Shame on us
  39284. # for depending on an impl detail, but c'est la vie. Older versions used
  39285. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  39286. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  39287. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  39288. # set (hence we're using an older libtool), then set it.
  39289. if test x${with_gnu_ld+set} != xset; then
  39290. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  39291. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  39292. with_gnu_ld=no
  39293. else
  39294. with_gnu_ld=$ac_cv_prog_gnu_ld
  39295. fi
  39296. fi
  39297. # Start by getting the version number. I think the libtool test already
  39298. # does some of this, but throws away the result.
  39299. glibcxx_ld_is_gold=no
  39300. glibcxx_ld_is_mold=no
  39301. if test x"$with_gnu_ld" = x"yes"; then
  39302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  39303. $as_echo_n "checking for ld version... " >&6; }
  39304. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  39305. glibcxx_ld_is_gold=yes
  39306. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  39307. glibcxx_ld_is_mold=yes
  39308. fi
  39309. ldver=`$LD --version 2>/dev/null |
  39310. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  39311. glibcxx_gnu_ld_version=`echo $ldver | \
  39312. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  39313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  39314. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  39315. fi
  39316. # Set --gc-sections.
  39317. glibcxx_have_gc_sections=no
  39318. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  39319. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  39320. glibcxx_have_gc_sections=yes
  39321. fi
  39322. else
  39323. glibcxx_gcsections_min_ld=21602
  39324. if test x"$with_gnu_ld" = x"yes" &&
  39325. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  39326. glibcxx_have_gc_sections=yes
  39327. fi
  39328. fi
  39329. if test "$glibcxx_have_gc_sections" = "yes"; then
  39330. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  39331. # NB: This flag only works reliably after 2.16.1. Configure tests
  39332. # for this are difficult, so hard wire a value that should work.
  39333. ac_test_CFLAGS="${CFLAGS+set}"
  39334. ac_save_CFLAGS="$CFLAGS"
  39335. CFLAGS='-Wl,--gc-sections'
  39336. # Check for -Wl,--gc-sections
  39337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  39338. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  39339. if test x$gcc_no_link = xyes; then
  39340. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39341. fi
  39342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39343. /* end confdefs.h. */
  39344. int one(void) { return 1; }
  39345. int two(void) { return 2; }
  39346. int
  39347. main ()
  39348. {
  39349. two();
  39350. ;
  39351. return 0;
  39352. }
  39353. _ACEOF
  39354. if ac_fn_c_try_link "$LINENO"; then :
  39355. ac_gcsections=yes
  39356. else
  39357. ac_gcsections=no
  39358. fi
  39359. rm -f core conftest.err conftest.$ac_objext \
  39360. conftest$ac_exeext conftest.$ac_ext
  39361. if test "$ac_gcsections" = "yes"; then
  39362. rm -f conftest.c
  39363. touch conftest.c
  39364. if $CC -c conftest.c; then
  39365. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  39366. grep "Warning: gc-sections option ignored" > /dev/null; then
  39367. ac_gcsections=no
  39368. fi
  39369. fi
  39370. rm -f conftest.c conftest.o conftest
  39371. fi
  39372. if test "$ac_gcsections" = "yes"; then
  39373. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  39374. fi
  39375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  39376. $as_echo "$ac_gcsections" >&6; }
  39377. if test "$ac_test_CFLAGS" = set; then
  39378. CFLAGS="$ac_save_CFLAGS"
  39379. else
  39380. # this is the suspicious part
  39381. CFLAGS=''
  39382. fi
  39383. fi
  39384. # Set -z,relro.
  39385. # Note this is only for shared objects.
  39386. ac_ld_relro=no
  39387. if test x"$with_gnu_ld" = x"yes"; then
  39388. # cygwin and mingw uses PE, which has no ELF relro support,
  39389. # multi target ld may confuse configure machinery
  39390. case "$host" in
  39391. *-*-cygwin*)
  39392. ;;
  39393. *-*-mingw*)
  39394. ;;
  39395. *)
  39396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  39397. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  39398. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  39399. if test -n "$cxx_z_relo"; then
  39400. OPT_LDFLAGS="-Wl,-z,relro"
  39401. ac_ld_relro=yes
  39402. fi
  39403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  39404. $as_echo "$ac_ld_relro" >&6; }
  39405. esac
  39406. fi
  39407. # Set linker optimization flags.
  39408. if test x"$with_gnu_ld" = x"yes"; then
  39409. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  39410. fi
  39411. $as_echo "#define HAVE_SETENV 1" >>confdefs.h
  39412. $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
  39413. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  39414. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  39415. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  39416. $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
  39417. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  39418. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  39419. $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
  39420. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  39421. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  39422. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  39423. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  39424. $as_echo "#define HAVE_CEILF 1" >>confdefs.h
  39425. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  39426. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  39427. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  39428. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  39429. $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
  39430. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  39431. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  39432. $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
  39433. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  39434. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  39435. $as_echo "#define HAVE_MODFF 1" >>confdefs.h
  39436. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  39437. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  39438. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  39439. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  39440. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  39441. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  39442. if test x"long_double_math_on_this_cpu" = x"yes"; then
  39443. $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
  39444. $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
  39445. $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
  39446. fi
  39447. for ac_func in __cxa_thread_atexit
  39448. do :
  39449. ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit" "ac_cv_func___cxa_thread_atexit"
  39450. if test "x$ac_cv_func___cxa_thread_atexit" = xyes; then :
  39451. cat >>confdefs.h <<_ACEOF
  39452. #define HAVE___CXA_THREAD_ATEXIT 1
  39453. _ACEOF
  39454. fi
  39455. done
  39456. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  39457. do :
  39458. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  39459. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  39460. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  39461. cat >>confdefs.h <<_ACEOF
  39462. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  39463. _ACEOF
  39464. fi
  39465. done
  39466. for ac_func in timespec_get
  39467. do :
  39468. ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
  39469. if test "x$ac_cv_func_timespec_get" = xyes; then :
  39470. cat >>confdefs.h <<_ACEOF
  39471. #define HAVE_TIMESPEC_GET 1
  39472. _ACEOF
  39473. fi
  39474. done
  39475. for ac_func in sockatmark
  39476. do :
  39477. ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
  39478. if test "x$ac_cv_func_sockatmark" = xyes; then :
  39479. cat >>confdefs.h <<_ACEOF
  39480. #define HAVE_SOCKATMARK 1
  39481. _ACEOF
  39482. fi
  39483. done
  39484. for ac_func in uselocale
  39485. do :
  39486. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  39487. if test "x$ac_cv_func_uselocale" = xyes; then :
  39488. cat >>confdefs.h <<_ACEOF
  39489. #define HAVE_USELOCALE 1
  39490. _ACEOF
  39491. fi
  39492. done
  39493. ;;
  39494. *-fuchsia*)
  39495. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  39496. ;;
  39497. *-hpux*)
  39498. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  39499. # If we're not using GNU ld, then there's no point in even trying these
  39500. # tests. Check for that first. We should have already tested for gld
  39501. # by now (in libtool), but require it now just to be safe...
  39502. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  39503. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  39504. # The name set by libtool depends on the version of libtool. Shame on us
  39505. # for depending on an impl detail, but c'est la vie. Older versions used
  39506. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  39507. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  39508. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  39509. # set (hence we're using an older libtool), then set it.
  39510. if test x${with_gnu_ld+set} != xset; then
  39511. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  39512. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  39513. with_gnu_ld=no
  39514. else
  39515. with_gnu_ld=$ac_cv_prog_gnu_ld
  39516. fi
  39517. fi
  39518. # Start by getting the version number. I think the libtool test already
  39519. # does some of this, but throws away the result.
  39520. glibcxx_ld_is_gold=no
  39521. glibcxx_ld_is_mold=no
  39522. if test x"$with_gnu_ld" = x"yes"; then
  39523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  39524. $as_echo_n "checking for ld version... " >&6; }
  39525. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  39526. glibcxx_ld_is_gold=yes
  39527. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  39528. glibcxx_ld_is_mold=yes
  39529. fi
  39530. ldver=`$LD --version 2>/dev/null |
  39531. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  39532. glibcxx_gnu_ld_version=`echo $ldver | \
  39533. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  39534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  39535. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  39536. fi
  39537. # Set --gc-sections.
  39538. glibcxx_have_gc_sections=no
  39539. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  39540. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  39541. glibcxx_have_gc_sections=yes
  39542. fi
  39543. else
  39544. glibcxx_gcsections_min_ld=21602
  39545. if test x"$with_gnu_ld" = x"yes" &&
  39546. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  39547. glibcxx_have_gc_sections=yes
  39548. fi
  39549. fi
  39550. if test "$glibcxx_have_gc_sections" = "yes"; then
  39551. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  39552. # NB: This flag only works reliably after 2.16.1. Configure tests
  39553. # for this are difficult, so hard wire a value that should work.
  39554. ac_test_CFLAGS="${CFLAGS+set}"
  39555. ac_save_CFLAGS="$CFLAGS"
  39556. CFLAGS='-Wl,--gc-sections'
  39557. # Check for -Wl,--gc-sections
  39558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  39559. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  39560. if test x$gcc_no_link = xyes; then
  39561. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39562. fi
  39563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39564. /* end confdefs.h. */
  39565. int one(void) { return 1; }
  39566. int two(void) { return 2; }
  39567. int
  39568. main ()
  39569. {
  39570. two();
  39571. ;
  39572. return 0;
  39573. }
  39574. _ACEOF
  39575. if ac_fn_c_try_link "$LINENO"; then :
  39576. ac_gcsections=yes
  39577. else
  39578. ac_gcsections=no
  39579. fi
  39580. rm -f core conftest.err conftest.$ac_objext \
  39581. conftest$ac_exeext conftest.$ac_ext
  39582. if test "$ac_gcsections" = "yes"; then
  39583. rm -f conftest.c
  39584. touch conftest.c
  39585. if $CC -c conftest.c; then
  39586. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  39587. grep "Warning: gc-sections option ignored" > /dev/null; then
  39588. ac_gcsections=no
  39589. fi
  39590. fi
  39591. rm -f conftest.c conftest.o conftest
  39592. fi
  39593. if test "$ac_gcsections" = "yes"; then
  39594. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  39595. fi
  39596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  39597. $as_echo "$ac_gcsections" >&6; }
  39598. if test "$ac_test_CFLAGS" = set; then
  39599. CFLAGS="$ac_save_CFLAGS"
  39600. else
  39601. # this is the suspicious part
  39602. CFLAGS=''
  39603. fi
  39604. fi
  39605. # Set -z,relro.
  39606. # Note this is only for shared objects.
  39607. ac_ld_relro=no
  39608. if test x"$with_gnu_ld" = x"yes"; then
  39609. # cygwin and mingw uses PE, which has no ELF relro support,
  39610. # multi target ld may confuse configure machinery
  39611. case "$host" in
  39612. *-*-cygwin*)
  39613. ;;
  39614. *-*-mingw*)
  39615. ;;
  39616. *)
  39617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  39618. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  39619. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  39620. if test -n "$cxx_z_relo"; then
  39621. OPT_LDFLAGS="-Wl,-z,relro"
  39622. ac_ld_relro=yes
  39623. fi
  39624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  39625. $as_echo "$ac_ld_relro" >&6; }
  39626. esac
  39627. fi
  39628. # Set linker optimization flags.
  39629. if test x"$with_gnu_ld" = x"yes"; then
  39630. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  39631. fi
  39632. # GLIBCXX_CHECK_MATH_SUPPORT
  39633. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  39634. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  39635. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  39636. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  39637. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  39638. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  39639. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  39640. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  39641. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  39642. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  39643. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  39644. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  39645. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  39646. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  39647. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  39648. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  39649. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  39650. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  39651. $as_echo "#define HAVE_MODF 1" >>confdefs.h
  39652. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  39653. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  39654. # GLIBCXX_CHECK_STDLIB_SUPPORT
  39655. $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
  39656. # Check whether --enable-tls was given.
  39657. if test "${enable_tls+set}" = set; then :
  39658. enableval=$enable_tls;
  39659. case "$enableval" in
  39660. yes|no) ;;
  39661. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  39662. esac
  39663. else
  39664. enable_tls=yes
  39665. fi
  39666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  39667. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  39668. if ${gcc_cv_have_tls+:} false; then :
  39669. $as_echo_n "(cached) " >&6
  39670. else
  39671. if test "$cross_compiling" = yes; then :
  39672. if test x$gcc_no_link = xyes; then
  39673. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39674. fi
  39675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39676. /* end confdefs.h. */
  39677. __thread int a; int b; int main() { return a = b; }
  39678. _ACEOF
  39679. if ac_fn_c_try_link "$LINENO"; then :
  39680. chktls_save_LDFLAGS="$LDFLAGS"
  39681. case $host in
  39682. *-*-linux* | -*-uclinuxfdpic*)
  39683. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  39684. ;;
  39685. esac
  39686. chktls_save_CFLAGS="$CFLAGS"
  39687. CFLAGS="-fPIC $CFLAGS"
  39688. if test x$gcc_no_link = xyes; then
  39689. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39690. fi
  39691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39692. /* end confdefs.h. */
  39693. int f() { return 0; }
  39694. _ACEOF
  39695. if ac_fn_c_try_link "$LINENO"; then :
  39696. if test x$gcc_no_link = xyes; then
  39697. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39698. fi
  39699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39700. /* end confdefs.h. */
  39701. __thread int a; int b; int f() { return a = b; }
  39702. _ACEOF
  39703. if ac_fn_c_try_link "$LINENO"; then :
  39704. gcc_cv_have_tls=yes
  39705. else
  39706. gcc_cv_have_tls=no
  39707. fi
  39708. rm -f core conftest.err conftest.$ac_objext \
  39709. conftest$ac_exeext conftest.$ac_ext
  39710. else
  39711. gcc_cv_have_tls=yes
  39712. fi
  39713. rm -f core conftest.err conftest.$ac_objext \
  39714. conftest$ac_exeext conftest.$ac_ext
  39715. CFLAGS="$chktls_save_CFLAGS"
  39716. LDFLAGS="$chktls_save_LDFLAGS"
  39717. else
  39718. gcc_cv_have_tls=no
  39719. fi
  39720. rm -f core conftest.err conftest.$ac_objext \
  39721. conftest$ac_exeext conftest.$ac_ext
  39722. else
  39723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39724. /* end confdefs.h. */
  39725. __thread int a; int b; int main() { return a = b; }
  39726. _ACEOF
  39727. if ac_fn_c_try_run "$LINENO"; then :
  39728. chktls_save_LDFLAGS="$LDFLAGS"
  39729. LDFLAGS="-static $LDFLAGS"
  39730. if test x$gcc_no_link = xyes; then
  39731. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39732. fi
  39733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39734. /* end confdefs.h. */
  39735. int main() { return 0; }
  39736. _ACEOF
  39737. if ac_fn_c_try_link "$LINENO"; then :
  39738. if test "$cross_compiling" = yes; then :
  39739. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39741. as_fn_error $? "cannot run test program while cross compiling
  39742. See \`config.log' for more details" "$LINENO" 5; }
  39743. else
  39744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39745. /* end confdefs.h. */
  39746. __thread int a; int b; int main() { return a = b; }
  39747. _ACEOF
  39748. if ac_fn_c_try_run "$LINENO"; then :
  39749. gcc_cv_have_tls=yes
  39750. else
  39751. gcc_cv_have_tls=no
  39752. fi
  39753. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39754. conftest.$ac_objext conftest.beam conftest.$ac_ext
  39755. fi
  39756. else
  39757. gcc_cv_have_tls=yes
  39758. fi
  39759. rm -f core conftest.err conftest.$ac_objext \
  39760. conftest$ac_exeext conftest.$ac_ext
  39761. LDFLAGS="$chktls_save_LDFLAGS"
  39762. if test $gcc_cv_have_tls = yes; then
  39763. chktls_save_CFLAGS="$CFLAGS"
  39764. thread_CFLAGS=failed
  39765. for flag in '' '-pthread' '-lpthread'; do
  39766. CFLAGS="$flag $chktls_save_CFLAGS"
  39767. if test x$gcc_no_link = xyes; then
  39768. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39769. fi
  39770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39771. /* end confdefs.h. */
  39772. #include <pthread.h>
  39773. void *g(void *d) { return NULL; }
  39774. int
  39775. main ()
  39776. {
  39777. pthread_t t; pthread_create(&t,NULL,g,NULL);
  39778. ;
  39779. return 0;
  39780. }
  39781. _ACEOF
  39782. if ac_fn_c_try_link "$LINENO"; then :
  39783. thread_CFLAGS="$flag"
  39784. fi
  39785. rm -f core conftest.err conftest.$ac_objext \
  39786. conftest$ac_exeext conftest.$ac_ext
  39787. if test "X$thread_CFLAGS" != Xfailed; then
  39788. break
  39789. fi
  39790. done
  39791. CFLAGS="$chktls_save_CFLAGS"
  39792. if test "X$thread_CFLAGS" != Xfailed; then
  39793. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  39794. if test "$cross_compiling" = yes; then :
  39795. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39796. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39797. as_fn_error $? "cannot run test program while cross compiling
  39798. See \`config.log' for more details" "$LINENO" 5; }
  39799. else
  39800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39801. /* end confdefs.h. */
  39802. #include <pthread.h>
  39803. __thread int a;
  39804. static int *volatile a_in_other_thread;
  39805. static void *
  39806. thread_func (void *arg)
  39807. {
  39808. a_in_other_thread = &a;
  39809. return (void *)0;
  39810. }
  39811. int
  39812. main ()
  39813. {
  39814. pthread_t thread;
  39815. void *thread_retval;
  39816. int *volatile a_in_main_thread;
  39817. a_in_main_thread = &a;
  39818. if (pthread_create (&thread, (pthread_attr_t *)0,
  39819. thread_func, (void *)0))
  39820. return 0;
  39821. if (pthread_join (thread, &thread_retval))
  39822. return 0;
  39823. return (a_in_other_thread == a_in_main_thread);
  39824. ;
  39825. return 0;
  39826. }
  39827. _ACEOF
  39828. if ac_fn_c_try_run "$LINENO"; then :
  39829. gcc_cv_have_tls=yes
  39830. else
  39831. gcc_cv_have_tls=no
  39832. fi
  39833. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39834. conftest.$ac_objext conftest.beam conftest.$ac_ext
  39835. fi
  39836. CFLAGS="$chktls_save_CFLAGS"
  39837. fi
  39838. fi
  39839. else
  39840. gcc_cv_have_tls=no
  39841. fi
  39842. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39843. conftest.$ac_objext conftest.beam conftest.$ac_ext
  39844. fi
  39845. fi
  39846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  39847. $as_echo "$gcc_cv_have_tls" >&6; }
  39848. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  39849. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  39850. fi
  39851. case "$target" in
  39852. *-hpux10*)
  39853. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  39854. $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
  39855. $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
  39856. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  39857. $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
  39858. ;;
  39859. esac
  39860. ;;
  39861. *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*)
  39862. # All these tests are for C++; save the language and the compiler flags.
  39863. # The CXXFLAGS thing is suspicious, but based on similar bits previously
  39864. # found in GLIBCXX_CONFIGURE.
  39865. ac_ext=cpp
  39866. ac_cpp='$CXXCPP $CPPFLAGS'
  39867. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39868. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39869. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  39870. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  39871. ac_save_CXXFLAGS="$CXXFLAGS"
  39872. # Check for -ffunction-sections -fdata-sections
  39873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
  39874. $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
  39875. CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
  39876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39877. /* end confdefs.h. */
  39878. int foo; void bar() { };
  39879. int
  39880. main ()
  39881. {
  39882. ;
  39883. return 0;
  39884. }
  39885. _ACEOF
  39886. if ac_fn_cxx_try_compile "$LINENO"; then :
  39887. ac_fdsections=yes
  39888. else
  39889. ac_fdsections=no
  39890. fi
  39891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  39892. if test "$ac_test_CXXFLAGS" = set; then
  39893. CXXFLAGS="$ac_save_CXXFLAGS"
  39894. else
  39895. # this is the suspicious part
  39896. CXXFLAGS=''
  39897. fi
  39898. if test x"$ac_fdsections" = x"yes"; then
  39899. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  39900. fi
  39901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  39902. $as_echo "$ac_fdsections" >&6; }
  39903. ac_ext=c
  39904. ac_cpp='$CPP $CPPFLAGS'
  39905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  39906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  39907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  39908. # If we're not using GNU ld, then there's no point in even trying these
  39909. # tests. Check for that first. We should have already tested for gld
  39910. # by now (in libtool), but require it now just to be safe...
  39911. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  39912. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  39913. # The name set by libtool depends on the version of libtool. Shame on us
  39914. # for depending on an impl detail, but c'est la vie. Older versions used
  39915. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  39916. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  39917. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  39918. # set (hence we're using an older libtool), then set it.
  39919. if test x${with_gnu_ld+set} != xset; then
  39920. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  39921. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  39922. with_gnu_ld=no
  39923. else
  39924. with_gnu_ld=$ac_cv_prog_gnu_ld
  39925. fi
  39926. fi
  39927. # Start by getting the version number. I think the libtool test already
  39928. # does some of this, but throws away the result.
  39929. glibcxx_ld_is_gold=no
  39930. glibcxx_ld_is_mold=no
  39931. if test x"$with_gnu_ld" = x"yes"; then
  39932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  39933. $as_echo_n "checking for ld version... " >&6; }
  39934. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  39935. glibcxx_ld_is_gold=yes
  39936. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  39937. glibcxx_ld_is_mold=yes
  39938. fi
  39939. ldver=`$LD --version 2>/dev/null |
  39940. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  39941. glibcxx_gnu_ld_version=`echo $ldver | \
  39942. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  39943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  39944. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  39945. fi
  39946. # Set --gc-sections.
  39947. glibcxx_have_gc_sections=no
  39948. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  39949. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  39950. glibcxx_have_gc_sections=yes
  39951. fi
  39952. else
  39953. glibcxx_gcsections_min_ld=21602
  39954. if test x"$with_gnu_ld" = x"yes" &&
  39955. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  39956. glibcxx_have_gc_sections=yes
  39957. fi
  39958. fi
  39959. if test "$glibcxx_have_gc_sections" = "yes"; then
  39960. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  39961. # NB: This flag only works reliably after 2.16.1. Configure tests
  39962. # for this are difficult, so hard wire a value that should work.
  39963. ac_test_CFLAGS="${CFLAGS+set}"
  39964. ac_save_CFLAGS="$CFLAGS"
  39965. CFLAGS='-Wl,--gc-sections'
  39966. # Check for -Wl,--gc-sections
  39967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  39968. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  39969. if test x$gcc_no_link = xyes; then
  39970. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  39971. fi
  39972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39973. /* end confdefs.h. */
  39974. int one(void) { return 1; }
  39975. int two(void) { return 2; }
  39976. int
  39977. main ()
  39978. {
  39979. two();
  39980. ;
  39981. return 0;
  39982. }
  39983. _ACEOF
  39984. if ac_fn_c_try_link "$LINENO"; then :
  39985. ac_gcsections=yes
  39986. else
  39987. ac_gcsections=no
  39988. fi
  39989. rm -f core conftest.err conftest.$ac_objext \
  39990. conftest$ac_exeext conftest.$ac_ext
  39991. if test "$ac_gcsections" = "yes"; then
  39992. rm -f conftest.c
  39993. touch conftest.c
  39994. if $CC -c conftest.c; then
  39995. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  39996. grep "Warning: gc-sections option ignored" > /dev/null; then
  39997. ac_gcsections=no
  39998. fi
  39999. fi
  40000. rm -f conftest.c conftest.o conftest
  40001. fi
  40002. if test "$ac_gcsections" = "yes"; then
  40003. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  40004. fi
  40005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  40006. $as_echo "$ac_gcsections" >&6; }
  40007. if test "$ac_test_CFLAGS" = set; then
  40008. CFLAGS="$ac_save_CFLAGS"
  40009. else
  40010. # this is the suspicious part
  40011. CFLAGS=''
  40012. fi
  40013. fi
  40014. # Set -z,relro.
  40015. # Note this is only for shared objects.
  40016. ac_ld_relro=no
  40017. if test x"$with_gnu_ld" = x"yes"; then
  40018. # cygwin and mingw uses PE, which has no ELF relro support,
  40019. # multi target ld may confuse configure machinery
  40020. case "$host" in
  40021. *-*-cygwin*)
  40022. ;;
  40023. *-*-mingw*)
  40024. ;;
  40025. *)
  40026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  40027. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  40028. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  40029. if test -n "$cxx_z_relo"; then
  40030. OPT_LDFLAGS="-Wl,-z,relro"
  40031. ac_ld_relro=yes
  40032. fi
  40033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  40034. $as_echo "$ac_ld_relro" >&6; }
  40035. esac
  40036. fi
  40037. # Set linker optimization flags.
  40038. if test x"$with_gnu_ld" = x"yes"; then
  40039. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  40040. fi
  40041. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  40042. ac_save_CXXFLAGS="$CXXFLAGS"
  40043. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  40044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  40045. $as_echo_n "checking for sin in -lm... " >&6; }
  40046. if ${ac_cv_lib_m_sin+:} false; then :
  40047. $as_echo_n "(cached) " >&6
  40048. else
  40049. ac_check_lib_save_LIBS=$LIBS
  40050. LIBS="-lm $LIBS"
  40051. if test x$gcc_no_link = xyes; then
  40052. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  40053. fi
  40054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40055. /* end confdefs.h. */
  40056. /* Override any GCC internal prototype to avoid an error.
  40057. Use char because int might match the return type of a GCC
  40058. builtin and then its argument prototype would still apply. */
  40059. #ifdef __cplusplus
  40060. extern "C"
  40061. #endif
  40062. char sin ();
  40063. int
  40064. main ()
  40065. {
  40066. return sin ();
  40067. ;
  40068. return 0;
  40069. }
  40070. _ACEOF
  40071. if ac_fn_c_try_link "$LINENO"; then :
  40072. ac_cv_lib_m_sin=yes
  40073. else
  40074. ac_cv_lib_m_sin=no
  40075. fi
  40076. rm -f core conftest.err conftest.$ac_objext \
  40077. conftest$ac_exeext conftest.$ac_ext
  40078. LIBS=$ac_check_lib_save_LIBS
  40079. fi
  40080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  40081. $as_echo "$ac_cv_lib_m_sin" >&6; }
  40082. if test "x$ac_cv_lib_m_sin" = xyes; then :
  40083. libm="-lm"
  40084. fi
  40085. ac_save_LIBS="$LIBS"
  40086. LIBS="$LIBS $libm"
  40087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  40088. $as_echo_n "checking for isinf declaration... " >&6; }
  40089. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  40090. if ${glibcxx_cv_func_isinf_use+:} false; then :
  40091. $as_echo_n "(cached) " >&6
  40092. else
  40093. ac_ext=cpp
  40094. ac_cpp='$CXXCPP $CPPFLAGS'
  40095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40099. /* end confdefs.h. */
  40100. #include <math.h>
  40101. #ifdef HAVE_IEEEFP_H
  40102. #include <ieeefp.h>
  40103. #endif
  40104. int
  40105. main ()
  40106. {
  40107. isinf(0);
  40108. ;
  40109. return 0;
  40110. }
  40111. _ACEOF
  40112. if ac_fn_cxx_try_compile "$LINENO"; then :
  40113. glibcxx_cv_func_isinf_use=yes
  40114. else
  40115. glibcxx_cv_func_isinf_use=no
  40116. fi
  40117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40118. ac_ext=c
  40119. ac_cpp='$CPP $CPPFLAGS'
  40120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40123. fi
  40124. fi
  40125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  40126. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  40127. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  40128. for ac_func in isinf
  40129. do :
  40130. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  40131. if test "x$ac_cv_func_isinf" = xyes; then :
  40132. cat >>confdefs.h <<_ACEOF
  40133. #define HAVE_ISINF 1
  40134. _ACEOF
  40135. fi
  40136. done
  40137. else
  40138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  40139. $as_echo_n "checking for _isinf declaration... " >&6; }
  40140. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  40141. if ${glibcxx_cv_func__isinf_use+:} false; then :
  40142. $as_echo_n "(cached) " >&6
  40143. else
  40144. ac_ext=cpp
  40145. ac_cpp='$CXXCPP $CPPFLAGS'
  40146. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40147. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40148. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40150. /* end confdefs.h. */
  40151. #include <math.h>
  40152. #ifdef HAVE_IEEEFP_H
  40153. #include <ieeefp.h>
  40154. #endif
  40155. int
  40156. main ()
  40157. {
  40158. _isinf(0);
  40159. ;
  40160. return 0;
  40161. }
  40162. _ACEOF
  40163. if ac_fn_cxx_try_compile "$LINENO"; then :
  40164. glibcxx_cv_func__isinf_use=yes
  40165. else
  40166. glibcxx_cv_func__isinf_use=no
  40167. fi
  40168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40169. ac_ext=c
  40170. ac_cpp='$CPP $CPPFLAGS'
  40171. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40172. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40173. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40174. fi
  40175. fi
  40176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  40177. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  40178. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  40179. for ac_func in _isinf
  40180. do :
  40181. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  40182. if test "x$ac_cv_func__isinf" = xyes; then :
  40183. cat >>confdefs.h <<_ACEOF
  40184. #define HAVE__ISINF 1
  40185. _ACEOF
  40186. fi
  40187. done
  40188. fi
  40189. fi
  40190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  40191. $as_echo_n "checking for isnan declaration... " >&6; }
  40192. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  40193. if ${glibcxx_cv_func_isnan_use+:} false; then :
  40194. $as_echo_n "(cached) " >&6
  40195. else
  40196. ac_ext=cpp
  40197. ac_cpp='$CXXCPP $CPPFLAGS'
  40198. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40199. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40200. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40202. /* end confdefs.h. */
  40203. #include <math.h>
  40204. #ifdef HAVE_IEEEFP_H
  40205. #include <ieeefp.h>
  40206. #endif
  40207. int
  40208. main ()
  40209. {
  40210. isnan(0);
  40211. ;
  40212. return 0;
  40213. }
  40214. _ACEOF
  40215. if ac_fn_cxx_try_compile "$LINENO"; then :
  40216. glibcxx_cv_func_isnan_use=yes
  40217. else
  40218. glibcxx_cv_func_isnan_use=no
  40219. fi
  40220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40221. ac_ext=c
  40222. ac_cpp='$CPP $CPPFLAGS'
  40223. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40224. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40225. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40226. fi
  40227. fi
  40228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  40229. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  40230. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  40231. for ac_func in isnan
  40232. do :
  40233. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  40234. if test "x$ac_cv_func_isnan" = xyes; then :
  40235. cat >>confdefs.h <<_ACEOF
  40236. #define HAVE_ISNAN 1
  40237. _ACEOF
  40238. fi
  40239. done
  40240. else
  40241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  40242. $as_echo_n "checking for _isnan declaration... " >&6; }
  40243. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  40244. if ${glibcxx_cv_func__isnan_use+:} false; then :
  40245. $as_echo_n "(cached) " >&6
  40246. else
  40247. ac_ext=cpp
  40248. ac_cpp='$CXXCPP $CPPFLAGS'
  40249. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40250. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40251. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40253. /* end confdefs.h. */
  40254. #include <math.h>
  40255. #ifdef HAVE_IEEEFP_H
  40256. #include <ieeefp.h>
  40257. #endif
  40258. int
  40259. main ()
  40260. {
  40261. _isnan(0);
  40262. ;
  40263. return 0;
  40264. }
  40265. _ACEOF
  40266. if ac_fn_cxx_try_compile "$LINENO"; then :
  40267. glibcxx_cv_func__isnan_use=yes
  40268. else
  40269. glibcxx_cv_func__isnan_use=no
  40270. fi
  40271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40272. ac_ext=c
  40273. ac_cpp='$CPP $CPPFLAGS'
  40274. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40275. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40277. fi
  40278. fi
  40279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  40280. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  40281. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  40282. for ac_func in _isnan
  40283. do :
  40284. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  40285. if test "x$ac_cv_func__isnan" = xyes; then :
  40286. cat >>confdefs.h <<_ACEOF
  40287. #define HAVE__ISNAN 1
  40288. _ACEOF
  40289. fi
  40290. done
  40291. fi
  40292. fi
  40293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  40294. $as_echo_n "checking for finite declaration... " >&6; }
  40295. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  40296. if ${glibcxx_cv_func_finite_use+:} false; then :
  40297. $as_echo_n "(cached) " >&6
  40298. else
  40299. ac_ext=cpp
  40300. ac_cpp='$CXXCPP $CPPFLAGS'
  40301. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40302. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40303. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40305. /* end confdefs.h. */
  40306. #include <math.h>
  40307. #ifdef HAVE_IEEEFP_H
  40308. #include <ieeefp.h>
  40309. #endif
  40310. int
  40311. main ()
  40312. {
  40313. finite(0);
  40314. ;
  40315. return 0;
  40316. }
  40317. _ACEOF
  40318. if ac_fn_cxx_try_compile "$LINENO"; then :
  40319. glibcxx_cv_func_finite_use=yes
  40320. else
  40321. glibcxx_cv_func_finite_use=no
  40322. fi
  40323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40324. ac_ext=c
  40325. ac_cpp='$CPP $CPPFLAGS'
  40326. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40327. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40328. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40329. fi
  40330. fi
  40331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  40332. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  40333. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  40334. for ac_func in finite
  40335. do :
  40336. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  40337. if test "x$ac_cv_func_finite" = xyes; then :
  40338. cat >>confdefs.h <<_ACEOF
  40339. #define HAVE_FINITE 1
  40340. _ACEOF
  40341. fi
  40342. done
  40343. else
  40344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  40345. $as_echo_n "checking for _finite declaration... " >&6; }
  40346. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  40347. if ${glibcxx_cv_func__finite_use+:} false; then :
  40348. $as_echo_n "(cached) " >&6
  40349. else
  40350. ac_ext=cpp
  40351. ac_cpp='$CXXCPP $CPPFLAGS'
  40352. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40353. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40354. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40356. /* end confdefs.h. */
  40357. #include <math.h>
  40358. #ifdef HAVE_IEEEFP_H
  40359. #include <ieeefp.h>
  40360. #endif
  40361. int
  40362. main ()
  40363. {
  40364. _finite(0);
  40365. ;
  40366. return 0;
  40367. }
  40368. _ACEOF
  40369. if ac_fn_cxx_try_compile "$LINENO"; then :
  40370. glibcxx_cv_func__finite_use=yes
  40371. else
  40372. glibcxx_cv_func__finite_use=no
  40373. fi
  40374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40375. ac_ext=c
  40376. ac_cpp='$CPP $CPPFLAGS'
  40377. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40378. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40379. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40380. fi
  40381. fi
  40382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  40383. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  40384. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  40385. for ac_func in _finite
  40386. do :
  40387. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  40388. if test "x$ac_cv_func__finite" = xyes; then :
  40389. cat >>confdefs.h <<_ACEOF
  40390. #define HAVE__FINITE 1
  40391. _ACEOF
  40392. fi
  40393. done
  40394. fi
  40395. fi
  40396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  40397. $as_echo_n "checking for sincos declaration... " >&6; }
  40398. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  40399. if ${glibcxx_cv_func_sincos_use+:} false; then :
  40400. $as_echo_n "(cached) " >&6
  40401. else
  40402. ac_ext=cpp
  40403. ac_cpp='$CXXCPP $CPPFLAGS'
  40404. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40405. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40406. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40408. /* end confdefs.h. */
  40409. #include <math.h>
  40410. int
  40411. main ()
  40412. {
  40413. sincos(0, 0, 0);
  40414. ;
  40415. return 0;
  40416. }
  40417. _ACEOF
  40418. if ac_fn_cxx_try_compile "$LINENO"; then :
  40419. glibcxx_cv_func_sincos_use=yes
  40420. else
  40421. glibcxx_cv_func_sincos_use=no
  40422. fi
  40423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40424. ac_ext=c
  40425. ac_cpp='$CPP $CPPFLAGS'
  40426. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40427. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40428. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40429. fi
  40430. fi
  40431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  40432. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  40433. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  40434. for ac_func in sincos
  40435. do :
  40436. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  40437. if test "x$ac_cv_func_sincos" = xyes; then :
  40438. cat >>confdefs.h <<_ACEOF
  40439. #define HAVE_SINCOS 1
  40440. _ACEOF
  40441. fi
  40442. done
  40443. else
  40444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  40445. $as_echo_n "checking for _sincos declaration... " >&6; }
  40446. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  40447. if ${glibcxx_cv_func__sincos_use+:} false; then :
  40448. $as_echo_n "(cached) " >&6
  40449. else
  40450. ac_ext=cpp
  40451. ac_cpp='$CXXCPP $CPPFLAGS'
  40452. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40453. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40454. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40456. /* end confdefs.h. */
  40457. #include <math.h>
  40458. int
  40459. main ()
  40460. {
  40461. _sincos(0, 0, 0);
  40462. ;
  40463. return 0;
  40464. }
  40465. _ACEOF
  40466. if ac_fn_cxx_try_compile "$LINENO"; then :
  40467. glibcxx_cv_func__sincos_use=yes
  40468. else
  40469. glibcxx_cv_func__sincos_use=no
  40470. fi
  40471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40472. ac_ext=c
  40473. ac_cpp='$CPP $CPPFLAGS'
  40474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40477. fi
  40478. fi
  40479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  40480. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  40481. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  40482. for ac_func in _sincos
  40483. do :
  40484. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  40485. if test "x$ac_cv_func__sincos" = xyes; then :
  40486. cat >>confdefs.h <<_ACEOF
  40487. #define HAVE__SINCOS 1
  40488. _ACEOF
  40489. fi
  40490. done
  40491. fi
  40492. fi
  40493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  40494. $as_echo_n "checking for fpclass declaration... " >&6; }
  40495. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  40496. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  40497. $as_echo_n "(cached) " >&6
  40498. else
  40499. ac_ext=cpp
  40500. ac_cpp='$CXXCPP $CPPFLAGS'
  40501. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40502. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40503. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40505. /* end confdefs.h. */
  40506. #include <math.h>
  40507. #ifdef HAVE_IEEEFP_H
  40508. #include <ieeefp.h>
  40509. #endif
  40510. int
  40511. main ()
  40512. {
  40513. fpclass(0);
  40514. ;
  40515. return 0;
  40516. }
  40517. _ACEOF
  40518. if ac_fn_cxx_try_compile "$LINENO"; then :
  40519. glibcxx_cv_func_fpclass_use=yes
  40520. else
  40521. glibcxx_cv_func_fpclass_use=no
  40522. fi
  40523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40524. ac_ext=c
  40525. ac_cpp='$CPP $CPPFLAGS'
  40526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40529. fi
  40530. fi
  40531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  40532. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  40533. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  40534. for ac_func in fpclass
  40535. do :
  40536. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  40537. if test "x$ac_cv_func_fpclass" = xyes; then :
  40538. cat >>confdefs.h <<_ACEOF
  40539. #define HAVE_FPCLASS 1
  40540. _ACEOF
  40541. fi
  40542. done
  40543. else
  40544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  40545. $as_echo_n "checking for _fpclass declaration... " >&6; }
  40546. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  40547. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  40548. $as_echo_n "(cached) " >&6
  40549. else
  40550. ac_ext=cpp
  40551. ac_cpp='$CXXCPP $CPPFLAGS'
  40552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40556. /* end confdefs.h. */
  40557. #include <math.h>
  40558. #ifdef HAVE_IEEEFP_H
  40559. #include <ieeefp.h>
  40560. #endif
  40561. int
  40562. main ()
  40563. {
  40564. _fpclass(0);
  40565. ;
  40566. return 0;
  40567. }
  40568. _ACEOF
  40569. if ac_fn_cxx_try_compile "$LINENO"; then :
  40570. glibcxx_cv_func__fpclass_use=yes
  40571. else
  40572. glibcxx_cv_func__fpclass_use=no
  40573. fi
  40574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40575. ac_ext=c
  40576. ac_cpp='$CPP $CPPFLAGS'
  40577. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40578. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40579. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40580. fi
  40581. fi
  40582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  40583. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  40584. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  40585. for ac_func in _fpclass
  40586. do :
  40587. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  40588. if test "x$ac_cv_func__fpclass" = xyes; then :
  40589. cat >>confdefs.h <<_ACEOF
  40590. #define HAVE__FPCLASS 1
  40591. _ACEOF
  40592. fi
  40593. done
  40594. fi
  40595. fi
  40596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  40597. $as_echo_n "checking for qfpclass declaration... " >&6; }
  40598. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  40599. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  40600. $as_echo_n "(cached) " >&6
  40601. else
  40602. ac_ext=cpp
  40603. ac_cpp='$CXXCPP $CPPFLAGS'
  40604. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40605. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40606. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40608. /* end confdefs.h. */
  40609. #include <math.h>
  40610. #ifdef HAVE_IEEEFP_H
  40611. #include <ieeefp.h>
  40612. #endif
  40613. int
  40614. main ()
  40615. {
  40616. qfpclass(0);
  40617. ;
  40618. return 0;
  40619. }
  40620. _ACEOF
  40621. if ac_fn_cxx_try_compile "$LINENO"; then :
  40622. glibcxx_cv_func_qfpclass_use=yes
  40623. else
  40624. glibcxx_cv_func_qfpclass_use=no
  40625. fi
  40626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40627. ac_ext=c
  40628. ac_cpp='$CPP $CPPFLAGS'
  40629. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40630. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40631. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40632. fi
  40633. fi
  40634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  40635. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  40636. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  40637. for ac_func in qfpclass
  40638. do :
  40639. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  40640. if test "x$ac_cv_func_qfpclass" = xyes; then :
  40641. cat >>confdefs.h <<_ACEOF
  40642. #define HAVE_QFPCLASS 1
  40643. _ACEOF
  40644. fi
  40645. done
  40646. else
  40647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  40648. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  40649. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  40650. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  40651. $as_echo_n "(cached) " >&6
  40652. else
  40653. ac_ext=cpp
  40654. ac_cpp='$CXXCPP $CPPFLAGS'
  40655. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40656. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40657. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40659. /* end confdefs.h. */
  40660. #include <math.h>
  40661. #ifdef HAVE_IEEEFP_H
  40662. #include <ieeefp.h>
  40663. #endif
  40664. int
  40665. main ()
  40666. {
  40667. _qfpclass(0);
  40668. ;
  40669. return 0;
  40670. }
  40671. _ACEOF
  40672. if ac_fn_cxx_try_compile "$LINENO"; then :
  40673. glibcxx_cv_func__qfpclass_use=yes
  40674. else
  40675. glibcxx_cv_func__qfpclass_use=no
  40676. fi
  40677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40678. ac_ext=c
  40679. ac_cpp='$CPP $CPPFLAGS'
  40680. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40681. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40682. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40683. fi
  40684. fi
  40685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  40686. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  40687. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  40688. for ac_func in _qfpclass
  40689. do :
  40690. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  40691. if test "x$ac_cv_func__qfpclass" = xyes; then :
  40692. cat >>confdefs.h <<_ACEOF
  40693. #define HAVE__QFPCLASS 1
  40694. _ACEOF
  40695. fi
  40696. done
  40697. fi
  40698. fi
  40699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  40700. $as_echo_n "checking for hypot declaration... " >&6; }
  40701. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  40702. if ${glibcxx_cv_func_hypot_use+:} false; then :
  40703. $as_echo_n "(cached) " >&6
  40704. else
  40705. ac_ext=cpp
  40706. ac_cpp='$CXXCPP $CPPFLAGS'
  40707. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40708. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40709. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40711. /* end confdefs.h. */
  40712. #include <math.h>
  40713. int
  40714. main ()
  40715. {
  40716. hypot(0, 0);
  40717. ;
  40718. return 0;
  40719. }
  40720. _ACEOF
  40721. if ac_fn_cxx_try_compile "$LINENO"; then :
  40722. glibcxx_cv_func_hypot_use=yes
  40723. else
  40724. glibcxx_cv_func_hypot_use=no
  40725. fi
  40726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40727. ac_ext=c
  40728. ac_cpp='$CPP $CPPFLAGS'
  40729. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40730. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40731. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40732. fi
  40733. fi
  40734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  40735. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  40736. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  40737. for ac_func in hypot
  40738. do :
  40739. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  40740. if test "x$ac_cv_func_hypot" = xyes; then :
  40741. cat >>confdefs.h <<_ACEOF
  40742. #define HAVE_HYPOT 1
  40743. _ACEOF
  40744. fi
  40745. done
  40746. else
  40747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  40748. $as_echo_n "checking for _hypot declaration... " >&6; }
  40749. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  40750. if ${glibcxx_cv_func__hypot_use+:} false; then :
  40751. $as_echo_n "(cached) " >&6
  40752. else
  40753. ac_ext=cpp
  40754. ac_cpp='$CXXCPP $CPPFLAGS'
  40755. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40756. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40757. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40759. /* end confdefs.h. */
  40760. #include <math.h>
  40761. int
  40762. main ()
  40763. {
  40764. _hypot(0, 0);
  40765. ;
  40766. return 0;
  40767. }
  40768. _ACEOF
  40769. if ac_fn_cxx_try_compile "$LINENO"; then :
  40770. glibcxx_cv_func__hypot_use=yes
  40771. else
  40772. glibcxx_cv_func__hypot_use=no
  40773. fi
  40774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40775. ac_ext=c
  40776. ac_cpp='$CPP $CPPFLAGS'
  40777. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40778. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40779. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40780. fi
  40781. fi
  40782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  40783. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  40784. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  40785. for ac_func in _hypot
  40786. do :
  40787. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  40788. if test "x$ac_cv_func__hypot" = xyes; then :
  40789. cat >>confdefs.h <<_ACEOF
  40790. #define HAVE__HYPOT 1
  40791. _ACEOF
  40792. fi
  40793. done
  40794. fi
  40795. fi
  40796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  40797. $as_echo_n "checking for float trig functions... " >&6; }
  40798. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  40799. $as_echo_n "(cached) " >&6
  40800. else
  40801. ac_ext=cpp
  40802. ac_cpp='$CXXCPP $CPPFLAGS'
  40803. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40804. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40805. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40807. /* end confdefs.h. */
  40808. #include <math.h>
  40809. int
  40810. main ()
  40811. {
  40812. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  40813. ;
  40814. return 0;
  40815. }
  40816. _ACEOF
  40817. if ac_fn_cxx_try_compile "$LINENO"; then :
  40818. glibcxx_cv_func_float_trig_use=yes
  40819. else
  40820. glibcxx_cv_func_float_trig_use=no
  40821. fi
  40822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40823. ac_ext=c
  40824. ac_cpp='$CPP $CPPFLAGS'
  40825. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40826. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40827. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40828. fi
  40829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  40830. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  40831. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  40832. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  40833. do :
  40834. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40835. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  40836. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  40837. cat >>confdefs.h <<_ACEOF
  40838. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40839. _ACEOF
  40840. fi
  40841. done
  40842. else
  40843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  40844. $as_echo_n "checking for _float trig functions... " >&6; }
  40845. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  40846. $as_echo_n "(cached) " >&6
  40847. else
  40848. ac_ext=cpp
  40849. ac_cpp='$CXXCPP $CPPFLAGS'
  40850. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40851. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40852. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40854. /* end confdefs.h. */
  40855. #include <math.h>
  40856. int
  40857. main ()
  40858. {
  40859. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  40860. ;
  40861. return 0;
  40862. }
  40863. _ACEOF
  40864. if ac_fn_cxx_try_compile "$LINENO"; then :
  40865. glibcxx_cv_func__float_trig_use=yes
  40866. else
  40867. glibcxx_cv_func__float_trig_use=no
  40868. fi
  40869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40870. ac_ext=c
  40871. ac_cpp='$CPP $CPPFLAGS'
  40872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40875. fi
  40876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  40877. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  40878. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  40879. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  40880. do :
  40881. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40882. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  40883. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  40884. cat >>confdefs.h <<_ACEOF
  40885. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40886. _ACEOF
  40887. fi
  40888. done
  40889. fi
  40890. fi
  40891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  40892. $as_echo_n "checking for float round functions... " >&6; }
  40893. if ${glibcxx_cv_func_float_round_use+:} false; then :
  40894. $as_echo_n "(cached) " >&6
  40895. else
  40896. ac_ext=cpp
  40897. ac_cpp='$CXXCPP $CPPFLAGS'
  40898. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40899. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40900. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40902. /* end confdefs.h. */
  40903. #include <math.h>
  40904. int
  40905. main ()
  40906. {
  40907. ceilf (0); floorf (0);
  40908. ;
  40909. return 0;
  40910. }
  40911. _ACEOF
  40912. if ac_fn_cxx_try_compile "$LINENO"; then :
  40913. glibcxx_cv_func_float_round_use=yes
  40914. else
  40915. glibcxx_cv_func_float_round_use=no
  40916. fi
  40917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40918. ac_ext=c
  40919. ac_cpp='$CPP $CPPFLAGS'
  40920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40923. fi
  40924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  40925. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  40926. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  40927. for ac_func in ceilf floorf
  40928. do :
  40929. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40930. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  40931. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  40932. cat >>confdefs.h <<_ACEOF
  40933. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40934. _ACEOF
  40935. fi
  40936. done
  40937. else
  40938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  40939. $as_echo_n "checking for _float round functions... " >&6; }
  40940. if ${glibcxx_cv_func__float_round_use+:} false; then :
  40941. $as_echo_n "(cached) " >&6
  40942. else
  40943. ac_ext=cpp
  40944. ac_cpp='$CXXCPP $CPPFLAGS'
  40945. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40946. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40947. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40949. /* end confdefs.h. */
  40950. #include <math.h>
  40951. int
  40952. main ()
  40953. {
  40954. _ceilf (0); _floorf (0);
  40955. ;
  40956. return 0;
  40957. }
  40958. _ACEOF
  40959. if ac_fn_cxx_try_compile "$LINENO"; then :
  40960. glibcxx_cv_func__float_round_use=yes
  40961. else
  40962. glibcxx_cv_func__float_round_use=no
  40963. fi
  40964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40965. ac_ext=c
  40966. ac_cpp='$CPP $CPPFLAGS'
  40967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40970. fi
  40971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  40972. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  40973. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  40974. for ac_func in _ceilf _floorf
  40975. do :
  40976. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40977. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  40978. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  40979. cat >>confdefs.h <<_ACEOF
  40980. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40981. _ACEOF
  40982. fi
  40983. done
  40984. fi
  40985. fi
  40986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  40987. $as_echo_n "checking for expf declaration... " >&6; }
  40988. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  40989. if ${glibcxx_cv_func_expf_use+:} false; then :
  40990. $as_echo_n "(cached) " >&6
  40991. else
  40992. ac_ext=cpp
  40993. ac_cpp='$CXXCPP $CPPFLAGS'
  40994. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40995. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40996. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  40997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40998. /* end confdefs.h. */
  40999. #include <math.h>
  41000. #ifdef HAVE_IEEEFP_H
  41001. #include <ieeefp.h>
  41002. #endif
  41003. int
  41004. main ()
  41005. {
  41006. expf(0);
  41007. ;
  41008. return 0;
  41009. }
  41010. _ACEOF
  41011. if ac_fn_cxx_try_compile "$LINENO"; then :
  41012. glibcxx_cv_func_expf_use=yes
  41013. else
  41014. glibcxx_cv_func_expf_use=no
  41015. fi
  41016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41017. ac_ext=c
  41018. ac_cpp='$CPP $CPPFLAGS'
  41019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41022. fi
  41023. fi
  41024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  41025. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  41026. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  41027. for ac_func in expf
  41028. do :
  41029. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  41030. if test "x$ac_cv_func_expf" = xyes; then :
  41031. cat >>confdefs.h <<_ACEOF
  41032. #define HAVE_EXPF 1
  41033. _ACEOF
  41034. fi
  41035. done
  41036. else
  41037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  41038. $as_echo_n "checking for _expf declaration... " >&6; }
  41039. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  41040. if ${glibcxx_cv_func__expf_use+:} false; then :
  41041. $as_echo_n "(cached) " >&6
  41042. else
  41043. ac_ext=cpp
  41044. ac_cpp='$CXXCPP $CPPFLAGS'
  41045. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41046. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41047. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41049. /* end confdefs.h. */
  41050. #include <math.h>
  41051. #ifdef HAVE_IEEEFP_H
  41052. #include <ieeefp.h>
  41053. #endif
  41054. int
  41055. main ()
  41056. {
  41057. _expf(0);
  41058. ;
  41059. return 0;
  41060. }
  41061. _ACEOF
  41062. if ac_fn_cxx_try_compile "$LINENO"; then :
  41063. glibcxx_cv_func__expf_use=yes
  41064. else
  41065. glibcxx_cv_func__expf_use=no
  41066. fi
  41067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41068. ac_ext=c
  41069. ac_cpp='$CPP $CPPFLAGS'
  41070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41073. fi
  41074. fi
  41075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  41076. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  41077. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  41078. for ac_func in _expf
  41079. do :
  41080. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  41081. if test "x$ac_cv_func__expf" = xyes; then :
  41082. cat >>confdefs.h <<_ACEOF
  41083. #define HAVE__EXPF 1
  41084. _ACEOF
  41085. fi
  41086. done
  41087. fi
  41088. fi
  41089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  41090. $as_echo_n "checking for isnanf declaration... " >&6; }
  41091. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  41092. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  41093. $as_echo_n "(cached) " >&6
  41094. else
  41095. ac_ext=cpp
  41096. ac_cpp='$CXXCPP $CPPFLAGS'
  41097. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41098. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41099. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41101. /* end confdefs.h. */
  41102. #include <math.h>
  41103. #ifdef HAVE_IEEEFP_H
  41104. #include <ieeefp.h>
  41105. #endif
  41106. int
  41107. main ()
  41108. {
  41109. isnanf(0);
  41110. ;
  41111. return 0;
  41112. }
  41113. _ACEOF
  41114. if ac_fn_cxx_try_compile "$LINENO"; then :
  41115. glibcxx_cv_func_isnanf_use=yes
  41116. else
  41117. glibcxx_cv_func_isnanf_use=no
  41118. fi
  41119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41120. ac_ext=c
  41121. ac_cpp='$CPP $CPPFLAGS'
  41122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41125. fi
  41126. fi
  41127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  41128. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  41129. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  41130. for ac_func in isnanf
  41131. do :
  41132. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  41133. if test "x$ac_cv_func_isnanf" = xyes; then :
  41134. cat >>confdefs.h <<_ACEOF
  41135. #define HAVE_ISNANF 1
  41136. _ACEOF
  41137. fi
  41138. done
  41139. else
  41140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  41141. $as_echo_n "checking for _isnanf declaration... " >&6; }
  41142. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  41143. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  41144. $as_echo_n "(cached) " >&6
  41145. else
  41146. ac_ext=cpp
  41147. ac_cpp='$CXXCPP $CPPFLAGS'
  41148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41152. /* end confdefs.h. */
  41153. #include <math.h>
  41154. #ifdef HAVE_IEEEFP_H
  41155. #include <ieeefp.h>
  41156. #endif
  41157. int
  41158. main ()
  41159. {
  41160. _isnanf(0);
  41161. ;
  41162. return 0;
  41163. }
  41164. _ACEOF
  41165. if ac_fn_cxx_try_compile "$LINENO"; then :
  41166. glibcxx_cv_func__isnanf_use=yes
  41167. else
  41168. glibcxx_cv_func__isnanf_use=no
  41169. fi
  41170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41171. ac_ext=c
  41172. ac_cpp='$CPP $CPPFLAGS'
  41173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41176. fi
  41177. fi
  41178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  41179. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  41180. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  41181. for ac_func in _isnanf
  41182. do :
  41183. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  41184. if test "x$ac_cv_func__isnanf" = xyes; then :
  41185. cat >>confdefs.h <<_ACEOF
  41186. #define HAVE__ISNANF 1
  41187. _ACEOF
  41188. fi
  41189. done
  41190. fi
  41191. fi
  41192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  41193. $as_echo_n "checking for isinff declaration... " >&6; }
  41194. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  41195. if ${glibcxx_cv_func_isinff_use+:} false; then :
  41196. $as_echo_n "(cached) " >&6
  41197. else
  41198. ac_ext=cpp
  41199. ac_cpp='$CXXCPP $CPPFLAGS'
  41200. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41201. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41202. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41204. /* end confdefs.h. */
  41205. #include <math.h>
  41206. #ifdef HAVE_IEEEFP_H
  41207. #include <ieeefp.h>
  41208. #endif
  41209. int
  41210. main ()
  41211. {
  41212. isinff(0);
  41213. ;
  41214. return 0;
  41215. }
  41216. _ACEOF
  41217. if ac_fn_cxx_try_compile "$LINENO"; then :
  41218. glibcxx_cv_func_isinff_use=yes
  41219. else
  41220. glibcxx_cv_func_isinff_use=no
  41221. fi
  41222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41223. ac_ext=c
  41224. ac_cpp='$CPP $CPPFLAGS'
  41225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41228. fi
  41229. fi
  41230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  41231. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  41232. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  41233. for ac_func in isinff
  41234. do :
  41235. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  41236. if test "x$ac_cv_func_isinff" = xyes; then :
  41237. cat >>confdefs.h <<_ACEOF
  41238. #define HAVE_ISINFF 1
  41239. _ACEOF
  41240. fi
  41241. done
  41242. else
  41243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  41244. $as_echo_n "checking for _isinff declaration... " >&6; }
  41245. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  41246. if ${glibcxx_cv_func__isinff_use+:} false; then :
  41247. $as_echo_n "(cached) " >&6
  41248. else
  41249. ac_ext=cpp
  41250. ac_cpp='$CXXCPP $CPPFLAGS'
  41251. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41252. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41253. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41255. /* end confdefs.h. */
  41256. #include <math.h>
  41257. #ifdef HAVE_IEEEFP_H
  41258. #include <ieeefp.h>
  41259. #endif
  41260. int
  41261. main ()
  41262. {
  41263. _isinff(0);
  41264. ;
  41265. return 0;
  41266. }
  41267. _ACEOF
  41268. if ac_fn_cxx_try_compile "$LINENO"; then :
  41269. glibcxx_cv_func__isinff_use=yes
  41270. else
  41271. glibcxx_cv_func__isinff_use=no
  41272. fi
  41273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41274. ac_ext=c
  41275. ac_cpp='$CPP $CPPFLAGS'
  41276. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41277. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41278. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41279. fi
  41280. fi
  41281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  41282. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  41283. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  41284. for ac_func in _isinff
  41285. do :
  41286. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  41287. if test "x$ac_cv_func__isinff" = xyes; then :
  41288. cat >>confdefs.h <<_ACEOF
  41289. #define HAVE__ISINFF 1
  41290. _ACEOF
  41291. fi
  41292. done
  41293. fi
  41294. fi
  41295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  41296. $as_echo_n "checking for atan2f declaration... " >&6; }
  41297. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  41298. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  41299. $as_echo_n "(cached) " >&6
  41300. else
  41301. ac_ext=cpp
  41302. ac_cpp='$CXXCPP $CPPFLAGS'
  41303. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41304. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41305. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41307. /* end confdefs.h. */
  41308. #include <math.h>
  41309. int
  41310. main ()
  41311. {
  41312. atan2f(0, 0);
  41313. ;
  41314. return 0;
  41315. }
  41316. _ACEOF
  41317. if ac_fn_cxx_try_compile "$LINENO"; then :
  41318. glibcxx_cv_func_atan2f_use=yes
  41319. else
  41320. glibcxx_cv_func_atan2f_use=no
  41321. fi
  41322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41323. ac_ext=c
  41324. ac_cpp='$CPP $CPPFLAGS'
  41325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41328. fi
  41329. fi
  41330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  41331. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  41332. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  41333. for ac_func in atan2f
  41334. do :
  41335. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  41336. if test "x$ac_cv_func_atan2f" = xyes; then :
  41337. cat >>confdefs.h <<_ACEOF
  41338. #define HAVE_ATAN2F 1
  41339. _ACEOF
  41340. fi
  41341. done
  41342. else
  41343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  41344. $as_echo_n "checking for _atan2f declaration... " >&6; }
  41345. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  41346. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  41347. $as_echo_n "(cached) " >&6
  41348. else
  41349. ac_ext=cpp
  41350. ac_cpp='$CXXCPP $CPPFLAGS'
  41351. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41352. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41353. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41355. /* end confdefs.h. */
  41356. #include <math.h>
  41357. int
  41358. main ()
  41359. {
  41360. _atan2f(0, 0);
  41361. ;
  41362. return 0;
  41363. }
  41364. _ACEOF
  41365. if ac_fn_cxx_try_compile "$LINENO"; then :
  41366. glibcxx_cv_func__atan2f_use=yes
  41367. else
  41368. glibcxx_cv_func__atan2f_use=no
  41369. fi
  41370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41371. ac_ext=c
  41372. ac_cpp='$CPP $CPPFLAGS'
  41373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41376. fi
  41377. fi
  41378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  41379. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  41380. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  41381. for ac_func in _atan2f
  41382. do :
  41383. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  41384. if test "x$ac_cv_func__atan2f" = xyes; then :
  41385. cat >>confdefs.h <<_ACEOF
  41386. #define HAVE__ATAN2F 1
  41387. _ACEOF
  41388. fi
  41389. done
  41390. fi
  41391. fi
  41392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  41393. $as_echo_n "checking for fabsf declaration... " >&6; }
  41394. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  41395. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  41396. $as_echo_n "(cached) " >&6
  41397. else
  41398. ac_ext=cpp
  41399. ac_cpp='$CXXCPP $CPPFLAGS'
  41400. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41401. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41402. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41404. /* end confdefs.h. */
  41405. #include <math.h>
  41406. #ifdef HAVE_IEEEFP_H
  41407. #include <ieeefp.h>
  41408. #endif
  41409. int
  41410. main ()
  41411. {
  41412. fabsf(0);
  41413. ;
  41414. return 0;
  41415. }
  41416. _ACEOF
  41417. if ac_fn_cxx_try_compile "$LINENO"; then :
  41418. glibcxx_cv_func_fabsf_use=yes
  41419. else
  41420. glibcxx_cv_func_fabsf_use=no
  41421. fi
  41422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41423. ac_ext=c
  41424. ac_cpp='$CPP $CPPFLAGS'
  41425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41428. fi
  41429. fi
  41430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  41431. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  41432. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  41433. for ac_func in fabsf
  41434. do :
  41435. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  41436. if test "x$ac_cv_func_fabsf" = xyes; then :
  41437. cat >>confdefs.h <<_ACEOF
  41438. #define HAVE_FABSF 1
  41439. _ACEOF
  41440. fi
  41441. done
  41442. else
  41443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  41444. $as_echo_n "checking for _fabsf declaration... " >&6; }
  41445. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  41446. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  41447. $as_echo_n "(cached) " >&6
  41448. else
  41449. ac_ext=cpp
  41450. ac_cpp='$CXXCPP $CPPFLAGS'
  41451. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41452. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41453. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41455. /* end confdefs.h. */
  41456. #include <math.h>
  41457. #ifdef HAVE_IEEEFP_H
  41458. #include <ieeefp.h>
  41459. #endif
  41460. int
  41461. main ()
  41462. {
  41463. _fabsf(0);
  41464. ;
  41465. return 0;
  41466. }
  41467. _ACEOF
  41468. if ac_fn_cxx_try_compile "$LINENO"; then :
  41469. glibcxx_cv_func__fabsf_use=yes
  41470. else
  41471. glibcxx_cv_func__fabsf_use=no
  41472. fi
  41473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41474. ac_ext=c
  41475. ac_cpp='$CPP $CPPFLAGS'
  41476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41479. fi
  41480. fi
  41481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  41482. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  41483. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  41484. for ac_func in _fabsf
  41485. do :
  41486. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  41487. if test "x$ac_cv_func__fabsf" = xyes; then :
  41488. cat >>confdefs.h <<_ACEOF
  41489. #define HAVE__FABSF 1
  41490. _ACEOF
  41491. fi
  41492. done
  41493. fi
  41494. fi
  41495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  41496. $as_echo_n "checking for fmodf declaration... " >&6; }
  41497. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  41498. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  41499. $as_echo_n "(cached) " >&6
  41500. else
  41501. ac_ext=cpp
  41502. ac_cpp='$CXXCPP $CPPFLAGS'
  41503. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41504. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41505. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41507. /* end confdefs.h. */
  41508. #include <math.h>
  41509. int
  41510. main ()
  41511. {
  41512. fmodf(0, 0);
  41513. ;
  41514. return 0;
  41515. }
  41516. _ACEOF
  41517. if ac_fn_cxx_try_compile "$LINENO"; then :
  41518. glibcxx_cv_func_fmodf_use=yes
  41519. else
  41520. glibcxx_cv_func_fmodf_use=no
  41521. fi
  41522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41523. ac_ext=c
  41524. ac_cpp='$CPP $CPPFLAGS'
  41525. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41526. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41527. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41528. fi
  41529. fi
  41530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  41531. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  41532. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  41533. for ac_func in fmodf
  41534. do :
  41535. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  41536. if test "x$ac_cv_func_fmodf" = xyes; then :
  41537. cat >>confdefs.h <<_ACEOF
  41538. #define HAVE_FMODF 1
  41539. _ACEOF
  41540. fi
  41541. done
  41542. else
  41543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  41544. $as_echo_n "checking for _fmodf declaration... " >&6; }
  41545. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  41546. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  41547. $as_echo_n "(cached) " >&6
  41548. else
  41549. ac_ext=cpp
  41550. ac_cpp='$CXXCPP $CPPFLAGS'
  41551. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41552. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41553. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41555. /* end confdefs.h. */
  41556. #include <math.h>
  41557. int
  41558. main ()
  41559. {
  41560. _fmodf(0, 0);
  41561. ;
  41562. return 0;
  41563. }
  41564. _ACEOF
  41565. if ac_fn_cxx_try_compile "$LINENO"; then :
  41566. glibcxx_cv_func__fmodf_use=yes
  41567. else
  41568. glibcxx_cv_func__fmodf_use=no
  41569. fi
  41570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41571. ac_ext=c
  41572. ac_cpp='$CPP $CPPFLAGS'
  41573. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41574. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41575. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41576. fi
  41577. fi
  41578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  41579. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  41580. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  41581. for ac_func in _fmodf
  41582. do :
  41583. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  41584. if test "x$ac_cv_func__fmodf" = xyes; then :
  41585. cat >>confdefs.h <<_ACEOF
  41586. #define HAVE__FMODF 1
  41587. _ACEOF
  41588. fi
  41589. done
  41590. fi
  41591. fi
  41592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  41593. $as_echo_n "checking for frexpf declaration... " >&6; }
  41594. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  41595. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  41596. $as_echo_n "(cached) " >&6
  41597. else
  41598. ac_ext=cpp
  41599. ac_cpp='$CXXCPP $CPPFLAGS'
  41600. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41601. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41602. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41604. /* end confdefs.h. */
  41605. #include <math.h>
  41606. int
  41607. main ()
  41608. {
  41609. frexpf(0, 0);
  41610. ;
  41611. return 0;
  41612. }
  41613. _ACEOF
  41614. if ac_fn_cxx_try_compile "$LINENO"; then :
  41615. glibcxx_cv_func_frexpf_use=yes
  41616. else
  41617. glibcxx_cv_func_frexpf_use=no
  41618. fi
  41619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41620. ac_ext=c
  41621. ac_cpp='$CPP $CPPFLAGS'
  41622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41625. fi
  41626. fi
  41627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  41628. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  41629. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  41630. for ac_func in frexpf
  41631. do :
  41632. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  41633. if test "x$ac_cv_func_frexpf" = xyes; then :
  41634. cat >>confdefs.h <<_ACEOF
  41635. #define HAVE_FREXPF 1
  41636. _ACEOF
  41637. fi
  41638. done
  41639. else
  41640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  41641. $as_echo_n "checking for _frexpf declaration... " >&6; }
  41642. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  41643. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  41644. $as_echo_n "(cached) " >&6
  41645. else
  41646. ac_ext=cpp
  41647. ac_cpp='$CXXCPP $CPPFLAGS'
  41648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41652. /* end confdefs.h. */
  41653. #include <math.h>
  41654. int
  41655. main ()
  41656. {
  41657. _frexpf(0, 0);
  41658. ;
  41659. return 0;
  41660. }
  41661. _ACEOF
  41662. if ac_fn_cxx_try_compile "$LINENO"; then :
  41663. glibcxx_cv_func__frexpf_use=yes
  41664. else
  41665. glibcxx_cv_func__frexpf_use=no
  41666. fi
  41667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41668. ac_ext=c
  41669. ac_cpp='$CPP $CPPFLAGS'
  41670. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41671. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41672. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41673. fi
  41674. fi
  41675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  41676. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  41677. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  41678. for ac_func in _frexpf
  41679. do :
  41680. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  41681. if test "x$ac_cv_func__frexpf" = xyes; then :
  41682. cat >>confdefs.h <<_ACEOF
  41683. #define HAVE__FREXPF 1
  41684. _ACEOF
  41685. fi
  41686. done
  41687. fi
  41688. fi
  41689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  41690. $as_echo_n "checking for hypotf declaration... " >&6; }
  41691. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  41692. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  41693. $as_echo_n "(cached) " >&6
  41694. else
  41695. ac_ext=cpp
  41696. ac_cpp='$CXXCPP $CPPFLAGS'
  41697. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41698. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41699. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41701. /* end confdefs.h. */
  41702. #include <math.h>
  41703. int
  41704. main ()
  41705. {
  41706. hypotf(0, 0);
  41707. ;
  41708. return 0;
  41709. }
  41710. _ACEOF
  41711. if ac_fn_cxx_try_compile "$LINENO"; then :
  41712. glibcxx_cv_func_hypotf_use=yes
  41713. else
  41714. glibcxx_cv_func_hypotf_use=no
  41715. fi
  41716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41717. ac_ext=c
  41718. ac_cpp='$CPP $CPPFLAGS'
  41719. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41720. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41721. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41722. fi
  41723. fi
  41724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  41725. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  41726. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  41727. for ac_func in hypotf
  41728. do :
  41729. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  41730. if test "x$ac_cv_func_hypotf" = xyes; then :
  41731. cat >>confdefs.h <<_ACEOF
  41732. #define HAVE_HYPOTF 1
  41733. _ACEOF
  41734. fi
  41735. done
  41736. else
  41737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  41738. $as_echo_n "checking for _hypotf declaration... " >&6; }
  41739. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  41740. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  41741. $as_echo_n "(cached) " >&6
  41742. else
  41743. ac_ext=cpp
  41744. ac_cpp='$CXXCPP $CPPFLAGS'
  41745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41749. /* end confdefs.h. */
  41750. #include <math.h>
  41751. int
  41752. main ()
  41753. {
  41754. _hypotf(0, 0);
  41755. ;
  41756. return 0;
  41757. }
  41758. _ACEOF
  41759. if ac_fn_cxx_try_compile "$LINENO"; then :
  41760. glibcxx_cv_func__hypotf_use=yes
  41761. else
  41762. glibcxx_cv_func__hypotf_use=no
  41763. fi
  41764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41765. ac_ext=c
  41766. ac_cpp='$CPP $CPPFLAGS'
  41767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41770. fi
  41771. fi
  41772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  41773. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  41774. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  41775. for ac_func in _hypotf
  41776. do :
  41777. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  41778. if test "x$ac_cv_func__hypotf" = xyes; then :
  41779. cat >>confdefs.h <<_ACEOF
  41780. #define HAVE__HYPOTF 1
  41781. _ACEOF
  41782. fi
  41783. done
  41784. fi
  41785. fi
  41786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  41787. $as_echo_n "checking for ldexpf declaration... " >&6; }
  41788. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  41789. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  41790. $as_echo_n "(cached) " >&6
  41791. else
  41792. ac_ext=cpp
  41793. ac_cpp='$CXXCPP $CPPFLAGS'
  41794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41798. /* end confdefs.h. */
  41799. #include <math.h>
  41800. int
  41801. main ()
  41802. {
  41803. ldexpf(0, 0);
  41804. ;
  41805. return 0;
  41806. }
  41807. _ACEOF
  41808. if ac_fn_cxx_try_compile "$LINENO"; then :
  41809. glibcxx_cv_func_ldexpf_use=yes
  41810. else
  41811. glibcxx_cv_func_ldexpf_use=no
  41812. fi
  41813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41814. ac_ext=c
  41815. ac_cpp='$CPP $CPPFLAGS'
  41816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41819. fi
  41820. fi
  41821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  41822. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  41823. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  41824. for ac_func in ldexpf
  41825. do :
  41826. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  41827. if test "x$ac_cv_func_ldexpf" = xyes; then :
  41828. cat >>confdefs.h <<_ACEOF
  41829. #define HAVE_LDEXPF 1
  41830. _ACEOF
  41831. fi
  41832. done
  41833. else
  41834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  41835. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  41836. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  41837. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  41838. $as_echo_n "(cached) " >&6
  41839. else
  41840. ac_ext=cpp
  41841. ac_cpp='$CXXCPP $CPPFLAGS'
  41842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41846. /* end confdefs.h. */
  41847. #include <math.h>
  41848. int
  41849. main ()
  41850. {
  41851. _ldexpf(0, 0);
  41852. ;
  41853. return 0;
  41854. }
  41855. _ACEOF
  41856. if ac_fn_cxx_try_compile "$LINENO"; then :
  41857. glibcxx_cv_func__ldexpf_use=yes
  41858. else
  41859. glibcxx_cv_func__ldexpf_use=no
  41860. fi
  41861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41862. ac_ext=c
  41863. ac_cpp='$CPP $CPPFLAGS'
  41864. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41865. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41866. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41867. fi
  41868. fi
  41869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  41870. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  41871. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  41872. for ac_func in _ldexpf
  41873. do :
  41874. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  41875. if test "x$ac_cv_func__ldexpf" = xyes; then :
  41876. cat >>confdefs.h <<_ACEOF
  41877. #define HAVE__LDEXPF 1
  41878. _ACEOF
  41879. fi
  41880. done
  41881. fi
  41882. fi
  41883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  41884. $as_echo_n "checking for logf declaration... " >&6; }
  41885. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  41886. if ${glibcxx_cv_func_logf_use+:} false; then :
  41887. $as_echo_n "(cached) " >&6
  41888. else
  41889. ac_ext=cpp
  41890. ac_cpp='$CXXCPP $CPPFLAGS'
  41891. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41892. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41893. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41895. /* end confdefs.h. */
  41896. #include <math.h>
  41897. #ifdef HAVE_IEEEFP_H
  41898. #include <ieeefp.h>
  41899. #endif
  41900. int
  41901. main ()
  41902. {
  41903. logf(0);
  41904. ;
  41905. return 0;
  41906. }
  41907. _ACEOF
  41908. if ac_fn_cxx_try_compile "$LINENO"; then :
  41909. glibcxx_cv_func_logf_use=yes
  41910. else
  41911. glibcxx_cv_func_logf_use=no
  41912. fi
  41913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41914. ac_ext=c
  41915. ac_cpp='$CPP $CPPFLAGS'
  41916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41919. fi
  41920. fi
  41921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  41922. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  41923. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  41924. for ac_func in logf
  41925. do :
  41926. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  41927. if test "x$ac_cv_func_logf" = xyes; then :
  41928. cat >>confdefs.h <<_ACEOF
  41929. #define HAVE_LOGF 1
  41930. _ACEOF
  41931. fi
  41932. done
  41933. else
  41934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  41935. $as_echo_n "checking for _logf declaration... " >&6; }
  41936. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  41937. if ${glibcxx_cv_func__logf_use+:} false; then :
  41938. $as_echo_n "(cached) " >&6
  41939. else
  41940. ac_ext=cpp
  41941. ac_cpp='$CXXCPP $CPPFLAGS'
  41942. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41943. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41944. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41946. /* end confdefs.h. */
  41947. #include <math.h>
  41948. #ifdef HAVE_IEEEFP_H
  41949. #include <ieeefp.h>
  41950. #endif
  41951. int
  41952. main ()
  41953. {
  41954. _logf(0);
  41955. ;
  41956. return 0;
  41957. }
  41958. _ACEOF
  41959. if ac_fn_cxx_try_compile "$LINENO"; then :
  41960. glibcxx_cv_func__logf_use=yes
  41961. else
  41962. glibcxx_cv_func__logf_use=no
  41963. fi
  41964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41965. ac_ext=c
  41966. ac_cpp='$CPP $CPPFLAGS'
  41967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41970. fi
  41971. fi
  41972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  41973. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  41974. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  41975. for ac_func in _logf
  41976. do :
  41977. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  41978. if test "x$ac_cv_func__logf" = xyes; then :
  41979. cat >>confdefs.h <<_ACEOF
  41980. #define HAVE__LOGF 1
  41981. _ACEOF
  41982. fi
  41983. done
  41984. fi
  41985. fi
  41986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  41987. $as_echo_n "checking for log10f declaration... " >&6; }
  41988. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  41989. if ${glibcxx_cv_func_log10f_use+:} false; then :
  41990. $as_echo_n "(cached) " >&6
  41991. else
  41992. ac_ext=cpp
  41993. ac_cpp='$CXXCPP $CPPFLAGS'
  41994. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41995. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41996. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  41997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41998. /* end confdefs.h. */
  41999. #include <math.h>
  42000. #ifdef HAVE_IEEEFP_H
  42001. #include <ieeefp.h>
  42002. #endif
  42003. int
  42004. main ()
  42005. {
  42006. log10f(0);
  42007. ;
  42008. return 0;
  42009. }
  42010. _ACEOF
  42011. if ac_fn_cxx_try_compile "$LINENO"; then :
  42012. glibcxx_cv_func_log10f_use=yes
  42013. else
  42014. glibcxx_cv_func_log10f_use=no
  42015. fi
  42016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42017. ac_ext=c
  42018. ac_cpp='$CPP $CPPFLAGS'
  42019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42022. fi
  42023. fi
  42024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  42025. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  42026. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  42027. for ac_func in log10f
  42028. do :
  42029. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  42030. if test "x$ac_cv_func_log10f" = xyes; then :
  42031. cat >>confdefs.h <<_ACEOF
  42032. #define HAVE_LOG10F 1
  42033. _ACEOF
  42034. fi
  42035. done
  42036. else
  42037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  42038. $as_echo_n "checking for _log10f declaration... " >&6; }
  42039. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  42040. if ${glibcxx_cv_func__log10f_use+:} false; then :
  42041. $as_echo_n "(cached) " >&6
  42042. else
  42043. ac_ext=cpp
  42044. ac_cpp='$CXXCPP $CPPFLAGS'
  42045. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42046. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42047. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42049. /* end confdefs.h. */
  42050. #include <math.h>
  42051. #ifdef HAVE_IEEEFP_H
  42052. #include <ieeefp.h>
  42053. #endif
  42054. int
  42055. main ()
  42056. {
  42057. _log10f(0);
  42058. ;
  42059. return 0;
  42060. }
  42061. _ACEOF
  42062. if ac_fn_cxx_try_compile "$LINENO"; then :
  42063. glibcxx_cv_func__log10f_use=yes
  42064. else
  42065. glibcxx_cv_func__log10f_use=no
  42066. fi
  42067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42068. ac_ext=c
  42069. ac_cpp='$CPP $CPPFLAGS'
  42070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42073. fi
  42074. fi
  42075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  42076. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  42077. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  42078. for ac_func in _log10f
  42079. do :
  42080. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  42081. if test "x$ac_cv_func__log10f" = xyes; then :
  42082. cat >>confdefs.h <<_ACEOF
  42083. #define HAVE__LOG10F 1
  42084. _ACEOF
  42085. fi
  42086. done
  42087. fi
  42088. fi
  42089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  42090. $as_echo_n "checking for modff declaration... " >&6; }
  42091. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  42092. if ${glibcxx_cv_func_modff_use+:} false; then :
  42093. $as_echo_n "(cached) " >&6
  42094. else
  42095. ac_ext=cpp
  42096. ac_cpp='$CXXCPP $CPPFLAGS'
  42097. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42098. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42099. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42101. /* end confdefs.h. */
  42102. #include <math.h>
  42103. int
  42104. main ()
  42105. {
  42106. modff(0, 0);
  42107. ;
  42108. return 0;
  42109. }
  42110. _ACEOF
  42111. if ac_fn_cxx_try_compile "$LINENO"; then :
  42112. glibcxx_cv_func_modff_use=yes
  42113. else
  42114. glibcxx_cv_func_modff_use=no
  42115. fi
  42116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42117. ac_ext=c
  42118. ac_cpp='$CPP $CPPFLAGS'
  42119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42122. fi
  42123. fi
  42124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  42125. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  42126. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  42127. for ac_func in modff
  42128. do :
  42129. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  42130. if test "x$ac_cv_func_modff" = xyes; then :
  42131. cat >>confdefs.h <<_ACEOF
  42132. #define HAVE_MODFF 1
  42133. _ACEOF
  42134. fi
  42135. done
  42136. else
  42137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  42138. $as_echo_n "checking for _modff declaration... " >&6; }
  42139. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  42140. if ${glibcxx_cv_func__modff_use+:} false; then :
  42141. $as_echo_n "(cached) " >&6
  42142. else
  42143. ac_ext=cpp
  42144. ac_cpp='$CXXCPP $CPPFLAGS'
  42145. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42146. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42147. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42149. /* end confdefs.h. */
  42150. #include <math.h>
  42151. int
  42152. main ()
  42153. {
  42154. _modff(0, 0);
  42155. ;
  42156. return 0;
  42157. }
  42158. _ACEOF
  42159. if ac_fn_cxx_try_compile "$LINENO"; then :
  42160. glibcxx_cv_func__modff_use=yes
  42161. else
  42162. glibcxx_cv_func__modff_use=no
  42163. fi
  42164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42165. ac_ext=c
  42166. ac_cpp='$CPP $CPPFLAGS'
  42167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42170. fi
  42171. fi
  42172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  42173. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  42174. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  42175. for ac_func in _modff
  42176. do :
  42177. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  42178. if test "x$ac_cv_func__modff" = xyes; then :
  42179. cat >>confdefs.h <<_ACEOF
  42180. #define HAVE__MODFF 1
  42181. _ACEOF
  42182. fi
  42183. done
  42184. fi
  42185. fi
  42186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  42187. $as_echo_n "checking for modf declaration... " >&6; }
  42188. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  42189. if ${glibcxx_cv_func_modf_use+:} false; then :
  42190. $as_echo_n "(cached) " >&6
  42191. else
  42192. ac_ext=cpp
  42193. ac_cpp='$CXXCPP $CPPFLAGS'
  42194. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42195. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42196. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42198. /* end confdefs.h. */
  42199. #include <math.h>
  42200. int
  42201. main ()
  42202. {
  42203. modf(0, 0);
  42204. ;
  42205. return 0;
  42206. }
  42207. _ACEOF
  42208. if ac_fn_cxx_try_compile "$LINENO"; then :
  42209. glibcxx_cv_func_modf_use=yes
  42210. else
  42211. glibcxx_cv_func_modf_use=no
  42212. fi
  42213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42214. ac_ext=c
  42215. ac_cpp='$CPP $CPPFLAGS'
  42216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42219. fi
  42220. fi
  42221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  42222. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  42223. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  42224. for ac_func in modf
  42225. do :
  42226. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  42227. if test "x$ac_cv_func_modf" = xyes; then :
  42228. cat >>confdefs.h <<_ACEOF
  42229. #define HAVE_MODF 1
  42230. _ACEOF
  42231. fi
  42232. done
  42233. else
  42234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  42235. $as_echo_n "checking for _modf declaration... " >&6; }
  42236. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  42237. if ${glibcxx_cv_func__modf_use+:} false; then :
  42238. $as_echo_n "(cached) " >&6
  42239. else
  42240. ac_ext=cpp
  42241. ac_cpp='$CXXCPP $CPPFLAGS'
  42242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42246. /* end confdefs.h. */
  42247. #include <math.h>
  42248. int
  42249. main ()
  42250. {
  42251. _modf(0, 0);
  42252. ;
  42253. return 0;
  42254. }
  42255. _ACEOF
  42256. if ac_fn_cxx_try_compile "$LINENO"; then :
  42257. glibcxx_cv_func__modf_use=yes
  42258. else
  42259. glibcxx_cv_func__modf_use=no
  42260. fi
  42261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42262. ac_ext=c
  42263. ac_cpp='$CPP $CPPFLAGS'
  42264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42267. fi
  42268. fi
  42269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  42270. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  42271. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  42272. for ac_func in _modf
  42273. do :
  42274. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  42275. if test "x$ac_cv_func__modf" = xyes; then :
  42276. cat >>confdefs.h <<_ACEOF
  42277. #define HAVE__MODF 1
  42278. _ACEOF
  42279. fi
  42280. done
  42281. fi
  42282. fi
  42283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  42284. $as_echo_n "checking for powf declaration... " >&6; }
  42285. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  42286. if ${glibcxx_cv_func_powf_use+:} false; then :
  42287. $as_echo_n "(cached) " >&6
  42288. else
  42289. ac_ext=cpp
  42290. ac_cpp='$CXXCPP $CPPFLAGS'
  42291. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42292. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42293. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42295. /* end confdefs.h. */
  42296. #include <math.h>
  42297. int
  42298. main ()
  42299. {
  42300. powf(0, 0);
  42301. ;
  42302. return 0;
  42303. }
  42304. _ACEOF
  42305. if ac_fn_cxx_try_compile "$LINENO"; then :
  42306. glibcxx_cv_func_powf_use=yes
  42307. else
  42308. glibcxx_cv_func_powf_use=no
  42309. fi
  42310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42311. ac_ext=c
  42312. ac_cpp='$CPP $CPPFLAGS'
  42313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42316. fi
  42317. fi
  42318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  42319. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  42320. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  42321. for ac_func in powf
  42322. do :
  42323. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  42324. if test "x$ac_cv_func_powf" = xyes; then :
  42325. cat >>confdefs.h <<_ACEOF
  42326. #define HAVE_POWF 1
  42327. _ACEOF
  42328. fi
  42329. done
  42330. else
  42331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  42332. $as_echo_n "checking for _powf declaration... " >&6; }
  42333. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  42334. if ${glibcxx_cv_func__powf_use+:} false; then :
  42335. $as_echo_n "(cached) " >&6
  42336. else
  42337. ac_ext=cpp
  42338. ac_cpp='$CXXCPP $CPPFLAGS'
  42339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42343. /* end confdefs.h. */
  42344. #include <math.h>
  42345. int
  42346. main ()
  42347. {
  42348. _powf(0, 0);
  42349. ;
  42350. return 0;
  42351. }
  42352. _ACEOF
  42353. if ac_fn_cxx_try_compile "$LINENO"; then :
  42354. glibcxx_cv_func__powf_use=yes
  42355. else
  42356. glibcxx_cv_func__powf_use=no
  42357. fi
  42358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42359. ac_ext=c
  42360. ac_cpp='$CPP $CPPFLAGS'
  42361. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42362. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42363. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42364. fi
  42365. fi
  42366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  42367. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  42368. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  42369. for ac_func in _powf
  42370. do :
  42371. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  42372. if test "x$ac_cv_func__powf" = xyes; then :
  42373. cat >>confdefs.h <<_ACEOF
  42374. #define HAVE__POWF 1
  42375. _ACEOF
  42376. fi
  42377. done
  42378. fi
  42379. fi
  42380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  42381. $as_echo_n "checking for sqrtf declaration... " >&6; }
  42382. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  42383. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  42384. $as_echo_n "(cached) " >&6
  42385. else
  42386. ac_ext=cpp
  42387. ac_cpp='$CXXCPP $CPPFLAGS'
  42388. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42389. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42390. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42392. /* end confdefs.h. */
  42393. #include <math.h>
  42394. #ifdef HAVE_IEEEFP_H
  42395. #include <ieeefp.h>
  42396. #endif
  42397. int
  42398. main ()
  42399. {
  42400. sqrtf(0);
  42401. ;
  42402. return 0;
  42403. }
  42404. _ACEOF
  42405. if ac_fn_cxx_try_compile "$LINENO"; then :
  42406. glibcxx_cv_func_sqrtf_use=yes
  42407. else
  42408. glibcxx_cv_func_sqrtf_use=no
  42409. fi
  42410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42411. ac_ext=c
  42412. ac_cpp='$CPP $CPPFLAGS'
  42413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42416. fi
  42417. fi
  42418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  42419. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  42420. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  42421. for ac_func in sqrtf
  42422. do :
  42423. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  42424. if test "x$ac_cv_func_sqrtf" = xyes; then :
  42425. cat >>confdefs.h <<_ACEOF
  42426. #define HAVE_SQRTF 1
  42427. _ACEOF
  42428. fi
  42429. done
  42430. else
  42431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  42432. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  42433. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  42434. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  42435. $as_echo_n "(cached) " >&6
  42436. else
  42437. ac_ext=cpp
  42438. ac_cpp='$CXXCPP $CPPFLAGS'
  42439. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42440. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42441. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42443. /* end confdefs.h. */
  42444. #include <math.h>
  42445. #ifdef HAVE_IEEEFP_H
  42446. #include <ieeefp.h>
  42447. #endif
  42448. int
  42449. main ()
  42450. {
  42451. _sqrtf(0);
  42452. ;
  42453. return 0;
  42454. }
  42455. _ACEOF
  42456. if ac_fn_cxx_try_compile "$LINENO"; then :
  42457. glibcxx_cv_func__sqrtf_use=yes
  42458. else
  42459. glibcxx_cv_func__sqrtf_use=no
  42460. fi
  42461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42462. ac_ext=c
  42463. ac_cpp='$CPP $CPPFLAGS'
  42464. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42465. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42466. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42467. fi
  42468. fi
  42469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  42470. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  42471. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  42472. for ac_func in _sqrtf
  42473. do :
  42474. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  42475. if test "x$ac_cv_func__sqrtf" = xyes; then :
  42476. cat >>confdefs.h <<_ACEOF
  42477. #define HAVE__SQRTF 1
  42478. _ACEOF
  42479. fi
  42480. done
  42481. fi
  42482. fi
  42483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  42484. $as_echo_n "checking for sincosf declaration... " >&6; }
  42485. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  42486. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  42487. $as_echo_n "(cached) " >&6
  42488. else
  42489. ac_ext=cpp
  42490. ac_cpp='$CXXCPP $CPPFLAGS'
  42491. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42492. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42493. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42495. /* end confdefs.h. */
  42496. #include <math.h>
  42497. int
  42498. main ()
  42499. {
  42500. sincosf(0, 0, 0);
  42501. ;
  42502. return 0;
  42503. }
  42504. _ACEOF
  42505. if ac_fn_cxx_try_compile "$LINENO"; then :
  42506. glibcxx_cv_func_sincosf_use=yes
  42507. else
  42508. glibcxx_cv_func_sincosf_use=no
  42509. fi
  42510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42511. ac_ext=c
  42512. ac_cpp='$CPP $CPPFLAGS'
  42513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42516. fi
  42517. fi
  42518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  42519. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  42520. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  42521. for ac_func in sincosf
  42522. do :
  42523. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  42524. if test "x$ac_cv_func_sincosf" = xyes; then :
  42525. cat >>confdefs.h <<_ACEOF
  42526. #define HAVE_SINCOSF 1
  42527. _ACEOF
  42528. fi
  42529. done
  42530. else
  42531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  42532. $as_echo_n "checking for _sincosf declaration... " >&6; }
  42533. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  42534. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  42535. $as_echo_n "(cached) " >&6
  42536. else
  42537. ac_ext=cpp
  42538. ac_cpp='$CXXCPP $CPPFLAGS'
  42539. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42540. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42541. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42543. /* end confdefs.h. */
  42544. #include <math.h>
  42545. int
  42546. main ()
  42547. {
  42548. _sincosf(0, 0, 0);
  42549. ;
  42550. return 0;
  42551. }
  42552. _ACEOF
  42553. if ac_fn_cxx_try_compile "$LINENO"; then :
  42554. glibcxx_cv_func__sincosf_use=yes
  42555. else
  42556. glibcxx_cv_func__sincosf_use=no
  42557. fi
  42558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42559. ac_ext=c
  42560. ac_cpp='$CPP $CPPFLAGS'
  42561. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42562. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42563. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42564. fi
  42565. fi
  42566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  42567. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  42568. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  42569. for ac_func in _sincosf
  42570. do :
  42571. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  42572. if test "x$ac_cv_func__sincosf" = xyes; then :
  42573. cat >>confdefs.h <<_ACEOF
  42574. #define HAVE__SINCOSF 1
  42575. _ACEOF
  42576. fi
  42577. done
  42578. fi
  42579. fi
  42580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  42581. $as_echo_n "checking for finitef declaration... " >&6; }
  42582. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  42583. if ${glibcxx_cv_func_finitef_use+:} false; then :
  42584. $as_echo_n "(cached) " >&6
  42585. else
  42586. ac_ext=cpp
  42587. ac_cpp='$CXXCPP $CPPFLAGS'
  42588. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42589. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42590. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42592. /* end confdefs.h. */
  42593. #include <math.h>
  42594. #ifdef HAVE_IEEEFP_H
  42595. #include <ieeefp.h>
  42596. #endif
  42597. int
  42598. main ()
  42599. {
  42600. finitef(0);
  42601. ;
  42602. return 0;
  42603. }
  42604. _ACEOF
  42605. if ac_fn_cxx_try_compile "$LINENO"; then :
  42606. glibcxx_cv_func_finitef_use=yes
  42607. else
  42608. glibcxx_cv_func_finitef_use=no
  42609. fi
  42610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42611. ac_ext=c
  42612. ac_cpp='$CPP $CPPFLAGS'
  42613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42616. fi
  42617. fi
  42618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  42619. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  42620. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  42621. for ac_func in finitef
  42622. do :
  42623. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  42624. if test "x$ac_cv_func_finitef" = xyes; then :
  42625. cat >>confdefs.h <<_ACEOF
  42626. #define HAVE_FINITEF 1
  42627. _ACEOF
  42628. fi
  42629. done
  42630. else
  42631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  42632. $as_echo_n "checking for _finitef declaration... " >&6; }
  42633. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  42634. if ${glibcxx_cv_func__finitef_use+:} false; then :
  42635. $as_echo_n "(cached) " >&6
  42636. else
  42637. ac_ext=cpp
  42638. ac_cpp='$CXXCPP $CPPFLAGS'
  42639. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42640. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42641. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42643. /* end confdefs.h. */
  42644. #include <math.h>
  42645. #ifdef HAVE_IEEEFP_H
  42646. #include <ieeefp.h>
  42647. #endif
  42648. int
  42649. main ()
  42650. {
  42651. _finitef(0);
  42652. ;
  42653. return 0;
  42654. }
  42655. _ACEOF
  42656. if ac_fn_cxx_try_compile "$LINENO"; then :
  42657. glibcxx_cv_func__finitef_use=yes
  42658. else
  42659. glibcxx_cv_func__finitef_use=no
  42660. fi
  42661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42662. ac_ext=c
  42663. ac_cpp='$CPP $CPPFLAGS'
  42664. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42665. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42666. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42667. fi
  42668. fi
  42669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  42670. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  42671. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  42672. for ac_func in _finitef
  42673. do :
  42674. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  42675. if test "x$ac_cv_func__finitef" = xyes; then :
  42676. cat >>confdefs.h <<_ACEOF
  42677. #define HAVE__FINITEF 1
  42678. _ACEOF
  42679. fi
  42680. done
  42681. fi
  42682. fi
  42683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  42684. $as_echo_n "checking for long double trig functions... " >&6; }
  42685. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  42686. $as_echo_n "(cached) " >&6
  42687. else
  42688. ac_ext=cpp
  42689. ac_cpp='$CXXCPP $CPPFLAGS'
  42690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42694. /* end confdefs.h. */
  42695. #include <math.h>
  42696. int
  42697. main ()
  42698. {
  42699. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  42700. ;
  42701. return 0;
  42702. }
  42703. _ACEOF
  42704. if ac_fn_cxx_try_compile "$LINENO"; then :
  42705. glibcxx_cv_func_long_double_trig_use=yes
  42706. else
  42707. glibcxx_cv_func_long_double_trig_use=no
  42708. fi
  42709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42710. ac_ext=c
  42711. ac_cpp='$CPP $CPPFLAGS'
  42712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42715. fi
  42716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  42717. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  42718. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  42719. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  42720. do :
  42721. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42722. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  42723. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  42724. cat >>confdefs.h <<_ACEOF
  42725. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42726. _ACEOF
  42727. fi
  42728. done
  42729. else
  42730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  42731. $as_echo_n "checking for _long double trig functions... " >&6; }
  42732. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  42733. $as_echo_n "(cached) " >&6
  42734. else
  42735. ac_ext=cpp
  42736. ac_cpp='$CXXCPP $CPPFLAGS'
  42737. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42738. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42739. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42741. /* end confdefs.h. */
  42742. #include <math.h>
  42743. int
  42744. main ()
  42745. {
  42746. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  42747. ;
  42748. return 0;
  42749. }
  42750. _ACEOF
  42751. if ac_fn_cxx_try_compile "$LINENO"; then :
  42752. glibcxx_cv_func__long_double_trig_use=yes
  42753. else
  42754. glibcxx_cv_func__long_double_trig_use=no
  42755. fi
  42756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42757. ac_ext=c
  42758. ac_cpp='$CPP $CPPFLAGS'
  42759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42762. fi
  42763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  42764. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  42765. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  42766. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  42767. do :
  42768. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42769. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  42770. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  42771. cat >>confdefs.h <<_ACEOF
  42772. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42773. _ACEOF
  42774. fi
  42775. done
  42776. fi
  42777. fi
  42778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  42779. $as_echo_n "checking for long double round functions... " >&6; }
  42780. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  42781. $as_echo_n "(cached) " >&6
  42782. else
  42783. ac_ext=cpp
  42784. ac_cpp='$CXXCPP $CPPFLAGS'
  42785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42789. /* end confdefs.h. */
  42790. #include <math.h>
  42791. int
  42792. main ()
  42793. {
  42794. ceill (0); floorl (0);
  42795. ;
  42796. return 0;
  42797. }
  42798. _ACEOF
  42799. if ac_fn_cxx_try_compile "$LINENO"; then :
  42800. glibcxx_cv_func_long_double_round_use=yes
  42801. else
  42802. glibcxx_cv_func_long_double_round_use=no
  42803. fi
  42804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42805. ac_ext=c
  42806. ac_cpp='$CPP $CPPFLAGS'
  42807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42810. fi
  42811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  42812. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  42813. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  42814. for ac_func in ceill floorl
  42815. do :
  42816. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42817. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  42818. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  42819. cat >>confdefs.h <<_ACEOF
  42820. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42821. _ACEOF
  42822. fi
  42823. done
  42824. else
  42825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  42826. $as_echo_n "checking for _long double round functions... " >&6; }
  42827. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  42828. $as_echo_n "(cached) " >&6
  42829. else
  42830. ac_ext=cpp
  42831. ac_cpp='$CXXCPP $CPPFLAGS'
  42832. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42833. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42834. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42836. /* end confdefs.h. */
  42837. #include <math.h>
  42838. int
  42839. main ()
  42840. {
  42841. _ceill (0); _floorl (0);
  42842. ;
  42843. return 0;
  42844. }
  42845. _ACEOF
  42846. if ac_fn_cxx_try_compile "$LINENO"; then :
  42847. glibcxx_cv_func__long_double_round_use=yes
  42848. else
  42849. glibcxx_cv_func__long_double_round_use=no
  42850. fi
  42851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42852. ac_ext=c
  42853. ac_cpp='$CPP $CPPFLAGS'
  42854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42857. fi
  42858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  42859. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  42860. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  42861. for ac_func in _ceill _floorl
  42862. do :
  42863. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42864. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  42865. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  42866. cat >>confdefs.h <<_ACEOF
  42867. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42868. _ACEOF
  42869. fi
  42870. done
  42871. fi
  42872. fi
  42873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  42874. $as_echo_n "checking for isnanl declaration... " >&6; }
  42875. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  42876. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  42877. $as_echo_n "(cached) " >&6
  42878. else
  42879. ac_ext=cpp
  42880. ac_cpp='$CXXCPP $CPPFLAGS'
  42881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42885. /* end confdefs.h. */
  42886. #include <math.h>
  42887. #ifdef HAVE_IEEEFP_H
  42888. #include <ieeefp.h>
  42889. #endif
  42890. int
  42891. main ()
  42892. {
  42893. isnanl(0);
  42894. ;
  42895. return 0;
  42896. }
  42897. _ACEOF
  42898. if ac_fn_cxx_try_compile "$LINENO"; then :
  42899. glibcxx_cv_func_isnanl_use=yes
  42900. else
  42901. glibcxx_cv_func_isnanl_use=no
  42902. fi
  42903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42904. ac_ext=c
  42905. ac_cpp='$CPP $CPPFLAGS'
  42906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42909. fi
  42910. fi
  42911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  42912. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  42913. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  42914. for ac_func in isnanl
  42915. do :
  42916. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  42917. if test "x$ac_cv_func_isnanl" = xyes; then :
  42918. cat >>confdefs.h <<_ACEOF
  42919. #define HAVE_ISNANL 1
  42920. _ACEOF
  42921. fi
  42922. done
  42923. else
  42924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  42925. $as_echo_n "checking for _isnanl declaration... " >&6; }
  42926. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  42927. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  42928. $as_echo_n "(cached) " >&6
  42929. else
  42930. ac_ext=cpp
  42931. ac_cpp='$CXXCPP $CPPFLAGS'
  42932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42936. /* end confdefs.h. */
  42937. #include <math.h>
  42938. #ifdef HAVE_IEEEFP_H
  42939. #include <ieeefp.h>
  42940. #endif
  42941. int
  42942. main ()
  42943. {
  42944. _isnanl(0);
  42945. ;
  42946. return 0;
  42947. }
  42948. _ACEOF
  42949. if ac_fn_cxx_try_compile "$LINENO"; then :
  42950. glibcxx_cv_func__isnanl_use=yes
  42951. else
  42952. glibcxx_cv_func__isnanl_use=no
  42953. fi
  42954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  42955. ac_ext=c
  42956. ac_cpp='$CPP $CPPFLAGS'
  42957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  42960. fi
  42961. fi
  42962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  42963. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  42964. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  42965. for ac_func in _isnanl
  42966. do :
  42967. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  42968. if test "x$ac_cv_func__isnanl" = xyes; then :
  42969. cat >>confdefs.h <<_ACEOF
  42970. #define HAVE__ISNANL 1
  42971. _ACEOF
  42972. fi
  42973. done
  42974. fi
  42975. fi
  42976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  42977. $as_echo_n "checking for isinfl declaration... " >&6; }
  42978. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  42979. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  42980. $as_echo_n "(cached) " >&6
  42981. else
  42982. ac_ext=cpp
  42983. ac_cpp='$CXXCPP $CPPFLAGS'
  42984. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  42985. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  42986. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  42987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  42988. /* end confdefs.h. */
  42989. #include <math.h>
  42990. #ifdef HAVE_IEEEFP_H
  42991. #include <ieeefp.h>
  42992. #endif
  42993. int
  42994. main ()
  42995. {
  42996. isinfl(0);
  42997. ;
  42998. return 0;
  42999. }
  43000. _ACEOF
  43001. if ac_fn_cxx_try_compile "$LINENO"; then :
  43002. glibcxx_cv_func_isinfl_use=yes
  43003. else
  43004. glibcxx_cv_func_isinfl_use=no
  43005. fi
  43006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43007. ac_ext=c
  43008. ac_cpp='$CPP $CPPFLAGS'
  43009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43012. fi
  43013. fi
  43014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  43015. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  43016. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  43017. for ac_func in isinfl
  43018. do :
  43019. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  43020. if test "x$ac_cv_func_isinfl" = xyes; then :
  43021. cat >>confdefs.h <<_ACEOF
  43022. #define HAVE_ISINFL 1
  43023. _ACEOF
  43024. fi
  43025. done
  43026. else
  43027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  43028. $as_echo_n "checking for _isinfl declaration... " >&6; }
  43029. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  43030. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  43031. $as_echo_n "(cached) " >&6
  43032. else
  43033. ac_ext=cpp
  43034. ac_cpp='$CXXCPP $CPPFLAGS'
  43035. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43036. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43037. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43039. /* end confdefs.h. */
  43040. #include <math.h>
  43041. #ifdef HAVE_IEEEFP_H
  43042. #include <ieeefp.h>
  43043. #endif
  43044. int
  43045. main ()
  43046. {
  43047. _isinfl(0);
  43048. ;
  43049. return 0;
  43050. }
  43051. _ACEOF
  43052. if ac_fn_cxx_try_compile "$LINENO"; then :
  43053. glibcxx_cv_func__isinfl_use=yes
  43054. else
  43055. glibcxx_cv_func__isinfl_use=no
  43056. fi
  43057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43058. ac_ext=c
  43059. ac_cpp='$CPP $CPPFLAGS'
  43060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43063. fi
  43064. fi
  43065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  43066. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  43067. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  43068. for ac_func in _isinfl
  43069. do :
  43070. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  43071. if test "x$ac_cv_func__isinfl" = xyes; then :
  43072. cat >>confdefs.h <<_ACEOF
  43073. #define HAVE__ISINFL 1
  43074. _ACEOF
  43075. fi
  43076. done
  43077. fi
  43078. fi
  43079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  43080. $as_echo_n "checking for atan2l declaration... " >&6; }
  43081. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  43082. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  43083. $as_echo_n "(cached) " >&6
  43084. else
  43085. ac_ext=cpp
  43086. ac_cpp='$CXXCPP $CPPFLAGS'
  43087. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43088. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43089. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43091. /* end confdefs.h. */
  43092. #include <math.h>
  43093. int
  43094. main ()
  43095. {
  43096. atan2l(0, 0);
  43097. ;
  43098. return 0;
  43099. }
  43100. _ACEOF
  43101. if ac_fn_cxx_try_compile "$LINENO"; then :
  43102. glibcxx_cv_func_atan2l_use=yes
  43103. else
  43104. glibcxx_cv_func_atan2l_use=no
  43105. fi
  43106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43107. ac_ext=c
  43108. ac_cpp='$CPP $CPPFLAGS'
  43109. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43110. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43111. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43112. fi
  43113. fi
  43114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  43115. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  43116. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  43117. for ac_func in atan2l
  43118. do :
  43119. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  43120. if test "x$ac_cv_func_atan2l" = xyes; then :
  43121. cat >>confdefs.h <<_ACEOF
  43122. #define HAVE_ATAN2L 1
  43123. _ACEOF
  43124. fi
  43125. done
  43126. else
  43127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  43128. $as_echo_n "checking for _atan2l declaration... " >&6; }
  43129. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  43130. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  43131. $as_echo_n "(cached) " >&6
  43132. else
  43133. ac_ext=cpp
  43134. ac_cpp='$CXXCPP $CPPFLAGS'
  43135. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43136. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43137. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43139. /* end confdefs.h. */
  43140. #include <math.h>
  43141. int
  43142. main ()
  43143. {
  43144. _atan2l(0, 0);
  43145. ;
  43146. return 0;
  43147. }
  43148. _ACEOF
  43149. if ac_fn_cxx_try_compile "$LINENO"; then :
  43150. glibcxx_cv_func__atan2l_use=yes
  43151. else
  43152. glibcxx_cv_func__atan2l_use=no
  43153. fi
  43154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43155. ac_ext=c
  43156. ac_cpp='$CPP $CPPFLAGS'
  43157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43160. fi
  43161. fi
  43162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  43163. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  43164. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  43165. for ac_func in _atan2l
  43166. do :
  43167. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  43168. if test "x$ac_cv_func__atan2l" = xyes; then :
  43169. cat >>confdefs.h <<_ACEOF
  43170. #define HAVE__ATAN2L 1
  43171. _ACEOF
  43172. fi
  43173. done
  43174. fi
  43175. fi
  43176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  43177. $as_echo_n "checking for expl declaration... " >&6; }
  43178. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  43179. if ${glibcxx_cv_func_expl_use+:} false; then :
  43180. $as_echo_n "(cached) " >&6
  43181. else
  43182. ac_ext=cpp
  43183. ac_cpp='$CXXCPP $CPPFLAGS'
  43184. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43185. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43188. /* end confdefs.h. */
  43189. #include <math.h>
  43190. #ifdef HAVE_IEEEFP_H
  43191. #include <ieeefp.h>
  43192. #endif
  43193. int
  43194. main ()
  43195. {
  43196. expl(0);
  43197. ;
  43198. return 0;
  43199. }
  43200. _ACEOF
  43201. if ac_fn_cxx_try_compile "$LINENO"; then :
  43202. glibcxx_cv_func_expl_use=yes
  43203. else
  43204. glibcxx_cv_func_expl_use=no
  43205. fi
  43206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43207. ac_ext=c
  43208. ac_cpp='$CPP $CPPFLAGS'
  43209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43212. fi
  43213. fi
  43214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  43215. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  43216. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  43217. for ac_func in expl
  43218. do :
  43219. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  43220. if test "x$ac_cv_func_expl" = xyes; then :
  43221. cat >>confdefs.h <<_ACEOF
  43222. #define HAVE_EXPL 1
  43223. _ACEOF
  43224. fi
  43225. done
  43226. else
  43227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  43228. $as_echo_n "checking for _expl declaration... " >&6; }
  43229. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  43230. if ${glibcxx_cv_func__expl_use+:} false; then :
  43231. $as_echo_n "(cached) " >&6
  43232. else
  43233. ac_ext=cpp
  43234. ac_cpp='$CXXCPP $CPPFLAGS'
  43235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43239. /* end confdefs.h. */
  43240. #include <math.h>
  43241. #ifdef HAVE_IEEEFP_H
  43242. #include <ieeefp.h>
  43243. #endif
  43244. int
  43245. main ()
  43246. {
  43247. _expl(0);
  43248. ;
  43249. return 0;
  43250. }
  43251. _ACEOF
  43252. if ac_fn_cxx_try_compile "$LINENO"; then :
  43253. glibcxx_cv_func__expl_use=yes
  43254. else
  43255. glibcxx_cv_func__expl_use=no
  43256. fi
  43257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43258. ac_ext=c
  43259. ac_cpp='$CPP $CPPFLAGS'
  43260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43263. fi
  43264. fi
  43265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  43266. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  43267. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  43268. for ac_func in _expl
  43269. do :
  43270. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  43271. if test "x$ac_cv_func__expl" = xyes; then :
  43272. cat >>confdefs.h <<_ACEOF
  43273. #define HAVE__EXPL 1
  43274. _ACEOF
  43275. fi
  43276. done
  43277. fi
  43278. fi
  43279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  43280. $as_echo_n "checking for fabsl declaration... " >&6; }
  43281. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  43282. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  43283. $as_echo_n "(cached) " >&6
  43284. else
  43285. ac_ext=cpp
  43286. ac_cpp='$CXXCPP $CPPFLAGS'
  43287. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43288. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43289. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43291. /* end confdefs.h. */
  43292. #include <math.h>
  43293. #ifdef HAVE_IEEEFP_H
  43294. #include <ieeefp.h>
  43295. #endif
  43296. int
  43297. main ()
  43298. {
  43299. fabsl(0);
  43300. ;
  43301. return 0;
  43302. }
  43303. _ACEOF
  43304. if ac_fn_cxx_try_compile "$LINENO"; then :
  43305. glibcxx_cv_func_fabsl_use=yes
  43306. else
  43307. glibcxx_cv_func_fabsl_use=no
  43308. fi
  43309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43310. ac_ext=c
  43311. ac_cpp='$CPP $CPPFLAGS'
  43312. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43313. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43314. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43315. fi
  43316. fi
  43317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  43318. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  43319. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  43320. for ac_func in fabsl
  43321. do :
  43322. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  43323. if test "x$ac_cv_func_fabsl" = xyes; then :
  43324. cat >>confdefs.h <<_ACEOF
  43325. #define HAVE_FABSL 1
  43326. _ACEOF
  43327. fi
  43328. done
  43329. else
  43330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  43331. $as_echo_n "checking for _fabsl declaration... " >&6; }
  43332. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  43333. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  43334. $as_echo_n "(cached) " >&6
  43335. else
  43336. ac_ext=cpp
  43337. ac_cpp='$CXXCPP $CPPFLAGS'
  43338. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43339. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43340. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43342. /* end confdefs.h. */
  43343. #include <math.h>
  43344. #ifdef HAVE_IEEEFP_H
  43345. #include <ieeefp.h>
  43346. #endif
  43347. int
  43348. main ()
  43349. {
  43350. _fabsl(0);
  43351. ;
  43352. return 0;
  43353. }
  43354. _ACEOF
  43355. if ac_fn_cxx_try_compile "$LINENO"; then :
  43356. glibcxx_cv_func__fabsl_use=yes
  43357. else
  43358. glibcxx_cv_func__fabsl_use=no
  43359. fi
  43360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43361. ac_ext=c
  43362. ac_cpp='$CPP $CPPFLAGS'
  43363. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43364. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43365. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43366. fi
  43367. fi
  43368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  43369. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  43370. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  43371. for ac_func in _fabsl
  43372. do :
  43373. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  43374. if test "x$ac_cv_func__fabsl" = xyes; then :
  43375. cat >>confdefs.h <<_ACEOF
  43376. #define HAVE__FABSL 1
  43377. _ACEOF
  43378. fi
  43379. done
  43380. fi
  43381. fi
  43382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  43383. $as_echo_n "checking for fmodl declaration... " >&6; }
  43384. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  43385. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  43386. $as_echo_n "(cached) " >&6
  43387. else
  43388. ac_ext=cpp
  43389. ac_cpp='$CXXCPP $CPPFLAGS'
  43390. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43391. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43392. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43394. /* end confdefs.h. */
  43395. #include <math.h>
  43396. int
  43397. main ()
  43398. {
  43399. fmodl(0, 0);
  43400. ;
  43401. return 0;
  43402. }
  43403. _ACEOF
  43404. if ac_fn_cxx_try_compile "$LINENO"; then :
  43405. glibcxx_cv_func_fmodl_use=yes
  43406. else
  43407. glibcxx_cv_func_fmodl_use=no
  43408. fi
  43409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43410. ac_ext=c
  43411. ac_cpp='$CPP $CPPFLAGS'
  43412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43415. fi
  43416. fi
  43417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  43418. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  43419. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  43420. for ac_func in fmodl
  43421. do :
  43422. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  43423. if test "x$ac_cv_func_fmodl" = xyes; then :
  43424. cat >>confdefs.h <<_ACEOF
  43425. #define HAVE_FMODL 1
  43426. _ACEOF
  43427. fi
  43428. done
  43429. else
  43430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  43431. $as_echo_n "checking for _fmodl declaration... " >&6; }
  43432. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  43433. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  43434. $as_echo_n "(cached) " >&6
  43435. else
  43436. ac_ext=cpp
  43437. ac_cpp='$CXXCPP $CPPFLAGS'
  43438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43442. /* end confdefs.h. */
  43443. #include <math.h>
  43444. int
  43445. main ()
  43446. {
  43447. _fmodl(0, 0);
  43448. ;
  43449. return 0;
  43450. }
  43451. _ACEOF
  43452. if ac_fn_cxx_try_compile "$LINENO"; then :
  43453. glibcxx_cv_func__fmodl_use=yes
  43454. else
  43455. glibcxx_cv_func__fmodl_use=no
  43456. fi
  43457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43458. ac_ext=c
  43459. ac_cpp='$CPP $CPPFLAGS'
  43460. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43461. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43462. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43463. fi
  43464. fi
  43465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  43466. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  43467. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  43468. for ac_func in _fmodl
  43469. do :
  43470. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  43471. if test "x$ac_cv_func__fmodl" = xyes; then :
  43472. cat >>confdefs.h <<_ACEOF
  43473. #define HAVE__FMODL 1
  43474. _ACEOF
  43475. fi
  43476. done
  43477. fi
  43478. fi
  43479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  43480. $as_echo_n "checking for frexpl declaration... " >&6; }
  43481. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  43482. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  43483. $as_echo_n "(cached) " >&6
  43484. else
  43485. ac_ext=cpp
  43486. ac_cpp='$CXXCPP $CPPFLAGS'
  43487. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43488. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43489. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43491. /* end confdefs.h. */
  43492. #include <math.h>
  43493. int
  43494. main ()
  43495. {
  43496. frexpl(0, 0);
  43497. ;
  43498. return 0;
  43499. }
  43500. _ACEOF
  43501. if ac_fn_cxx_try_compile "$LINENO"; then :
  43502. glibcxx_cv_func_frexpl_use=yes
  43503. else
  43504. glibcxx_cv_func_frexpl_use=no
  43505. fi
  43506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43507. ac_ext=c
  43508. ac_cpp='$CPP $CPPFLAGS'
  43509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43512. fi
  43513. fi
  43514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  43515. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  43516. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  43517. for ac_func in frexpl
  43518. do :
  43519. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  43520. if test "x$ac_cv_func_frexpl" = xyes; then :
  43521. cat >>confdefs.h <<_ACEOF
  43522. #define HAVE_FREXPL 1
  43523. _ACEOF
  43524. fi
  43525. done
  43526. else
  43527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  43528. $as_echo_n "checking for _frexpl declaration... " >&6; }
  43529. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  43530. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  43531. $as_echo_n "(cached) " >&6
  43532. else
  43533. ac_ext=cpp
  43534. ac_cpp='$CXXCPP $CPPFLAGS'
  43535. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43536. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43537. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43539. /* end confdefs.h. */
  43540. #include <math.h>
  43541. int
  43542. main ()
  43543. {
  43544. _frexpl(0, 0);
  43545. ;
  43546. return 0;
  43547. }
  43548. _ACEOF
  43549. if ac_fn_cxx_try_compile "$LINENO"; then :
  43550. glibcxx_cv_func__frexpl_use=yes
  43551. else
  43552. glibcxx_cv_func__frexpl_use=no
  43553. fi
  43554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43555. ac_ext=c
  43556. ac_cpp='$CPP $CPPFLAGS'
  43557. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43558. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43560. fi
  43561. fi
  43562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  43563. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  43564. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  43565. for ac_func in _frexpl
  43566. do :
  43567. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  43568. if test "x$ac_cv_func__frexpl" = xyes; then :
  43569. cat >>confdefs.h <<_ACEOF
  43570. #define HAVE__FREXPL 1
  43571. _ACEOF
  43572. fi
  43573. done
  43574. fi
  43575. fi
  43576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  43577. $as_echo_n "checking for hypotl declaration... " >&6; }
  43578. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  43579. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  43580. $as_echo_n "(cached) " >&6
  43581. else
  43582. ac_ext=cpp
  43583. ac_cpp='$CXXCPP $CPPFLAGS'
  43584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43588. /* end confdefs.h. */
  43589. #include <math.h>
  43590. int
  43591. main ()
  43592. {
  43593. hypotl(0, 0);
  43594. ;
  43595. return 0;
  43596. }
  43597. _ACEOF
  43598. if ac_fn_cxx_try_compile "$LINENO"; then :
  43599. glibcxx_cv_func_hypotl_use=yes
  43600. else
  43601. glibcxx_cv_func_hypotl_use=no
  43602. fi
  43603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43604. ac_ext=c
  43605. ac_cpp='$CPP $CPPFLAGS'
  43606. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43607. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43608. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43609. fi
  43610. fi
  43611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  43612. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  43613. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  43614. for ac_func in hypotl
  43615. do :
  43616. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  43617. if test "x$ac_cv_func_hypotl" = xyes; then :
  43618. cat >>confdefs.h <<_ACEOF
  43619. #define HAVE_HYPOTL 1
  43620. _ACEOF
  43621. fi
  43622. done
  43623. else
  43624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  43625. $as_echo_n "checking for _hypotl declaration... " >&6; }
  43626. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  43627. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  43628. $as_echo_n "(cached) " >&6
  43629. else
  43630. ac_ext=cpp
  43631. ac_cpp='$CXXCPP $CPPFLAGS'
  43632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43636. /* end confdefs.h. */
  43637. #include <math.h>
  43638. int
  43639. main ()
  43640. {
  43641. _hypotl(0, 0);
  43642. ;
  43643. return 0;
  43644. }
  43645. _ACEOF
  43646. if ac_fn_cxx_try_compile "$LINENO"; then :
  43647. glibcxx_cv_func__hypotl_use=yes
  43648. else
  43649. glibcxx_cv_func__hypotl_use=no
  43650. fi
  43651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43652. ac_ext=c
  43653. ac_cpp='$CPP $CPPFLAGS'
  43654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43657. fi
  43658. fi
  43659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  43660. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  43661. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  43662. for ac_func in _hypotl
  43663. do :
  43664. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  43665. if test "x$ac_cv_func__hypotl" = xyes; then :
  43666. cat >>confdefs.h <<_ACEOF
  43667. #define HAVE__HYPOTL 1
  43668. _ACEOF
  43669. fi
  43670. done
  43671. fi
  43672. fi
  43673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  43674. $as_echo_n "checking for ldexpl declaration... " >&6; }
  43675. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  43676. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  43677. $as_echo_n "(cached) " >&6
  43678. else
  43679. ac_ext=cpp
  43680. ac_cpp='$CXXCPP $CPPFLAGS'
  43681. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43682. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43683. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43685. /* end confdefs.h. */
  43686. #include <math.h>
  43687. int
  43688. main ()
  43689. {
  43690. ldexpl(0, 0);
  43691. ;
  43692. return 0;
  43693. }
  43694. _ACEOF
  43695. if ac_fn_cxx_try_compile "$LINENO"; then :
  43696. glibcxx_cv_func_ldexpl_use=yes
  43697. else
  43698. glibcxx_cv_func_ldexpl_use=no
  43699. fi
  43700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43701. ac_ext=c
  43702. ac_cpp='$CPP $CPPFLAGS'
  43703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43706. fi
  43707. fi
  43708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  43709. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  43710. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  43711. for ac_func in ldexpl
  43712. do :
  43713. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  43714. if test "x$ac_cv_func_ldexpl" = xyes; then :
  43715. cat >>confdefs.h <<_ACEOF
  43716. #define HAVE_LDEXPL 1
  43717. _ACEOF
  43718. fi
  43719. done
  43720. else
  43721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  43722. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  43723. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  43724. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  43725. $as_echo_n "(cached) " >&6
  43726. else
  43727. ac_ext=cpp
  43728. ac_cpp='$CXXCPP $CPPFLAGS'
  43729. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43730. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43731. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43733. /* end confdefs.h. */
  43734. #include <math.h>
  43735. int
  43736. main ()
  43737. {
  43738. _ldexpl(0, 0);
  43739. ;
  43740. return 0;
  43741. }
  43742. _ACEOF
  43743. if ac_fn_cxx_try_compile "$LINENO"; then :
  43744. glibcxx_cv_func__ldexpl_use=yes
  43745. else
  43746. glibcxx_cv_func__ldexpl_use=no
  43747. fi
  43748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43749. ac_ext=c
  43750. ac_cpp='$CPP $CPPFLAGS'
  43751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43754. fi
  43755. fi
  43756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  43757. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  43758. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  43759. for ac_func in _ldexpl
  43760. do :
  43761. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  43762. if test "x$ac_cv_func__ldexpl" = xyes; then :
  43763. cat >>confdefs.h <<_ACEOF
  43764. #define HAVE__LDEXPL 1
  43765. _ACEOF
  43766. fi
  43767. done
  43768. fi
  43769. fi
  43770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  43771. $as_echo_n "checking for logl declaration... " >&6; }
  43772. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  43773. if ${glibcxx_cv_func_logl_use+:} false; then :
  43774. $as_echo_n "(cached) " >&6
  43775. else
  43776. ac_ext=cpp
  43777. ac_cpp='$CXXCPP $CPPFLAGS'
  43778. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43779. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43780. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43782. /* end confdefs.h. */
  43783. #include <math.h>
  43784. #ifdef HAVE_IEEEFP_H
  43785. #include <ieeefp.h>
  43786. #endif
  43787. int
  43788. main ()
  43789. {
  43790. logl(0);
  43791. ;
  43792. return 0;
  43793. }
  43794. _ACEOF
  43795. if ac_fn_cxx_try_compile "$LINENO"; then :
  43796. glibcxx_cv_func_logl_use=yes
  43797. else
  43798. glibcxx_cv_func_logl_use=no
  43799. fi
  43800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43801. ac_ext=c
  43802. ac_cpp='$CPP $CPPFLAGS'
  43803. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43804. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43805. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43806. fi
  43807. fi
  43808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  43809. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  43810. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  43811. for ac_func in logl
  43812. do :
  43813. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  43814. if test "x$ac_cv_func_logl" = xyes; then :
  43815. cat >>confdefs.h <<_ACEOF
  43816. #define HAVE_LOGL 1
  43817. _ACEOF
  43818. fi
  43819. done
  43820. else
  43821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  43822. $as_echo_n "checking for _logl declaration... " >&6; }
  43823. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  43824. if ${glibcxx_cv_func__logl_use+:} false; then :
  43825. $as_echo_n "(cached) " >&6
  43826. else
  43827. ac_ext=cpp
  43828. ac_cpp='$CXXCPP $CPPFLAGS'
  43829. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43830. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43831. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43833. /* end confdefs.h. */
  43834. #include <math.h>
  43835. #ifdef HAVE_IEEEFP_H
  43836. #include <ieeefp.h>
  43837. #endif
  43838. int
  43839. main ()
  43840. {
  43841. _logl(0);
  43842. ;
  43843. return 0;
  43844. }
  43845. _ACEOF
  43846. if ac_fn_cxx_try_compile "$LINENO"; then :
  43847. glibcxx_cv_func__logl_use=yes
  43848. else
  43849. glibcxx_cv_func__logl_use=no
  43850. fi
  43851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43852. ac_ext=c
  43853. ac_cpp='$CPP $CPPFLAGS'
  43854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43857. fi
  43858. fi
  43859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  43860. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  43861. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  43862. for ac_func in _logl
  43863. do :
  43864. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  43865. if test "x$ac_cv_func__logl" = xyes; then :
  43866. cat >>confdefs.h <<_ACEOF
  43867. #define HAVE__LOGL 1
  43868. _ACEOF
  43869. fi
  43870. done
  43871. fi
  43872. fi
  43873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  43874. $as_echo_n "checking for log10l declaration... " >&6; }
  43875. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  43876. if ${glibcxx_cv_func_log10l_use+:} false; then :
  43877. $as_echo_n "(cached) " >&6
  43878. else
  43879. ac_ext=cpp
  43880. ac_cpp='$CXXCPP $CPPFLAGS'
  43881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43885. /* end confdefs.h. */
  43886. #include <math.h>
  43887. #ifdef HAVE_IEEEFP_H
  43888. #include <ieeefp.h>
  43889. #endif
  43890. int
  43891. main ()
  43892. {
  43893. log10l(0);
  43894. ;
  43895. return 0;
  43896. }
  43897. _ACEOF
  43898. if ac_fn_cxx_try_compile "$LINENO"; then :
  43899. glibcxx_cv_func_log10l_use=yes
  43900. else
  43901. glibcxx_cv_func_log10l_use=no
  43902. fi
  43903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43904. ac_ext=c
  43905. ac_cpp='$CPP $CPPFLAGS'
  43906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43909. fi
  43910. fi
  43911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  43912. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  43913. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  43914. for ac_func in log10l
  43915. do :
  43916. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  43917. if test "x$ac_cv_func_log10l" = xyes; then :
  43918. cat >>confdefs.h <<_ACEOF
  43919. #define HAVE_LOG10L 1
  43920. _ACEOF
  43921. fi
  43922. done
  43923. else
  43924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  43925. $as_echo_n "checking for _log10l declaration... " >&6; }
  43926. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  43927. if ${glibcxx_cv_func__log10l_use+:} false; then :
  43928. $as_echo_n "(cached) " >&6
  43929. else
  43930. ac_ext=cpp
  43931. ac_cpp='$CXXCPP $CPPFLAGS'
  43932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43936. /* end confdefs.h. */
  43937. #include <math.h>
  43938. #ifdef HAVE_IEEEFP_H
  43939. #include <ieeefp.h>
  43940. #endif
  43941. int
  43942. main ()
  43943. {
  43944. _log10l(0);
  43945. ;
  43946. return 0;
  43947. }
  43948. _ACEOF
  43949. if ac_fn_cxx_try_compile "$LINENO"; then :
  43950. glibcxx_cv_func__log10l_use=yes
  43951. else
  43952. glibcxx_cv_func__log10l_use=no
  43953. fi
  43954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  43955. ac_ext=c
  43956. ac_cpp='$CPP $CPPFLAGS'
  43957. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43958. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43959. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  43960. fi
  43961. fi
  43962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  43963. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  43964. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  43965. for ac_func in _log10l
  43966. do :
  43967. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  43968. if test "x$ac_cv_func__log10l" = xyes; then :
  43969. cat >>confdefs.h <<_ACEOF
  43970. #define HAVE__LOG10L 1
  43971. _ACEOF
  43972. fi
  43973. done
  43974. fi
  43975. fi
  43976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  43977. $as_echo_n "checking for modfl declaration... " >&6; }
  43978. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  43979. if ${glibcxx_cv_func_modfl_use+:} false; then :
  43980. $as_echo_n "(cached) " >&6
  43981. else
  43982. ac_ext=cpp
  43983. ac_cpp='$CXXCPP $CPPFLAGS'
  43984. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  43985. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  43986. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  43987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  43988. /* end confdefs.h. */
  43989. #include <math.h>
  43990. int
  43991. main ()
  43992. {
  43993. modfl(0, 0);
  43994. ;
  43995. return 0;
  43996. }
  43997. _ACEOF
  43998. if ac_fn_cxx_try_compile "$LINENO"; then :
  43999. glibcxx_cv_func_modfl_use=yes
  44000. else
  44001. glibcxx_cv_func_modfl_use=no
  44002. fi
  44003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44004. ac_ext=c
  44005. ac_cpp='$CPP $CPPFLAGS'
  44006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44009. fi
  44010. fi
  44011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  44012. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  44013. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  44014. for ac_func in modfl
  44015. do :
  44016. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  44017. if test "x$ac_cv_func_modfl" = xyes; then :
  44018. cat >>confdefs.h <<_ACEOF
  44019. #define HAVE_MODFL 1
  44020. _ACEOF
  44021. fi
  44022. done
  44023. else
  44024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  44025. $as_echo_n "checking for _modfl declaration... " >&6; }
  44026. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  44027. if ${glibcxx_cv_func__modfl_use+:} false; then :
  44028. $as_echo_n "(cached) " >&6
  44029. else
  44030. ac_ext=cpp
  44031. ac_cpp='$CXXCPP $CPPFLAGS'
  44032. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44033. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44034. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44036. /* end confdefs.h. */
  44037. #include <math.h>
  44038. int
  44039. main ()
  44040. {
  44041. _modfl(0, 0);
  44042. ;
  44043. return 0;
  44044. }
  44045. _ACEOF
  44046. if ac_fn_cxx_try_compile "$LINENO"; then :
  44047. glibcxx_cv_func__modfl_use=yes
  44048. else
  44049. glibcxx_cv_func__modfl_use=no
  44050. fi
  44051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44052. ac_ext=c
  44053. ac_cpp='$CPP $CPPFLAGS'
  44054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44057. fi
  44058. fi
  44059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  44060. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  44061. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  44062. for ac_func in _modfl
  44063. do :
  44064. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  44065. if test "x$ac_cv_func__modfl" = xyes; then :
  44066. cat >>confdefs.h <<_ACEOF
  44067. #define HAVE__MODFL 1
  44068. _ACEOF
  44069. fi
  44070. done
  44071. fi
  44072. fi
  44073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  44074. $as_echo_n "checking for powl declaration... " >&6; }
  44075. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  44076. if ${glibcxx_cv_func_powl_use+:} false; then :
  44077. $as_echo_n "(cached) " >&6
  44078. else
  44079. ac_ext=cpp
  44080. ac_cpp='$CXXCPP $CPPFLAGS'
  44081. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44082. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44083. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44085. /* end confdefs.h. */
  44086. #include <math.h>
  44087. int
  44088. main ()
  44089. {
  44090. powl(0, 0);
  44091. ;
  44092. return 0;
  44093. }
  44094. _ACEOF
  44095. if ac_fn_cxx_try_compile "$LINENO"; then :
  44096. glibcxx_cv_func_powl_use=yes
  44097. else
  44098. glibcxx_cv_func_powl_use=no
  44099. fi
  44100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44101. ac_ext=c
  44102. ac_cpp='$CPP $CPPFLAGS'
  44103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44106. fi
  44107. fi
  44108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  44109. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  44110. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  44111. for ac_func in powl
  44112. do :
  44113. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  44114. if test "x$ac_cv_func_powl" = xyes; then :
  44115. cat >>confdefs.h <<_ACEOF
  44116. #define HAVE_POWL 1
  44117. _ACEOF
  44118. fi
  44119. done
  44120. else
  44121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  44122. $as_echo_n "checking for _powl declaration... " >&6; }
  44123. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  44124. if ${glibcxx_cv_func__powl_use+:} false; then :
  44125. $as_echo_n "(cached) " >&6
  44126. else
  44127. ac_ext=cpp
  44128. ac_cpp='$CXXCPP $CPPFLAGS'
  44129. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44130. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44131. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44133. /* end confdefs.h. */
  44134. #include <math.h>
  44135. int
  44136. main ()
  44137. {
  44138. _powl(0, 0);
  44139. ;
  44140. return 0;
  44141. }
  44142. _ACEOF
  44143. if ac_fn_cxx_try_compile "$LINENO"; then :
  44144. glibcxx_cv_func__powl_use=yes
  44145. else
  44146. glibcxx_cv_func__powl_use=no
  44147. fi
  44148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44149. ac_ext=c
  44150. ac_cpp='$CPP $CPPFLAGS'
  44151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44154. fi
  44155. fi
  44156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  44157. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  44158. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  44159. for ac_func in _powl
  44160. do :
  44161. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  44162. if test "x$ac_cv_func__powl" = xyes; then :
  44163. cat >>confdefs.h <<_ACEOF
  44164. #define HAVE__POWL 1
  44165. _ACEOF
  44166. fi
  44167. done
  44168. fi
  44169. fi
  44170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  44171. $as_echo_n "checking for sqrtl declaration... " >&6; }
  44172. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  44173. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  44174. $as_echo_n "(cached) " >&6
  44175. else
  44176. ac_ext=cpp
  44177. ac_cpp='$CXXCPP $CPPFLAGS'
  44178. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44179. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44180. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44182. /* end confdefs.h. */
  44183. #include <math.h>
  44184. #ifdef HAVE_IEEEFP_H
  44185. #include <ieeefp.h>
  44186. #endif
  44187. int
  44188. main ()
  44189. {
  44190. sqrtl(0);
  44191. ;
  44192. return 0;
  44193. }
  44194. _ACEOF
  44195. if ac_fn_cxx_try_compile "$LINENO"; then :
  44196. glibcxx_cv_func_sqrtl_use=yes
  44197. else
  44198. glibcxx_cv_func_sqrtl_use=no
  44199. fi
  44200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44201. ac_ext=c
  44202. ac_cpp='$CPP $CPPFLAGS'
  44203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44206. fi
  44207. fi
  44208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  44209. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  44210. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  44211. for ac_func in sqrtl
  44212. do :
  44213. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  44214. if test "x$ac_cv_func_sqrtl" = xyes; then :
  44215. cat >>confdefs.h <<_ACEOF
  44216. #define HAVE_SQRTL 1
  44217. _ACEOF
  44218. fi
  44219. done
  44220. else
  44221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  44222. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  44223. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  44224. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  44225. $as_echo_n "(cached) " >&6
  44226. else
  44227. ac_ext=cpp
  44228. ac_cpp='$CXXCPP $CPPFLAGS'
  44229. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44230. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44231. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44233. /* end confdefs.h. */
  44234. #include <math.h>
  44235. #ifdef HAVE_IEEEFP_H
  44236. #include <ieeefp.h>
  44237. #endif
  44238. int
  44239. main ()
  44240. {
  44241. _sqrtl(0);
  44242. ;
  44243. return 0;
  44244. }
  44245. _ACEOF
  44246. if ac_fn_cxx_try_compile "$LINENO"; then :
  44247. glibcxx_cv_func__sqrtl_use=yes
  44248. else
  44249. glibcxx_cv_func__sqrtl_use=no
  44250. fi
  44251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44252. ac_ext=c
  44253. ac_cpp='$CPP $CPPFLAGS'
  44254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44257. fi
  44258. fi
  44259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  44260. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  44261. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  44262. for ac_func in _sqrtl
  44263. do :
  44264. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  44265. if test "x$ac_cv_func__sqrtl" = xyes; then :
  44266. cat >>confdefs.h <<_ACEOF
  44267. #define HAVE__SQRTL 1
  44268. _ACEOF
  44269. fi
  44270. done
  44271. fi
  44272. fi
  44273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  44274. $as_echo_n "checking for sincosl declaration... " >&6; }
  44275. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  44276. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  44277. $as_echo_n "(cached) " >&6
  44278. else
  44279. ac_ext=cpp
  44280. ac_cpp='$CXXCPP $CPPFLAGS'
  44281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44285. /* end confdefs.h. */
  44286. #include <math.h>
  44287. int
  44288. main ()
  44289. {
  44290. sincosl(0, 0, 0);
  44291. ;
  44292. return 0;
  44293. }
  44294. _ACEOF
  44295. if ac_fn_cxx_try_compile "$LINENO"; then :
  44296. glibcxx_cv_func_sincosl_use=yes
  44297. else
  44298. glibcxx_cv_func_sincosl_use=no
  44299. fi
  44300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44301. ac_ext=c
  44302. ac_cpp='$CPP $CPPFLAGS'
  44303. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44304. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44305. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44306. fi
  44307. fi
  44308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  44309. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  44310. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  44311. for ac_func in sincosl
  44312. do :
  44313. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  44314. if test "x$ac_cv_func_sincosl" = xyes; then :
  44315. cat >>confdefs.h <<_ACEOF
  44316. #define HAVE_SINCOSL 1
  44317. _ACEOF
  44318. fi
  44319. done
  44320. else
  44321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  44322. $as_echo_n "checking for _sincosl declaration... " >&6; }
  44323. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  44324. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  44325. $as_echo_n "(cached) " >&6
  44326. else
  44327. ac_ext=cpp
  44328. ac_cpp='$CXXCPP $CPPFLAGS'
  44329. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44330. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44331. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44333. /* end confdefs.h. */
  44334. #include <math.h>
  44335. int
  44336. main ()
  44337. {
  44338. _sincosl(0, 0, 0);
  44339. ;
  44340. return 0;
  44341. }
  44342. _ACEOF
  44343. if ac_fn_cxx_try_compile "$LINENO"; then :
  44344. glibcxx_cv_func__sincosl_use=yes
  44345. else
  44346. glibcxx_cv_func__sincosl_use=no
  44347. fi
  44348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44349. ac_ext=c
  44350. ac_cpp='$CPP $CPPFLAGS'
  44351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44354. fi
  44355. fi
  44356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  44357. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  44358. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  44359. for ac_func in _sincosl
  44360. do :
  44361. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  44362. if test "x$ac_cv_func__sincosl" = xyes; then :
  44363. cat >>confdefs.h <<_ACEOF
  44364. #define HAVE__SINCOSL 1
  44365. _ACEOF
  44366. fi
  44367. done
  44368. fi
  44369. fi
  44370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  44371. $as_echo_n "checking for finitel declaration... " >&6; }
  44372. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  44373. if ${glibcxx_cv_func_finitel_use+:} false; then :
  44374. $as_echo_n "(cached) " >&6
  44375. else
  44376. ac_ext=cpp
  44377. ac_cpp='$CXXCPP $CPPFLAGS'
  44378. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44379. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44380. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44382. /* end confdefs.h. */
  44383. #include <math.h>
  44384. #ifdef HAVE_IEEEFP_H
  44385. #include <ieeefp.h>
  44386. #endif
  44387. int
  44388. main ()
  44389. {
  44390. finitel(0);
  44391. ;
  44392. return 0;
  44393. }
  44394. _ACEOF
  44395. if ac_fn_cxx_try_compile "$LINENO"; then :
  44396. glibcxx_cv_func_finitel_use=yes
  44397. else
  44398. glibcxx_cv_func_finitel_use=no
  44399. fi
  44400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44401. ac_ext=c
  44402. ac_cpp='$CPP $CPPFLAGS'
  44403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44406. fi
  44407. fi
  44408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  44409. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  44410. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  44411. for ac_func in finitel
  44412. do :
  44413. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  44414. if test "x$ac_cv_func_finitel" = xyes; then :
  44415. cat >>confdefs.h <<_ACEOF
  44416. #define HAVE_FINITEL 1
  44417. _ACEOF
  44418. fi
  44419. done
  44420. else
  44421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  44422. $as_echo_n "checking for _finitel declaration... " >&6; }
  44423. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  44424. if ${glibcxx_cv_func__finitel_use+:} false; then :
  44425. $as_echo_n "(cached) " >&6
  44426. else
  44427. ac_ext=cpp
  44428. ac_cpp='$CXXCPP $CPPFLAGS'
  44429. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44430. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44431. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44433. /* end confdefs.h. */
  44434. #include <math.h>
  44435. #ifdef HAVE_IEEEFP_H
  44436. #include <ieeefp.h>
  44437. #endif
  44438. int
  44439. main ()
  44440. {
  44441. _finitel(0);
  44442. ;
  44443. return 0;
  44444. }
  44445. _ACEOF
  44446. if ac_fn_cxx_try_compile "$LINENO"; then :
  44447. glibcxx_cv_func__finitel_use=yes
  44448. else
  44449. glibcxx_cv_func__finitel_use=no
  44450. fi
  44451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44452. ac_ext=c
  44453. ac_cpp='$CPP $CPPFLAGS'
  44454. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44455. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44456. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44457. fi
  44458. fi
  44459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  44460. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  44461. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  44462. for ac_func in _finitel
  44463. do :
  44464. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  44465. if test "x$ac_cv_func__finitel" = xyes; then :
  44466. cat >>confdefs.h <<_ACEOF
  44467. #define HAVE__FINITEL 1
  44468. _ACEOF
  44469. fi
  44470. done
  44471. fi
  44472. fi
  44473. LIBS="$ac_save_LIBS"
  44474. CXXFLAGS="$ac_save_CXXFLAGS"
  44475. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  44476. ac_save_CXXFLAGS="$CXXFLAGS"
  44477. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  44478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  44479. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  44480. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  44481. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  44482. $as_echo_n "(cached) " >&6
  44483. else
  44484. ac_ext=cpp
  44485. ac_cpp='$CXXCPP $CPPFLAGS'
  44486. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44487. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44488. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44490. /* end confdefs.h. */
  44491. #include <stdlib.h>
  44492. int
  44493. main ()
  44494. {
  44495. at_quick_exit(0);
  44496. ;
  44497. return 0;
  44498. }
  44499. _ACEOF
  44500. if ac_fn_cxx_try_compile "$LINENO"; then :
  44501. glibcxx_cv_func_at_quick_exit_use=yes
  44502. else
  44503. glibcxx_cv_func_at_quick_exit_use=no
  44504. fi
  44505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44506. ac_ext=c
  44507. ac_cpp='$CPP $CPPFLAGS'
  44508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44511. fi
  44512. fi
  44513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  44514. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  44515. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  44516. for ac_func in at_quick_exit
  44517. do :
  44518. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  44519. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  44520. cat >>confdefs.h <<_ACEOF
  44521. #define HAVE_AT_QUICK_EXIT 1
  44522. _ACEOF
  44523. fi
  44524. done
  44525. fi
  44526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  44527. $as_echo_n "checking for quick_exit declaration... " >&6; }
  44528. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  44529. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  44530. $as_echo_n "(cached) " >&6
  44531. else
  44532. ac_ext=cpp
  44533. ac_cpp='$CXXCPP $CPPFLAGS'
  44534. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44535. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44536. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44538. /* end confdefs.h. */
  44539. #include <stdlib.h>
  44540. int
  44541. main ()
  44542. {
  44543. quick_exit(0);
  44544. ;
  44545. return 0;
  44546. }
  44547. _ACEOF
  44548. if ac_fn_cxx_try_compile "$LINENO"; then :
  44549. glibcxx_cv_func_quick_exit_use=yes
  44550. else
  44551. glibcxx_cv_func_quick_exit_use=no
  44552. fi
  44553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44554. ac_ext=c
  44555. ac_cpp='$CPP $CPPFLAGS'
  44556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44559. fi
  44560. fi
  44561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  44562. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  44563. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  44564. for ac_func in quick_exit
  44565. do :
  44566. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  44567. if test "x$ac_cv_func_quick_exit" = xyes; then :
  44568. cat >>confdefs.h <<_ACEOF
  44569. #define HAVE_QUICK_EXIT 1
  44570. _ACEOF
  44571. fi
  44572. done
  44573. fi
  44574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  44575. $as_echo_n "checking for strtold declaration... " >&6; }
  44576. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  44577. if ${glibcxx_cv_func_strtold_use+:} false; then :
  44578. $as_echo_n "(cached) " >&6
  44579. else
  44580. ac_ext=cpp
  44581. ac_cpp='$CXXCPP $CPPFLAGS'
  44582. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44583. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44584. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44586. /* end confdefs.h. */
  44587. #include <stdlib.h>
  44588. int
  44589. main ()
  44590. {
  44591. strtold(0, 0);
  44592. ;
  44593. return 0;
  44594. }
  44595. _ACEOF
  44596. if ac_fn_cxx_try_compile "$LINENO"; then :
  44597. glibcxx_cv_func_strtold_use=yes
  44598. else
  44599. glibcxx_cv_func_strtold_use=no
  44600. fi
  44601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44602. ac_ext=c
  44603. ac_cpp='$CPP $CPPFLAGS'
  44604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44607. fi
  44608. fi
  44609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  44610. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  44611. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  44612. for ac_func in strtold
  44613. do :
  44614. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  44615. if test "x$ac_cv_func_strtold" = xyes; then :
  44616. cat >>confdefs.h <<_ACEOF
  44617. #define HAVE_STRTOLD 1
  44618. _ACEOF
  44619. fi
  44620. done
  44621. fi
  44622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  44623. $as_echo_n "checking for strtof declaration... " >&6; }
  44624. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  44625. if ${glibcxx_cv_func_strtof_use+:} false; then :
  44626. $as_echo_n "(cached) " >&6
  44627. else
  44628. ac_ext=cpp
  44629. ac_cpp='$CXXCPP $CPPFLAGS'
  44630. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44631. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44632. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  44633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44634. /* end confdefs.h. */
  44635. #include <stdlib.h>
  44636. int
  44637. main ()
  44638. {
  44639. strtof(0, 0);
  44640. ;
  44641. return 0;
  44642. }
  44643. _ACEOF
  44644. if ac_fn_cxx_try_compile "$LINENO"; then :
  44645. glibcxx_cv_func_strtof_use=yes
  44646. else
  44647. glibcxx_cv_func_strtof_use=no
  44648. fi
  44649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  44650. ac_ext=c
  44651. ac_cpp='$CPP $CPPFLAGS'
  44652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  44653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  44654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  44655. fi
  44656. fi
  44657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  44658. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  44659. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  44660. for ac_func in strtof
  44661. do :
  44662. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  44663. if test "x$ac_cv_func_strtof" = xyes; then :
  44664. cat >>confdefs.h <<_ACEOF
  44665. #define HAVE_STRTOF 1
  44666. _ACEOF
  44667. fi
  44668. done
  44669. fi
  44670. CXXFLAGS="$ac_save_CXXFLAGS"
  44671. $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
  44672. $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
  44673. # Check whether --enable-tls was given.
  44674. if test "${enable_tls+set}" = set; then :
  44675. enableval=$enable_tls;
  44676. case "$enableval" in
  44677. yes|no) ;;
  44678. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  44679. esac
  44680. else
  44681. enable_tls=yes
  44682. fi
  44683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  44684. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  44685. if ${gcc_cv_have_tls+:} false; then :
  44686. $as_echo_n "(cached) " >&6
  44687. else
  44688. if test "$cross_compiling" = yes; then :
  44689. if test x$gcc_no_link = xyes; then
  44690. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44691. fi
  44692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44693. /* end confdefs.h. */
  44694. __thread int a; int b; int main() { return a = b; }
  44695. _ACEOF
  44696. if ac_fn_c_try_link "$LINENO"; then :
  44697. chktls_save_LDFLAGS="$LDFLAGS"
  44698. case $host in
  44699. *-*-linux* | -*-uclinuxfdpic*)
  44700. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  44701. ;;
  44702. esac
  44703. chktls_save_CFLAGS="$CFLAGS"
  44704. CFLAGS="-fPIC $CFLAGS"
  44705. if test x$gcc_no_link = xyes; then
  44706. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44707. fi
  44708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44709. /* end confdefs.h. */
  44710. int f() { return 0; }
  44711. _ACEOF
  44712. if ac_fn_c_try_link "$LINENO"; then :
  44713. if test x$gcc_no_link = xyes; then
  44714. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44715. fi
  44716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44717. /* end confdefs.h. */
  44718. __thread int a; int b; int f() { return a = b; }
  44719. _ACEOF
  44720. if ac_fn_c_try_link "$LINENO"; then :
  44721. gcc_cv_have_tls=yes
  44722. else
  44723. gcc_cv_have_tls=no
  44724. fi
  44725. rm -f core conftest.err conftest.$ac_objext \
  44726. conftest$ac_exeext conftest.$ac_ext
  44727. else
  44728. gcc_cv_have_tls=yes
  44729. fi
  44730. rm -f core conftest.err conftest.$ac_objext \
  44731. conftest$ac_exeext conftest.$ac_ext
  44732. CFLAGS="$chktls_save_CFLAGS"
  44733. LDFLAGS="$chktls_save_LDFLAGS"
  44734. else
  44735. gcc_cv_have_tls=no
  44736. fi
  44737. rm -f core conftest.err conftest.$ac_objext \
  44738. conftest$ac_exeext conftest.$ac_ext
  44739. else
  44740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44741. /* end confdefs.h. */
  44742. __thread int a; int b; int main() { return a = b; }
  44743. _ACEOF
  44744. if ac_fn_c_try_run "$LINENO"; then :
  44745. chktls_save_LDFLAGS="$LDFLAGS"
  44746. LDFLAGS="-static $LDFLAGS"
  44747. if test x$gcc_no_link = xyes; then
  44748. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44749. fi
  44750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44751. /* end confdefs.h. */
  44752. int main() { return 0; }
  44753. _ACEOF
  44754. if ac_fn_c_try_link "$LINENO"; then :
  44755. if test "$cross_compiling" = yes; then :
  44756. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44758. as_fn_error $? "cannot run test program while cross compiling
  44759. See \`config.log' for more details" "$LINENO" 5; }
  44760. else
  44761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44762. /* end confdefs.h. */
  44763. __thread int a; int b; int main() { return a = b; }
  44764. _ACEOF
  44765. if ac_fn_c_try_run "$LINENO"; then :
  44766. gcc_cv_have_tls=yes
  44767. else
  44768. gcc_cv_have_tls=no
  44769. fi
  44770. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44771. conftest.$ac_objext conftest.beam conftest.$ac_ext
  44772. fi
  44773. else
  44774. gcc_cv_have_tls=yes
  44775. fi
  44776. rm -f core conftest.err conftest.$ac_objext \
  44777. conftest$ac_exeext conftest.$ac_ext
  44778. LDFLAGS="$chktls_save_LDFLAGS"
  44779. if test $gcc_cv_have_tls = yes; then
  44780. chktls_save_CFLAGS="$CFLAGS"
  44781. thread_CFLAGS=failed
  44782. for flag in '' '-pthread' '-lpthread'; do
  44783. CFLAGS="$flag $chktls_save_CFLAGS"
  44784. if test x$gcc_no_link = xyes; then
  44785. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44786. fi
  44787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44788. /* end confdefs.h. */
  44789. #include <pthread.h>
  44790. void *g(void *d) { return NULL; }
  44791. int
  44792. main ()
  44793. {
  44794. pthread_t t; pthread_create(&t,NULL,g,NULL);
  44795. ;
  44796. return 0;
  44797. }
  44798. _ACEOF
  44799. if ac_fn_c_try_link "$LINENO"; then :
  44800. thread_CFLAGS="$flag"
  44801. fi
  44802. rm -f core conftest.err conftest.$ac_objext \
  44803. conftest$ac_exeext conftest.$ac_ext
  44804. if test "X$thread_CFLAGS" != Xfailed; then
  44805. break
  44806. fi
  44807. done
  44808. CFLAGS="$chktls_save_CFLAGS"
  44809. if test "X$thread_CFLAGS" != Xfailed; then
  44810. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  44811. if test "$cross_compiling" = yes; then :
  44812. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  44813. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  44814. as_fn_error $? "cannot run test program while cross compiling
  44815. See \`config.log' for more details" "$LINENO" 5; }
  44816. else
  44817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44818. /* end confdefs.h. */
  44819. #include <pthread.h>
  44820. __thread int a;
  44821. static int *volatile a_in_other_thread;
  44822. static void *
  44823. thread_func (void *arg)
  44824. {
  44825. a_in_other_thread = &a;
  44826. return (void *)0;
  44827. }
  44828. int
  44829. main ()
  44830. {
  44831. pthread_t thread;
  44832. void *thread_retval;
  44833. int *volatile a_in_main_thread;
  44834. a_in_main_thread = &a;
  44835. if (pthread_create (&thread, (pthread_attr_t *)0,
  44836. thread_func, (void *)0))
  44837. return 0;
  44838. if (pthread_join (thread, &thread_retval))
  44839. return 0;
  44840. return (a_in_other_thread == a_in_main_thread);
  44841. ;
  44842. return 0;
  44843. }
  44844. _ACEOF
  44845. if ac_fn_c_try_run "$LINENO"; then :
  44846. gcc_cv_have_tls=yes
  44847. else
  44848. gcc_cv_have_tls=no
  44849. fi
  44850. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44851. conftest.$ac_objext conftest.beam conftest.$ac_ext
  44852. fi
  44853. CFLAGS="$chktls_save_CFLAGS"
  44854. fi
  44855. fi
  44856. else
  44857. gcc_cv_have_tls=no
  44858. fi
  44859. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  44860. conftest.$ac_objext conftest.beam conftest.$ac_ext
  44861. fi
  44862. fi
  44863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  44864. $as_echo "$gcc_cv_have_tls" >&6; }
  44865. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  44866. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  44867. fi
  44868. for ac_func in __cxa_thread_atexit_impl
  44869. do :
  44870. ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit_impl" "ac_cv_func___cxa_thread_atexit_impl"
  44871. if test "x$ac_cv_func___cxa_thread_atexit_impl" = xyes; then :
  44872. cat >>confdefs.h <<_ACEOF
  44873. #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
  44874. _ACEOF
  44875. fi
  44876. done
  44877. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  44878. do :
  44879. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44880. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  44881. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  44882. cat >>confdefs.h <<_ACEOF
  44883. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44884. _ACEOF
  44885. fi
  44886. done
  44887. for ac_func in timespec_get
  44888. do :
  44889. ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
  44890. if test "x$ac_cv_func_timespec_get" = xyes; then :
  44891. cat >>confdefs.h <<_ACEOF
  44892. #define HAVE_TIMESPEC_GET 1
  44893. _ACEOF
  44894. fi
  44895. done
  44896. for ac_func in sockatmark
  44897. do :
  44898. ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
  44899. if test "x$ac_cv_func_sockatmark" = xyes; then :
  44900. cat >>confdefs.h <<_ACEOF
  44901. #define HAVE_SOCKATMARK 1
  44902. _ACEOF
  44903. fi
  44904. done
  44905. for ac_func in uselocale
  44906. do :
  44907. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  44908. if test "x$ac_cv_func_uselocale" = xyes; then :
  44909. cat >>confdefs.h <<_ACEOF
  44910. #define HAVE_USELOCALE 1
  44911. _ACEOF
  44912. fi
  44913. done
  44914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  44915. $as_echo_n "checking for iconv... " >&6; }
  44916. if ${am_cv_func_iconv+:} false; then :
  44917. $as_echo_n "(cached) " >&6
  44918. else
  44919. am_cv_func_iconv="no, consider installing GNU libiconv"
  44920. am_cv_lib_iconv=no
  44921. am_save_CPPFLAGS="$CPPFLAGS"
  44922. CPPFLAGS="$CPPFLAGS $INCICONV"
  44923. if test x$gcc_no_link = xyes; then
  44924. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44925. fi
  44926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44927. /* end confdefs.h. */
  44928. #include <stdlib.h>
  44929. #include <iconv.h>
  44930. int
  44931. main ()
  44932. {
  44933. iconv_t cd = iconv_open("","");
  44934. iconv(cd,NULL,NULL,NULL,NULL);
  44935. iconv_close(cd);
  44936. ;
  44937. return 0;
  44938. }
  44939. _ACEOF
  44940. if ac_fn_c_try_link "$LINENO"; then :
  44941. am_cv_func_iconv=yes
  44942. fi
  44943. rm -f core conftest.err conftest.$ac_objext \
  44944. conftest$ac_exeext conftest.$ac_ext
  44945. CPPFLAGS="$am_save_CPPFLAGS"
  44946. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  44947. for _libs in .libs _libs; do
  44948. am_save_CPPFLAGS="$CPPFLAGS"
  44949. am_save_LIBS="$LIBS"
  44950. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  44951. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  44952. if test x$gcc_no_link = xyes; then
  44953. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44954. fi
  44955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44956. /* end confdefs.h. */
  44957. #include <stdlib.h>
  44958. #include <iconv.h>
  44959. int
  44960. main ()
  44961. {
  44962. iconv_t cd = iconv_open("","");
  44963. iconv(cd,NULL,NULL,NULL,NULL);
  44964. iconv_close(cd);
  44965. ;
  44966. return 0;
  44967. }
  44968. _ACEOF
  44969. if ac_fn_c_try_link "$LINENO"; then :
  44970. INCICONV="-I../libiconv/include"
  44971. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  44972. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  44973. am_cv_lib_iconv=yes
  44974. am_cv_func_iconv=yes
  44975. fi
  44976. rm -f core conftest.err conftest.$ac_objext \
  44977. conftest$ac_exeext conftest.$ac_ext
  44978. CPPFLAGS="$am_save_CPPFLAGS"
  44979. LIBS="$am_save_LIBS"
  44980. if test "$am_cv_func_iconv" = "yes"; then
  44981. break
  44982. fi
  44983. done
  44984. fi
  44985. if test "$am_cv_func_iconv" != yes; then
  44986. am_save_CPPFLAGS="$CPPFLAGS"
  44987. am_save_LIBS="$LIBS"
  44988. CPPFLAGS="$CPPFLAGS $INCICONV"
  44989. LIBS="$LIBS $LIBICONV"
  44990. if test x$gcc_no_link = xyes; then
  44991. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  44992. fi
  44993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  44994. /* end confdefs.h. */
  44995. #include <stdlib.h>
  44996. #include <iconv.h>
  44997. int
  44998. main ()
  44999. {
  45000. iconv_t cd = iconv_open("","");
  45001. iconv(cd,NULL,NULL,NULL,NULL);
  45002. iconv_close(cd);
  45003. ;
  45004. return 0;
  45005. }
  45006. _ACEOF
  45007. if ac_fn_c_try_link "$LINENO"; then :
  45008. am_cv_lib_iconv=yes
  45009. am_cv_func_iconv=yes
  45010. fi
  45011. rm -f core conftest.err conftest.$ac_objext \
  45012. conftest$ac_exeext conftest.$ac_ext
  45013. CPPFLAGS="$am_save_CPPFLAGS"
  45014. LIBS="$am_save_LIBS"
  45015. fi
  45016. fi
  45017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  45018. $as_echo "$am_cv_func_iconv" >&6; }
  45019. if test "$am_cv_func_iconv" = yes; then
  45020. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  45021. fi
  45022. if test "$am_cv_lib_iconv" = yes; then
  45023. for element in $INCICONV; do
  45024. haveit=
  45025. for x in $CPPFLAGS; do
  45026. acl_save_prefix="$prefix"
  45027. prefix="$acl_final_prefix"
  45028. acl_save_exec_prefix="$exec_prefix"
  45029. exec_prefix="$acl_final_exec_prefix"
  45030. eval x=\"$x\"
  45031. exec_prefix="$acl_save_exec_prefix"
  45032. prefix="$acl_save_prefix"
  45033. if test "X$x" = "X$element"; then
  45034. haveit=yes
  45035. break
  45036. fi
  45037. done
  45038. if test -z "$haveit"; then
  45039. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  45040. fi
  45041. done
  45042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  45043. $as_echo_n "checking how to link with libiconv... " >&6; }
  45044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  45045. $as_echo "$LIBICONV" >&6; }
  45046. else
  45047. LIBICONV=
  45048. LTLIBICONV=
  45049. fi
  45050. if test "$am_cv_func_iconv" = yes; then
  45051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  45052. $as_echo_n "checking for iconv declaration... " >&6; }
  45053. if ${am_cv_proto_iconv+:} false; then :
  45054. $as_echo_n "(cached) " >&6
  45055. else
  45056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45057. /* end confdefs.h. */
  45058. #include <stdlib.h>
  45059. #include <iconv.h>
  45060. extern
  45061. #ifdef __cplusplus
  45062. "C"
  45063. #endif
  45064. #if defined(__STDC__) || defined(__cplusplus)
  45065. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  45066. #else
  45067. size_t iconv();
  45068. #endif
  45069. int
  45070. main ()
  45071. {
  45072. ;
  45073. return 0;
  45074. }
  45075. _ACEOF
  45076. if ac_fn_c_try_compile "$LINENO"; then :
  45077. am_cv_proto_iconv_arg1=""
  45078. else
  45079. am_cv_proto_iconv_arg1="const"
  45080. fi
  45081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45082. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  45083. fi
  45084. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  45085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  45086. }$am_cv_proto_iconv" >&5
  45087. $as_echo "${ac_t:-
  45088. }$am_cv_proto_iconv" >&6; }
  45089. cat >>confdefs.h <<_ACEOF
  45090. #define ICONV_CONST $am_cv_proto_iconv_arg1
  45091. _ACEOF
  45092. fi
  45093. ;;
  45094. *-mingw32*)
  45095. # If we're not using GNU ld, then there's no point in even trying these
  45096. # tests. Check for that first. We should have already tested for gld
  45097. # by now (in libtool), but require it now just to be safe...
  45098. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  45099. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  45100. # The name set by libtool depends on the version of libtool. Shame on us
  45101. # for depending on an impl detail, but c'est la vie. Older versions used
  45102. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  45103. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  45104. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  45105. # set (hence we're using an older libtool), then set it.
  45106. if test x${with_gnu_ld+set} != xset; then
  45107. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  45108. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  45109. with_gnu_ld=no
  45110. else
  45111. with_gnu_ld=$ac_cv_prog_gnu_ld
  45112. fi
  45113. fi
  45114. # Start by getting the version number. I think the libtool test already
  45115. # does some of this, but throws away the result.
  45116. glibcxx_ld_is_gold=no
  45117. glibcxx_ld_is_mold=no
  45118. if test x"$with_gnu_ld" = x"yes"; then
  45119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  45120. $as_echo_n "checking for ld version... " >&6; }
  45121. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  45122. glibcxx_ld_is_gold=yes
  45123. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  45124. glibcxx_ld_is_mold=yes
  45125. fi
  45126. ldver=`$LD --version 2>/dev/null |
  45127. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  45128. glibcxx_gnu_ld_version=`echo $ldver | \
  45129. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  45130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  45131. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  45132. fi
  45133. # Set --gc-sections.
  45134. glibcxx_have_gc_sections=no
  45135. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  45136. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  45137. glibcxx_have_gc_sections=yes
  45138. fi
  45139. else
  45140. glibcxx_gcsections_min_ld=21602
  45141. if test x"$with_gnu_ld" = x"yes" &&
  45142. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  45143. glibcxx_have_gc_sections=yes
  45144. fi
  45145. fi
  45146. if test "$glibcxx_have_gc_sections" = "yes"; then
  45147. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  45148. # NB: This flag only works reliably after 2.16.1. Configure tests
  45149. # for this are difficult, so hard wire a value that should work.
  45150. ac_test_CFLAGS="${CFLAGS+set}"
  45151. ac_save_CFLAGS="$CFLAGS"
  45152. CFLAGS='-Wl,--gc-sections'
  45153. # Check for -Wl,--gc-sections
  45154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  45155. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  45156. if test x$gcc_no_link = xyes; then
  45157. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  45158. fi
  45159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45160. /* end confdefs.h. */
  45161. int one(void) { return 1; }
  45162. int two(void) { return 2; }
  45163. int
  45164. main ()
  45165. {
  45166. two();
  45167. ;
  45168. return 0;
  45169. }
  45170. _ACEOF
  45171. if ac_fn_c_try_link "$LINENO"; then :
  45172. ac_gcsections=yes
  45173. else
  45174. ac_gcsections=no
  45175. fi
  45176. rm -f core conftest.err conftest.$ac_objext \
  45177. conftest$ac_exeext conftest.$ac_ext
  45178. if test "$ac_gcsections" = "yes"; then
  45179. rm -f conftest.c
  45180. touch conftest.c
  45181. if $CC -c conftest.c; then
  45182. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  45183. grep "Warning: gc-sections option ignored" > /dev/null; then
  45184. ac_gcsections=no
  45185. fi
  45186. fi
  45187. rm -f conftest.c conftest.o conftest
  45188. fi
  45189. if test "$ac_gcsections" = "yes"; then
  45190. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  45191. fi
  45192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  45193. $as_echo "$ac_gcsections" >&6; }
  45194. if test "$ac_test_CFLAGS" = set; then
  45195. CFLAGS="$ac_save_CFLAGS"
  45196. else
  45197. # this is the suspicious part
  45198. CFLAGS=''
  45199. fi
  45200. fi
  45201. # Set -z,relro.
  45202. # Note this is only for shared objects.
  45203. ac_ld_relro=no
  45204. if test x"$with_gnu_ld" = x"yes"; then
  45205. # cygwin and mingw uses PE, which has no ELF relro support,
  45206. # multi target ld may confuse configure machinery
  45207. case "$host" in
  45208. *-*-cygwin*)
  45209. ;;
  45210. *-*-mingw*)
  45211. ;;
  45212. *)
  45213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  45214. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  45215. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  45216. if test -n "$cxx_z_relo"; then
  45217. OPT_LDFLAGS="-Wl,-z,relro"
  45218. ac_ld_relro=yes
  45219. fi
  45220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  45221. $as_echo "$ac_ld_relro" >&6; }
  45222. esac
  45223. fi
  45224. # Set linker optimization flags.
  45225. if test x"$with_gnu_ld" = x"yes"; then
  45226. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  45227. fi
  45228. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  45229. ac_save_CXXFLAGS="$CXXFLAGS"
  45230. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  45231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  45232. $as_echo_n "checking for sin in -lm... " >&6; }
  45233. if ${ac_cv_lib_m_sin+:} false; then :
  45234. $as_echo_n "(cached) " >&6
  45235. else
  45236. ac_check_lib_save_LIBS=$LIBS
  45237. LIBS="-lm $LIBS"
  45238. if test x$gcc_no_link = xyes; then
  45239. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  45240. fi
  45241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45242. /* end confdefs.h. */
  45243. /* Override any GCC internal prototype to avoid an error.
  45244. Use char because int might match the return type of a GCC
  45245. builtin and then its argument prototype would still apply. */
  45246. #ifdef __cplusplus
  45247. extern "C"
  45248. #endif
  45249. char sin ();
  45250. int
  45251. main ()
  45252. {
  45253. return sin ();
  45254. ;
  45255. return 0;
  45256. }
  45257. _ACEOF
  45258. if ac_fn_c_try_link "$LINENO"; then :
  45259. ac_cv_lib_m_sin=yes
  45260. else
  45261. ac_cv_lib_m_sin=no
  45262. fi
  45263. rm -f core conftest.err conftest.$ac_objext \
  45264. conftest$ac_exeext conftest.$ac_ext
  45265. LIBS=$ac_check_lib_save_LIBS
  45266. fi
  45267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  45268. $as_echo "$ac_cv_lib_m_sin" >&6; }
  45269. if test "x$ac_cv_lib_m_sin" = xyes; then :
  45270. libm="-lm"
  45271. fi
  45272. ac_save_LIBS="$LIBS"
  45273. LIBS="$LIBS $libm"
  45274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  45275. $as_echo_n "checking for isinf declaration... " >&6; }
  45276. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  45277. if ${glibcxx_cv_func_isinf_use+:} false; then :
  45278. $as_echo_n "(cached) " >&6
  45279. else
  45280. ac_ext=cpp
  45281. ac_cpp='$CXXCPP $CPPFLAGS'
  45282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45286. /* end confdefs.h. */
  45287. #include <math.h>
  45288. #ifdef HAVE_IEEEFP_H
  45289. #include <ieeefp.h>
  45290. #endif
  45291. int
  45292. main ()
  45293. {
  45294. isinf(0);
  45295. ;
  45296. return 0;
  45297. }
  45298. _ACEOF
  45299. if ac_fn_cxx_try_compile "$LINENO"; then :
  45300. glibcxx_cv_func_isinf_use=yes
  45301. else
  45302. glibcxx_cv_func_isinf_use=no
  45303. fi
  45304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45305. ac_ext=c
  45306. ac_cpp='$CPP $CPPFLAGS'
  45307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45310. fi
  45311. fi
  45312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  45313. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  45314. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  45315. for ac_func in isinf
  45316. do :
  45317. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  45318. if test "x$ac_cv_func_isinf" = xyes; then :
  45319. cat >>confdefs.h <<_ACEOF
  45320. #define HAVE_ISINF 1
  45321. _ACEOF
  45322. fi
  45323. done
  45324. else
  45325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  45326. $as_echo_n "checking for _isinf declaration... " >&6; }
  45327. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  45328. if ${glibcxx_cv_func__isinf_use+:} false; then :
  45329. $as_echo_n "(cached) " >&6
  45330. else
  45331. ac_ext=cpp
  45332. ac_cpp='$CXXCPP $CPPFLAGS'
  45333. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45334. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45335. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45337. /* end confdefs.h. */
  45338. #include <math.h>
  45339. #ifdef HAVE_IEEEFP_H
  45340. #include <ieeefp.h>
  45341. #endif
  45342. int
  45343. main ()
  45344. {
  45345. _isinf(0);
  45346. ;
  45347. return 0;
  45348. }
  45349. _ACEOF
  45350. if ac_fn_cxx_try_compile "$LINENO"; then :
  45351. glibcxx_cv_func__isinf_use=yes
  45352. else
  45353. glibcxx_cv_func__isinf_use=no
  45354. fi
  45355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45356. ac_ext=c
  45357. ac_cpp='$CPP $CPPFLAGS'
  45358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45361. fi
  45362. fi
  45363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  45364. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  45365. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  45366. for ac_func in _isinf
  45367. do :
  45368. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  45369. if test "x$ac_cv_func__isinf" = xyes; then :
  45370. cat >>confdefs.h <<_ACEOF
  45371. #define HAVE__ISINF 1
  45372. _ACEOF
  45373. fi
  45374. done
  45375. fi
  45376. fi
  45377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  45378. $as_echo_n "checking for isnan declaration... " >&6; }
  45379. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  45380. if ${glibcxx_cv_func_isnan_use+:} false; then :
  45381. $as_echo_n "(cached) " >&6
  45382. else
  45383. ac_ext=cpp
  45384. ac_cpp='$CXXCPP $CPPFLAGS'
  45385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45389. /* end confdefs.h. */
  45390. #include <math.h>
  45391. #ifdef HAVE_IEEEFP_H
  45392. #include <ieeefp.h>
  45393. #endif
  45394. int
  45395. main ()
  45396. {
  45397. isnan(0);
  45398. ;
  45399. return 0;
  45400. }
  45401. _ACEOF
  45402. if ac_fn_cxx_try_compile "$LINENO"; then :
  45403. glibcxx_cv_func_isnan_use=yes
  45404. else
  45405. glibcxx_cv_func_isnan_use=no
  45406. fi
  45407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45408. ac_ext=c
  45409. ac_cpp='$CPP $CPPFLAGS'
  45410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45413. fi
  45414. fi
  45415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  45416. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  45417. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  45418. for ac_func in isnan
  45419. do :
  45420. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  45421. if test "x$ac_cv_func_isnan" = xyes; then :
  45422. cat >>confdefs.h <<_ACEOF
  45423. #define HAVE_ISNAN 1
  45424. _ACEOF
  45425. fi
  45426. done
  45427. else
  45428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  45429. $as_echo_n "checking for _isnan declaration... " >&6; }
  45430. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  45431. if ${glibcxx_cv_func__isnan_use+:} false; then :
  45432. $as_echo_n "(cached) " >&6
  45433. else
  45434. ac_ext=cpp
  45435. ac_cpp='$CXXCPP $CPPFLAGS'
  45436. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45437. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45438. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45440. /* end confdefs.h. */
  45441. #include <math.h>
  45442. #ifdef HAVE_IEEEFP_H
  45443. #include <ieeefp.h>
  45444. #endif
  45445. int
  45446. main ()
  45447. {
  45448. _isnan(0);
  45449. ;
  45450. return 0;
  45451. }
  45452. _ACEOF
  45453. if ac_fn_cxx_try_compile "$LINENO"; then :
  45454. glibcxx_cv_func__isnan_use=yes
  45455. else
  45456. glibcxx_cv_func__isnan_use=no
  45457. fi
  45458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45459. ac_ext=c
  45460. ac_cpp='$CPP $CPPFLAGS'
  45461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45464. fi
  45465. fi
  45466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  45467. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  45468. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  45469. for ac_func in _isnan
  45470. do :
  45471. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  45472. if test "x$ac_cv_func__isnan" = xyes; then :
  45473. cat >>confdefs.h <<_ACEOF
  45474. #define HAVE__ISNAN 1
  45475. _ACEOF
  45476. fi
  45477. done
  45478. fi
  45479. fi
  45480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  45481. $as_echo_n "checking for finite declaration... " >&6; }
  45482. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  45483. if ${glibcxx_cv_func_finite_use+:} false; then :
  45484. $as_echo_n "(cached) " >&6
  45485. else
  45486. ac_ext=cpp
  45487. ac_cpp='$CXXCPP $CPPFLAGS'
  45488. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45489. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45490. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45492. /* end confdefs.h. */
  45493. #include <math.h>
  45494. #ifdef HAVE_IEEEFP_H
  45495. #include <ieeefp.h>
  45496. #endif
  45497. int
  45498. main ()
  45499. {
  45500. finite(0);
  45501. ;
  45502. return 0;
  45503. }
  45504. _ACEOF
  45505. if ac_fn_cxx_try_compile "$LINENO"; then :
  45506. glibcxx_cv_func_finite_use=yes
  45507. else
  45508. glibcxx_cv_func_finite_use=no
  45509. fi
  45510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45511. ac_ext=c
  45512. ac_cpp='$CPP $CPPFLAGS'
  45513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45516. fi
  45517. fi
  45518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  45519. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  45520. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  45521. for ac_func in finite
  45522. do :
  45523. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  45524. if test "x$ac_cv_func_finite" = xyes; then :
  45525. cat >>confdefs.h <<_ACEOF
  45526. #define HAVE_FINITE 1
  45527. _ACEOF
  45528. fi
  45529. done
  45530. else
  45531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  45532. $as_echo_n "checking for _finite declaration... " >&6; }
  45533. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  45534. if ${glibcxx_cv_func__finite_use+:} false; then :
  45535. $as_echo_n "(cached) " >&6
  45536. else
  45537. ac_ext=cpp
  45538. ac_cpp='$CXXCPP $CPPFLAGS'
  45539. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45540. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45541. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45543. /* end confdefs.h. */
  45544. #include <math.h>
  45545. #ifdef HAVE_IEEEFP_H
  45546. #include <ieeefp.h>
  45547. #endif
  45548. int
  45549. main ()
  45550. {
  45551. _finite(0);
  45552. ;
  45553. return 0;
  45554. }
  45555. _ACEOF
  45556. if ac_fn_cxx_try_compile "$LINENO"; then :
  45557. glibcxx_cv_func__finite_use=yes
  45558. else
  45559. glibcxx_cv_func__finite_use=no
  45560. fi
  45561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45562. ac_ext=c
  45563. ac_cpp='$CPP $CPPFLAGS'
  45564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45567. fi
  45568. fi
  45569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  45570. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  45571. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  45572. for ac_func in _finite
  45573. do :
  45574. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  45575. if test "x$ac_cv_func__finite" = xyes; then :
  45576. cat >>confdefs.h <<_ACEOF
  45577. #define HAVE__FINITE 1
  45578. _ACEOF
  45579. fi
  45580. done
  45581. fi
  45582. fi
  45583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  45584. $as_echo_n "checking for sincos declaration... " >&6; }
  45585. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  45586. if ${glibcxx_cv_func_sincos_use+:} false; then :
  45587. $as_echo_n "(cached) " >&6
  45588. else
  45589. ac_ext=cpp
  45590. ac_cpp='$CXXCPP $CPPFLAGS'
  45591. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45592. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45593. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45595. /* end confdefs.h. */
  45596. #include <math.h>
  45597. int
  45598. main ()
  45599. {
  45600. sincos(0, 0, 0);
  45601. ;
  45602. return 0;
  45603. }
  45604. _ACEOF
  45605. if ac_fn_cxx_try_compile "$LINENO"; then :
  45606. glibcxx_cv_func_sincos_use=yes
  45607. else
  45608. glibcxx_cv_func_sincos_use=no
  45609. fi
  45610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45611. ac_ext=c
  45612. ac_cpp='$CPP $CPPFLAGS'
  45613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45616. fi
  45617. fi
  45618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  45619. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  45620. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  45621. for ac_func in sincos
  45622. do :
  45623. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  45624. if test "x$ac_cv_func_sincos" = xyes; then :
  45625. cat >>confdefs.h <<_ACEOF
  45626. #define HAVE_SINCOS 1
  45627. _ACEOF
  45628. fi
  45629. done
  45630. else
  45631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  45632. $as_echo_n "checking for _sincos declaration... " >&6; }
  45633. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  45634. if ${glibcxx_cv_func__sincos_use+:} false; then :
  45635. $as_echo_n "(cached) " >&6
  45636. else
  45637. ac_ext=cpp
  45638. ac_cpp='$CXXCPP $CPPFLAGS'
  45639. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45640. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45641. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45643. /* end confdefs.h. */
  45644. #include <math.h>
  45645. int
  45646. main ()
  45647. {
  45648. _sincos(0, 0, 0);
  45649. ;
  45650. return 0;
  45651. }
  45652. _ACEOF
  45653. if ac_fn_cxx_try_compile "$LINENO"; then :
  45654. glibcxx_cv_func__sincos_use=yes
  45655. else
  45656. glibcxx_cv_func__sincos_use=no
  45657. fi
  45658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45659. ac_ext=c
  45660. ac_cpp='$CPP $CPPFLAGS'
  45661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45664. fi
  45665. fi
  45666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  45667. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  45668. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  45669. for ac_func in _sincos
  45670. do :
  45671. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  45672. if test "x$ac_cv_func__sincos" = xyes; then :
  45673. cat >>confdefs.h <<_ACEOF
  45674. #define HAVE__SINCOS 1
  45675. _ACEOF
  45676. fi
  45677. done
  45678. fi
  45679. fi
  45680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  45681. $as_echo_n "checking for fpclass declaration... " >&6; }
  45682. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  45683. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  45684. $as_echo_n "(cached) " >&6
  45685. else
  45686. ac_ext=cpp
  45687. ac_cpp='$CXXCPP $CPPFLAGS'
  45688. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45689. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45690. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45692. /* end confdefs.h. */
  45693. #include <math.h>
  45694. #ifdef HAVE_IEEEFP_H
  45695. #include <ieeefp.h>
  45696. #endif
  45697. int
  45698. main ()
  45699. {
  45700. fpclass(0);
  45701. ;
  45702. return 0;
  45703. }
  45704. _ACEOF
  45705. if ac_fn_cxx_try_compile "$LINENO"; then :
  45706. glibcxx_cv_func_fpclass_use=yes
  45707. else
  45708. glibcxx_cv_func_fpclass_use=no
  45709. fi
  45710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45711. ac_ext=c
  45712. ac_cpp='$CPP $CPPFLAGS'
  45713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45716. fi
  45717. fi
  45718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  45719. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  45720. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  45721. for ac_func in fpclass
  45722. do :
  45723. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  45724. if test "x$ac_cv_func_fpclass" = xyes; then :
  45725. cat >>confdefs.h <<_ACEOF
  45726. #define HAVE_FPCLASS 1
  45727. _ACEOF
  45728. fi
  45729. done
  45730. else
  45731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  45732. $as_echo_n "checking for _fpclass declaration... " >&6; }
  45733. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  45734. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  45735. $as_echo_n "(cached) " >&6
  45736. else
  45737. ac_ext=cpp
  45738. ac_cpp='$CXXCPP $CPPFLAGS'
  45739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45743. /* end confdefs.h. */
  45744. #include <math.h>
  45745. #ifdef HAVE_IEEEFP_H
  45746. #include <ieeefp.h>
  45747. #endif
  45748. int
  45749. main ()
  45750. {
  45751. _fpclass(0);
  45752. ;
  45753. return 0;
  45754. }
  45755. _ACEOF
  45756. if ac_fn_cxx_try_compile "$LINENO"; then :
  45757. glibcxx_cv_func__fpclass_use=yes
  45758. else
  45759. glibcxx_cv_func__fpclass_use=no
  45760. fi
  45761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45762. ac_ext=c
  45763. ac_cpp='$CPP $CPPFLAGS'
  45764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45767. fi
  45768. fi
  45769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  45770. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  45771. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  45772. for ac_func in _fpclass
  45773. do :
  45774. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  45775. if test "x$ac_cv_func__fpclass" = xyes; then :
  45776. cat >>confdefs.h <<_ACEOF
  45777. #define HAVE__FPCLASS 1
  45778. _ACEOF
  45779. fi
  45780. done
  45781. fi
  45782. fi
  45783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  45784. $as_echo_n "checking for qfpclass declaration... " >&6; }
  45785. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  45786. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  45787. $as_echo_n "(cached) " >&6
  45788. else
  45789. ac_ext=cpp
  45790. ac_cpp='$CXXCPP $CPPFLAGS'
  45791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45795. /* end confdefs.h. */
  45796. #include <math.h>
  45797. #ifdef HAVE_IEEEFP_H
  45798. #include <ieeefp.h>
  45799. #endif
  45800. int
  45801. main ()
  45802. {
  45803. qfpclass(0);
  45804. ;
  45805. return 0;
  45806. }
  45807. _ACEOF
  45808. if ac_fn_cxx_try_compile "$LINENO"; then :
  45809. glibcxx_cv_func_qfpclass_use=yes
  45810. else
  45811. glibcxx_cv_func_qfpclass_use=no
  45812. fi
  45813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45814. ac_ext=c
  45815. ac_cpp='$CPP $CPPFLAGS'
  45816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45819. fi
  45820. fi
  45821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  45822. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  45823. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  45824. for ac_func in qfpclass
  45825. do :
  45826. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  45827. if test "x$ac_cv_func_qfpclass" = xyes; then :
  45828. cat >>confdefs.h <<_ACEOF
  45829. #define HAVE_QFPCLASS 1
  45830. _ACEOF
  45831. fi
  45832. done
  45833. else
  45834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  45835. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  45836. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  45837. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  45838. $as_echo_n "(cached) " >&6
  45839. else
  45840. ac_ext=cpp
  45841. ac_cpp='$CXXCPP $CPPFLAGS'
  45842. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45843. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45844. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45846. /* end confdefs.h. */
  45847. #include <math.h>
  45848. #ifdef HAVE_IEEEFP_H
  45849. #include <ieeefp.h>
  45850. #endif
  45851. int
  45852. main ()
  45853. {
  45854. _qfpclass(0);
  45855. ;
  45856. return 0;
  45857. }
  45858. _ACEOF
  45859. if ac_fn_cxx_try_compile "$LINENO"; then :
  45860. glibcxx_cv_func__qfpclass_use=yes
  45861. else
  45862. glibcxx_cv_func__qfpclass_use=no
  45863. fi
  45864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45865. ac_ext=c
  45866. ac_cpp='$CPP $CPPFLAGS'
  45867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45870. fi
  45871. fi
  45872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  45873. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  45874. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  45875. for ac_func in _qfpclass
  45876. do :
  45877. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  45878. if test "x$ac_cv_func__qfpclass" = xyes; then :
  45879. cat >>confdefs.h <<_ACEOF
  45880. #define HAVE__QFPCLASS 1
  45881. _ACEOF
  45882. fi
  45883. done
  45884. fi
  45885. fi
  45886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  45887. $as_echo_n "checking for hypot declaration... " >&6; }
  45888. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  45889. if ${glibcxx_cv_func_hypot_use+:} false; then :
  45890. $as_echo_n "(cached) " >&6
  45891. else
  45892. ac_ext=cpp
  45893. ac_cpp='$CXXCPP $CPPFLAGS'
  45894. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45895. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45896. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45898. /* end confdefs.h. */
  45899. #include <math.h>
  45900. int
  45901. main ()
  45902. {
  45903. hypot(0, 0);
  45904. ;
  45905. return 0;
  45906. }
  45907. _ACEOF
  45908. if ac_fn_cxx_try_compile "$LINENO"; then :
  45909. glibcxx_cv_func_hypot_use=yes
  45910. else
  45911. glibcxx_cv_func_hypot_use=no
  45912. fi
  45913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45914. ac_ext=c
  45915. ac_cpp='$CPP $CPPFLAGS'
  45916. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45917. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45918. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45919. fi
  45920. fi
  45921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  45922. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  45923. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  45924. for ac_func in hypot
  45925. do :
  45926. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  45927. if test "x$ac_cv_func_hypot" = xyes; then :
  45928. cat >>confdefs.h <<_ACEOF
  45929. #define HAVE_HYPOT 1
  45930. _ACEOF
  45931. fi
  45932. done
  45933. else
  45934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  45935. $as_echo_n "checking for _hypot declaration... " >&6; }
  45936. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  45937. if ${glibcxx_cv_func__hypot_use+:} false; then :
  45938. $as_echo_n "(cached) " >&6
  45939. else
  45940. ac_ext=cpp
  45941. ac_cpp='$CXXCPP $CPPFLAGS'
  45942. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45943. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45944. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45946. /* end confdefs.h. */
  45947. #include <math.h>
  45948. int
  45949. main ()
  45950. {
  45951. _hypot(0, 0);
  45952. ;
  45953. return 0;
  45954. }
  45955. _ACEOF
  45956. if ac_fn_cxx_try_compile "$LINENO"; then :
  45957. glibcxx_cv_func__hypot_use=yes
  45958. else
  45959. glibcxx_cv_func__hypot_use=no
  45960. fi
  45961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  45962. ac_ext=c
  45963. ac_cpp='$CPP $CPPFLAGS'
  45964. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45965. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45966. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  45967. fi
  45968. fi
  45969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  45970. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  45971. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  45972. for ac_func in _hypot
  45973. do :
  45974. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  45975. if test "x$ac_cv_func__hypot" = xyes; then :
  45976. cat >>confdefs.h <<_ACEOF
  45977. #define HAVE__HYPOT 1
  45978. _ACEOF
  45979. fi
  45980. done
  45981. fi
  45982. fi
  45983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  45984. $as_echo_n "checking for float trig functions... " >&6; }
  45985. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  45986. $as_echo_n "(cached) " >&6
  45987. else
  45988. ac_ext=cpp
  45989. ac_cpp='$CXXCPP $CPPFLAGS'
  45990. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  45991. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  45992. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  45993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  45994. /* end confdefs.h. */
  45995. #include <math.h>
  45996. int
  45997. main ()
  45998. {
  45999. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  46000. ;
  46001. return 0;
  46002. }
  46003. _ACEOF
  46004. if ac_fn_cxx_try_compile "$LINENO"; then :
  46005. glibcxx_cv_func_float_trig_use=yes
  46006. else
  46007. glibcxx_cv_func_float_trig_use=no
  46008. fi
  46009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46010. ac_ext=c
  46011. ac_cpp='$CPP $CPPFLAGS'
  46012. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46013. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46014. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46015. fi
  46016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  46017. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  46018. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  46019. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  46020. do :
  46021. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46022. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  46023. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  46024. cat >>confdefs.h <<_ACEOF
  46025. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  46026. _ACEOF
  46027. fi
  46028. done
  46029. else
  46030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  46031. $as_echo_n "checking for _float trig functions... " >&6; }
  46032. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  46033. $as_echo_n "(cached) " >&6
  46034. else
  46035. ac_ext=cpp
  46036. ac_cpp='$CXXCPP $CPPFLAGS'
  46037. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46038. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46039. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46041. /* end confdefs.h. */
  46042. #include <math.h>
  46043. int
  46044. main ()
  46045. {
  46046. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  46047. ;
  46048. return 0;
  46049. }
  46050. _ACEOF
  46051. if ac_fn_cxx_try_compile "$LINENO"; then :
  46052. glibcxx_cv_func__float_trig_use=yes
  46053. else
  46054. glibcxx_cv_func__float_trig_use=no
  46055. fi
  46056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46057. ac_ext=c
  46058. ac_cpp='$CPP $CPPFLAGS'
  46059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46062. fi
  46063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  46064. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  46065. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  46066. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  46067. do :
  46068. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46069. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  46070. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  46071. cat >>confdefs.h <<_ACEOF
  46072. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  46073. _ACEOF
  46074. fi
  46075. done
  46076. fi
  46077. fi
  46078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  46079. $as_echo_n "checking for float round functions... " >&6; }
  46080. if ${glibcxx_cv_func_float_round_use+:} false; then :
  46081. $as_echo_n "(cached) " >&6
  46082. else
  46083. ac_ext=cpp
  46084. ac_cpp='$CXXCPP $CPPFLAGS'
  46085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46089. /* end confdefs.h. */
  46090. #include <math.h>
  46091. int
  46092. main ()
  46093. {
  46094. ceilf (0); floorf (0);
  46095. ;
  46096. return 0;
  46097. }
  46098. _ACEOF
  46099. if ac_fn_cxx_try_compile "$LINENO"; then :
  46100. glibcxx_cv_func_float_round_use=yes
  46101. else
  46102. glibcxx_cv_func_float_round_use=no
  46103. fi
  46104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46105. ac_ext=c
  46106. ac_cpp='$CPP $CPPFLAGS'
  46107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46110. fi
  46111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  46112. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  46113. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  46114. for ac_func in ceilf floorf
  46115. do :
  46116. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46117. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  46118. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  46119. cat >>confdefs.h <<_ACEOF
  46120. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  46121. _ACEOF
  46122. fi
  46123. done
  46124. else
  46125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  46126. $as_echo_n "checking for _float round functions... " >&6; }
  46127. if ${glibcxx_cv_func__float_round_use+:} false; then :
  46128. $as_echo_n "(cached) " >&6
  46129. else
  46130. ac_ext=cpp
  46131. ac_cpp='$CXXCPP $CPPFLAGS'
  46132. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46133. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46134. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46136. /* end confdefs.h. */
  46137. #include <math.h>
  46138. int
  46139. main ()
  46140. {
  46141. _ceilf (0); _floorf (0);
  46142. ;
  46143. return 0;
  46144. }
  46145. _ACEOF
  46146. if ac_fn_cxx_try_compile "$LINENO"; then :
  46147. glibcxx_cv_func__float_round_use=yes
  46148. else
  46149. glibcxx_cv_func__float_round_use=no
  46150. fi
  46151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46152. ac_ext=c
  46153. ac_cpp='$CPP $CPPFLAGS'
  46154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46157. fi
  46158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  46159. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  46160. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  46161. for ac_func in _ceilf _floorf
  46162. do :
  46163. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  46164. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  46165. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  46166. cat >>confdefs.h <<_ACEOF
  46167. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  46168. _ACEOF
  46169. fi
  46170. done
  46171. fi
  46172. fi
  46173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  46174. $as_echo_n "checking for expf declaration... " >&6; }
  46175. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  46176. if ${glibcxx_cv_func_expf_use+:} false; then :
  46177. $as_echo_n "(cached) " >&6
  46178. else
  46179. ac_ext=cpp
  46180. ac_cpp='$CXXCPP $CPPFLAGS'
  46181. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46182. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46183. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46185. /* end confdefs.h. */
  46186. #include <math.h>
  46187. #ifdef HAVE_IEEEFP_H
  46188. #include <ieeefp.h>
  46189. #endif
  46190. int
  46191. main ()
  46192. {
  46193. expf(0);
  46194. ;
  46195. return 0;
  46196. }
  46197. _ACEOF
  46198. if ac_fn_cxx_try_compile "$LINENO"; then :
  46199. glibcxx_cv_func_expf_use=yes
  46200. else
  46201. glibcxx_cv_func_expf_use=no
  46202. fi
  46203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46204. ac_ext=c
  46205. ac_cpp='$CPP $CPPFLAGS'
  46206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46209. fi
  46210. fi
  46211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  46212. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  46213. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  46214. for ac_func in expf
  46215. do :
  46216. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  46217. if test "x$ac_cv_func_expf" = xyes; then :
  46218. cat >>confdefs.h <<_ACEOF
  46219. #define HAVE_EXPF 1
  46220. _ACEOF
  46221. fi
  46222. done
  46223. else
  46224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  46225. $as_echo_n "checking for _expf declaration... " >&6; }
  46226. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  46227. if ${glibcxx_cv_func__expf_use+:} false; then :
  46228. $as_echo_n "(cached) " >&6
  46229. else
  46230. ac_ext=cpp
  46231. ac_cpp='$CXXCPP $CPPFLAGS'
  46232. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46233. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46234. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46236. /* end confdefs.h. */
  46237. #include <math.h>
  46238. #ifdef HAVE_IEEEFP_H
  46239. #include <ieeefp.h>
  46240. #endif
  46241. int
  46242. main ()
  46243. {
  46244. _expf(0);
  46245. ;
  46246. return 0;
  46247. }
  46248. _ACEOF
  46249. if ac_fn_cxx_try_compile "$LINENO"; then :
  46250. glibcxx_cv_func__expf_use=yes
  46251. else
  46252. glibcxx_cv_func__expf_use=no
  46253. fi
  46254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46255. ac_ext=c
  46256. ac_cpp='$CPP $CPPFLAGS'
  46257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46260. fi
  46261. fi
  46262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  46263. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  46264. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  46265. for ac_func in _expf
  46266. do :
  46267. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  46268. if test "x$ac_cv_func__expf" = xyes; then :
  46269. cat >>confdefs.h <<_ACEOF
  46270. #define HAVE__EXPF 1
  46271. _ACEOF
  46272. fi
  46273. done
  46274. fi
  46275. fi
  46276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  46277. $as_echo_n "checking for isnanf declaration... " >&6; }
  46278. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  46279. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  46280. $as_echo_n "(cached) " >&6
  46281. else
  46282. ac_ext=cpp
  46283. ac_cpp='$CXXCPP $CPPFLAGS'
  46284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46288. /* end confdefs.h. */
  46289. #include <math.h>
  46290. #ifdef HAVE_IEEEFP_H
  46291. #include <ieeefp.h>
  46292. #endif
  46293. int
  46294. main ()
  46295. {
  46296. isnanf(0);
  46297. ;
  46298. return 0;
  46299. }
  46300. _ACEOF
  46301. if ac_fn_cxx_try_compile "$LINENO"; then :
  46302. glibcxx_cv_func_isnanf_use=yes
  46303. else
  46304. glibcxx_cv_func_isnanf_use=no
  46305. fi
  46306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46307. ac_ext=c
  46308. ac_cpp='$CPP $CPPFLAGS'
  46309. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46310. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46311. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46312. fi
  46313. fi
  46314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  46315. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  46316. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  46317. for ac_func in isnanf
  46318. do :
  46319. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  46320. if test "x$ac_cv_func_isnanf" = xyes; then :
  46321. cat >>confdefs.h <<_ACEOF
  46322. #define HAVE_ISNANF 1
  46323. _ACEOF
  46324. fi
  46325. done
  46326. else
  46327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  46328. $as_echo_n "checking for _isnanf declaration... " >&6; }
  46329. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  46330. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  46331. $as_echo_n "(cached) " >&6
  46332. else
  46333. ac_ext=cpp
  46334. ac_cpp='$CXXCPP $CPPFLAGS'
  46335. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46336. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46337. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46339. /* end confdefs.h. */
  46340. #include <math.h>
  46341. #ifdef HAVE_IEEEFP_H
  46342. #include <ieeefp.h>
  46343. #endif
  46344. int
  46345. main ()
  46346. {
  46347. _isnanf(0);
  46348. ;
  46349. return 0;
  46350. }
  46351. _ACEOF
  46352. if ac_fn_cxx_try_compile "$LINENO"; then :
  46353. glibcxx_cv_func__isnanf_use=yes
  46354. else
  46355. glibcxx_cv_func__isnanf_use=no
  46356. fi
  46357. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46358. ac_ext=c
  46359. ac_cpp='$CPP $CPPFLAGS'
  46360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46363. fi
  46364. fi
  46365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  46366. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  46367. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  46368. for ac_func in _isnanf
  46369. do :
  46370. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  46371. if test "x$ac_cv_func__isnanf" = xyes; then :
  46372. cat >>confdefs.h <<_ACEOF
  46373. #define HAVE__ISNANF 1
  46374. _ACEOF
  46375. fi
  46376. done
  46377. fi
  46378. fi
  46379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  46380. $as_echo_n "checking for isinff declaration... " >&6; }
  46381. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  46382. if ${glibcxx_cv_func_isinff_use+:} false; then :
  46383. $as_echo_n "(cached) " >&6
  46384. else
  46385. ac_ext=cpp
  46386. ac_cpp='$CXXCPP $CPPFLAGS'
  46387. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46388. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46389. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46391. /* end confdefs.h. */
  46392. #include <math.h>
  46393. #ifdef HAVE_IEEEFP_H
  46394. #include <ieeefp.h>
  46395. #endif
  46396. int
  46397. main ()
  46398. {
  46399. isinff(0);
  46400. ;
  46401. return 0;
  46402. }
  46403. _ACEOF
  46404. if ac_fn_cxx_try_compile "$LINENO"; then :
  46405. glibcxx_cv_func_isinff_use=yes
  46406. else
  46407. glibcxx_cv_func_isinff_use=no
  46408. fi
  46409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46410. ac_ext=c
  46411. ac_cpp='$CPP $CPPFLAGS'
  46412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46415. fi
  46416. fi
  46417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  46418. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  46419. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  46420. for ac_func in isinff
  46421. do :
  46422. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  46423. if test "x$ac_cv_func_isinff" = xyes; then :
  46424. cat >>confdefs.h <<_ACEOF
  46425. #define HAVE_ISINFF 1
  46426. _ACEOF
  46427. fi
  46428. done
  46429. else
  46430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  46431. $as_echo_n "checking for _isinff declaration... " >&6; }
  46432. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  46433. if ${glibcxx_cv_func__isinff_use+:} false; then :
  46434. $as_echo_n "(cached) " >&6
  46435. else
  46436. ac_ext=cpp
  46437. ac_cpp='$CXXCPP $CPPFLAGS'
  46438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46442. /* end confdefs.h. */
  46443. #include <math.h>
  46444. #ifdef HAVE_IEEEFP_H
  46445. #include <ieeefp.h>
  46446. #endif
  46447. int
  46448. main ()
  46449. {
  46450. _isinff(0);
  46451. ;
  46452. return 0;
  46453. }
  46454. _ACEOF
  46455. if ac_fn_cxx_try_compile "$LINENO"; then :
  46456. glibcxx_cv_func__isinff_use=yes
  46457. else
  46458. glibcxx_cv_func__isinff_use=no
  46459. fi
  46460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46461. ac_ext=c
  46462. ac_cpp='$CPP $CPPFLAGS'
  46463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46466. fi
  46467. fi
  46468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  46469. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  46470. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  46471. for ac_func in _isinff
  46472. do :
  46473. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  46474. if test "x$ac_cv_func__isinff" = xyes; then :
  46475. cat >>confdefs.h <<_ACEOF
  46476. #define HAVE__ISINFF 1
  46477. _ACEOF
  46478. fi
  46479. done
  46480. fi
  46481. fi
  46482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  46483. $as_echo_n "checking for atan2f declaration... " >&6; }
  46484. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  46485. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  46486. $as_echo_n "(cached) " >&6
  46487. else
  46488. ac_ext=cpp
  46489. ac_cpp='$CXXCPP $CPPFLAGS'
  46490. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46491. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46492. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46494. /* end confdefs.h. */
  46495. #include <math.h>
  46496. int
  46497. main ()
  46498. {
  46499. atan2f(0, 0);
  46500. ;
  46501. return 0;
  46502. }
  46503. _ACEOF
  46504. if ac_fn_cxx_try_compile "$LINENO"; then :
  46505. glibcxx_cv_func_atan2f_use=yes
  46506. else
  46507. glibcxx_cv_func_atan2f_use=no
  46508. fi
  46509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46510. ac_ext=c
  46511. ac_cpp='$CPP $CPPFLAGS'
  46512. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46513. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46514. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46515. fi
  46516. fi
  46517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  46518. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  46519. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  46520. for ac_func in atan2f
  46521. do :
  46522. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  46523. if test "x$ac_cv_func_atan2f" = xyes; then :
  46524. cat >>confdefs.h <<_ACEOF
  46525. #define HAVE_ATAN2F 1
  46526. _ACEOF
  46527. fi
  46528. done
  46529. else
  46530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  46531. $as_echo_n "checking for _atan2f declaration... " >&6; }
  46532. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  46533. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  46534. $as_echo_n "(cached) " >&6
  46535. else
  46536. ac_ext=cpp
  46537. ac_cpp='$CXXCPP $CPPFLAGS'
  46538. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46539. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46540. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46542. /* end confdefs.h. */
  46543. #include <math.h>
  46544. int
  46545. main ()
  46546. {
  46547. _atan2f(0, 0);
  46548. ;
  46549. return 0;
  46550. }
  46551. _ACEOF
  46552. if ac_fn_cxx_try_compile "$LINENO"; then :
  46553. glibcxx_cv_func__atan2f_use=yes
  46554. else
  46555. glibcxx_cv_func__atan2f_use=no
  46556. fi
  46557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46558. ac_ext=c
  46559. ac_cpp='$CPP $CPPFLAGS'
  46560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46563. fi
  46564. fi
  46565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  46566. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  46567. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  46568. for ac_func in _atan2f
  46569. do :
  46570. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  46571. if test "x$ac_cv_func__atan2f" = xyes; then :
  46572. cat >>confdefs.h <<_ACEOF
  46573. #define HAVE__ATAN2F 1
  46574. _ACEOF
  46575. fi
  46576. done
  46577. fi
  46578. fi
  46579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  46580. $as_echo_n "checking for fabsf declaration... " >&6; }
  46581. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  46582. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  46583. $as_echo_n "(cached) " >&6
  46584. else
  46585. ac_ext=cpp
  46586. ac_cpp='$CXXCPP $CPPFLAGS'
  46587. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46588. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46589. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46591. /* end confdefs.h. */
  46592. #include <math.h>
  46593. #ifdef HAVE_IEEEFP_H
  46594. #include <ieeefp.h>
  46595. #endif
  46596. int
  46597. main ()
  46598. {
  46599. fabsf(0);
  46600. ;
  46601. return 0;
  46602. }
  46603. _ACEOF
  46604. if ac_fn_cxx_try_compile "$LINENO"; then :
  46605. glibcxx_cv_func_fabsf_use=yes
  46606. else
  46607. glibcxx_cv_func_fabsf_use=no
  46608. fi
  46609. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46610. ac_ext=c
  46611. ac_cpp='$CPP $CPPFLAGS'
  46612. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46613. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46614. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46615. fi
  46616. fi
  46617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  46618. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  46619. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  46620. for ac_func in fabsf
  46621. do :
  46622. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  46623. if test "x$ac_cv_func_fabsf" = xyes; then :
  46624. cat >>confdefs.h <<_ACEOF
  46625. #define HAVE_FABSF 1
  46626. _ACEOF
  46627. fi
  46628. done
  46629. else
  46630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  46631. $as_echo_n "checking for _fabsf declaration... " >&6; }
  46632. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  46633. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  46634. $as_echo_n "(cached) " >&6
  46635. else
  46636. ac_ext=cpp
  46637. ac_cpp='$CXXCPP $CPPFLAGS'
  46638. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46639. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46640. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46642. /* end confdefs.h. */
  46643. #include <math.h>
  46644. #ifdef HAVE_IEEEFP_H
  46645. #include <ieeefp.h>
  46646. #endif
  46647. int
  46648. main ()
  46649. {
  46650. _fabsf(0);
  46651. ;
  46652. return 0;
  46653. }
  46654. _ACEOF
  46655. if ac_fn_cxx_try_compile "$LINENO"; then :
  46656. glibcxx_cv_func__fabsf_use=yes
  46657. else
  46658. glibcxx_cv_func__fabsf_use=no
  46659. fi
  46660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46661. ac_ext=c
  46662. ac_cpp='$CPP $CPPFLAGS'
  46663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46666. fi
  46667. fi
  46668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  46669. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  46670. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  46671. for ac_func in _fabsf
  46672. do :
  46673. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  46674. if test "x$ac_cv_func__fabsf" = xyes; then :
  46675. cat >>confdefs.h <<_ACEOF
  46676. #define HAVE__FABSF 1
  46677. _ACEOF
  46678. fi
  46679. done
  46680. fi
  46681. fi
  46682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  46683. $as_echo_n "checking for fmodf declaration... " >&6; }
  46684. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  46685. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  46686. $as_echo_n "(cached) " >&6
  46687. else
  46688. ac_ext=cpp
  46689. ac_cpp='$CXXCPP $CPPFLAGS'
  46690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46694. /* end confdefs.h. */
  46695. #include <math.h>
  46696. int
  46697. main ()
  46698. {
  46699. fmodf(0, 0);
  46700. ;
  46701. return 0;
  46702. }
  46703. _ACEOF
  46704. if ac_fn_cxx_try_compile "$LINENO"; then :
  46705. glibcxx_cv_func_fmodf_use=yes
  46706. else
  46707. glibcxx_cv_func_fmodf_use=no
  46708. fi
  46709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46710. ac_ext=c
  46711. ac_cpp='$CPP $CPPFLAGS'
  46712. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46713. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46714. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46715. fi
  46716. fi
  46717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  46718. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  46719. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  46720. for ac_func in fmodf
  46721. do :
  46722. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  46723. if test "x$ac_cv_func_fmodf" = xyes; then :
  46724. cat >>confdefs.h <<_ACEOF
  46725. #define HAVE_FMODF 1
  46726. _ACEOF
  46727. fi
  46728. done
  46729. else
  46730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  46731. $as_echo_n "checking for _fmodf declaration... " >&6; }
  46732. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  46733. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  46734. $as_echo_n "(cached) " >&6
  46735. else
  46736. ac_ext=cpp
  46737. ac_cpp='$CXXCPP $CPPFLAGS'
  46738. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46739. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46740. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46742. /* end confdefs.h. */
  46743. #include <math.h>
  46744. int
  46745. main ()
  46746. {
  46747. _fmodf(0, 0);
  46748. ;
  46749. return 0;
  46750. }
  46751. _ACEOF
  46752. if ac_fn_cxx_try_compile "$LINENO"; then :
  46753. glibcxx_cv_func__fmodf_use=yes
  46754. else
  46755. glibcxx_cv_func__fmodf_use=no
  46756. fi
  46757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46758. ac_ext=c
  46759. ac_cpp='$CPP $CPPFLAGS'
  46760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46763. fi
  46764. fi
  46765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  46766. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  46767. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  46768. for ac_func in _fmodf
  46769. do :
  46770. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  46771. if test "x$ac_cv_func__fmodf" = xyes; then :
  46772. cat >>confdefs.h <<_ACEOF
  46773. #define HAVE__FMODF 1
  46774. _ACEOF
  46775. fi
  46776. done
  46777. fi
  46778. fi
  46779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  46780. $as_echo_n "checking for frexpf declaration... " >&6; }
  46781. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  46782. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  46783. $as_echo_n "(cached) " >&6
  46784. else
  46785. ac_ext=cpp
  46786. ac_cpp='$CXXCPP $CPPFLAGS'
  46787. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46788. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46789. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46791. /* end confdefs.h. */
  46792. #include <math.h>
  46793. int
  46794. main ()
  46795. {
  46796. frexpf(0, 0);
  46797. ;
  46798. return 0;
  46799. }
  46800. _ACEOF
  46801. if ac_fn_cxx_try_compile "$LINENO"; then :
  46802. glibcxx_cv_func_frexpf_use=yes
  46803. else
  46804. glibcxx_cv_func_frexpf_use=no
  46805. fi
  46806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46807. ac_ext=c
  46808. ac_cpp='$CPP $CPPFLAGS'
  46809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46812. fi
  46813. fi
  46814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  46815. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  46816. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  46817. for ac_func in frexpf
  46818. do :
  46819. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  46820. if test "x$ac_cv_func_frexpf" = xyes; then :
  46821. cat >>confdefs.h <<_ACEOF
  46822. #define HAVE_FREXPF 1
  46823. _ACEOF
  46824. fi
  46825. done
  46826. else
  46827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  46828. $as_echo_n "checking for _frexpf declaration... " >&6; }
  46829. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  46830. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  46831. $as_echo_n "(cached) " >&6
  46832. else
  46833. ac_ext=cpp
  46834. ac_cpp='$CXXCPP $CPPFLAGS'
  46835. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46836. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46837. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46839. /* end confdefs.h. */
  46840. #include <math.h>
  46841. int
  46842. main ()
  46843. {
  46844. _frexpf(0, 0);
  46845. ;
  46846. return 0;
  46847. }
  46848. _ACEOF
  46849. if ac_fn_cxx_try_compile "$LINENO"; then :
  46850. glibcxx_cv_func__frexpf_use=yes
  46851. else
  46852. glibcxx_cv_func__frexpf_use=no
  46853. fi
  46854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46855. ac_ext=c
  46856. ac_cpp='$CPP $CPPFLAGS'
  46857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46860. fi
  46861. fi
  46862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  46863. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  46864. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  46865. for ac_func in _frexpf
  46866. do :
  46867. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  46868. if test "x$ac_cv_func__frexpf" = xyes; then :
  46869. cat >>confdefs.h <<_ACEOF
  46870. #define HAVE__FREXPF 1
  46871. _ACEOF
  46872. fi
  46873. done
  46874. fi
  46875. fi
  46876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  46877. $as_echo_n "checking for hypotf declaration... " >&6; }
  46878. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  46879. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  46880. $as_echo_n "(cached) " >&6
  46881. else
  46882. ac_ext=cpp
  46883. ac_cpp='$CXXCPP $CPPFLAGS'
  46884. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46885. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46886. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46888. /* end confdefs.h. */
  46889. #include <math.h>
  46890. int
  46891. main ()
  46892. {
  46893. hypotf(0, 0);
  46894. ;
  46895. return 0;
  46896. }
  46897. _ACEOF
  46898. if ac_fn_cxx_try_compile "$LINENO"; then :
  46899. glibcxx_cv_func_hypotf_use=yes
  46900. else
  46901. glibcxx_cv_func_hypotf_use=no
  46902. fi
  46903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46904. ac_ext=c
  46905. ac_cpp='$CPP $CPPFLAGS'
  46906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46909. fi
  46910. fi
  46911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  46912. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  46913. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  46914. for ac_func in hypotf
  46915. do :
  46916. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  46917. if test "x$ac_cv_func_hypotf" = xyes; then :
  46918. cat >>confdefs.h <<_ACEOF
  46919. #define HAVE_HYPOTF 1
  46920. _ACEOF
  46921. fi
  46922. done
  46923. else
  46924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  46925. $as_echo_n "checking for _hypotf declaration... " >&6; }
  46926. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  46927. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  46928. $as_echo_n "(cached) " >&6
  46929. else
  46930. ac_ext=cpp
  46931. ac_cpp='$CXXCPP $CPPFLAGS'
  46932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46935. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46936. /* end confdefs.h. */
  46937. #include <math.h>
  46938. int
  46939. main ()
  46940. {
  46941. _hypotf(0, 0);
  46942. ;
  46943. return 0;
  46944. }
  46945. _ACEOF
  46946. if ac_fn_cxx_try_compile "$LINENO"; then :
  46947. glibcxx_cv_func__hypotf_use=yes
  46948. else
  46949. glibcxx_cv_func__hypotf_use=no
  46950. fi
  46951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  46952. ac_ext=c
  46953. ac_cpp='$CPP $CPPFLAGS'
  46954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  46957. fi
  46958. fi
  46959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  46960. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  46961. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  46962. for ac_func in _hypotf
  46963. do :
  46964. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  46965. if test "x$ac_cv_func__hypotf" = xyes; then :
  46966. cat >>confdefs.h <<_ACEOF
  46967. #define HAVE__HYPOTF 1
  46968. _ACEOF
  46969. fi
  46970. done
  46971. fi
  46972. fi
  46973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  46974. $as_echo_n "checking for ldexpf declaration... " >&6; }
  46975. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  46976. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  46977. $as_echo_n "(cached) " >&6
  46978. else
  46979. ac_ext=cpp
  46980. ac_cpp='$CXXCPP $CPPFLAGS'
  46981. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  46982. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  46983. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  46984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  46985. /* end confdefs.h. */
  46986. #include <math.h>
  46987. int
  46988. main ()
  46989. {
  46990. ldexpf(0, 0);
  46991. ;
  46992. return 0;
  46993. }
  46994. _ACEOF
  46995. if ac_fn_cxx_try_compile "$LINENO"; then :
  46996. glibcxx_cv_func_ldexpf_use=yes
  46997. else
  46998. glibcxx_cv_func_ldexpf_use=no
  46999. fi
  47000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47001. ac_ext=c
  47002. ac_cpp='$CPP $CPPFLAGS'
  47003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47006. fi
  47007. fi
  47008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  47009. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  47010. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  47011. for ac_func in ldexpf
  47012. do :
  47013. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  47014. if test "x$ac_cv_func_ldexpf" = xyes; then :
  47015. cat >>confdefs.h <<_ACEOF
  47016. #define HAVE_LDEXPF 1
  47017. _ACEOF
  47018. fi
  47019. done
  47020. else
  47021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  47022. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  47023. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  47024. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  47025. $as_echo_n "(cached) " >&6
  47026. else
  47027. ac_ext=cpp
  47028. ac_cpp='$CXXCPP $CPPFLAGS'
  47029. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47030. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47031. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47033. /* end confdefs.h. */
  47034. #include <math.h>
  47035. int
  47036. main ()
  47037. {
  47038. _ldexpf(0, 0);
  47039. ;
  47040. return 0;
  47041. }
  47042. _ACEOF
  47043. if ac_fn_cxx_try_compile "$LINENO"; then :
  47044. glibcxx_cv_func__ldexpf_use=yes
  47045. else
  47046. glibcxx_cv_func__ldexpf_use=no
  47047. fi
  47048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47049. ac_ext=c
  47050. ac_cpp='$CPP $CPPFLAGS'
  47051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47054. fi
  47055. fi
  47056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  47057. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  47058. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  47059. for ac_func in _ldexpf
  47060. do :
  47061. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  47062. if test "x$ac_cv_func__ldexpf" = xyes; then :
  47063. cat >>confdefs.h <<_ACEOF
  47064. #define HAVE__LDEXPF 1
  47065. _ACEOF
  47066. fi
  47067. done
  47068. fi
  47069. fi
  47070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  47071. $as_echo_n "checking for logf declaration... " >&6; }
  47072. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  47073. if ${glibcxx_cv_func_logf_use+:} false; then :
  47074. $as_echo_n "(cached) " >&6
  47075. else
  47076. ac_ext=cpp
  47077. ac_cpp='$CXXCPP $CPPFLAGS'
  47078. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47079. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47080. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47082. /* end confdefs.h. */
  47083. #include <math.h>
  47084. #ifdef HAVE_IEEEFP_H
  47085. #include <ieeefp.h>
  47086. #endif
  47087. int
  47088. main ()
  47089. {
  47090. logf(0);
  47091. ;
  47092. return 0;
  47093. }
  47094. _ACEOF
  47095. if ac_fn_cxx_try_compile "$LINENO"; then :
  47096. glibcxx_cv_func_logf_use=yes
  47097. else
  47098. glibcxx_cv_func_logf_use=no
  47099. fi
  47100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47101. ac_ext=c
  47102. ac_cpp='$CPP $CPPFLAGS'
  47103. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47104. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47105. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47106. fi
  47107. fi
  47108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  47109. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  47110. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  47111. for ac_func in logf
  47112. do :
  47113. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  47114. if test "x$ac_cv_func_logf" = xyes; then :
  47115. cat >>confdefs.h <<_ACEOF
  47116. #define HAVE_LOGF 1
  47117. _ACEOF
  47118. fi
  47119. done
  47120. else
  47121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  47122. $as_echo_n "checking for _logf declaration... " >&6; }
  47123. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  47124. if ${glibcxx_cv_func__logf_use+:} false; then :
  47125. $as_echo_n "(cached) " >&6
  47126. else
  47127. ac_ext=cpp
  47128. ac_cpp='$CXXCPP $CPPFLAGS'
  47129. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47130. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47131. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47133. /* end confdefs.h. */
  47134. #include <math.h>
  47135. #ifdef HAVE_IEEEFP_H
  47136. #include <ieeefp.h>
  47137. #endif
  47138. int
  47139. main ()
  47140. {
  47141. _logf(0);
  47142. ;
  47143. return 0;
  47144. }
  47145. _ACEOF
  47146. if ac_fn_cxx_try_compile "$LINENO"; then :
  47147. glibcxx_cv_func__logf_use=yes
  47148. else
  47149. glibcxx_cv_func__logf_use=no
  47150. fi
  47151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47152. ac_ext=c
  47153. ac_cpp='$CPP $CPPFLAGS'
  47154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47157. fi
  47158. fi
  47159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  47160. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  47161. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  47162. for ac_func in _logf
  47163. do :
  47164. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  47165. if test "x$ac_cv_func__logf" = xyes; then :
  47166. cat >>confdefs.h <<_ACEOF
  47167. #define HAVE__LOGF 1
  47168. _ACEOF
  47169. fi
  47170. done
  47171. fi
  47172. fi
  47173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  47174. $as_echo_n "checking for log10f declaration... " >&6; }
  47175. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  47176. if ${glibcxx_cv_func_log10f_use+:} false; then :
  47177. $as_echo_n "(cached) " >&6
  47178. else
  47179. ac_ext=cpp
  47180. ac_cpp='$CXXCPP $CPPFLAGS'
  47181. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47182. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47183. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47185. /* end confdefs.h. */
  47186. #include <math.h>
  47187. #ifdef HAVE_IEEEFP_H
  47188. #include <ieeefp.h>
  47189. #endif
  47190. int
  47191. main ()
  47192. {
  47193. log10f(0);
  47194. ;
  47195. return 0;
  47196. }
  47197. _ACEOF
  47198. if ac_fn_cxx_try_compile "$LINENO"; then :
  47199. glibcxx_cv_func_log10f_use=yes
  47200. else
  47201. glibcxx_cv_func_log10f_use=no
  47202. fi
  47203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47204. ac_ext=c
  47205. ac_cpp='$CPP $CPPFLAGS'
  47206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47209. fi
  47210. fi
  47211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  47212. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  47213. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  47214. for ac_func in log10f
  47215. do :
  47216. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  47217. if test "x$ac_cv_func_log10f" = xyes; then :
  47218. cat >>confdefs.h <<_ACEOF
  47219. #define HAVE_LOG10F 1
  47220. _ACEOF
  47221. fi
  47222. done
  47223. else
  47224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  47225. $as_echo_n "checking for _log10f declaration... " >&6; }
  47226. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  47227. if ${glibcxx_cv_func__log10f_use+:} false; then :
  47228. $as_echo_n "(cached) " >&6
  47229. else
  47230. ac_ext=cpp
  47231. ac_cpp='$CXXCPP $CPPFLAGS'
  47232. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47233. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47234. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47236. /* end confdefs.h. */
  47237. #include <math.h>
  47238. #ifdef HAVE_IEEEFP_H
  47239. #include <ieeefp.h>
  47240. #endif
  47241. int
  47242. main ()
  47243. {
  47244. _log10f(0);
  47245. ;
  47246. return 0;
  47247. }
  47248. _ACEOF
  47249. if ac_fn_cxx_try_compile "$LINENO"; then :
  47250. glibcxx_cv_func__log10f_use=yes
  47251. else
  47252. glibcxx_cv_func__log10f_use=no
  47253. fi
  47254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47255. ac_ext=c
  47256. ac_cpp='$CPP $CPPFLAGS'
  47257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47260. fi
  47261. fi
  47262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  47263. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  47264. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  47265. for ac_func in _log10f
  47266. do :
  47267. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  47268. if test "x$ac_cv_func__log10f" = xyes; then :
  47269. cat >>confdefs.h <<_ACEOF
  47270. #define HAVE__LOG10F 1
  47271. _ACEOF
  47272. fi
  47273. done
  47274. fi
  47275. fi
  47276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  47277. $as_echo_n "checking for modff declaration... " >&6; }
  47278. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  47279. if ${glibcxx_cv_func_modff_use+:} false; then :
  47280. $as_echo_n "(cached) " >&6
  47281. else
  47282. ac_ext=cpp
  47283. ac_cpp='$CXXCPP $CPPFLAGS'
  47284. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47285. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47286. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47288. /* end confdefs.h. */
  47289. #include <math.h>
  47290. int
  47291. main ()
  47292. {
  47293. modff(0, 0);
  47294. ;
  47295. return 0;
  47296. }
  47297. _ACEOF
  47298. if ac_fn_cxx_try_compile "$LINENO"; then :
  47299. glibcxx_cv_func_modff_use=yes
  47300. else
  47301. glibcxx_cv_func_modff_use=no
  47302. fi
  47303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47304. ac_ext=c
  47305. ac_cpp='$CPP $CPPFLAGS'
  47306. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47307. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47308. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47309. fi
  47310. fi
  47311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  47312. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  47313. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  47314. for ac_func in modff
  47315. do :
  47316. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  47317. if test "x$ac_cv_func_modff" = xyes; then :
  47318. cat >>confdefs.h <<_ACEOF
  47319. #define HAVE_MODFF 1
  47320. _ACEOF
  47321. fi
  47322. done
  47323. else
  47324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  47325. $as_echo_n "checking for _modff declaration... " >&6; }
  47326. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  47327. if ${glibcxx_cv_func__modff_use+:} false; then :
  47328. $as_echo_n "(cached) " >&6
  47329. else
  47330. ac_ext=cpp
  47331. ac_cpp='$CXXCPP $CPPFLAGS'
  47332. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47333. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47334. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47336. /* end confdefs.h. */
  47337. #include <math.h>
  47338. int
  47339. main ()
  47340. {
  47341. _modff(0, 0);
  47342. ;
  47343. return 0;
  47344. }
  47345. _ACEOF
  47346. if ac_fn_cxx_try_compile "$LINENO"; then :
  47347. glibcxx_cv_func__modff_use=yes
  47348. else
  47349. glibcxx_cv_func__modff_use=no
  47350. fi
  47351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47352. ac_ext=c
  47353. ac_cpp='$CPP $CPPFLAGS'
  47354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47357. fi
  47358. fi
  47359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  47360. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  47361. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  47362. for ac_func in _modff
  47363. do :
  47364. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  47365. if test "x$ac_cv_func__modff" = xyes; then :
  47366. cat >>confdefs.h <<_ACEOF
  47367. #define HAVE__MODFF 1
  47368. _ACEOF
  47369. fi
  47370. done
  47371. fi
  47372. fi
  47373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  47374. $as_echo_n "checking for modf declaration... " >&6; }
  47375. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  47376. if ${glibcxx_cv_func_modf_use+:} false; then :
  47377. $as_echo_n "(cached) " >&6
  47378. else
  47379. ac_ext=cpp
  47380. ac_cpp='$CXXCPP $CPPFLAGS'
  47381. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47382. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47383. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47385. /* end confdefs.h. */
  47386. #include <math.h>
  47387. int
  47388. main ()
  47389. {
  47390. modf(0, 0);
  47391. ;
  47392. return 0;
  47393. }
  47394. _ACEOF
  47395. if ac_fn_cxx_try_compile "$LINENO"; then :
  47396. glibcxx_cv_func_modf_use=yes
  47397. else
  47398. glibcxx_cv_func_modf_use=no
  47399. fi
  47400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47401. ac_ext=c
  47402. ac_cpp='$CPP $CPPFLAGS'
  47403. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47404. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47405. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47406. fi
  47407. fi
  47408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  47409. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  47410. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  47411. for ac_func in modf
  47412. do :
  47413. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  47414. if test "x$ac_cv_func_modf" = xyes; then :
  47415. cat >>confdefs.h <<_ACEOF
  47416. #define HAVE_MODF 1
  47417. _ACEOF
  47418. fi
  47419. done
  47420. else
  47421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  47422. $as_echo_n "checking for _modf declaration... " >&6; }
  47423. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  47424. if ${glibcxx_cv_func__modf_use+:} false; then :
  47425. $as_echo_n "(cached) " >&6
  47426. else
  47427. ac_ext=cpp
  47428. ac_cpp='$CXXCPP $CPPFLAGS'
  47429. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47430. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47431. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47433. /* end confdefs.h. */
  47434. #include <math.h>
  47435. int
  47436. main ()
  47437. {
  47438. _modf(0, 0);
  47439. ;
  47440. return 0;
  47441. }
  47442. _ACEOF
  47443. if ac_fn_cxx_try_compile "$LINENO"; then :
  47444. glibcxx_cv_func__modf_use=yes
  47445. else
  47446. glibcxx_cv_func__modf_use=no
  47447. fi
  47448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47449. ac_ext=c
  47450. ac_cpp='$CPP $CPPFLAGS'
  47451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47454. fi
  47455. fi
  47456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  47457. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  47458. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  47459. for ac_func in _modf
  47460. do :
  47461. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  47462. if test "x$ac_cv_func__modf" = xyes; then :
  47463. cat >>confdefs.h <<_ACEOF
  47464. #define HAVE__MODF 1
  47465. _ACEOF
  47466. fi
  47467. done
  47468. fi
  47469. fi
  47470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  47471. $as_echo_n "checking for powf declaration... " >&6; }
  47472. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  47473. if ${glibcxx_cv_func_powf_use+:} false; then :
  47474. $as_echo_n "(cached) " >&6
  47475. else
  47476. ac_ext=cpp
  47477. ac_cpp='$CXXCPP $CPPFLAGS'
  47478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47482. /* end confdefs.h. */
  47483. #include <math.h>
  47484. int
  47485. main ()
  47486. {
  47487. powf(0, 0);
  47488. ;
  47489. return 0;
  47490. }
  47491. _ACEOF
  47492. if ac_fn_cxx_try_compile "$LINENO"; then :
  47493. glibcxx_cv_func_powf_use=yes
  47494. else
  47495. glibcxx_cv_func_powf_use=no
  47496. fi
  47497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47498. ac_ext=c
  47499. ac_cpp='$CPP $CPPFLAGS'
  47500. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47501. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47502. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47503. fi
  47504. fi
  47505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  47506. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  47507. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  47508. for ac_func in powf
  47509. do :
  47510. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  47511. if test "x$ac_cv_func_powf" = xyes; then :
  47512. cat >>confdefs.h <<_ACEOF
  47513. #define HAVE_POWF 1
  47514. _ACEOF
  47515. fi
  47516. done
  47517. else
  47518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  47519. $as_echo_n "checking for _powf declaration... " >&6; }
  47520. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  47521. if ${glibcxx_cv_func__powf_use+:} false; then :
  47522. $as_echo_n "(cached) " >&6
  47523. else
  47524. ac_ext=cpp
  47525. ac_cpp='$CXXCPP $CPPFLAGS'
  47526. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47527. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47528. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47530. /* end confdefs.h. */
  47531. #include <math.h>
  47532. int
  47533. main ()
  47534. {
  47535. _powf(0, 0);
  47536. ;
  47537. return 0;
  47538. }
  47539. _ACEOF
  47540. if ac_fn_cxx_try_compile "$LINENO"; then :
  47541. glibcxx_cv_func__powf_use=yes
  47542. else
  47543. glibcxx_cv_func__powf_use=no
  47544. fi
  47545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47546. ac_ext=c
  47547. ac_cpp='$CPP $CPPFLAGS'
  47548. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47549. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47550. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47551. fi
  47552. fi
  47553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  47554. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  47555. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  47556. for ac_func in _powf
  47557. do :
  47558. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  47559. if test "x$ac_cv_func__powf" = xyes; then :
  47560. cat >>confdefs.h <<_ACEOF
  47561. #define HAVE__POWF 1
  47562. _ACEOF
  47563. fi
  47564. done
  47565. fi
  47566. fi
  47567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  47568. $as_echo_n "checking for sqrtf declaration... " >&6; }
  47569. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  47570. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  47571. $as_echo_n "(cached) " >&6
  47572. else
  47573. ac_ext=cpp
  47574. ac_cpp='$CXXCPP $CPPFLAGS'
  47575. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47576. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47577. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47579. /* end confdefs.h. */
  47580. #include <math.h>
  47581. #ifdef HAVE_IEEEFP_H
  47582. #include <ieeefp.h>
  47583. #endif
  47584. int
  47585. main ()
  47586. {
  47587. sqrtf(0);
  47588. ;
  47589. return 0;
  47590. }
  47591. _ACEOF
  47592. if ac_fn_cxx_try_compile "$LINENO"; then :
  47593. glibcxx_cv_func_sqrtf_use=yes
  47594. else
  47595. glibcxx_cv_func_sqrtf_use=no
  47596. fi
  47597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47598. ac_ext=c
  47599. ac_cpp='$CPP $CPPFLAGS'
  47600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47603. fi
  47604. fi
  47605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  47606. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  47607. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  47608. for ac_func in sqrtf
  47609. do :
  47610. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  47611. if test "x$ac_cv_func_sqrtf" = xyes; then :
  47612. cat >>confdefs.h <<_ACEOF
  47613. #define HAVE_SQRTF 1
  47614. _ACEOF
  47615. fi
  47616. done
  47617. else
  47618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  47619. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  47620. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  47621. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  47622. $as_echo_n "(cached) " >&6
  47623. else
  47624. ac_ext=cpp
  47625. ac_cpp='$CXXCPP $CPPFLAGS'
  47626. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47627. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47628. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47630. /* end confdefs.h. */
  47631. #include <math.h>
  47632. #ifdef HAVE_IEEEFP_H
  47633. #include <ieeefp.h>
  47634. #endif
  47635. int
  47636. main ()
  47637. {
  47638. _sqrtf(0);
  47639. ;
  47640. return 0;
  47641. }
  47642. _ACEOF
  47643. if ac_fn_cxx_try_compile "$LINENO"; then :
  47644. glibcxx_cv_func__sqrtf_use=yes
  47645. else
  47646. glibcxx_cv_func__sqrtf_use=no
  47647. fi
  47648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47649. ac_ext=c
  47650. ac_cpp='$CPP $CPPFLAGS'
  47651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47654. fi
  47655. fi
  47656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  47657. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  47658. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  47659. for ac_func in _sqrtf
  47660. do :
  47661. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  47662. if test "x$ac_cv_func__sqrtf" = xyes; then :
  47663. cat >>confdefs.h <<_ACEOF
  47664. #define HAVE__SQRTF 1
  47665. _ACEOF
  47666. fi
  47667. done
  47668. fi
  47669. fi
  47670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  47671. $as_echo_n "checking for sincosf declaration... " >&6; }
  47672. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  47673. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  47674. $as_echo_n "(cached) " >&6
  47675. else
  47676. ac_ext=cpp
  47677. ac_cpp='$CXXCPP $CPPFLAGS'
  47678. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47679. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47680. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47682. /* end confdefs.h. */
  47683. #include <math.h>
  47684. int
  47685. main ()
  47686. {
  47687. sincosf(0, 0, 0);
  47688. ;
  47689. return 0;
  47690. }
  47691. _ACEOF
  47692. if ac_fn_cxx_try_compile "$LINENO"; then :
  47693. glibcxx_cv_func_sincosf_use=yes
  47694. else
  47695. glibcxx_cv_func_sincosf_use=no
  47696. fi
  47697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47698. ac_ext=c
  47699. ac_cpp='$CPP $CPPFLAGS'
  47700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47703. fi
  47704. fi
  47705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  47706. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  47707. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  47708. for ac_func in sincosf
  47709. do :
  47710. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  47711. if test "x$ac_cv_func_sincosf" = xyes; then :
  47712. cat >>confdefs.h <<_ACEOF
  47713. #define HAVE_SINCOSF 1
  47714. _ACEOF
  47715. fi
  47716. done
  47717. else
  47718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  47719. $as_echo_n "checking for _sincosf declaration... " >&6; }
  47720. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  47721. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  47722. $as_echo_n "(cached) " >&6
  47723. else
  47724. ac_ext=cpp
  47725. ac_cpp='$CXXCPP $CPPFLAGS'
  47726. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47727. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47728. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47730. /* end confdefs.h. */
  47731. #include <math.h>
  47732. int
  47733. main ()
  47734. {
  47735. _sincosf(0, 0, 0);
  47736. ;
  47737. return 0;
  47738. }
  47739. _ACEOF
  47740. if ac_fn_cxx_try_compile "$LINENO"; then :
  47741. glibcxx_cv_func__sincosf_use=yes
  47742. else
  47743. glibcxx_cv_func__sincosf_use=no
  47744. fi
  47745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47746. ac_ext=c
  47747. ac_cpp='$CPP $CPPFLAGS'
  47748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47751. fi
  47752. fi
  47753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  47754. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  47755. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  47756. for ac_func in _sincosf
  47757. do :
  47758. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  47759. if test "x$ac_cv_func__sincosf" = xyes; then :
  47760. cat >>confdefs.h <<_ACEOF
  47761. #define HAVE__SINCOSF 1
  47762. _ACEOF
  47763. fi
  47764. done
  47765. fi
  47766. fi
  47767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  47768. $as_echo_n "checking for finitef declaration... " >&6; }
  47769. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  47770. if ${glibcxx_cv_func_finitef_use+:} false; then :
  47771. $as_echo_n "(cached) " >&6
  47772. else
  47773. ac_ext=cpp
  47774. ac_cpp='$CXXCPP $CPPFLAGS'
  47775. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47776. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47777. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47779. /* end confdefs.h. */
  47780. #include <math.h>
  47781. #ifdef HAVE_IEEEFP_H
  47782. #include <ieeefp.h>
  47783. #endif
  47784. int
  47785. main ()
  47786. {
  47787. finitef(0);
  47788. ;
  47789. return 0;
  47790. }
  47791. _ACEOF
  47792. if ac_fn_cxx_try_compile "$LINENO"; then :
  47793. glibcxx_cv_func_finitef_use=yes
  47794. else
  47795. glibcxx_cv_func_finitef_use=no
  47796. fi
  47797. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47798. ac_ext=c
  47799. ac_cpp='$CPP $CPPFLAGS'
  47800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47803. fi
  47804. fi
  47805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  47806. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  47807. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  47808. for ac_func in finitef
  47809. do :
  47810. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  47811. if test "x$ac_cv_func_finitef" = xyes; then :
  47812. cat >>confdefs.h <<_ACEOF
  47813. #define HAVE_FINITEF 1
  47814. _ACEOF
  47815. fi
  47816. done
  47817. else
  47818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  47819. $as_echo_n "checking for _finitef declaration... " >&6; }
  47820. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  47821. if ${glibcxx_cv_func__finitef_use+:} false; then :
  47822. $as_echo_n "(cached) " >&6
  47823. else
  47824. ac_ext=cpp
  47825. ac_cpp='$CXXCPP $CPPFLAGS'
  47826. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47827. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47828. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47830. /* end confdefs.h. */
  47831. #include <math.h>
  47832. #ifdef HAVE_IEEEFP_H
  47833. #include <ieeefp.h>
  47834. #endif
  47835. int
  47836. main ()
  47837. {
  47838. _finitef(0);
  47839. ;
  47840. return 0;
  47841. }
  47842. _ACEOF
  47843. if ac_fn_cxx_try_compile "$LINENO"; then :
  47844. glibcxx_cv_func__finitef_use=yes
  47845. else
  47846. glibcxx_cv_func__finitef_use=no
  47847. fi
  47848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47849. ac_ext=c
  47850. ac_cpp='$CPP $CPPFLAGS'
  47851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47854. fi
  47855. fi
  47856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  47857. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  47858. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  47859. for ac_func in _finitef
  47860. do :
  47861. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  47862. if test "x$ac_cv_func__finitef" = xyes; then :
  47863. cat >>confdefs.h <<_ACEOF
  47864. #define HAVE__FINITEF 1
  47865. _ACEOF
  47866. fi
  47867. done
  47868. fi
  47869. fi
  47870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  47871. $as_echo_n "checking for long double trig functions... " >&6; }
  47872. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  47873. $as_echo_n "(cached) " >&6
  47874. else
  47875. ac_ext=cpp
  47876. ac_cpp='$CXXCPP $CPPFLAGS'
  47877. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47878. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47879. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47881. /* end confdefs.h. */
  47882. #include <math.h>
  47883. int
  47884. main ()
  47885. {
  47886. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  47887. ;
  47888. return 0;
  47889. }
  47890. _ACEOF
  47891. if ac_fn_cxx_try_compile "$LINENO"; then :
  47892. glibcxx_cv_func_long_double_trig_use=yes
  47893. else
  47894. glibcxx_cv_func_long_double_trig_use=no
  47895. fi
  47896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47897. ac_ext=c
  47898. ac_cpp='$CPP $CPPFLAGS'
  47899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47902. fi
  47903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  47904. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  47905. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  47906. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  47907. do :
  47908. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47909. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  47910. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  47911. cat >>confdefs.h <<_ACEOF
  47912. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47913. _ACEOF
  47914. fi
  47915. done
  47916. else
  47917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  47918. $as_echo_n "checking for _long double trig functions... " >&6; }
  47919. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  47920. $as_echo_n "(cached) " >&6
  47921. else
  47922. ac_ext=cpp
  47923. ac_cpp='$CXXCPP $CPPFLAGS'
  47924. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47925. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47926. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47928. /* end confdefs.h. */
  47929. #include <math.h>
  47930. int
  47931. main ()
  47932. {
  47933. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  47934. ;
  47935. return 0;
  47936. }
  47937. _ACEOF
  47938. if ac_fn_cxx_try_compile "$LINENO"; then :
  47939. glibcxx_cv_func__long_double_trig_use=yes
  47940. else
  47941. glibcxx_cv_func__long_double_trig_use=no
  47942. fi
  47943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47944. ac_ext=c
  47945. ac_cpp='$CPP $CPPFLAGS'
  47946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47949. fi
  47950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  47951. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  47952. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  47953. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  47954. do :
  47955. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  47956. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  47957. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  47958. cat >>confdefs.h <<_ACEOF
  47959. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  47960. _ACEOF
  47961. fi
  47962. done
  47963. fi
  47964. fi
  47965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  47966. $as_echo_n "checking for long double round functions... " >&6; }
  47967. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  47968. $as_echo_n "(cached) " >&6
  47969. else
  47970. ac_ext=cpp
  47971. ac_cpp='$CXXCPP $CPPFLAGS'
  47972. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47973. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47974. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  47975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  47976. /* end confdefs.h. */
  47977. #include <math.h>
  47978. int
  47979. main ()
  47980. {
  47981. ceill (0); floorl (0);
  47982. ;
  47983. return 0;
  47984. }
  47985. _ACEOF
  47986. if ac_fn_cxx_try_compile "$LINENO"; then :
  47987. glibcxx_cv_func_long_double_round_use=yes
  47988. else
  47989. glibcxx_cv_func_long_double_round_use=no
  47990. fi
  47991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  47992. ac_ext=c
  47993. ac_cpp='$CPP $CPPFLAGS'
  47994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  47995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  47996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  47997. fi
  47998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  47999. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  48000. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  48001. for ac_func in ceill floorl
  48002. do :
  48003. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  48004. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  48005. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  48006. cat >>confdefs.h <<_ACEOF
  48007. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  48008. _ACEOF
  48009. fi
  48010. done
  48011. else
  48012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  48013. $as_echo_n "checking for _long double round functions... " >&6; }
  48014. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  48015. $as_echo_n "(cached) " >&6
  48016. else
  48017. ac_ext=cpp
  48018. ac_cpp='$CXXCPP $CPPFLAGS'
  48019. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48020. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48021. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48023. /* end confdefs.h. */
  48024. #include <math.h>
  48025. int
  48026. main ()
  48027. {
  48028. _ceill (0); _floorl (0);
  48029. ;
  48030. return 0;
  48031. }
  48032. _ACEOF
  48033. if ac_fn_cxx_try_compile "$LINENO"; then :
  48034. glibcxx_cv_func__long_double_round_use=yes
  48035. else
  48036. glibcxx_cv_func__long_double_round_use=no
  48037. fi
  48038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48039. ac_ext=c
  48040. ac_cpp='$CPP $CPPFLAGS'
  48041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48044. fi
  48045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  48046. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  48047. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  48048. for ac_func in _ceill _floorl
  48049. do :
  48050. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  48051. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  48052. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  48053. cat >>confdefs.h <<_ACEOF
  48054. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  48055. _ACEOF
  48056. fi
  48057. done
  48058. fi
  48059. fi
  48060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  48061. $as_echo_n "checking for isnanl declaration... " >&6; }
  48062. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  48063. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  48064. $as_echo_n "(cached) " >&6
  48065. else
  48066. ac_ext=cpp
  48067. ac_cpp='$CXXCPP $CPPFLAGS'
  48068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48072. /* end confdefs.h. */
  48073. #include <math.h>
  48074. #ifdef HAVE_IEEEFP_H
  48075. #include <ieeefp.h>
  48076. #endif
  48077. int
  48078. main ()
  48079. {
  48080. isnanl(0);
  48081. ;
  48082. return 0;
  48083. }
  48084. _ACEOF
  48085. if ac_fn_cxx_try_compile "$LINENO"; then :
  48086. glibcxx_cv_func_isnanl_use=yes
  48087. else
  48088. glibcxx_cv_func_isnanl_use=no
  48089. fi
  48090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48091. ac_ext=c
  48092. ac_cpp='$CPP $CPPFLAGS'
  48093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48096. fi
  48097. fi
  48098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  48099. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  48100. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  48101. for ac_func in isnanl
  48102. do :
  48103. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  48104. if test "x$ac_cv_func_isnanl" = xyes; then :
  48105. cat >>confdefs.h <<_ACEOF
  48106. #define HAVE_ISNANL 1
  48107. _ACEOF
  48108. fi
  48109. done
  48110. else
  48111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  48112. $as_echo_n "checking for _isnanl declaration... " >&6; }
  48113. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  48114. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  48115. $as_echo_n "(cached) " >&6
  48116. else
  48117. ac_ext=cpp
  48118. ac_cpp='$CXXCPP $CPPFLAGS'
  48119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48123. /* end confdefs.h. */
  48124. #include <math.h>
  48125. #ifdef HAVE_IEEEFP_H
  48126. #include <ieeefp.h>
  48127. #endif
  48128. int
  48129. main ()
  48130. {
  48131. _isnanl(0);
  48132. ;
  48133. return 0;
  48134. }
  48135. _ACEOF
  48136. if ac_fn_cxx_try_compile "$LINENO"; then :
  48137. glibcxx_cv_func__isnanl_use=yes
  48138. else
  48139. glibcxx_cv_func__isnanl_use=no
  48140. fi
  48141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48142. ac_ext=c
  48143. ac_cpp='$CPP $CPPFLAGS'
  48144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48147. fi
  48148. fi
  48149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  48150. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  48151. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  48152. for ac_func in _isnanl
  48153. do :
  48154. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  48155. if test "x$ac_cv_func__isnanl" = xyes; then :
  48156. cat >>confdefs.h <<_ACEOF
  48157. #define HAVE__ISNANL 1
  48158. _ACEOF
  48159. fi
  48160. done
  48161. fi
  48162. fi
  48163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  48164. $as_echo_n "checking for isinfl declaration... " >&6; }
  48165. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  48166. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  48167. $as_echo_n "(cached) " >&6
  48168. else
  48169. ac_ext=cpp
  48170. ac_cpp='$CXXCPP $CPPFLAGS'
  48171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48175. /* end confdefs.h. */
  48176. #include <math.h>
  48177. #ifdef HAVE_IEEEFP_H
  48178. #include <ieeefp.h>
  48179. #endif
  48180. int
  48181. main ()
  48182. {
  48183. isinfl(0);
  48184. ;
  48185. return 0;
  48186. }
  48187. _ACEOF
  48188. if ac_fn_cxx_try_compile "$LINENO"; then :
  48189. glibcxx_cv_func_isinfl_use=yes
  48190. else
  48191. glibcxx_cv_func_isinfl_use=no
  48192. fi
  48193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48194. ac_ext=c
  48195. ac_cpp='$CPP $CPPFLAGS'
  48196. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48197. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48198. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48199. fi
  48200. fi
  48201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  48202. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  48203. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  48204. for ac_func in isinfl
  48205. do :
  48206. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  48207. if test "x$ac_cv_func_isinfl" = xyes; then :
  48208. cat >>confdefs.h <<_ACEOF
  48209. #define HAVE_ISINFL 1
  48210. _ACEOF
  48211. fi
  48212. done
  48213. else
  48214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  48215. $as_echo_n "checking for _isinfl declaration... " >&6; }
  48216. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  48217. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  48218. $as_echo_n "(cached) " >&6
  48219. else
  48220. ac_ext=cpp
  48221. ac_cpp='$CXXCPP $CPPFLAGS'
  48222. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48223. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48224. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48226. /* end confdefs.h. */
  48227. #include <math.h>
  48228. #ifdef HAVE_IEEEFP_H
  48229. #include <ieeefp.h>
  48230. #endif
  48231. int
  48232. main ()
  48233. {
  48234. _isinfl(0);
  48235. ;
  48236. return 0;
  48237. }
  48238. _ACEOF
  48239. if ac_fn_cxx_try_compile "$LINENO"; then :
  48240. glibcxx_cv_func__isinfl_use=yes
  48241. else
  48242. glibcxx_cv_func__isinfl_use=no
  48243. fi
  48244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48245. ac_ext=c
  48246. ac_cpp='$CPP $CPPFLAGS'
  48247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48250. fi
  48251. fi
  48252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  48253. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  48254. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  48255. for ac_func in _isinfl
  48256. do :
  48257. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  48258. if test "x$ac_cv_func__isinfl" = xyes; then :
  48259. cat >>confdefs.h <<_ACEOF
  48260. #define HAVE__ISINFL 1
  48261. _ACEOF
  48262. fi
  48263. done
  48264. fi
  48265. fi
  48266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  48267. $as_echo_n "checking for atan2l declaration... " >&6; }
  48268. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  48269. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  48270. $as_echo_n "(cached) " >&6
  48271. else
  48272. ac_ext=cpp
  48273. ac_cpp='$CXXCPP $CPPFLAGS'
  48274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48278. /* end confdefs.h. */
  48279. #include <math.h>
  48280. int
  48281. main ()
  48282. {
  48283. atan2l(0, 0);
  48284. ;
  48285. return 0;
  48286. }
  48287. _ACEOF
  48288. if ac_fn_cxx_try_compile "$LINENO"; then :
  48289. glibcxx_cv_func_atan2l_use=yes
  48290. else
  48291. glibcxx_cv_func_atan2l_use=no
  48292. fi
  48293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48294. ac_ext=c
  48295. ac_cpp='$CPP $CPPFLAGS'
  48296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48299. fi
  48300. fi
  48301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  48302. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  48303. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  48304. for ac_func in atan2l
  48305. do :
  48306. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  48307. if test "x$ac_cv_func_atan2l" = xyes; then :
  48308. cat >>confdefs.h <<_ACEOF
  48309. #define HAVE_ATAN2L 1
  48310. _ACEOF
  48311. fi
  48312. done
  48313. else
  48314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  48315. $as_echo_n "checking for _atan2l declaration... " >&6; }
  48316. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  48317. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  48318. $as_echo_n "(cached) " >&6
  48319. else
  48320. ac_ext=cpp
  48321. ac_cpp='$CXXCPP $CPPFLAGS'
  48322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48326. /* end confdefs.h. */
  48327. #include <math.h>
  48328. int
  48329. main ()
  48330. {
  48331. _atan2l(0, 0);
  48332. ;
  48333. return 0;
  48334. }
  48335. _ACEOF
  48336. if ac_fn_cxx_try_compile "$LINENO"; then :
  48337. glibcxx_cv_func__atan2l_use=yes
  48338. else
  48339. glibcxx_cv_func__atan2l_use=no
  48340. fi
  48341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48342. ac_ext=c
  48343. ac_cpp='$CPP $CPPFLAGS'
  48344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48347. fi
  48348. fi
  48349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  48350. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  48351. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  48352. for ac_func in _atan2l
  48353. do :
  48354. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  48355. if test "x$ac_cv_func__atan2l" = xyes; then :
  48356. cat >>confdefs.h <<_ACEOF
  48357. #define HAVE__ATAN2L 1
  48358. _ACEOF
  48359. fi
  48360. done
  48361. fi
  48362. fi
  48363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  48364. $as_echo_n "checking for expl declaration... " >&6; }
  48365. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  48366. if ${glibcxx_cv_func_expl_use+:} false; then :
  48367. $as_echo_n "(cached) " >&6
  48368. else
  48369. ac_ext=cpp
  48370. ac_cpp='$CXXCPP $CPPFLAGS'
  48371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48375. /* end confdefs.h. */
  48376. #include <math.h>
  48377. #ifdef HAVE_IEEEFP_H
  48378. #include <ieeefp.h>
  48379. #endif
  48380. int
  48381. main ()
  48382. {
  48383. expl(0);
  48384. ;
  48385. return 0;
  48386. }
  48387. _ACEOF
  48388. if ac_fn_cxx_try_compile "$LINENO"; then :
  48389. glibcxx_cv_func_expl_use=yes
  48390. else
  48391. glibcxx_cv_func_expl_use=no
  48392. fi
  48393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48394. ac_ext=c
  48395. ac_cpp='$CPP $CPPFLAGS'
  48396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48399. fi
  48400. fi
  48401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  48402. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  48403. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  48404. for ac_func in expl
  48405. do :
  48406. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  48407. if test "x$ac_cv_func_expl" = xyes; then :
  48408. cat >>confdefs.h <<_ACEOF
  48409. #define HAVE_EXPL 1
  48410. _ACEOF
  48411. fi
  48412. done
  48413. else
  48414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  48415. $as_echo_n "checking for _expl declaration... " >&6; }
  48416. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  48417. if ${glibcxx_cv_func__expl_use+:} false; then :
  48418. $as_echo_n "(cached) " >&6
  48419. else
  48420. ac_ext=cpp
  48421. ac_cpp='$CXXCPP $CPPFLAGS'
  48422. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48423. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48424. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48426. /* end confdefs.h. */
  48427. #include <math.h>
  48428. #ifdef HAVE_IEEEFP_H
  48429. #include <ieeefp.h>
  48430. #endif
  48431. int
  48432. main ()
  48433. {
  48434. _expl(0);
  48435. ;
  48436. return 0;
  48437. }
  48438. _ACEOF
  48439. if ac_fn_cxx_try_compile "$LINENO"; then :
  48440. glibcxx_cv_func__expl_use=yes
  48441. else
  48442. glibcxx_cv_func__expl_use=no
  48443. fi
  48444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48445. ac_ext=c
  48446. ac_cpp='$CPP $CPPFLAGS'
  48447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48450. fi
  48451. fi
  48452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  48453. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  48454. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  48455. for ac_func in _expl
  48456. do :
  48457. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  48458. if test "x$ac_cv_func__expl" = xyes; then :
  48459. cat >>confdefs.h <<_ACEOF
  48460. #define HAVE__EXPL 1
  48461. _ACEOF
  48462. fi
  48463. done
  48464. fi
  48465. fi
  48466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  48467. $as_echo_n "checking for fabsl declaration... " >&6; }
  48468. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  48469. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  48470. $as_echo_n "(cached) " >&6
  48471. else
  48472. ac_ext=cpp
  48473. ac_cpp='$CXXCPP $CPPFLAGS'
  48474. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48475. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48476. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48478. /* end confdefs.h. */
  48479. #include <math.h>
  48480. #ifdef HAVE_IEEEFP_H
  48481. #include <ieeefp.h>
  48482. #endif
  48483. int
  48484. main ()
  48485. {
  48486. fabsl(0);
  48487. ;
  48488. return 0;
  48489. }
  48490. _ACEOF
  48491. if ac_fn_cxx_try_compile "$LINENO"; then :
  48492. glibcxx_cv_func_fabsl_use=yes
  48493. else
  48494. glibcxx_cv_func_fabsl_use=no
  48495. fi
  48496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48497. ac_ext=c
  48498. ac_cpp='$CPP $CPPFLAGS'
  48499. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48500. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48502. fi
  48503. fi
  48504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  48505. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  48506. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  48507. for ac_func in fabsl
  48508. do :
  48509. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  48510. if test "x$ac_cv_func_fabsl" = xyes; then :
  48511. cat >>confdefs.h <<_ACEOF
  48512. #define HAVE_FABSL 1
  48513. _ACEOF
  48514. fi
  48515. done
  48516. else
  48517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  48518. $as_echo_n "checking for _fabsl declaration... " >&6; }
  48519. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  48520. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  48521. $as_echo_n "(cached) " >&6
  48522. else
  48523. ac_ext=cpp
  48524. ac_cpp='$CXXCPP $CPPFLAGS'
  48525. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48526. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48527. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48529. /* end confdefs.h. */
  48530. #include <math.h>
  48531. #ifdef HAVE_IEEEFP_H
  48532. #include <ieeefp.h>
  48533. #endif
  48534. int
  48535. main ()
  48536. {
  48537. _fabsl(0);
  48538. ;
  48539. return 0;
  48540. }
  48541. _ACEOF
  48542. if ac_fn_cxx_try_compile "$LINENO"; then :
  48543. glibcxx_cv_func__fabsl_use=yes
  48544. else
  48545. glibcxx_cv_func__fabsl_use=no
  48546. fi
  48547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48548. ac_ext=c
  48549. ac_cpp='$CPP $CPPFLAGS'
  48550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48553. fi
  48554. fi
  48555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  48556. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  48557. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  48558. for ac_func in _fabsl
  48559. do :
  48560. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  48561. if test "x$ac_cv_func__fabsl" = xyes; then :
  48562. cat >>confdefs.h <<_ACEOF
  48563. #define HAVE__FABSL 1
  48564. _ACEOF
  48565. fi
  48566. done
  48567. fi
  48568. fi
  48569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  48570. $as_echo_n "checking for fmodl declaration... " >&6; }
  48571. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  48572. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  48573. $as_echo_n "(cached) " >&6
  48574. else
  48575. ac_ext=cpp
  48576. ac_cpp='$CXXCPP $CPPFLAGS'
  48577. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48578. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48579. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48581. /* end confdefs.h. */
  48582. #include <math.h>
  48583. int
  48584. main ()
  48585. {
  48586. fmodl(0, 0);
  48587. ;
  48588. return 0;
  48589. }
  48590. _ACEOF
  48591. if ac_fn_cxx_try_compile "$LINENO"; then :
  48592. glibcxx_cv_func_fmodl_use=yes
  48593. else
  48594. glibcxx_cv_func_fmodl_use=no
  48595. fi
  48596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48597. ac_ext=c
  48598. ac_cpp='$CPP $CPPFLAGS'
  48599. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48600. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48601. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48602. fi
  48603. fi
  48604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  48605. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  48606. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  48607. for ac_func in fmodl
  48608. do :
  48609. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  48610. if test "x$ac_cv_func_fmodl" = xyes; then :
  48611. cat >>confdefs.h <<_ACEOF
  48612. #define HAVE_FMODL 1
  48613. _ACEOF
  48614. fi
  48615. done
  48616. else
  48617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  48618. $as_echo_n "checking for _fmodl declaration... " >&6; }
  48619. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  48620. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  48621. $as_echo_n "(cached) " >&6
  48622. else
  48623. ac_ext=cpp
  48624. ac_cpp='$CXXCPP $CPPFLAGS'
  48625. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48626. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48627. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48629. /* end confdefs.h. */
  48630. #include <math.h>
  48631. int
  48632. main ()
  48633. {
  48634. _fmodl(0, 0);
  48635. ;
  48636. return 0;
  48637. }
  48638. _ACEOF
  48639. if ac_fn_cxx_try_compile "$LINENO"; then :
  48640. glibcxx_cv_func__fmodl_use=yes
  48641. else
  48642. glibcxx_cv_func__fmodl_use=no
  48643. fi
  48644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48645. ac_ext=c
  48646. ac_cpp='$CPP $CPPFLAGS'
  48647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48650. fi
  48651. fi
  48652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  48653. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  48654. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  48655. for ac_func in _fmodl
  48656. do :
  48657. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  48658. if test "x$ac_cv_func__fmodl" = xyes; then :
  48659. cat >>confdefs.h <<_ACEOF
  48660. #define HAVE__FMODL 1
  48661. _ACEOF
  48662. fi
  48663. done
  48664. fi
  48665. fi
  48666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  48667. $as_echo_n "checking for frexpl declaration... " >&6; }
  48668. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  48669. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  48670. $as_echo_n "(cached) " >&6
  48671. else
  48672. ac_ext=cpp
  48673. ac_cpp='$CXXCPP $CPPFLAGS'
  48674. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48675. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48676. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48678. /* end confdefs.h. */
  48679. #include <math.h>
  48680. int
  48681. main ()
  48682. {
  48683. frexpl(0, 0);
  48684. ;
  48685. return 0;
  48686. }
  48687. _ACEOF
  48688. if ac_fn_cxx_try_compile "$LINENO"; then :
  48689. glibcxx_cv_func_frexpl_use=yes
  48690. else
  48691. glibcxx_cv_func_frexpl_use=no
  48692. fi
  48693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48694. ac_ext=c
  48695. ac_cpp='$CPP $CPPFLAGS'
  48696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48699. fi
  48700. fi
  48701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  48702. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  48703. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  48704. for ac_func in frexpl
  48705. do :
  48706. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  48707. if test "x$ac_cv_func_frexpl" = xyes; then :
  48708. cat >>confdefs.h <<_ACEOF
  48709. #define HAVE_FREXPL 1
  48710. _ACEOF
  48711. fi
  48712. done
  48713. else
  48714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  48715. $as_echo_n "checking for _frexpl declaration... " >&6; }
  48716. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  48717. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  48718. $as_echo_n "(cached) " >&6
  48719. else
  48720. ac_ext=cpp
  48721. ac_cpp='$CXXCPP $CPPFLAGS'
  48722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48726. /* end confdefs.h. */
  48727. #include <math.h>
  48728. int
  48729. main ()
  48730. {
  48731. _frexpl(0, 0);
  48732. ;
  48733. return 0;
  48734. }
  48735. _ACEOF
  48736. if ac_fn_cxx_try_compile "$LINENO"; then :
  48737. glibcxx_cv_func__frexpl_use=yes
  48738. else
  48739. glibcxx_cv_func__frexpl_use=no
  48740. fi
  48741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48742. ac_ext=c
  48743. ac_cpp='$CPP $CPPFLAGS'
  48744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48747. fi
  48748. fi
  48749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  48750. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  48751. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  48752. for ac_func in _frexpl
  48753. do :
  48754. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  48755. if test "x$ac_cv_func__frexpl" = xyes; then :
  48756. cat >>confdefs.h <<_ACEOF
  48757. #define HAVE__FREXPL 1
  48758. _ACEOF
  48759. fi
  48760. done
  48761. fi
  48762. fi
  48763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  48764. $as_echo_n "checking for hypotl declaration... " >&6; }
  48765. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  48766. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  48767. $as_echo_n "(cached) " >&6
  48768. else
  48769. ac_ext=cpp
  48770. ac_cpp='$CXXCPP $CPPFLAGS'
  48771. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48772. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48773. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48775. /* end confdefs.h. */
  48776. #include <math.h>
  48777. int
  48778. main ()
  48779. {
  48780. hypotl(0, 0);
  48781. ;
  48782. return 0;
  48783. }
  48784. _ACEOF
  48785. if ac_fn_cxx_try_compile "$LINENO"; then :
  48786. glibcxx_cv_func_hypotl_use=yes
  48787. else
  48788. glibcxx_cv_func_hypotl_use=no
  48789. fi
  48790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48791. ac_ext=c
  48792. ac_cpp='$CPP $CPPFLAGS'
  48793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48796. fi
  48797. fi
  48798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  48799. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  48800. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  48801. for ac_func in hypotl
  48802. do :
  48803. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  48804. if test "x$ac_cv_func_hypotl" = xyes; then :
  48805. cat >>confdefs.h <<_ACEOF
  48806. #define HAVE_HYPOTL 1
  48807. _ACEOF
  48808. fi
  48809. done
  48810. else
  48811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  48812. $as_echo_n "checking for _hypotl declaration... " >&6; }
  48813. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  48814. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  48815. $as_echo_n "(cached) " >&6
  48816. else
  48817. ac_ext=cpp
  48818. ac_cpp='$CXXCPP $CPPFLAGS'
  48819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48823. /* end confdefs.h. */
  48824. #include <math.h>
  48825. int
  48826. main ()
  48827. {
  48828. _hypotl(0, 0);
  48829. ;
  48830. return 0;
  48831. }
  48832. _ACEOF
  48833. if ac_fn_cxx_try_compile "$LINENO"; then :
  48834. glibcxx_cv_func__hypotl_use=yes
  48835. else
  48836. glibcxx_cv_func__hypotl_use=no
  48837. fi
  48838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48839. ac_ext=c
  48840. ac_cpp='$CPP $CPPFLAGS'
  48841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48844. fi
  48845. fi
  48846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  48847. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  48848. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  48849. for ac_func in _hypotl
  48850. do :
  48851. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  48852. if test "x$ac_cv_func__hypotl" = xyes; then :
  48853. cat >>confdefs.h <<_ACEOF
  48854. #define HAVE__HYPOTL 1
  48855. _ACEOF
  48856. fi
  48857. done
  48858. fi
  48859. fi
  48860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  48861. $as_echo_n "checking for ldexpl declaration... " >&6; }
  48862. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  48863. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  48864. $as_echo_n "(cached) " >&6
  48865. else
  48866. ac_ext=cpp
  48867. ac_cpp='$CXXCPP $CPPFLAGS'
  48868. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48869. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48870. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48872. /* end confdefs.h. */
  48873. #include <math.h>
  48874. int
  48875. main ()
  48876. {
  48877. ldexpl(0, 0);
  48878. ;
  48879. return 0;
  48880. }
  48881. _ACEOF
  48882. if ac_fn_cxx_try_compile "$LINENO"; then :
  48883. glibcxx_cv_func_ldexpl_use=yes
  48884. else
  48885. glibcxx_cv_func_ldexpl_use=no
  48886. fi
  48887. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48888. ac_ext=c
  48889. ac_cpp='$CPP $CPPFLAGS'
  48890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48893. fi
  48894. fi
  48895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  48896. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  48897. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  48898. for ac_func in ldexpl
  48899. do :
  48900. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  48901. if test "x$ac_cv_func_ldexpl" = xyes; then :
  48902. cat >>confdefs.h <<_ACEOF
  48903. #define HAVE_LDEXPL 1
  48904. _ACEOF
  48905. fi
  48906. done
  48907. else
  48908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  48909. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  48910. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  48911. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  48912. $as_echo_n "(cached) " >&6
  48913. else
  48914. ac_ext=cpp
  48915. ac_cpp='$CXXCPP $CPPFLAGS'
  48916. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48917. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48918. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48920. /* end confdefs.h. */
  48921. #include <math.h>
  48922. int
  48923. main ()
  48924. {
  48925. _ldexpl(0, 0);
  48926. ;
  48927. return 0;
  48928. }
  48929. _ACEOF
  48930. if ac_fn_cxx_try_compile "$LINENO"; then :
  48931. glibcxx_cv_func__ldexpl_use=yes
  48932. else
  48933. glibcxx_cv_func__ldexpl_use=no
  48934. fi
  48935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48936. ac_ext=c
  48937. ac_cpp='$CPP $CPPFLAGS'
  48938. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48939. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48940. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48941. fi
  48942. fi
  48943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  48944. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  48945. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  48946. for ac_func in _ldexpl
  48947. do :
  48948. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  48949. if test "x$ac_cv_func__ldexpl" = xyes; then :
  48950. cat >>confdefs.h <<_ACEOF
  48951. #define HAVE__LDEXPL 1
  48952. _ACEOF
  48953. fi
  48954. done
  48955. fi
  48956. fi
  48957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  48958. $as_echo_n "checking for logl declaration... " >&6; }
  48959. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  48960. if ${glibcxx_cv_func_logl_use+:} false; then :
  48961. $as_echo_n "(cached) " >&6
  48962. else
  48963. ac_ext=cpp
  48964. ac_cpp='$CXXCPP $CPPFLAGS'
  48965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  48968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  48969. /* end confdefs.h. */
  48970. #include <math.h>
  48971. #ifdef HAVE_IEEEFP_H
  48972. #include <ieeefp.h>
  48973. #endif
  48974. int
  48975. main ()
  48976. {
  48977. logl(0);
  48978. ;
  48979. return 0;
  48980. }
  48981. _ACEOF
  48982. if ac_fn_cxx_try_compile "$LINENO"; then :
  48983. glibcxx_cv_func_logl_use=yes
  48984. else
  48985. glibcxx_cv_func_logl_use=no
  48986. fi
  48987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  48988. ac_ext=c
  48989. ac_cpp='$CPP $CPPFLAGS'
  48990. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  48991. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  48992. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  48993. fi
  48994. fi
  48995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  48996. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  48997. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  48998. for ac_func in logl
  48999. do :
  49000. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  49001. if test "x$ac_cv_func_logl" = xyes; then :
  49002. cat >>confdefs.h <<_ACEOF
  49003. #define HAVE_LOGL 1
  49004. _ACEOF
  49005. fi
  49006. done
  49007. else
  49008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  49009. $as_echo_n "checking for _logl declaration... " >&6; }
  49010. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  49011. if ${glibcxx_cv_func__logl_use+:} false; then :
  49012. $as_echo_n "(cached) " >&6
  49013. else
  49014. ac_ext=cpp
  49015. ac_cpp='$CXXCPP $CPPFLAGS'
  49016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49020. /* end confdefs.h. */
  49021. #include <math.h>
  49022. #ifdef HAVE_IEEEFP_H
  49023. #include <ieeefp.h>
  49024. #endif
  49025. int
  49026. main ()
  49027. {
  49028. _logl(0);
  49029. ;
  49030. return 0;
  49031. }
  49032. _ACEOF
  49033. if ac_fn_cxx_try_compile "$LINENO"; then :
  49034. glibcxx_cv_func__logl_use=yes
  49035. else
  49036. glibcxx_cv_func__logl_use=no
  49037. fi
  49038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49039. ac_ext=c
  49040. ac_cpp='$CPP $CPPFLAGS'
  49041. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49042. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49043. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49044. fi
  49045. fi
  49046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  49047. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  49048. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  49049. for ac_func in _logl
  49050. do :
  49051. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  49052. if test "x$ac_cv_func__logl" = xyes; then :
  49053. cat >>confdefs.h <<_ACEOF
  49054. #define HAVE__LOGL 1
  49055. _ACEOF
  49056. fi
  49057. done
  49058. fi
  49059. fi
  49060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  49061. $as_echo_n "checking for log10l declaration... " >&6; }
  49062. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  49063. if ${glibcxx_cv_func_log10l_use+:} false; then :
  49064. $as_echo_n "(cached) " >&6
  49065. else
  49066. ac_ext=cpp
  49067. ac_cpp='$CXXCPP $CPPFLAGS'
  49068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49072. /* end confdefs.h. */
  49073. #include <math.h>
  49074. #ifdef HAVE_IEEEFP_H
  49075. #include <ieeefp.h>
  49076. #endif
  49077. int
  49078. main ()
  49079. {
  49080. log10l(0);
  49081. ;
  49082. return 0;
  49083. }
  49084. _ACEOF
  49085. if ac_fn_cxx_try_compile "$LINENO"; then :
  49086. glibcxx_cv_func_log10l_use=yes
  49087. else
  49088. glibcxx_cv_func_log10l_use=no
  49089. fi
  49090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49091. ac_ext=c
  49092. ac_cpp='$CPP $CPPFLAGS'
  49093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49096. fi
  49097. fi
  49098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  49099. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  49100. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  49101. for ac_func in log10l
  49102. do :
  49103. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  49104. if test "x$ac_cv_func_log10l" = xyes; then :
  49105. cat >>confdefs.h <<_ACEOF
  49106. #define HAVE_LOG10L 1
  49107. _ACEOF
  49108. fi
  49109. done
  49110. else
  49111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  49112. $as_echo_n "checking for _log10l declaration... " >&6; }
  49113. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  49114. if ${glibcxx_cv_func__log10l_use+:} false; then :
  49115. $as_echo_n "(cached) " >&6
  49116. else
  49117. ac_ext=cpp
  49118. ac_cpp='$CXXCPP $CPPFLAGS'
  49119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49123. /* end confdefs.h. */
  49124. #include <math.h>
  49125. #ifdef HAVE_IEEEFP_H
  49126. #include <ieeefp.h>
  49127. #endif
  49128. int
  49129. main ()
  49130. {
  49131. _log10l(0);
  49132. ;
  49133. return 0;
  49134. }
  49135. _ACEOF
  49136. if ac_fn_cxx_try_compile "$LINENO"; then :
  49137. glibcxx_cv_func__log10l_use=yes
  49138. else
  49139. glibcxx_cv_func__log10l_use=no
  49140. fi
  49141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49142. ac_ext=c
  49143. ac_cpp='$CPP $CPPFLAGS'
  49144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49147. fi
  49148. fi
  49149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  49150. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  49151. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  49152. for ac_func in _log10l
  49153. do :
  49154. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  49155. if test "x$ac_cv_func__log10l" = xyes; then :
  49156. cat >>confdefs.h <<_ACEOF
  49157. #define HAVE__LOG10L 1
  49158. _ACEOF
  49159. fi
  49160. done
  49161. fi
  49162. fi
  49163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  49164. $as_echo_n "checking for modfl declaration... " >&6; }
  49165. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  49166. if ${glibcxx_cv_func_modfl_use+:} false; then :
  49167. $as_echo_n "(cached) " >&6
  49168. else
  49169. ac_ext=cpp
  49170. ac_cpp='$CXXCPP $CPPFLAGS'
  49171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49175. /* end confdefs.h. */
  49176. #include <math.h>
  49177. int
  49178. main ()
  49179. {
  49180. modfl(0, 0);
  49181. ;
  49182. return 0;
  49183. }
  49184. _ACEOF
  49185. if ac_fn_cxx_try_compile "$LINENO"; then :
  49186. glibcxx_cv_func_modfl_use=yes
  49187. else
  49188. glibcxx_cv_func_modfl_use=no
  49189. fi
  49190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49191. ac_ext=c
  49192. ac_cpp='$CPP $CPPFLAGS'
  49193. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49194. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49195. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49196. fi
  49197. fi
  49198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  49199. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  49200. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  49201. for ac_func in modfl
  49202. do :
  49203. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  49204. if test "x$ac_cv_func_modfl" = xyes; then :
  49205. cat >>confdefs.h <<_ACEOF
  49206. #define HAVE_MODFL 1
  49207. _ACEOF
  49208. fi
  49209. done
  49210. else
  49211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  49212. $as_echo_n "checking for _modfl declaration... " >&6; }
  49213. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  49214. if ${glibcxx_cv_func__modfl_use+:} false; then :
  49215. $as_echo_n "(cached) " >&6
  49216. else
  49217. ac_ext=cpp
  49218. ac_cpp='$CXXCPP $CPPFLAGS'
  49219. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49220. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49221. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49223. /* end confdefs.h. */
  49224. #include <math.h>
  49225. int
  49226. main ()
  49227. {
  49228. _modfl(0, 0);
  49229. ;
  49230. return 0;
  49231. }
  49232. _ACEOF
  49233. if ac_fn_cxx_try_compile "$LINENO"; then :
  49234. glibcxx_cv_func__modfl_use=yes
  49235. else
  49236. glibcxx_cv_func__modfl_use=no
  49237. fi
  49238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49239. ac_ext=c
  49240. ac_cpp='$CPP $CPPFLAGS'
  49241. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49242. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49243. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49244. fi
  49245. fi
  49246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  49247. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  49248. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  49249. for ac_func in _modfl
  49250. do :
  49251. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  49252. if test "x$ac_cv_func__modfl" = xyes; then :
  49253. cat >>confdefs.h <<_ACEOF
  49254. #define HAVE__MODFL 1
  49255. _ACEOF
  49256. fi
  49257. done
  49258. fi
  49259. fi
  49260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  49261. $as_echo_n "checking for powl declaration... " >&6; }
  49262. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  49263. if ${glibcxx_cv_func_powl_use+:} false; then :
  49264. $as_echo_n "(cached) " >&6
  49265. else
  49266. ac_ext=cpp
  49267. ac_cpp='$CXXCPP $CPPFLAGS'
  49268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49272. /* end confdefs.h. */
  49273. #include <math.h>
  49274. int
  49275. main ()
  49276. {
  49277. powl(0, 0);
  49278. ;
  49279. return 0;
  49280. }
  49281. _ACEOF
  49282. if ac_fn_cxx_try_compile "$LINENO"; then :
  49283. glibcxx_cv_func_powl_use=yes
  49284. else
  49285. glibcxx_cv_func_powl_use=no
  49286. fi
  49287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49288. ac_ext=c
  49289. ac_cpp='$CPP $CPPFLAGS'
  49290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49293. fi
  49294. fi
  49295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  49296. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  49297. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  49298. for ac_func in powl
  49299. do :
  49300. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  49301. if test "x$ac_cv_func_powl" = xyes; then :
  49302. cat >>confdefs.h <<_ACEOF
  49303. #define HAVE_POWL 1
  49304. _ACEOF
  49305. fi
  49306. done
  49307. else
  49308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  49309. $as_echo_n "checking for _powl declaration... " >&6; }
  49310. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  49311. if ${glibcxx_cv_func__powl_use+:} false; then :
  49312. $as_echo_n "(cached) " >&6
  49313. else
  49314. ac_ext=cpp
  49315. ac_cpp='$CXXCPP $CPPFLAGS'
  49316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49320. /* end confdefs.h. */
  49321. #include <math.h>
  49322. int
  49323. main ()
  49324. {
  49325. _powl(0, 0);
  49326. ;
  49327. return 0;
  49328. }
  49329. _ACEOF
  49330. if ac_fn_cxx_try_compile "$LINENO"; then :
  49331. glibcxx_cv_func__powl_use=yes
  49332. else
  49333. glibcxx_cv_func__powl_use=no
  49334. fi
  49335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49336. ac_ext=c
  49337. ac_cpp='$CPP $CPPFLAGS'
  49338. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49339. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49340. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49341. fi
  49342. fi
  49343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  49344. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  49345. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  49346. for ac_func in _powl
  49347. do :
  49348. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  49349. if test "x$ac_cv_func__powl" = xyes; then :
  49350. cat >>confdefs.h <<_ACEOF
  49351. #define HAVE__POWL 1
  49352. _ACEOF
  49353. fi
  49354. done
  49355. fi
  49356. fi
  49357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  49358. $as_echo_n "checking for sqrtl declaration... " >&6; }
  49359. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  49360. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  49361. $as_echo_n "(cached) " >&6
  49362. else
  49363. ac_ext=cpp
  49364. ac_cpp='$CXXCPP $CPPFLAGS'
  49365. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49366. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49367. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49369. /* end confdefs.h. */
  49370. #include <math.h>
  49371. #ifdef HAVE_IEEEFP_H
  49372. #include <ieeefp.h>
  49373. #endif
  49374. int
  49375. main ()
  49376. {
  49377. sqrtl(0);
  49378. ;
  49379. return 0;
  49380. }
  49381. _ACEOF
  49382. if ac_fn_cxx_try_compile "$LINENO"; then :
  49383. glibcxx_cv_func_sqrtl_use=yes
  49384. else
  49385. glibcxx_cv_func_sqrtl_use=no
  49386. fi
  49387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49388. ac_ext=c
  49389. ac_cpp='$CPP $CPPFLAGS'
  49390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49393. fi
  49394. fi
  49395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  49396. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  49397. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  49398. for ac_func in sqrtl
  49399. do :
  49400. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  49401. if test "x$ac_cv_func_sqrtl" = xyes; then :
  49402. cat >>confdefs.h <<_ACEOF
  49403. #define HAVE_SQRTL 1
  49404. _ACEOF
  49405. fi
  49406. done
  49407. else
  49408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  49409. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  49410. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  49411. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  49412. $as_echo_n "(cached) " >&6
  49413. else
  49414. ac_ext=cpp
  49415. ac_cpp='$CXXCPP $CPPFLAGS'
  49416. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49417. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49418. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49420. /* end confdefs.h. */
  49421. #include <math.h>
  49422. #ifdef HAVE_IEEEFP_H
  49423. #include <ieeefp.h>
  49424. #endif
  49425. int
  49426. main ()
  49427. {
  49428. _sqrtl(0);
  49429. ;
  49430. return 0;
  49431. }
  49432. _ACEOF
  49433. if ac_fn_cxx_try_compile "$LINENO"; then :
  49434. glibcxx_cv_func__sqrtl_use=yes
  49435. else
  49436. glibcxx_cv_func__sqrtl_use=no
  49437. fi
  49438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49439. ac_ext=c
  49440. ac_cpp='$CPP $CPPFLAGS'
  49441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49444. fi
  49445. fi
  49446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  49447. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  49448. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  49449. for ac_func in _sqrtl
  49450. do :
  49451. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  49452. if test "x$ac_cv_func__sqrtl" = xyes; then :
  49453. cat >>confdefs.h <<_ACEOF
  49454. #define HAVE__SQRTL 1
  49455. _ACEOF
  49456. fi
  49457. done
  49458. fi
  49459. fi
  49460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  49461. $as_echo_n "checking for sincosl declaration... " >&6; }
  49462. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  49463. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  49464. $as_echo_n "(cached) " >&6
  49465. else
  49466. ac_ext=cpp
  49467. ac_cpp='$CXXCPP $CPPFLAGS'
  49468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49472. /* end confdefs.h. */
  49473. #include <math.h>
  49474. int
  49475. main ()
  49476. {
  49477. sincosl(0, 0, 0);
  49478. ;
  49479. return 0;
  49480. }
  49481. _ACEOF
  49482. if ac_fn_cxx_try_compile "$LINENO"; then :
  49483. glibcxx_cv_func_sincosl_use=yes
  49484. else
  49485. glibcxx_cv_func_sincosl_use=no
  49486. fi
  49487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49488. ac_ext=c
  49489. ac_cpp='$CPP $CPPFLAGS'
  49490. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49491. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49492. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49493. fi
  49494. fi
  49495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  49496. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  49497. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  49498. for ac_func in sincosl
  49499. do :
  49500. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  49501. if test "x$ac_cv_func_sincosl" = xyes; then :
  49502. cat >>confdefs.h <<_ACEOF
  49503. #define HAVE_SINCOSL 1
  49504. _ACEOF
  49505. fi
  49506. done
  49507. else
  49508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  49509. $as_echo_n "checking for _sincosl declaration... " >&6; }
  49510. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  49511. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  49512. $as_echo_n "(cached) " >&6
  49513. else
  49514. ac_ext=cpp
  49515. ac_cpp='$CXXCPP $CPPFLAGS'
  49516. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49517. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49518. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49520. /* end confdefs.h. */
  49521. #include <math.h>
  49522. int
  49523. main ()
  49524. {
  49525. _sincosl(0, 0, 0);
  49526. ;
  49527. return 0;
  49528. }
  49529. _ACEOF
  49530. if ac_fn_cxx_try_compile "$LINENO"; then :
  49531. glibcxx_cv_func__sincosl_use=yes
  49532. else
  49533. glibcxx_cv_func__sincosl_use=no
  49534. fi
  49535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49536. ac_ext=c
  49537. ac_cpp='$CPP $CPPFLAGS'
  49538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49541. fi
  49542. fi
  49543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  49544. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  49545. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  49546. for ac_func in _sincosl
  49547. do :
  49548. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  49549. if test "x$ac_cv_func__sincosl" = xyes; then :
  49550. cat >>confdefs.h <<_ACEOF
  49551. #define HAVE__SINCOSL 1
  49552. _ACEOF
  49553. fi
  49554. done
  49555. fi
  49556. fi
  49557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  49558. $as_echo_n "checking for finitel declaration... " >&6; }
  49559. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  49560. if ${glibcxx_cv_func_finitel_use+:} false; then :
  49561. $as_echo_n "(cached) " >&6
  49562. else
  49563. ac_ext=cpp
  49564. ac_cpp='$CXXCPP $CPPFLAGS'
  49565. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49566. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49567. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49569. /* end confdefs.h. */
  49570. #include <math.h>
  49571. #ifdef HAVE_IEEEFP_H
  49572. #include <ieeefp.h>
  49573. #endif
  49574. int
  49575. main ()
  49576. {
  49577. finitel(0);
  49578. ;
  49579. return 0;
  49580. }
  49581. _ACEOF
  49582. if ac_fn_cxx_try_compile "$LINENO"; then :
  49583. glibcxx_cv_func_finitel_use=yes
  49584. else
  49585. glibcxx_cv_func_finitel_use=no
  49586. fi
  49587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49588. ac_ext=c
  49589. ac_cpp='$CPP $CPPFLAGS'
  49590. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49591. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49592. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49593. fi
  49594. fi
  49595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  49596. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  49597. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  49598. for ac_func in finitel
  49599. do :
  49600. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  49601. if test "x$ac_cv_func_finitel" = xyes; then :
  49602. cat >>confdefs.h <<_ACEOF
  49603. #define HAVE_FINITEL 1
  49604. _ACEOF
  49605. fi
  49606. done
  49607. else
  49608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  49609. $as_echo_n "checking for _finitel declaration... " >&6; }
  49610. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  49611. if ${glibcxx_cv_func__finitel_use+:} false; then :
  49612. $as_echo_n "(cached) " >&6
  49613. else
  49614. ac_ext=cpp
  49615. ac_cpp='$CXXCPP $CPPFLAGS'
  49616. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49617. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49618. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49620. /* end confdefs.h. */
  49621. #include <math.h>
  49622. #ifdef HAVE_IEEEFP_H
  49623. #include <ieeefp.h>
  49624. #endif
  49625. int
  49626. main ()
  49627. {
  49628. _finitel(0);
  49629. ;
  49630. return 0;
  49631. }
  49632. _ACEOF
  49633. if ac_fn_cxx_try_compile "$LINENO"; then :
  49634. glibcxx_cv_func__finitel_use=yes
  49635. else
  49636. glibcxx_cv_func__finitel_use=no
  49637. fi
  49638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49639. ac_ext=c
  49640. ac_cpp='$CPP $CPPFLAGS'
  49641. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49642. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49643. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49644. fi
  49645. fi
  49646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  49647. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  49648. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  49649. for ac_func in _finitel
  49650. do :
  49651. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  49652. if test "x$ac_cv_func__finitel" = xyes; then :
  49653. cat >>confdefs.h <<_ACEOF
  49654. #define HAVE__FINITEL 1
  49655. _ACEOF
  49656. fi
  49657. done
  49658. fi
  49659. fi
  49660. LIBS="$ac_save_LIBS"
  49661. CXXFLAGS="$ac_save_CXXFLAGS"
  49662. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  49663. ac_save_CXXFLAGS="$CXXFLAGS"
  49664. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  49665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  49666. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  49667. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  49668. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  49669. $as_echo_n "(cached) " >&6
  49670. else
  49671. ac_ext=cpp
  49672. ac_cpp='$CXXCPP $CPPFLAGS'
  49673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49677. /* end confdefs.h. */
  49678. #include <stdlib.h>
  49679. int
  49680. main ()
  49681. {
  49682. at_quick_exit(0);
  49683. ;
  49684. return 0;
  49685. }
  49686. _ACEOF
  49687. if ac_fn_cxx_try_compile "$LINENO"; then :
  49688. glibcxx_cv_func_at_quick_exit_use=yes
  49689. else
  49690. glibcxx_cv_func_at_quick_exit_use=no
  49691. fi
  49692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49693. ac_ext=c
  49694. ac_cpp='$CPP $CPPFLAGS'
  49695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49698. fi
  49699. fi
  49700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  49701. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  49702. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  49703. for ac_func in at_quick_exit
  49704. do :
  49705. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  49706. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  49707. cat >>confdefs.h <<_ACEOF
  49708. #define HAVE_AT_QUICK_EXIT 1
  49709. _ACEOF
  49710. fi
  49711. done
  49712. fi
  49713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  49714. $as_echo_n "checking for quick_exit declaration... " >&6; }
  49715. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  49716. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  49717. $as_echo_n "(cached) " >&6
  49718. else
  49719. ac_ext=cpp
  49720. ac_cpp='$CXXCPP $CPPFLAGS'
  49721. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49722. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49723. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49725. /* end confdefs.h. */
  49726. #include <stdlib.h>
  49727. int
  49728. main ()
  49729. {
  49730. quick_exit(0);
  49731. ;
  49732. return 0;
  49733. }
  49734. _ACEOF
  49735. if ac_fn_cxx_try_compile "$LINENO"; then :
  49736. glibcxx_cv_func_quick_exit_use=yes
  49737. else
  49738. glibcxx_cv_func_quick_exit_use=no
  49739. fi
  49740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49741. ac_ext=c
  49742. ac_cpp='$CPP $CPPFLAGS'
  49743. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49744. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49745. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49746. fi
  49747. fi
  49748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  49749. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  49750. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  49751. for ac_func in quick_exit
  49752. do :
  49753. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  49754. if test "x$ac_cv_func_quick_exit" = xyes; then :
  49755. cat >>confdefs.h <<_ACEOF
  49756. #define HAVE_QUICK_EXIT 1
  49757. _ACEOF
  49758. fi
  49759. done
  49760. fi
  49761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  49762. $as_echo_n "checking for strtold declaration... " >&6; }
  49763. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  49764. if ${glibcxx_cv_func_strtold_use+:} false; then :
  49765. $as_echo_n "(cached) " >&6
  49766. else
  49767. ac_ext=cpp
  49768. ac_cpp='$CXXCPP $CPPFLAGS'
  49769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49773. /* end confdefs.h. */
  49774. #include <stdlib.h>
  49775. int
  49776. main ()
  49777. {
  49778. strtold(0, 0);
  49779. ;
  49780. return 0;
  49781. }
  49782. _ACEOF
  49783. if ac_fn_cxx_try_compile "$LINENO"; then :
  49784. glibcxx_cv_func_strtold_use=yes
  49785. else
  49786. glibcxx_cv_func_strtold_use=no
  49787. fi
  49788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49789. ac_ext=c
  49790. ac_cpp='$CPP $CPPFLAGS'
  49791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49794. fi
  49795. fi
  49796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  49797. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  49798. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  49799. for ac_func in strtold
  49800. do :
  49801. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  49802. if test "x$ac_cv_func_strtold" = xyes; then :
  49803. cat >>confdefs.h <<_ACEOF
  49804. #define HAVE_STRTOLD 1
  49805. _ACEOF
  49806. fi
  49807. done
  49808. fi
  49809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  49810. $as_echo_n "checking for strtof declaration... " >&6; }
  49811. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  49812. if ${glibcxx_cv_func_strtof_use+:} false; then :
  49813. $as_echo_n "(cached) " >&6
  49814. else
  49815. ac_ext=cpp
  49816. ac_cpp='$CXXCPP $CPPFLAGS'
  49817. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49818. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49819. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  49820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49821. /* end confdefs.h. */
  49822. #include <stdlib.h>
  49823. int
  49824. main ()
  49825. {
  49826. strtof(0, 0);
  49827. ;
  49828. return 0;
  49829. }
  49830. _ACEOF
  49831. if ac_fn_cxx_try_compile "$LINENO"; then :
  49832. glibcxx_cv_func_strtof_use=yes
  49833. else
  49834. glibcxx_cv_func_strtof_use=no
  49835. fi
  49836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  49837. ac_ext=c
  49838. ac_cpp='$CPP $CPPFLAGS'
  49839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  49840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  49841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  49842. fi
  49843. fi
  49844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  49845. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  49846. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  49847. for ac_func in strtof
  49848. do :
  49849. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  49850. if test "x$ac_cv_func_strtof" = xyes; then :
  49851. cat >>confdefs.h <<_ACEOF
  49852. #define HAVE_STRTOF 1
  49853. _ACEOF
  49854. fi
  49855. done
  49856. fi
  49857. CXXFLAGS="$ac_save_CXXFLAGS"
  49858. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  49859. do :
  49860. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  49861. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  49862. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  49863. cat >>confdefs.h <<_ACEOF
  49864. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  49865. _ACEOF
  49866. fi
  49867. done
  49868. for ac_func in _wfopen
  49869. do :
  49870. ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
  49871. if test "x$ac_cv_func__wfopen" = xyes; then :
  49872. cat >>confdefs.h <<_ACEOF
  49873. #define HAVE__WFOPEN 1
  49874. _ACEOF
  49875. fi
  49876. done
  49877. # Check whether --enable-tls was given.
  49878. if test "${enable_tls+set}" = set; then :
  49879. enableval=$enable_tls;
  49880. case "$enableval" in
  49881. yes|no) ;;
  49882. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  49883. esac
  49884. else
  49885. enable_tls=yes
  49886. fi
  49887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  49888. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  49889. if ${gcc_cv_have_tls+:} false; then :
  49890. $as_echo_n "(cached) " >&6
  49891. else
  49892. if test "$cross_compiling" = yes; then :
  49893. if test x$gcc_no_link = xyes; then
  49894. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  49895. fi
  49896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49897. /* end confdefs.h. */
  49898. __thread int a; int b; int main() { return a = b; }
  49899. _ACEOF
  49900. if ac_fn_c_try_link "$LINENO"; then :
  49901. chktls_save_LDFLAGS="$LDFLAGS"
  49902. case $host in
  49903. *-*-linux* | -*-uclinuxfdpic*)
  49904. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  49905. ;;
  49906. esac
  49907. chktls_save_CFLAGS="$CFLAGS"
  49908. CFLAGS="-fPIC $CFLAGS"
  49909. if test x$gcc_no_link = xyes; then
  49910. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  49911. fi
  49912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49913. /* end confdefs.h. */
  49914. int f() { return 0; }
  49915. _ACEOF
  49916. if ac_fn_c_try_link "$LINENO"; then :
  49917. if test x$gcc_no_link = xyes; then
  49918. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  49919. fi
  49920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49921. /* end confdefs.h. */
  49922. __thread int a; int b; int f() { return a = b; }
  49923. _ACEOF
  49924. if ac_fn_c_try_link "$LINENO"; then :
  49925. gcc_cv_have_tls=yes
  49926. else
  49927. gcc_cv_have_tls=no
  49928. fi
  49929. rm -f core conftest.err conftest.$ac_objext \
  49930. conftest$ac_exeext conftest.$ac_ext
  49931. else
  49932. gcc_cv_have_tls=yes
  49933. fi
  49934. rm -f core conftest.err conftest.$ac_objext \
  49935. conftest$ac_exeext conftest.$ac_ext
  49936. CFLAGS="$chktls_save_CFLAGS"
  49937. LDFLAGS="$chktls_save_LDFLAGS"
  49938. else
  49939. gcc_cv_have_tls=no
  49940. fi
  49941. rm -f core conftest.err conftest.$ac_objext \
  49942. conftest$ac_exeext conftest.$ac_ext
  49943. else
  49944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49945. /* end confdefs.h. */
  49946. __thread int a; int b; int main() { return a = b; }
  49947. _ACEOF
  49948. if ac_fn_c_try_run "$LINENO"; then :
  49949. chktls_save_LDFLAGS="$LDFLAGS"
  49950. LDFLAGS="-static $LDFLAGS"
  49951. if test x$gcc_no_link = xyes; then
  49952. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  49953. fi
  49954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49955. /* end confdefs.h. */
  49956. int main() { return 0; }
  49957. _ACEOF
  49958. if ac_fn_c_try_link "$LINENO"; then :
  49959. if test "$cross_compiling" = yes; then :
  49960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  49961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  49962. as_fn_error $? "cannot run test program while cross compiling
  49963. See \`config.log' for more details" "$LINENO" 5; }
  49964. else
  49965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49966. /* end confdefs.h. */
  49967. __thread int a; int b; int main() { return a = b; }
  49968. _ACEOF
  49969. if ac_fn_c_try_run "$LINENO"; then :
  49970. gcc_cv_have_tls=yes
  49971. else
  49972. gcc_cv_have_tls=no
  49973. fi
  49974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  49975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  49976. fi
  49977. else
  49978. gcc_cv_have_tls=yes
  49979. fi
  49980. rm -f core conftest.err conftest.$ac_objext \
  49981. conftest$ac_exeext conftest.$ac_ext
  49982. LDFLAGS="$chktls_save_LDFLAGS"
  49983. if test $gcc_cv_have_tls = yes; then
  49984. chktls_save_CFLAGS="$CFLAGS"
  49985. thread_CFLAGS=failed
  49986. for flag in '' '-pthread' '-lpthread'; do
  49987. CFLAGS="$flag $chktls_save_CFLAGS"
  49988. if test x$gcc_no_link = xyes; then
  49989. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  49990. fi
  49991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  49992. /* end confdefs.h. */
  49993. #include <pthread.h>
  49994. void *g(void *d) { return NULL; }
  49995. int
  49996. main ()
  49997. {
  49998. pthread_t t; pthread_create(&t,NULL,g,NULL);
  49999. ;
  50000. return 0;
  50001. }
  50002. _ACEOF
  50003. if ac_fn_c_try_link "$LINENO"; then :
  50004. thread_CFLAGS="$flag"
  50005. fi
  50006. rm -f core conftest.err conftest.$ac_objext \
  50007. conftest$ac_exeext conftest.$ac_ext
  50008. if test "X$thread_CFLAGS" != Xfailed; then
  50009. break
  50010. fi
  50011. done
  50012. CFLAGS="$chktls_save_CFLAGS"
  50013. if test "X$thread_CFLAGS" != Xfailed; then
  50014. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  50015. if test "$cross_compiling" = yes; then :
  50016. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  50017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  50018. as_fn_error $? "cannot run test program while cross compiling
  50019. See \`config.log' for more details" "$LINENO" 5; }
  50020. else
  50021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50022. /* end confdefs.h. */
  50023. #include <pthread.h>
  50024. __thread int a;
  50025. static int *volatile a_in_other_thread;
  50026. static void *
  50027. thread_func (void *arg)
  50028. {
  50029. a_in_other_thread = &a;
  50030. return (void *)0;
  50031. }
  50032. int
  50033. main ()
  50034. {
  50035. pthread_t thread;
  50036. void *thread_retval;
  50037. int *volatile a_in_main_thread;
  50038. a_in_main_thread = &a;
  50039. if (pthread_create (&thread, (pthread_attr_t *)0,
  50040. thread_func, (void *)0))
  50041. return 0;
  50042. if (pthread_join (thread, &thread_retval))
  50043. return 0;
  50044. return (a_in_other_thread == a_in_main_thread);
  50045. ;
  50046. return 0;
  50047. }
  50048. _ACEOF
  50049. if ac_fn_c_try_run "$LINENO"; then :
  50050. gcc_cv_have_tls=yes
  50051. else
  50052. gcc_cv_have_tls=no
  50053. fi
  50054. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  50055. conftest.$ac_objext conftest.beam conftest.$ac_ext
  50056. fi
  50057. CFLAGS="$chktls_save_CFLAGS"
  50058. fi
  50059. fi
  50060. else
  50061. gcc_cv_have_tls=no
  50062. fi
  50063. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  50064. conftest.$ac_objext conftest.beam conftest.$ac_ext
  50065. fi
  50066. fi
  50067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  50068. $as_echo "$gcc_cv_have_tls" >&6; }
  50069. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  50070. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  50071. fi
  50072. ;;
  50073. *-netbsd* | *-openbsd*)
  50074. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  50075. # If we're not using GNU ld, then there's no point in even trying these
  50076. # tests. Check for that first. We should have already tested for gld
  50077. # by now (in libtool), but require it now just to be safe...
  50078. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  50079. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  50080. # The name set by libtool depends on the version of libtool. Shame on us
  50081. # for depending on an impl detail, but c'est la vie. Older versions used
  50082. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  50083. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  50084. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  50085. # set (hence we're using an older libtool), then set it.
  50086. if test x${with_gnu_ld+set} != xset; then
  50087. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  50088. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  50089. with_gnu_ld=no
  50090. else
  50091. with_gnu_ld=$ac_cv_prog_gnu_ld
  50092. fi
  50093. fi
  50094. # Start by getting the version number. I think the libtool test already
  50095. # does some of this, but throws away the result.
  50096. glibcxx_ld_is_gold=no
  50097. glibcxx_ld_is_mold=no
  50098. if test x"$with_gnu_ld" = x"yes"; then
  50099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  50100. $as_echo_n "checking for ld version... " >&6; }
  50101. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  50102. glibcxx_ld_is_gold=yes
  50103. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  50104. glibcxx_ld_is_mold=yes
  50105. fi
  50106. ldver=`$LD --version 2>/dev/null |
  50107. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  50108. glibcxx_gnu_ld_version=`echo $ldver | \
  50109. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  50110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  50111. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  50112. fi
  50113. # Set --gc-sections.
  50114. glibcxx_have_gc_sections=no
  50115. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  50116. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  50117. glibcxx_have_gc_sections=yes
  50118. fi
  50119. else
  50120. glibcxx_gcsections_min_ld=21602
  50121. if test x"$with_gnu_ld" = x"yes" &&
  50122. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  50123. glibcxx_have_gc_sections=yes
  50124. fi
  50125. fi
  50126. if test "$glibcxx_have_gc_sections" = "yes"; then
  50127. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  50128. # NB: This flag only works reliably after 2.16.1. Configure tests
  50129. # for this are difficult, so hard wire a value that should work.
  50130. ac_test_CFLAGS="${CFLAGS+set}"
  50131. ac_save_CFLAGS="$CFLAGS"
  50132. CFLAGS='-Wl,--gc-sections'
  50133. # Check for -Wl,--gc-sections
  50134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  50135. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  50136. if test x$gcc_no_link = xyes; then
  50137. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  50138. fi
  50139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50140. /* end confdefs.h. */
  50141. int one(void) { return 1; }
  50142. int two(void) { return 2; }
  50143. int
  50144. main ()
  50145. {
  50146. two();
  50147. ;
  50148. return 0;
  50149. }
  50150. _ACEOF
  50151. if ac_fn_c_try_link "$LINENO"; then :
  50152. ac_gcsections=yes
  50153. else
  50154. ac_gcsections=no
  50155. fi
  50156. rm -f core conftest.err conftest.$ac_objext \
  50157. conftest$ac_exeext conftest.$ac_ext
  50158. if test "$ac_gcsections" = "yes"; then
  50159. rm -f conftest.c
  50160. touch conftest.c
  50161. if $CC -c conftest.c; then
  50162. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  50163. grep "Warning: gc-sections option ignored" > /dev/null; then
  50164. ac_gcsections=no
  50165. fi
  50166. fi
  50167. rm -f conftest.c conftest.o conftest
  50168. fi
  50169. if test "$ac_gcsections" = "yes"; then
  50170. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  50171. fi
  50172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  50173. $as_echo "$ac_gcsections" >&6; }
  50174. if test "$ac_test_CFLAGS" = set; then
  50175. CFLAGS="$ac_save_CFLAGS"
  50176. else
  50177. # this is the suspicious part
  50178. CFLAGS=''
  50179. fi
  50180. fi
  50181. # Set -z,relro.
  50182. # Note this is only for shared objects.
  50183. ac_ld_relro=no
  50184. if test x"$with_gnu_ld" = x"yes"; then
  50185. # cygwin and mingw uses PE, which has no ELF relro support,
  50186. # multi target ld may confuse configure machinery
  50187. case "$host" in
  50188. *-*-cygwin*)
  50189. ;;
  50190. *-*-mingw*)
  50191. ;;
  50192. *)
  50193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  50194. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  50195. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  50196. if test -n "$cxx_z_relo"; then
  50197. OPT_LDFLAGS="-Wl,-z,relro"
  50198. ac_ld_relro=yes
  50199. fi
  50200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  50201. $as_echo "$ac_ld_relro" >&6; }
  50202. esac
  50203. fi
  50204. # Set linker optimization flags.
  50205. if test x"$with_gnu_ld" = x"yes"; then
  50206. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  50207. fi
  50208. $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
  50209. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  50210. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  50211. $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
  50212. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  50213. $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
  50214. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  50215. $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
  50216. if test x"long_double_math_on_this_cpu" = x"yes"; then
  50217. $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
  50218. $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
  50219. $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
  50220. fi
  50221. for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
  50222. do :
  50223. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  50224. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  50225. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  50226. cat >>confdefs.h <<_ACEOF
  50227. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  50228. _ACEOF
  50229. fi
  50230. done
  50231. for ac_func in timespec_get
  50232. do :
  50233. ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
  50234. if test "x$ac_cv_func_timespec_get" = xyes; then :
  50235. cat >>confdefs.h <<_ACEOF
  50236. #define HAVE_TIMESPEC_GET 1
  50237. _ACEOF
  50238. fi
  50239. done
  50240. for ac_func in sockatmark
  50241. do :
  50242. ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
  50243. if test "x$ac_cv_func_sockatmark" = xyes; then :
  50244. cat >>confdefs.h <<_ACEOF
  50245. #define HAVE_SOCKATMARK 1
  50246. _ACEOF
  50247. fi
  50248. done
  50249. ;;
  50250. *-qnx6.1* | *-qnx6.2*)
  50251. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  50252. # If we're not using GNU ld, then there's no point in even trying these
  50253. # tests. Check for that first. We should have already tested for gld
  50254. # by now (in libtool), but require it now just to be safe...
  50255. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  50256. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  50257. # The name set by libtool depends on the version of libtool. Shame on us
  50258. # for depending on an impl detail, but c'est la vie. Older versions used
  50259. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  50260. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  50261. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  50262. # set (hence we're using an older libtool), then set it.
  50263. if test x${with_gnu_ld+set} != xset; then
  50264. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  50265. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  50266. with_gnu_ld=no
  50267. else
  50268. with_gnu_ld=$ac_cv_prog_gnu_ld
  50269. fi
  50270. fi
  50271. # Start by getting the version number. I think the libtool test already
  50272. # does some of this, but throws away the result.
  50273. glibcxx_ld_is_gold=no
  50274. glibcxx_ld_is_mold=no
  50275. if test x"$with_gnu_ld" = x"yes"; then
  50276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  50277. $as_echo_n "checking for ld version... " >&6; }
  50278. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  50279. glibcxx_ld_is_gold=yes
  50280. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  50281. glibcxx_ld_is_mold=yes
  50282. fi
  50283. ldver=`$LD --version 2>/dev/null |
  50284. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  50285. glibcxx_gnu_ld_version=`echo $ldver | \
  50286. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  50287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  50288. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  50289. fi
  50290. # Set --gc-sections.
  50291. glibcxx_have_gc_sections=no
  50292. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  50293. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  50294. glibcxx_have_gc_sections=yes
  50295. fi
  50296. else
  50297. glibcxx_gcsections_min_ld=21602
  50298. if test x"$with_gnu_ld" = x"yes" &&
  50299. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  50300. glibcxx_have_gc_sections=yes
  50301. fi
  50302. fi
  50303. if test "$glibcxx_have_gc_sections" = "yes"; then
  50304. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  50305. # NB: This flag only works reliably after 2.16.1. Configure tests
  50306. # for this are difficult, so hard wire a value that should work.
  50307. ac_test_CFLAGS="${CFLAGS+set}"
  50308. ac_save_CFLAGS="$CFLAGS"
  50309. CFLAGS='-Wl,--gc-sections'
  50310. # Check for -Wl,--gc-sections
  50311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  50312. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  50313. if test x$gcc_no_link = xyes; then
  50314. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  50315. fi
  50316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50317. /* end confdefs.h. */
  50318. int one(void) { return 1; }
  50319. int two(void) { return 2; }
  50320. int
  50321. main ()
  50322. {
  50323. two();
  50324. ;
  50325. return 0;
  50326. }
  50327. _ACEOF
  50328. if ac_fn_c_try_link "$LINENO"; then :
  50329. ac_gcsections=yes
  50330. else
  50331. ac_gcsections=no
  50332. fi
  50333. rm -f core conftest.err conftest.$ac_objext \
  50334. conftest$ac_exeext conftest.$ac_ext
  50335. if test "$ac_gcsections" = "yes"; then
  50336. rm -f conftest.c
  50337. touch conftest.c
  50338. if $CC -c conftest.c; then
  50339. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  50340. grep "Warning: gc-sections option ignored" > /dev/null; then
  50341. ac_gcsections=no
  50342. fi
  50343. fi
  50344. rm -f conftest.c conftest.o conftest
  50345. fi
  50346. if test "$ac_gcsections" = "yes"; then
  50347. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  50348. fi
  50349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  50350. $as_echo "$ac_gcsections" >&6; }
  50351. if test "$ac_test_CFLAGS" = set; then
  50352. CFLAGS="$ac_save_CFLAGS"
  50353. else
  50354. # this is the suspicious part
  50355. CFLAGS=''
  50356. fi
  50357. fi
  50358. # Set -z,relro.
  50359. # Note this is only for shared objects.
  50360. ac_ld_relro=no
  50361. if test x"$with_gnu_ld" = x"yes"; then
  50362. # cygwin and mingw uses PE, which has no ELF relro support,
  50363. # multi target ld may confuse configure machinery
  50364. case "$host" in
  50365. *-*-cygwin*)
  50366. ;;
  50367. *-*-mingw*)
  50368. ;;
  50369. *)
  50370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  50371. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  50372. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  50373. if test -n "$cxx_z_relo"; then
  50374. OPT_LDFLAGS="-Wl,-z,relro"
  50375. ac_ld_relro=yes
  50376. fi
  50377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  50378. $as_echo "$ac_ld_relro" >&6; }
  50379. esac
  50380. fi
  50381. # Set linker optimization flags.
  50382. if test x"$with_gnu_ld" = x"yes"; then
  50383. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  50384. fi
  50385. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  50386. $as_echo "#define HAVE_COSL 1" >>confdefs.h
  50387. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  50388. $as_echo "#define HAVE_COSHL 1" >>confdefs.h
  50389. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  50390. $as_echo "#define HAVE_LOGL 1" >>confdefs.h
  50391. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  50392. $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
  50393. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  50394. $as_echo "#define HAVE_SINL 1" >>confdefs.h
  50395. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  50396. $as_echo "#define HAVE_SINHL 1" >>confdefs.h
  50397. ;;
  50398. *-rtems*)
  50399. # All these tests are for C++; save the language and the compiler flags.
  50400. # The CXXFLAGS thing is suspicious, but based on similar bits previously
  50401. # found in GLIBCXX_CONFIGURE.
  50402. ac_ext=cpp
  50403. ac_cpp='$CXXCPP $CPPFLAGS'
  50404. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50405. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50406. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50407. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  50408. ac_save_CXXFLAGS="$CXXFLAGS"
  50409. # Check for -ffunction-sections -fdata-sections
  50410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
  50411. $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
  50412. CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
  50413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50414. /* end confdefs.h. */
  50415. int foo; void bar() { };
  50416. int
  50417. main ()
  50418. {
  50419. ;
  50420. return 0;
  50421. }
  50422. _ACEOF
  50423. if ac_fn_cxx_try_compile "$LINENO"; then :
  50424. ac_fdsections=yes
  50425. else
  50426. ac_fdsections=no
  50427. fi
  50428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50429. if test "$ac_test_CXXFLAGS" = set; then
  50430. CXXFLAGS="$ac_save_CXXFLAGS"
  50431. else
  50432. # this is the suspicious part
  50433. CXXFLAGS=''
  50434. fi
  50435. if test x"$ac_fdsections" = x"yes"; then
  50436. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  50437. fi
  50438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
  50439. $as_echo "$ac_fdsections" >&6; }
  50440. ac_ext=c
  50441. ac_cpp='$CPP $CPPFLAGS'
  50442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50445. # If we're not using GNU ld, then there's no point in even trying these
  50446. # tests. Check for that first. We should have already tested for gld
  50447. # by now (in libtool), but require it now just to be safe...
  50448. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  50449. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  50450. # The name set by libtool depends on the version of libtool. Shame on us
  50451. # for depending on an impl detail, but c'est la vie. Older versions used
  50452. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  50453. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  50454. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  50455. # set (hence we're using an older libtool), then set it.
  50456. if test x${with_gnu_ld+set} != xset; then
  50457. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  50458. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  50459. with_gnu_ld=no
  50460. else
  50461. with_gnu_ld=$ac_cv_prog_gnu_ld
  50462. fi
  50463. fi
  50464. # Start by getting the version number. I think the libtool test already
  50465. # does some of this, but throws away the result.
  50466. glibcxx_ld_is_gold=no
  50467. glibcxx_ld_is_mold=no
  50468. if test x"$with_gnu_ld" = x"yes"; then
  50469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
  50470. $as_echo_n "checking for ld version... " >&6; }
  50471. if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
  50472. glibcxx_ld_is_gold=yes
  50473. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  50474. glibcxx_ld_is_mold=yes
  50475. fi
  50476. ldver=`$LD --version 2>/dev/null |
  50477. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  50478. glibcxx_gnu_ld_version=`echo $ldver | \
  50479. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  50480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
  50481. $as_echo "$glibcxx_gnu_ld_version" >&6; }
  50482. fi
  50483. # Set --gc-sections.
  50484. glibcxx_have_gc_sections=no
  50485. if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
  50486. if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
  50487. glibcxx_have_gc_sections=yes
  50488. fi
  50489. else
  50490. glibcxx_gcsections_min_ld=21602
  50491. if test x"$with_gnu_ld" = x"yes" &&
  50492. test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
  50493. glibcxx_have_gc_sections=yes
  50494. fi
  50495. fi
  50496. if test "$glibcxx_have_gc_sections" = "yes"; then
  50497. # Sufficiently young GNU ld it is! Joy and bunny rabbits!
  50498. # NB: This flag only works reliably after 2.16.1. Configure tests
  50499. # for this are difficult, so hard wire a value that should work.
  50500. ac_test_CFLAGS="${CFLAGS+set}"
  50501. ac_save_CFLAGS="$CFLAGS"
  50502. CFLAGS='-Wl,--gc-sections'
  50503. # Check for -Wl,--gc-sections
  50504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  50505. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  50506. if test x$gcc_no_link = xyes; then
  50507. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  50508. fi
  50509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50510. /* end confdefs.h. */
  50511. int one(void) { return 1; }
  50512. int two(void) { return 2; }
  50513. int
  50514. main ()
  50515. {
  50516. two();
  50517. ;
  50518. return 0;
  50519. }
  50520. _ACEOF
  50521. if ac_fn_c_try_link "$LINENO"; then :
  50522. ac_gcsections=yes
  50523. else
  50524. ac_gcsections=no
  50525. fi
  50526. rm -f core conftest.err conftest.$ac_objext \
  50527. conftest$ac_exeext conftest.$ac_ext
  50528. if test "$ac_gcsections" = "yes"; then
  50529. rm -f conftest.c
  50530. touch conftest.c
  50531. if $CC -c conftest.c; then
  50532. if $LD --gc-sections -o conftest conftest.o 2>&1 | \
  50533. grep "Warning: gc-sections option ignored" > /dev/null; then
  50534. ac_gcsections=no
  50535. fi
  50536. fi
  50537. rm -f conftest.c conftest.o conftest
  50538. fi
  50539. if test "$ac_gcsections" = "yes"; then
  50540. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  50541. fi
  50542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
  50543. $as_echo "$ac_gcsections" >&6; }
  50544. if test "$ac_test_CFLAGS" = set; then
  50545. CFLAGS="$ac_save_CFLAGS"
  50546. else
  50547. # this is the suspicious part
  50548. CFLAGS=''
  50549. fi
  50550. fi
  50551. # Set -z,relro.
  50552. # Note this is only for shared objects.
  50553. ac_ld_relro=no
  50554. if test x"$with_gnu_ld" = x"yes"; then
  50555. # cygwin and mingw uses PE, which has no ELF relro support,
  50556. # multi target ld may confuse configure machinery
  50557. case "$host" in
  50558. *-*-cygwin*)
  50559. ;;
  50560. *-*-mingw*)
  50561. ;;
  50562. *)
  50563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
  50564. $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
  50565. cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
  50566. if test -n "$cxx_z_relo"; then
  50567. OPT_LDFLAGS="-Wl,-z,relro"
  50568. ac_ld_relro=yes
  50569. fi
  50570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
  50571. $as_echo "$ac_ld_relro" >&6; }
  50572. esac
  50573. fi
  50574. # Set linker optimization flags.
  50575. if test x"$with_gnu_ld" = x"yes"; then
  50576. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  50577. fi
  50578. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  50579. ac_save_CXXFLAGS="$CXXFLAGS"
  50580. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  50581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  50582. $as_echo_n "checking for sin in -lm... " >&6; }
  50583. if ${ac_cv_lib_m_sin+:} false; then :
  50584. $as_echo_n "(cached) " >&6
  50585. else
  50586. ac_check_lib_save_LIBS=$LIBS
  50587. LIBS="-lm $LIBS"
  50588. if test x$gcc_no_link = xyes; then
  50589. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  50590. fi
  50591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50592. /* end confdefs.h. */
  50593. /* Override any GCC internal prototype to avoid an error.
  50594. Use char because int might match the return type of a GCC
  50595. builtin and then its argument prototype would still apply. */
  50596. #ifdef __cplusplus
  50597. extern "C"
  50598. #endif
  50599. char sin ();
  50600. int
  50601. main ()
  50602. {
  50603. return sin ();
  50604. ;
  50605. return 0;
  50606. }
  50607. _ACEOF
  50608. if ac_fn_c_try_link "$LINENO"; then :
  50609. ac_cv_lib_m_sin=yes
  50610. else
  50611. ac_cv_lib_m_sin=no
  50612. fi
  50613. rm -f core conftest.err conftest.$ac_objext \
  50614. conftest$ac_exeext conftest.$ac_ext
  50615. LIBS=$ac_check_lib_save_LIBS
  50616. fi
  50617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  50618. $as_echo "$ac_cv_lib_m_sin" >&6; }
  50619. if test "x$ac_cv_lib_m_sin" = xyes; then :
  50620. libm="-lm"
  50621. fi
  50622. ac_save_LIBS="$LIBS"
  50623. LIBS="$LIBS $libm"
  50624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  50625. $as_echo_n "checking for isinf declaration... " >&6; }
  50626. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  50627. if ${glibcxx_cv_func_isinf_use+:} false; then :
  50628. $as_echo_n "(cached) " >&6
  50629. else
  50630. ac_ext=cpp
  50631. ac_cpp='$CXXCPP $CPPFLAGS'
  50632. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50633. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50634. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50636. /* end confdefs.h. */
  50637. #include <math.h>
  50638. #ifdef HAVE_IEEEFP_H
  50639. #include <ieeefp.h>
  50640. #endif
  50641. int
  50642. main ()
  50643. {
  50644. isinf(0);
  50645. ;
  50646. return 0;
  50647. }
  50648. _ACEOF
  50649. if ac_fn_cxx_try_compile "$LINENO"; then :
  50650. glibcxx_cv_func_isinf_use=yes
  50651. else
  50652. glibcxx_cv_func_isinf_use=no
  50653. fi
  50654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50655. ac_ext=c
  50656. ac_cpp='$CPP $CPPFLAGS'
  50657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50660. fi
  50661. fi
  50662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  50663. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  50664. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  50665. for ac_func in isinf
  50666. do :
  50667. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  50668. if test "x$ac_cv_func_isinf" = xyes; then :
  50669. cat >>confdefs.h <<_ACEOF
  50670. #define HAVE_ISINF 1
  50671. _ACEOF
  50672. fi
  50673. done
  50674. else
  50675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  50676. $as_echo_n "checking for _isinf declaration... " >&6; }
  50677. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  50678. if ${glibcxx_cv_func__isinf_use+:} false; then :
  50679. $as_echo_n "(cached) " >&6
  50680. else
  50681. ac_ext=cpp
  50682. ac_cpp='$CXXCPP $CPPFLAGS'
  50683. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50684. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50685. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50687. /* end confdefs.h. */
  50688. #include <math.h>
  50689. #ifdef HAVE_IEEEFP_H
  50690. #include <ieeefp.h>
  50691. #endif
  50692. int
  50693. main ()
  50694. {
  50695. _isinf(0);
  50696. ;
  50697. return 0;
  50698. }
  50699. _ACEOF
  50700. if ac_fn_cxx_try_compile "$LINENO"; then :
  50701. glibcxx_cv_func__isinf_use=yes
  50702. else
  50703. glibcxx_cv_func__isinf_use=no
  50704. fi
  50705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50706. ac_ext=c
  50707. ac_cpp='$CPP $CPPFLAGS'
  50708. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50709. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50710. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50711. fi
  50712. fi
  50713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  50714. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  50715. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  50716. for ac_func in _isinf
  50717. do :
  50718. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  50719. if test "x$ac_cv_func__isinf" = xyes; then :
  50720. cat >>confdefs.h <<_ACEOF
  50721. #define HAVE__ISINF 1
  50722. _ACEOF
  50723. fi
  50724. done
  50725. fi
  50726. fi
  50727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  50728. $as_echo_n "checking for isnan declaration... " >&6; }
  50729. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  50730. if ${glibcxx_cv_func_isnan_use+:} false; then :
  50731. $as_echo_n "(cached) " >&6
  50732. else
  50733. ac_ext=cpp
  50734. ac_cpp='$CXXCPP $CPPFLAGS'
  50735. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50736. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50737. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50739. /* end confdefs.h. */
  50740. #include <math.h>
  50741. #ifdef HAVE_IEEEFP_H
  50742. #include <ieeefp.h>
  50743. #endif
  50744. int
  50745. main ()
  50746. {
  50747. isnan(0);
  50748. ;
  50749. return 0;
  50750. }
  50751. _ACEOF
  50752. if ac_fn_cxx_try_compile "$LINENO"; then :
  50753. glibcxx_cv_func_isnan_use=yes
  50754. else
  50755. glibcxx_cv_func_isnan_use=no
  50756. fi
  50757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50758. ac_ext=c
  50759. ac_cpp='$CPP $CPPFLAGS'
  50760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50763. fi
  50764. fi
  50765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  50766. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  50767. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  50768. for ac_func in isnan
  50769. do :
  50770. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  50771. if test "x$ac_cv_func_isnan" = xyes; then :
  50772. cat >>confdefs.h <<_ACEOF
  50773. #define HAVE_ISNAN 1
  50774. _ACEOF
  50775. fi
  50776. done
  50777. else
  50778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  50779. $as_echo_n "checking for _isnan declaration... " >&6; }
  50780. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  50781. if ${glibcxx_cv_func__isnan_use+:} false; then :
  50782. $as_echo_n "(cached) " >&6
  50783. else
  50784. ac_ext=cpp
  50785. ac_cpp='$CXXCPP $CPPFLAGS'
  50786. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50787. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50788. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50790. /* end confdefs.h. */
  50791. #include <math.h>
  50792. #ifdef HAVE_IEEEFP_H
  50793. #include <ieeefp.h>
  50794. #endif
  50795. int
  50796. main ()
  50797. {
  50798. _isnan(0);
  50799. ;
  50800. return 0;
  50801. }
  50802. _ACEOF
  50803. if ac_fn_cxx_try_compile "$LINENO"; then :
  50804. glibcxx_cv_func__isnan_use=yes
  50805. else
  50806. glibcxx_cv_func__isnan_use=no
  50807. fi
  50808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50809. ac_ext=c
  50810. ac_cpp='$CPP $CPPFLAGS'
  50811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50814. fi
  50815. fi
  50816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  50817. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  50818. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  50819. for ac_func in _isnan
  50820. do :
  50821. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  50822. if test "x$ac_cv_func__isnan" = xyes; then :
  50823. cat >>confdefs.h <<_ACEOF
  50824. #define HAVE__ISNAN 1
  50825. _ACEOF
  50826. fi
  50827. done
  50828. fi
  50829. fi
  50830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  50831. $as_echo_n "checking for finite declaration... " >&6; }
  50832. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  50833. if ${glibcxx_cv_func_finite_use+:} false; then :
  50834. $as_echo_n "(cached) " >&6
  50835. else
  50836. ac_ext=cpp
  50837. ac_cpp='$CXXCPP $CPPFLAGS'
  50838. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50839. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50840. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50842. /* end confdefs.h. */
  50843. #include <math.h>
  50844. #ifdef HAVE_IEEEFP_H
  50845. #include <ieeefp.h>
  50846. #endif
  50847. int
  50848. main ()
  50849. {
  50850. finite(0);
  50851. ;
  50852. return 0;
  50853. }
  50854. _ACEOF
  50855. if ac_fn_cxx_try_compile "$LINENO"; then :
  50856. glibcxx_cv_func_finite_use=yes
  50857. else
  50858. glibcxx_cv_func_finite_use=no
  50859. fi
  50860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50861. ac_ext=c
  50862. ac_cpp='$CPP $CPPFLAGS'
  50863. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50864. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50865. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50866. fi
  50867. fi
  50868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  50869. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  50870. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  50871. for ac_func in finite
  50872. do :
  50873. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  50874. if test "x$ac_cv_func_finite" = xyes; then :
  50875. cat >>confdefs.h <<_ACEOF
  50876. #define HAVE_FINITE 1
  50877. _ACEOF
  50878. fi
  50879. done
  50880. else
  50881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  50882. $as_echo_n "checking for _finite declaration... " >&6; }
  50883. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  50884. if ${glibcxx_cv_func__finite_use+:} false; then :
  50885. $as_echo_n "(cached) " >&6
  50886. else
  50887. ac_ext=cpp
  50888. ac_cpp='$CXXCPP $CPPFLAGS'
  50889. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50890. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50891. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50893. /* end confdefs.h. */
  50894. #include <math.h>
  50895. #ifdef HAVE_IEEEFP_H
  50896. #include <ieeefp.h>
  50897. #endif
  50898. int
  50899. main ()
  50900. {
  50901. _finite(0);
  50902. ;
  50903. return 0;
  50904. }
  50905. _ACEOF
  50906. if ac_fn_cxx_try_compile "$LINENO"; then :
  50907. glibcxx_cv_func__finite_use=yes
  50908. else
  50909. glibcxx_cv_func__finite_use=no
  50910. fi
  50911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50912. ac_ext=c
  50913. ac_cpp='$CPP $CPPFLAGS'
  50914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50917. fi
  50918. fi
  50919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  50920. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  50921. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  50922. for ac_func in _finite
  50923. do :
  50924. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  50925. if test "x$ac_cv_func__finite" = xyes; then :
  50926. cat >>confdefs.h <<_ACEOF
  50927. #define HAVE__FINITE 1
  50928. _ACEOF
  50929. fi
  50930. done
  50931. fi
  50932. fi
  50933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  50934. $as_echo_n "checking for sincos declaration... " >&6; }
  50935. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  50936. if ${glibcxx_cv_func_sincos_use+:} false; then :
  50937. $as_echo_n "(cached) " >&6
  50938. else
  50939. ac_ext=cpp
  50940. ac_cpp='$CXXCPP $CPPFLAGS'
  50941. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50942. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50943. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50945. /* end confdefs.h. */
  50946. #include <math.h>
  50947. int
  50948. main ()
  50949. {
  50950. sincos(0, 0, 0);
  50951. ;
  50952. return 0;
  50953. }
  50954. _ACEOF
  50955. if ac_fn_cxx_try_compile "$LINENO"; then :
  50956. glibcxx_cv_func_sincos_use=yes
  50957. else
  50958. glibcxx_cv_func_sincos_use=no
  50959. fi
  50960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  50961. ac_ext=c
  50962. ac_cpp='$CPP $CPPFLAGS'
  50963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  50966. fi
  50967. fi
  50968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  50969. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  50970. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  50971. for ac_func in sincos
  50972. do :
  50973. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  50974. if test "x$ac_cv_func_sincos" = xyes; then :
  50975. cat >>confdefs.h <<_ACEOF
  50976. #define HAVE_SINCOS 1
  50977. _ACEOF
  50978. fi
  50979. done
  50980. else
  50981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  50982. $as_echo_n "checking for _sincos declaration... " >&6; }
  50983. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  50984. if ${glibcxx_cv_func__sincos_use+:} false; then :
  50985. $as_echo_n "(cached) " >&6
  50986. else
  50987. ac_ext=cpp
  50988. ac_cpp='$CXXCPP $CPPFLAGS'
  50989. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  50990. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  50991. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  50992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  50993. /* end confdefs.h. */
  50994. #include <math.h>
  50995. int
  50996. main ()
  50997. {
  50998. _sincos(0, 0, 0);
  50999. ;
  51000. return 0;
  51001. }
  51002. _ACEOF
  51003. if ac_fn_cxx_try_compile "$LINENO"; then :
  51004. glibcxx_cv_func__sincos_use=yes
  51005. else
  51006. glibcxx_cv_func__sincos_use=no
  51007. fi
  51008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51009. ac_ext=c
  51010. ac_cpp='$CPP $CPPFLAGS'
  51011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51014. fi
  51015. fi
  51016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  51017. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  51018. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  51019. for ac_func in _sincos
  51020. do :
  51021. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  51022. if test "x$ac_cv_func__sincos" = xyes; then :
  51023. cat >>confdefs.h <<_ACEOF
  51024. #define HAVE__SINCOS 1
  51025. _ACEOF
  51026. fi
  51027. done
  51028. fi
  51029. fi
  51030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  51031. $as_echo_n "checking for fpclass declaration... " >&6; }
  51032. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  51033. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  51034. $as_echo_n "(cached) " >&6
  51035. else
  51036. ac_ext=cpp
  51037. ac_cpp='$CXXCPP $CPPFLAGS'
  51038. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51039. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51040. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51042. /* end confdefs.h. */
  51043. #include <math.h>
  51044. #ifdef HAVE_IEEEFP_H
  51045. #include <ieeefp.h>
  51046. #endif
  51047. int
  51048. main ()
  51049. {
  51050. fpclass(0);
  51051. ;
  51052. return 0;
  51053. }
  51054. _ACEOF
  51055. if ac_fn_cxx_try_compile "$LINENO"; then :
  51056. glibcxx_cv_func_fpclass_use=yes
  51057. else
  51058. glibcxx_cv_func_fpclass_use=no
  51059. fi
  51060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51061. ac_ext=c
  51062. ac_cpp='$CPP $CPPFLAGS'
  51063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51066. fi
  51067. fi
  51068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  51069. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  51070. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  51071. for ac_func in fpclass
  51072. do :
  51073. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  51074. if test "x$ac_cv_func_fpclass" = xyes; then :
  51075. cat >>confdefs.h <<_ACEOF
  51076. #define HAVE_FPCLASS 1
  51077. _ACEOF
  51078. fi
  51079. done
  51080. else
  51081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  51082. $as_echo_n "checking for _fpclass declaration... " >&6; }
  51083. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  51084. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  51085. $as_echo_n "(cached) " >&6
  51086. else
  51087. ac_ext=cpp
  51088. ac_cpp='$CXXCPP $CPPFLAGS'
  51089. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51090. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51091. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51093. /* end confdefs.h. */
  51094. #include <math.h>
  51095. #ifdef HAVE_IEEEFP_H
  51096. #include <ieeefp.h>
  51097. #endif
  51098. int
  51099. main ()
  51100. {
  51101. _fpclass(0);
  51102. ;
  51103. return 0;
  51104. }
  51105. _ACEOF
  51106. if ac_fn_cxx_try_compile "$LINENO"; then :
  51107. glibcxx_cv_func__fpclass_use=yes
  51108. else
  51109. glibcxx_cv_func__fpclass_use=no
  51110. fi
  51111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51112. ac_ext=c
  51113. ac_cpp='$CPP $CPPFLAGS'
  51114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51117. fi
  51118. fi
  51119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  51120. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  51121. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  51122. for ac_func in _fpclass
  51123. do :
  51124. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  51125. if test "x$ac_cv_func__fpclass" = xyes; then :
  51126. cat >>confdefs.h <<_ACEOF
  51127. #define HAVE__FPCLASS 1
  51128. _ACEOF
  51129. fi
  51130. done
  51131. fi
  51132. fi
  51133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  51134. $as_echo_n "checking for qfpclass declaration... " >&6; }
  51135. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  51136. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  51137. $as_echo_n "(cached) " >&6
  51138. else
  51139. ac_ext=cpp
  51140. ac_cpp='$CXXCPP $CPPFLAGS'
  51141. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51142. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51143. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51145. /* end confdefs.h. */
  51146. #include <math.h>
  51147. #ifdef HAVE_IEEEFP_H
  51148. #include <ieeefp.h>
  51149. #endif
  51150. int
  51151. main ()
  51152. {
  51153. qfpclass(0);
  51154. ;
  51155. return 0;
  51156. }
  51157. _ACEOF
  51158. if ac_fn_cxx_try_compile "$LINENO"; then :
  51159. glibcxx_cv_func_qfpclass_use=yes
  51160. else
  51161. glibcxx_cv_func_qfpclass_use=no
  51162. fi
  51163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51164. ac_ext=c
  51165. ac_cpp='$CPP $CPPFLAGS'
  51166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51169. fi
  51170. fi
  51171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  51172. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  51173. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  51174. for ac_func in qfpclass
  51175. do :
  51176. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  51177. if test "x$ac_cv_func_qfpclass" = xyes; then :
  51178. cat >>confdefs.h <<_ACEOF
  51179. #define HAVE_QFPCLASS 1
  51180. _ACEOF
  51181. fi
  51182. done
  51183. else
  51184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  51185. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  51186. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  51187. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  51188. $as_echo_n "(cached) " >&6
  51189. else
  51190. ac_ext=cpp
  51191. ac_cpp='$CXXCPP $CPPFLAGS'
  51192. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51193. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51194. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51196. /* end confdefs.h. */
  51197. #include <math.h>
  51198. #ifdef HAVE_IEEEFP_H
  51199. #include <ieeefp.h>
  51200. #endif
  51201. int
  51202. main ()
  51203. {
  51204. _qfpclass(0);
  51205. ;
  51206. return 0;
  51207. }
  51208. _ACEOF
  51209. if ac_fn_cxx_try_compile "$LINENO"; then :
  51210. glibcxx_cv_func__qfpclass_use=yes
  51211. else
  51212. glibcxx_cv_func__qfpclass_use=no
  51213. fi
  51214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51215. ac_ext=c
  51216. ac_cpp='$CPP $CPPFLAGS'
  51217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51220. fi
  51221. fi
  51222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  51223. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  51224. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  51225. for ac_func in _qfpclass
  51226. do :
  51227. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  51228. if test "x$ac_cv_func__qfpclass" = xyes; then :
  51229. cat >>confdefs.h <<_ACEOF
  51230. #define HAVE__QFPCLASS 1
  51231. _ACEOF
  51232. fi
  51233. done
  51234. fi
  51235. fi
  51236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  51237. $as_echo_n "checking for hypot declaration... " >&6; }
  51238. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  51239. if ${glibcxx_cv_func_hypot_use+:} false; then :
  51240. $as_echo_n "(cached) " >&6
  51241. else
  51242. ac_ext=cpp
  51243. ac_cpp='$CXXCPP $CPPFLAGS'
  51244. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51245. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51246. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51248. /* end confdefs.h. */
  51249. #include <math.h>
  51250. int
  51251. main ()
  51252. {
  51253. hypot(0, 0);
  51254. ;
  51255. return 0;
  51256. }
  51257. _ACEOF
  51258. if ac_fn_cxx_try_compile "$LINENO"; then :
  51259. glibcxx_cv_func_hypot_use=yes
  51260. else
  51261. glibcxx_cv_func_hypot_use=no
  51262. fi
  51263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51264. ac_ext=c
  51265. ac_cpp='$CPP $CPPFLAGS'
  51266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51269. fi
  51270. fi
  51271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  51272. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  51273. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  51274. for ac_func in hypot
  51275. do :
  51276. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  51277. if test "x$ac_cv_func_hypot" = xyes; then :
  51278. cat >>confdefs.h <<_ACEOF
  51279. #define HAVE_HYPOT 1
  51280. _ACEOF
  51281. fi
  51282. done
  51283. else
  51284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  51285. $as_echo_n "checking for _hypot declaration... " >&6; }
  51286. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  51287. if ${glibcxx_cv_func__hypot_use+:} false; then :
  51288. $as_echo_n "(cached) " >&6
  51289. else
  51290. ac_ext=cpp
  51291. ac_cpp='$CXXCPP $CPPFLAGS'
  51292. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51293. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51294. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51296. /* end confdefs.h. */
  51297. #include <math.h>
  51298. int
  51299. main ()
  51300. {
  51301. _hypot(0, 0);
  51302. ;
  51303. return 0;
  51304. }
  51305. _ACEOF
  51306. if ac_fn_cxx_try_compile "$LINENO"; then :
  51307. glibcxx_cv_func__hypot_use=yes
  51308. else
  51309. glibcxx_cv_func__hypot_use=no
  51310. fi
  51311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51312. ac_ext=c
  51313. ac_cpp='$CPP $CPPFLAGS'
  51314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51317. fi
  51318. fi
  51319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  51320. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  51321. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  51322. for ac_func in _hypot
  51323. do :
  51324. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  51325. if test "x$ac_cv_func__hypot" = xyes; then :
  51326. cat >>confdefs.h <<_ACEOF
  51327. #define HAVE__HYPOT 1
  51328. _ACEOF
  51329. fi
  51330. done
  51331. fi
  51332. fi
  51333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  51334. $as_echo_n "checking for float trig functions... " >&6; }
  51335. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  51336. $as_echo_n "(cached) " >&6
  51337. else
  51338. ac_ext=cpp
  51339. ac_cpp='$CXXCPP $CPPFLAGS'
  51340. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51341. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51342. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51344. /* end confdefs.h. */
  51345. #include <math.h>
  51346. int
  51347. main ()
  51348. {
  51349. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  51350. ;
  51351. return 0;
  51352. }
  51353. _ACEOF
  51354. if ac_fn_cxx_try_compile "$LINENO"; then :
  51355. glibcxx_cv_func_float_trig_use=yes
  51356. else
  51357. glibcxx_cv_func_float_trig_use=no
  51358. fi
  51359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51360. ac_ext=c
  51361. ac_cpp='$CPP $CPPFLAGS'
  51362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51365. fi
  51366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  51367. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  51368. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  51369. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  51370. do :
  51371. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51372. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  51373. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  51374. cat >>confdefs.h <<_ACEOF
  51375. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51376. _ACEOF
  51377. fi
  51378. done
  51379. else
  51380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  51381. $as_echo_n "checking for _float trig functions... " >&6; }
  51382. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  51383. $as_echo_n "(cached) " >&6
  51384. else
  51385. ac_ext=cpp
  51386. ac_cpp='$CXXCPP $CPPFLAGS'
  51387. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51388. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51389. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51391. /* end confdefs.h. */
  51392. #include <math.h>
  51393. int
  51394. main ()
  51395. {
  51396. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  51397. ;
  51398. return 0;
  51399. }
  51400. _ACEOF
  51401. if ac_fn_cxx_try_compile "$LINENO"; then :
  51402. glibcxx_cv_func__float_trig_use=yes
  51403. else
  51404. glibcxx_cv_func__float_trig_use=no
  51405. fi
  51406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51407. ac_ext=c
  51408. ac_cpp='$CPP $CPPFLAGS'
  51409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51412. fi
  51413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  51414. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  51415. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  51416. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  51417. do :
  51418. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51419. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  51420. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  51421. cat >>confdefs.h <<_ACEOF
  51422. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51423. _ACEOF
  51424. fi
  51425. done
  51426. fi
  51427. fi
  51428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  51429. $as_echo_n "checking for float round functions... " >&6; }
  51430. if ${glibcxx_cv_func_float_round_use+:} false; then :
  51431. $as_echo_n "(cached) " >&6
  51432. else
  51433. ac_ext=cpp
  51434. ac_cpp='$CXXCPP $CPPFLAGS'
  51435. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51436. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51437. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51439. /* end confdefs.h. */
  51440. #include <math.h>
  51441. int
  51442. main ()
  51443. {
  51444. ceilf (0); floorf (0);
  51445. ;
  51446. return 0;
  51447. }
  51448. _ACEOF
  51449. if ac_fn_cxx_try_compile "$LINENO"; then :
  51450. glibcxx_cv_func_float_round_use=yes
  51451. else
  51452. glibcxx_cv_func_float_round_use=no
  51453. fi
  51454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51455. ac_ext=c
  51456. ac_cpp='$CPP $CPPFLAGS'
  51457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51460. fi
  51461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  51462. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  51463. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  51464. for ac_func in ceilf floorf
  51465. do :
  51466. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51467. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  51468. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  51469. cat >>confdefs.h <<_ACEOF
  51470. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51471. _ACEOF
  51472. fi
  51473. done
  51474. else
  51475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  51476. $as_echo_n "checking for _float round functions... " >&6; }
  51477. if ${glibcxx_cv_func__float_round_use+:} false; then :
  51478. $as_echo_n "(cached) " >&6
  51479. else
  51480. ac_ext=cpp
  51481. ac_cpp='$CXXCPP $CPPFLAGS'
  51482. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51483. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51484. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51486. /* end confdefs.h. */
  51487. #include <math.h>
  51488. int
  51489. main ()
  51490. {
  51491. _ceilf (0); _floorf (0);
  51492. ;
  51493. return 0;
  51494. }
  51495. _ACEOF
  51496. if ac_fn_cxx_try_compile "$LINENO"; then :
  51497. glibcxx_cv_func__float_round_use=yes
  51498. else
  51499. glibcxx_cv_func__float_round_use=no
  51500. fi
  51501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51502. ac_ext=c
  51503. ac_cpp='$CPP $CPPFLAGS'
  51504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51507. fi
  51508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  51509. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  51510. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  51511. for ac_func in _ceilf _floorf
  51512. do :
  51513. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  51514. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  51515. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  51516. cat >>confdefs.h <<_ACEOF
  51517. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  51518. _ACEOF
  51519. fi
  51520. done
  51521. fi
  51522. fi
  51523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  51524. $as_echo_n "checking for expf declaration... " >&6; }
  51525. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  51526. if ${glibcxx_cv_func_expf_use+:} false; then :
  51527. $as_echo_n "(cached) " >&6
  51528. else
  51529. ac_ext=cpp
  51530. ac_cpp='$CXXCPP $CPPFLAGS'
  51531. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51532. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51533. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51535. /* end confdefs.h. */
  51536. #include <math.h>
  51537. #ifdef HAVE_IEEEFP_H
  51538. #include <ieeefp.h>
  51539. #endif
  51540. int
  51541. main ()
  51542. {
  51543. expf(0);
  51544. ;
  51545. return 0;
  51546. }
  51547. _ACEOF
  51548. if ac_fn_cxx_try_compile "$LINENO"; then :
  51549. glibcxx_cv_func_expf_use=yes
  51550. else
  51551. glibcxx_cv_func_expf_use=no
  51552. fi
  51553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51554. ac_ext=c
  51555. ac_cpp='$CPP $CPPFLAGS'
  51556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51559. fi
  51560. fi
  51561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  51562. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  51563. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  51564. for ac_func in expf
  51565. do :
  51566. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  51567. if test "x$ac_cv_func_expf" = xyes; then :
  51568. cat >>confdefs.h <<_ACEOF
  51569. #define HAVE_EXPF 1
  51570. _ACEOF
  51571. fi
  51572. done
  51573. else
  51574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  51575. $as_echo_n "checking for _expf declaration... " >&6; }
  51576. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  51577. if ${glibcxx_cv_func__expf_use+:} false; then :
  51578. $as_echo_n "(cached) " >&6
  51579. else
  51580. ac_ext=cpp
  51581. ac_cpp='$CXXCPP $CPPFLAGS'
  51582. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51583. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51584. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51586. /* end confdefs.h. */
  51587. #include <math.h>
  51588. #ifdef HAVE_IEEEFP_H
  51589. #include <ieeefp.h>
  51590. #endif
  51591. int
  51592. main ()
  51593. {
  51594. _expf(0);
  51595. ;
  51596. return 0;
  51597. }
  51598. _ACEOF
  51599. if ac_fn_cxx_try_compile "$LINENO"; then :
  51600. glibcxx_cv_func__expf_use=yes
  51601. else
  51602. glibcxx_cv_func__expf_use=no
  51603. fi
  51604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51605. ac_ext=c
  51606. ac_cpp='$CPP $CPPFLAGS'
  51607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51610. fi
  51611. fi
  51612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  51613. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  51614. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  51615. for ac_func in _expf
  51616. do :
  51617. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  51618. if test "x$ac_cv_func__expf" = xyes; then :
  51619. cat >>confdefs.h <<_ACEOF
  51620. #define HAVE__EXPF 1
  51621. _ACEOF
  51622. fi
  51623. done
  51624. fi
  51625. fi
  51626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  51627. $as_echo_n "checking for isnanf declaration... " >&6; }
  51628. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  51629. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  51630. $as_echo_n "(cached) " >&6
  51631. else
  51632. ac_ext=cpp
  51633. ac_cpp='$CXXCPP $CPPFLAGS'
  51634. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51635. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51636. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51638. /* end confdefs.h. */
  51639. #include <math.h>
  51640. #ifdef HAVE_IEEEFP_H
  51641. #include <ieeefp.h>
  51642. #endif
  51643. int
  51644. main ()
  51645. {
  51646. isnanf(0);
  51647. ;
  51648. return 0;
  51649. }
  51650. _ACEOF
  51651. if ac_fn_cxx_try_compile "$LINENO"; then :
  51652. glibcxx_cv_func_isnanf_use=yes
  51653. else
  51654. glibcxx_cv_func_isnanf_use=no
  51655. fi
  51656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51657. ac_ext=c
  51658. ac_cpp='$CPP $CPPFLAGS'
  51659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51662. fi
  51663. fi
  51664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  51665. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  51666. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  51667. for ac_func in isnanf
  51668. do :
  51669. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  51670. if test "x$ac_cv_func_isnanf" = xyes; then :
  51671. cat >>confdefs.h <<_ACEOF
  51672. #define HAVE_ISNANF 1
  51673. _ACEOF
  51674. fi
  51675. done
  51676. else
  51677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  51678. $as_echo_n "checking for _isnanf declaration... " >&6; }
  51679. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  51680. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  51681. $as_echo_n "(cached) " >&6
  51682. else
  51683. ac_ext=cpp
  51684. ac_cpp='$CXXCPP $CPPFLAGS'
  51685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51689. /* end confdefs.h. */
  51690. #include <math.h>
  51691. #ifdef HAVE_IEEEFP_H
  51692. #include <ieeefp.h>
  51693. #endif
  51694. int
  51695. main ()
  51696. {
  51697. _isnanf(0);
  51698. ;
  51699. return 0;
  51700. }
  51701. _ACEOF
  51702. if ac_fn_cxx_try_compile "$LINENO"; then :
  51703. glibcxx_cv_func__isnanf_use=yes
  51704. else
  51705. glibcxx_cv_func__isnanf_use=no
  51706. fi
  51707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51708. ac_ext=c
  51709. ac_cpp='$CPP $CPPFLAGS'
  51710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51713. fi
  51714. fi
  51715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  51716. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  51717. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  51718. for ac_func in _isnanf
  51719. do :
  51720. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  51721. if test "x$ac_cv_func__isnanf" = xyes; then :
  51722. cat >>confdefs.h <<_ACEOF
  51723. #define HAVE__ISNANF 1
  51724. _ACEOF
  51725. fi
  51726. done
  51727. fi
  51728. fi
  51729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  51730. $as_echo_n "checking for isinff declaration... " >&6; }
  51731. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  51732. if ${glibcxx_cv_func_isinff_use+:} false; then :
  51733. $as_echo_n "(cached) " >&6
  51734. else
  51735. ac_ext=cpp
  51736. ac_cpp='$CXXCPP $CPPFLAGS'
  51737. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51738. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51739. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51741. /* end confdefs.h. */
  51742. #include <math.h>
  51743. #ifdef HAVE_IEEEFP_H
  51744. #include <ieeefp.h>
  51745. #endif
  51746. int
  51747. main ()
  51748. {
  51749. isinff(0);
  51750. ;
  51751. return 0;
  51752. }
  51753. _ACEOF
  51754. if ac_fn_cxx_try_compile "$LINENO"; then :
  51755. glibcxx_cv_func_isinff_use=yes
  51756. else
  51757. glibcxx_cv_func_isinff_use=no
  51758. fi
  51759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51760. ac_ext=c
  51761. ac_cpp='$CPP $CPPFLAGS'
  51762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51765. fi
  51766. fi
  51767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  51768. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  51769. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  51770. for ac_func in isinff
  51771. do :
  51772. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  51773. if test "x$ac_cv_func_isinff" = xyes; then :
  51774. cat >>confdefs.h <<_ACEOF
  51775. #define HAVE_ISINFF 1
  51776. _ACEOF
  51777. fi
  51778. done
  51779. else
  51780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  51781. $as_echo_n "checking for _isinff declaration... " >&6; }
  51782. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  51783. if ${glibcxx_cv_func__isinff_use+:} false; then :
  51784. $as_echo_n "(cached) " >&6
  51785. else
  51786. ac_ext=cpp
  51787. ac_cpp='$CXXCPP $CPPFLAGS'
  51788. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51789. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51790. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51792. /* end confdefs.h. */
  51793. #include <math.h>
  51794. #ifdef HAVE_IEEEFP_H
  51795. #include <ieeefp.h>
  51796. #endif
  51797. int
  51798. main ()
  51799. {
  51800. _isinff(0);
  51801. ;
  51802. return 0;
  51803. }
  51804. _ACEOF
  51805. if ac_fn_cxx_try_compile "$LINENO"; then :
  51806. glibcxx_cv_func__isinff_use=yes
  51807. else
  51808. glibcxx_cv_func__isinff_use=no
  51809. fi
  51810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51811. ac_ext=c
  51812. ac_cpp='$CPP $CPPFLAGS'
  51813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51816. fi
  51817. fi
  51818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  51819. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  51820. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  51821. for ac_func in _isinff
  51822. do :
  51823. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  51824. if test "x$ac_cv_func__isinff" = xyes; then :
  51825. cat >>confdefs.h <<_ACEOF
  51826. #define HAVE__ISINFF 1
  51827. _ACEOF
  51828. fi
  51829. done
  51830. fi
  51831. fi
  51832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  51833. $as_echo_n "checking for atan2f declaration... " >&6; }
  51834. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  51835. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  51836. $as_echo_n "(cached) " >&6
  51837. else
  51838. ac_ext=cpp
  51839. ac_cpp='$CXXCPP $CPPFLAGS'
  51840. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51841. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51842. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51844. /* end confdefs.h. */
  51845. #include <math.h>
  51846. int
  51847. main ()
  51848. {
  51849. atan2f(0, 0);
  51850. ;
  51851. return 0;
  51852. }
  51853. _ACEOF
  51854. if ac_fn_cxx_try_compile "$LINENO"; then :
  51855. glibcxx_cv_func_atan2f_use=yes
  51856. else
  51857. glibcxx_cv_func_atan2f_use=no
  51858. fi
  51859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51860. ac_ext=c
  51861. ac_cpp='$CPP $CPPFLAGS'
  51862. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51863. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51864. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51865. fi
  51866. fi
  51867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  51868. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  51869. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  51870. for ac_func in atan2f
  51871. do :
  51872. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  51873. if test "x$ac_cv_func_atan2f" = xyes; then :
  51874. cat >>confdefs.h <<_ACEOF
  51875. #define HAVE_ATAN2F 1
  51876. _ACEOF
  51877. fi
  51878. done
  51879. else
  51880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  51881. $as_echo_n "checking for _atan2f declaration... " >&6; }
  51882. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  51883. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  51884. $as_echo_n "(cached) " >&6
  51885. else
  51886. ac_ext=cpp
  51887. ac_cpp='$CXXCPP $CPPFLAGS'
  51888. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51889. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51890. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51892. /* end confdefs.h. */
  51893. #include <math.h>
  51894. int
  51895. main ()
  51896. {
  51897. _atan2f(0, 0);
  51898. ;
  51899. return 0;
  51900. }
  51901. _ACEOF
  51902. if ac_fn_cxx_try_compile "$LINENO"; then :
  51903. glibcxx_cv_func__atan2f_use=yes
  51904. else
  51905. glibcxx_cv_func__atan2f_use=no
  51906. fi
  51907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51908. ac_ext=c
  51909. ac_cpp='$CPP $CPPFLAGS'
  51910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51913. fi
  51914. fi
  51915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  51916. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  51917. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  51918. for ac_func in _atan2f
  51919. do :
  51920. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  51921. if test "x$ac_cv_func__atan2f" = xyes; then :
  51922. cat >>confdefs.h <<_ACEOF
  51923. #define HAVE__ATAN2F 1
  51924. _ACEOF
  51925. fi
  51926. done
  51927. fi
  51928. fi
  51929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  51930. $as_echo_n "checking for fabsf declaration... " >&6; }
  51931. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  51932. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  51933. $as_echo_n "(cached) " >&6
  51934. else
  51935. ac_ext=cpp
  51936. ac_cpp='$CXXCPP $CPPFLAGS'
  51937. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51938. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51939. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51941. /* end confdefs.h. */
  51942. #include <math.h>
  51943. #ifdef HAVE_IEEEFP_H
  51944. #include <ieeefp.h>
  51945. #endif
  51946. int
  51947. main ()
  51948. {
  51949. fabsf(0);
  51950. ;
  51951. return 0;
  51952. }
  51953. _ACEOF
  51954. if ac_fn_cxx_try_compile "$LINENO"; then :
  51955. glibcxx_cv_func_fabsf_use=yes
  51956. else
  51957. glibcxx_cv_func_fabsf_use=no
  51958. fi
  51959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  51960. ac_ext=c
  51961. ac_cpp='$CPP $CPPFLAGS'
  51962. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51963. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51964. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  51965. fi
  51966. fi
  51967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  51968. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  51969. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  51970. for ac_func in fabsf
  51971. do :
  51972. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  51973. if test "x$ac_cv_func_fabsf" = xyes; then :
  51974. cat >>confdefs.h <<_ACEOF
  51975. #define HAVE_FABSF 1
  51976. _ACEOF
  51977. fi
  51978. done
  51979. else
  51980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  51981. $as_echo_n "checking for _fabsf declaration... " >&6; }
  51982. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  51983. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  51984. $as_echo_n "(cached) " >&6
  51985. else
  51986. ac_ext=cpp
  51987. ac_cpp='$CXXCPP $CPPFLAGS'
  51988. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  51989. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  51990. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  51991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  51992. /* end confdefs.h. */
  51993. #include <math.h>
  51994. #ifdef HAVE_IEEEFP_H
  51995. #include <ieeefp.h>
  51996. #endif
  51997. int
  51998. main ()
  51999. {
  52000. _fabsf(0);
  52001. ;
  52002. return 0;
  52003. }
  52004. _ACEOF
  52005. if ac_fn_cxx_try_compile "$LINENO"; then :
  52006. glibcxx_cv_func__fabsf_use=yes
  52007. else
  52008. glibcxx_cv_func__fabsf_use=no
  52009. fi
  52010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52011. ac_ext=c
  52012. ac_cpp='$CPP $CPPFLAGS'
  52013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52016. fi
  52017. fi
  52018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  52019. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  52020. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  52021. for ac_func in _fabsf
  52022. do :
  52023. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  52024. if test "x$ac_cv_func__fabsf" = xyes; then :
  52025. cat >>confdefs.h <<_ACEOF
  52026. #define HAVE__FABSF 1
  52027. _ACEOF
  52028. fi
  52029. done
  52030. fi
  52031. fi
  52032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  52033. $as_echo_n "checking for fmodf declaration... " >&6; }
  52034. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  52035. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  52036. $as_echo_n "(cached) " >&6
  52037. else
  52038. ac_ext=cpp
  52039. ac_cpp='$CXXCPP $CPPFLAGS'
  52040. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52041. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52042. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52044. /* end confdefs.h. */
  52045. #include <math.h>
  52046. int
  52047. main ()
  52048. {
  52049. fmodf(0, 0);
  52050. ;
  52051. return 0;
  52052. }
  52053. _ACEOF
  52054. if ac_fn_cxx_try_compile "$LINENO"; then :
  52055. glibcxx_cv_func_fmodf_use=yes
  52056. else
  52057. glibcxx_cv_func_fmodf_use=no
  52058. fi
  52059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52060. ac_ext=c
  52061. ac_cpp='$CPP $CPPFLAGS'
  52062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52065. fi
  52066. fi
  52067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  52068. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  52069. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  52070. for ac_func in fmodf
  52071. do :
  52072. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  52073. if test "x$ac_cv_func_fmodf" = xyes; then :
  52074. cat >>confdefs.h <<_ACEOF
  52075. #define HAVE_FMODF 1
  52076. _ACEOF
  52077. fi
  52078. done
  52079. else
  52080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  52081. $as_echo_n "checking for _fmodf declaration... " >&6; }
  52082. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  52083. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  52084. $as_echo_n "(cached) " >&6
  52085. else
  52086. ac_ext=cpp
  52087. ac_cpp='$CXXCPP $CPPFLAGS'
  52088. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52089. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52090. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52092. /* end confdefs.h. */
  52093. #include <math.h>
  52094. int
  52095. main ()
  52096. {
  52097. _fmodf(0, 0);
  52098. ;
  52099. return 0;
  52100. }
  52101. _ACEOF
  52102. if ac_fn_cxx_try_compile "$LINENO"; then :
  52103. glibcxx_cv_func__fmodf_use=yes
  52104. else
  52105. glibcxx_cv_func__fmodf_use=no
  52106. fi
  52107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52108. ac_ext=c
  52109. ac_cpp='$CPP $CPPFLAGS'
  52110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52113. fi
  52114. fi
  52115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  52116. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  52117. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  52118. for ac_func in _fmodf
  52119. do :
  52120. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  52121. if test "x$ac_cv_func__fmodf" = xyes; then :
  52122. cat >>confdefs.h <<_ACEOF
  52123. #define HAVE__FMODF 1
  52124. _ACEOF
  52125. fi
  52126. done
  52127. fi
  52128. fi
  52129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  52130. $as_echo_n "checking for frexpf declaration... " >&6; }
  52131. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  52132. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  52133. $as_echo_n "(cached) " >&6
  52134. else
  52135. ac_ext=cpp
  52136. ac_cpp='$CXXCPP $CPPFLAGS'
  52137. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52138. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52139. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52141. /* end confdefs.h. */
  52142. #include <math.h>
  52143. int
  52144. main ()
  52145. {
  52146. frexpf(0, 0);
  52147. ;
  52148. return 0;
  52149. }
  52150. _ACEOF
  52151. if ac_fn_cxx_try_compile "$LINENO"; then :
  52152. glibcxx_cv_func_frexpf_use=yes
  52153. else
  52154. glibcxx_cv_func_frexpf_use=no
  52155. fi
  52156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52157. ac_ext=c
  52158. ac_cpp='$CPP $CPPFLAGS'
  52159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52162. fi
  52163. fi
  52164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  52165. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  52166. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  52167. for ac_func in frexpf
  52168. do :
  52169. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  52170. if test "x$ac_cv_func_frexpf" = xyes; then :
  52171. cat >>confdefs.h <<_ACEOF
  52172. #define HAVE_FREXPF 1
  52173. _ACEOF
  52174. fi
  52175. done
  52176. else
  52177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  52178. $as_echo_n "checking for _frexpf declaration... " >&6; }
  52179. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  52180. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  52181. $as_echo_n "(cached) " >&6
  52182. else
  52183. ac_ext=cpp
  52184. ac_cpp='$CXXCPP $CPPFLAGS'
  52185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52189. /* end confdefs.h. */
  52190. #include <math.h>
  52191. int
  52192. main ()
  52193. {
  52194. _frexpf(0, 0);
  52195. ;
  52196. return 0;
  52197. }
  52198. _ACEOF
  52199. if ac_fn_cxx_try_compile "$LINENO"; then :
  52200. glibcxx_cv_func__frexpf_use=yes
  52201. else
  52202. glibcxx_cv_func__frexpf_use=no
  52203. fi
  52204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52205. ac_ext=c
  52206. ac_cpp='$CPP $CPPFLAGS'
  52207. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52208. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52209. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52210. fi
  52211. fi
  52212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  52213. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  52214. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  52215. for ac_func in _frexpf
  52216. do :
  52217. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  52218. if test "x$ac_cv_func__frexpf" = xyes; then :
  52219. cat >>confdefs.h <<_ACEOF
  52220. #define HAVE__FREXPF 1
  52221. _ACEOF
  52222. fi
  52223. done
  52224. fi
  52225. fi
  52226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  52227. $as_echo_n "checking for hypotf declaration... " >&6; }
  52228. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  52229. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  52230. $as_echo_n "(cached) " >&6
  52231. else
  52232. ac_ext=cpp
  52233. ac_cpp='$CXXCPP $CPPFLAGS'
  52234. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52235. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52236. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52238. /* end confdefs.h. */
  52239. #include <math.h>
  52240. int
  52241. main ()
  52242. {
  52243. hypotf(0, 0);
  52244. ;
  52245. return 0;
  52246. }
  52247. _ACEOF
  52248. if ac_fn_cxx_try_compile "$LINENO"; then :
  52249. glibcxx_cv_func_hypotf_use=yes
  52250. else
  52251. glibcxx_cv_func_hypotf_use=no
  52252. fi
  52253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52254. ac_ext=c
  52255. ac_cpp='$CPP $CPPFLAGS'
  52256. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52257. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52258. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52259. fi
  52260. fi
  52261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  52262. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  52263. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  52264. for ac_func in hypotf
  52265. do :
  52266. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  52267. if test "x$ac_cv_func_hypotf" = xyes; then :
  52268. cat >>confdefs.h <<_ACEOF
  52269. #define HAVE_HYPOTF 1
  52270. _ACEOF
  52271. fi
  52272. done
  52273. else
  52274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  52275. $as_echo_n "checking for _hypotf declaration... " >&6; }
  52276. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  52277. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  52278. $as_echo_n "(cached) " >&6
  52279. else
  52280. ac_ext=cpp
  52281. ac_cpp='$CXXCPP $CPPFLAGS'
  52282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52286. /* end confdefs.h. */
  52287. #include <math.h>
  52288. int
  52289. main ()
  52290. {
  52291. _hypotf(0, 0);
  52292. ;
  52293. return 0;
  52294. }
  52295. _ACEOF
  52296. if ac_fn_cxx_try_compile "$LINENO"; then :
  52297. glibcxx_cv_func__hypotf_use=yes
  52298. else
  52299. glibcxx_cv_func__hypotf_use=no
  52300. fi
  52301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52302. ac_ext=c
  52303. ac_cpp='$CPP $CPPFLAGS'
  52304. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52305. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52306. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52307. fi
  52308. fi
  52309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  52310. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  52311. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  52312. for ac_func in _hypotf
  52313. do :
  52314. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  52315. if test "x$ac_cv_func__hypotf" = xyes; then :
  52316. cat >>confdefs.h <<_ACEOF
  52317. #define HAVE__HYPOTF 1
  52318. _ACEOF
  52319. fi
  52320. done
  52321. fi
  52322. fi
  52323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  52324. $as_echo_n "checking for ldexpf declaration... " >&6; }
  52325. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  52326. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  52327. $as_echo_n "(cached) " >&6
  52328. else
  52329. ac_ext=cpp
  52330. ac_cpp='$CXXCPP $CPPFLAGS'
  52331. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52332. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52333. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52335. /* end confdefs.h. */
  52336. #include <math.h>
  52337. int
  52338. main ()
  52339. {
  52340. ldexpf(0, 0);
  52341. ;
  52342. return 0;
  52343. }
  52344. _ACEOF
  52345. if ac_fn_cxx_try_compile "$LINENO"; then :
  52346. glibcxx_cv_func_ldexpf_use=yes
  52347. else
  52348. glibcxx_cv_func_ldexpf_use=no
  52349. fi
  52350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52351. ac_ext=c
  52352. ac_cpp='$CPP $CPPFLAGS'
  52353. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52354. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52355. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52356. fi
  52357. fi
  52358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  52359. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  52360. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  52361. for ac_func in ldexpf
  52362. do :
  52363. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  52364. if test "x$ac_cv_func_ldexpf" = xyes; then :
  52365. cat >>confdefs.h <<_ACEOF
  52366. #define HAVE_LDEXPF 1
  52367. _ACEOF
  52368. fi
  52369. done
  52370. else
  52371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  52372. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  52373. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  52374. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  52375. $as_echo_n "(cached) " >&6
  52376. else
  52377. ac_ext=cpp
  52378. ac_cpp='$CXXCPP $CPPFLAGS'
  52379. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52380. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52381. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52383. /* end confdefs.h. */
  52384. #include <math.h>
  52385. int
  52386. main ()
  52387. {
  52388. _ldexpf(0, 0);
  52389. ;
  52390. return 0;
  52391. }
  52392. _ACEOF
  52393. if ac_fn_cxx_try_compile "$LINENO"; then :
  52394. glibcxx_cv_func__ldexpf_use=yes
  52395. else
  52396. glibcxx_cv_func__ldexpf_use=no
  52397. fi
  52398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52399. ac_ext=c
  52400. ac_cpp='$CPP $CPPFLAGS'
  52401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52404. fi
  52405. fi
  52406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  52407. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  52408. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  52409. for ac_func in _ldexpf
  52410. do :
  52411. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  52412. if test "x$ac_cv_func__ldexpf" = xyes; then :
  52413. cat >>confdefs.h <<_ACEOF
  52414. #define HAVE__LDEXPF 1
  52415. _ACEOF
  52416. fi
  52417. done
  52418. fi
  52419. fi
  52420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  52421. $as_echo_n "checking for logf declaration... " >&6; }
  52422. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  52423. if ${glibcxx_cv_func_logf_use+:} false; then :
  52424. $as_echo_n "(cached) " >&6
  52425. else
  52426. ac_ext=cpp
  52427. ac_cpp='$CXXCPP $CPPFLAGS'
  52428. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52429. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52430. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52432. /* end confdefs.h. */
  52433. #include <math.h>
  52434. #ifdef HAVE_IEEEFP_H
  52435. #include <ieeefp.h>
  52436. #endif
  52437. int
  52438. main ()
  52439. {
  52440. logf(0);
  52441. ;
  52442. return 0;
  52443. }
  52444. _ACEOF
  52445. if ac_fn_cxx_try_compile "$LINENO"; then :
  52446. glibcxx_cv_func_logf_use=yes
  52447. else
  52448. glibcxx_cv_func_logf_use=no
  52449. fi
  52450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52451. ac_ext=c
  52452. ac_cpp='$CPP $CPPFLAGS'
  52453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52456. fi
  52457. fi
  52458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  52459. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  52460. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  52461. for ac_func in logf
  52462. do :
  52463. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  52464. if test "x$ac_cv_func_logf" = xyes; then :
  52465. cat >>confdefs.h <<_ACEOF
  52466. #define HAVE_LOGF 1
  52467. _ACEOF
  52468. fi
  52469. done
  52470. else
  52471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  52472. $as_echo_n "checking for _logf declaration... " >&6; }
  52473. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  52474. if ${glibcxx_cv_func__logf_use+:} false; then :
  52475. $as_echo_n "(cached) " >&6
  52476. else
  52477. ac_ext=cpp
  52478. ac_cpp='$CXXCPP $CPPFLAGS'
  52479. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52480. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52481. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52483. /* end confdefs.h. */
  52484. #include <math.h>
  52485. #ifdef HAVE_IEEEFP_H
  52486. #include <ieeefp.h>
  52487. #endif
  52488. int
  52489. main ()
  52490. {
  52491. _logf(0);
  52492. ;
  52493. return 0;
  52494. }
  52495. _ACEOF
  52496. if ac_fn_cxx_try_compile "$LINENO"; then :
  52497. glibcxx_cv_func__logf_use=yes
  52498. else
  52499. glibcxx_cv_func__logf_use=no
  52500. fi
  52501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52502. ac_ext=c
  52503. ac_cpp='$CPP $CPPFLAGS'
  52504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52507. fi
  52508. fi
  52509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  52510. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  52511. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  52512. for ac_func in _logf
  52513. do :
  52514. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  52515. if test "x$ac_cv_func__logf" = xyes; then :
  52516. cat >>confdefs.h <<_ACEOF
  52517. #define HAVE__LOGF 1
  52518. _ACEOF
  52519. fi
  52520. done
  52521. fi
  52522. fi
  52523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  52524. $as_echo_n "checking for log10f declaration... " >&6; }
  52525. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  52526. if ${glibcxx_cv_func_log10f_use+:} false; then :
  52527. $as_echo_n "(cached) " >&6
  52528. else
  52529. ac_ext=cpp
  52530. ac_cpp='$CXXCPP $CPPFLAGS'
  52531. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52532. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52533. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52535. /* end confdefs.h. */
  52536. #include <math.h>
  52537. #ifdef HAVE_IEEEFP_H
  52538. #include <ieeefp.h>
  52539. #endif
  52540. int
  52541. main ()
  52542. {
  52543. log10f(0);
  52544. ;
  52545. return 0;
  52546. }
  52547. _ACEOF
  52548. if ac_fn_cxx_try_compile "$LINENO"; then :
  52549. glibcxx_cv_func_log10f_use=yes
  52550. else
  52551. glibcxx_cv_func_log10f_use=no
  52552. fi
  52553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52554. ac_ext=c
  52555. ac_cpp='$CPP $CPPFLAGS'
  52556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52559. fi
  52560. fi
  52561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  52562. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  52563. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  52564. for ac_func in log10f
  52565. do :
  52566. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  52567. if test "x$ac_cv_func_log10f" = xyes; then :
  52568. cat >>confdefs.h <<_ACEOF
  52569. #define HAVE_LOG10F 1
  52570. _ACEOF
  52571. fi
  52572. done
  52573. else
  52574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  52575. $as_echo_n "checking for _log10f declaration... " >&6; }
  52576. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  52577. if ${glibcxx_cv_func__log10f_use+:} false; then :
  52578. $as_echo_n "(cached) " >&6
  52579. else
  52580. ac_ext=cpp
  52581. ac_cpp='$CXXCPP $CPPFLAGS'
  52582. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52583. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52584. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52586. /* end confdefs.h. */
  52587. #include <math.h>
  52588. #ifdef HAVE_IEEEFP_H
  52589. #include <ieeefp.h>
  52590. #endif
  52591. int
  52592. main ()
  52593. {
  52594. _log10f(0);
  52595. ;
  52596. return 0;
  52597. }
  52598. _ACEOF
  52599. if ac_fn_cxx_try_compile "$LINENO"; then :
  52600. glibcxx_cv_func__log10f_use=yes
  52601. else
  52602. glibcxx_cv_func__log10f_use=no
  52603. fi
  52604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52605. ac_ext=c
  52606. ac_cpp='$CPP $CPPFLAGS'
  52607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52610. fi
  52611. fi
  52612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  52613. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  52614. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  52615. for ac_func in _log10f
  52616. do :
  52617. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  52618. if test "x$ac_cv_func__log10f" = xyes; then :
  52619. cat >>confdefs.h <<_ACEOF
  52620. #define HAVE__LOG10F 1
  52621. _ACEOF
  52622. fi
  52623. done
  52624. fi
  52625. fi
  52626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  52627. $as_echo_n "checking for modff declaration... " >&6; }
  52628. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  52629. if ${glibcxx_cv_func_modff_use+:} false; then :
  52630. $as_echo_n "(cached) " >&6
  52631. else
  52632. ac_ext=cpp
  52633. ac_cpp='$CXXCPP $CPPFLAGS'
  52634. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52635. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52636. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52638. /* end confdefs.h. */
  52639. #include <math.h>
  52640. int
  52641. main ()
  52642. {
  52643. modff(0, 0);
  52644. ;
  52645. return 0;
  52646. }
  52647. _ACEOF
  52648. if ac_fn_cxx_try_compile "$LINENO"; then :
  52649. glibcxx_cv_func_modff_use=yes
  52650. else
  52651. glibcxx_cv_func_modff_use=no
  52652. fi
  52653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52654. ac_ext=c
  52655. ac_cpp='$CPP $CPPFLAGS'
  52656. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52657. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52658. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52659. fi
  52660. fi
  52661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  52662. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  52663. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  52664. for ac_func in modff
  52665. do :
  52666. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  52667. if test "x$ac_cv_func_modff" = xyes; then :
  52668. cat >>confdefs.h <<_ACEOF
  52669. #define HAVE_MODFF 1
  52670. _ACEOF
  52671. fi
  52672. done
  52673. else
  52674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  52675. $as_echo_n "checking for _modff declaration... " >&6; }
  52676. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  52677. if ${glibcxx_cv_func__modff_use+:} false; then :
  52678. $as_echo_n "(cached) " >&6
  52679. else
  52680. ac_ext=cpp
  52681. ac_cpp='$CXXCPP $CPPFLAGS'
  52682. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52683. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52684. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52686. /* end confdefs.h. */
  52687. #include <math.h>
  52688. int
  52689. main ()
  52690. {
  52691. _modff(0, 0);
  52692. ;
  52693. return 0;
  52694. }
  52695. _ACEOF
  52696. if ac_fn_cxx_try_compile "$LINENO"; then :
  52697. glibcxx_cv_func__modff_use=yes
  52698. else
  52699. glibcxx_cv_func__modff_use=no
  52700. fi
  52701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52702. ac_ext=c
  52703. ac_cpp='$CPP $CPPFLAGS'
  52704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52707. fi
  52708. fi
  52709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  52710. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  52711. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  52712. for ac_func in _modff
  52713. do :
  52714. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  52715. if test "x$ac_cv_func__modff" = xyes; then :
  52716. cat >>confdefs.h <<_ACEOF
  52717. #define HAVE__MODFF 1
  52718. _ACEOF
  52719. fi
  52720. done
  52721. fi
  52722. fi
  52723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  52724. $as_echo_n "checking for modf declaration... " >&6; }
  52725. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  52726. if ${glibcxx_cv_func_modf_use+:} false; then :
  52727. $as_echo_n "(cached) " >&6
  52728. else
  52729. ac_ext=cpp
  52730. ac_cpp='$CXXCPP $CPPFLAGS'
  52731. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52732. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52733. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52735. /* end confdefs.h. */
  52736. #include <math.h>
  52737. int
  52738. main ()
  52739. {
  52740. modf(0, 0);
  52741. ;
  52742. return 0;
  52743. }
  52744. _ACEOF
  52745. if ac_fn_cxx_try_compile "$LINENO"; then :
  52746. glibcxx_cv_func_modf_use=yes
  52747. else
  52748. glibcxx_cv_func_modf_use=no
  52749. fi
  52750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52751. ac_ext=c
  52752. ac_cpp='$CPP $CPPFLAGS'
  52753. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52754. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52755. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52756. fi
  52757. fi
  52758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  52759. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  52760. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  52761. for ac_func in modf
  52762. do :
  52763. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  52764. if test "x$ac_cv_func_modf" = xyes; then :
  52765. cat >>confdefs.h <<_ACEOF
  52766. #define HAVE_MODF 1
  52767. _ACEOF
  52768. fi
  52769. done
  52770. else
  52771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  52772. $as_echo_n "checking for _modf declaration... " >&6; }
  52773. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  52774. if ${glibcxx_cv_func__modf_use+:} false; then :
  52775. $as_echo_n "(cached) " >&6
  52776. else
  52777. ac_ext=cpp
  52778. ac_cpp='$CXXCPP $CPPFLAGS'
  52779. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52780. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52781. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52783. /* end confdefs.h. */
  52784. #include <math.h>
  52785. int
  52786. main ()
  52787. {
  52788. _modf(0, 0);
  52789. ;
  52790. return 0;
  52791. }
  52792. _ACEOF
  52793. if ac_fn_cxx_try_compile "$LINENO"; then :
  52794. glibcxx_cv_func__modf_use=yes
  52795. else
  52796. glibcxx_cv_func__modf_use=no
  52797. fi
  52798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52799. ac_ext=c
  52800. ac_cpp='$CPP $CPPFLAGS'
  52801. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52802. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52803. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52804. fi
  52805. fi
  52806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  52807. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  52808. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  52809. for ac_func in _modf
  52810. do :
  52811. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  52812. if test "x$ac_cv_func__modf" = xyes; then :
  52813. cat >>confdefs.h <<_ACEOF
  52814. #define HAVE__MODF 1
  52815. _ACEOF
  52816. fi
  52817. done
  52818. fi
  52819. fi
  52820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  52821. $as_echo_n "checking for powf declaration... " >&6; }
  52822. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  52823. if ${glibcxx_cv_func_powf_use+:} false; then :
  52824. $as_echo_n "(cached) " >&6
  52825. else
  52826. ac_ext=cpp
  52827. ac_cpp='$CXXCPP $CPPFLAGS'
  52828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52832. /* end confdefs.h. */
  52833. #include <math.h>
  52834. int
  52835. main ()
  52836. {
  52837. powf(0, 0);
  52838. ;
  52839. return 0;
  52840. }
  52841. _ACEOF
  52842. if ac_fn_cxx_try_compile "$LINENO"; then :
  52843. glibcxx_cv_func_powf_use=yes
  52844. else
  52845. glibcxx_cv_func_powf_use=no
  52846. fi
  52847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52848. ac_ext=c
  52849. ac_cpp='$CPP $CPPFLAGS'
  52850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52853. fi
  52854. fi
  52855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  52856. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  52857. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  52858. for ac_func in powf
  52859. do :
  52860. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  52861. if test "x$ac_cv_func_powf" = xyes; then :
  52862. cat >>confdefs.h <<_ACEOF
  52863. #define HAVE_POWF 1
  52864. _ACEOF
  52865. fi
  52866. done
  52867. else
  52868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  52869. $as_echo_n "checking for _powf declaration... " >&6; }
  52870. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  52871. if ${glibcxx_cv_func__powf_use+:} false; then :
  52872. $as_echo_n "(cached) " >&6
  52873. else
  52874. ac_ext=cpp
  52875. ac_cpp='$CXXCPP $CPPFLAGS'
  52876. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52877. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52878. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52880. /* end confdefs.h. */
  52881. #include <math.h>
  52882. int
  52883. main ()
  52884. {
  52885. _powf(0, 0);
  52886. ;
  52887. return 0;
  52888. }
  52889. _ACEOF
  52890. if ac_fn_cxx_try_compile "$LINENO"; then :
  52891. glibcxx_cv_func__powf_use=yes
  52892. else
  52893. glibcxx_cv_func__powf_use=no
  52894. fi
  52895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52896. ac_ext=c
  52897. ac_cpp='$CPP $CPPFLAGS'
  52898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52901. fi
  52902. fi
  52903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  52904. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  52905. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  52906. for ac_func in _powf
  52907. do :
  52908. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  52909. if test "x$ac_cv_func__powf" = xyes; then :
  52910. cat >>confdefs.h <<_ACEOF
  52911. #define HAVE__POWF 1
  52912. _ACEOF
  52913. fi
  52914. done
  52915. fi
  52916. fi
  52917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  52918. $as_echo_n "checking for sqrtf declaration... " >&6; }
  52919. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  52920. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  52921. $as_echo_n "(cached) " >&6
  52922. else
  52923. ac_ext=cpp
  52924. ac_cpp='$CXXCPP $CPPFLAGS'
  52925. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52926. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52927. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52929. /* end confdefs.h. */
  52930. #include <math.h>
  52931. #ifdef HAVE_IEEEFP_H
  52932. #include <ieeefp.h>
  52933. #endif
  52934. int
  52935. main ()
  52936. {
  52937. sqrtf(0);
  52938. ;
  52939. return 0;
  52940. }
  52941. _ACEOF
  52942. if ac_fn_cxx_try_compile "$LINENO"; then :
  52943. glibcxx_cv_func_sqrtf_use=yes
  52944. else
  52945. glibcxx_cv_func_sqrtf_use=no
  52946. fi
  52947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52948. ac_ext=c
  52949. ac_cpp='$CPP $CPPFLAGS'
  52950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  52953. fi
  52954. fi
  52955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  52956. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  52957. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  52958. for ac_func in sqrtf
  52959. do :
  52960. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  52961. if test "x$ac_cv_func_sqrtf" = xyes; then :
  52962. cat >>confdefs.h <<_ACEOF
  52963. #define HAVE_SQRTF 1
  52964. _ACEOF
  52965. fi
  52966. done
  52967. else
  52968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  52969. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  52970. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  52971. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  52972. $as_echo_n "(cached) " >&6
  52973. else
  52974. ac_ext=cpp
  52975. ac_cpp='$CXXCPP $CPPFLAGS'
  52976. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  52977. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  52978. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  52979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  52980. /* end confdefs.h. */
  52981. #include <math.h>
  52982. #ifdef HAVE_IEEEFP_H
  52983. #include <ieeefp.h>
  52984. #endif
  52985. int
  52986. main ()
  52987. {
  52988. _sqrtf(0);
  52989. ;
  52990. return 0;
  52991. }
  52992. _ACEOF
  52993. if ac_fn_cxx_try_compile "$LINENO"; then :
  52994. glibcxx_cv_func__sqrtf_use=yes
  52995. else
  52996. glibcxx_cv_func__sqrtf_use=no
  52997. fi
  52998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  52999. ac_ext=c
  53000. ac_cpp='$CPP $CPPFLAGS'
  53001. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53002. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53003. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53004. fi
  53005. fi
  53006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  53007. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  53008. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  53009. for ac_func in _sqrtf
  53010. do :
  53011. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  53012. if test "x$ac_cv_func__sqrtf" = xyes; then :
  53013. cat >>confdefs.h <<_ACEOF
  53014. #define HAVE__SQRTF 1
  53015. _ACEOF
  53016. fi
  53017. done
  53018. fi
  53019. fi
  53020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  53021. $as_echo_n "checking for sincosf declaration... " >&6; }
  53022. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  53023. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  53024. $as_echo_n "(cached) " >&6
  53025. else
  53026. ac_ext=cpp
  53027. ac_cpp='$CXXCPP $CPPFLAGS'
  53028. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53029. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53030. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53032. /* end confdefs.h. */
  53033. #include <math.h>
  53034. int
  53035. main ()
  53036. {
  53037. sincosf(0, 0, 0);
  53038. ;
  53039. return 0;
  53040. }
  53041. _ACEOF
  53042. if ac_fn_cxx_try_compile "$LINENO"; then :
  53043. glibcxx_cv_func_sincosf_use=yes
  53044. else
  53045. glibcxx_cv_func_sincosf_use=no
  53046. fi
  53047. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53048. ac_ext=c
  53049. ac_cpp='$CPP $CPPFLAGS'
  53050. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53051. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53052. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53053. fi
  53054. fi
  53055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  53056. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  53057. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  53058. for ac_func in sincosf
  53059. do :
  53060. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  53061. if test "x$ac_cv_func_sincosf" = xyes; then :
  53062. cat >>confdefs.h <<_ACEOF
  53063. #define HAVE_SINCOSF 1
  53064. _ACEOF
  53065. fi
  53066. done
  53067. else
  53068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  53069. $as_echo_n "checking for _sincosf declaration... " >&6; }
  53070. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  53071. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  53072. $as_echo_n "(cached) " >&6
  53073. else
  53074. ac_ext=cpp
  53075. ac_cpp='$CXXCPP $CPPFLAGS'
  53076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53080. /* end confdefs.h. */
  53081. #include <math.h>
  53082. int
  53083. main ()
  53084. {
  53085. _sincosf(0, 0, 0);
  53086. ;
  53087. return 0;
  53088. }
  53089. _ACEOF
  53090. if ac_fn_cxx_try_compile "$LINENO"; then :
  53091. glibcxx_cv_func__sincosf_use=yes
  53092. else
  53093. glibcxx_cv_func__sincosf_use=no
  53094. fi
  53095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53096. ac_ext=c
  53097. ac_cpp='$CPP $CPPFLAGS'
  53098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53101. fi
  53102. fi
  53103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  53104. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  53105. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  53106. for ac_func in _sincosf
  53107. do :
  53108. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  53109. if test "x$ac_cv_func__sincosf" = xyes; then :
  53110. cat >>confdefs.h <<_ACEOF
  53111. #define HAVE__SINCOSF 1
  53112. _ACEOF
  53113. fi
  53114. done
  53115. fi
  53116. fi
  53117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  53118. $as_echo_n "checking for finitef declaration... " >&6; }
  53119. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  53120. if ${glibcxx_cv_func_finitef_use+:} false; then :
  53121. $as_echo_n "(cached) " >&6
  53122. else
  53123. ac_ext=cpp
  53124. ac_cpp='$CXXCPP $CPPFLAGS'
  53125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53129. /* end confdefs.h. */
  53130. #include <math.h>
  53131. #ifdef HAVE_IEEEFP_H
  53132. #include <ieeefp.h>
  53133. #endif
  53134. int
  53135. main ()
  53136. {
  53137. finitef(0);
  53138. ;
  53139. return 0;
  53140. }
  53141. _ACEOF
  53142. if ac_fn_cxx_try_compile "$LINENO"; then :
  53143. glibcxx_cv_func_finitef_use=yes
  53144. else
  53145. glibcxx_cv_func_finitef_use=no
  53146. fi
  53147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53148. ac_ext=c
  53149. ac_cpp='$CPP $CPPFLAGS'
  53150. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53151. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53152. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53153. fi
  53154. fi
  53155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  53156. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  53157. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  53158. for ac_func in finitef
  53159. do :
  53160. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  53161. if test "x$ac_cv_func_finitef" = xyes; then :
  53162. cat >>confdefs.h <<_ACEOF
  53163. #define HAVE_FINITEF 1
  53164. _ACEOF
  53165. fi
  53166. done
  53167. else
  53168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  53169. $as_echo_n "checking for _finitef declaration... " >&6; }
  53170. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  53171. if ${glibcxx_cv_func__finitef_use+:} false; then :
  53172. $as_echo_n "(cached) " >&6
  53173. else
  53174. ac_ext=cpp
  53175. ac_cpp='$CXXCPP $CPPFLAGS'
  53176. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53177. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53178. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53180. /* end confdefs.h. */
  53181. #include <math.h>
  53182. #ifdef HAVE_IEEEFP_H
  53183. #include <ieeefp.h>
  53184. #endif
  53185. int
  53186. main ()
  53187. {
  53188. _finitef(0);
  53189. ;
  53190. return 0;
  53191. }
  53192. _ACEOF
  53193. if ac_fn_cxx_try_compile "$LINENO"; then :
  53194. glibcxx_cv_func__finitef_use=yes
  53195. else
  53196. glibcxx_cv_func__finitef_use=no
  53197. fi
  53198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53199. ac_ext=c
  53200. ac_cpp='$CPP $CPPFLAGS'
  53201. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53202. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53203. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53204. fi
  53205. fi
  53206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  53207. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  53208. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  53209. for ac_func in _finitef
  53210. do :
  53211. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  53212. if test "x$ac_cv_func__finitef" = xyes; then :
  53213. cat >>confdefs.h <<_ACEOF
  53214. #define HAVE__FINITEF 1
  53215. _ACEOF
  53216. fi
  53217. done
  53218. fi
  53219. fi
  53220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  53221. $as_echo_n "checking for long double trig functions... " >&6; }
  53222. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  53223. $as_echo_n "(cached) " >&6
  53224. else
  53225. ac_ext=cpp
  53226. ac_cpp='$CXXCPP $CPPFLAGS'
  53227. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53228. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53229. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53231. /* end confdefs.h. */
  53232. #include <math.h>
  53233. int
  53234. main ()
  53235. {
  53236. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  53237. ;
  53238. return 0;
  53239. }
  53240. _ACEOF
  53241. if ac_fn_cxx_try_compile "$LINENO"; then :
  53242. glibcxx_cv_func_long_double_trig_use=yes
  53243. else
  53244. glibcxx_cv_func_long_double_trig_use=no
  53245. fi
  53246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53247. ac_ext=c
  53248. ac_cpp='$CPP $CPPFLAGS'
  53249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53252. fi
  53253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  53254. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  53255. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  53256. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  53257. do :
  53258. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  53259. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  53260. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  53261. cat >>confdefs.h <<_ACEOF
  53262. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  53263. _ACEOF
  53264. fi
  53265. done
  53266. else
  53267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  53268. $as_echo_n "checking for _long double trig functions... " >&6; }
  53269. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  53270. $as_echo_n "(cached) " >&6
  53271. else
  53272. ac_ext=cpp
  53273. ac_cpp='$CXXCPP $CPPFLAGS'
  53274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53278. /* end confdefs.h. */
  53279. #include <math.h>
  53280. int
  53281. main ()
  53282. {
  53283. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  53284. ;
  53285. return 0;
  53286. }
  53287. _ACEOF
  53288. if ac_fn_cxx_try_compile "$LINENO"; then :
  53289. glibcxx_cv_func__long_double_trig_use=yes
  53290. else
  53291. glibcxx_cv_func__long_double_trig_use=no
  53292. fi
  53293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53294. ac_ext=c
  53295. ac_cpp='$CPP $CPPFLAGS'
  53296. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53297. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53298. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53299. fi
  53300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  53301. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  53302. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  53303. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  53304. do :
  53305. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  53306. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  53307. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  53308. cat >>confdefs.h <<_ACEOF
  53309. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  53310. _ACEOF
  53311. fi
  53312. done
  53313. fi
  53314. fi
  53315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  53316. $as_echo_n "checking for long double round functions... " >&6; }
  53317. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  53318. $as_echo_n "(cached) " >&6
  53319. else
  53320. ac_ext=cpp
  53321. ac_cpp='$CXXCPP $CPPFLAGS'
  53322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53326. /* end confdefs.h. */
  53327. #include <math.h>
  53328. int
  53329. main ()
  53330. {
  53331. ceill (0); floorl (0);
  53332. ;
  53333. return 0;
  53334. }
  53335. _ACEOF
  53336. if ac_fn_cxx_try_compile "$LINENO"; then :
  53337. glibcxx_cv_func_long_double_round_use=yes
  53338. else
  53339. glibcxx_cv_func_long_double_round_use=no
  53340. fi
  53341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53342. ac_ext=c
  53343. ac_cpp='$CPP $CPPFLAGS'
  53344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53347. fi
  53348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  53349. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  53350. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  53351. for ac_func in ceill floorl
  53352. do :
  53353. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  53354. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  53355. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  53356. cat >>confdefs.h <<_ACEOF
  53357. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  53358. _ACEOF
  53359. fi
  53360. done
  53361. else
  53362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  53363. $as_echo_n "checking for _long double round functions... " >&6; }
  53364. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  53365. $as_echo_n "(cached) " >&6
  53366. else
  53367. ac_ext=cpp
  53368. ac_cpp='$CXXCPP $CPPFLAGS'
  53369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53373. /* end confdefs.h. */
  53374. #include <math.h>
  53375. int
  53376. main ()
  53377. {
  53378. _ceill (0); _floorl (0);
  53379. ;
  53380. return 0;
  53381. }
  53382. _ACEOF
  53383. if ac_fn_cxx_try_compile "$LINENO"; then :
  53384. glibcxx_cv_func__long_double_round_use=yes
  53385. else
  53386. glibcxx_cv_func__long_double_round_use=no
  53387. fi
  53388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53389. ac_ext=c
  53390. ac_cpp='$CPP $CPPFLAGS'
  53391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53394. fi
  53395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  53396. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  53397. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  53398. for ac_func in _ceill _floorl
  53399. do :
  53400. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  53401. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  53402. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  53403. cat >>confdefs.h <<_ACEOF
  53404. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  53405. _ACEOF
  53406. fi
  53407. done
  53408. fi
  53409. fi
  53410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  53411. $as_echo_n "checking for isnanl declaration... " >&6; }
  53412. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  53413. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  53414. $as_echo_n "(cached) " >&6
  53415. else
  53416. ac_ext=cpp
  53417. ac_cpp='$CXXCPP $CPPFLAGS'
  53418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53422. /* end confdefs.h. */
  53423. #include <math.h>
  53424. #ifdef HAVE_IEEEFP_H
  53425. #include <ieeefp.h>
  53426. #endif
  53427. int
  53428. main ()
  53429. {
  53430. isnanl(0);
  53431. ;
  53432. return 0;
  53433. }
  53434. _ACEOF
  53435. if ac_fn_cxx_try_compile "$LINENO"; then :
  53436. glibcxx_cv_func_isnanl_use=yes
  53437. else
  53438. glibcxx_cv_func_isnanl_use=no
  53439. fi
  53440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53441. ac_ext=c
  53442. ac_cpp='$CPP $CPPFLAGS'
  53443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53446. fi
  53447. fi
  53448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  53449. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  53450. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  53451. for ac_func in isnanl
  53452. do :
  53453. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  53454. if test "x$ac_cv_func_isnanl" = xyes; then :
  53455. cat >>confdefs.h <<_ACEOF
  53456. #define HAVE_ISNANL 1
  53457. _ACEOF
  53458. fi
  53459. done
  53460. else
  53461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  53462. $as_echo_n "checking for _isnanl declaration... " >&6; }
  53463. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  53464. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  53465. $as_echo_n "(cached) " >&6
  53466. else
  53467. ac_ext=cpp
  53468. ac_cpp='$CXXCPP $CPPFLAGS'
  53469. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53470. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53471. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53473. /* end confdefs.h. */
  53474. #include <math.h>
  53475. #ifdef HAVE_IEEEFP_H
  53476. #include <ieeefp.h>
  53477. #endif
  53478. int
  53479. main ()
  53480. {
  53481. _isnanl(0);
  53482. ;
  53483. return 0;
  53484. }
  53485. _ACEOF
  53486. if ac_fn_cxx_try_compile "$LINENO"; then :
  53487. glibcxx_cv_func__isnanl_use=yes
  53488. else
  53489. glibcxx_cv_func__isnanl_use=no
  53490. fi
  53491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53492. ac_ext=c
  53493. ac_cpp='$CPP $CPPFLAGS'
  53494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53497. fi
  53498. fi
  53499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  53500. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  53501. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  53502. for ac_func in _isnanl
  53503. do :
  53504. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  53505. if test "x$ac_cv_func__isnanl" = xyes; then :
  53506. cat >>confdefs.h <<_ACEOF
  53507. #define HAVE__ISNANL 1
  53508. _ACEOF
  53509. fi
  53510. done
  53511. fi
  53512. fi
  53513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  53514. $as_echo_n "checking for isinfl declaration... " >&6; }
  53515. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  53516. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  53517. $as_echo_n "(cached) " >&6
  53518. else
  53519. ac_ext=cpp
  53520. ac_cpp='$CXXCPP $CPPFLAGS'
  53521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53525. /* end confdefs.h. */
  53526. #include <math.h>
  53527. #ifdef HAVE_IEEEFP_H
  53528. #include <ieeefp.h>
  53529. #endif
  53530. int
  53531. main ()
  53532. {
  53533. isinfl(0);
  53534. ;
  53535. return 0;
  53536. }
  53537. _ACEOF
  53538. if ac_fn_cxx_try_compile "$LINENO"; then :
  53539. glibcxx_cv_func_isinfl_use=yes
  53540. else
  53541. glibcxx_cv_func_isinfl_use=no
  53542. fi
  53543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53544. ac_ext=c
  53545. ac_cpp='$CPP $CPPFLAGS'
  53546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53549. fi
  53550. fi
  53551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  53552. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  53553. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  53554. for ac_func in isinfl
  53555. do :
  53556. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  53557. if test "x$ac_cv_func_isinfl" = xyes; then :
  53558. cat >>confdefs.h <<_ACEOF
  53559. #define HAVE_ISINFL 1
  53560. _ACEOF
  53561. fi
  53562. done
  53563. else
  53564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  53565. $as_echo_n "checking for _isinfl declaration... " >&6; }
  53566. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  53567. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  53568. $as_echo_n "(cached) " >&6
  53569. else
  53570. ac_ext=cpp
  53571. ac_cpp='$CXXCPP $CPPFLAGS'
  53572. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53573. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53574. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53576. /* end confdefs.h. */
  53577. #include <math.h>
  53578. #ifdef HAVE_IEEEFP_H
  53579. #include <ieeefp.h>
  53580. #endif
  53581. int
  53582. main ()
  53583. {
  53584. _isinfl(0);
  53585. ;
  53586. return 0;
  53587. }
  53588. _ACEOF
  53589. if ac_fn_cxx_try_compile "$LINENO"; then :
  53590. glibcxx_cv_func__isinfl_use=yes
  53591. else
  53592. glibcxx_cv_func__isinfl_use=no
  53593. fi
  53594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53595. ac_ext=c
  53596. ac_cpp='$CPP $CPPFLAGS'
  53597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53600. fi
  53601. fi
  53602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  53603. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  53604. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  53605. for ac_func in _isinfl
  53606. do :
  53607. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  53608. if test "x$ac_cv_func__isinfl" = xyes; then :
  53609. cat >>confdefs.h <<_ACEOF
  53610. #define HAVE__ISINFL 1
  53611. _ACEOF
  53612. fi
  53613. done
  53614. fi
  53615. fi
  53616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  53617. $as_echo_n "checking for atan2l declaration... " >&6; }
  53618. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  53619. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  53620. $as_echo_n "(cached) " >&6
  53621. else
  53622. ac_ext=cpp
  53623. ac_cpp='$CXXCPP $CPPFLAGS'
  53624. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53625. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53626. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53628. /* end confdefs.h. */
  53629. #include <math.h>
  53630. int
  53631. main ()
  53632. {
  53633. atan2l(0, 0);
  53634. ;
  53635. return 0;
  53636. }
  53637. _ACEOF
  53638. if ac_fn_cxx_try_compile "$LINENO"; then :
  53639. glibcxx_cv_func_atan2l_use=yes
  53640. else
  53641. glibcxx_cv_func_atan2l_use=no
  53642. fi
  53643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53644. ac_ext=c
  53645. ac_cpp='$CPP $CPPFLAGS'
  53646. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53647. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53648. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53649. fi
  53650. fi
  53651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  53652. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  53653. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  53654. for ac_func in atan2l
  53655. do :
  53656. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  53657. if test "x$ac_cv_func_atan2l" = xyes; then :
  53658. cat >>confdefs.h <<_ACEOF
  53659. #define HAVE_ATAN2L 1
  53660. _ACEOF
  53661. fi
  53662. done
  53663. else
  53664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  53665. $as_echo_n "checking for _atan2l declaration... " >&6; }
  53666. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  53667. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  53668. $as_echo_n "(cached) " >&6
  53669. else
  53670. ac_ext=cpp
  53671. ac_cpp='$CXXCPP $CPPFLAGS'
  53672. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53673. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53674. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53676. /* end confdefs.h. */
  53677. #include <math.h>
  53678. int
  53679. main ()
  53680. {
  53681. _atan2l(0, 0);
  53682. ;
  53683. return 0;
  53684. }
  53685. _ACEOF
  53686. if ac_fn_cxx_try_compile "$LINENO"; then :
  53687. glibcxx_cv_func__atan2l_use=yes
  53688. else
  53689. glibcxx_cv_func__atan2l_use=no
  53690. fi
  53691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53692. ac_ext=c
  53693. ac_cpp='$CPP $CPPFLAGS'
  53694. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53695. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53696. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53697. fi
  53698. fi
  53699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  53700. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  53701. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  53702. for ac_func in _atan2l
  53703. do :
  53704. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  53705. if test "x$ac_cv_func__atan2l" = xyes; then :
  53706. cat >>confdefs.h <<_ACEOF
  53707. #define HAVE__ATAN2L 1
  53708. _ACEOF
  53709. fi
  53710. done
  53711. fi
  53712. fi
  53713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  53714. $as_echo_n "checking for expl declaration... " >&6; }
  53715. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  53716. if ${glibcxx_cv_func_expl_use+:} false; then :
  53717. $as_echo_n "(cached) " >&6
  53718. else
  53719. ac_ext=cpp
  53720. ac_cpp='$CXXCPP $CPPFLAGS'
  53721. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53722. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53723. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53725. /* end confdefs.h. */
  53726. #include <math.h>
  53727. #ifdef HAVE_IEEEFP_H
  53728. #include <ieeefp.h>
  53729. #endif
  53730. int
  53731. main ()
  53732. {
  53733. expl(0);
  53734. ;
  53735. return 0;
  53736. }
  53737. _ACEOF
  53738. if ac_fn_cxx_try_compile "$LINENO"; then :
  53739. glibcxx_cv_func_expl_use=yes
  53740. else
  53741. glibcxx_cv_func_expl_use=no
  53742. fi
  53743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53744. ac_ext=c
  53745. ac_cpp='$CPP $CPPFLAGS'
  53746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53749. fi
  53750. fi
  53751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  53752. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  53753. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  53754. for ac_func in expl
  53755. do :
  53756. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  53757. if test "x$ac_cv_func_expl" = xyes; then :
  53758. cat >>confdefs.h <<_ACEOF
  53759. #define HAVE_EXPL 1
  53760. _ACEOF
  53761. fi
  53762. done
  53763. else
  53764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  53765. $as_echo_n "checking for _expl declaration... " >&6; }
  53766. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  53767. if ${glibcxx_cv_func__expl_use+:} false; then :
  53768. $as_echo_n "(cached) " >&6
  53769. else
  53770. ac_ext=cpp
  53771. ac_cpp='$CXXCPP $CPPFLAGS'
  53772. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53773. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53774. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53776. /* end confdefs.h. */
  53777. #include <math.h>
  53778. #ifdef HAVE_IEEEFP_H
  53779. #include <ieeefp.h>
  53780. #endif
  53781. int
  53782. main ()
  53783. {
  53784. _expl(0);
  53785. ;
  53786. return 0;
  53787. }
  53788. _ACEOF
  53789. if ac_fn_cxx_try_compile "$LINENO"; then :
  53790. glibcxx_cv_func__expl_use=yes
  53791. else
  53792. glibcxx_cv_func__expl_use=no
  53793. fi
  53794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53795. ac_ext=c
  53796. ac_cpp='$CPP $CPPFLAGS'
  53797. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53798. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53799. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53800. fi
  53801. fi
  53802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  53803. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  53804. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  53805. for ac_func in _expl
  53806. do :
  53807. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  53808. if test "x$ac_cv_func__expl" = xyes; then :
  53809. cat >>confdefs.h <<_ACEOF
  53810. #define HAVE__EXPL 1
  53811. _ACEOF
  53812. fi
  53813. done
  53814. fi
  53815. fi
  53816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  53817. $as_echo_n "checking for fabsl declaration... " >&6; }
  53818. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  53819. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  53820. $as_echo_n "(cached) " >&6
  53821. else
  53822. ac_ext=cpp
  53823. ac_cpp='$CXXCPP $CPPFLAGS'
  53824. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53825. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53826. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53828. /* end confdefs.h. */
  53829. #include <math.h>
  53830. #ifdef HAVE_IEEEFP_H
  53831. #include <ieeefp.h>
  53832. #endif
  53833. int
  53834. main ()
  53835. {
  53836. fabsl(0);
  53837. ;
  53838. return 0;
  53839. }
  53840. _ACEOF
  53841. if ac_fn_cxx_try_compile "$LINENO"; then :
  53842. glibcxx_cv_func_fabsl_use=yes
  53843. else
  53844. glibcxx_cv_func_fabsl_use=no
  53845. fi
  53846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53847. ac_ext=c
  53848. ac_cpp='$CPP $CPPFLAGS'
  53849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53852. fi
  53853. fi
  53854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  53855. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  53856. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  53857. for ac_func in fabsl
  53858. do :
  53859. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  53860. if test "x$ac_cv_func_fabsl" = xyes; then :
  53861. cat >>confdefs.h <<_ACEOF
  53862. #define HAVE_FABSL 1
  53863. _ACEOF
  53864. fi
  53865. done
  53866. else
  53867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  53868. $as_echo_n "checking for _fabsl declaration... " >&6; }
  53869. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  53870. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  53871. $as_echo_n "(cached) " >&6
  53872. else
  53873. ac_ext=cpp
  53874. ac_cpp='$CXXCPP $CPPFLAGS'
  53875. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53876. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53877. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53879. /* end confdefs.h. */
  53880. #include <math.h>
  53881. #ifdef HAVE_IEEEFP_H
  53882. #include <ieeefp.h>
  53883. #endif
  53884. int
  53885. main ()
  53886. {
  53887. _fabsl(0);
  53888. ;
  53889. return 0;
  53890. }
  53891. _ACEOF
  53892. if ac_fn_cxx_try_compile "$LINENO"; then :
  53893. glibcxx_cv_func__fabsl_use=yes
  53894. else
  53895. glibcxx_cv_func__fabsl_use=no
  53896. fi
  53897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53898. ac_ext=c
  53899. ac_cpp='$CPP $CPPFLAGS'
  53900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53903. fi
  53904. fi
  53905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  53906. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  53907. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  53908. for ac_func in _fabsl
  53909. do :
  53910. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  53911. if test "x$ac_cv_func__fabsl" = xyes; then :
  53912. cat >>confdefs.h <<_ACEOF
  53913. #define HAVE__FABSL 1
  53914. _ACEOF
  53915. fi
  53916. done
  53917. fi
  53918. fi
  53919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  53920. $as_echo_n "checking for fmodl declaration... " >&6; }
  53921. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  53922. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  53923. $as_echo_n "(cached) " >&6
  53924. else
  53925. ac_ext=cpp
  53926. ac_cpp='$CXXCPP $CPPFLAGS'
  53927. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53928. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53929. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53931. /* end confdefs.h. */
  53932. #include <math.h>
  53933. int
  53934. main ()
  53935. {
  53936. fmodl(0, 0);
  53937. ;
  53938. return 0;
  53939. }
  53940. _ACEOF
  53941. if ac_fn_cxx_try_compile "$LINENO"; then :
  53942. glibcxx_cv_func_fmodl_use=yes
  53943. else
  53944. glibcxx_cv_func_fmodl_use=no
  53945. fi
  53946. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53947. ac_ext=c
  53948. ac_cpp='$CPP $CPPFLAGS'
  53949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  53952. fi
  53953. fi
  53954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  53955. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  53956. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  53957. for ac_func in fmodl
  53958. do :
  53959. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  53960. if test "x$ac_cv_func_fmodl" = xyes; then :
  53961. cat >>confdefs.h <<_ACEOF
  53962. #define HAVE_FMODL 1
  53963. _ACEOF
  53964. fi
  53965. done
  53966. else
  53967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  53968. $as_echo_n "checking for _fmodl declaration... " >&6; }
  53969. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  53970. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  53971. $as_echo_n "(cached) " >&6
  53972. else
  53973. ac_ext=cpp
  53974. ac_cpp='$CXXCPP $CPPFLAGS'
  53975. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53976. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53977. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  53978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  53979. /* end confdefs.h. */
  53980. #include <math.h>
  53981. int
  53982. main ()
  53983. {
  53984. _fmodl(0, 0);
  53985. ;
  53986. return 0;
  53987. }
  53988. _ACEOF
  53989. if ac_fn_cxx_try_compile "$LINENO"; then :
  53990. glibcxx_cv_func__fmodl_use=yes
  53991. else
  53992. glibcxx_cv_func__fmodl_use=no
  53993. fi
  53994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  53995. ac_ext=c
  53996. ac_cpp='$CPP $CPPFLAGS'
  53997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  53998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  53999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54000. fi
  54001. fi
  54002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  54003. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  54004. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  54005. for ac_func in _fmodl
  54006. do :
  54007. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  54008. if test "x$ac_cv_func__fmodl" = xyes; then :
  54009. cat >>confdefs.h <<_ACEOF
  54010. #define HAVE__FMODL 1
  54011. _ACEOF
  54012. fi
  54013. done
  54014. fi
  54015. fi
  54016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  54017. $as_echo_n "checking for frexpl declaration... " >&6; }
  54018. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  54019. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  54020. $as_echo_n "(cached) " >&6
  54021. else
  54022. ac_ext=cpp
  54023. ac_cpp='$CXXCPP $CPPFLAGS'
  54024. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54025. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54026. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54028. /* end confdefs.h. */
  54029. #include <math.h>
  54030. int
  54031. main ()
  54032. {
  54033. frexpl(0, 0);
  54034. ;
  54035. return 0;
  54036. }
  54037. _ACEOF
  54038. if ac_fn_cxx_try_compile "$LINENO"; then :
  54039. glibcxx_cv_func_frexpl_use=yes
  54040. else
  54041. glibcxx_cv_func_frexpl_use=no
  54042. fi
  54043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54044. ac_ext=c
  54045. ac_cpp='$CPP $CPPFLAGS'
  54046. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54047. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54048. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54049. fi
  54050. fi
  54051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  54052. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  54053. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  54054. for ac_func in frexpl
  54055. do :
  54056. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  54057. if test "x$ac_cv_func_frexpl" = xyes; then :
  54058. cat >>confdefs.h <<_ACEOF
  54059. #define HAVE_FREXPL 1
  54060. _ACEOF
  54061. fi
  54062. done
  54063. else
  54064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  54065. $as_echo_n "checking for _frexpl declaration... " >&6; }
  54066. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  54067. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  54068. $as_echo_n "(cached) " >&6
  54069. else
  54070. ac_ext=cpp
  54071. ac_cpp='$CXXCPP $CPPFLAGS'
  54072. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54073. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54074. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54076. /* end confdefs.h. */
  54077. #include <math.h>
  54078. int
  54079. main ()
  54080. {
  54081. _frexpl(0, 0);
  54082. ;
  54083. return 0;
  54084. }
  54085. _ACEOF
  54086. if ac_fn_cxx_try_compile "$LINENO"; then :
  54087. glibcxx_cv_func__frexpl_use=yes
  54088. else
  54089. glibcxx_cv_func__frexpl_use=no
  54090. fi
  54091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54092. ac_ext=c
  54093. ac_cpp='$CPP $CPPFLAGS'
  54094. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54095. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54096. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54097. fi
  54098. fi
  54099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  54100. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  54101. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  54102. for ac_func in _frexpl
  54103. do :
  54104. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  54105. if test "x$ac_cv_func__frexpl" = xyes; then :
  54106. cat >>confdefs.h <<_ACEOF
  54107. #define HAVE__FREXPL 1
  54108. _ACEOF
  54109. fi
  54110. done
  54111. fi
  54112. fi
  54113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  54114. $as_echo_n "checking for hypotl declaration... " >&6; }
  54115. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  54116. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  54117. $as_echo_n "(cached) " >&6
  54118. else
  54119. ac_ext=cpp
  54120. ac_cpp='$CXXCPP $CPPFLAGS'
  54121. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54122. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54123. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54125. /* end confdefs.h. */
  54126. #include <math.h>
  54127. int
  54128. main ()
  54129. {
  54130. hypotl(0, 0);
  54131. ;
  54132. return 0;
  54133. }
  54134. _ACEOF
  54135. if ac_fn_cxx_try_compile "$LINENO"; then :
  54136. glibcxx_cv_func_hypotl_use=yes
  54137. else
  54138. glibcxx_cv_func_hypotl_use=no
  54139. fi
  54140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54141. ac_ext=c
  54142. ac_cpp='$CPP $CPPFLAGS'
  54143. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54144. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54145. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54146. fi
  54147. fi
  54148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  54149. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  54150. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  54151. for ac_func in hypotl
  54152. do :
  54153. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  54154. if test "x$ac_cv_func_hypotl" = xyes; then :
  54155. cat >>confdefs.h <<_ACEOF
  54156. #define HAVE_HYPOTL 1
  54157. _ACEOF
  54158. fi
  54159. done
  54160. else
  54161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  54162. $as_echo_n "checking for _hypotl declaration... " >&6; }
  54163. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  54164. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  54165. $as_echo_n "(cached) " >&6
  54166. else
  54167. ac_ext=cpp
  54168. ac_cpp='$CXXCPP $CPPFLAGS'
  54169. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54170. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54171. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54173. /* end confdefs.h. */
  54174. #include <math.h>
  54175. int
  54176. main ()
  54177. {
  54178. _hypotl(0, 0);
  54179. ;
  54180. return 0;
  54181. }
  54182. _ACEOF
  54183. if ac_fn_cxx_try_compile "$LINENO"; then :
  54184. glibcxx_cv_func__hypotl_use=yes
  54185. else
  54186. glibcxx_cv_func__hypotl_use=no
  54187. fi
  54188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54189. ac_ext=c
  54190. ac_cpp='$CPP $CPPFLAGS'
  54191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54194. fi
  54195. fi
  54196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  54197. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  54198. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  54199. for ac_func in _hypotl
  54200. do :
  54201. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  54202. if test "x$ac_cv_func__hypotl" = xyes; then :
  54203. cat >>confdefs.h <<_ACEOF
  54204. #define HAVE__HYPOTL 1
  54205. _ACEOF
  54206. fi
  54207. done
  54208. fi
  54209. fi
  54210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  54211. $as_echo_n "checking for ldexpl declaration... " >&6; }
  54212. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  54213. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  54214. $as_echo_n "(cached) " >&6
  54215. else
  54216. ac_ext=cpp
  54217. ac_cpp='$CXXCPP $CPPFLAGS'
  54218. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54219. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54220. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54222. /* end confdefs.h. */
  54223. #include <math.h>
  54224. int
  54225. main ()
  54226. {
  54227. ldexpl(0, 0);
  54228. ;
  54229. return 0;
  54230. }
  54231. _ACEOF
  54232. if ac_fn_cxx_try_compile "$LINENO"; then :
  54233. glibcxx_cv_func_ldexpl_use=yes
  54234. else
  54235. glibcxx_cv_func_ldexpl_use=no
  54236. fi
  54237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54238. ac_ext=c
  54239. ac_cpp='$CPP $CPPFLAGS'
  54240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54243. fi
  54244. fi
  54245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  54246. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  54247. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  54248. for ac_func in ldexpl
  54249. do :
  54250. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  54251. if test "x$ac_cv_func_ldexpl" = xyes; then :
  54252. cat >>confdefs.h <<_ACEOF
  54253. #define HAVE_LDEXPL 1
  54254. _ACEOF
  54255. fi
  54256. done
  54257. else
  54258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  54259. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  54260. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  54261. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  54262. $as_echo_n "(cached) " >&6
  54263. else
  54264. ac_ext=cpp
  54265. ac_cpp='$CXXCPP $CPPFLAGS'
  54266. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54267. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54268. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54270. /* end confdefs.h. */
  54271. #include <math.h>
  54272. int
  54273. main ()
  54274. {
  54275. _ldexpl(0, 0);
  54276. ;
  54277. return 0;
  54278. }
  54279. _ACEOF
  54280. if ac_fn_cxx_try_compile "$LINENO"; then :
  54281. glibcxx_cv_func__ldexpl_use=yes
  54282. else
  54283. glibcxx_cv_func__ldexpl_use=no
  54284. fi
  54285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54286. ac_ext=c
  54287. ac_cpp='$CPP $CPPFLAGS'
  54288. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54289. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54290. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54291. fi
  54292. fi
  54293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  54294. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  54295. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  54296. for ac_func in _ldexpl
  54297. do :
  54298. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  54299. if test "x$ac_cv_func__ldexpl" = xyes; then :
  54300. cat >>confdefs.h <<_ACEOF
  54301. #define HAVE__LDEXPL 1
  54302. _ACEOF
  54303. fi
  54304. done
  54305. fi
  54306. fi
  54307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  54308. $as_echo_n "checking for logl declaration... " >&6; }
  54309. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  54310. if ${glibcxx_cv_func_logl_use+:} false; then :
  54311. $as_echo_n "(cached) " >&6
  54312. else
  54313. ac_ext=cpp
  54314. ac_cpp='$CXXCPP $CPPFLAGS'
  54315. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54316. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54317. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54319. /* end confdefs.h. */
  54320. #include <math.h>
  54321. #ifdef HAVE_IEEEFP_H
  54322. #include <ieeefp.h>
  54323. #endif
  54324. int
  54325. main ()
  54326. {
  54327. logl(0);
  54328. ;
  54329. return 0;
  54330. }
  54331. _ACEOF
  54332. if ac_fn_cxx_try_compile "$LINENO"; then :
  54333. glibcxx_cv_func_logl_use=yes
  54334. else
  54335. glibcxx_cv_func_logl_use=no
  54336. fi
  54337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54338. ac_ext=c
  54339. ac_cpp='$CPP $CPPFLAGS'
  54340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54343. fi
  54344. fi
  54345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  54346. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  54347. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  54348. for ac_func in logl
  54349. do :
  54350. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  54351. if test "x$ac_cv_func_logl" = xyes; then :
  54352. cat >>confdefs.h <<_ACEOF
  54353. #define HAVE_LOGL 1
  54354. _ACEOF
  54355. fi
  54356. done
  54357. else
  54358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  54359. $as_echo_n "checking for _logl declaration... " >&6; }
  54360. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  54361. if ${glibcxx_cv_func__logl_use+:} false; then :
  54362. $as_echo_n "(cached) " >&6
  54363. else
  54364. ac_ext=cpp
  54365. ac_cpp='$CXXCPP $CPPFLAGS'
  54366. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54367. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54368. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54370. /* end confdefs.h. */
  54371. #include <math.h>
  54372. #ifdef HAVE_IEEEFP_H
  54373. #include <ieeefp.h>
  54374. #endif
  54375. int
  54376. main ()
  54377. {
  54378. _logl(0);
  54379. ;
  54380. return 0;
  54381. }
  54382. _ACEOF
  54383. if ac_fn_cxx_try_compile "$LINENO"; then :
  54384. glibcxx_cv_func__logl_use=yes
  54385. else
  54386. glibcxx_cv_func__logl_use=no
  54387. fi
  54388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54389. ac_ext=c
  54390. ac_cpp='$CPP $CPPFLAGS'
  54391. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54392. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54393. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54394. fi
  54395. fi
  54396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  54397. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  54398. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  54399. for ac_func in _logl
  54400. do :
  54401. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  54402. if test "x$ac_cv_func__logl" = xyes; then :
  54403. cat >>confdefs.h <<_ACEOF
  54404. #define HAVE__LOGL 1
  54405. _ACEOF
  54406. fi
  54407. done
  54408. fi
  54409. fi
  54410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  54411. $as_echo_n "checking for log10l declaration... " >&6; }
  54412. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  54413. if ${glibcxx_cv_func_log10l_use+:} false; then :
  54414. $as_echo_n "(cached) " >&6
  54415. else
  54416. ac_ext=cpp
  54417. ac_cpp='$CXXCPP $CPPFLAGS'
  54418. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54419. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54420. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54422. /* end confdefs.h. */
  54423. #include <math.h>
  54424. #ifdef HAVE_IEEEFP_H
  54425. #include <ieeefp.h>
  54426. #endif
  54427. int
  54428. main ()
  54429. {
  54430. log10l(0);
  54431. ;
  54432. return 0;
  54433. }
  54434. _ACEOF
  54435. if ac_fn_cxx_try_compile "$LINENO"; then :
  54436. glibcxx_cv_func_log10l_use=yes
  54437. else
  54438. glibcxx_cv_func_log10l_use=no
  54439. fi
  54440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54441. ac_ext=c
  54442. ac_cpp='$CPP $CPPFLAGS'
  54443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54446. fi
  54447. fi
  54448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  54449. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  54450. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  54451. for ac_func in log10l
  54452. do :
  54453. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  54454. if test "x$ac_cv_func_log10l" = xyes; then :
  54455. cat >>confdefs.h <<_ACEOF
  54456. #define HAVE_LOG10L 1
  54457. _ACEOF
  54458. fi
  54459. done
  54460. else
  54461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  54462. $as_echo_n "checking for _log10l declaration... " >&6; }
  54463. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  54464. if ${glibcxx_cv_func__log10l_use+:} false; then :
  54465. $as_echo_n "(cached) " >&6
  54466. else
  54467. ac_ext=cpp
  54468. ac_cpp='$CXXCPP $CPPFLAGS'
  54469. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54470. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54471. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54473. /* end confdefs.h. */
  54474. #include <math.h>
  54475. #ifdef HAVE_IEEEFP_H
  54476. #include <ieeefp.h>
  54477. #endif
  54478. int
  54479. main ()
  54480. {
  54481. _log10l(0);
  54482. ;
  54483. return 0;
  54484. }
  54485. _ACEOF
  54486. if ac_fn_cxx_try_compile "$LINENO"; then :
  54487. glibcxx_cv_func__log10l_use=yes
  54488. else
  54489. glibcxx_cv_func__log10l_use=no
  54490. fi
  54491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54492. ac_ext=c
  54493. ac_cpp='$CPP $CPPFLAGS'
  54494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54497. fi
  54498. fi
  54499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  54500. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  54501. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  54502. for ac_func in _log10l
  54503. do :
  54504. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  54505. if test "x$ac_cv_func__log10l" = xyes; then :
  54506. cat >>confdefs.h <<_ACEOF
  54507. #define HAVE__LOG10L 1
  54508. _ACEOF
  54509. fi
  54510. done
  54511. fi
  54512. fi
  54513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  54514. $as_echo_n "checking for modfl declaration... " >&6; }
  54515. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  54516. if ${glibcxx_cv_func_modfl_use+:} false; then :
  54517. $as_echo_n "(cached) " >&6
  54518. else
  54519. ac_ext=cpp
  54520. ac_cpp='$CXXCPP $CPPFLAGS'
  54521. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54522. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54523. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54525. /* end confdefs.h. */
  54526. #include <math.h>
  54527. int
  54528. main ()
  54529. {
  54530. modfl(0, 0);
  54531. ;
  54532. return 0;
  54533. }
  54534. _ACEOF
  54535. if ac_fn_cxx_try_compile "$LINENO"; then :
  54536. glibcxx_cv_func_modfl_use=yes
  54537. else
  54538. glibcxx_cv_func_modfl_use=no
  54539. fi
  54540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54541. ac_ext=c
  54542. ac_cpp='$CPP $CPPFLAGS'
  54543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54546. fi
  54547. fi
  54548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  54549. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  54550. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  54551. for ac_func in modfl
  54552. do :
  54553. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  54554. if test "x$ac_cv_func_modfl" = xyes; then :
  54555. cat >>confdefs.h <<_ACEOF
  54556. #define HAVE_MODFL 1
  54557. _ACEOF
  54558. fi
  54559. done
  54560. else
  54561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  54562. $as_echo_n "checking for _modfl declaration... " >&6; }
  54563. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  54564. if ${glibcxx_cv_func__modfl_use+:} false; then :
  54565. $as_echo_n "(cached) " >&6
  54566. else
  54567. ac_ext=cpp
  54568. ac_cpp='$CXXCPP $CPPFLAGS'
  54569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54573. /* end confdefs.h. */
  54574. #include <math.h>
  54575. int
  54576. main ()
  54577. {
  54578. _modfl(0, 0);
  54579. ;
  54580. return 0;
  54581. }
  54582. _ACEOF
  54583. if ac_fn_cxx_try_compile "$LINENO"; then :
  54584. glibcxx_cv_func__modfl_use=yes
  54585. else
  54586. glibcxx_cv_func__modfl_use=no
  54587. fi
  54588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54589. ac_ext=c
  54590. ac_cpp='$CPP $CPPFLAGS'
  54591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54592. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54593. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54594. fi
  54595. fi
  54596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  54597. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  54598. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  54599. for ac_func in _modfl
  54600. do :
  54601. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  54602. if test "x$ac_cv_func__modfl" = xyes; then :
  54603. cat >>confdefs.h <<_ACEOF
  54604. #define HAVE__MODFL 1
  54605. _ACEOF
  54606. fi
  54607. done
  54608. fi
  54609. fi
  54610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  54611. $as_echo_n "checking for powl declaration... " >&6; }
  54612. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  54613. if ${glibcxx_cv_func_powl_use+:} false; then :
  54614. $as_echo_n "(cached) " >&6
  54615. else
  54616. ac_ext=cpp
  54617. ac_cpp='$CXXCPP $CPPFLAGS'
  54618. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54619. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54620. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54622. /* end confdefs.h. */
  54623. #include <math.h>
  54624. int
  54625. main ()
  54626. {
  54627. powl(0, 0);
  54628. ;
  54629. return 0;
  54630. }
  54631. _ACEOF
  54632. if ac_fn_cxx_try_compile "$LINENO"; then :
  54633. glibcxx_cv_func_powl_use=yes
  54634. else
  54635. glibcxx_cv_func_powl_use=no
  54636. fi
  54637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54638. ac_ext=c
  54639. ac_cpp='$CPP $CPPFLAGS'
  54640. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54641. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54642. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54643. fi
  54644. fi
  54645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  54646. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  54647. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  54648. for ac_func in powl
  54649. do :
  54650. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  54651. if test "x$ac_cv_func_powl" = xyes; then :
  54652. cat >>confdefs.h <<_ACEOF
  54653. #define HAVE_POWL 1
  54654. _ACEOF
  54655. fi
  54656. done
  54657. else
  54658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  54659. $as_echo_n "checking for _powl declaration... " >&6; }
  54660. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  54661. if ${glibcxx_cv_func__powl_use+:} false; then :
  54662. $as_echo_n "(cached) " >&6
  54663. else
  54664. ac_ext=cpp
  54665. ac_cpp='$CXXCPP $CPPFLAGS'
  54666. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54667. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54668. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54670. /* end confdefs.h. */
  54671. #include <math.h>
  54672. int
  54673. main ()
  54674. {
  54675. _powl(0, 0);
  54676. ;
  54677. return 0;
  54678. }
  54679. _ACEOF
  54680. if ac_fn_cxx_try_compile "$LINENO"; then :
  54681. glibcxx_cv_func__powl_use=yes
  54682. else
  54683. glibcxx_cv_func__powl_use=no
  54684. fi
  54685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54686. ac_ext=c
  54687. ac_cpp='$CPP $CPPFLAGS'
  54688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54691. fi
  54692. fi
  54693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  54694. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  54695. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  54696. for ac_func in _powl
  54697. do :
  54698. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  54699. if test "x$ac_cv_func__powl" = xyes; then :
  54700. cat >>confdefs.h <<_ACEOF
  54701. #define HAVE__POWL 1
  54702. _ACEOF
  54703. fi
  54704. done
  54705. fi
  54706. fi
  54707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  54708. $as_echo_n "checking for sqrtl declaration... " >&6; }
  54709. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  54710. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  54711. $as_echo_n "(cached) " >&6
  54712. else
  54713. ac_ext=cpp
  54714. ac_cpp='$CXXCPP $CPPFLAGS'
  54715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54719. /* end confdefs.h. */
  54720. #include <math.h>
  54721. #ifdef HAVE_IEEEFP_H
  54722. #include <ieeefp.h>
  54723. #endif
  54724. int
  54725. main ()
  54726. {
  54727. sqrtl(0);
  54728. ;
  54729. return 0;
  54730. }
  54731. _ACEOF
  54732. if ac_fn_cxx_try_compile "$LINENO"; then :
  54733. glibcxx_cv_func_sqrtl_use=yes
  54734. else
  54735. glibcxx_cv_func_sqrtl_use=no
  54736. fi
  54737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54738. ac_ext=c
  54739. ac_cpp='$CPP $CPPFLAGS'
  54740. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54741. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54743. fi
  54744. fi
  54745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  54746. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  54747. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  54748. for ac_func in sqrtl
  54749. do :
  54750. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  54751. if test "x$ac_cv_func_sqrtl" = xyes; then :
  54752. cat >>confdefs.h <<_ACEOF
  54753. #define HAVE_SQRTL 1
  54754. _ACEOF
  54755. fi
  54756. done
  54757. else
  54758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  54759. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  54760. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  54761. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  54762. $as_echo_n "(cached) " >&6
  54763. else
  54764. ac_ext=cpp
  54765. ac_cpp='$CXXCPP $CPPFLAGS'
  54766. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54767. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54768. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54770. /* end confdefs.h. */
  54771. #include <math.h>
  54772. #ifdef HAVE_IEEEFP_H
  54773. #include <ieeefp.h>
  54774. #endif
  54775. int
  54776. main ()
  54777. {
  54778. _sqrtl(0);
  54779. ;
  54780. return 0;
  54781. }
  54782. _ACEOF
  54783. if ac_fn_cxx_try_compile "$LINENO"; then :
  54784. glibcxx_cv_func__sqrtl_use=yes
  54785. else
  54786. glibcxx_cv_func__sqrtl_use=no
  54787. fi
  54788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54789. ac_ext=c
  54790. ac_cpp='$CPP $CPPFLAGS'
  54791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54794. fi
  54795. fi
  54796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  54797. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  54798. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  54799. for ac_func in _sqrtl
  54800. do :
  54801. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  54802. if test "x$ac_cv_func__sqrtl" = xyes; then :
  54803. cat >>confdefs.h <<_ACEOF
  54804. #define HAVE__SQRTL 1
  54805. _ACEOF
  54806. fi
  54807. done
  54808. fi
  54809. fi
  54810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  54811. $as_echo_n "checking for sincosl declaration... " >&6; }
  54812. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  54813. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  54814. $as_echo_n "(cached) " >&6
  54815. else
  54816. ac_ext=cpp
  54817. ac_cpp='$CXXCPP $CPPFLAGS'
  54818. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54819. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54820. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54822. /* end confdefs.h. */
  54823. #include <math.h>
  54824. int
  54825. main ()
  54826. {
  54827. sincosl(0, 0, 0);
  54828. ;
  54829. return 0;
  54830. }
  54831. _ACEOF
  54832. if ac_fn_cxx_try_compile "$LINENO"; then :
  54833. glibcxx_cv_func_sincosl_use=yes
  54834. else
  54835. glibcxx_cv_func_sincosl_use=no
  54836. fi
  54837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54838. ac_ext=c
  54839. ac_cpp='$CPP $CPPFLAGS'
  54840. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54841. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54842. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54843. fi
  54844. fi
  54845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  54846. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  54847. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  54848. for ac_func in sincosl
  54849. do :
  54850. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  54851. if test "x$ac_cv_func_sincosl" = xyes; then :
  54852. cat >>confdefs.h <<_ACEOF
  54853. #define HAVE_SINCOSL 1
  54854. _ACEOF
  54855. fi
  54856. done
  54857. else
  54858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  54859. $as_echo_n "checking for _sincosl declaration... " >&6; }
  54860. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  54861. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  54862. $as_echo_n "(cached) " >&6
  54863. else
  54864. ac_ext=cpp
  54865. ac_cpp='$CXXCPP $CPPFLAGS'
  54866. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54867. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54868. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54870. /* end confdefs.h. */
  54871. #include <math.h>
  54872. int
  54873. main ()
  54874. {
  54875. _sincosl(0, 0, 0);
  54876. ;
  54877. return 0;
  54878. }
  54879. _ACEOF
  54880. if ac_fn_cxx_try_compile "$LINENO"; then :
  54881. glibcxx_cv_func__sincosl_use=yes
  54882. else
  54883. glibcxx_cv_func__sincosl_use=no
  54884. fi
  54885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54886. ac_ext=c
  54887. ac_cpp='$CPP $CPPFLAGS'
  54888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54891. fi
  54892. fi
  54893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  54894. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  54895. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  54896. for ac_func in _sincosl
  54897. do :
  54898. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  54899. if test "x$ac_cv_func__sincosl" = xyes; then :
  54900. cat >>confdefs.h <<_ACEOF
  54901. #define HAVE__SINCOSL 1
  54902. _ACEOF
  54903. fi
  54904. done
  54905. fi
  54906. fi
  54907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  54908. $as_echo_n "checking for finitel declaration... " >&6; }
  54909. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  54910. if ${glibcxx_cv_func_finitel_use+:} false; then :
  54911. $as_echo_n "(cached) " >&6
  54912. else
  54913. ac_ext=cpp
  54914. ac_cpp='$CXXCPP $CPPFLAGS'
  54915. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54916. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54917. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54919. /* end confdefs.h. */
  54920. #include <math.h>
  54921. #ifdef HAVE_IEEEFP_H
  54922. #include <ieeefp.h>
  54923. #endif
  54924. int
  54925. main ()
  54926. {
  54927. finitel(0);
  54928. ;
  54929. return 0;
  54930. }
  54931. _ACEOF
  54932. if ac_fn_cxx_try_compile "$LINENO"; then :
  54933. glibcxx_cv_func_finitel_use=yes
  54934. else
  54935. glibcxx_cv_func_finitel_use=no
  54936. fi
  54937. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54938. ac_ext=c
  54939. ac_cpp='$CPP $CPPFLAGS'
  54940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54943. fi
  54944. fi
  54945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  54946. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  54947. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  54948. for ac_func in finitel
  54949. do :
  54950. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  54951. if test "x$ac_cv_func_finitel" = xyes; then :
  54952. cat >>confdefs.h <<_ACEOF
  54953. #define HAVE_FINITEL 1
  54954. _ACEOF
  54955. fi
  54956. done
  54957. else
  54958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  54959. $as_echo_n "checking for _finitel declaration... " >&6; }
  54960. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  54961. if ${glibcxx_cv_func__finitel_use+:} false; then :
  54962. $as_echo_n "(cached) " >&6
  54963. else
  54964. ac_ext=cpp
  54965. ac_cpp='$CXXCPP $CPPFLAGS'
  54966. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54967. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54968. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  54969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  54970. /* end confdefs.h. */
  54971. #include <math.h>
  54972. #ifdef HAVE_IEEEFP_H
  54973. #include <ieeefp.h>
  54974. #endif
  54975. int
  54976. main ()
  54977. {
  54978. _finitel(0);
  54979. ;
  54980. return 0;
  54981. }
  54982. _ACEOF
  54983. if ac_fn_cxx_try_compile "$LINENO"; then :
  54984. glibcxx_cv_func__finitel_use=yes
  54985. else
  54986. glibcxx_cv_func__finitel_use=no
  54987. fi
  54988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  54989. ac_ext=c
  54990. ac_cpp='$CPP $CPPFLAGS'
  54991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  54992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  54993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  54994. fi
  54995. fi
  54996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  54997. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  54998. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  54999. for ac_func in _finitel
  55000. do :
  55001. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  55002. if test "x$ac_cv_func__finitel" = xyes; then :
  55003. cat >>confdefs.h <<_ACEOF
  55004. #define HAVE__FINITEL 1
  55005. _ACEOF
  55006. fi
  55007. done
  55008. fi
  55009. fi
  55010. LIBS="$ac_save_LIBS"
  55011. CXXFLAGS="$ac_save_CXXFLAGS"
  55012. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  55013. ac_save_CXXFLAGS="$CXXFLAGS"
  55014. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  55015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  55016. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  55017. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  55018. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  55019. $as_echo_n "(cached) " >&6
  55020. else
  55021. ac_ext=cpp
  55022. ac_cpp='$CXXCPP $CPPFLAGS'
  55023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55027. /* end confdefs.h. */
  55028. #include <stdlib.h>
  55029. int
  55030. main ()
  55031. {
  55032. at_quick_exit(0);
  55033. ;
  55034. return 0;
  55035. }
  55036. _ACEOF
  55037. if ac_fn_cxx_try_compile "$LINENO"; then :
  55038. glibcxx_cv_func_at_quick_exit_use=yes
  55039. else
  55040. glibcxx_cv_func_at_quick_exit_use=no
  55041. fi
  55042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55043. ac_ext=c
  55044. ac_cpp='$CPP $CPPFLAGS'
  55045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55048. fi
  55049. fi
  55050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  55051. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  55052. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  55053. for ac_func in at_quick_exit
  55054. do :
  55055. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  55056. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  55057. cat >>confdefs.h <<_ACEOF
  55058. #define HAVE_AT_QUICK_EXIT 1
  55059. _ACEOF
  55060. fi
  55061. done
  55062. fi
  55063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  55064. $as_echo_n "checking for quick_exit declaration... " >&6; }
  55065. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  55066. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  55067. $as_echo_n "(cached) " >&6
  55068. else
  55069. ac_ext=cpp
  55070. ac_cpp='$CXXCPP $CPPFLAGS'
  55071. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55072. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55073. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55075. /* end confdefs.h. */
  55076. #include <stdlib.h>
  55077. int
  55078. main ()
  55079. {
  55080. quick_exit(0);
  55081. ;
  55082. return 0;
  55083. }
  55084. _ACEOF
  55085. if ac_fn_cxx_try_compile "$LINENO"; then :
  55086. glibcxx_cv_func_quick_exit_use=yes
  55087. else
  55088. glibcxx_cv_func_quick_exit_use=no
  55089. fi
  55090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55091. ac_ext=c
  55092. ac_cpp='$CPP $CPPFLAGS'
  55093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55096. fi
  55097. fi
  55098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  55099. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  55100. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  55101. for ac_func in quick_exit
  55102. do :
  55103. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  55104. if test "x$ac_cv_func_quick_exit" = xyes; then :
  55105. cat >>confdefs.h <<_ACEOF
  55106. #define HAVE_QUICK_EXIT 1
  55107. _ACEOF
  55108. fi
  55109. done
  55110. fi
  55111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  55112. $as_echo_n "checking for strtold declaration... " >&6; }
  55113. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  55114. if ${glibcxx_cv_func_strtold_use+:} false; then :
  55115. $as_echo_n "(cached) " >&6
  55116. else
  55117. ac_ext=cpp
  55118. ac_cpp='$CXXCPP $CPPFLAGS'
  55119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55123. /* end confdefs.h. */
  55124. #include <stdlib.h>
  55125. int
  55126. main ()
  55127. {
  55128. strtold(0, 0);
  55129. ;
  55130. return 0;
  55131. }
  55132. _ACEOF
  55133. if ac_fn_cxx_try_compile "$LINENO"; then :
  55134. glibcxx_cv_func_strtold_use=yes
  55135. else
  55136. glibcxx_cv_func_strtold_use=no
  55137. fi
  55138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55139. ac_ext=c
  55140. ac_cpp='$CPP $CPPFLAGS'
  55141. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55142. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55143. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55144. fi
  55145. fi
  55146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  55147. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  55148. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  55149. for ac_func in strtold
  55150. do :
  55151. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  55152. if test "x$ac_cv_func_strtold" = xyes; then :
  55153. cat >>confdefs.h <<_ACEOF
  55154. #define HAVE_STRTOLD 1
  55155. _ACEOF
  55156. fi
  55157. done
  55158. fi
  55159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  55160. $as_echo_n "checking for strtof declaration... " >&6; }
  55161. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  55162. if ${glibcxx_cv_func_strtof_use+:} false; then :
  55163. $as_echo_n "(cached) " >&6
  55164. else
  55165. ac_ext=cpp
  55166. ac_cpp='$CXXCPP $CPPFLAGS'
  55167. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55168. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55169. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55171. /* end confdefs.h. */
  55172. #include <stdlib.h>
  55173. int
  55174. main ()
  55175. {
  55176. strtof(0, 0);
  55177. ;
  55178. return 0;
  55179. }
  55180. _ACEOF
  55181. if ac_fn_cxx_try_compile "$LINENO"; then :
  55182. glibcxx_cv_func_strtof_use=yes
  55183. else
  55184. glibcxx_cv_func_strtof_use=no
  55185. fi
  55186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55187. ac_ext=c
  55188. ac_cpp='$CPP $CPPFLAGS'
  55189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55192. fi
  55193. fi
  55194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  55195. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  55196. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  55197. for ac_func in strtof
  55198. do :
  55199. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  55200. if test "x$ac_cv_func_strtof" = xyes; then :
  55201. cat >>confdefs.h <<_ACEOF
  55202. #define HAVE_STRTOF 1
  55203. _ACEOF
  55204. fi
  55205. done
  55206. fi
  55207. CXXFLAGS="$ac_save_CXXFLAGS"
  55208. ;;
  55209. *-tpf)
  55210. SECTION_FLAGS='-ffunction-sections -fdata-sections'
  55211. SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
  55212. $as_echo "#define HAVE_FINITE 1" >>confdefs.h
  55213. $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
  55214. $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
  55215. $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
  55216. $as_echo "#define HAVE_ISINF 1" >>confdefs.h
  55217. $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
  55218. $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
  55219. $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
  55220. $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
  55221. $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
  55222. if test x"long_double_math_on_this_cpu" = x"yes"; then
  55223. $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
  55224. $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
  55225. $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
  55226. $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
  55227. fi
  55228. ;;
  55229. *-*vms*)
  55230. # Check for available headers.
  55231. # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
  55232. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  55233. ac_save_CXXFLAGS="$CXXFLAGS"
  55234. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  55235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
  55236. $as_echo_n "checking for sin in -lm... " >&6; }
  55237. if ${ac_cv_lib_m_sin+:} false; then :
  55238. $as_echo_n "(cached) " >&6
  55239. else
  55240. ac_check_lib_save_LIBS=$LIBS
  55241. LIBS="-lm $LIBS"
  55242. if test x$gcc_no_link = xyes; then
  55243. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  55244. fi
  55245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55246. /* end confdefs.h. */
  55247. /* Override any GCC internal prototype to avoid an error.
  55248. Use char because int might match the return type of a GCC
  55249. builtin and then its argument prototype would still apply. */
  55250. #ifdef __cplusplus
  55251. extern "C"
  55252. #endif
  55253. char sin ();
  55254. int
  55255. main ()
  55256. {
  55257. return sin ();
  55258. ;
  55259. return 0;
  55260. }
  55261. _ACEOF
  55262. if ac_fn_c_try_link "$LINENO"; then :
  55263. ac_cv_lib_m_sin=yes
  55264. else
  55265. ac_cv_lib_m_sin=no
  55266. fi
  55267. rm -f core conftest.err conftest.$ac_objext \
  55268. conftest$ac_exeext conftest.$ac_ext
  55269. LIBS=$ac_check_lib_save_LIBS
  55270. fi
  55271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
  55272. $as_echo "$ac_cv_lib_m_sin" >&6; }
  55273. if test "x$ac_cv_lib_m_sin" = xyes; then :
  55274. libm="-lm"
  55275. fi
  55276. ac_save_LIBS="$LIBS"
  55277. LIBS="$LIBS $libm"
  55278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
  55279. $as_echo_n "checking for isinf declaration... " >&6; }
  55280. if test x${glibcxx_cv_func_isinf_use+set} != xset; then
  55281. if ${glibcxx_cv_func_isinf_use+:} false; then :
  55282. $as_echo_n "(cached) " >&6
  55283. else
  55284. ac_ext=cpp
  55285. ac_cpp='$CXXCPP $CPPFLAGS'
  55286. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55287. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55288. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55290. /* end confdefs.h. */
  55291. #include <math.h>
  55292. #ifdef HAVE_IEEEFP_H
  55293. #include <ieeefp.h>
  55294. #endif
  55295. int
  55296. main ()
  55297. {
  55298. isinf(0);
  55299. ;
  55300. return 0;
  55301. }
  55302. _ACEOF
  55303. if ac_fn_cxx_try_compile "$LINENO"; then :
  55304. glibcxx_cv_func_isinf_use=yes
  55305. else
  55306. glibcxx_cv_func_isinf_use=no
  55307. fi
  55308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55309. ac_ext=c
  55310. ac_cpp='$CPP $CPPFLAGS'
  55311. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55312. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55313. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55314. fi
  55315. fi
  55316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
  55317. $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
  55318. if test x$glibcxx_cv_func_isinf_use = x"yes"; then
  55319. for ac_func in isinf
  55320. do :
  55321. ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
  55322. if test "x$ac_cv_func_isinf" = xyes; then :
  55323. cat >>confdefs.h <<_ACEOF
  55324. #define HAVE_ISINF 1
  55325. _ACEOF
  55326. fi
  55327. done
  55328. else
  55329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinf declaration" >&5
  55330. $as_echo_n "checking for _isinf declaration... " >&6; }
  55331. if test x${glibcxx_cv_func__isinf_use+set} != xset; then
  55332. if ${glibcxx_cv_func__isinf_use+:} false; then :
  55333. $as_echo_n "(cached) " >&6
  55334. else
  55335. ac_ext=cpp
  55336. ac_cpp='$CXXCPP $CPPFLAGS'
  55337. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55338. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55339. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55341. /* end confdefs.h. */
  55342. #include <math.h>
  55343. #ifdef HAVE_IEEEFP_H
  55344. #include <ieeefp.h>
  55345. #endif
  55346. int
  55347. main ()
  55348. {
  55349. _isinf(0);
  55350. ;
  55351. return 0;
  55352. }
  55353. _ACEOF
  55354. if ac_fn_cxx_try_compile "$LINENO"; then :
  55355. glibcxx_cv_func__isinf_use=yes
  55356. else
  55357. glibcxx_cv_func__isinf_use=no
  55358. fi
  55359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55360. ac_ext=c
  55361. ac_cpp='$CPP $CPPFLAGS'
  55362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55365. fi
  55366. fi
  55367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinf_use" >&5
  55368. $as_echo "$glibcxx_cv_func__isinf_use" >&6; }
  55369. if test x$glibcxx_cv_func__isinf_use = x"yes"; then
  55370. for ac_func in _isinf
  55371. do :
  55372. ac_fn_c_check_func "$LINENO" "_isinf" "ac_cv_func__isinf"
  55373. if test "x$ac_cv_func__isinf" = xyes; then :
  55374. cat >>confdefs.h <<_ACEOF
  55375. #define HAVE__ISINF 1
  55376. _ACEOF
  55377. fi
  55378. done
  55379. fi
  55380. fi
  55381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
  55382. $as_echo_n "checking for isnan declaration... " >&6; }
  55383. if test x${glibcxx_cv_func_isnan_use+set} != xset; then
  55384. if ${glibcxx_cv_func_isnan_use+:} false; then :
  55385. $as_echo_n "(cached) " >&6
  55386. else
  55387. ac_ext=cpp
  55388. ac_cpp='$CXXCPP $CPPFLAGS'
  55389. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55390. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55391. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55393. /* end confdefs.h. */
  55394. #include <math.h>
  55395. #ifdef HAVE_IEEEFP_H
  55396. #include <ieeefp.h>
  55397. #endif
  55398. int
  55399. main ()
  55400. {
  55401. isnan(0);
  55402. ;
  55403. return 0;
  55404. }
  55405. _ACEOF
  55406. if ac_fn_cxx_try_compile "$LINENO"; then :
  55407. glibcxx_cv_func_isnan_use=yes
  55408. else
  55409. glibcxx_cv_func_isnan_use=no
  55410. fi
  55411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55412. ac_ext=c
  55413. ac_cpp='$CPP $CPPFLAGS'
  55414. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55415. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55416. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55417. fi
  55418. fi
  55419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
  55420. $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
  55421. if test x$glibcxx_cv_func_isnan_use = x"yes"; then
  55422. for ac_func in isnan
  55423. do :
  55424. ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
  55425. if test "x$ac_cv_func_isnan" = xyes; then :
  55426. cat >>confdefs.h <<_ACEOF
  55427. #define HAVE_ISNAN 1
  55428. _ACEOF
  55429. fi
  55430. done
  55431. else
  55432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnan declaration" >&5
  55433. $as_echo_n "checking for _isnan declaration... " >&6; }
  55434. if test x${glibcxx_cv_func__isnan_use+set} != xset; then
  55435. if ${glibcxx_cv_func__isnan_use+:} false; then :
  55436. $as_echo_n "(cached) " >&6
  55437. else
  55438. ac_ext=cpp
  55439. ac_cpp='$CXXCPP $CPPFLAGS'
  55440. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55441. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55442. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55444. /* end confdefs.h. */
  55445. #include <math.h>
  55446. #ifdef HAVE_IEEEFP_H
  55447. #include <ieeefp.h>
  55448. #endif
  55449. int
  55450. main ()
  55451. {
  55452. _isnan(0);
  55453. ;
  55454. return 0;
  55455. }
  55456. _ACEOF
  55457. if ac_fn_cxx_try_compile "$LINENO"; then :
  55458. glibcxx_cv_func__isnan_use=yes
  55459. else
  55460. glibcxx_cv_func__isnan_use=no
  55461. fi
  55462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55463. ac_ext=c
  55464. ac_cpp='$CPP $CPPFLAGS'
  55465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55468. fi
  55469. fi
  55470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnan_use" >&5
  55471. $as_echo "$glibcxx_cv_func__isnan_use" >&6; }
  55472. if test x$glibcxx_cv_func__isnan_use = x"yes"; then
  55473. for ac_func in _isnan
  55474. do :
  55475. ac_fn_c_check_func "$LINENO" "_isnan" "ac_cv_func__isnan"
  55476. if test "x$ac_cv_func__isnan" = xyes; then :
  55477. cat >>confdefs.h <<_ACEOF
  55478. #define HAVE__ISNAN 1
  55479. _ACEOF
  55480. fi
  55481. done
  55482. fi
  55483. fi
  55484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
  55485. $as_echo_n "checking for finite declaration... " >&6; }
  55486. if test x${glibcxx_cv_func_finite_use+set} != xset; then
  55487. if ${glibcxx_cv_func_finite_use+:} false; then :
  55488. $as_echo_n "(cached) " >&6
  55489. else
  55490. ac_ext=cpp
  55491. ac_cpp='$CXXCPP $CPPFLAGS'
  55492. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55493. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55494. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55496. /* end confdefs.h. */
  55497. #include <math.h>
  55498. #ifdef HAVE_IEEEFP_H
  55499. #include <ieeefp.h>
  55500. #endif
  55501. int
  55502. main ()
  55503. {
  55504. finite(0);
  55505. ;
  55506. return 0;
  55507. }
  55508. _ACEOF
  55509. if ac_fn_cxx_try_compile "$LINENO"; then :
  55510. glibcxx_cv_func_finite_use=yes
  55511. else
  55512. glibcxx_cv_func_finite_use=no
  55513. fi
  55514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55515. ac_ext=c
  55516. ac_cpp='$CPP $CPPFLAGS'
  55517. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55518. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55519. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55520. fi
  55521. fi
  55522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
  55523. $as_echo "$glibcxx_cv_func_finite_use" >&6; }
  55524. if test x$glibcxx_cv_func_finite_use = x"yes"; then
  55525. for ac_func in finite
  55526. do :
  55527. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  55528. if test "x$ac_cv_func_finite" = xyes; then :
  55529. cat >>confdefs.h <<_ACEOF
  55530. #define HAVE_FINITE 1
  55531. _ACEOF
  55532. fi
  55533. done
  55534. else
  55535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finite declaration" >&5
  55536. $as_echo_n "checking for _finite declaration... " >&6; }
  55537. if test x${glibcxx_cv_func__finite_use+set} != xset; then
  55538. if ${glibcxx_cv_func__finite_use+:} false; then :
  55539. $as_echo_n "(cached) " >&6
  55540. else
  55541. ac_ext=cpp
  55542. ac_cpp='$CXXCPP $CPPFLAGS'
  55543. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55544. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55545. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55547. /* end confdefs.h. */
  55548. #include <math.h>
  55549. #ifdef HAVE_IEEEFP_H
  55550. #include <ieeefp.h>
  55551. #endif
  55552. int
  55553. main ()
  55554. {
  55555. _finite(0);
  55556. ;
  55557. return 0;
  55558. }
  55559. _ACEOF
  55560. if ac_fn_cxx_try_compile "$LINENO"; then :
  55561. glibcxx_cv_func__finite_use=yes
  55562. else
  55563. glibcxx_cv_func__finite_use=no
  55564. fi
  55565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55566. ac_ext=c
  55567. ac_cpp='$CPP $CPPFLAGS'
  55568. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55569. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55570. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55571. fi
  55572. fi
  55573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finite_use" >&5
  55574. $as_echo "$glibcxx_cv_func__finite_use" >&6; }
  55575. if test x$glibcxx_cv_func__finite_use = x"yes"; then
  55576. for ac_func in _finite
  55577. do :
  55578. ac_fn_c_check_func "$LINENO" "_finite" "ac_cv_func__finite"
  55579. if test "x$ac_cv_func__finite" = xyes; then :
  55580. cat >>confdefs.h <<_ACEOF
  55581. #define HAVE__FINITE 1
  55582. _ACEOF
  55583. fi
  55584. done
  55585. fi
  55586. fi
  55587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
  55588. $as_echo_n "checking for sincos declaration... " >&6; }
  55589. if test x${glibcxx_cv_func_sincos_use+set} != xset; then
  55590. if ${glibcxx_cv_func_sincos_use+:} false; then :
  55591. $as_echo_n "(cached) " >&6
  55592. else
  55593. ac_ext=cpp
  55594. ac_cpp='$CXXCPP $CPPFLAGS'
  55595. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55596. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55597. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55599. /* end confdefs.h. */
  55600. #include <math.h>
  55601. int
  55602. main ()
  55603. {
  55604. sincos(0, 0, 0);
  55605. ;
  55606. return 0;
  55607. }
  55608. _ACEOF
  55609. if ac_fn_cxx_try_compile "$LINENO"; then :
  55610. glibcxx_cv_func_sincos_use=yes
  55611. else
  55612. glibcxx_cv_func_sincos_use=no
  55613. fi
  55614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55615. ac_ext=c
  55616. ac_cpp='$CPP $CPPFLAGS'
  55617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55620. fi
  55621. fi
  55622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
  55623. $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
  55624. if test x$glibcxx_cv_func_sincos_use = x"yes"; then
  55625. for ac_func in sincos
  55626. do :
  55627. ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
  55628. if test "x$ac_cv_func_sincos" = xyes; then :
  55629. cat >>confdefs.h <<_ACEOF
  55630. #define HAVE_SINCOS 1
  55631. _ACEOF
  55632. fi
  55633. done
  55634. else
  55635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincos declaration" >&5
  55636. $as_echo_n "checking for _sincos declaration... " >&6; }
  55637. if test x${glibcxx_cv_func__sincos_use+set} != xset; then
  55638. if ${glibcxx_cv_func__sincos_use+:} false; then :
  55639. $as_echo_n "(cached) " >&6
  55640. else
  55641. ac_ext=cpp
  55642. ac_cpp='$CXXCPP $CPPFLAGS'
  55643. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55644. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55645. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55647. /* end confdefs.h. */
  55648. #include <math.h>
  55649. int
  55650. main ()
  55651. {
  55652. _sincos(0, 0, 0);
  55653. ;
  55654. return 0;
  55655. }
  55656. _ACEOF
  55657. if ac_fn_cxx_try_compile "$LINENO"; then :
  55658. glibcxx_cv_func__sincos_use=yes
  55659. else
  55660. glibcxx_cv_func__sincos_use=no
  55661. fi
  55662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55663. ac_ext=c
  55664. ac_cpp='$CPP $CPPFLAGS'
  55665. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55666. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55667. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55668. fi
  55669. fi
  55670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincos_use" >&5
  55671. $as_echo "$glibcxx_cv_func__sincos_use" >&6; }
  55672. if test x$glibcxx_cv_func__sincos_use = x"yes"; then
  55673. for ac_func in _sincos
  55674. do :
  55675. ac_fn_c_check_func "$LINENO" "_sincos" "ac_cv_func__sincos"
  55676. if test "x$ac_cv_func__sincos" = xyes; then :
  55677. cat >>confdefs.h <<_ACEOF
  55678. #define HAVE__SINCOS 1
  55679. _ACEOF
  55680. fi
  55681. done
  55682. fi
  55683. fi
  55684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
  55685. $as_echo_n "checking for fpclass declaration... " >&6; }
  55686. if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
  55687. if ${glibcxx_cv_func_fpclass_use+:} false; then :
  55688. $as_echo_n "(cached) " >&6
  55689. else
  55690. ac_ext=cpp
  55691. ac_cpp='$CXXCPP $CPPFLAGS'
  55692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55696. /* end confdefs.h. */
  55697. #include <math.h>
  55698. #ifdef HAVE_IEEEFP_H
  55699. #include <ieeefp.h>
  55700. #endif
  55701. int
  55702. main ()
  55703. {
  55704. fpclass(0);
  55705. ;
  55706. return 0;
  55707. }
  55708. _ACEOF
  55709. if ac_fn_cxx_try_compile "$LINENO"; then :
  55710. glibcxx_cv_func_fpclass_use=yes
  55711. else
  55712. glibcxx_cv_func_fpclass_use=no
  55713. fi
  55714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55715. ac_ext=c
  55716. ac_cpp='$CPP $CPPFLAGS'
  55717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55720. fi
  55721. fi
  55722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
  55723. $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
  55724. if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
  55725. for ac_func in fpclass
  55726. do :
  55727. ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
  55728. if test "x$ac_cv_func_fpclass" = xyes; then :
  55729. cat >>confdefs.h <<_ACEOF
  55730. #define HAVE_FPCLASS 1
  55731. _ACEOF
  55732. fi
  55733. done
  55734. else
  55735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fpclass declaration" >&5
  55736. $as_echo_n "checking for _fpclass declaration... " >&6; }
  55737. if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
  55738. if ${glibcxx_cv_func__fpclass_use+:} false; then :
  55739. $as_echo_n "(cached) " >&6
  55740. else
  55741. ac_ext=cpp
  55742. ac_cpp='$CXXCPP $CPPFLAGS'
  55743. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55744. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55745. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55747. /* end confdefs.h. */
  55748. #include <math.h>
  55749. #ifdef HAVE_IEEEFP_H
  55750. #include <ieeefp.h>
  55751. #endif
  55752. int
  55753. main ()
  55754. {
  55755. _fpclass(0);
  55756. ;
  55757. return 0;
  55758. }
  55759. _ACEOF
  55760. if ac_fn_cxx_try_compile "$LINENO"; then :
  55761. glibcxx_cv_func__fpclass_use=yes
  55762. else
  55763. glibcxx_cv_func__fpclass_use=no
  55764. fi
  55765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55766. ac_ext=c
  55767. ac_cpp='$CPP $CPPFLAGS'
  55768. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55769. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55770. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55771. fi
  55772. fi
  55773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fpclass_use" >&5
  55774. $as_echo "$glibcxx_cv_func__fpclass_use" >&6; }
  55775. if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
  55776. for ac_func in _fpclass
  55777. do :
  55778. ac_fn_c_check_func "$LINENO" "_fpclass" "ac_cv_func__fpclass"
  55779. if test "x$ac_cv_func__fpclass" = xyes; then :
  55780. cat >>confdefs.h <<_ACEOF
  55781. #define HAVE__FPCLASS 1
  55782. _ACEOF
  55783. fi
  55784. done
  55785. fi
  55786. fi
  55787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
  55788. $as_echo_n "checking for qfpclass declaration... " >&6; }
  55789. if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
  55790. if ${glibcxx_cv_func_qfpclass_use+:} false; then :
  55791. $as_echo_n "(cached) " >&6
  55792. else
  55793. ac_ext=cpp
  55794. ac_cpp='$CXXCPP $CPPFLAGS'
  55795. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55796. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55797. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55799. /* end confdefs.h. */
  55800. #include <math.h>
  55801. #ifdef HAVE_IEEEFP_H
  55802. #include <ieeefp.h>
  55803. #endif
  55804. int
  55805. main ()
  55806. {
  55807. qfpclass(0);
  55808. ;
  55809. return 0;
  55810. }
  55811. _ACEOF
  55812. if ac_fn_cxx_try_compile "$LINENO"; then :
  55813. glibcxx_cv_func_qfpclass_use=yes
  55814. else
  55815. glibcxx_cv_func_qfpclass_use=no
  55816. fi
  55817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55818. ac_ext=c
  55819. ac_cpp='$CPP $CPPFLAGS'
  55820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55823. fi
  55824. fi
  55825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
  55826. $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
  55827. if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
  55828. for ac_func in qfpclass
  55829. do :
  55830. ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
  55831. if test "x$ac_cv_func_qfpclass" = xyes; then :
  55832. cat >>confdefs.h <<_ACEOF
  55833. #define HAVE_QFPCLASS 1
  55834. _ACEOF
  55835. fi
  55836. done
  55837. else
  55838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _qfpclass declaration" >&5
  55839. $as_echo_n "checking for _qfpclass declaration... " >&6; }
  55840. if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
  55841. if ${glibcxx_cv_func__qfpclass_use+:} false; then :
  55842. $as_echo_n "(cached) " >&6
  55843. else
  55844. ac_ext=cpp
  55845. ac_cpp='$CXXCPP $CPPFLAGS'
  55846. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55847. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55848. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55849. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55850. /* end confdefs.h. */
  55851. #include <math.h>
  55852. #ifdef HAVE_IEEEFP_H
  55853. #include <ieeefp.h>
  55854. #endif
  55855. int
  55856. main ()
  55857. {
  55858. _qfpclass(0);
  55859. ;
  55860. return 0;
  55861. }
  55862. _ACEOF
  55863. if ac_fn_cxx_try_compile "$LINENO"; then :
  55864. glibcxx_cv_func__qfpclass_use=yes
  55865. else
  55866. glibcxx_cv_func__qfpclass_use=no
  55867. fi
  55868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55869. ac_ext=c
  55870. ac_cpp='$CPP $CPPFLAGS'
  55871. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55872. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55873. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55874. fi
  55875. fi
  55876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__qfpclass_use" >&5
  55877. $as_echo "$glibcxx_cv_func__qfpclass_use" >&6; }
  55878. if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
  55879. for ac_func in _qfpclass
  55880. do :
  55881. ac_fn_c_check_func "$LINENO" "_qfpclass" "ac_cv_func__qfpclass"
  55882. if test "x$ac_cv_func__qfpclass" = xyes; then :
  55883. cat >>confdefs.h <<_ACEOF
  55884. #define HAVE__QFPCLASS 1
  55885. _ACEOF
  55886. fi
  55887. done
  55888. fi
  55889. fi
  55890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
  55891. $as_echo_n "checking for hypot declaration... " >&6; }
  55892. if test x${glibcxx_cv_func_hypot_use+set} != xset; then
  55893. if ${glibcxx_cv_func_hypot_use+:} false; then :
  55894. $as_echo_n "(cached) " >&6
  55895. else
  55896. ac_ext=cpp
  55897. ac_cpp='$CXXCPP $CPPFLAGS'
  55898. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55899. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55900. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55902. /* end confdefs.h. */
  55903. #include <math.h>
  55904. int
  55905. main ()
  55906. {
  55907. hypot(0, 0);
  55908. ;
  55909. return 0;
  55910. }
  55911. _ACEOF
  55912. if ac_fn_cxx_try_compile "$LINENO"; then :
  55913. glibcxx_cv_func_hypot_use=yes
  55914. else
  55915. glibcxx_cv_func_hypot_use=no
  55916. fi
  55917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55918. ac_ext=c
  55919. ac_cpp='$CPP $CPPFLAGS'
  55920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55923. fi
  55924. fi
  55925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
  55926. $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
  55927. if test x$glibcxx_cv_func_hypot_use = x"yes"; then
  55928. for ac_func in hypot
  55929. do :
  55930. ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
  55931. if test "x$ac_cv_func_hypot" = xyes; then :
  55932. cat >>confdefs.h <<_ACEOF
  55933. #define HAVE_HYPOT 1
  55934. _ACEOF
  55935. fi
  55936. done
  55937. else
  55938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypot declaration" >&5
  55939. $as_echo_n "checking for _hypot declaration... " >&6; }
  55940. if test x${glibcxx_cv_func__hypot_use+set} != xset; then
  55941. if ${glibcxx_cv_func__hypot_use+:} false; then :
  55942. $as_echo_n "(cached) " >&6
  55943. else
  55944. ac_ext=cpp
  55945. ac_cpp='$CXXCPP $CPPFLAGS'
  55946. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55947. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55948. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55950. /* end confdefs.h. */
  55951. #include <math.h>
  55952. int
  55953. main ()
  55954. {
  55955. _hypot(0, 0);
  55956. ;
  55957. return 0;
  55958. }
  55959. _ACEOF
  55960. if ac_fn_cxx_try_compile "$LINENO"; then :
  55961. glibcxx_cv_func__hypot_use=yes
  55962. else
  55963. glibcxx_cv_func__hypot_use=no
  55964. fi
  55965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  55966. ac_ext=c
  55967. ac_cpp='$CPP $CPPFLAGS'
  55968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  55971. fi
  55972. fi
  55973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypot_use" >&5
  55974. $as_echo "$glibcxx_cv_func__hypot_use" >&6; }
  55975. if test x$glibcxx_cv_func__hypot_use = x"yes"; then
  55976. for ac_func in _hypot
  55977. do :
  55978. ac_fn_c_check_func "$LINENO" "_hypot" "ac_cv_func__hypot"
  55979. if test "x$ac_cv_func__hypot" = xyes; then :
  55980. cat >>confdefs.h <<_ACEOF
  55981. #define HAVE__HYPOT 1
  55982. _ACEOF
  55983. fi
  55984. done
  55985. fi
  55986. fi
  55987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
  55988. $as_echo_n "checking for float trig functions... " >&6; }
  55989. if ${glibcxx_cv_func_float_trig_use+:} false; then :
  55990. $as_echo_n "(cached) " >&6
  55991. else
  55992. ac_ext=cpp
  55993. ac_cpp='$CXXCPP $CPPFLAGS'
  55994. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  55995. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  55996. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  55997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  55998. /* end confdefs.h. */
  55999. #include <math.h>
  56000. int
  56001. main ()
  56002. {
  56003. acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
  56004. ;
  56005. return 0;
  56006. }
  56007. _ACEOF
  56008. if ac_fn_cxx_try_compile "$LINENO"; then :
  56009. glibcxx_cv_func_float_trig_use=yes
  56010. else
  56011. glibcxx_cv_func_float_trig_use=no
  56012. fi
  56013. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56014. ac_ext=c
  56015. ac_cpp='$CPP $CPPFLAGS'
  56016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56019. fi
  56020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
  56021. $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
  56022. if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
  56023. for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
  56024. do :
  56025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  56026. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  56027. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  56028. cat >>confdefs.h <<_ACEOF
  56029. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  56030. _ACEOF
  56031. fi
  56032. done
  56033. else
  56034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float trig functions" >&5
  56035. $as_echo_n "checking for _float trig functions... " >&6; }
  56036. if ${glibcxx_cv_func__float_trig_use+:} false; then :
  56037. $as_echo_n "(cached) " >&6
  56038. else
  56039. ac_ext=cpp
  56040. ac_cpp='$CXXCPP $CPPFLAGS'
  56041. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56042. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56043. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56045. /* end confdefs.h. */
  56046. #include <math.h>
  56047. int
  56048. main ()
  56049. {
  56050. _acosf (0); _asinf (0); _atanf (0); _cosf (0); _sinf (0); _tanf (0); _coshf (0); _sinhf (0); _tanhf (0);
  56051. ;
  56052. return 0;
  56053. }
  56054. _ACEOF
  56055. if ac_fn_cxx_try_compile "$LINENO"; then :
  56056. glibcxx_cv_func__float_trig_use=yes
  56057. else
  56058. glibcxx_cv_func__float_trig_use=no
  56059. fi
  56060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56061. ac_ext=c
  56062. ac_cpp='$CPP $CPPFLAGS'
  56063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56066. fi
  56067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_trig_use" >&5
  56068. $as_echo "$glibcxx_cv_func__float_trig_use" >&6; }
  56069. if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
  56070. for ac_func in _acosf _asinf _atanf _cosf _sinf _tanf _coshf _sinhf _tanhf
  56071. do :
  56072. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  56073. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  56074. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  56075. cat >>confdefs.h <<_ACEOF
  56076. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  56077. _ACEOF
  56078. fi
  56079. done
  56080. fi
  56081. fi
  56082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
  56083. $as_echo_n "checking for float round functions... " >&6; }
  56084. if ${glibcxx_cv_func_float_round_use+:} false; then :
  56085. $as_echo_n "(cached) " >&6
  56086. else
  56087. ac_ext=cpp
  56088. ac_cpp='$CXXCPP $CPPFLAGS'
  56089. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56090. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56091. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56093. /* end confdefs.h. */
  56094. #include <math.h>
  56095. int
  56096. main ()
  56097. {
  56098. ceilf (0); floorf (0);
  56099. ;
  56100. return 0;
  56101. }
  56102. _ACEOF
  56103. if ac_fn_cxx_try_compile "$LINENO"; then :
  56104. glibcxx_cv_func_float_round_use=yes
  56105. else
  56106. glibcxx_cv_func_float_round_use=no
  56107. fi
  56108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56109. ac_ext=c
  56110. ac_cpp='$CPP $CPPFLAGS'
  56111. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56112. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56113. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56114. fi
  56115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
  56116. $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
  56117. if test x$glibcxx_cv_func_float_round_use = x"yes"; then
  56118. for ac_func in ceilf floorf
  56119. do :
  56120. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  56121. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  56122. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  56123. cat >>confdefs.h <<_ACEOF
  56124. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  56125. _ACEOF
  56126. fi
  56127. done
  56128. else
  56129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _float round functions" >&5
  56130. $as_echo_n "checking for _float round functions... " >&6; }
  56131. if ${glibcxx_cv_func__float_round_use+:} false; then :
  56132. $as_echo_n "(cached) " >&6
  56133. else
  56134. ac_ext=cpp
  56135. ac_cpp='$CXXCPP $CPPFLAGS'
  56136. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56137. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56138. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56140. /* end confdefs.h. */
  56141. #include <math.h>
  56142. int
  56143. main ()
  56144. {
  56145. _ceilf (0); _floorf (0);
  56146. ;
  56147. return 0;
  56148. }
  56149. _ACEOF
  56150. if ac_fn_cxx_try_compile "$LINENO"; then :
  56151. glibcxx_cv_func__float_round_use=yes
  56152. else
  56153. glibcxx_cv_func__float_round_use=no
  56154. fi
  56155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56156. ac_ext=c
  56157. ac_cpp='$CPP $CPPFLAGS'
  56158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56161. fi
  56162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__float_round_use" >&5
  56163. $as_echo "$glibcxx_cv_func__float_round_use" >&6; }
  56164. if test x$glibcxx_cv_func__float_round_use = x"yes"; then
  56165. for ac_func in _ceilf _floorf
  56166. do :
  56167. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  56168. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  56169. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  56170. cat >>confdefs.h <<_ACEOF
  56171. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  56172. _ACEOF
  56173. fi
  56174. done
  56175. fi
  56176. fi
  56177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
  56178. $as_echo_n "checking for expf declaration... " >&6; }
  56179. if test x${glibcxx_cv_func_expf_use+set} != xset; then
  56180. if ${glibcxx_cv_func_expf_use+:} false; then :
  56181. $as_echo_n "(cached) " >&6
  56182. else
  56183. ac_ext=cpp
  56184. ac_cpp='$CXXCPP $CPPFLAGS'
  56185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56189. /* end confdefs.h. */
  56190. #include <math.h>
  56191. #ifdef HAVE_IEEEFP_H
  56192. #include <ieeefp.h>
  56193. #endif
  56194. int
  56195. main ()
  56196. {
  56197. expf(0);
  56198. ;
  56199. return 0;
  56200. }
  56201. _ACEOF
  56202. if ac_fn_cxx_try_compile "$LINENO"; then :
  56203. glibcxx_cv_func_expf_use=yes
  56204. else
  56205. glibcxx_cv_func_expf_use=no
  56206. fi
  56207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56208. ac_ext=c
  56209. ac_cpp='$CPP $CPPFLAGS'
  56210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56213. fi
  56214. fi
  56215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
  56216. $as_echo "$glibcxx_cv_func_expf_use" >&6; }
  56217. if test x$glibcxx_cv_func_expf_use = x"yes"; then
  56218. for ac_func in expf
  56219. do :
  56220. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  56221. if test "x$ac_cv_func_expf" = xyes; then :
  56222. cat >>confdefs.h <<_ACEOF
  56223. #define HAVE_EXPF 1
  56224. _ACEOF
  56225. fi
  56226. done
  56227. else
  56228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expf declaration" >&5
  56229. $as_echo_n "checking for _expf declaration... " >&6; }
  56230. if test x${glibcxx_cv_func__expf_use+set} != xset; then
  56231. if ${glibcxx_cv_func__expf_use+:} false; then :
  56232. $as_echo_n "(cached) " >&6
  56233. else
  56234. ac_ext=cpp
  56235. ac_cpp='$CXXCPP $CPPFLAGS'
  56236. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56237. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56240. /* end confdefs.h. */
  56241. #include <math.h>
  56242. #ifdef HAVE_IEEEFP_H
  56243. #include <ieeefp.h>
  56244. #endif
  56245. int
  56246. main ()
  56247. {
  56248. _expf(0);
  56249. ;
  56250. return 0;
  56251. }
  56252. _ACEOF
  56253. if ac_fn_cxx_try_compile "$LINENO"; then :
  56254. glibcxx_cv_func__expf_use=yes
  56255. else
  56256. glibcxx_cv_func__expf_use=no
  56257. fi
  56258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56259. ac_ext=c
  56260. ac_cpp='$CPP $CPPFLAGS'
  56261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56264. fi
  56265. fi
  56266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expf_use" >&5
  56267. $as_echo "$glibcxx_cv_func__expf_use" >&6; }
  56268. if test x$glibcxx_cv_func__expf_use = x"yes"; then
  56269. for ac_func in _expf
  56270. do :
  56271. ac_fn_c_check_func "$LINENO" "_expf" "ac_cv_func__expf"
  56272. if test "x$ac_cv_func__expf" = xyes; then :
  56273. cat >>confdefs.h <<_ACEOF
  56274. #define HAVE__EXPF 1
  56275. _ACEOF
  56276. fi
  56277. done
  56278. fi
  56279. fi
  56280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
  56281. $as_echo_n "checking for isnanf declaration... " >&6; }
  56282. if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
  56283. if ${glibcxx_cv_func_isnanf_use+:} false; then :
  56284. $as_echo_n "(cached) " >&6
  56285. else
  56286. ac_ext=cpp
  56287. ac_cpp='$CXXCPP $CPPFLAGS'
  56288. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56289. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56290. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56292. /* end confdefs.h. */
  56293. #include <math.h>
  56294. #ifdef HAVE_IEEEFP_H
  56295. #include <ieeefp.h>
  56296. #endif
  56297. int
  56298. main ()
  56299. {
  56300. isnanf(0);
  56301. ;
  56302. return 0;
  56303. }
  56304. _ACEOF
  56305. if ac_fn_cxx_try_compile "$LINENO"; then :
  56306. glibcxx_cv_func_isnanf_use=yes
  56307. else
  56308. glibcxx_cv_func_isnanf_use=no
  56309. fi
  56310. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56311. ac_ext=c
  56312. ac_cpp='$CPP $CPPFLAGS'
  56313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56316. fi
  56317. fi
  56318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
  56319. $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
  56320. if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
  56321. for ac_func in isnanf
  56322. do :
  56323. ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
  56324. if test "x$ac_cv_func_isnanf" = xyes; then :
  56325. cat >>confdefs.h <<_ACEOF
  56326. #define HAVE_ISNANF 1
  56327. _ACEOF
  56328. fi
  56329. done
  56330. else
  56331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanf declaration" >&5
  56332. $as_echo_n "checking for _isnanf declaration... " >&6; }
  56333. if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
  56334. if ${glibcxx_cv_func__isnanf_use+:} false; then :
  56335. $as_echo_n "(cached) " >&6
  56336. else
  56337. ac_ext=cpp
  56338. ac_cpp='$CXXCPP $CPPFLAGS'
  56339. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56340. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56341. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56343. /* end confdefs.h. */
  56344. #include <math.h>
  56345. #ifdef HAVE_IEEEFP_H
  56346. #include <ieeefp.h>
  56347. #endif
  56348. int
  56349. main ()
  56350. {
  56351. _isnanf(0);
  56352. ;
  56353. return 0;
  56354. }
  56355. _ACEOF
  56356. if ac_fn_cxx_try_compile "$LINENO"; then :
  56357. glibcxx_cv_func__isnanf_use=yes
  56358. else
  56359. glibcxx_cv_func__isnanf_use=no
  56360. fi
  56361. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56362. ac_ext=c
  56363. ac_cpp='$CPP $CPPFLAGS'
  56364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56367. fi
  56368. fi
  56369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanf_use" >&5
  56370. $as_echo "$glibcxx_cv_func__isnanf_use" >&6; }
  56371. if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
  56372. for ac_func in _isnanf
  56373. do :
  56374. ac_fn_c_check_func "$LINENO" "_isnanf" "ac_cv_func__isnanf"
  56375. if test "x$ac_cv_func__isnanf" = xyes; then :
  56376. cat >>confdefs.h <<_ACEOF
  56377. #define HAVE__ISNANF 1
  56378. _ACEOF
  56379. fi
  56380. done
  56381. fi
  56382. fi
  56383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
  56384. $as_echo_n "checking for isinff declaration... " >&6; }
  56385. if test x${glibcxx_cv_func_isinff_use+set} != xset; then
  56386. if ${glibcxx_cv_func_isinff_use+:} false; then :
  56387. $as_echo_n "(cached) " >&6
  56388. else
  56389. ac_ext=cpp
  56390. ac_cpp='$CXXCPP $CPPFLAGS'
  56391. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56392. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56393. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56395. /* end confdefs.h. */
  56396. #include <math.h>
  56397. #ifdef HAVE_IEEEFP_H
  56398. #include <ieeefp.h>
  56399. #endif
  56400. int
  56401. main ()
  56402. {
  56403. isinff(0);
  56404. ;
  56405. return 0;
  56406. }
  56407. _ACEOF
  56408. if ac_fn_cxx_try_compile "$LINENO"; then :
  56409. glibcxx_cv_func_isinff_use=yes
  56410. else
  56411. glibcxx_cv_func_isinff_use=no
  56412. fi
  56413. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56414. ac_ext=c
  56415. ac_cpp='$CPP $CPPFLAGS'
  56416. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56417. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56418. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56419. fi
  56420. fi
  56421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
  56422. $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
  56423. if test x$glibcxx_cv_func_isinff_use = x"yes"; then
  56424. for ac_func in isinff
  56425. do :
  56426. ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
  56427. if test "x$ac_cv_func_isinff" = xyes; then :
  56428. cat >>confdefs.h <<_ACEOF
  56429. #define HAVE_ISINFF 1
  56430. _ACEOF
  56431. fi
  56432. done
  56433. else
  56434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinff declaration" >&5
  56435. $as_echo_n "checking for _isinff declaration... " >&6; }
  56436. if test x${glibcxx_cv_func__isinff_use+set} != xset; then
  56437. if ${glibcxx_cv_func__isinff_use+:} false; then :
  56438. $as_echo_n "(cached) " >&6
  56439. else
  56440. ac_ext=cpp
  56441. ac_cpp='$CXXCPP $CPPFLAGS'
  56442. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56443. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56446. /* end confdefs.h. */
  56447. #include <math.h>
  56448. #ifdef HAVE_IEEEFP_H
  56449. #include <ieeefp.h>
  56450. #endif
  56451. int
  56452. main ()
  56453. {
  56454. _isinff(0);
  56455. ;
  56456. return 0;
  56457. }
  56458. _ACEOF
  56459. if ac_fn_cxx_try_compile "$LINENO"; then :
  56460. glibcxx_cv_func__isinff_use=yes
  56461. else
  56462. glibcxx_cv_func__isinff_use=no
  56463. fi
  56464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56465. ac_ext=c
  56466. ac_cpp='$CPP $CPPFLAGS'
  56467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56470. fi
  56471. fi
  56472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinff_use" >&5
  56473. $as_echo "$glibcxx_cv_func__isinff_use" >&6; }
  56474. if test x$glibcxx_cv_func__isinff_use = x"yes"; then
  56475. for ac_func in _isinff
  56476. do :
  56477. ac_fn_c_check_func "$LINENO" "_isinff" "ac_cv_func__isinff"
  56478. if test "x$ac_cv_func__isinff" = xyes; then :
  56479. cat >>confdefs.h <<_ACEOF
  56480. #define HAVE__ISINFF 1
  56481. _ACEOF
  56482. fi
  56483. done
  56484. fi
  56485. fi
  56486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
  56487. $as_echo_n "checking for atan2f declaration... " >&6; }
  56488. if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
  56489. if ${glibcxx_cv_func_atan2f_use+:} false; then :
  56490. $as_echo_n "(cached) " >&6
  56491. else
  56492. ac_ext=cpp
  56493. ac_cpp='$CXXCPP $CPPFLAGS'
  56494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56498. /* end confdefs.h. */
  56499. #include <math.h>
  56500. int
  56501. main ()
  56502. {
  56503. atan2f(0, 0);
  56504. ;
  56505. return 0;
  56506. }
  56507. _ACEOF
  56508. if ac_fn_cxx_try_compile "$LINENO"; then :
  56509. glibcxx_cv_func_atan2f_use=yes
  56510. else
  56511. glibcxx_cv_func_atan2f_use=no
  56512. fi
  56513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56514. ac_ext=c
  56515. ac_cpp='$CPP $CPPFLAGS'
  56516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56519. fi
  56520. fi
  56521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
  56522. $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
  56523. if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
  56524. for ac_func in atan2f
  56525. do :
  56526. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  56527. if test "x$ac_cv_func_atan2f" = xyes; then :
  56528. cat >>confdefs.h <<_ACEOF
  56529. #define HAVE_ATAN2F 1
  56530. _ACEOF
  56531. fi
  56532. done
  56533. else
  56534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2f declaration" >&5
  56535. $as_echo_n "checking for _atan2f declaration... " >&6; }
  56536. if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
  56537. if ${glibcxx_cv_func__atan2f_use+:} false; then :
  56538. $as_echo_n "(cached) " >&6
  56539. else
  56540. ac_ext=cpp
  56541. ac_cpp='$CXXCPP $CPPFLAGS'
  56542. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56543. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56544. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56546. /* end confdefs.h. */
  56547. #include <math.h>
  56548. int
  56549. main ()
  56550. {
  56551. _atan2f(0, 0);
  56552. ;
  56553. return 0;
  56554. }
  56555. _ACEOF
  56556. if ac_fn_cxx_try_compile "$LINENO"; then :
  56557. glibcxx_cv_func__atan2f_use=yes
  56558. else
  56559. glibcxx_cv_func__atan2f_use=no
  56560. fi
  56561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56562. ac_ext=c
  56563. ac_cpp='$CPP $CPPFLAGS'
  56564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56567. fi
  56568. fi
  56569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2f_use" >&5
  56570. $as_echo "$glibcxx_cv_func__atan2f_use" >&6; }
  56571. if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
  56572. for ac_func in _atan2f
  56573. do :
  56574. ac_fn_c_check_func "$LINENO" "_atan2f" "ac_cv_func__atan2f"
  56575. if test "x$ac_cv_func__atan2f" = xyes; then :
  56576. cat >>confdefs.h <<_ACEOF
  56577. #define HAVE__ATAN2F 1
  56578. _ACEOF
  56579. fi
  56580. done
  56581. fi
  56582. fi
  56583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
  56584. $as_echo_n "checking for fabsf declaration... " >&6; }
  56585. if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
  56586. if ${glibcxx_cv_func_fabsf_use+:} false; then :
  56587. $as_echo_n "(cached) " >&6
  56588. else
  56589. ac_ext=cpp
  56590. ac_cpp='$CXXCPP $CPPFLAGS'
  56591. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56592. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56593. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56595. /* end confdefs.h. */
  56596. #include <math.h>
  56597. #ifdef HAVE_IEEEFP_H
  56598. #include <ieeefp.h>
  56599. #endif
  56600. int
  56601. main ()
  56602. {
  56603. fabsf(0);
  56604. ;
  56605. return 0;
  56606. }
  56607. _ACEOF
  56608. if ac_fn_cxx_try_compile "$LINENO"; then :
  56609. glibcxx_cv_func_fabsf_use=yes
  56610. else
  56611. glibcxx_cv_func_fabsf_use=no
  56612. fi
  56613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56614. ac_ext=c
  56615. ac_cpp='$CPP $CPPFLAGS'
  56616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56619. fi
  56620. fi
  56621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
  56622. $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
  56623. if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
  56624. for ac_func in fabsf
  56625. do :
  56626. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  56627. if test "x$ac_cv_func_fabsf" = xyes; then :
  56628. cat >>confdefs.h <<_ACEOF
  56629. #define HAVE_FABSF 1
  56630. _ACEOF
  56631. fi
  56632. done
  56633. else
  56634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsf declaration" >&5
  56635. $as_echo_n "checking for _fabsf declaration... " >&6; }
  56636. if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
  56637. if ${glibcxx_cv_func__fabsf_use+:} false; then :
  56638. $as_echo_n "(cached) " >&6
  56639. else
  56640. ac_ext=cpp
  56641. ac_cpp='$CXXCPP $CPPFLAGS'
  56642. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56643. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56644. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56646. /* end confdefs.h. */
  56647. #include <math.h>
  56648. #ifdef HAVE_IEEEFP_H
  56649. #include <ieeefp.h>
  56650. #endif
  56651. int
  56652. main ()
  56653. {
  56654. _fabsf(0);
  56655. ;
  56656. return 0;
  56657. }
  56658. _ACEOF
  56659. if ac_fn_cxx_try_compile "$LINENO"; then :
  56660. glibcxx_cv_func__fabsf_use=yes
  56661. else
  56662. glibcxx_cv_func__fabsf_use=no
  56663. fi
  56664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56665. ac_ext=c
  56666. ac_cpp='$CPP $CPPFLAGS'
  56667. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56668. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56669. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56670. fi
  56671. fi
  56672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsf_use" >&5
  56673. $as_echo "$glibcxx_cv_func__fabsf_use" >&6; }
  56674. if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
  56675. for ac_func in _fabsf
  56676. do :
  56677. ac_fn_c_check_func "$LINENO" "_fabsf" "ac_cv_func__fabsf"
  56678. if test "x$ac_cv_func__fabsf" = xyes; then :
  56679. cat >>confdefs.h <<_ACEOF
  56680. #define HAVE__FABSF 1
  56681. _ACEOF
  56682. fi
  56683. done
  56684. fi
  56685. fi
  56686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
  56687. $as_echo_n "checking for fmodf declaration... " >&6; }
  56688. if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
  56689. if ${glibcxx_cv_func_fmodf_use+:} false; then :
  56690. $as_echo_n "(cached) " >&6
  56691. else
  56692. ac_ext=cpp
  56693. ac_cpp='$CXXCPP $CPPFLAGS'
  56694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56698. /* end confdefs.h. */
  56699. #include <math.h>
  56700. int
  56701. main ()
  56702. {
  56703. fmodf(0, 0);
  56704. ;
  56705. return 0;
  56706. }
  56707. _ACEOF
  56708. if ac_fn_cxx_try_compile "$LINENO"; then :
  56709. glibcxx_cv_func_fmodf_use=yes
  56710. else
  56711. glibcxx_cv_func_fmodf_use=no
  56712. fi
  56713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56714. ac_ext=c
  56715. ac_cpp='$CPP $CPPFLAGS'
  56716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56719. fi
  56720. fi
  56721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
  56722. $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
  56723. if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
  56724. for ac_func in fmodf
  56725. do :
  56726. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  56727. if test "x$ac_cv_func_fmodf" = xyes; then :
  56728. cat >>confdefs.h <<_ACEOF
  56729. #define HAVE_FMODF 1
  56730. _ACEOF
  56731. fi
  56732. done
  56733. else
  56734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodf declaration" >&5
  56735. $as_echo_n "checking for _fmodf declaration... " >&6; }
  56736. if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
  56737. if ${glibcxx_cv_func__fmodf_use+:} false; then :
  56738. $as_echo_n "(cached) " >&6
  56739. else
  56740. ac_ext=cpp
  56741. ac_cpp='$CXXCPP $CPPFLAGS'
  56742. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56743. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56744. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56746. /* end confdefs.h. */
  56747. #include <math.h>
  56748. int
  56749. main ()
  56750. {
  56751. _fmodf(0, 0);
  56752. ;
  56753. return 0;
  56754. }
  56755. _ACEOF
  56756. if ac_fn_cxx_try_compile "$LINENO"; then :
  56757. glibcxx_cv_func__fmodf_use=yes
  56758. else
  56759. glibcxx_cv_func__fmodf_use=no
  56760. fi
  56761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56762. ac_ext=c
  56763. ac_cpp='$CPP $CPPFLAGS'
  56764. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56765. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56766. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56767. fi
  56768. fi
  56769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodf_use" >&5
  56770. $as_echo "$glibcxx_cv_func__fmodf_use" >&6; }
  56771. if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
  56772. for ac_func in _fmodf
  56773. do :
  56774. ac_fn_c_check_func "$LINENO" "_fmodf" "ac_cv_func__fmodf"
  56775. if test "x$ac_cv_func__fmodf" = xyes; then :
  56776. cat >>confdefs.h <<_ACEOF
  56777. #define HAVE__FMODF 1
  56778. _ACEOF
  56779. fi
  56780. done
  56781. fi
  56782. fi
  56783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  56784. $as_echo_n "checking for frexpf declaration... " >&6; }
  56785. if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
  56786. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  56787. $as_echo_n "(cached) " >&6
  56788. else
  56789. ac_ext=cpp
  56790. ac_cpp='$CXXCPP $CPPFLAGS'
  56791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56795. /* end confdefs.h. */
  56796. #include <math.h>
  56797. int
  56798. main ()
  56799. {
  56800. frexpf(0, 0);
  56801. ;
  56802. return 0;
  56803. }
  56804. _ACEOF
  56805. if ac_fn_cxx_try_compile "$LINENO"; then :
  56806. glibcxx_cv_func_frexpf_use=yes
  56807. else
  56808. glibcxx_cv_func_frexpf_use=no
  56809. fi
  56810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56811. ac_ext=c
  56812. ac_cpp='$CPP $CPPFLAGS'
  56813. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56814. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56815. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56816. fi
  56817. fi
  56818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  56819. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  56820. if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
  56821. for ac_func in frexpf
  56822. do :
  56823. ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
  56824. if test "x$ac_cv_func_frexpf" = xyes; then :
  56825. cat >>confdefs.h <<_ACEOF
  56826. #define HAVE_FREXPF 1
  56827. _ACEOF
  56828. fi
  56829. done
  56830. else
  56831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpf declaration" >&5
  56832. $as_echo_n "checking for _frexpf declaration... " >&6; }
  56833. if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
  56834. if ${glibcxx_cv_func__frexpf_use+:} false; then :
  56835. $as_echo_n "(cached) " >&6
  56836. else
  56837. ac_ext=cpp
  56838. ac_cpp='$CXXCPP $CPPFLAGS'
  56839. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56840. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56841. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56843. /* end confdefs.h. */
  56844. #include <math.h>
  56845. int
  56846. main ()
  56847. {
  56848. _frexpf(0, 0);
  56849. ;
  56850. return 0;
  56851. }
  56852. _ACEOF
  56853. if ac_fn_cxx_try_compile "$LINENO"; then :
  56854. glibcxx_cv_func__frexpf_use=yes
  56855. else
  56856. glibcxx_cv_func__frexpf_use=no
  56857. fi
  56858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56859. ac_ext=c
  56860. ac_cpp='$CPP $CPPFLAGS'
  56861. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56862. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56863. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56864. fi
  56865. fi
  56866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpf_use" >&5
  56867. $as_echo "$glibcxx_cv_func__frexpf_use" >&6; }
  56868. if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
  56869. for ac_func in _frexpf
  56870. do :
  56871. ac_fn_c_check_func "$LINENO" "_frexpf" "ac_cv_func__frexpf"
  56872. if test "x$ac_cv_func__frexpf" = xyes; then :
  56873. cat >>confdefs.h <<_ACEOF
  56874. #define HAVE__FREXPF 1
  56875. _ACEOF
  56876. fi
  56877. done
  56878. fi
  56879. fi
  56880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  56881. $as_echo_n "checking for hypotf declaration... " >&6; }
  56882. if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
  56883. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  56884. $as_echo_n "(cached) " >&6
  56885. else
  56886. ac_ext=cpp
  56887. ac_cpp='$CXXCPP $CPPFLAGS'
  56888. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56889. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56890. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56892. /* end confdefs.h. */
  56893. #include <math.h>
  56894. int
  56895. main ()
  56896. {
  56897. hypotf(0, 0);
  56898. ;
  56899. return 0;
  56900. }
  56901. _ACEOF
  56902. if ac_fn_cxx_try_compile "$LINENO"; then :
  56903. glibcxx_cv_func_hypotf_use=yes
  56904. else
  56905. glibcxx_cv_func_hypotf_use=no
  56906. fi
  56907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56908. ac_ext=c
  56909. ac_cpp='$CPP $CPPFLAGS'
  56910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56913. fi
  56914. fi
  56915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  56916. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  56917. if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
  56918. for ac_func in hypotf
  56919. do :
  56920. ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
  56921. if test "x$ac_cv_func_hypotf" = xyes; then :
  56922. cat >>confdefs.h <<_ACEOF
  56923. #define HAVE_HYPOTF 1
  56924. _ACEOF
  56925. fi
  56926. done
  56927. else
  56928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotf declaration" >&5
  56929. $as_echo_n "checking for _hypotf declaration... " >&6; }
  56930. if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
  56931. if ${glibcxx_cv_func__hypotf_use+:} false; then :
  56932. $as_echo_n "(cached) " >&6
  56933. else
  56934. ac_ext=cpp
  56935. ac_cpp='$CXXCPP $CPPFLAGS'
  56936. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56937. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56938. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56940. /* end confdefs.h. */
  56941. #include <math.h>
  56942. int
  56943. main ()
  56944. {
  56945. _hypotf(0, 0);
  56946. ;
  56947. return 0;
  56948. }
  56949. _ACEOF
  56950. if ac_fn_cxx_try_compile "$LINENO"; then :
  56951. glibcxx_cv_func__hypotf_use=yes
  56952. else
  56953. glibcxx_cv_func__hypotf_use=no
  56954. fi
  56955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  56956. ac_ext=c
  56957. ac_cpp='$CPP $CPPFLAGS'
  56958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  56961. fi
  56962. fi
  56963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotf_use" >&5
  56964. $as_echo "$glibcxx_cv_func__hypotf_use" >&6; }
  56965. if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
  56966. for ac_func in _hypotf
  56967. do :
  56968. ac_fn_c_check_func "$LINENO" "_hypotf" "ac_cv_func__hypotf"
  56969. if test "x$ac_cv_func__hypotf" = xyes; then :
  56970. cat >>confdefs.h <<_ACEOF
  56971. #define HAVE__HYPOTF 1
  56972. _ACEOF
  56973. fi
  56974. done
  56975. fi
  56976. fi
  56977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  56978. $as_echo_n "checking for ldexpf declaration... " >&6; }
  56979. if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
  56980. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  56981. $as_echo_n "(cached) " >&6
  56982. else
  56983. ac_ext=cpp
  56984. ac_cpp='$CXXCPP $CPPFLAGS'
  56985. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  56986. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  56987. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  56988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  56989. /* end confdefs.h. */
  56990. #include <math.h>
  56991. int
  56992. main ()
  56993. {
  56994. ldexpf(0, 0);
  56995. ;
  56996. return 0;
  56997. }
  56998. _ACEOF
  56999. if ac_fn_cxx_try_compile "$LINENO"; then :
  57000. glibcxx_cv_func_ldexpf_use=yes
  57001. else
  57002. glibcxx_cv_func_ldexpf_use=no
  57003. fi
  57004. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57005. ac_ext=c
  57006. ac_cpp='$CPP $CPPFLAGS'
  57007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57010. fi
  57011. fi
  57012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  57013. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  57014. if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
  57015. for ac_func in ldexpf
  57016. do :
  57017. ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
  57018. if test "x$ac_cv_func_ldexpf" = xyes; then :
  57019. cat >>confdefs.h <<_ACEOF
  57020. #define HAVE_LDEXPF 1
  57021. _ACEOF
  57022. fi
  57023. done
  57024. else
  57025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpf declaration" >&5
  57026. $as_echo_n "checking for _ldexpf declaration... " >&6; }
  57027. if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
  57028. if ${glibcxx_cv_func__ldexpf_use+:} false; then :
  57029. $as_echo_n "(cached) " >&6
  57030. else
  57031. ac_ext=cpp
  57032. ac_cpp='$CXXCPP $CPPFLAGS'
  57033. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57034. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57035. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57037. /* end confdefs.h. */
  57038. #include <math.h>
  57039. int
  57040. main ()
  57041. {
  57042. _ldexpf(0, 0);
  57043. ;
  57044. return 0;
  57045. }
  57046. _ACEOF
  57047. if ac_fn_cxx_try_compile "$LINENO"; then :
  57048. glibcxx_cv_func__ldexpf_use=yes
  57049. else
  57050. glibcxx_cv_func__ldexpf_use=no
  57051. fi
  57052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57053. ac_ext=c
  57054. ac_cpp='$CPP $CPPFLAGS'
  57055. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57056. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57057. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57058. fi
  57059. fi
  57060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpf_use" >&5
  57061. $as_echo "$glibcxx_cv_func__ldexpf_use" >&6; }
  57062. if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
  57063. for ac_func in _ldexpf
  57064. do :
  57065. ac_fn_c_check_func "$LINENO" "_ldexpf" "ac_cv_func__ldexpf"
  57066. if test "x$ac_cv_func__ldexpf" = xyes; then :
  57067. cat >>confdefs.h <<_ACEOF
  57068. #define HAVE__LDEXPF 1
  57069. _ACEOF
  57070. fi
  57071. done
  57072. fi
  57073. fi
  57074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
  57075. $as_echo_n "checking for logf declaration... " >&6; }
  57076. if test x${glibcxx_cv_func_logf_use+set} != xset; then
  57077. if ${glibcxx_cv_func_logf_use+:} false; then :
  57078. $as_echo_n "(cached) " >&6
  57079. else
  57080. ac_ext=cpp
  57081. ac_cpp='$CXXCPP $CPPFLAGS'
  57082. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57083. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57084. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57086. /* end confdefs.h. */
  57087. #include <math.h>
  57088. #ifdef HAVE_IEEEFP_H
  57089. #include <ieeefp.h>
  57090. #endif
  57091. int
  57092. main ()
  57093. {
  57094. logf(0);
  57095. ;
  57096. return 0;
  57097. }
  57098. _ACEOF
  57099. if ac_fn_cxx_try_compile "$LINENO"; then :
  57100. glibcxx_cv_func_logf_use=yes
  57101. else
  57102. glibcxx_cv_func_logf_use=no
  57103. fi
  57104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57105. ac_ext=c
  57106. ac_cpp='$CPP $CPPFLAGS'
  57107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57110. fi
  57111. fi
  57112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
  57113. $as_echo "$glibcxx_cv_func_logf_use" >&6; }
  57114. if test x$glibcxx_cv_func_logf_use = x"yes"; then
  57115. for ac_func in logf
  57116. do :
  57117. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  57118. if test "x$ac_cv_func_logf" = xyes; then :
  57119. cat >>confdefs.h <<_ACEOF
  57120. #define HAVE_LOGF 1
  57121. _ACEOF
  57122. fi
  57123. done
  57124. else
  57125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logf declaration" >&5
  57126. $as_echo_n "checking for _logf declaration... " >&6; }
  57127. if test x${glibcxx_cv_func__logf_use+set} != xset; then
  57128. if ${glibcxx_cv_func__logf_use+:} false; then :
  57129. $as_echo_n "(cached) " >&6
  57130. else
  57131. ac_ext=cpp
  57132. ac_cpp='$CXXCPP $CPPFLAGS'
  57133. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57134. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57135. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57137. /* end confdefs.h. */
  57138. #include <math.h>
  57139. #ifdef HAVE_IEEEFP_H
  57140. #include <ieeefp.h>
  57141. #endif
  57142. int
  57143. main ()
  57144. {
  57145. _logf(0);
  57146. ;
  57147. return 0;
  57148. }
  57149. _ACEOF
  57150. if ac_fn_cxx_try_compile "$LINENO"; then :
  57151. glibcxx_cv_func__logf_use=yes
  57152. else
  57153. glibcxx_cv_func__logf_use=no
  57154. fi
  57155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57156. ac_ext=c
  57157. ac_cpp='$CPP $CPPFLAGS'
  57158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57161. fi
  57162. fi
  57163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logf_use" >&5
  57164. $as_echo "$glibcxx_cv_func__logf_use" >&6; }
  57165. if test x$glibcxx_cv_func__logf_use = x"yes"; then
  57166. for ac_func in _logf
  57167. do :
  57168. ac_fn_c_check_func "$LINENO" "_logf" "ac_cv_func__logf"
  57169. if test "x$ac_cv_func__logf" = xyes; then :
  57170. cat >>confdefs.h <<_ACEOF
  57171. #define HAVE__LOGF 1
  57172. _ACEOF
  57173. fi
  57174. done
  57175. fi
  57176. fi
  57177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
  57178. $as_echo_n "checking for log10f declaration... " >&6; }
  57179. if test x${glibcxx_cv_func_log10f_use+set} != xset; then
  57180. if ${glibcxx_cv_func_log10f_use+:} false; then :
  57181. $as_echo_n "(cached) " >&6
  57182. else
  57183. ac_ext=cpp
  57184. ac_cpp='$CXXCPP $CPPFLAGS'
  57185. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57186. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57187. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57189. /* end confdefs.h. */
  57190. #include <math.h>
  57191. #ifdef HAVE_IEEEFP_H
  57192. #include <ieeefp.h>
  57193. #endif
  57194. int
  57195. main ()
  57196. {
  57197. log10f(0);
  57198. ;
  57199. return 0;
  57200. }
  57201. _ACEOF
  57202. if ac_fn_cxx_try_compile "$LINENO"; then :
  57203. glibcxx_cv_func_log10f_use=yes
  57204. else
  57205. glibcxx_cv_func_log10f_use=no
  57206. fi
  57207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57208. ac_ext=c
  57209. ac_cpp='$CPP $CPPFLAGS'
  57210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57213. fi
  57214. fi
  57215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
  57216. $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
  57217. if test x$glibcxx_cv_func_log10f_use = x"yes"; then
  57218. for ac_func in log10f
  57219. do :
  57220. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  57221. if test "x$ac_cv_func_log10f" = xyes; then :
  57222. cat >>confdefs.h <<_ACEOF
  57223. #define HAVE_LOG10F 1
  57224. _ACEOF
  57225. fi
  57226. done
  57227. else
  57228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10f declaration" >&5
  57229. $as_echo_n "checking for _log10f declaration... " >&6; }
  57230. if test x${glibcxx_cv_func__log10f_use+set} != xset; then
  57231. if ${glibcxx_cv_func__log10f_use+:} false; then :
  57232. $as_echo_n "(cached) " >&6
  57233. else
  57234. ac_ext=cpp
  57235. ac_cpp='$CXXCPP $CPPFLAGS'
  57236. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57237. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57240. /* end confdefs.h. */
  57241. #include <math.h>
  57242. #ifdef HAVE_IEEEFP_H
  57243. #include <ieeefp.h>
  57244. #endif
  57245. int
  57246. main ()
  57247. {
  57248. _log10f(0);
  57249. ;
  57250. return 0;
  57251. }
  57252. _ACEOF
  57253. if ac_fn_cxx_try_compile "$LINENO"; then :
  57254. glibcxx_cv_func__log10f_use=yes
  57255. else
  57256. glibcxx_cv_func__log10f_use=no
  57257. fi
  57258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57259. ac_ext=c
  57260. ac_cpp='$CPP $CPPFLAGS'
  57261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57264. fi
  57265. fi
  57266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10f_use" >&5
  57267. $as_echo "$glibcxx_cv_func__log10f_use" >&6; }
  57268. if test x$glibcxx_cv_func__log10f_use = x"yes"; then
  57269. for ac_func in _log10f
  57270. do :
  57271. ac_fn_c_check_func "$LINENO" "_log10f" "ac_cv_func__log10f"
  57272. if test "x$ac_cv_func__log10f" = xyes; then :
  57273. cat >>confdefs.h <<_ACEOF
  57274. #define HAVE__LOG10F 1
  57275. _ACEOF
  57276. fi
  57277. done
  57278. fi
  57279. fi
  57280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  57281. $as_echo_n "checking for modff declaration... " >&6; }
  57282. if test x${glibcxx_cv_func_modff_use+set} != xset; then
  57283. if ${glibcxx_cv_func_modff_use+:} false; then :
  57284. $as_echo_n "(cached) " >&6
  57285. else
  57286. ac_ext=cpp
  57287. ac_cpp='$CXXCPP $CPPFLAGS'
  57288. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57289. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57290. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57292. /* end confdefs.h. */
  57293. #include <math.h>
  57294. int
  57295. main ()
  57296. {
  57297. modff(0, 0);
  57298. ;
  57299. return 0;
  57300. }
  57301. _ACEOF
  57302. if ac_fn_cxx_try_compile "$LINENO"; then :
  57303. glibcxx_cv_func_modff_use=yes
  57304. else
  57305. glibcxx_cv_func_modff_use=no
  57306. fi
  57307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57308. ac_ext=c
  57309. ac_cpp='$CPP $CPPFLAGS'
  57310. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57311. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57312. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57313. fi
  57314. fi
  57315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  57316. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  57317. if test x$glibcxx_cv_func_modff_use = x"yes"; then
  57318. for ac_func in modff
  57319. do :
  57320. ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
  57321. if test "x$ac_cv_func_modff" = xyes; then :
  57322. cat >>confdefs.h <<_ACEOF
  57323. #define HAVE_MODFF 1
  57324. _ACEOF
  57325. fi
  57326. done
  57327. else
  57328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modff declaration" >&5
  57329. $as_echo_n "checking for _modff declaration... " >&6; }
  57330. if test x${glibcxx_cv_func__modff_use+set} != xset; then
  57331. if ${glibcxx_cv_func__modff_use+:} false; then :
  57332. $as_echo_n "(cached) " >&6
  57333. else
  57334. ac_ext=cpp
  57335. ac_cpp='$CXXCPP $CPPFLAGS'
  57336. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57337. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57338. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57340. /* end confdefs.h. */
  57341. #include <math.h>
  57342. int
  57343. main ()
  57344. {
  57345. _modff(0, 0);
  57346. ;
  57347. return 0;
  57348. }
  57349. _ACEOF
  57350. if ac_fn_cxx_try_compile "$LINENO"; then :
  57351. glibcxx_cv_func__modff_use=yes
  57352. else
  57353. glibcxx_cv_func__modff_use=no
  57354. fi
  57355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57356. ac_ext=c
  57357. ac_cpp='$CPP $CPPFLAGS'
  57358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57361. fi
  57362. fi
  57363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modff_use" >&5
  57364. $as_echo "$glibcxx_cv_func__modff_use" >&6; }
  57365. if test x$glibcxx_cv_func__modff_use = x"yes"; then
  57366. for ac_func in _modff
  57367. do :
  57368. ac_fn_c_check_func "$LINENO" "_modff" "ac_cv_func__modff"
  57369. if test "x$ac_cv_func__modff" = xyes; then :
  57370. cat >>confdefs.h <<_ACEOF
  57371. #define HAVE__MODFF 1
  57372. _ACEOF
  57373. fi
  57374. done
  57375. fi
  57376. fi
  57377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
  57378. $as_echo_n "checking for modf declaration... " >&6; }
  57379. if test x${glibcxx_cv_func_modf_use+set} != xset; then
  57380. if ${glibcxx_cv_func_modf_use+:} false; then :
  57381. $as_echo_n "(cached) " >&6
  57382. else
  57383. ac_ext=cpp
  57384. ac_cpp='$CXXCPP $CPPFLAGS'
  57385. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57386. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57387. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57389. /* end confdefs.h. */
  57390. #include <math.h>
  57391. int
  57392. main ()
  57393. {
  57394. modf(0, 0);
  57395. ;
  57396. return 0;
  57397. }
  57398. _ACEOF
  57399. if ac_fn_cxx_try_compile "$LINENO"; then :
  57400. glibcxx_cv_func_modf_use=yes
  57401. else
  57402. glibcxx_cv_func_modf_use=no
  57403. fi
  57404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57405. ac_ext=c
  57406. ac_cpp='$CPP $CPPFLAGS'
  57407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57410. fi
  57411. fi
  57412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
  57413. $as_echo "$glibcxx_cv_func_modf_use" >&6; }
  57414. if test x$glibcxx_cv_func_modf_use = x"yes"; then
  57415. for ac_func in modf
  57416. do :
  57417. ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
  57418. if test "x$ac_cv_func_modf" = xyes; then :
  57419. cat >>confdefs.h <<_ACEOF
  57420. #define HAVE_MODF 1
  57421. _ACEOF
  57422. fi
  57423. done
  57424. else
  57425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modf declaration" >&5
  57426. $as_echo_n "checking for _modf declaration... " >&6; }
  57427. if test x${glibcxx_cv_func__modf_use+set} != xset; then
  57428. if ${glibcxx_cv_func__modf_use+:} false; then :
  57429. $as_echo_n "(cached) " >&6
  57430. else
  57431. ac_ext=cpp
  57432. ac_cpp='$CXXCPP $CPPFLAGS'
  57433. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57434. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57435. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57437. /* end confdefs.h. */
  57438. #include <math.h>
  57439. int
  57440. main ()
  57441. {
  57442. _modf(0, 0);
  57443. ;
  57444. return 0;
  57445. }
  57446. _ACEOF
  57447. if ac_fn_cxx_try_compile "$LINENO"; then :
  57448. glibcxx_cv_func__modf_use=yes
  57449. else
  57450. glibcxx_cv_func__modf_use=no
  57451. fi
  57452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57453. ac_ext=c
  57454. ac_cpp='$CPP $CPPFLAGS'
  57455. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57456. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57457. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57458. fi
  57459. fi
  57460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modf_use" >&5
  57461. $as_echo "$glibcxx_cv_func__modf_use" >&6; }
  57462. if test x$glibcxx_cv_func__modf_use = x"yes"; then
  57463. for ac_func in _modf
  57464. do :
  57465. ac_fn_c_check_func "$LINENO" "_modf" "ac_cv_func__modf"
  57466. if test "x$ac_cv_func__modf" = xyes; then :
  57467. cat >>confdefs.h <<_ACEOF
  57468. #define HAVE__MODF 1
  57469. _ACEOF
  57470. fi
  57471. done
  57472. fi
  57473. fi
  57474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
  57475. $as_echo_n "checking for powf declaration... " >&6; }
  57476. if test x${glibcxx_cv_func_powf_use+set} != xset; then
  57477. if ${glibcxx_cv_func_powf_use+:} false; then :
  57478. $as_echo_n "(cached) " >&6
  57479. else
  57480. ac_ext=cpp
  57481. ac_cpp='$CXXCPP $CPPFLAGS'
  57482. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57483. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57484. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57486. /* end confdefs.h. */
  57487. #include <math.h>
  57488. int
  57489. main ()
  57490. {
  57491. powf(0, 0);
  57492. ;
  57493. return 0;
  57494. }
  57495. _ACEOF
  57496. if ac_fn_cxx_try_compile "$LINENO"; then :
  57497. glibcxx_cv_func_powf_use=yes
  57498. else
  57499. glibcxx_cv_func_powf_use=no
  57500. fi
  57501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57502. ac_ext=c
  57503. ac_cpp='$CPP $CPPFLAGS'
  57504. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57505. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57506. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57507. fi
  57508. fi
  57509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
  57510. $as_echo "$glibcxx_cv_func_powf_use" >&6; }
  57511. if test x$glibcxx_cv_func_powf_use = x"yes"; then
  57512. for ac_func in powf
  57513. do :
  57514. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  57515. if test "x$ac_cv_func_powf" = xyes; then :
  57516. cat >>confdefs.h <<_ACEOF
  57517. #define HAVE_POWF 1
  57518. _ACEOF
  57519. fi
  57520. done
  57521. else
  57522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powf declaration" >&5
  57523. $as_echo_n "checking for _powf declaration... " >&6; }
  57524. if test x${glibcxx_cv_func__powf_use+set} != xset; then
  57525. if ${glibcxx_cv_func__powf_use+:} false; then :
  57526. $as_echo_n "(cached) " >&6
  57527. else
  57528. ac_ext=cpp
  57529. ac_cpp='$CXXCPP $CPPFLAGS'
  57530. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57531. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57532. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57534. /* end confdefs.h. */
  57535. #include <math.h>
  57536. int
  57537. main ()
  57538. {
  57539. _powf(0, 0);
  57540. ;
  57541. return 0;
  57542. }
  57543. _ACEOF
  57544. if ac_fn_cxx_try_compile "$LINENO"; then :
  57545. glibcxx_cv_func__powf_use=yes
  57546. else
  57547. glibcxx_cv_func__powf_use=no
  57548. fi
  57549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57550. ac_ext=c
  57551. ac_cpp='$CPP $CPPFLAGS'
  57552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57555. fi
  57556. fi
  57557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powf_use" >&5
  57558. $as_echo "$glibcxx_cv_func__powf_use" >&6; }
  57559. if test x$glibcxx_cv_func__powf_use = x"yes"; then
  57560. for ac_func in _powf
  57561. do :
  57562. ac_fn_c_check_func "$LINENO" "_powf" "ac_cv_func__powf"
  57563. if test "x$ac_cv_func__powf" = xyes; then :
  57564. cat >>confdefs.h <<_ACEOF
  57565. #define HAVE__POWF 1
  57566. _ACEOF
  57567. fi
  57568. done
  57569. fi
  57570. fi
  57571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
  57572. $as_echo_n "checking for sqrtf declaration... " >&6; }
  57573. if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
  57574. if ${glibcxx_cv_func_sqrtf_use+:} false; then :
  57575. $as_echo_n "(cached) " >&6
  57576. else
  57577. ac_ext=cpp
  57578. ac_cpp='$CXXCPP $CPPFLAGS'
  57579. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57580. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57581. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57583. /* end confdefs.h. */
  57584. #include <math.h>
  57585. #ifdef HAVE_IEEEFP_H
  57586. #include <ieeefp.h>
  57587. #endif
  57588. int
  57589. main ()
  57590. {
  57591. sqrtf(0);
  57592. ;
  57593. return 0;
  57594. }
  57595. _ACEOF
  57596. if ac_fn_cxx_try_compile "$LINENO"; then :
  57597. glibcxx_cv_func_sqrtf_use=yes
  57598. else
  57599. glibcxx_cv_func_sqrtf_use=no
  57600. fi
  57601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57602. ac_ext=c
  57603. ac_cpp='$CPP $CPPFLAGS'
  57604. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57605. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57606. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57607. fi
  57608. fi
  57609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
  57610. $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
  57611. if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
  57612. for ac_func in sqrtf
  57613. do :
  57614. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  57615. if test "x$ac_cv_func_sqrtf" = xyes; then :
  57616. cat >>confdefs.h <<_ACEOF
  57617. #define HAVE_SQRTF 1
  57618. _ACEOF
  57619. fi
  57620. done
  57621. else
  57622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtf declaration" >&5
  57623. $as_echo_n "checking for _sqrtf declaration... " >&6; }
  57624. if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
  57625. if ${glibcxx_cv_func__sqrtf_use+:} false; then :
  57626. $as_echo_n "(cached) " >&6
  57627. else
  57628. ac_ext=cpp
  57629. ac_cpp='$CXXCPP $CPPFLAGS'
  57630. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57631. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57632. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57634. /* end confdefs.h. */
  57635. #include <math.h>
  57636. #ifdef HAVE_IEEEFP_H
  57637. #include <ieeefp.h>
  57638. #endif
  57639. int
  57640. main ()
  57641. {
  57642. _sqrtf(0);
  57643. ;
  57644. return 0;
  57645. }
  57646. _ACEOF
  57647. if ac_fn_cxx_try_compile "$LINENO"; then :
  57648. glibcxx_cv_func__sqrtf_use=yes
  57649. else
  57650. glibcxx_cv_func__sqrtf_use=no
  57651. fi
  57652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57653. ac_ext=c
  57654. ac_cpp='$CPP $CPPFLAGS'
  57655. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57656. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57657. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57658. fi
  57659. fi
  57660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtf_use" >&5
  57661. $as_echo "$glibcxx_cv_func__sqrtf_use" >&6; }
  57662. if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
  57663. for ac_func in _sqrtf
  57664. do :
  57665. ac_fn_c_check_func "$LINENO" "_sqrtf" "ac_cv_func__sqrtf"
  57666. if test "x$ac_cv_func__sqrtf" = xyes; then :
  57667. cat >>confdefs.h <<_ACEOF
  57668. #define HAVE__SQRTF 1
  57669. _ACEOF
  57670. fi
  57671. done
  57672. fi
  57673. fi
  57674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
  57675. $as_echo_n "checking for sincosf declaration... " >&6; }
  57676. if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
  57677. if ${glibcxx_cv_func_sincosf_use+:} false; then :
  57678. $as_echo_n "(cached) " >&6
  57679. else
  57680. ac_ext=cpp
  57681. ac_cpp='$CXXCPP $CPPFLAGS'
  57682. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57683. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57684. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57686. /* end confdefs.h. */
  57687. #include <math.h>
  57688. int
  57689. main ()
  57690. {
  57691. sincosf(0, 0, 0);
  57692. ;
  57693. return 0;
  57694. }
  57695. _ACEOF
  57696. if ac_fn_cxx_try_compile "$LINENO"; then :
  57697. glibcxx_cv_func_sincosf_use=yes
  57698. else
  57699. glibcxx_cv_func_sincosf_use=no
  57700. fi
  57701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57702. ac_ext=c
  57703. ac_cpp='$CPP $CPPFLAGS'
  57704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57707. fi
  57708. fi
  57709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
  57710. $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
  57711. if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
  57712. for ac_func in sincosf
  57713. do :
  57714. ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
  57715. if test "x$ac_cv_func_sincosf" = xyes; then :
  57716. cat >>confdefs.h <<_ACEOF
  57717. #define HAVE_SINCOSF 1
  57718. _ACEOF
  57719. fi
  57720. done
  57721. else
  57722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosf declaration" >&5
  57723. $as_echo_n "checking for _sincosf declaration... " >&6; }
  57724. if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
  57725. if ${glibcxx_cv_func__sincosf_use+:} false; then :
  57726. $as_echo_n "(cached) " >&6
  57727. else
  57728. ac_ext=cpp
  57729. ac_cpp='$CXXCPP $CPPFLAGS'
  57730. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57731. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57732. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57734. /* end confdefs.h. */
  57735. #include <math.h>
  57736. int
  57737. main ()
  57738. {
  57739. _sincosf(0, 0, 0);
  57740. ;
  57741. return 0;
  57742. }
  57743. _ACEOF
  57744. if ac_fn_cxx_try_compile "$LINENO"; then :
  57745. glibcxx_cv_func__sincosf_use=yes
  57746. else
  57747. glibcxx_cv_func__sincosf_use=no
  57748. fi
  57749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57750. ac_ext=c
  57751. ac_cpp='$CPP $CPPFLAGS'
  57752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57755. fi
  57756. fi
  57757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosf_use" >&5
  57758. $as_echo "$glibcxx_cv_func__sincosf_use" >&6; }
  57759. if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
  57760. for ac_func in _sincosf
  57761. do :
  57762. ac_fn_c_check_func "$LINENO" "_sincosf" "ac_cv_func__sincosf"
  57763. if test "x$ac_cv_func__sincosf" = xyes; then :
  57764. cat >>confdefs.h <<_ACEOF
  57765. #define HAVE__SINCOSF 1
  57766. _ACEOF
  57767. fi
  57768. done
  57769. fi
  57770. fi
  57771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
  57772. $as_echo_n "checking for finitef declaration... " >&6; }
  57773. if test x${glibcxx_cv_func_finitef_use+set} != xset; then
  57774. if ${glibcxx_cv_func_finitef_use+:} false; then :
  57775. $as_echo_n "(cached) " >&6
  57776. else
  57777. ac_ext=cpp
  57778. ac_cpp='$CXXCPP $CPPFLAGS'
  57779. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57780. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57781. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57783. /* end confdefs.h. */
  57784. #include <math.h>
  57785. #ifdef HAVE_IEEEFP_H
  57786. #include <ieeefp.h>
  57787. #endif
  57788. int
  57789. main ()
  57790. {
  57791. finitef(0);
  57792. ;
  57793. return 0;
  57794. }
  57795. _ACEOF
  57796. if ac_fn_cxx_try_compile "$LINENO"; then :
  57797. glibcxx_cv_func_finitef_use=yes
  57798. else
  57799. glibcxx_cv_func_finitef_use=no
  57800. fi
  57801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57802. ac_ext=c
  57803. ac_cpp='$CPP $CPPFLAGS'
  57804. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57805. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57806. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57807. fi
  57808. fi
  57809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
  57810. $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
  57811. if test x$glibcxx_cv_func_finitef_use = x"yes"; then
  57812. for ac_func in finitef
  57813. do :
  57814. ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
  57815. if test "x$ac_cv_func_finitef" = xyes; then :
  57816. cat >>confdefs.h <<_ACEOF
  57817. #define HAVE_FINITEF 1
  57818. _ACEOF
  57819. fi
  57820. done
  57821. else
  57822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitef declaration" >&5
  57823. $as_echo_n "checking for _finitef declaration... " >&6; }
  57824. if test x${glibcxx_cv_func__finitef_use+set} != xset; then
  57825. if ${glibcxx_cv_func__finitef_use+:} false; then :
  57826. $as_echo_n "(cached) " >&6
  57827. else
  57828. ac_ext=cpp
  57829. ac_cpp='$CXXCPP $CPPFLAGS'
  57830. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57831. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57832. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57834. /* end confdefs.h. */
  57835. #include <math.h>
  57836. #ifdef HAVE_IEEEFP_H
  57837. #include <ieeefp.h>
  57838. #endif
  57839. int
  57840. main ()
  57841. {
  57842. _finitef(0);
  57843. ;
  57844. return 0;
  57845. }
  57846. _ACEOF
  57847. if ac_fn_cxx_try_compile "$LINENO"; then :
  57848. glibcxx_cv_func__finitef_use=yes
  57849. else
  57850. glibcxx_cv_func__finitef_use=no
  57851. fi
  57852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57853. ac_ext=c
  57854. ac_cpp='$CPP $CPPFLAGS'
  57855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57858. fi
  57859. fi
  57860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitef_use" >&5
  57861. $as_echo "$glibcxx_cv_func__finitef_use" >&6; }
  57862. if test x$glibcxx_cv_func__finitef_use = x"yes"; then
  57863. for ac_func in _finitef
  57864. do :
  57865. ac_fn_c_check_func "$LINENO" "_finitef" "ac_cv_func__finitef"
  57866. if test "x$ac_cv_func__finitef" = xyes; then :
  57867. cat >>confdefs.h <<_ACEOF
  57868. #define HAVE__FINITEF 1
  57869. _ACEOF
  57870. fi
  57871. done
  57872. fi
  57873. fi
  57874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
  57875. $as_echo_n "checking for long double trig functions... " >&6; }
  57876. if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
  57877. $as_echo_n "(cached) " >&6
  57878. else
  57879. ac_ext=cpp
  57880. ac_cpp='$CXXCPP $CPPFLAGS'
  57881. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57882. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57883. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57885. /* end confdefs.h. */
  57886. #include <math.h>
  57887. int
  57888. main ()
  57889. {
  57890. acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
  57891. ;
  57892. return 0;
  57893. }
  57894. _ACEOF
  57895. if ac_fn_cxx_try_compile "$LINENO"; then :
  57896. glibcxx_cv_func_long_double_trig_use=yes
  57897. else
  57898. glibcxx_cv_func_long_double_trig_use=no
  57899. fi
  57900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57901. ac_ext=c
  57902. ac_cpp='$CPP $CPPFLAGS'
  57903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57906. fi
  57907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
  57908. $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
  57909. if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
  57910. for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
  57911. do :
  57912. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  57913. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  57914. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  57915. cat >>confdefs.h <<_ACEOF
  57916. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  57917. _ACEOF
  57918. fi
  57919. done
  57920. else
  57921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double trig functions" >&5
  57922. $as_echo_n "checking for _long double trig functions... " >&6; }
  57923. if ${glibcxx_cv_func__long_double_trig_use+:} false; then :
  57924. $as_echo_n "(cached) " >&6
  57925. else
  57926. ac_ext=cpp
  57927. ac_cpp='$CXXCPP $CPPFLAGS'
  57928. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57929. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57930. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57932. /* end confdefs.h. */
  57933. #include <math.h>
  57934. int
  57935. main ()
  57936. {
  57937. _acosl (0); _asinl (0); _atanl (0); _cosl (0); _sinl (0); _tanl (0); _coshl (0); _sinhl (0); _tanhl (0);
  57938. ;
  57939. return 0;
  57940. }
  57941. _ACEOF
  57942. if ac_fn_cxx_try_compile "$LINENO"; then :
  57943. glibcxx_cv_func__long_double_trig_use=yes
  57944. else
  57945. glibcxx_cv_func__long_double_trig_use=no
  57946. fi
  57947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57948. ac_ext=c
  57949. ac_cpp='$CPP $CPPFLAGS'
  57950. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57951. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57952. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  57953. fi
  57954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_trig_use" >&5
  57955. $as_echo "$glibcxx_cv_func__long_double_trig_use" >&6; }
  57956. if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
  57957. for ac_func in _acosl _asinl _atanl _cosl _sinl _tanl _coshl _sinhl _tanhl
  57958. do :
  57959. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  57960. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  57961. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  57962. cat >>confdefs.h <<_ACEOF
  57963. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  57964. _ACEOF
  57965. fi
  57966. done
  57967. fi
  57968. fi
  57969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
  57970. $as_echo_n "checking for long double round functions... " >&6; }
  57971. if ${glibcxx_cv_func_long_double_round_use+:} false; then :
  57972. $as_echo_n "(cached) " >&6
  57973. else
  57974. ac_ext=cpp
  57975. ac_cpp='$CXXCPP $CPPFLAGS'
  57976. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57977. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  57978. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  57979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  57980. /* end confdefs.h. */
  57981. #include <math.h>
  57982. int
  57983. main ()
  57984. {
  57985. ceill (0); floorl (0);
  57986. ;
  57987. return 0;
  57988. }
  57989. _ACEOF
  57990. if ac_fn_cxx_try_compile "$LINENO"; then :
  57991. glibcxx_cv_func_long_double_round_use=yes
  57992. else
  57993. glibcxx_cv_func_long_double_round_use=no
  57994. fi
  57995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  57996. ac_ext=c
  57997. ac_cpp='$CPP $CPPFLAGS'
  57998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  57999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58001. fi
  58002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
  58003. $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
  58004. if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
  58005. for ac_func in ceill floorl
  58006. do :
  58007. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  58008. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  58009. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  58010. cat >>confdefs.h <<_ACEOF
  58011. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  58012. _ACEOF
  58013. fi
  58014. done
  58015. else
  58016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _long double round functions" >&5
  58017. $as_echo_n "checking for _long double round functions... " >&6; }
  58018. if ${glibcxx_cv_func__long_double_round_use+:} false; then :
  58019. $as_echo_n "(cached) " >&6
  58020. else
  58021. ac_ext=cpp
  58022. ac_cpp='$CXXCPP $CPPFLAGS'
  58023. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58024. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58025. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58027. /* end confdefs.h. */
  58028. #include <math.h>
  58029. int
  58030. main ()
  58031. {
  58032. _ceill (0); _floorl (0);
  58033. ;
  58034. return 0;
  58035. }
  58036. _ACEOF
  58037. if ac_fn_cxx_try_compile "$LINENO"; then :
  58038. glibcxx_cv_func__long_double_round_use=yes
  58039. else
  58040. glibcxx_cv_func__long_double_round_use=no
  58041. fi
  58042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58043. ac_ext=c
  58044. ac_cpp='$CPP $CPPFLAGS'
  58045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58048. fi
  58049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__long_double_round_use" >&5
  58050. $as_echo "$glibcxx_cv_func__long_double_round_use" >&6; }
  58051. if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
  58052. for ac_func in _ceill _floorl
  58053. do :
  58054. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  58055. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  58056. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  58057. cat >>confdefs.h <<_ACEOF
  58058. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  58059. _ACEOF
  58060. fi
  58061. done
  58062. fi
  58063. fi
  58064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
  58065. $as_echo_n "checking for isnanl declaration... " >&6; }
  58066. if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
  58067. if ${glibcxx_cv_func_isnanl_use+:} false; then :
  58068. $as_echo_n "(cached) " >&6
  58069. else
  58070. ac_ext=cpp
  58071. ac_cpp='$CXXCPP $CPPFLAGS'
  58072. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58073. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58074. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58076. /* end confdefs.h. */
  58077. #include <math.h>
  58078. #ifdef HAVE_IEEEFP_H
  58079. #include <ieeefp.h>
  58080. #endif
  58081. int
  58082. main ()
  58083. {
  58084. isnanl(0);
  58085. ;
  58086. return 0;
  58087. }
  58088. _ACEOF
  58089. if ac_fn_cxx_try_compile "$LINENO"; then :
  58090. glibcxx_cv_func_isnanl_use=yes
  58091. else
  58092. glibcxx_cv_func_isnanl_use=no
  58093. fi
  58094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58095. ac_ext=c
  58096. ac_cpp='$CPP $CPPFLAGS'
  58097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58100. fi
  58101. fi
  58102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
  58103. $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
  58104. if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
  58105. for ac_func in isnanl
  58106. do :
  58107. ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
  58108. if test "x$ac_cv_func_isnanl" = xyes; then :
  58109. cat >>confdefs.h <<_ACEOF
  58110. #define HAVE_ISNANL 1
  58111. _ACEOF
  58112. fi
  58113. done
  58114. else
  58115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isnanl declaration" >&5
  58116. $as_echo_n "checking for _isnanl declaration... " >&6; }
  58117. if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
  58118. if ${glibcxx_cv_func__isnanl_use+:} false; then :
  58119. $as_echo_n "(cached) " >&6
  58120. else
  58121. ac_ext=cpp
  58122. ac_cpp='$CXXCPP $CPPFLAGS'
  58123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58127. /* end confdefs.h. */
  58128. #include <math.h>
  58129. #ifdef HAVE_IEEEFP_H
  58130. #include <ieeefp.h>
  58131. #endif
  58132. int
  58133. main ()
  58134. {
  58135. _isnanl(0);
  58136. ;
  58137. return 0;
  58138. }
  58139. _ACEOF
  58140. if ac_fn_cxx_try_compile "$LINENO"; then :
  58141. glibcxx_cv_func__isnanl_use=yes
  58142. else
  58143. glibcxx_cv_func__isnanl_use=no
  58144. fi
  58145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58146. ac_ext=c
  58147. ac_cpp='$CPP $CPPFLAGS'
  58148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58151. fi
  58152. fi
  58153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isnanl_use" >&5
  58154. $as_echo "$glibcxx_cv_func__isnanl_use" >&6; }
  58155. if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
  58156. for ac_func in _isnanl
  58157. do :
  58158. ac_fn_c_check_func "$LINENO" "_isnanl" "ac_cv_func__isnanl"
  58159. if test "x$ac_cv_func__isnanl" = xyes; then :
  58160. cat >>confdefs.h <<_ACEOF
  58161. #define HAVE__ISNANL 1
  58162. _ACEOF
  58163. fi
  58164. done
  58165. fi
  58166. fi
  58167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
  58168. $as_echo_n "checking for isinfl declaration... " >&6; }
  58169. if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
  58170. if ${glibcxx_cv_func_isinfl_use+:} false; then :
  58171. $as_echo_n "(cached) " >&6
  58172. else
  58173. ac_ext=cpp
  58174. ac_cpp='$CXXCPP $CPPFLAGS'
  58175. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58176. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58177. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58179. /* end confdefs.h. */
  58180. #include <math.h>
  58181. #ifdef HAVE_IEEEFP_H
  58182. #include <ieeefp.h>
  58183. #endif
  58184. int
  58185. main ()
  58186. {
  58187. isinfl(0);
  58188. ;
  58189. return 0;
  58190. }
  58191. _ACEOF
  58192. if ac_fn_cxx_try_compile "$LINENO"; then :
  58193. glibcxx_cv_func_isinfl_use=yes
  58194. else
  58195. glibcxx_cv_func_isinfl_use=no
  58196. fi
  58197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58198. ac_ext=c
  58199. ac_cpp='$CPP $CPPFLAGS'
  58200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58203. fi
  58204. fi
  58205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
  58206. $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
  58207. if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
  58208. for ac_func in isinfl
  58209. do :
  58210. ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
  58211. if test "x$ac_cv_func_isinfl" = xyes; then :
  58212. cat >>confdefs.h <<_ACEOF
  58213. #define HAVE_ISINFL 1
  58214. _ACEOF
  58215. fi
  58216. done
  58217. else
  58218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _isinfl declaration" >&5
  58219. $as_echo_n "checking for _isinfl declaration... " >&6; }
  58220. if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
  58221. if ${glibcxx_cv_func__isinfl_use+:} false; then :
  58222. $as_echo_n "(cached) " >&6
  58223. else
  58224. ac_ext=cpp
  58225. ac_cpp='$CXXCPP $CPPFLAGS'
  58226. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58227. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58228. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58230. /* end confdefs.h. */
  58231. #include <math.h>
  58232. #ifdef HAVE_IEEEFP_H
  58233. #include <ieeefp.h>
  58234. #endif
  58235. int
  58236. main ()
  58237. {
  58238. _isinfl(0);
  58239. ;
  58240. return 0;
  58241. }
  58242. _ACEOF
  58243. if ac_fn_cxx_try_compile "$LINENO"; then :
  58244. glibcxx_cv_func__isinfl_use=yes
  58245. else
  58246. glibcxx_cv_func__isinfl_use=no
  58247. fi
  58248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58249. ac_ext=c
  58250. ac_cpp='$CPP $CPPFLAGS'
  58251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58254. fi
  58255. fi
  58256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__isinfl_use" >&5
  58257. $as_echo "$glibcxx_cv_func__isinfl_use" >&6; }
  58258. if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
  58259. for ac_func in _isinfl
  58260. do :
  58261. ac_fn_c_check_func "$LINENO" "_isinfl" "ac_cv_func__isinfl"
  58262. if test "x$ac_cv_func__isinfl" = xyes; then :
  58263. cat >>confdefs.h <<_ACEOF
  58264. #define HAVE__ISINFL 1
  58265. _ACEOF
  58266. fi
  58267. done
  58268. fi
  58269. fi
  58270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  58271. $as_echo_n "checking for atan2l declaration... " >&6; }
  58272. if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
  58273. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  58274. $as_echo_n "(cached) " >&6
  58275. else
  58276. ac_ext=cpp
  58277. ac_cpp='$CXXCPP $CPPFLAGS'
  58278. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58279. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58280. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58282. /* end confdefs.h. */
  58283. #include <math.h>
  58284. int
  58285. main ()
  58286. {
  58287. atan2l(0, 0);
  58288. ;
  58289. return 0;
  58290. }
  58291. _ACEOF
  58292. if ac_fn_cxx_try_compile "$LINENO"; then :
  58293. glibcxx_cv_func_atan2l_use=yes
  58294. else
  58295. glibcxx_cv_func_atan2l_use=no
  58296. fi
  58297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58298. ac_ext=c
  58299. ac_cpp='$CPP $CPPFLAGS'
  58300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58303. fi
  58304. fi
  58305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  58306. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  58307. if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
  58308. for ac_func in atan2l
  58309. do :
  58310. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  58311. if test "x$ac_cv_func_atan2l" = xyes; then :
  58312. cat >>confdefs.h <<_ACEOF
  58313. #define HAVE_ATAN2L 1
  58314. _ACEOF
  58315. fi
  58316. done
  58317. else
  58318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _atan2l declaration" >&5
  58319. $as_echo_n "checking for _atan2l declaration... " >&6; }
  58320. if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
  58321. if ${glibcxx_cv_func__atan2l_use+:} false; then :
  58322. $as_echo_n "(cached) " >&6
  58323. else
  58324. ac_ext=cpp
  58325. ac_cpp='$CXXCPP $CPPFLAGS'
  58326. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58327. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58328. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58330. /* end confdefs.h. */
  58331. #include <math.h>
  58332. int
  58333. main ()
  58334. {
  58335. _atan2l(0, 0);
  58336. ;
  58337. return 0;
  58338. }
  58339. _ACEOF
  58340. if ac_fn_cxx_try_compile "$LINENO"; then :
  58341. glibcxx_cv_func__atan2l_use=yes
  58342. else
  58343. glibcxx_cv_func__atan2l_use=no
  58344. fi
  58345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58346. ac_ext=c
  58347. ac_cpp='$CPP $CPPFLAGS'
  58348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58351. fi
  58352. fi
  58353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__atan2l_use" >&5
  58354. $as_echo "$glibcxx_cv_func__atan2l_use" >&6; }
  58355. if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
  58356. for ac_func in _atan2l
  58357. do :
  58358. ac_fn_c_check_func "$LINENO" "_atan2l" "ac_cv_func__atan2l"
  58359. if test "x$ac_cv_func__atan2l" = xyes; then :
  58360. cat >>confdefs.h <<_ACEOF
  58361. #define HAVE__ATAN2L 1
  58362. _ACEOF
  58363. fi
  58364. done
  58365. fi
  58366. fi
  58367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  58368. $as_echo_n "checking for expl declaration... " >&6; }
  58369. if test x${glibcxx_cv_func_expl_use+set} != xset; then
  58370. if ${glibcxx_cv_func_expl_use+:} false; then :
  58371. $as_echo_n "(cached) " >&6
  58372. else
  58373. ac_ext=cpp
  58374. ac_cpp='$CXXCPP $CPPFLAGS'
  58375. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58376. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58377. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58379. /* end confdefs.h. */
  58380. #include <math.h>
  58381. #ifdef HAVE_IEEEFP_H
  58382. #include <ieeefp.h>
  58383. #endif
  58384. int
  58385. main ()
  58386. {
  58387. expl(0);
  58388. ;
  58389. return 0;
  58390. }
  58391. _ACEOF
  58392. if ac_fn_cxx_try_compile "$LINENO"; then :
  58393. glibcxx_cv_func_expl_use=yes
  58394. else
  58395. glibcxx_cv_func_expl_use=no
  58396. fi
  58397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58398. ac_ext=c
  58399. ac_cpp='$CPP $CPPFLAGS'
  58400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58403. fi
  58404. fi
  58405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  58406. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  58407. if test x$glibcxx_cv_func_expl_use = x"yes"; then
  58408. for ac_func in expl
  58409. do :
  58410. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  58411. if test "x$ac_cv_func_expl" = xyes; then :
  58412. cat >>confdefs.h <<_ACEOF
  58413. #define HAVE_EXPL 1
  58414. _ACEOF
  58415. fi
  58416. done
  58417. else
  58418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _expl declaration" >&5
  58419. $as_echo_n "checking for _expl declaration... " >&6; }
  58420. if test x${glibcxx_cv_func__expl_use+set} != xset; then
  58421. if ${glibcxx_cv_func__expl_use+:} false; then :
  58422. $as_echo_n "(cached) " >&6
  58423. else
  58424. ac_ext=cpp
  58425. ac_cpp='$CXXCPP $CPPFLAGS'
  58426. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58427. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58428. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58430. /* end confdefs.h. */
  58431. #include <math.h>
  58432. #ifdef HAVE_IEEEFP_H
  58433. #include <ieeefp.h>
  58434. #endif
  58435. int
  58436. main ()
  58437. {
  58438. _expl(0);
  58439. ;
  58440. return 0;
  58441. }
  58442. _ACEOF
  58443. if ac_fn_cxx_try_compile "$LINENO"; then :
  58444. glibcxx_cv_func__expl_use=yes
  58445. else
  58446. glibcxx_cv_func__expl_use=no
  58447. fi
  58448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58449. ac_ext=c
  58450. ac_cpp='$CPP $CPPFLAGS'
  58451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58454. fi
  58455. fi
  58456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__expl_use" >&5
  58457. $as_echo "$glibcxx_cv_func__expl_use" >&6; }
  58458. if test x$glibcxx_cv_func__expl_use = x"yes"; then
  58459. for ac_func in _expl
  58460. do :
  58461. ac_fn_c_check_func "$LINENO" "_expl" "ac_cv_func__expl"
  58462. if test "x$ac_cv_func__expl" = xyes; then :
  58463. cat >>confdefs.h <<_ACEOF
  58464. #define HAVE__EXPL 1
  58465. _ACEOF
  58466. fi
  58467. done
  58468. fi
  58469. fi
  58470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  58471. $as_echo_n "checking for fabsl declaration... " >&6; }
  58472. if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
  58473. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  58474. $as_echo_n "(cached) " >&6
  58475. else
  58476. ac_ext=cpp
  58477. ac_cpp='$CXXCPP $CPPFLAGS'
  58478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58482. /* end confdefs.h. */
  58483. #include <math.h>
  58484. #ifdef HAVE_IEEEFP_H
  58485. #include <ieeefp.h>
  58486. #endif
  58487. int
  58488. main ()
  58489. {
  58490. fabsl(0);
  58491. ;
  58492. return 0;
  58493. }
  58494. _ACEOF
  58495. if ac_fn_cxx_try_compile "$LINENO"; then :
  58496. glibcxx_cv_func_fabsl_use=yes
  58497. else
  58498. glibcxx_cv_func_fabsl_use=no
  58499. fi
  58500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58501. ac_ext=c
  58502. ac_cpp='$CPP $CPPFLAGS'
  58503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58506. fi
  58507. fi
  58508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  58509. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  58510. if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
  58511. for ac_func in fabsl
  58512. do :
  58513. ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
  58514. if test "x$ac_cv_func_fabsl" = xyes; then :
  58515. cat >>confdefs.h <<_ACEOF
  58516. #define HAVE_FABSL 1
  58517. _ACEOF
  58518. fi
  58519. done
  58520. else
  58521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fabsl declaration" >&5
  58522. $as_echo_n "checking for _fabsl declaration... " >&6; }
  58523. if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
  58524. if ${glibcxx_cv_func__fabsl_use+:} false; then :
  58525. $as_echo_n "(cached) " >&6
  58526. else
  58527. ac_ext=cpp
  58528. ac_cpp='$CXXCPP $CPPFLAGS'
  58529. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58530. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58531. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58533. /* end confdefs.h. */
  58534. #include <math.h>
  58535. #ifdef HAVE_IEEEFP_H
  58536. #include <ieeefp.h>
  58537. #endif
  58538. int
  58539. main ()
  58540. {
  58541. _fabsl(0);
  58542. ;
  58543. return 0;
  58544. }
  58545. _ACEOF
  58546. if ac_fn_cxx_try_compile "$LINENO"; then :
  58547. glibcxx_cv_func__fabsl_use=yes
  58548. else
  58549. glibcxx_cv_func__fabsl_use=no
  58550. fi
  58551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58552. ac_ext=c
  58553. ac_cpp='$CPP $CPPFLAGS'
  58554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58557. fi
  58558. fi
  58559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fabsl_use" >&5
  58560. $as_echo "$glibcxx_cv_func__fabsl_use" >&6; }
  58561. if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
  58562. for ac_func in _fabsl
  58563. do :
  58564. ac_fn_c_check_func "$LINENO" "_fabsl" "ac_cv_func__fabsl"
  58565. if test "x$ac_cv_func__fabsl" = xyes; then :
  58566. cat >>confdefs.h <<_ACEOF
  58567. #define HAVE__FABSL 1
  58568. _ACEOF
  58569. fi
  58570. done
  58571. fi
  58572. fi
  58573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  58574. $as_echo_n "checking for fmodl declaration... " >&6; }
  58575. if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
  58576. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  58577. $as_echo_n "(cached) " >&6
  58578. else
  58579. ac_ext=cpp
  58580. ac_cpp='$CXXCPP $CPPFLAGS'
  58581. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58582. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58583. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58585. /* end confdefs.h. */
  58586. #include <math.h>
  58587. int
  58588. main ()
  58589. {
  58590. fmodl(0, 0);
  58591. ;
  58592. return 0;
  58593. }
  58594. _ACEOF
  58595. if ac_fn_cxx_try_compile "$LINENO"; then :
  58596. glibcxx_cv_func_fmodl_use=yes
  58597. else
  58598. glibcxx_cv_func_fmodl_use=no
  58599. fi
  58600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58601. ac_ext=c
  58602. ac_cpp='$CPP $CPPFLAGS'
  58603. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58604. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58605. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58606. fi
  58607. fi
  58608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  58609. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  58610. if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
  58611. for ac_func in fmodl
  58612. do :
  58613. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  58614. if test "x$ac_cv_func_fmodl" = xyes; then :
  58615. cat >>confdefs.h <<_ACEOF
  58616. #define HAVE_FMODL 1
  58617. _ACEOF
  58618. fi
  58619. done
  58620. else
  58621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _fmodl declaration" >&5
  58622. $as_echo_n "checking for _fmodl declaration... " >&6; }
  58623. if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
  58624. if ${glibcxx_cv_func__fmodl_use+:} false; then :
  58625. $as_echo_n "(cached) " >&6
  58626. else
  58627. ac_ext=cpp
  58628. ac_cpp='$CXXCPP $CPPFLAGS'
  58629. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58630. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58631. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58633. /* end confdefs.h. */
  58634. #include <math.h>
  58635. int
  58636. main ()
  58637. {
  58638. _fmodl(0, 0);
  58639. ;
  58640. return 0;
  58641. }
  58642. _ACEOF
  58643. if ac_fn_cxx_try_compile "$LINENO"; then :
  58644. glibcxx_cv_func__fmodl_use=yes
  58645. else
  58646. glibcxx_cv_func__fmodl_use=no
  58647. fi
  58648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58649. ac_ext=c
  58650. ac_cpp='$CPP $CPPFLAGS'
  58651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58654. fi
  58655. fi
  58656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__fmodl_use" >&5
  58657. $as_echo "$glibcxx_cv_func__fmodl_use" >&6; }
  58658. if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
  58659. for ac_func in _fmodl
  58660. do :
  58661. ac_fn_c_check_func "$LINENO" "_fmodl" "ac_cv_func__fmodl"
  58662. if test "x$ac_cv_func__fmodl" = xyes; then :
  58663. cat >>confdefs.h <<_ACEOF
  58664. #define HAVE__FMODL 1
  58665. _ACEOF
  58666. fi
  58667. done
  58668. fi
  58669. fi
  58670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  58671. $as_echo_n "checking for frexpl declaration... " >&6; }
  58672. if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
  58673. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  58674. $as_echo_n "(cached) " >&6
  58675. else
  58676. ac_ext=cpp
  58677. ac_cpp='$CXXCPP $CPPFLAGS'
  58678. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58679. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58680. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58682. /* end confdefs.h. */
  58683. #include <math.h>
  58684. int
  58685. main ()
  58686. {
  58687. frexpl(0, 0);
  58688. ;
  58689. return 0;
  58690. }
  58691. _ACEOF
  58692. if ac_fn_cxx_try_compile "$LINENO"; then :
  58693. glibcxx_cv_func_frexpl_use=yes
  58694. else
  58695. glibcxx_cv_func_frexpl_use=no
  58696. fi
  58697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58698. ac_ext=c
  58699. ac_cpp='$CPP $CPPFLAGS'
  58700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58703. fi
  58704. fi
  58705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  58706. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  58707. if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
  58708. for ac_func in frexpl
  58709. do :
  58710. ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
  58711. if test "x$ac_cv_func_frexpl" = xyes; then :
  58712. cat >>confdefs.h <<_ACEOF
  58713. #define HAVE_FREXPL 1
  58714. _ACEOF
  58715. fi
  58716. done
  58717. else
  58718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _frexpl declaration" >&5
  58719. $as_echo_n "checking for _frexpl declaration... " >&6; }
  58720. if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
  58721. if ${glibcxx_cv_func__frexpl_use+:} false; then :
  58722. $as_echo_n "(cached) " >&6
  58723. else
  58724. ac_ext=cpp
  58725. ac_cpp='$CXXCPP $CPPFLAGS'
  58726. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58727. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58728. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58730. /* end confdefs.h. */
  58731. #include <math.h>
  58732. int
  58733. main ()
  58734. {
  58735. _frexpl(0, 0);
  58736. ;
  58737. return 0;
  58738. }
  58739. _ACEOF
  58740. if ac_fn_cxx_try_compile "$LINENO"; then :
  58741. glibcxx_cv_func__frexpl_use=yes
  58742. else
  58743. glibcxx_cv_func__frexpl_use=no
  58744. fi
  58745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58746. ac_ext=c
  58747. ac_cpp='$CPP $CPPFLAGS'
  58748. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58749. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58750. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58751. fi
  58752. fi
  58753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__frexpl_use" >&5
  58754. $as_echo "$glibcxx_cv_func__frexpl_use" >&6; }
  58755. if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
  58756. for ac_func in _frexpl
  58757. do :
  58758. ac_fn_c_check_func "$LINENO" "_frexpl" "ac_cv_func__frexpl"
  58759. if test "x$ac_cv_func__frexpl" = xyes; then :
  58760. cat >>confdefs.h <<_ACEOF
  58761. #define HAVE__FREXPL 1
  58762. _ACEOF
  58763. fi
  58764. done
  58765. fi
  58766. fi
  58767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  58768. $as_echo_n "checking for hypotl declaration... " >&6; }
  58769. if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
  58770. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  58771. $as_echo_n "(cached) " >&6
  58772. else
  58773. ac_ext=cpp
  58774. ac_cpp='$CXXCPP $CPPFLAGS'
  58775. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58776. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58777. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58779. /* end confdefs.h. */
  58780. #include <math.h>
  58781. int
  58782. main ()
  58783. {
  58784. hypotl(0, 0);
  58785. ;
  58786. return 0;
  58787. }
  58788. _ACEOF
  58789. if ac_fn_cxx_try_compile "$LINENO"; then :
  58790. glibcxx_cv_func_hypotl_use=yes
  58791. else
  58792. glibcxx_cv_func_hypotl_use=no
  58793. fi
  58794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58795. ac_ext=c
  58796. ac_cpp='$CPP $CPPFLAGS'
  58797. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58798. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58799. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58800. fi
  58801. fi
  58802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  58803. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  58804. if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
  58805. for ac_func in hypotl
  58806. do :
  58807. ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
  58808. if test "x$ac_cv_func_hypotl" = xyes; then :
  58809. cat >>confdefs.h <<_ACEOF
  58810. #define HAVE_HYPOTL 1
  58811. _ACEOF
  58812. fi
  58813. done
  58814. else
  58815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _hypotl declaration" >&5
  58816. $as_echo_n "checking for _hypotl declaration... " >&6; }
  58817. if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
  58818. if ${glibcxx_cv_func__hypotl_use+:} false; then :
  58819. $as_echo_n "(cached) " >&6
  58820. else
  58821. ac_ext=cpp
  58822. ac_cpp='$CXXCPP $CPPFLAGS'
  58823. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58824. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58825. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58827. /* end confdefs.h. */
  58828. #include <math.h>
  58829. int
  58830. main ()
  58831. {
  58832. _hypotl(0, 0);
  58833. ;
  58834. return 0;
  58835. }
  58836. _ACEOF
  58837. if ac_fn_cxx_try_compile "$LINENO"; then :
  58838. glibcxx_cv_func__hypotl_use=yes
  58839. else
  58840. glibcxx_cv_func__hypotl_use=no
  58841. fi
  58842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58843. ac_ext=c
  58844. ac_cpp='$CPP $CPPFLAGS'
  58845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58848. fi
  58849. fi
  58850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__hypotl_use" >&5
  58851. $as_echo "$glibcxx_cv_func__hypotl_use" >&6; }
  58852. if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
  58853. for ac_func in _hypotl
  58854. do :
  58855. ac_fn_c_check_func "$LINENO" "_hypotl" "ac_cv_func__hypotl"
  58856. if test "x$ac_cv_func__hypotl" = xyes; then :
  58857. cat >>confdefs.h <<_ACEOF
  58858. #define HAVE__HYPOTL 1
  58859. _ACEOF
  58860. fi
  58861. done
  58862. fi
  58863. fi
  58864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  58865. $as_echo_n "checking for ldexpl declaration... " >&6; }
  58866. if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
  58867. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  58868. $as_echo_n "(cached) " >&6
  58869. else
  58870. ac_ext=cpp
  58871. ac_cpp='$CXXCPP $CPPFLAGS'
  58872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58876. /* end confdefs.h. */
  58877. #include <math.h>
  58878. int
  58879. main ()
  58880. {
  58881. ldexpl(0, 0);
  58882. ;
  58883. return 0;
  58884. }
  58885. _ACEOF
  58886. if ac_fn_cxx_try_compile "$LINENO"; then :
  58887. glibcxx_cv_func_ldexpl_use=yes
  58888. else
  58889. glibcxx_cv_func_ldexpl_use=no
  58890. fi
  58891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58892. ac_ext=c
  58893. ac_cpp='$CPP $CPPFLAGS'
  58894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58897. fi
  58898. fi
  58899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  58900. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  58901. if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
  58902. for ac_func in ldexpl
  58903. do :
  58904. ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
  58905. if test "x$ac_cv_func_ldexpl" = xyes; then :
  58906. cat >>confdefs.h <<_ACEOF
  58907. #define HAVE_LDEXPL 1
  58908. _ACEOF
  58909. fi
  58910. done
  58911. else
  58912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ldexpl declaration" >&5
  58913. $as_echo_n "checking for _ldexpl declaration... " >&6; }
  58914. if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
  58915. if ${glibcxx_cv_func__ldexpl_use+:} false; then :
  58916. $as_echo_n "(cached) " >&6
  58917. else
  58918. ac_ext=cpp
  58919. ac_cpp='$CXXCPP $CPPFLAGS'
  58920. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58921. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58922. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58924. /* end confdefs.h. */
  58925. #include <math.h>
  58926. int
  58927. main ()
  58928. {
  58929. _ldexpl(0, 0);
  58930. ;
  58931. return 0;
  58932. }
  58933. _ACEOF
  58934. if ac_fn_cxx_try_compile "$LINENO"; then :
  58935. glibcxx_cv_func__ldexpl_use=yes
  58936. else
  58937. glibcxx_cv_func__ldexpl_use=no
  58938. fi
  58939. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58940. ac_ext=c
  58941. ac_cpp='$CPP $CPPFLAGS'
  58942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58945. fi
  58946. fi
  58947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__ldexpl_use" >&5
  58948. $as_echo "$glibcxx_cv_func__ldexpl_use" >&6; }
  58949. if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
  58950. for ac_func in _ldexpl
  58951. do :
  58952. ac_fn_c_check_func "$LINENO" "_ldexpl" "ac_cv_func__ldexpl"
  58953. if test "x$ac_cv_func__ldexpl" = xyes; then :
  58954. cat >>confdefs.h <<_ACEOF
  58955. #define HAVE__LDEXPL 1
  58956. _ACEOF
  58957. fi
  58958. done
  58959. fi
  58960. fi
  58961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  58962. $as_echo_n "checking for logl declaration... " >&6; }
  58963. if test x${glibcxx_cv_func_logl_use+set} != xset; then
  58964. if ${glibcxx_cv_func_logl_use+:} false; then :
  58965. $as_echo_n "(cached) " >&6
  58966. else
  58967. ac_ext=cpp
  58968. ac_cpp='$CXXCPP $CPPFLAGS'
  58969. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58970. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58971. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  58972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  58973. /* end confdefs.h. */
  58974. #include <math.h>
  58975. #ifdef HAVE_IEEEFP_H
  58976. #include <ieeefp.h>
  58977. #endif
  58978. int
  58979. main ()
  58980. {
  58981. logl(0);
  58982. ;
  58983. return 0;
  58984. }
  58985. _ACEOF
  58986. if ac_fn_cxx_try_compile "$LINENO"; then :
  58987. glibcxx_cv_func_logl_use=yes
  58988. else
  58989. glibcxx_cv_func_logl_use=no
  58990. fi
  58991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  58992. ac_ext=c
  58993. ac_cpp='$CPP $CPPFLAGS'
  58994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  58995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  58996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  58997. fi
  58998. fi
  58999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  59000. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  59001. if test x$glibcxx_cv_func_logl_use = x"yes"; then
  59002. for ac_func in logl
  59003. do :
  59004. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  59005. if test "x$ac_cv_func_logl" = xyes; then :
  59006. cat >>confdefs.h <<_ACEOF
  59007. #define HAVE_LOGL 1
  59008. _ACEOF
  59009. fi
  59010. done
  59011. else
  59012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _logl declaration" >&5
  59013. $as_echo_n "checking for _logl declaration... " >&6; }
  59014. if test x${glibcxx_cv_func__logl_use+set} != xset; then
  59015. if ${glibcxx_cv_func__logl_use+:} false; then :
  59016. $as_echo_n "(cached) " >&6
  59017. else
  59018. ac_ext=cpp
  59019. ac_cpp='$CXXCPP $CPPFLAGS'
  59020. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59021. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59022. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59024. /* end confdefs.h. */
  59025. #include <math.h>
  59026. #ifdef HAVE_IEEEFP_H
  59027. #include <ieeefp.h>
  59028. #endif
  59029. int
  59030. main ()
  59031. {
  59032. _logl(0);
  59033. ;
  59034. return 0;
  59035. }
  59036. _ACEOF
  59037. if ac_fn_cxx_try_compile "$LINENO"; then :
  59038. glibcxx_cv_func__logl_use=yes
  59039. else
  59040. glibcxx_cv_func__logl_use=no
  59041. fi
  59042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59043. ac_ext=c
  59044. ac_cpp='$CPP $CPPFLAGS'
  59045. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59046. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59047. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59048. fi
  59049. fi
  59050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__logl_use" >&5
  59051. $as_echo "$glibcxx_cv_func__logl_use" >&6; }
  59052. if test x$glibcxx_cv_func__logl_use = x"yes"; then
  59053. for ac_func in _logl
  59054. do :
  59055. ac_fn_c_check_func "$LINENO" "_logl" "ac_cv_func__logl"
  59056. if test "x$ac_cv_func__logl" = xyes; then :
  59057. cat >>confdefs.h <<_ACEOF
  59058. #define HAVE__LOGL 1
  59059. _ACEOF
  59060. fi
  59061. done
  59062. fi
  59063. fi
  59064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  59065. $as_echo_n "checking for log10l declaration... " >&6; }
  59066. if test x${glibcxx_cv_func_log10l_use+set} != xset; then
  59067. if ${glibcxx_cv_func_log10l_use+:} false; then :
  59068. $as_echo_n "(cached) " >&6
  59069. else
  59070. ac_ext=cpp
  59071. ac_cpp='$CXXCPP $CPPFLAGS'
  59072. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59073. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59074. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59076. /* end confdefs.h. */
  59077. #include <math.h>
  59078. #ifdef HAVE_IEEEFP_H
  59079. #include <ieeefp.h>
  59080. #endif
  59081. int
  59082. main ()
  59083. {
  59084. log10l(0);
  59085. ;
  59086. return 0;
  59087. }
  59088. _ACEOF
  59089. if ac_fn_cxx_try_compile "$LINENO"; then :
  59090. glibcxx_cv_func_log10l_use=yes
  59091. else
  59092. glibcxx_cv_func_log10l_use=no
  59093. fi
  59094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59095. ac_ext=c
  59096. ac_cpp='$CPP $CPPFLAGS'
  59097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59100. fi
  59101. fi
  59102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  59103. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  59104. if test x$glibcxx_cv_func_log10l_use = x"yes"; then
  59105. for ac_func in log10l
  59106. do :
  59107. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  59108. if test "x$ac_cv_func_log10l" = xyes; then :
  59109. cat >>confdefs.h <<_ACEOF
  59110. #define HAVE_LOG10L 1
  59111. _ACEOF
  59112. fi
  59113. done
  59114. else
  59115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _log10l declaration" >&5
  59116. $as_echo_n "checking for _log10l declaration... " >&6; }
  59117. if test x${glibcxx_cv_func__log10l_use+set} != xset; then
  59118. if ${glibcxx_cv_func__log10l_use+:} false; then :
  59119. $as_echo_n "(cached) " >&6
  59120. else
  59121. ac_ext=cpp
  59122. ac_cpp='$CXXCPP $CPPFLAGS'
  59123. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59124. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59125. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59127. /* end confdefs.h. */
  59128. #include <math.h>
  59129. #ifdef HAVE_IEEEFP_H
  59130. #include <ieeefp.h>
  59131. #endif
  59132. int
  59133. main ()
  59134. {
  59135. _log10l(0);
  59136. ;
  59137. return 0;
  59138. }
  59139. _ACEOF
  59140. if ac_fn_cxx_try_compile "$LINENO"; then :
  59141. glibcxx_cv_func__log10l_use=yes
  59142. else
  59143. glibcxx_cv_func__log10l_use=no
  59144. fi
  59145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59146. ac_ext=c
  59147. ac_cpp='$CPP $CPPFLAGS'
  59148. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59149. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59150. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59151. fi
  59152. fi
  59153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__log10l_use" >&5
  59154. $as_echo "$glibcxx_cv_func__log10l_use" >&6; }
  59155. if test x$glibcxx_cv_func__log10l_use = x"yes"; then
  59156. for ac_func in _log10l
  59157. do :
  59158. ac_fn_c_check_func "$LINENO" "_log10l" "ac_cv_func__log10l"
  59159. if test "x$ac_cv_func__log10l" = xyes; then :
  59160. cat >>confdefs.h <<_ACEOF
  59161. #define HAVE__LOG10L 1
  59162. _ACEOF
  59163. fi
  59164. done
  59165. fi
  59166. fi
  59167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  59168. $as_echo_n "checking for modfl declaration... " >&6; }
  59169. if test x${glibcxx_cv_func_modfl_use+set} != xset; then
  59170. if ${glibcxx_cv_func_modfl_use+:} false; then :
  59171. $as_echo_n "(cached) " >&6
  59172. else
  59173. ac_ext=cpp
  59174. ac_cpp='$CXXCPP $CPPFLAGS'
  59175. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59176. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59177. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59179. /* end confdefs.h. */
  59180. #include <math.h>
  59181. int
  59182. main ()
  59183. {
  59184. modfl(0, 0);
  59185. ;
  59186. return 0;
  59187. }
  59188. _ACEOF
  59189. if ac_fn_cxx_try_compile "$LINENO"; then :
  59190. glibcxx_cv_func_modfl_use=yes
  59191. else
  59192. glibcxx_cv_func_modfl_use=no
  59193. fi
  59194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59195. ac_ext=c
  59196. ac_cpp='$CPP $CPPFLAGS'
  59197. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59198. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59199. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59200. fi
  59201. fi
  59202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  59203. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  59204. if test x$glibcxx_cv_func_modfl_use = x"yes"; then
  59205. for ac_func in modfl
  59206. do :
  59207. ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
  59208. if test "x$ac_cv_func_modfl" = xyes; then :
  59209. cat >>confdefs.h <<_ACEOF
  59210. #define HAVE_MODFL 1
  59211. _ACEOF
  59212. fi
  59213. done
  59214. else
  59215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _modfl declaration" >&5
  59216. $as_echo_n "checking for _modfl declaration... " >&6; }
  59217. if test x${glibcxx_cv_func__modfl_use+set} != xset; then
  59218. if ${glibcxx_cv_func__modfl_use+:} false; then :
  59219. $as_echo_n "(cached) " >&6
  59220. else
  59221. ac_ext=cpp
  59222. ac_cpp='$CXXCPP $CPPFLAGS'
  59223. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59224. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59225. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59227. /* end confdefs.h. */
  59228. #include <math.h>
  59229. int
  59230. main ()
  59231. {
  59232. _modfl(0, 0);
  59233. ;
  59234. return 0;
  59235. }
  59236. _ACEOF
  59237. if ac_fn_cxx_try_compile "$LINENO"; then :
  59238. glibcxx_cv_func__modfl_use=yes
  59239. else
  59240. glibcxx_cv_func__modfl_use=no
  59241. fi
  59242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59243. ac_ext=c
  59244. ac_cpp='$CPP $CPPFLAGS'
  59245. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59246. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59247. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59248. fi
  59249. fi
  59250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__modfl_use" >&5
  59251. $as_echo "$glibcxx_cv_func__modfl_use" >&6; }
  59252. if test x$glibcxx_cv_func__modfl_use = x"yes"; then
  59253. for ac_func in _modfl
  59254. do :
  59255. ac_fn_c_check_func "$LINENO" "_modfl" "ac_cv_func__modfl"
  59256. if test "x$ac_cv_func__modfl" = xyes; then :
  59257. cat >>confdefs.h <<_ACEOF
  59258. #define HAVE__MODFL 1
  59259. _ACEOF
  59260. fi
  59261. done
  59262. fi
  59263. fi
  59264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  59265. $as_echo_n "checking for powl declaration... " >&6; }
  59266. if test x${glibcxx_cv_func_powl_use+set} != xset; then
  59267. if ${glibcxx_cv_func_powl_use+:} false; then :
  59268. $as_echo_n "(cached) " >&6
  59269. else
  59270. ac_ext=cpp
  59271. ac_cpp='$CXXCPP $CPPFLAGS'
  59272. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59273. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59274. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59276. /* end confdefs.h. */
  59277. #include <math.h>
  59278. int
  59279. main ()
  59280. {
  59281. powl(0, 0);
  59282. ;
  59283. return 0;
  59284. }
  59285. _ACEOF
  59286. if ac_fn_cxx_try_compile "$LINENO"; then :
  59287. glibcxx_cv_func_powl_use=yes
  59288. else
  59289. glibcxx_cv_func_powl_use=no
  59290. fi
  59291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59292. ac_ext=c
  59293. ac_cpp='$CPP $CPPFLAGS'
  59294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59297. fi
  59298. fi
  59299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  59300. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  59301. if test x$glibcxx_cv_func_powl_use = x"yes"; then
  59302. for ac_func in powl
  59303. do :
  59304. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  59305. if test "x$ac_cv_func_powl" = xyes; then :
  59306. cat >>confdefs.h <<_ACEOF
  59307. #define HAVE_POWL 1
  59308. _ACEOF
  59309. fi
  59310. done
  59311. else
  59312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _powl declaration" >&5
  59313. $as_echo_n "checking for _powl declaration... " >&6; }
  59314. if test x${glibcxx_cv_func__powl_use+set} != xset; then
  59315. if ${glibcxx_cv_func__powl_use+:} false; then :
  59316. $as_echo_n "(cached) " >&6
  59317. else
  59318. ac_ext=cpp
  59319. ac_cpp='$CXXCPP $CPPFLAGS'
  59320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59324. /* end confdefs.h. */
  59325. #include <math.h>
  59326. int
  59327. main ()
  59328. {
  59329. _powl(0, 0);
  59330. ;
  59331. return 0;
  59332. }
  59333. _ACEOF
  59334. if ac_fn_cxx_try_compile "$LINENO"; then :
  59335. glibcxx_cv_func__powl_use=yes
  59336. else
  59337. glibcxx_cv_func__powl_use=no
  59338. fi
  59339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59340. ac_ext=c
  59341. ac_cpp='$CPP $CPPFLAGS'
  59342. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59343. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59344. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59345. fi
  59346. fi
  59347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__powl_use" >&5
  59348. $as_echo "$glibcxx_cv_func__powl_use" >&6; }
  59349. if test x$glibcxx_cv_func__powl_use = x"yes"; then
  59350. for ac_func in _powl
  59351. do :
  59352. ac_fn_c_check_func "$LINENO" "_powl" "ac_cv_func__powl"
  59353. if test "x$ac_cv_func__powl" = xyes; then :
  59354. cat >>confdefs.h <<_ACEOF
  59355. #define HAVE__POWL 1
  59356. _ACEOF
  59357. fi
  59358. done
  59359. fi
  59360. fi
  59361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  59362. $as_echo_n "checking for sqrtl declaration... " >&6; }
  59363. if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
  59364. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  59365. $as_echo_n "(cached) " >&6
  59366. else
  59367. ac_ext=cpp
  59368. ac_cpp='$CXXCPP $CPPFLAGS'
  59369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59373. /* end confdefs.h. */
  59374. #include <math.h>
  59375. #ifdef HAVE_IEEEFP_H
  59376. #include <ieeefp.h>
  59377. #endif
  59378. int
  59379. main ()
  59380. {
  59381. sqrtl(0);
  59382. ;
  59383. return 0;
  59384. }
  59385. _ACEOF
  59386. if ac_fn_cxx_try_compile "$LINENO"; then :
  59387. glibcxx_cv_func_sqrtl_use=yes
  59388. else
  59389. glibcxx_cv_func_sqrtl_use=no
  59390. fi
  59391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59392. ac_ext=c
  59393. ac_cpp='$CPP $CPPFLAGS'
  59394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59397. fi
  59398. fi
  59399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  59400. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  59401. if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
  59402. for ac_func in sqrtl
  59403. do :
  59404. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  59405. if test "x$ac_cv_func_sqrtl" = xyes; then :
  59406. cat >>confdefs.h <<_ACEOF
  59407. #define HAVE_SQRTL 1
  59408. _ACEOF
  59409. fi
  59410. done
  59411. else
  59412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sqrtl declaration" >&5
  59413. $as_echo_n "checking for _sqrtl declaration... " >&6; }
  59414. if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
  59415. if ${glibcxx_cv_func__sqrtl_use+:} false; then :
  59416. $as_echo_n "(cached) " >&6
  59417. else
  59418. ac_ext=cpp
  59419. ac_cpp='$CXXCPP $CPPFLAGS'
  59420. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59421. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59422. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59424. /* end confdefs.h. */
  59425. #include <math.h>
  59426. #ifdef HAVE_IEEEFP_H
  59427. #include <ieeefp.h>
  59428. #endif
  59429. int
  59430. main ()
  59431. {
  59432. _sqrtl(0);
  59433. ;
  59434. return 0;
  59435. }
  59436. _ACEOF
  59437. if ac_fn_cxx_try_compile "$LINENO"; then :
  59438. glibcxx_cv_func__sqrtl_use=yes
  59439. else
  59440. glibcxx_cv_func__sqrtl_use=no
  59441. fi
  59442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59443. ac_ext=c
  59444. ac_cpp='$CPP $CPPFLAGS'
  59445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59448. fi
  59449. fi
  59450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sqrtl_use" >&5
  59451. $as_echo "$glibcxx_cv_func__sqrtl_use" >&6; }
  59452. if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
  59453. for ac_func in _sqrtl
  59454. do :
  59455. ac_fn_c_check_func "$LINENO" "_sqrtl" "ac_cv_func__sqrtl"
  59456. if test "x$ac_cv_func__sqrtl" = xyes; then :
  59457. cat >>confdefs.h <<_ACEOF
  59458. #define HAVE__SQRTL 1
  59459. _ACEOF
  59460. fi
  59461. done
  59462. fi
  59463. fi
  59464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
  59465. $as_echo_n "checking for sincosl declaration... " >&6; }
  59466. if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
  59467. if ${glibcxx_cv_func_sincosl_use+:} false; then :
  59468. $as_echo_n "(cached) " >&6
  59469. else
  59470. ac_ext=cpp
  59471. ac_cpp='$CXXCPP $CPPFLAGS'
  59472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59476. /* end confdefs.h. */
  59477. #include <math.h>
  59478. int
  59479. main ()
  59480. {
  59481. sincosl(0, 0, 0);
  59482. ;
  59483. return 0;
  59484. }
  59485. _ACEOF
  59486. if ac_fn_cxx_try_compile "$LINENO"; then :
  59487. glibcxx_cv_func_sincosl_use=yes
  59488. else
  59489. glibcxx_cv_func_sincosl_use=no
  59490. fi
  59491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59492. ac_ext=c
  59493. ac_cpp='$CPP $CPPFLAGS'
  59494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59497. fi
  59498. fi
  59499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
  59500. $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
  59501. if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
  59502. for ac_func in sincosl
  59503. do :
  59504. ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
  59505. if test "x$ac_cv_func_sincosl" = xyes; then :
  59506. cat >>confdefs.h <<_ACEOF
  59507. #define HAVE_SINCOSL 1
  59508. _ACEOF
  59509. fi
  59510. done
  59511. else
  59512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _sincosl declaration" >&5
  59513. $as_echo_n "checking for _sincosl declaration... " >&6; }
  59514. if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
  59515. if ${glibcxx_cv_func__sincosl_use+:} false; then :
  59516. $as_echo_n "(cached) " >&6
  59517. else
  59518. ac_ext=cpp
  59519. ac_cpp='$CXXCPP $CPPFLAGS'
  59520. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59521. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59522. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59524. /* end confdefs.h. */
  59525. #include <math.h>
  59526. int
  59527. main ()
  59528. {
  59529. _sincosl(0, 0, 0);
  59530. ;
  59531. return 0;
  59532. }
  59533. _ACEOF
  59534. if ac_fn_cxx_try_compile "$LINENO"; then :
  59535. glibcxx_cv_func__sincosl_use=yes
  59536. else
  59537. glibcxx_cv_func__sincosl_use=no
  59538. fi
  59539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59540. ac_ext=c
  59541. ac_cpp='$CPP $CPPFLAGS'
  59542. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59543. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59544. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59545. fi
  59546. fi
  59547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__sincosl_use" >&5
  59548. $as_echo "$glibcxx_cv_func__sincosl_use" >&6; }
  59549. if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
  59550. for ac_func in _sincosl
  59551. do :
  59552. ac_fn_c_check_func "$LINENO" "_sincosl" "ac_cv_func__sincosl"
  59553. if test "x$ac_cv_func__sincosl" = xyes; then :
  59554. cat >>confdefs.h <<_ACEOF
  59555. #define HAVE__SINCOSL 1
  59556. _ACEOF
  59557. fi
  59558. done
  59559. fi
  59560. fi
  59561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
  59562. $as_echo_n "checking for finitel declaration... " >&6; }
  59563. if test x${glibcxx_cv_func_finitel_use+set} != xset; then
  59564. if ${glibcxx_cv_func_finitel_use+:} false; then :
  59565. $as_echo_n "(cached) " >&6
  59566. else
  59567. ac_ext=cpp
  59568. ac_cpp='$CXXCPP $CPPFLAGS'
  59569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59573. /* end confdefs.h. */
  59574. #include <math.h>
  59575. #ifdef HAVE_IEEEFP_H
  59576. #include <ieeefp.h>
  59577. #endif
  59578. int
  59579. main ()
  59580. {
  59581. finitel(0);
  59582. ;
  59583. return 0;
  59584. }
  59585. _ACEOF
  59586. if ac_fn_cxx_try_compile "$LINENO"; then :
  59587. glibcxx_cv_func_finitel_use=yes
  59588. else
  59589. glibcxx_cv_func_finitel_use=no
  59590. fi
  59591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59592. ac_ext=c
  59593. ac_cpp='$CPP $CPPFLAGS'
  59594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59597. fi
  59598. fi
  59599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
  59600. $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
  59601. if test x$glibcxx_cv_func_finitel_use = x"yes"; then
  59602. for ac_func in finitel
  59603. do :
  59604. ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
  59605. if test "x$ac_cv_func_finitel" = xyes; then :
  59606. cat >>confdefs.h <<_ACEOF
  59607. #define HAVE_FINITEL 1
  59608. _ACEOF
  59609. fi
  59610. done
  59611. else
  59612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _finitel declaration" >&5
  59613. $as_echo_n "checking for _finitel declaration... " >&6; }
  59614. if test x${glibcxx_cv_func__finitel_use+set} != xset; then
  59615. if ${glibcxx_cv_func__finitel_use+:} false; then :
  59616. $as_echo_n "(cached) " >&6
  59617. else
  59618. ac_ext=cpp
  59619. ac_cpp='$CXXCPP $CPPFLAGS'
  59620. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59621. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59622. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59624. /* end confdefs.h. */
  59625. #include <math.h>
  59626. #ifdef HAVE_IEEEFP_H
  59627. #include <ieeefp.h>
  59628. #endif
  59629. int
  59630. main ()
  59631. {
  59632. _finitel(0);
  59633. ;
  59634. return 0;
  59635. }
  59636. _ACEOF
  59637. if ac_fn_cxx_try_compile "$LINENO"; then :
  59638. glibcxx_cv_func__finitel_use=yes
  59639. else
  59640. glibcxx_cv_func__finitel_use=no
  59641. fi
  59642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59643. ac_ext=c
  59644. ac_cpp='$CPP $CPPFLAGS'
  59645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59648. fi
  59649. fi
  59650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func__finitel_use" >&5
  59651. $as_echo "$glibcxx_cv_func__finitel_use" >&6; }
  59652. if test x$glibcxx_cv_func__finitel_use = x"yes"; then
  59653. for ac_func in _finitel
  59654. do :
  59655. ac_fn_c_check_func "$LINENO" "_finitel" "ac_cv_func__finitel"
  59656. if test "x$ac_cv_func__finitel" = xyes; then :
  59657. cat >>confdefs.h <<_ACEOF
  59658. #define HAVE__FINITEL 1
  59659. _ACEOF
  59660. fi
  59661. done
  59662. fi
  59663. fi
  59664. LIBS="$ac_save_LIBS"
  59665. CXXFLAGS="$ac_save_CXXFLAGS"
  59666. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  59667. ac_save_CXXFLAGS="$CXXFLAGS"
  59668. CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
  59669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
  59670. $as_echo_n "checking for at_quick_exit declaration... " >&6; }
  59671. if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
  59672. if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
  59673. $as_echo_n "(cached) " >&6
  59674. else
  59675. ac_ext=cpp
  59676. ac_cpp='$CXXCPP $CPPFLAGS'
  59677. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59678. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59679. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59681. /* end confdefs.h. */
  59682. #include <stdlib.h>
  59683. int
  59684. main ()
  59685. {
  59686. at_quick_exit(0);
  59687. ;
  59688. return 0;
  59689. }
  59690. _ACEOF
  59691. if ac_fn_cxx_try_compile "$LINENO"; then :
  59692. glibcxx_cv_func_at_quick_exit_use=yes
  59693. else
  59694. glibcxx_cv_func_at_quick_exit_use=no
  59695. fi
  59696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59697. ac_ext=c
  59698. ac_cpp='$CPP $CPPFLAGS'
  59699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59702. fi
  59703. fi
  59704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
  59705. $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
  59706. if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
  59707. for ac_func in at_quick_exit
  59708. do :
  59709. ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
  59710. if test "x$ac_cv_func_at_quick_exit" = xyes; then :
  59711. cat >>confdefs.h <<_ACEOF
  59712. #define HAVE_AT_QUICK_EXIT 1
  59713. _ACEOF
  59714. fi
  59715. done
  59716. fi
  59717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
  59718. $as_echo_n "checking for quick_exit declaration... " >&6; }
  59719. if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
  59720. if ${glibcxx_cv_func_quick_exit_use+:} false; then :
  59721. $as_echo_n "(cached) " >&6
  59722. else
  59723. ac_ext=cpp
  59724. ac_cpp='$CXXCPP $CPPFLAGS'
  59725. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59726. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59727. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59729. /* end confdefs.h. */
  59730. #include <stdlib.h>
  59731. int
  59732. main ()
  59733. {
  59734. quick_exit(0);
  59735. ;
  59736. return 0;
  59737. }
  59738. _ACEOF
  59739. if ac_fn_cxx_try_compile "$LINENO"; then :
  59740. glibcxx_cv_func_quick_exit_use=yes
  59741. else
  59742. glibcxx_cv_func_quick_exit_use=no
  59743. fi
  59744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59745. ac_ext=c
  59746. ac_cpp='$CPP $CPPFLAGS'
  59747. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59748. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59749. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59750. fi
  59751. fi
  59752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
  59753. $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
  59754. if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
  59755. for ac_func in quick_exit
  59756. do :
  59757. ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
  59758. if test "x$ac_cv_func_quick_exit" = xyes; then :
  59759. cat >>confdefs.h <<_ACEOF
  59760. #define HAVE_QUICK_EXIT 1
  59761. _ACEOF
  59762. fi
  59763. done
  59764. fi
  59765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
  59766. $as_echo_n "checking for strtold declaration... " >&6; }
  59767. if test x${glibcxx_cv_func_strtold_use+set} != xset; then
  59768. if ${glibcxx_cv_func_strtold_use+:} false; then :
  59769. $as_echo_n "(cached) " >&6
  59770. else
  59771. ac_ext=cpp
  59772. ac_cpp='$CXXCPP $CPPFLAGS'
  59773. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59774. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59775. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59777. /* end confdefs.h. */
  59778. #include <stdlib.h>
  59779. int
  59780. main ()
  59781. {
  59782. strtold(0, 0);
  59783. ;
  59784. return 0;
  59785. }
  59786. _ACEOF
  59787. if ac_fn_cxx_try_compile "$LINENO"; then :
  59788. glibcxx_cv_func_strtold_use=yes
  59789. else
  59790. glibcxx_cv_func_strtold_use=no
  59791. fi
  59792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59793. ac_ext=c
  59794. ac_cpp='$CPP $CPPFLAGS'
  59795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59798. fi
  59799. fi
  59800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
  59801. $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
  59802. if test x$glibcxx_cv_func_strtold_use = x"yes"; then
  59803. for ac_func in strtold
  59804. do :
  59805. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  59806. if test "x$ac_cv_func_strtold" = xyes; then :
  59807. cat >>confdefs.h <<_ACEOF
  59808. #define HAVE_STRTOLD 1
  59809. _ACEOF
  59810. fi
  59811. done
  59812. fi
  59813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
  59814. $as_echo_n "checking for strtof declaration... " >&6; }
  59815. if test x${glibcxx_cv_func_strtof_use+set} != xset; then
  59816. if ${glibcxx_cv_func_strtof_use+:} false; then :
  59817. $as_echo_n "(cached) " >&6
  59818. else
  59819. ac_ext=cpp
  59820. ac_cpp='$CXXCPP $CPPFLAGS'
  59821. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59822. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59823. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  59824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59825. /* end confdefs.h. */
  59826. #include <stdlib.h>
  59827. int
  59828. main ()
  59829. {
  59830. strtof(0, 0);
  59831. ;
  59832. return 0;
  59833. }
  59834. _ACEOF
  59835. if ac_fn_cxx_try_compile "$LINENO"; then :
  59836. glibcxx_cv_func_strtof_use=yes
  59837. else
  59838. glibcxx_cv_func_strtof_use=no
  59839. fi
  59840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59841. ac_ext=c
  59842. ac_cpp='$CPP $CPPFLAGS'
  59843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59846. fi
  59847. fi
  59848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
  59849. $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
  59850. if test x$glibcxx_cv_func_strtof_use = x"yes"; then
  59851. for ac_func in strtof
  59852. do :
  59853. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  59854. if test "x$ac_cv_func_strtof" = xyes; then :
  59855. cat >>confdefs.h <<_ACEOF
  59856. #define HAVE_STRTOF 1
  59857. _ACEOF
  59858. fi
  59859. done
  59860. fi
  59861. CXXFLAGS="$ac_save_CXXFLAGS"
  59862. ;;
  59863. *-vxworks*)
  59864. $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
  59865. $as_echo "#define HAVE_ASINF 1" >>confdefs.h
  59866. $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
  59867. $as_echo "#define HAVE_ATANF 1" >>confdefs.h
  59868. $as_echo "#define HAVE_CEILF 1" >>confdefs.h
  59869. $as_echo "#define HAVE_COSF 1" >>confdefs.h
  59870. $as_echo "#define HAVE_COSHF 1" >>confdefs.h
  59871. $as_echo "#define HAVE_EXPF 1" >>confdefs.h
  59872. $as_echo "#define HAVE_FABSF 1" >>confdefs.h
  59873. $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
  59874. $as_echo "#define HAVE_FMODF 1" >>confdefs.h
  59875. $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
  59876. $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
  59877. $as_echo "#define HAVE_LOGF 1" >>confdefs.h
  59878. $as_echo "#define HAVE_POWF 1" >>confdefs.h
  59879. $as_echo "#define HAVE_SINF 1" >>confdefs.h
  59880. $as_echo "#define HAVE_SINHF 1" >>confdefs.h
  59881. $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
  59882. $as_echo "#define HAVE_TANF 1" >>confdefs.h
  59883. $as_echo "#define HAVE_TANHF 1" >>confdefs.h
  59884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
  59885. $as_echo_n "checking for acosl declaration... " >&6; }
  59886. if ${glibcxx_cv_func_acosl_use+:} false; then :
  59887. $as_echo_n "(cached) " >&6
  59888. else
  59889. ac_ext=c
  59890. ac_cpp='$CPP $CPPFLAGS'
  59891. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59892. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59893. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59895. /* end confdefs.h. */
  59896. #include <math.h>
  59897. #ifdef HAVE_IEEEFP_H
  59898. # include <ieeefp.h>
  59899. #endif
  59900. #undef acosl
  59901. int
  59902. main ()
  59903. {
  59904. void (*f)(void) = (void (*)(void))acosl;
  59905. ;
  59906. return 0;
  59907. }
  59908. _ACEOF
  59909. if ac_fn_c_try_compile "$LINENO"; then :
  59910. glibcxx_cv_func_acosl_use=yes
  59911. else
  59912. glibcxx_cv_func_acosl_use=no
  59913. fi
  59914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59915. fi
  59916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
  59917. $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
  59918. if test "x$glibcxx_cv_func_acosl_use" = xyes; then
  59919. cat >>confdefs.h <<_ACEOF
  59920. #define HAVE_ACOSL 1
  59921. _ACEOF
  59922. fi
  59923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
  59924. $as_echo_n "checking for asinl declaration... " >&6; }
  59925. if ${glibcxx_cv_func_asinl_use+:} false; then :
  59926. $as_echo_n "(cached) " >&6
  59927. else
  59928. ac_ext=c
  59929. ac_cpp='$CPP $CPPFLAGS'
  59930. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59931. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59932. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59934. /* end confdefs.h. */
  59935. #include <math.h>
  59936. #ifdef HAVE_IEEEFP_H
  59937. # include <ieeefp.h>
  59938. #endif
  59939. #undef asinl
  59940. int
  59941. main ()
  59942. {
  59943. void (*f)(void) = (void (*)(void))asinl;
  59944. ;
  59945. return 0;
  59946. }
  59947. _ACEOF
  59948. if ac_fn_c_try_compile "$LINENO"; then :
  59949. glibcxx_cv_func_asinl_use=yes
  59950. else
  59951. glibcxx_cv_func_asinl_use=no
  59952. fi
  59953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59954. fi
  59955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
  59956. $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
  59957. if test "x$glibcxx_cv_func_asinl_use" = xyes; then
  59958. cat >>confdefs.h <<_ACEOF
  59959. #define HAVE_ASINL 1
  59960. _ACEOF
  59961. fi
  59962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
  59963. $as_echo_n "checking for atan2l declaration... " >&6; }
  59964. if ${glibcxx_cv_func_atan2l_use+:} false; then :
  59965. $as_echo_n "(cached) " >&6
  59966. else
  59967. ac_ext=c
  59968. ac_cpp='$CPP $CPPFLAGS'
  59969. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  59970. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  59971. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  59972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  59973. /* end confdefs.h. */
  59974. #include <math.h>
  59975. #ifdef HAVE_IEEEFP_H
  59976. # include <ieeefp.h>
  59977. #endif
  59978. #undef atan2l
  59979. int
  59980. main ()
  59981. {
  59982. void (*f)(void) = (void (*)(void))atan2l;
  59983. ;
  59984. return 0;
  59985. }
  59986. _ACEOF
  59987. if ac_fn_c_try_compile "$LINENO"; then :
  59988. glibcxx_cv_func_atan2l_use=yes
  59989. else
  59990. glibcxx_cv_func_atan2l_use=no
  59991. fi
  59992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  59993. fi
  59994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
  59995. $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
  59996. if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
  59997. cat >>confdefs.h <<_ACEOF
  59998. #define HAVE_ATAN2L 1
  59999. _ACEOF
  60000. fi
  60001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
  60002. $as_echo_n "checking for atanl declaration... " >&6; }
  60003. if ${glibcxx_cv_func_atanl_use+:} false; then :
  60004. $as_echo_n "(cached) " >&6
  60005. else
  60006. ac_ext=c
  60007. ac_cpp='$CPP $CPPFLAGS'
  60008. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60009. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60010. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60012. /* end confdefs.h. */
  60013. #include <math.h>
  60014. #ifdef HAVE_IEEEFP_H
  60015. # include <ieeefp.h>
  60016. #endif
  60017. #undef atanl
  60018. int
  60019. main ()
  60020. {
  60021. void (*f)(void) = (void (*)(void))atanl;
  60022. ;
  60023. return 0;
  60024. }
  60025. _ACEOF
  60026. if ac_fn_c_try_compile "$LINENO"; then :
  60027. glibcxx_cv_func_atanl_use=yes
  60028. else
  60029. glibcxx_cv_func_atanl_use=no
  60030. fi
  60031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60032. fi
  60033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
  60034. $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
  60035. if test "x$glibcxx_cv_func_atanl_use" = xyes; then
  60036. cat >>confdefs.h <<_ACEOF
  60037. #define HAVE_ATANL 1
  60038. _ACEOF
  60039. fi
  60040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
  60041. $as_echo_n "checking for ceill declaration... " >&6; }
  60042. if ${glibcxx_cv_func_ceill_use+:} false; then :
  60043. $as_echo_n "(cached) " >&6
  60044. else
  60045. ac_ext=c
  60046. ac_cpp='$CPP $CPPFLAGS'
  60047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60051. /* end confdefs.h. */
  60052. #include <math.h>
  60053. #ifdef HAVE_IEEEFP_H
  60054. # include <ieeefp.h>
  60055. #endif
  60056. #undef ceill
  60057. int
  60058. main ()
  60059. {
  60060. void (*f)(void) = (void (*)(void))ceill;
  60061. ;
  60062. return 0;
  60063. }
  60064. _ACEOF
  60065. if ac_fn_c_try_compile "$LINENO"; then :
  60066. glibcxx_cv_func_ceill_use=yes
  60067. else
  60068. glibcxx_cv_func_ceill_use=no
  60069. fi
  60070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60071. fi
  60072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
  60073. $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
  60074. if test "x$glibcxx_cv_func_ceill_use" = xyes; then
  60075. cat >>confdefs.h <<_ACEOF
  60076. #define HAVE_CEILL 1
  60077. _ACEOF
  60078. fi
  60079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
  60080. $as_echo_n "checking for cosl declaration... " >&6; }
  60081. if ${glibcxx_cv_func_cosl_use+:} false; then :
  60082. $as_echo_n "(cached) " >&6
  60083. else
  60084. ac_ext=c
  60085. ac_cpp='$CPP $CPPFLAGS'
  60086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60090. /* end confdefs.h. */
  60091. #include <math.h>
  60092. #ifdef HAVE_IEEEFP_H
  60093. # include <ieeefp.h>
  60094. #endif
  60095. #undef cosl
  60096. int
  60097. main ()
  60098. {
  60099. void (*f)(void) = (void (*)(void))cosl;
  60100. ;
  60101. return 0;
  60102. }
  60103. _ACEOF
  60104. if ac_fn_c_try_compile "$LINENO"; then :
  60105. glibcxx_cv_func_cosl_use=yes
  60106. else
  60107. glibcxx_cv_func_cosl_use=no
  60108. fi
  60109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60110. fi
  60111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
  60112. $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
  60113. if test "x$glibcxx_cv_func_cosl_use" = xyes; then
  60114. cat >>confdefs.h <<_ACEOF
  60115. #define HAVE_COSL 1
  60116. _ACEOF
  60117. fi
  60118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
  60119. $as_echo_n "checking for coshl declaration... " >&6; }
  60120. if ${glibcxx_cv_func_coshl_use+:} false; then :
  60121. $as_echo_n "(cached) " >&6
  60122. else
  60123. ac_ext=c
  60124. ac_cpp='$CPP $CPPFLAGS'
  60125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60129. /* end confdefs.h. */
  60130. #include <math.h>
  60131. #ifdef HAVE_IEEEFP_H
  60132. # include <ieeefp.h>
  60133. #endif
  60134. #undef coshl
  60135. int
  60136. main ()
  60137. {
  60138. void (*f)(void) = (void (*)(void))coshl;
  60139. ;
  60140. return 0;
  60141. }
  60142. _ACEOF
  60143. if ac_fn_c_try_compile "$LINENO"; then :
  60144. glibcxx_cv_func_coshl_use=yes
  60145. else
  60146. glibcxx_cv_func_coshl_use=no
  60147. fi
  60148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60149. fi
  60150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
  60151. $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
  60152. if test "x$glibcxx_cv_func_coshl_use" = xyes; then
  60153. cat >>confdefs.h <<_ACEOF
  60154. #define HAVE_COSHL 1
  60155. _ACEOF
  60156. fi
  60157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
  60158. $as_echo_n "checking for expl declaration... " >&6; }
  60159. if ${glibcxx_cv_func_expl_use+:} false; then :
  60160. $as_echo_n "(cached) " >&6
  60161. else
  60162. ac_ext=c
  60163. ac_cpp='$CPP $CPPFLAGS'
  60164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60168. /* end confdefs.h. */
  60169. #include <math.h>
  60170. #ifdef HAVE_IEEEFP_H
  60171. # include <ieeefp.h>
  60172. #endif
  60173. #undef expl
  60174. int
  60175. main ()
  60176. {
  60177. void (*f)(void) = (void (*)(void))expl;
  60178. ;
  60179. return 0;
  60180. }
  60181. _ACEOF
  60182. if ac_fn_c_try_compile "$LINENO"; then :
  60183. glibcxx_cv_func_expl_use=yes
  60184. else
  60185. glibcxx_cv_func_expl_use=no
  60186. fi
  60187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60188. fi
  60189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
  60190. $as_echo "$glibcxx_cv_func_expl_use" >&6; }
  60191. if test "x$glibcxx_cv_func_expl_use" = xyes; then
  60192. cat >>confdefs.h <<_ACEOF
  60193. #define HAVE_EXPL 1
  60194. _ACEOF
  60195. fi
  60196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
  60197. $as_echo_n "checking for fabsl declaration... " >&6; }
  60198. if ${glibcxx_cv_func_fabsl_use+:} false; then :
  60199. $as_echo_n "(cached) " >&6
  60200. else
  60201. ac_ext=c
  60202. ac_cpp='$CPP $CPPFLAGS'
  60203. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60204. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60205. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60207. /* end confdefs.h. */
  60208. #include <math.h>
  60209. #ifdef HAVE_IEEEFP_H
  60210. # include <ieeefp.h>
  60211. #endif
  60212. #undef fabsl
  60213. int
  60214. main ()
  60215. {
  60216. void (*f)(void) = (void (*)(void))fabsl;
  60217. ;
  60218. return 0;
  60219. }
  60220. _ACEOF
  60221. if ac_fn_c_try_compile "$LINENO"; then :
  60222. glibcxx_cv_func_fabsl_use=yes
  60223. else
  60224. glibcxx_cv_func_fabsl_use=no
  60225. fi
  60226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60227. fi
  60228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
  60229. $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
  60230. if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
  60231. cat >>confdefs.h <<_ACEOF
  60232. #define HAVE_FABSL 1
  60233. _ACEOF
  60234. fi
  60235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
  60236. $as_echo_n "checking for floorl declaration... " >&6; }
  60237. if ${glibcxx_cv_func_floorl_use+:} false; then :
  60238. $as_echo_n "(cached) " >&6
  60239. else
  60240. ac_ext=c
  60241. ac_cpp='$CPP $CPPFLAGS'
  60242. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60243. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60244. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60246. /* end confdefs.h. */
  60247. #include <math.h>
  60248. #ifdef HAVE_IEEEFP_H
  60249. # include <ieeefp.h>
  60250. #endif
  60251. #undef floorl
  60252. int
  60253. main ()
  60254. {
  60255. void (*f)(void) = (void (*)(void))floorl;
  60256. ;
  60257. return 0;
  60258. }
  60259. _ACEOF
  60260. if ac_fn_c_try_compile "$LINENO"; then :
  60261. glibcxx_cv_func_floorl_use=yes
  60262. else
  60263. glibcxx_cv_func_floorl_use=no
  60264. fi
  60265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60266. fi
  60267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
  60268. $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
  60269. if test "x$glibcxx_cv_func_floorl_use" = xyes; then
  60270. cat >>confdefs.h <<_ACEOF
  60271. #define HAVE_FLOORL 1
  60272. _ACEOF
  60273. fi
  60274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
  60275. $as_echo_n "checking for fmodl declaration... " >&6; }
  60276. if ${glibcxx_cv_func_fmodl_use+:} false; then :
  60277. $as_echo_n "(cached) " >&6
  60278. else
  60279. ac_ext=c
  60280. ac_cpp='$CPP $CPPFLAGS'
  60281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60285. /* end confdefs.h. */
  60286. #include <math.h>
  60287. #ifdef HAVE_IEEEFP_H
  60288. # include <ieeefp.h>
  60289. #endif
  60290. #undef fmodl
  60291. int
  60292. main ()
  60293. {
  60294. void (*f)(void) = (void (*)(void))fmodl;
  60295. ;
  60296. return 0;
  60297. }
  60298. _ACEOF
  60299. if ac_fn_c_try_compile "$LINENO"; then :
  60300. glibcxx_cv_func_fmodl_use=yes
  60301. else
  60302. glibcxx_cv_func_fmodl_use=no
  60303. fi
  60304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60305. fi
  60306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
  60307. $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
  60308. if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
  60309. cat >>confdefs.h <<_ACEOF
  60310. #define HAVE_FMODL 1
  60311. _ACEOF
  60312. fi
  60313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
  60314. $as_echo_n "checking for frexpl declaration... " >&6; }
  60315. if ${glibcxx_cv_func_frexpl_use+:} false; then :
  60316. $as_echo_n "(cached) " >&6
  60317. else
  60318. ac_ext=c
  60319. ac_cpp='$CPP $CPPFLAGS'
  60320. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60321. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60322. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60324. /* end confdefs.h. */
  60325. #include <math.h>
  60326. #ifdef HAVE_IEEEFP_H
  60327. # include <ieeefp.h>
  60328. #endif
  60329. #undef frexpl
  60330. int
  60331. main ()
  60332. {
  60333. void (*f)(void) = (void (*)(void))frexpl;
  60334. ;
  60335. return 0;
  60336. }
  60337. _ACEOF
  60338. if ac_fn_c_try_compile "$LINENO"; then :
  60339. glibcxx_cv_func_frexpl_use=yes
  60340. else
  60341. glibcxx_cv_func_frexpl_use=no
  60342. fi
  60343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60344. fi
  60345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
  60346. $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
  60347. if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
  60348. cat >>confdefs.h <<_ACEOF
  60349. #define HAVE_FREXPL 1
  60350. _ACEOF
  60351. fi
  60352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
  60353. $as_echo_n "checking for ldexpl declaration... " >&6; }
  60354. if ${glibcxx_cv_func_ldexpl_use+:} false; then :
  60355. $as_echo_n "(cached) " >&6
  60356. else
  60357. ac_ext=c
  60358. ac_cpp='$CPP $CPPFLAGS'
  60359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60363. /* end confdefs.h. */
  60364. #include <math.h>
  60365. #ifdef HAVE_IEEEFP_H
  60366. # include <ieeefp.h>
  60367. #endif
  60368. #undef ldexpl
  60369. int
  60370. main ()
  60371. {
  60372. void (*f)(void) = (void (*)(void))ldexpl;
  60373. ;
  60374. return 0;
  60375. }
  60376. _ACEOF
  60377. if ac_fn_c_try_compile "$LINENO"; then :
  60378. glibcxx_cv_func_ldexpl_use=yes
  60379. else
  60380. glibcxx_cv_func_ldexpl_use=no
  60381. fi
  60382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60383. fi
  60384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
  60385. $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
  60386. if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
  60387. cat >>confdefs.h <<_ACEOF
  60388. #define HAVE_LDEXPL 1
  60389. _ACEOF
  60390. fi
  60391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
  60392. $as_echo_n "checking for log10l declaration... " >&6; }
  60393. if ${glibcxx_cv_func_log10l_use+:} false; then :
  60394. $as_echo_n "(cached) " >&6
  60395. else
  60396. ac_ext=c
  60397. ac_cpp='$CPP $CPPFLAGS'
  60398. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60399. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60400. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60402. /* end confdefs.h. */
  60403. #include <math.h>
  60404. #ifdef HAVE_IEEEFP_H
  60405. # include <ieeefp.h>
  60406. #endif
  60407. #undef log10l
  60408. int
  60409. main ()
  60410. {
  60411. void (*f)(void) = (void (*)(void))log10l;
  60412. ;
  60413. return 0;
  60414. }
  60415. _ACEOF
  60416. if ac_fn_c_try_compile "$LINENO"; then :
  60417. glibcxx_cv_func_log10l_use=yes
  60418. else
  60419. glibcxx_cv_func_log10l_use=no
  60420. fi
  60421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60422. fi
  60423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
  60424. $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
  60425. if test "x$glibcxx_cv_func_log10l_use" = xyes; then
  60426. cat >>confdefs.h <<_ACEOF
  60427. #define HAVE_LOG10L 1
  60428. _ACEOF
  60429. fi
  60430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
  60431. $as_echo_n "checking for logl declaration... " >&6; }
  60432. if ${glibcxx_cv_func_logl_use+:} false; then :
  60433. $as_echo_n "(cached) " >&6
  60434. else
  60435. ac_ext=c
  60436. ac_cpp='$CPP $CPPFLAGS'
  60437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60441. /* end confdefs.h. */
  60442. #include <math.h>
  60443. #ifdef HAVE_IEEEFP_H
  60444. # include <ieeefp.h>
  60445. #endif
  60446. #undef logl
  60447. int
  60448. main ()
  60449. {
  60450. void (*f)(void) = (void (*)(void))logl;
  60451. ;
  60452. return 0;
  60453. }
  60454. _ACEOF
  60455. if ac_fn_c_try_compile "$LINENO"; then :
  60456. glibcxx_cv_func_logl_use=yes
  60457. else
  60458. glibcxx_cv_func_logl_use=no
  60459. fi
  60460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60461. fi
  60462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
  60463. $as_echo "$glibcxx_cv_func_logl_use" >&6; }
  60464. if test "x$glibcxx_cv_func_logl_use" = xyes; then
  60465. cat >>confdefs.h <<_ACEOF
  60466. #define HAVE_LOGL 1
  60467. _ACEOF
  60468. fi
  60469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
  60470. $as_echo_n "checking for modfl declaration... " >&6; }
  60471. if ${glibcxx_cv_func_modfl_use+:} false; then :
  60472. $as_echo_n "(cached) " >&6
  60473. else
  60474. ac_ext=c
  60475. ac_cpp='$CPP $CPPFLAGS'
  60476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60480. /* end confdefs.h. */
  60481. #include <math.h>
  60482. #ifdef HAVE_IEEEFP_H
  60483. # include <ieeefp.h>
  60484. #endif
  60485. #undef modfl
  60486. int
  60487. main ()
  60488. {
  60489. void (*f)(void) = (void (*)(void))modfl;
  60490. ;
  60491. return 0;
  60492. }
  60493. _ACEOF
  60494. if ac_fn_c_try_compile "$LINENO"; then :
  60495. glibcxx_cv_func_modfl_use=yes
  60496. else
  60497. glibcxx_cv_func_modfl_use=no
  60498. fi
  60499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60500. fi
  60501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
  60502. $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
  60503. if test "x$glibcxx_cv_func_modfl_use" = xyes; then
  60504. cat >>confdefs.h <<_ACEOF
  60505. #define HAVE_MODFL 1
  60506. _ACEOF
  60507. fi
  60508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
  60509. $as_echo_n "checking for powl declaration... " >&6; }
  60510. if ${glibcxx_cv_func_powl_use+:} false; then :
  60511. $as_echo_n "(cached) " >&6
  60512. else
  60513. ac_ext=c
  60514. ac_cpp='$CPP $CPPFLAGS'
  60515. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60516. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60517. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60519. /* end confdefs.h. */
  60520. #include <math.h>
  60521. #ifdef HAVE_IEEEFP_H
  60522. # include <ieeefp.h>
  60523. #endif
  60524. #undef powl
  60525. int
  60526. main ()
  60527. {
  60528. void (*f)(void) = (void (*)(void))powl;
  60529. ;
  60530. return 0;
  60531. }
  60532. _ACEOF
  60533. if ac_fn_c_try_compile "$LINENO"; then :
  60534. glibcxx_cv_func_powl_use=yes
  60535. else
  60536. glibcxx_cv_func_powl_use=no
  60537. fi
  60538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60539. fi
  60540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
  60541. $as_echo "$glibcxx_cv_func_powl_use" >&6; }
  60542. if test "x$glibcxx_cv_func_powl_use" = xyes; then
  60543. cat >>confdefs.h <<_ACEOF
  60544. #define HAVE_POWL 1
  60545. _ACEOF
  60546. fi
  60547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
  60548. $as_echo_n "checking for sinl declaration... " >&6; }
  60549. if ${glibcxx_cv_func_sinl_use+:} false; then :
  60550. $as_echo_n "(cached) " >&6
  60551. else
  60552. ac_ext=c
  60553. ac_cpp='$CPP $CPPFLAGS'
  60554. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60555. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60556. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60558. /* end confdefs.h. */
  60559. #include <math.h>
  60560. #ifdef HAVE_IEEEFP_H
  60561. # include <ieeefp.h>
  60562. #endif
  60563. #undef sinl
  60564. int
  60565. main ()
  60566. {
  60567. void (*f)(void) = (void (*)(void))sinl;
  60568. ;
  60569. return 0;
  60570. }
  60571. _ACEOF
  60572. if ac_fn_c_try_compile "$LINENO"; then :
  60573. glibcxx_cv_func_sinl_use=yes
  60574. else
  60575. glibcxx_cv_func_sinl_use=no
  60576. fi
  60577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60578. fi
  60579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
  60580. $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
  60581. if test "x$glibcxx_cv_func_sinl_use" = xyes; then
  60582. cat >>confdefs.h <<_ACEOF
  60583. #define HAVE_SINL 1
  60584. _ACEOF
  60585. fi
  60586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
  60587. $as_echo_n "checking for sinhl declaration... " >&6; }
  60588. if ${glibcxx_cv_func_sinhl_use+:} false; then :
  60589. $as_echo_n "(cached) " >&6
  60590. else
  60591. ac_ext=c
  60592. ac_cpp='$CPP $CPPFLAGS'
  60593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60597. /* end confdefs.h. */
  60598. #include <math.h>
  60599. #ifdef HAVE_IEEEFP_H
  60600. # include <ieeefp.h>
  60601. #endif
  60602. #undef sinhl
  60603. int
  60604. main ()
  60605. {
  60606. void (*f)(void) = (void (*)(void))sinhl;
  60607. ;
  60608. return 0;
  60609. }
  60610. _ACEOF
  60611. if ac_fn_c_try_compile "$LINENO"; then :
  60612. glibcxx_cv_func_sinhl_use=yes
  60613. else
  60614. glibcxx_cv_func_sinhl_use=no
  60615. fi
  60616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60617. fi
  60618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
  60619. $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
  60620. if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
  60621. cat >>confdefs.h <<_ACEOF
  60622. #define HAVE_SINHL 1
  60623. _ACEOF
  60624. fi
  60625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
  60626. $as_echo_n "checking for sqrtl declaration... " >&6; }
  60627. if ${glibcxx_cv_func_sqrtl_use+:} false; then :
  60628. $as_echo_n "(cached) " >&6
  60629. else
  60630. ac_ext=c
  60631. ac_cpp='$CPP $CPPFLAGS'
  60632. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60633. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60634. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60636. /* end confdefs.h. */
  60637. #include <math.h>
  60638. #ifdef HAVE_IEEEFP_H
  60639. # include <ieeefp.h>
  60640. #endif
  60641. #undef sqrtl
  60642. int
  60643. main ()
  60644. {
  60645. void (*f)(void) = (void (*)(void))sqrtl;
  60646. ;
  60647. return 0;
  60648. }
  60649. _ACEOF
  60650. if ac_fn_c_try_compile "$LINENO"; then :
  60651. glibcxx_cv_func_sqrtl_use=yes
  60652. else
  60653. glibcxx_cv_func_sqrtl_use=no
  60654. fi
  60655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60656. fi
  60657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
  60658. $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
  60659. if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
  60660. cat >>confdefs.h <<_ACEOF
  60661. #define HAVE_SQRTL 1
  60662. _ACEOF
  60663. fi
  60664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
  60665. $as_echo_n "checking for tanl declaration... " >&6; }
  60666. if ${glibcxx_cv_func_tanl_use+:} false; then :
  60667. $as_echo_n "(cached) " >&6
  60668. else
  60669. ac_ext=c
  60670. ac_cpp='$CPP $CPPFLAGS'
  60671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60675. /* end confdefs.h. */
  60676. #include <math.h>
  60677. #ifdef HAVE_IEEEFP_H
  60678. # include <ieeefp.h>
  60679. #endif
  60680. #undef tanl
  60681. int
  60682. main ()
  60683. {
  60684. void (*f)(void) = (void (*)(void))tanl;
  60685. ;
  60686. return 0;
  60687. }
  60688. _ACEOF
  60689. if ac_fn_c_try_compile "$LINENO"; then :
  60690. glibcxx_cv_func_tanl_use=yes
  60691. else
  60692. glibcxx_cv_func_tanl_use=no
  60693. fi
  60694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60695. fi
  60696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
  60697. $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
  60698. if test "x$glibcxx_cv_func_tanl_use" = xyes; then
  60699. cat >>confdefs.h <<_ACEOF
  60700. #define HAVE_TANL 1
  60701. _ACEOF
  60702. fi
  60703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
  60704. $as_echo_n "checking for tanhl declaration... " >&6; }
  60705. if ${glibcxx_cv_func_tanhl_use+:} false; then :
  60706. $as_echo_n "(cached) " >&6
  60707. else
  60708. ac_ext=c
  60709. ac_cpp='$CPP $CPPFLAGS'
  60710. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60711. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60712. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60714. /* end confdefs.h. */
  60715. #include <math.h>
  60716. #ifdef HAVE_IEEEFP_H
  60717. # include <ieeefp.h>
  60718. #endif
  60719. #undef tanhl
  60720. int
  60721. main ()
  60722. {
  60723. void (*f)(void) = (void (*)(void))tanhl;
  60724. ;
  60725. return 0;
  60726. }
  60727. _ACEOF
  60728. if ac_fn_c_try_compile "$LINENO"; then :
  60729. glibcxx_cv_func_tanhl_use=yes
  60730. else
  60731. glibcxx_cv_func_tanhl_use=no
  60732. fi
  60733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60734. fi
  60735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
  60736. $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
  60737. if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
  60738. cat >>confdefs.h <<_ACEOF
  60739. #define HAVE_TANHL 1
  60740. _ACEOF
  60741. fi
  60742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
  60743. $as_echo_n "checking for hypotl declaration... " >&6; }
  60744. if ${glibcxx_cv_func_hypotl_use+:} false; then :
  60745. $as_echo_n "(cached) " >&6
  60746. else
  60747. ac_ext=c
  60748. ac_cpp='$CPP $CPPFLAGS'
  60749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60753. /* end confdefs.h. */
  60754. #include <math.h>
  60755. #ifdef HAVE_IEEEFP_H
  60756. # include <ieeefp.h>
  60757. #endif
  60758. #undef hypotl
  60759. int
  60760. main ()
  60761. {
  60762. void (*f)(void) = (void (*)(void))hypotl;
  60763. ;
  60764. return 0;
  60765. }
  60766. _ACEOF
  60767. if ac_fn_c_try_compile "$LINENO"; then :
  60768. glibcxx_cv_func_hypotl_use=yes
  60769. else
  60770. glibcxx_cv_func_hypotl_use=no
  60771. fi
  60772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60773. fi
  60774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
  60775. $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
  60776. if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
  60777. cat >>confdefs.h <<_ACEOF
  60778. #define HAVE_HYPOTL 1
  60779. _ACEOF
  60780. fi
  60781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
  60782. $as_echo_n "checking for ldexpf declaration... " >&6; }
  60783. if ${glibcxx_cv_func_ldexpf_use+:} false; then :
  60784. $as_echo_n "(cached) " >&6
  60785. else
  60786. ac_ext=c
  60787. ac_cpp='$CPP $CPPFLAGS'
  60788. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60789. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60792. /* end confdefs.h. */
  60793. #include <math.h>
  60794. #ifdef HAVE_IEEEFP_H
  60795. # include <ieeefp.h>
  60796. #endif
  60797. #undef ldexpf
  60798. int
  60799. main ()
  60800. {
  60801. void (*f)(void) = (void (*)(void))ldexpf;
  60802. ;
  60803. return 0;
  60804. }
  60805. _ACEOF
  60806. if ac_fn_c_try_compile "$LINENO"; then :
  60807. glibcxx_cv_func_ldexpf_use=yes
  60808. else
  60809. glibcxx_cv_func_ldexpf_use=no
  60810. fi
  60811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60812. fi
  60813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
  60814. $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
  60815. if test "x$glibcxx_cv_func_ldexpf_use" = xyes; then
  60816. cat >>confdefs.h <<_ACEOF
  60817. #define HAVE_LDEXPF 1
  60818. _ACEOF
  60819. fi
  60820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
  60821. $as_echo_n "checking for modff declaration... " >&6; }
  60822. if ${glibcxx_cv_func_modff_use+:} false; then :
  60823. $as_echo_n "(cached) " >&6
  60824. else
  60825. ac_ext=c
  60826. ac_cpp='$CPP $CPPFLAGS'
  60827. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60828. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60829. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60831. /* end confdefs.h. */
  60832. #include <math.h>
  60833. #ifdef HAVE_IEEEFP_H
  60834. # include <ieeefp.h>
  60835. #endif
  60836. #undef modff
  60837. int
  60838. main ()
  60839. {
  60840. void (*f)(void) = (void (*)(void))modff;
  60841. ;
  60842. return 0;
  60843. }
  60844. _ACEOF
  60845. if ac_fn_c_try_compile "$LINENO"; then :
  60846. glibcxx_cv_func_modff_use=yes
  60847. else
  60848. glibcxx_cv_func_modff_use=no
  60849. fi
  60850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60851. fi
  60852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
  60853. $as_echo "$glibcxx_cv_func_modff_use" >&6; }
  60854. if test "x$glibcxx_cv_func_modff_use" = xyes; then
  60855. cat >>confdefs.h <<_ACEOF
  60856. #define HAVE_MODFF 1
  60857. _ACEOF
  60858. fi
  60859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
  60860. $as_echo_n "checking for hypotf declaration... " >&6; }
  60861. if ${glibcxx_cv_func_hypotf_use+:} false; then :
  60862. $as_echo_n "(cached) " >&6
  60863. else
  60864. ac_ext=c
  60865. ac_cpp='$CPP $CPPFLAGS'
  60866. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60867. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60868. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60870. /* end confdefs.h. */
  60871. #include <math.h>
  60872. #ifdef HAVE_IEEEFP_H
  60873. # include <ieeefp.h>
  60874. #endif
  60875. #undef hypotf
  60876. int
  60877. main ()
  60878. {
  60879. void (*f)(void) = (void (*)(void))hypotf;
  60880. ;
  60881. return 0;
  60882. }
  60883. _ACEOF
  60884. if ac_fn_c_try_compile "$LINENO"; then :
  60885. glibcxx_cv_func_hypotf_use=yes
  60886. else
  60887. glibcxx_cv_func_hypotf_use=no
  60888. fi
  60889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60890. fi
  60891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
  60892. $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
  60893. if test "x$glibcxx_cv_func_hypotf_use" = xyes; then
  60894. cat >>confdefs.h <<_ACEOF
  60895. #define HAVE_HYPOTF 1
  60896. _ACEOF
  60897. fi
  60898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
  60899. $as_echo_n "checking for frexpf declaration... " >&6; }
  60900. if ${glibcxx_cv_func_frexpf_use+:} false; then :
  60901. $as_echo_n "(cached) " >&6
  60902. else
  60903. ac_ext=c
  60904. ac_cpp='$CPP $CPPFLAGS'
  60905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  60906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  60907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  60908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  60909. /* end confdefs.h. */
  60910. #include <math.h>
  60911. #ifdef HAVE_IEEEFP_H
  60912. # include <ieeefp.h>
  60913. #endif
  60914. #undef frexpf
  60915. int
  60916. main ()
  60917. {
  60918. void (*f)(void) = (void (*)(void))frexpf;
  60919. ;
  60920. return 0;
  60921. }
  60922. _ACEOF
  60923. if ac_fn_c_try_compile "$LINENO"; then :
  60924. glibcxx_cv_func_frexpf_use=yes
  60925. else
  60926. glibcxx_cv_func_frexpf_use=no
  60927. fi
  60928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  60929. fi
  60930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
  60931. $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
  60932. if test "x$glibcxx_cv_func_frexpf_use" = xyes; then
  60933. cat >>confdefs.h <<_ACEOF
  60934. #define HAVE_FREXPF 1
  60935. _ACEOF
  60936. fi
  60937. ;;
  60938. *)
  60939. as_fn_error $? "No support for this host/target combination." "$LINENO" 5
  60940. ;;
  60941. esac
  60942. fi
  60943. # At some point, we should differentiate between architectures
  60944. # like x86, which have long double versions, and alpha/powerpc/etc.,
  60945. # which don't. For the time being, punt.
  60946. if test x"long_double_math_on_this_cpu" = x"yes"; then
  60947. $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
  60948. $as_echo "#define HAVE_ASINL 1" >>confdefs.h
  60949. $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
  60950. $as_echo "#define HAVE_ATANL 1" >>confdefs.h
  60951. $as_echo "#define HAVE_CEILL 1" >>confdefs.h
  60952. $as_echo "#define HAVE_COSL 1" >>confdefs.h
  60953. $as_echo "#define HAVE_COSHL 1" >>confdefs.h
  60954. $as_echo "#define HAVE_EXPL 1" >>confdefs.h
  60955. $as_echo "#define HAVE_FABSL 1" >>confdefs.h
  60956. $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
  60957. $as_echo "#define HAVE_FMODL 1" >>confdefs.h
  60958. $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
  60959. $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
  60960. $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
  60961. $as_echo "#define HAVE_LOGL 1" >>confdefs.h
  60962. $as_echo "#define HAVE_MODFL 1" >>confdefs.h
  60963. $as_echo "#define HAVE_POWL 1" >>confdefs.h
  60964. $as_echo "#define HAVE_SINCOSL 1" >>confdefs.h
  60965. $as_echo "#define HAVE_SINL 1" >>confdefs.h
  60966. $as_echo "#define HAVE_SINHL 1" >>confdefs.h
  60967. $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
  60968. $as_echo "#define HAVE_TANL 1" >>confdefs.h
  60969. $as_echo "#define HAVE_TANHL 1" >>confdefs.h
  60970. fi
  60971. fi
  60972. # Check for _Unwind_GetIPInfo.
  60973. # Check whether --with-system-libunwind was given.
  60974. if test "${with_system_libunwind+set}" = set; then :
  60975. withval=$with_system_libunwind;
  60976. fi
  60977. # If system-libunwind was not specifically set, pick a default setting.
  60978. if test x$with_system_libunwind = x; then
  60979. case ${target} in
  60980. ia64-*-hpux*) with_system_libunwind=yes ;;
  60981. *) with_system_libunwind=no ;;
  60982. esac
  60983. fi
  60984. # Based on system-libunwind and target, do we have ipinfo?
  60985. if test x$with_system_libunwind = xyes; then
  60986. case ${target} in
  60987. ia64-*-*) have_unwind_getipinfo=no ;;
  60988. *) have_unwind_getipinfo=yes ;;
  60989. esac
  60990. else
  60991. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  60992. case ${target} in
  60993. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  60994. *) have_unwind_getipinfo=yes ;;
  60995. esac
  60996. fi
  60997. if test x$have_unwind_getipinfo = xyes; then
  60998. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  60999. fi
  61000. # Check whether --enable-linux-futex was given.
  61001. if test "${enable_linux_futex+set}" = set; then :
  61002. enableval=$enable_linux_futex;
  61003. case "$enableval" in
  61004. yes|no|default) ;;
  61005. *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
  61006. esac
  61007. else
  61008. enable_linux_futex=default
  61009. fi
  61010. case "$target" in
  61011. *-linux* | *-uclinux*)
  61012. case "$enable_linux_futex" in
  61013. default)
  61014. # If headers don't have gettid/futex syscalls definition, then
  61015. # default to no, otherwise there will be compile time failures.
  61016. # Otherwise, default to yes. If we don't detect we are
  61017. # compiled/linked against NPTL and not cross-compiling, check
  61018. # if programs are run by default against NPTL and if not, issue
  61019. # a warning.
  61020. enable_linux_futex=no
  61021. if test x$gcc_no_link = xyes; then
  61022. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61023. fi
  61024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61025. /* end confdefs.h. */
  61026. #include <sys/syscall.h>
  61027. #include <unistd.h>
  61028. int lk;
  61029. int
  61030. main ()
  61031. {
  61032. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  61033. ;
  61034. return 0;
  61035. }
  61036. _ACEOF
  61037. if ac_fn_c_try_link "$LINENO"; then :
  61038. save_LIBS="$LIBS"
  61039. LIBS="-lpthread $LIBS"
  61040. if test x$gcc_no_link = xyes; then
  61041. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61042. fi
  61043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61044. /* end confdefs.h. */
  61045. #ifndef _GNU_SOURCE
  61046. #define _GNU_SOURCE 1
  61047. #endif
  61048. #include <pthread.h>
  61049. pthread_t th; void *status;
  61050. int
  61051. main ()
  61052. {
  61053. pthread_tryjoin_np (th, &status);
  61054. ;
  61055. return 0;
  61056. }
  61057. _ACEOF
  61058. if ac_fn_c_try_link "$LINENO"; then :
  61059. enable_linux_futex=yes
  61060. else
  61061. if test x$cross_compiling = xno; then
  61062. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  61063. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
  61064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
  61065. If so, please configure with --disable-linux-futex" >&5
  61066. $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  61067. If so, please configure with --disable-linux-futex" >&2;}
  61068. fi
  61069. fi
  61070. enable_linux_futex=yes
  61071. fi
  61072. rm -f core conftest.err conftest.$ac_objext \
  61073. conftest$ac_exeext conftest.$ac_ext
  61074. LIBS="$save_LIBS"
  61075. fi
  61076. rm -f core conftest.err conftest.$ac_objext \
  61077. conftest$ac_exeext conftest.$ac_ext
  61078. ;;
  61079. yes)
  61080. if test x$gcc_no_link = xyes; then
  61081. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61082. fi
  61083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61084. /* end confdefs.h. */
  61085. #include <sys/syscall.h>
  61086. #include <unistd.h>
  61087. int lk;
  61088. int
  61089. main ()
  61090. {
  61091. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  61092. ;
  61093. return 0;
  61094. }
  61095. _ACEOF
  61096. if ac_fn_c_try_link "$LINENO"; then :
  61097. else
  61098. as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
  61099. fi
  61100. rm -f core conftest.err conftest.$ac_objext \
  61101. conftest$ac_exeext conftest.$ac_ext
  61102. ;;
  61103. esac
  61104. ;;
  61105. *)
  61106. enable_linux_futex=no
  61107. ;;
  61108. esac
  61109. if test x$enable_linux_futex = xyes; then
  61110. $as_echo "#define HAVE_LINUX_FUTEX 1" >>confdefs.h
  61111. fi
  61112. if test "$is_hosted" = yes; then
  61113. # TODO: remove this and change src/c++11/compatibility-atomic-c++0x.cc to
  61114. # use <stdint.h> instead of <gstdint.h>.
  61115. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  61116. acx_cv_header_stdint=stddef.h
  61117. acx_cv_header_stdint_kind="(already complete)"
  61118. for i in stdint.h $inttype_headers; do
  61119. unset ac_cv_type_uintptr_t
  61120. unset ac_cv_type_uintmax_t
  61121. unset ac_cv_type_int_least32_t
  61122. unset ac_cv_type_int_fast32_t
  61123. unset ac_cv_type_uint64_t
  61124. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  61125. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  61126. #include <$i>
  61127. "
  61128. if test "x$ac_cv_type_uintmax_t" = xyes; then :
  61129. acx_cv_header_stdint=$i
  61130. else
  61131. continue
  61132. fi
  61133. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  61134. #include <$i>
  61135. "
  61136. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  61137. else
  61138. acx_cv_header_stdint_kind="(mostly complete)"
  61139. fi
  61140. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  61141. #include <$i>
  61142. "
  61143. if test "x$ac_cv_type_int_least32_t" = xyes; then :
  61144. else
  61145. acx_cv_header_stdint_kind="(mostly complete)"
  61146. fi
  61147. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  61148. #include <$i>
  61149. "
  61150. if test "x$ac_cv_type_int_fast32_t" = xyes; then :
  61151. else
  61152. acx_cv_header_stdint_kind="(mostly complete)"
  61153. fi
  61154. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  61155. #include <$i>
  61156. "
  61157. if test "x$ac_cv_type_uint64_t" = xyes; then :
  61158. else
  61159. acx_cv_header_stdint_kind="(lacks uint64_t)"
  61160. fi
  61161. break
  61162. done
  61163. if test "$acx_cv_header_stdint" = stddef.h; then
  61164. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  61165. for i in stdint.h $inttype_headers; do
  61166. unset ac_cv_type_uintptr_t
  61167. unset ac_cv_type_uint32_t
  61168. unset ac_cv_type_uint64_t
  61169. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  61170. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  61171. #include <$i>
  61172. "
  61173. if test "x$ac_cv_type_uint32_t" = xyes; then :
  61174. acx_cv_header_stdint=$i
  61175. else
  61176. continue
  61177. fi
  61178. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  61179. #include <$i>
  61180. "
  61181. if test "x$ac_cv_type_uint64_t" = xyes; then :
  61182. fi
  61183. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  61184. #include <$i>
  61185. "
  61186. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  61187. fi
  61188. break
  61189. done
  61190. fi
  61191. if test "$acx_cv_header_stdint" = stddef.h; then
  61192. acx_cv_header_stdint_kind="(u_intXX_t style)"
  61193. for i in sys/types.h $inttype_headers; do
  61194. unset ac_cv_type_u_int32_t
  61195. unset ac_cv_type_u_int64_t
  61196. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  61197. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  61198. #include <$i>
  61199. "
  61200. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  61201. acx_cv_header_stdint=$i
  61202. else
  61203. continue
  61204. fi
  61205. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  61206. #include <$i>
  61207. "
  61208. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  61209. fi
  61210. break
  61211. done
  61212. fi
  61213. if test "$acx_cv_header_stdint" = stddef.h; then
  61214. acx_cv_header_stdint_kind="(using manual detection)"
  61215. fi
  61216. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  61217. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  61218. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  61219. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  61220. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  61221. # ----------------- Summarize what we found so far
  61222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in include/gstdint.h" >&5
  61223. $as_echo_n "checking what to include in include/gstdint.h... " >&6; }
  61224. case `$as_basename -- include/gstdint.h ||
  61225. $as_expr X/include/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  61226. Xinclude/gstdint.h : 'X\(//\)$' \| \
  61227. Xinclude/gstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  61228. $as_echo X/include/gstdint.h |
  61229. sed '/^.*\/\([^/][^/]*\)\/*$/{
  61230. s//\1/
  61231. q
  61232. }
  61233. /^X\/\(\/\/\)$/{
  61234. s//\1/
  61235. q
  61236. }
  61237. /^X\/\(\/\).*/{
  61238. s//\1/
  61239. q
  61240. }
  61241. s/.*/./; q'` in
  61242. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  61243. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  61244. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  61245. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  61246. *) ;;
  61247. esac
  61248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  61249. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  61250. # ----------------- done included file, check C basic types --------
  61251. # Lacking an uintptr_t? Test size of void *
  61252. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  61253. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  61254. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  61255. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  61256. # This bug is HP SR number 8606223364.
  61257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  61258. $as_echo_n "checking size of void *... " >&6; }
  61259. if ${ac_cv_sizeof_void_p+:} false; then :
  61260. $as_echo_n "(cached) " >&6
  61261. else
  61262. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  61263. else
  61264. if test "$ac_cv_type_void_p" = yes; then
  61265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  61266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  61267. as_fn_error 77 "cannot compute sizeof (void *)
  61268. See \`config.log' for more details" "$LINENO" 5; }
  61269. else
  61270. ac_cv_sizeof_void_p=0
  61271. fi
  61272. fi
  61273. fi
  61274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  61275. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  61276. cat >>confdefs.h <<_ACEOF
  61277. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  61278. _ACEOF
  61279. ;;
  61280. esac
  61281. # Lacking an uint64_t? Test size of long
  61282. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  61283. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  61284. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  61285. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  61286. # This bug is HP SR number 8606223364.
  61287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  61288. $as_echo_n "checking size of long... " >&6; }
  61289. if ${ac_cv_sizeof_long+:} false; then :
  61290. $as_echo_n "(cached) " >&6
  61291. else
  61292. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  61293. else
  61294. if test "$ac_cv_type_long" = yes; then
  61295. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  61296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  61297. as_fn_error 77 "cannot compute sizeof (long)
  61298. See \`config.log' for more details" "$LINENO" 5; }
  61299. else
  61300. ac_cv_sizeof_long=0
  61301. fi
  61302. fi
  61303. fi
  61304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  61305. $as_echo "$ac_cv_sizeof_long" >&6; }
  61306. cat >>confdefs.h <<_ACEOF
  61307. #define SIZEOF_LONG $ac_cv_sizeof_long
  61308. _ACEOF
  61309. ;;
  61310. esac
  61311. if test $acx_cv_header_stdint = stddef.h; then
  61312. # Lacking a good header? Test size of everything and deduce all types.
  61313. # The cast to long int works around a bug in the HP C Compiler
  61314. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  61315. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  61316. # This bug is HP SR number 8606223364.
  61317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  61318. $as_echo_n "checking size of int... " >&6; }
  61319. if ${ac_cv_sizeof_int+:} false; then :
  61320. $as_echo_n "(cached) " >&6
  61321. else
  61322. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  61323. else
  61324. if test "$ac_cv_type_int" = yes; then
  61325. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  61326. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  61327. as_fn_error 77 "cannot compute sizeof (int)
  61328. See \`config.log' for more details" "$LINENO" 5; }
  61329. else
  61330. ac_cv_sizeof_int=0
  61331. fi
  61332. fi
  61333. fi
  61334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  61335. $as_echo "$ac_cv_sizeof_int" >&6; }
  61336. cat >>confdefs.h <<_ACEOF
  61337. #define SIZEOF_INT $ac_cv_sizeof_int
  61338. _ACEOF
  61339. # The cast to long int works around a bug in the HP C Compiler
  61340. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  61341. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  61342. # This bug is HP SR number 8606223364.
  61343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  61344. $as_echo_n "checking size of short... " >&6; }
  61345. if ${ac_cv_sizeof_short+:} false; then :
  61346. $as_echo_n "(cached) " >&6
  61347. else
  61348. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  61349. else
  61350. if test "$ac_cv_type_short" = yes; then
  61351. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  61352. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  61353. as_fn_error 77 "cannot compute sizeof (short)
  61354. See \`config.log' for more details" "$LINENO" 5; }
  61355. else
  61356. ac_cv_sizeof_short=0
  61357. fi
  61358. fi
  61359. fi
  61360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  61361. $as_echo "$ac_cv_sizeof_short" >&6; }
  61362. cat >>confdefs.h <<_ACEOF
  61363. #define SIZEOF_SHORT $ac_cv_sizeof_short
  61364. _ACEOF
  61365. # The cast to long int works around a bug in the HP C Compiler
  61366. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  61367. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  61368. # This bug is HP SR number 8606223364.
  61369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  61370. $as_echo_n "checking size of char... " >&6; }
  61371. if ${ac_cv_sizeof_char+:} false; then :
  61372. $as_echo_n "(cached) " >&6
  61373. else
  61374. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  61375. else
  61376. if test "$ac_cv_type_char" = yes; then
  61377. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  61378. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  61379. as_fn_error 77 "cannot compute sizeof (char)
  61380. See \`config.log' for more details" "$LINENO" 5; }
  61381. else
  61382. ac_cv_sizeof_char=0
  61383. fi
  61384. fi
  61385. fi
  61386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  61387. $as_echo "$ac_cv_sizeof_char" >&6; }
  61388. cat >>confdefs.h <<_ACEOF
  61389. #define SIZEOF_CHAR $ac_cv_sizeof_char
  61390. _ACEOF
  61391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  61392. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  61393. case "$ac_cv_sizeof_char" in
  61394. 1) acx_cv_type_int8_t=char ;;
  61395. *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
  61396. esac
  61397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  61398. $as_echo "$acx_cv_type_int8_t" >&6; }
  61399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  61400. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  61401. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  61402. 2:*) acx_cv_type_int16_t=int ;;
  61403. *:2) acx_cv_type_int16_t=short ;;
  61404. *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
  61405. esac
  61406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  61407. $as_echo "$acx_cv_type_int16_t" >&6; }
  61408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  61409. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  61410. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  61411. 4:*) acx_cv_type_int32_t=int ;;
  61412. *:4) acx_cv_type_int32_t=long ;;
  61413. *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
  61414. esac
  61415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  61416. $as_echo "$acx_cv_type_int32_t" >&6; }
  61417. fi
  61418. # These tests are here to make the output prettier
  61419. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  61420. case "$ac_cv_sizeof_long" in
  61421. 8) acx_cv_type_int64_t=long ;;
  61422. esac
  61423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  61424. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  61425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  61426. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  61427. fi
  61428. # Now we can use the above types
  61429. if test "$ac_cv_type_uintptr_t" != yes; then
  61430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  61431. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  61432. case $ac_cv_sizeof_void_p in
  61433. 2) acx_cv_type_intptr_t=int16_t ;;
  61434. 4) acx_cv_type_intptr_t=int32_t ;;
  61435. 8) acx_cv_type_intptr_t=int64_t ;;
  61436. *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  61437. esac
  61438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  61439. $as_echo "$acx_cv_type_intptr_t" >&6; }
  61440. fi
  61441. # ----------------- done all checks, emit header -------------
  61442. ac_config_commands="$ac_config_commands include/gstdint.h"
  61443. fi
  61444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU c++filt" >&5
  61445. $as_echo_n "checking for GNU c++filt... " >&6; }
  61446. if ${ac_cv_path_CXXFILT+:} false; then :
  61447. $as_echo_n "(cached) " >&6
  61448. else
  61449. if test -z "$CXXFILT"; then
  61450. ac_path_CXXFILT_found=false
  61451. # Loop through the user's path and test for each of PROGNAME-LIST
  61452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  61453. for as_dir in $PATH
  61454. do
  61455. IFS=$as_save_IFS
  61456. test -z "$as_dir" && as_dir=.
  61457. for ac_prog in c++filt gc++filt; do
  61458. for ac_exec_ext in '' $ac_executable_extensions; do
  61459. ac_path_CXXFILT="$as_dir/$ac_prog$ac_exec_ext"
  61460. as_fn_executable_p "$ac_path_CXXFILT" || continue
  61461. # Check for GNU $ac_path_CXXFILT
  61462. case `"$ac_path_CXXFILT" --version 2>&1` in
  61463. *GNU*)
  61464. ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:;;
  61465. esac
  61466. $ac_path_CXXFILT_found && break 3
  61467. done
  61468. done
  61469. done
  61470. IFS=$as_save_IFS
  61471. if test -z "$ac_cv_path_CXXFILT"; then
  61472. :
  61473. fi
  61474. else
  61475. ac_cv_path_CXXFILT=$CXXFILT
  61476. fi
  61477. fi
  61478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_CXXFILT" >&5
  61479. $as_echo "$ac_cv_path_CXXFILT" >&6; }
  61480. CXXFILT=$ac_cv_path_CXXFILT
  61481. # Check whether --enable-symvers was given.
  61482. if test "${enable_symvers+set}" = set; then :
  61483. enableval=$enable_symvers;
  61484. case "$enableval" in
  61485. yes|no|gnu|gnu-versioned-namespace|darwin|darwin-export|sun) ;;
  61486. *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  61487. esac
  61488. else
  61489. enable_symvers=yes
  61490. fi
  61491. # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
  61492. # don't know enough about $LD to do tricks...
  61493. # Sun style symbol versions needs GNU c++filt for make_sunver.pl to work
  61494. # with extern "C++" in version scripts.
  61495. # Turn a 'yes' into a suitable default.
  61496. if test x$enable_symvers = xyes ; then
  61497. if test $enable_shared = no || test "x$LD" = x || test x$gcc_no_link = xyes; then
  61498. enable_symvers=no
  61499. else
  61500. if test $with_gnu_ld = yes ; then
  61501. case ${target_os} in
  61502. hpux*)
  61503. enable_symvers=no ;;
  61504. *)
  61505. enable_symvers=gnu ;;
  61506. esac
  61507. else
  61508. case ${target_os} in
  61509. darwin*)
  61510. enable_symvers=darwin ;;
  61511. # Sun symbol versioning exists since Solaris 2.5.
  61512. solaris2.[5-9]* | solaris2.1[0-9]*)
  61513. # make_sunver.pl needs GNU c++filt to support extern "C++" in
  61514. # version scripts, so disable symbol versioning if none can be
  61515. # found.
  61516. if test -z "$ac_cv_path_CXXFILT"; then
  61517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  61518. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  61519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === no GNU c++filt could be found." >&5
  61520. $as_echo "$as_me: WARNING: === no GNU c++filt could be found." >&2;}
  61521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  61522. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  61523. enable_symvers=no
  61524. else
  61525. enable_symvers=sun
  61526. fi
  61527. ;;
  61528. *)
  61529. enable_symvers=no ;;
  61530. esac
  61531. fi
  61532. fi
  61533. fi
  61534. # Check to see if 'darwin' or 'darwin-export' can win.
  61535. if test x$enable_symvers = xdarwin-export ; then
  61536. enable_symvers=darwin
  61537. fi
  61538. # Check if 'sun' was requested on non-Solaris 2 platforms.
  61539. if test x$enable_symvers = xsun ; then
  61540. case ${target_os} in
  61541. solaris2*)
  61542. # All fine.
  61543. ;;
  61544. *)
  61545. # Unlikely to work.
  61546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  61547. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  61548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  61549. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  61550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  61551. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  61552. enable_symvers=no
  61553. ;;
  61554. esac
  61555. fi
  61556. # Check to see if 'gnu' can win.
  61557. if test $enable_symvers = gnu ||
  61558. test $enable_symvers = gnu-versioned-namespace ||
  61559. test $enable_symvers = sun; then
  61560. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  61561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  61562. $as_echo_n "checking for shared libgcc... " >&6; }
  61563. ac_save_CFLAGS="$CFLAGS"
  61564. CFLAGS=' -lgcc_s'
  61565. if test x$gcc_no_link = xyes; then
  61566. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61567. fi
  61568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61569. /* end confdefs.h. */
  61570. int
  61571. main ()
  61572. {
  61573. return 0;
  61574. ;
  61575. return 0;
  61576. }
  61577. _ACEOF
  61578. if ac_fn_c_try_link "$LINENO"; then :
  61579. glibcxx_shared_libgcc=yes
  61580. else
  61581. glibcxx_shared_libgcc=no
  61582. fi
  61583. rm -f core conftest.err conftest.$ac_objext \
  61584. conftest$ac_exeext conftest.$ac_ext
  61585. CFLAGS="$ac_save_CFLAGS"
  61586. if test $glibcxx_shared_libgcc = no; then
  61587. cat > conftest.c <<EOF
  61588. int main (void) { return 0; }
  61589. EOF
  61590. glibcxx_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  61591. -shared -shared-libgcc -o conftest.so \
  61592. conftest.c -v 2>&1 >/dev/null \
  61593. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  61594. rm -f conftest.c conftest.so
  61595. if test x${glibcxx_libgcc_s_suffix+set} = xset; then
  61596. CFLAGS=" -lgcc_s$glibcxx_libgcc_s_suffix"
  61597. if test x$gcc_no_link = xyes; then
  61598. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61599. fi
  61600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61601. /* end confdefs.h. */
  61602. int
  61603. main ()
  61604. {
  61605. return 0;
  61606. ;
  61607. return 0;
  61608. }
  61609. _ACEOF
  61610. if ac_fn_c_try_link "$LINENO"; then :
  61611. glibcxx_shared_libgcc=yes
  61612. fi
  61613. rm -f core conftest.err conftest.$ac_objext \
  61614. conftest$ac_exeext conftest.$ac_ext
  61615. CFLAGS="$ac_save_CFLAGS"
  61616. fi
  61617. fi
  61618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_shared_libgcc" >&5
  61619. $as_echo "$glibcxx_shared_libgcc" >&6; }
  61620. # For GNU ld, we need at least this version. The format is described in
  61621. # GLIBCXX_CHECK_LINKER_FEATURES above.
  61622. glibcxx_min_gnu_ld_version=21400
  61623. # If no shared libgcc, can't win.
  61624. if test $glibcxx_shared_libgcc != yes; then
  61625. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
  61626. $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
  61627. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not building a shared libgcc_s." >&5
  61628. $as_echo "$as_me: WARNING: === you are not building a shared libgcc_s." >&2;}
  61629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  61630. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  61631. enable_symvers=no
  61632. elif test $with_gnu_ld != yes && test $enable_symvers = sun; then
  61633. : All interesting versions of Sun ld support sun style symbol versioning.
  61634. elif test $with_gnu_ld != yes ; then
  61635. # just fail for now
  61636. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
  61637. $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
  61638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not using the GNU linker." >&5
  61639. $as_echo "$as_me: WARNING: === you are not using the GNU linker." >&2;}
  61640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  61641. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  61642. enable_symvers=no
  61643. elif test $glibcxx_ld_is_gold = yes ; then
  61644. : All versions of gold support symbol versioning.
  61645. elif test $glibcxx_ld_is_mold = yes ; then
  61646. : All versions of mold support symbol versioning.
  61647. elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
  61648. # The right tools, the right setup, but too old. Fallbacks?
  61649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
  61650. $as_echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
  61651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  61652. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  61653. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  61654. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  61655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
  61656. $as_echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
  61657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  61658. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  61659. enable_symvers=no
  61660. fi
  61661. fi
  61662. # For libtool versioning info, format is CURRENT:REVISION:AGE
  61663. libtool_VERSION=6:30:0
  61664. # Everything parsed; figure out what files and settings to use.
  61665. case $enable_symvers in
  61666. no)
  61667. SYMVER_FILE=config/abi/pre/none.ver
  61668. ;;
  61669. gnu)
  61670. SYMVER_FILE=config/abi/pre/gnu.ver
  61671. $as_echo "#define _GLIBCXX_SYMVER_GNU 1" >>confdefs.h
  61672. ;;
  61673. gnu-versioned-namespace)
  61674. libtool_VERSION=8:0:0
  61675. SYMVER_FILE=config/abi/pre/gnu-versioned-namespace.ver
  61676. $as_echo "#define _GLIBCXX_SYMVER_GNU_NAMESPACE 1" >>confdefs.h
  61677. ;;
  61678. darwin)
  61679. SYMVER_FILE=config/abi/pre/gnu.ver
  61680. $as_echo "#define _GLIBCXX_SYMVER_DARWIN 1" >>confdefs.h
  61681. ;;
  61682. sun)
  61683. SYMVER_FILE=config/abi/pre/gnu.ver
  61684. $as_echo "#define _GLIBCXX_SYMVER_SUN 1" >>confdefs.h
  61685. ;;
  61686. esac
  61687. if test x$enable_symvers != xno ; then
  61688. $as_echo "#define _GLIBCXX_SYMVER 1" >>confdefs.h
  61689. fi
  61690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
  61691. $as_echo_n "checking whether the target supports .symver directive... " >&6; }
  61692. if ${glibcxx_cv_have_as_symver_directive+:} false; then :
  61693. $as_echo_n "(cached) " >&6
  61694. else
  61695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61696. /* end confdefs.h. */
  61697. void foo (void); __asm (".symver foo, bar@SYMVER");
  61698. int
  61699. main ()
  61700. {
  61701. ;
  61702. return 0;
  61703. }
  61704. _ACEOF
  61705. if ac_fn_c_try_compile "$LINENO"; then :
  61706. glibcxx_cv_have_as_symver_directive=yes
  61707. else
  61708. glibcxx_cv_have_as_symver_directive=no
  61709. fi
  61710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61711. fi
  61712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_as_symver_directive" >&5
  61713. $as_echo "$glibcxx_cv_have_as_symver_directive" >&6; }
  61714. if test $glibcxx_cv_have_as_symver_directive = yes; then
  61715. $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
  61716. fi
  61717. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  61718. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  61719. if test $enable_symvers != no ; then
  61720. case ${target_os} in
  61721. # The Solaris 2 runtime linker doesn't support the GNU extension of
  61722. # binding the same symbol to different versions
  61723. solaris2*)
  61724. ;;
  61725. # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
  61726. *)
  61727. $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
  61728. ;;
  61729. esac
  61730. fi
  61731. # Now, set up compatibility support, if any.
  61732. # In addition, need this to deal with std::size_t mangling in
  61733. # src/compatibility.cc. In a perfect world, could use
  61734. # typeid(std::size_t).name()[0] to do direct substitution.
  61735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t as unsigned int" >&5
  61736. $as_echo_n "checking for size_t as unsigned int... " >&6; }
  61737. ac_save_CFLAGS="$CFLAGS"
  61738. CFLAGS="-Werror"
  61739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61740. /* end confdefs.h. */
  61741. int
  61742. main ()
  61743. {
  61744. __SIZE_TYPE__* stp; unsigned int* uip; stp = uip;
  61745. ;
  61746. return 0;
  61747. }
  61748. _ACEOF
  61749. if ac_fn_c_try_compile "$LINENO"; then :
  61750. glibcxx_size_t_is_i=yes
  61751. else
  61752. glibcxx_size_t_is_i=no
  61753. fi
  61754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61755. CFLAGS=$ac_save_CFLAGS
  61756. if test "$glibcxx_size_t_is_i" = yes; then
  61757. $as_echo "#define _GLIBCXX_SIZE_T_IS_UINT 1" >>confdefs.h
  61758. fi
  61759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_size_t_is_i" >&5
  61760. $as_echo "$glibcxx_size_t_is_i" >&6; }
  61761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t as int" >&5
  61762. $as_echo_n "checking for ptrdiff_t as int... " >&6; }
  61763. ac_save_CFLAGS="$CFLAGS"
  61764. CFLAGS="-Werror"
  61765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61766. /* end confdefs.h. */
  61767. int
  61768. main ()
  61769. {
  61770. __PTRDIFF_TYPE__* ptp; int* ip; ptp = ip;
  61771. ;
  61772. return 0;
  61773. }
  61774. _ACEOF
  61775. if ac_fn_c_try_compile "$LINENO"; then :
  61776. glibcxx_ptrdiff_t_is_i=yes
  61777. else
  61778. glibcxx_ptrdiff_t_is_i=no
  61779. fi
  61780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61781. CFLAGS=$ac_save_CFLAGS
  61782. if test "$glibcxx_ptrdiff_t_is_i" = yes; then
  61783. $as_echo "#define _GLIBCXX_PTRDIFF_T_IS_INT 1" >>confdefs.h
  61784. fi
  61785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_ptrdiff_t_is_i" >&5
  61786. $as_echo "$glibcxx_ptrdiff_t_is_i" >&6; }
  61787. # Check whether --enable-libstdcxx-visibility was given.
  61788. if test "${enable_libstdcxx_visibility+set}" = set; then :
  61789. enableval=$enable_libstdcxx_visibility;
  61790. case "$enableval" in
  61791. yes|no) ;;
  61792. *) as_fn_error $? "Argument to enable/disable libstdcxx-visibility must be yes or no" "$LINENO" 5 ;;
  61793. esac
  61794. else
  61795. enable_libstdcxx_visibility=yes
  61796. fi
  61797. if test x$enable_libstdcxx_visibility = xyes ; then
  61798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  61799. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  61800. if ${glibcxx_cv_have_attribute_visibility+:} false; then :
  61801. $as_echo_n "(cached) " >&6
  61802. else
  61803. save_CFLAGS="$CFLAGS"
  61804. CFLAGS="$CFLAGS -Werror"
  61805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61806. /* end confdefs.h. */
  61807. void __attribute__((visibility("hidden"))) foo(void) { }
  61808. int
  61809. main ()
  61810. {
  61811. ;
  61812. return 0;
  61813. }
  61814. _ACEOF
  61815. if ac_fn_c_try_compile "$LINENO"; then :
  61816. glibcxx_cv_have_attribute_visibility=yes
  61817. else
  61818. glibcxx_cv_have_attribute_visibility=no
  61819. fi
  61820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61821. CFLAGS="$save_CFLAGS"
  61822. fi
  61823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_attribute_visibility" >&5
  61824. $as_echo "$glibcxx_cv_have_attribute_visibility" >&6; }
  61825. if test $glibcxx_cv_have_attribute_visibility = no; then
  61826. enable_libstdcxx_visibility=no
  61827. fi
  61828. fi
  61829. { $as_echo "$as_me:${as_lineno-$LINENO}: visibility supported: $enable_libstdcxx_visibility" >&5
  61830. $as_echo "$as_me: visibility supported: $enable_libstdcxx_visibility" >&6;}
  61831. # Check whether --enable-libstdcxx-dual-abi was given.
  61832. if test "${enable_libstdcxx_dual_abi+set}" = set; then :
  61833. enableval=$enable_libstdcxx_dual_abi;
  61834. case "$enableval" in
  61835. yes|no) ;;
  61836. *) as_fn_error $? "Argument to enable/disable libstdcxx-dual-abi must be yes or no" "$LINENO" 5 ;;
  61837. esac
  61838. else
  61839. enable_libstdcxx_dual_abi=yes
  61840. fi
  61841. if test x$enable_symvers = xgnu-versioned-namespace; then
  61842. # gnu-versioned-namespace is incompatible with the dual ABI.
  61843. enable_libstdcxx_dual_abi="no"
  61844. fi
  61845. if test x"$enable_libstdcxx_dual_abi" != xyes; then
  61846. { $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5
  61847. $as_echo "$as_me: dual ABI is disabled" >&6;}
  61848. default_libstdcxx_abi="gcc4-compatible"
  61849. fi
  61850. if test x$enable_libstdcxx_dual_abi = xyes; then
  61851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default std::string ABI to use" >&5
  61852. $as_echo_n "checking for default std::string ABI to use... " >&6; }
  61853. # Check whether --with-default-libstdcxx-abi was given.
  61854. if test "${with_default_libstdcxx_abi+set}" = set; then :
  61855. withval=$with_default_libstdcxx_abi; case "$withval" in
  61856. gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
  61857. new|cxx11) default_libstdcxx_abi="new" ;;
  61858. c++*|gnu++*) as_fn_error $? "Supported arguments for --with-default-libstdcxx-abi have changed, use \"new\" or \"gcc4-compatible\"" "$LINENO" 5 ;;
  61859. *) as_fn_error $? "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;;
  61860. esac
  61861. else
  61862. default_libstdcxx_abi="new"
  61863. fi
  61864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5
  61865. $as_echo "${default_libstdcxx_abi}" >&6; }
  61866. fi
  61867. if test $default_libstdcxx_abi = "new"; then
  61868. glibcxx_cxx11_abi=1
  61869. glibcxx_cxx98_abi=0
  61870. else
  61871. glibcxx_cxx11_abi=0
  61872. glibcxx_cxx98_abi=1
  61873. fi
  61874. ac_ldbl_compat=no
  61875. ac_ldbl_alt128_compat=no
  61876. ac_ldbl_ieee128_default=no
  61877. LONG_DOUBLE_COMPAT_FLAGS="-mlong-double-64"
  61878. LONG_DOUBLE_128_FLAGS=
  61879. LONG_DOUBLE_ALT128_COMPAT_FLAGS=
  61880. case "$target" in
  61881. powerpc*-*-linux* | \
  61882. sparc*-*-linux* | \
  61883. s390*-*-linux* | \
  61884. alpha*-*-linux*)
  61885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61886. /* end confdefs.h. */
  61887. int
  61888. main ()
  61889. {
  61890. #if !defined __LONG_DOUBLE_128__ || (defined(__sparc__) && defined(__arch64__))
  61891. #error no need for long double compatibility
  61892. #endif
  61893. ;
  61894. return 0;
  61895. }
  61896. _ACEOF
  61897. if ac_fn_c_try_compile "$LINENO"; then :
  61898. ac_ldbl_compat=yes
  61899. else
  61900. ac_ldbl_compat=no
  61901. fi
  61902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61903. if test "$ac_ldbl_compat" = yes; then
  61904. $as_echo "#define _GLIBCXX_LONG_DOUBLE_COMPAT 1" >>confdefs.h
  61905. port_specific_symbol_files="\$(top_srcdir)/config/os/gnu-linux/ldbl-extra.ver"
  61906. case "$target" in
  61907. powerpc*-*-linux*)
  61908. LONG_DOUBLE_COMPAT_FLAGS="$LONG_DOUBLE_COMPAT_FLAGS -mno-gnu-attribute"
  61909. # Check for IEEE128 support in libm:
  61910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __frexpieee128 in -lm" >&5
  61911. $as_echo_n "checking for __frexpieee128 in -lm... " >&6; }
  61912. if ${ac_cv_lib_m___frexpieee128+:} false; then :
  61913. $as_echo_n "(cached) " >&6
  61914. else
  61915. ac_check_lib_save_LIBS=$LIBS
  61916. LIBS="-lm $LIBS"
  61917. if test x$gcc_no_link = xyes; then
  61918. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  61919. fi
  61920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61921. /* end confdefs.h. */
  61922. /* Override any GCC internal prototype to avoid an error.
  61923. Use char because int might match the return type of a GCC
  61924. builtin and then its argument prototype would still apply. */
  61925. #ifdef __cplusplus
  61926. extern "C"
  61927. #endif
  61928. char __frexpieee128 ();
  61929. int
  61930. main ()
  61931. {
  61932. return __frexpieee128 ();
  61933. ;
  61934. return 0;
  61935. }
  61936. _ACEOF
  61937. if ac_fn_c_try_link "$LINENO"; then :
  61938. ac_cv_lib_m___frexpieee128=yes
  61939. else
  61940. ac_cv_lib_m___frexpieee128=no
  61941. fi
  61942. rm -f core conftest.err conftest.$ac_objext \
  61943. conftest$ac_exeext conftest.$ac_ext
  61944. LIBS=$ac_check_lib_save_LIBS
  61945. fi
  61946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___frexpieee128" >&5
  61947. $as_echo "$ac_cv_lib_m___frexpieee128" >&6; }
  61948. if test "x$ac_cv_lib_m___frexpieee128" = xyes; then :
  61949. ac_ldbl_ieee128_in_libc=yes
  61950. else
  61951. ac_ldbl_ieee128_in_libc=no
  61952. fi
  61953. if test $ac_ldbl_ieee128_in_libc = yes; then
  61954. # Determine which long double format is the compiler's default:
  61955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  61956. /* end confdefs.h. */
  61957. int
  61958. main ()
  61959. {
  61960. #ifndef __LONG_DOUBLE_IEEE128__
  61961. #error compiler defaults to ibm128
  61962. #endif
  61963. ;
  61964. return 0;
  61965. }
  61966. _ACEOF
  61967. if ac_fn_c_try_compile "$LINENO"; then :
  61968. ac_ldbl_ieee128_default=yes
  61969. else
  61970. ac_ldbl_ieee128_default=no
  61971. fi
  61972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  61973. # Library objects should use default long double format.
  61974. if test "$ac_ldbl_ieee128_default" = yes; then
  61975. LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
  61976. # Except for the ones that explicitly use these flags:
  61977. LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ibmlongdouble -mno-gnu-attribute -Wno-psabi"
  61978. else
  61979. LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
  61980. LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ieeelongdouble -mno-gnu-attribute -Wno-psabi"
  61981. fi
  61982. $as_echo "#define _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT 1" >>confdefs.h
  61983. port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/os/gnu-linux/ldbl-ieee128-extra.ver"
  61984. ac_ldbl_alt128_compat=yes
  61985. else
  61986. ac_ldbl_alt128_compat=no
  61987. fi
  61988. ;;
  61989. esac
  61990. fi
  61991. esac
  61992. # Check if assembler supports disabling hardware capability support.
  61993. test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
  61994. # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
  61995. # with a different meaning.
  61996. case ${target_os} in
  61997. solaris2*)
  61998. ac_save_CFLAGS="$CFLAGS"
  61999. CFLAGS="$CFLAGS -Wa,-nH"
  62000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
  62001. $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
  62002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62003. /* end confdefs.h. */
  62004. int
  62005. main ()
  62006. {
  62007. return 0;
  62008. ;
  62009. return 0;
  62010. }
  62011. _ACEOF
  62012. if ac_fn_c_try_compile "$LINENO"; then :
  62013. ac_hwcap_flags=yes
  62014. else
  62015. ac_hwcap_flags=no
  62016. fi
  62017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62018. if test "$ac_hwcap_flags" = "yes"; then
  62019. HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
  62020. fi
  62021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
  62022. $as_echo "$ac_hwcap_flags" >&6; }
  62023. CFLAGS="$ac_save_CFLAGS"
  62024. ;;
  62025. esac
  62026. # Check if assembler supports rdrand opcode.
  62027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdrand support in assembler" >&5
  62028. $as_echo_n "checking for rdrand support in assembler... " >&6; }
  62029. if ${ac_cv_x86_rdrand+:} false; then :
  62030. $as_echo_n "(cached) " >&6
  62031. else
  62032. ac_cv_x86_rdrand=no
  62033. case "$target" in
  62034. i?86-*-* | \
  62035. x86_64-*-*)
  62036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62037. /* end confdefs.h. */
  62038. int
  62039. main ()
  62040. {
  62041. asm("rdrand %eax");
  62042. ;
  62043. return 0;
  62044. }
  62045. _ACEOF
  62046. if ac_fn_c_try_compile "$LINENO"; then :
  62047. ac_cv_x86_rdrand=yes
  62048. else
  62049. ac_cv_x86_rdrand=no
  62050. fi
  62051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62052. esac
  62053. fi
  62054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdrand" >&5
  62055. $as_echo "$ac_cv_x86_rdrand" >&6; }
  62056. if test $ac_cv_x86_rdrand = yes; then
  62057. $as_echo "#define _GLIBCXX_X86_RDRAND 1" >>confdefs.h
  62058. fi
  62059. # Check if assembler supports rdseed opcode.
  62060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdseed support in assembler" >&5
  62061. $as_echo_n "checking for rdseed support in assembler... " >&6; }
  62062. if ${ac_cv_x86_rdseed+:} false; then :
  62063. $as_echo_n "(cached) " >&6
  62064. else
  62065. ac_cv_x86_rdseed=no
  62066. case "$target" in
  62067. i?86-*-* | \
  62068. x86_64-*-*)
  62069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62070. /* end confdefs.h. */
  62071. int
  62072. main ()
  62073. {
  62074. asm("rdseed %eax");
  62075. ;
  62076. return 0;
  62077. }
  62078. _ACEOF
  62079. if ac_fn_c_try_compile "$LINENO"; then :
  62080. ac_cv_x86_rdseed=yes
  62081. else
  62082. ac_cv_x86_rdseed=no
  62083. fi
  62084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62085. esac
  62086. fi
  62087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdseed" >&5
  62088. $as_echo "$ac_cv_x86_rdseed" >&6; }
  62089. if test $ac_cv_x86_rdseed = yes; then
  62090. $as_echo "#define _GLIBCXX_X86_RDSEED 1" >>confdefs.h
  62091. fi
  62092. # Check for other random number APIs
  62093. ac_ext=cpp
  62094. ac_cpp='$CXXCPP $CPPFLAGS'
  62095. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62096. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62097. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
  62099. $as_echo_n "checking for getentropy... " >&6; }
  62100. if ${glibcxx_cv_getentropy+:} false; then :
  62101. $as_echo_n "(cached) " >&6
  62102. else
  62103. if test x$gcc_no_link = xyes; then
  62104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62105. /* end confdefs.h. */
  62106. #include <unistd.h>
  62107. int
  62108. main ()
  62109. {
  62110. unsigned i;
  62111. ::getentropy(&i, sizeof(i));
  62112. ;
  62113. return 0;
  62114. }
  62115. _ACEOF
  62116. if ac_fn_cxx_try_compile "$LINENO"; then :
  62117. glibcxx_cv_getentropy=yes
  62118. else
  62119. glibcxx_cv_getentropy=no
  62120. fi
  62121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62122. else
  62123. if test x$gcc_no_link = xyes; then
  62124. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62125. fi
  62126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62127. /* end confdefs.h. */
  62128. #include <unistd.h>
  62129. int
  62130. main ()
  62131. {
  62132. unsigned i;
  62133. ::getentropy(&i, sizeof(i));
  62134. ;
  62135. return 0;
  62136. }
  62137. _ACEOF
  62138. if ac_fn_cxx_try_link "$LINENO"; then :
  62139. glibcxx_cv_getentropy=yes
  62140. else
  62141. glibcxx_cv_getentropy=no
  62142. fi
  62143. rm -f core conftest.err conftest.$ac_objext \
  62144. conftest$ac_exeext conftest.$ac_ext
  62145. fi
  62146. fi
  62147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getentropy" >&5
  62148. $as_echo "$glibcxx_cv_getentropy" >&6; }
  62149. if test $glibcxx_cv_getentropy = yes; then
  62150. $as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
  62151. fi
  62152. ac_ext=c
  62153. ac_cpp='$CPP $CPPFLAGS'
  62154. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62155. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62156. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62157. ac_ext=cpp
  62158. ac_cpp='$CXXCPP $CPPFLAGS'
  62159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random" >&5
  62163. $as_echo_n "checking for arc4random... " >&6; }
  62164. if ${glibcxx_cv_arc4random+:} false; then :
  62165. $as_echo_n "(cached) " >&6
  62166. else
  62167. if test x$gcc_no_link = xyes; then
  62168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62169. /* end confdefs.h. */
  62170. #include <stdlib.h>
  62171. int
  62172. main ()
  62173. {
  62174. unsigned i = ::arc4random();
  62175. ;
  62176. return 0;
  62177. }
  62178. _ACEOF
  62179. if ac_fn_cxx_try_compile "$LINENO"; then :
  62180. glibcxx_cv_arc4random=yes
  62181. else
  62182. glibcxx_cv_arc4random=no
  62183. fi
  62184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62185. else
  62186. if test x$gcc_no_link = xyes; then
  62187. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62188. fi
  62189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62190. /* end confdefs.h. */
  62191. #include <stdlib.h>
  62192. int
  62193. main ()
  62194. {
  62195. unsigned i = ::arc4random();
  62196. ;
  62197. return 0;
  62198. }
  62199. _ACEOF
  62200. if ac_fn_cxx_try_link "$LINENO"; then :
  62201. glibcxx_cv_arc4random=yes
  62202. else
  62203. glibcxx_cv_arc4random=no
  62204. fi
  62205. rm -f core conftest.err conftest.$ac_objext \
  62206. conftest$ac_exeext conftest.$ac_ext
  62207. fi
  62208. fi
  62209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_arc4random" >&5
  62210. $as_echo "$glibcxx_cv_arc4random" >&6; }
  62211. if test $glibcxx_cv_arc4random = yes; then
  62212. $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
  62213. fi
  62214. ac_ext=c
  62215. ac_cpp='$CPP $CPPFLAGS'
  62216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62219. # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
  62220. # Do checks for resource limit functions.
  62221. ac_ext=cpp
  62222. ac_cpp='$CXXCPP $CPPFLAGS'
  62223. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62224. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62225. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62226. setrlimit_have_headers=yes
  62227. for ac_header in unistd.h sys/time.h sys/resource.h
  62228. do :
  62229. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  62230. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  62231. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  62232. cat >>confdefs.h <<_ACEOF
  62233. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  62234. _ACEOF
  62235. else
  62236. setrlimit_have_headers=no
  62237. fi
  62238. done
  62239. # If don't have the headers, then we can't run the tests now, and we
  62240. # won't be seeing any of these during testsuite compilation.
  62241. if test $setrlimit_have_headers = yes; then
  62242. # Can't do these in a loop, else the resulting syntax is wrong.
  62243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_DATA" >&5
  62244. $as_echo_n "checking for RLIMIT_DATA... " >&6; }
  62245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62246. /* end confdefs.h. */
  62247. #include <unistd.h>
  62248. #include <sys/time.h>
  62249. #include <sys/resource.h>
  62250. int
  62251. main ()
  62252. {
  62253. int f = RLIMIT_DATA ;
  62254. ;
  62255. return 0;
  62256. }
  62257. _ACEOF
  62258. if ac_fn_cxx_try_compile "$LINENO"; then :
  62259. glibcxx_mresult=1
  62260. else
  62261. glibcxx_mresult=0
  62262. fi
  62263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62264. cat >>confdefs.h <<_ACEOF
  62265. #define HAVE_LIMIT_DATA $glibcxx_mresult
  62266. _ACEOF
  62267. if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
  62268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  62269. $as_echo "$res" >&6; }
  62270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_RSS" >&5
  62271. $as_echo_n "checking for RLIMIT_RSS... " >&6; }
  62272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62273. /* end confdefs.h. */
  62274. #include <unistd.h>
  62275. #include <sys/time.h>
  62276. #include <sys/resource.h>
  62277. int
  62278. main ()
  62279. {
  62280. int f = RLIMIT_RSS ;
  62281. ;
  62282. return 0;
  62283. }
  62284. _ACEOF
  62285. if ac_fn_cxx_try_compile "$LINENO"; then :
  62286. glibcxx_mresult=1
  62287. else
  62288. glibcxx_mresult=0
  62289. fi
  62290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62291. cat >>confdefs.h <<_ACEOF
  62292. #define HAVE_LIMIT_RSS $glibcxx_mresult
  62293. _ACEOF
  62294. if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
  62295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  62296. $as_echo "$res" >&6; }
  62297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_VMEM" >&5
  62298. $as_echo_n "checking for RLIMIT_VMEM... " >&6; }
  62299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62300. /* end confdefs.h. */
  62301. #include <unistd.h>
  62302. #include <sys/time.h>
  62303. #include <sys/resource.h>
  62304. int
  62305. main ()
  62306. {
  62307. int f = RLIMIT_VMEM ;
  62308. ;
  62309. return 0;
  62310. }
  62311. _ACEOF
  62312. if ac_fn_cxx_try_compile "$LINENO"; then :
  62313. glibcxx_mresult=1
  62314. else
  62315. glibcxx_mresult=0
  62316. fi
  62317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62318. cat >>confdefs.h <<_ACEOF
  62319. #define HAVE_LIMIT_VMEM $glibcxx_mresult
  62320. _ACEOF
  62321. if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
  62322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  62323. $as_echo "$res" >&6; }
  62324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_AS" >&5
  62325. $as_echo_n "checking for RLIMIT_AS... " >&6; }
  62326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62327. /* end confdefs.h. */
  62328. #include <unistd.h>
  62329. #include <sys/time.h>
  62330. #include <sys/resource.h>
  62331. int
  62332. main ()
  62333. {
  62334. int f = RLIMIT_AS ;
  62335. ;
  62336. return 0;
  62337. }
  62338. _ACEOF
  62339. if ac_fn_cxx_try_compile "$LINENO"; then :
  62340. glibcxx_mresult=1
  62341. else
  62342. glibcxx_mresult=0
  62343. fi
  62344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62345. cat >>confdefs.h <<_ACEOF
  62346. #define HAVE_LIMIT_AS $glibcxx_mresult
  62347. _ACEOF
  62348. if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
  62349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  62350. $as_echo "$res" >&6; }
  62351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_FSIZE" >&5
  62352. $as_echo_n "checking for RLIMIT_FSIZE... " >&6; }
  62353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62354. /* end confdefs.h. */
  62355. #include <unistd.h>
  62356. #include <sys/time.h>
  62357. #include <sys/resource.h>
  62358. int
  62359. main ()
  62360. {
  62361. int f = RLIMIT_FSIZE ;
  62362. ;
  62363. return 0;
  62364. }
  62365. _ACEOF
  62366. if ac_fn_cxx_try_compile "$LINENO"; then :
  62367. glibcxx_mresult=1
  62368. else
  62369. glibcxx_mresult=0
  62370. fi
  62371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62372. cat >>confdefs.h <<_ACEOF
  62373. #define HAVE_LIMIT_FSIZE $glibcxx_mresult
  62374. _ACEOF
  62375. if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
  62376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
  62377. $as_echo "$res" >&6; }
  62378. # Check for rlimit, setrlimit.
  62379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for testsuite resource limits support" >&5
  62380. $as_echo_n "checking for testsuite resource limits support... " >&6; }
  62381. if ${glibcxx_cv_setrlimit+:} false; then :
  62382. $as_echo_n "(cached) " >&6
  62383. else
  62384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62385. /* end confdefs.h. */
  62386. #include <unistd.h>
  62387. #include <sys/time.h>
  62388. #include <sys/resource.h>
  62389. int
  62390. main ()
  62391. {
  62392. struct rlimit r;
  62393. setrlimit(0, &r);
  62394. ;
  62395. return 0;
  62396. }
  62397. _ACEOF
  62398. if ac_fn_cxx_try_compile "$LINENO"; then :
  62399. glibcxx_cv_setrlimit=yes
  62400. else
  62401. glibcxx_cv_setrlimit=no
  62402. fi
  62403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62404. fi
  62405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_setrlimit" >&5
  62406. $as_echo "$glibcxx_cv_setrlimit" >&6; }
  62407. if test $glibcxx_cv_setrlimit = yes; then
  62408. $as_echo "#define _GLIBCXX_RES_LIMITS 1" >>confdefs.h
  62409. fi
  62410. fi
  62411. ac_ext=c
  62412. ac_cpp='$CPP $CPPFLAGS'
  62413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62416. if $GLIBCXX_IS_NATIVE ; then
  62417. # Look for setenv, so that extended locale tests can be performed.
  62418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv declaration" >&5
  62419. $as_echo_n "checking for setenv declaration... " >&6; }
  62420. if test x${glibcxx_cv_func_setenv_use+set} != xset; then
  62421. if ${glibcxx_cv_func_setenv_use+:} false; then :
  62422. $as_echo_n "(cached) " >&6
  62423. else
  62424. ac_ext=cpp
  62425. ac_cpp='$CXXCPP $CPPFLAGS'
  62426. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62427. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62428. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62430. /* end confdefs.h. */
  62431. #include <stdlib.h>
  62432. int
  62433. main ()
  62434. {
  62435. setenv(0, 0, 0);
  62436. ;
  62437. return 0;
  62438. }
  62439. _ACEOF
  62440. if ac_fn_cxx_try_compile "$LINENO"; then :
  62441. glibcxx_cv_func_setenv_use=yes
  62442. else
  62443. glibcxx_cv_func_setenv_use=no
  62444. fi
  62445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62446. ac_ext=c
  62447. ac_cpp='$CPP $CPPFLAGS'
  62448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62451. fi
  62452. fi
  62453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_setenv_use" >&5
  62454. $as_echo "$glibcxx_cv_func_setenv_use" >&6; }
  62455. if test x$glibcxx_cv_func_setenv_use = x"yes"; then
  62456. for ac_func in setenv
  62457. do :
  62458. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  62459. if test "x$ac_cv_func_setenv" = xyes; then :
  62460. cat >>confdefs.h <<_ACEOF
  62461. #define HAVE_SETENV 1
  62462. _ACEOF
  62463. fi
  62464. done
  62465. fi
  62466. fi
  62467. if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
  62468. test $enable_symvers != no; then
  62469. case "$host" in
  62470. *-*-cygwin*)
  62471. enable_abi_check=no ;;
  62472. *)
  62473. enable_abi_check=yes ;;
  62474. esac
  62475. else
  62476. # Only build this as native, since automake does not understand
  62477. # CXX_FOR_BUILD.
  62478. enable_abi_check=no
  62479. fi
  62480. # Export file names for ABI checking.
  62481. baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
  62482. baseline_subdir_switch="$abi_baseline_subdir_switch"
  62483. # For gthread support. Depends on GLIBCXX_ENABLE_SYMVERS.
  62484. # Check whether --enable-libstdcxx-threads was given.
  62485. if test "${enable_libstdcxx_threads+set}" = set; then :
  62486. enableval=$enable_libstdcxx_threads;
  62487. case "$enableval" in
  62488. yes|no) ;;
  62489. *) as_fn_error $? "Argument to enable/disable libstdcxx-threads must be yes or no" "$LINENO" 5 ;;
  62490. esac
  62491. else
  62492. enable_libstdcxx_threads=auto
  62493. fi
  62494. if test x$enable_libstdcxx_threads = xauto ||
  62495. test x$enable_libstdcxx_threads = xyes; then
  62496. ac_ext=cpp
  62497. ac_cpp='$CXXCPP $CPPFLAGS'
  62498. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62499. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62500. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62501. ac_save_CXXFLAGS="$CXXFLAGS"
  62502. CXXFLAGS="$CXXFLAGS -fno-exceptions \
  62503. -I${toplevel_srcdir}/libgcc -I${toplevel_builddir}/libgcc"
  62504. target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
  62505. case $target_thread_file in
  62506. posix)
  62507. CXXFLAGS="$CXXFLAGS -DSUPPORTS_WEAK -DGTHREAD_USE_WEAK -D_PTHREADS"
  62508. esac
  62509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it can be safely assumed that mutex_timedlock is available" >&5
  62510. $as_echo_n "checking whether it can be safely assumed that mutex_timedlock is available... " >&6; }
  62511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62512. /* end confdefs.h. */
  62513. #include <unistd.h>
  62514. int
  62515. main ()
  62516. {
  62517. // In case of POSIX threads check _POSIX_TIMEOUTS.
  62518. #if (defined(_PTHREADS) \
  62519. && (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
  62520. #error
  62521. #endif
  62522. ;
  62523. return 0;
  62524. }
  62525. _ACEOF
  62526. if ac_fn_cxx_try_compile "$LINENO"; then :
  62527. ac_gthread_use_mutex_timedlock=1
  62528. else
  62529. ac_gthread_use_mutex_timedlock=0
  62530. fi
  62531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62532. cat >>confdefs.h <<_ACEOF
  62533. #define _GTHREAD_USE_MUTEX_TIMEDLOCK $ac_gthread_use_mutex_timedlock
  62534. _ACEOF
  62535. if test $ac_gthread_use_mutex_timedlock = 1 ; then res_mutex_timedlock=yes ;
  62536. else res_mutex_timedlock=no ; fi
  62537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_mutex_timedlock" >&5
  62538. $as_echo "$res_mutex_timedlock" >&6; }
  62539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthreads library" >&5
  62540. $as_echo_n "checking for gthreads library... " >&6; }
  62541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62542. /* end confdefs.h. */
  62543. #include "gthr.h"
  62544. int
  62545. main ()
  62546. {
  62547. #ifndef __GTHREADS_CXX0X
  62548. #error
  62549. #endif
  62550. ;
  62551. return 0;
  62552. }
  62553. _ACEOF
  62554. if ac_fn_cxx_try_compile "$LINENO"; then :
  62555. ac_has_gthreads=yes
  62556. else
  62557. ac_has_gthreads=no
  62558. fi
  62559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62560. else
  62561. ac_has_gthreads=no
  62562. fi
  62563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gthreads" >&5
  62564. $as_echo "$ac_has_gthreads" >&6; }
  62565. if test x"$ac_has_gthreads" = x"yes"; then
  62566. $as_echo "#define _GLIBCXX_HAS_GTHREADS 1" >>confdefs.h
  62567. # Also check for pthread_rwlock_t for std::shared_timed_mutex in C++14
  62568. # but only do so if we're using pthread in the gthread library.
  62569. # On VxWorks for example, pthread_rwlock_t is defined in sys/types.h
  62570. # but the pthread library is not there by default and the gthread library
  62571. # does not use it.
  62572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62573. /* end confdefs.h. */
  62574. #include "gthr.h"
  62575. int
  62576. main ()
  62577. {
  62578. #if (!defined(_PTHREADS))
  62579. #error
  62580. #endif
  62581. ;
  62582. return 0;
  62583. }
  62584. _ACEOF
  62585. if ac_fn_cxx_try_compile "$LINENO"; then :
  62586. ac_gthread_use_pthreads=yes
  62587. else
  62588. ac_gthread_use_pthreads=no
  62589. fi
  62590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62591. if test x"$ac_gthread_use_pthreads" = x"yes"; then
  62592. ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include \"gthr.h\"
  62593. "
  62594. if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
  62595. $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_T 1" >>confdefs.h
  62596. fi
  62597. fi
  62598. fi
  62599. ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
  62600. if test "x$ac_cv_header_semaphore_h" = xyes; then :
  62601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Semaphores and sem_timedwait" >&5
  62602. $as_echo_n "checking for POSIX Semaphores and sem_timedwait... " >&6; }
  62603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62604. /* end confdefs.h. */
  62605. #include <unistd.h>
  62606. #include <semaphore.h>
  62607. #include <limits.h>
  62608. int
  62609. main ()
  62610. {
  62611. #if !defined _POSIX_TIMEOUTS || _POSIX_TIMEOUTS <= 0
  62612. # error "POSIX Timeouts option not supported"
  62613. #elif !defined _POSIX_SEMAPHORES || _POSIX_SEMAPHORES <= 0
  62614. # error "POSIX Semaphores option not supported"
  62615. #else
  62616. #if defined SEM_VALUE_MAX
  62617. constexpr int sem_value_max = SEM_VALUE_MAX;
  62618. #elif defined _POSIX_SEM_VALUE_MAX
  62619. constexpr int sem_value_max = _POSIX_SEM_VALUE_MAX;
  62620. #else
  62621. # error "SEM_VALUE_MAX not available"
  62622. #endif
  62623. sem_t sem;
  62624. sem_init(&sem, 0, sem_value_max);
  62625. struct timespec ts = { 0 };
  62626. sem_timedwait(&sem, &ts);
  62627. #endif
  62628. ;
  62629. return 0;
  62630. }
  62631. _ACEOF
  62632. if ac_fn_cxx_try_compile "$LINENO"; then :
  62633. ac_have_posix_semaphore=yes
  62634. else
  62635. ac_have_posix_semaphore=no
  62636. fi
  62637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62638. else
  62639. ac_have_posix_semaphore=no
  62640. fi
  62641. if test $ac_have_posix_semaphore = yes ; then
  62642. $as_echo "#define HAVE_POSIX_SEMAPHORE 1" >>confdefs.h
  62643. fi
  62644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_posix_semaphore" >&5
  62645. $as_echo "$ac_have_posix_semaphore" >&6; }
  62646. CXXFLAGS="$ac_save_CXXFLAGS"
  62647. ac_ext=c
  62648. ac_cpp='$CPP $CPPFLAGS'
  62649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  62652. # For Filesystem TS.
  62653. for ac_header in fcntl.h dirent.h sys/statvfs.h utime.h
  62654. do :
  62655. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  62656. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  62657. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  62658. cat >>confdefs.h <<_ACEOF
  62659. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  62660. _ACEOF
  62661. fi
  62662. done
  62663. # Check whether --enable-libstdcxx-filesystem-ts was given.
  62664. if test "${enable_libstdcxx_filesystem_ts+set}" = set; then :
  62665. enableval=$enable_libstdcxx_filesystem_ts;
  62666. case "$enableval" in
  62667. yes|no|auto) ;;
  62668. *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-filesystem-ts" "$LINENO" 5 ;;
  62669. esac
  62670. else
  62671. enable_libstdcxx_filesystem_ts=auto
  62672. fi
  62673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Filesystem TS support" >&5
  62674. $as_echo_n "checking whether to build Filesystem TS support... " >&6; }
  62675. if test x"$ac_cv_header_dirent_h" != x"yes"; then
  62676. enable_libstdcxx_filesystem_ts=no
  62677. fi
  62678. if test x"$enable_libstdcxx_filesystem_ts" = x"auto"; then
  62679. case "${target_os}" in
  62680. freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
  62681. enable_libstdcxx_filesystem_ts=yes
  62682. ;;
  62683. gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
  62684. enable_libstdcxx_filesystem_ts=yes
  62685. ;;
  62686. rtems*)
  62687. enable_libstdcxx_filesystem_ts=yes
  62688. ;;
  62689. solaris*)
  62690. enable_libstdcxx_filesystem_ts=yes
  62691. ;;
  62692. mingw*)
  62693. enable_libstdcxx_filesystem_ts=yes
  62694. ;;
  62695. *)
  62696. enable_libstdcxx_filesystem_ts=no
  62697. ;;
  62698. esac
  62699. fi
  62700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_filesystem_ts" >&5
  62701. $as_echo "$enable_libstdcxx_filesystem_ts" >&6; }
  62702. ac_ext=cpp
  62703. ac_cpp='$CXXCPP $CPPFLAGS'
  62704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  62705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  62706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  62707. ac_save_CXXFLAGS="$CXXFLAGS"
  62708. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  62709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_type" >&5
  62710. $as_echo_n "checking for struct dirent.d_type... " >&6; }
  62711. if ${glibcxx_cv_dirent_d_type+:} false; then :
  62712. $as_echo_n "(cached) " >&6
  62713. else
  62714. if test x$gcc_no_link = xyes; then
  62715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62716. /* end confdefs.h. */
  62717. #include <dirent.h>
  62718. int
  62719. main ()
  62720. {
  62721. struct dirent d;
  62722. if (sizeof d.d_type) return 0;
  62723. ;
  62724. return 0;
  62725. }
  62726. _ACEOF
  62727. if ac_fn_cxx_try_compile "$LINENO"; then :
  62728. glibcxx_cv_dirent_d_type=yes
  62729. else
  62730. glibcxx_cv_dirent_d_type=no
  62731. fi
  62732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62733. else
  62734. if test x$gcc_no_link = xyes; then
  62735. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62736. fi
  62737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62738. /* end confdefs.h. */
  62739. #include <dirent.h>
  62740. int
  62741. main ()
  62742. {
  62743. struct dirent d;
  62744. if (sizeof d.d_type) return 0;
  62745. ;
  62746. return 0;
  62747. }
  62748. _ACEOF
  62749. if ac_fn_cxx_try_link "$LINENO"; then :
  62750. glibcxx_cv_dirent_d_type=yes
  62751. else
  62752. glibcxx_cv_dirent_d_type=no
  62753. fi
  62754. rm -f core conftest.err conftest.$ac_objext \
  62755. conftest$ac_exeext conftest.$ac_ext
  62756. fi
  62757. fi
  62758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirent_d_type" >&5
  62759. $as_echo "$glibcxx_cv_dirent_d_type" >&6; }
  62760. if test $glibcxx_cv_dirent_d_type = yes; then
  62761. $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
  62762. fi
  62763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
  62764. $as_echo_n "checking for realpath... " >&6; }
  62765. if ${glibcxx_cv_realpath+:} false; then :
  62766. $as_echo_n "(cached) " >&6
  62767. else
  62768. if test x$gcc_no_link = xyes; then
  62769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62770. /* end confdefs.h. */
  62771. #include <limits.h>
  62772. #include <stdlib.h>
  62773. #include <unistd.h>
  62774. int
  62775. main ()
  62776. {
  62777. #if _XOPEN_VERSION < 500
  62778. #error
  62779. #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
  62780. char *tmp = realpath((const char*)NULL, (char*)NULL);
  62781. #else
  62782. #error
  62783. #endif
  62784. ;
  62785. return 0;
  62786. }
  62787. _ACEOF
  62788. if ac_fn_cxx_try_compile "$LINENO"; then :
  62789. glibcxx_cv_realpath=yes
  62790. else
  62791. glibcxx_cv_realpath=no
  62792. fi
  62793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62794. else
  62795. if test x$gcc_no_link = xyes; then
  62796. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62797. fi
  62798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62799. /* end confdefs.h. */
  62800. #include <limits.h>
  62801. #include <stdlib.h>
  62802. #include <unistd.h>
  62803. int
  62804. main ()
  62805. {
  62806. #if _XOPEN_VERSION < 500
  62807. #error
  62808. #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
  62809. char *tmp = realpath((const char*)NULL, (char*)NULL);
  62810. #else
  62811. #error
  62812. #endif
  62813. ;
  62814. return 0;
  62815. }
  62816. _ACEOF
  62817. if ac_fn_cxx_try_link "$LINENO"; then :
  62818. glibcxx_cv_realpath=yes
  62819. else
  62820. glibcxx_cv_realpath=no
  62821. fi
  62822. rm -f core conftest.err conftest.$ac_objext \
  62823. conftest$ac_exeext conftest.$ac_ext
  62824. fi
  62825. fi
  62826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_realpath" >&5
  62827. $as_echo "$glibcxx_cv_realpath" >&6; }
  62828. if test $glibcxx_cv_realpath = yes; then
  62829. $as_echo "#define _GLIBCXX_USE_REALPATH 1" >>confdefs.h
  62830. fi
  62831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimensat" >&5
  62832. $as_echo_n "checking for utimensat... " >&6; }
  62833. if ${glibcxx_cv_utimensat+:} false; then :
  62834. $as_echo_n "(cached) " >&6
  62835. else
  62836. if test x$gcc_no_link = xyes; then
  62837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62838. /* end confdefs.h. */
  62839. #include <fcntl.h>
  62840. #include <sys/stat.h>
  62841. int
  62842. main ()
  62843. {
  62844. struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
  62845. int i = utimensat(AT_FDCWD, "path", ts, 0);
  62846. ;
  62847. return 0;
  62848. }
  62849. _ACEOF
  62850. if ac_fn_cxx_try_compile "$LINENO"; then :
  62851. glibcxx_cv_utimensat=yes
  62852. else
  62853. glibcxx_cv_utimensat=no
  62854. fi
  62855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62856. else
  62857. if test x$gcc_no_link = xyes; then
  62858. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62859. fi
  62860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62861. /* end confdefs.h. */
  62862. #include <fcntl.h>
  62863. #include <sys/stat.h>
  62864. int
  62865. main ()
  62866. {
  62867. struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
  62868. int i = utimensat(AT_FDCWD, "path", ts, 0);
  62869. ;
  62870. return 0;
  62871. }
  62872. _ACEOF
  62873. if ac_fn_cxx_try_link "$LINENO"; then :
  62874. glibcxx_cv_utimensat=yes
  62875. else
  62876. glibcxx_cv_utimensat=no
  62877. fi
  62878. rm -f core conftest.err conftest.$ac_objext \
  62879. conftest$ac_exeext conftest.$ac_ext
  62880. fi
  62881. fi
  62882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utimensat" >&5
  62883. $as_echo "$glibcxx_cv_utimensat" >&6; }
  62884. if test $glibcxx_cv_utimensat = yes; then
  62885. $as_echo "#define _GLIBCXX_USE_UTIMENSAT 1" >>confdefs.h
  62886. fi
  62887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime" >&5
  62888. $as_echo_n "checking for utime... " >&6; }
  62889. if ${glibcxx_cv_utime+:} false; then :
  62890. $as_echo_n "(cached) " >&6
  62891. else
  62892. if test x$gcc_no_link = xyes; then
  62893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62894. /* end confdefs.h. */
  62895. #include <utime.h>
  62896. int
  62897. main ()
  62898. {
  62899. struct utimbuf t = { 1, 1 };
  62900. int i = utime("path", &t);
  62901. ;
  62902. return 0;
  62903. }
  62904. _ACEOF
  62905. if ac_fn_cxx_try_compile "$LINENO"; then :
  62906. glibcxx_cv_utime=yes
  62907. else
  62908. glibcxx_cv_utime=no
  62909. fi
  62910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62911. else
  62912. if test x$gcc_no_link = xyes; then
  62913. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62914. fi
  62915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62916. /* end confdefs.h. */
  62917. #include <utime.h>
  62918. int
  62919. main ()
  62920. {
  62921. struct utimbuf t = { 1, 1 };
  62922. int i = utime("path", &t);
  62923. ;
  62924. return 0;
  62925. }
  62926. _ACEOF
  62927. if ac_fn_cxx_try_link "$LINENO"; then :
  62928. glibcxx_cv_utime=yes
  62929. else
  62930. glibcxx_cv_utime=no
  62931. fi
  62932. rm -f core conftest.err conftest.$ac_objext \
  62933. conftest$ac_exeext conftest.$ac_ext
  62934. fi
  62935. fi
  62936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utime" >&5
  62937. $as_echo "$glibcxx_cv_utime" >&6; }
  62938. if test $glibcxx_cv_utime = yes; then
  62939. $as_echo "#define _GLIBCXX_USE_UTIME 1" >>confdefs.h
  62940. fi
  62941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
  62942. $as_echo_n "checking for lstat... " >&6; }
  62943. if ${glibcxx_cv_lstat+:} false; then :
  62944. $as_echo_n "(cached) " >&6
  62945. else
  62946. if test x$gcc_no_link = xyes; then
  62947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62948. /* end confdefs.h. */
  62949. #include <sys/stat.h>
  62950. int
  62951. main ()
  62952. {
  62953. struct stat st;
  62954. int i = lstat("path", &st);
  62955. ;
  62956. return 0;
  62957. }
  62958. _ACEOF
  62959. if ac_fn_cxx_try_compile "$LINENO"; then :
  62960. glibcxx_cv_lstat=yes
  62961. else
  62962. glibcxx_cv_lstat=no
  62963. fi
  62964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  62965. else
  62966. if test x$gcc_no_link = xyes; then
  62967. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  62968. fi
  62969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  62970. /* end confdefs.h. */
  62971. #include <sys/stat.h>
  62972. int
  62973. main ()
  62974. {
  62975. struct stat st;
  62976. int i = lstat("path", &st);
  62977. ;
  62978. return 0;
  62979. }
  62980. _ACEOF
  62981. if ac_fn_cxx_try_link "$LINENO"; then :
  62982. glibcxx_cv_lstat=yes
  62983. else
  62984. glibcxx_cv_lstat=no
  62985. fi
  62986. rm -f core conftest.err conftest.$ac_objext \
  62987. conftest$ac_exeext conftest.$ac_ext
  62988. fi
  62989. fi
  62990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lstat" >&5
  62991. $as_echo "$glibcxx_cv_lstat" >&6; }
  62992. if test $glibcxx_cv_lstat = yes; then
  62993. $as_echo "#define _GLIBCXX_USE_LSTAT 1" >>confdefs.h
  62994. fi
  62995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec" >&5
  62996. $as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
  62997. if ${glibcxx_cv_st_mtim+:} false; then :
  62998. $as_echo_n "(cached) " >&6
  62999. else
  63000. if test x$gcc_no_link = xyes; then
  63001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63002. /* end confdefs.h. */
  63003. #include <sys/stat.h>
  63004. int
  63005. main ()
  63006. {
  63007. struct stat st;
  63008. return st.st_mtim.tv_nsec;
  63009. ;
  63010. return 0;
  63011. }
  63012. _ACEOF
  63013. if ac_fn_cxx_try_compile "$LINENO"; then :
  63014. glibcxx_cv_st_mtim=yes
  63015. else
  63016. glibcxx_cv_st_mtim=no
  63017. fi
  63018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63019. else
  63020. if test x$gcc_no_link = xyes; then
  63021. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63022. fi
  63023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63024. /* end confdefs.h. */
  63025. #include <sys/stat.h>
  63026. int
  63027. main ()
  63028. {
  63029. struct stat st;
  63030. return st.st_mtim.tv_nsec;
  63031. ;
  63032. return 0;
  63033. }
  63034. _ACEOF
  63035. if ac_fn_cxx_try_link "$LINENO"; then :
  63036. glibcxx_cv_st_mtim=yes
  63037. else
  63038. glibcxx_cv_st_mtim=no
  63039. fi
  63040. rm -f core conftest.err conftest.$ac_objext \
  63041. conftest$ac_exeext conftest.$ac_ext
  63042. fi
  63043. fi
  63044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_st_mtim" >&5
  63045. $as_echo "$glibcxx_cv_st_mtim" >&6; }
  63046. if test $glibcxx_cv_st_mtim = yes; then
  63047. $as_echo "#define _GLIBCXX_USE_ST_MTIM 1" >>confdefs.h
  63048. fi
  63049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmod" >&5
  63050. $as_echo_n "checking for fchmod... " >&6; }
  63051. if ${glibcxx_cv_fchmod+:} false; then :
  63052. $as_echo_n "(cached) " >&6
  63053. else
  63054. if test x$gcc_no_link = xyes; then
  63055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63056. /* end confdefs.h. */
  63057. #include <sys/stat.h>
  63058. int
  63059. main ()
  63060. {
  63061. fchmod(1, S_IWUSR);
  63062. ;
  63063. return 0;
  63064. }
  63065. _ACEOF
  63066. if ac_fn_cxx_try_compile "$LINENO"; then :
  63067. glibcxx_cv_fchmod=yes
  63068. else
  63069. glibcxx_cv_fchmod=no
  63070. fi
  63071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63072. else
  63073. if test x$gcc_no_link = xyes; then
  63074. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63075. fi
  63076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63077. /* end confdefs.h. */
  63078. #include <sys/stat.h>
  63079. int
  63080. main ()
  63081. {
  63082. fchmod(1, S_IWUSR);
  63083. ;
  63084. return 0;
  63085. }
  63086. _ACEOF
  63087. if ac_fn_cxx_try_link "$LINENO"; then :
  63088. glibcxx_cv_fchmod=yes
  63089. else
  63090. glibcxx_cv_fchmod=no
  63091. fi
  63092. rm -f core conftest.err conftest.$ac_objext \
  63093. conftest$ac_exeext conftest.$ac_ext
  63094. fi
  63095. fi
  63096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmod" >&5
  63097. $as_echo "$glibcxx_cv_fchmod" >&6; }
  63098. if test $glibcxx_cv_fchmod = yes; then
  63099. $as_echo "#define _GLIBCXX_USE_FCHMOD 1" >>confdefs.h
  63100. fi
  63101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmodat" >&5
  63102. $as_echo_n "checking for fchmodat... " >&6; }
  63103. if ${glibcxx_cv_fchmodat+:} false; then :
  63104. $as_echo_n "(cached) " >&6
  63105. else
  63106. if test x$gcc_no_link = xyes; then
  63107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63108. /* end confdefs.h. */
  63109. #include <fcntl.h>
  63110. #include <sys/stat.h>
  63111. int
  63112. main ()
  63113. {
  63114. fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
  63115. ;
  63116. return 0;
  63117. }
  63118. _ACEOF
  63119. if ac_fn_cxx_try_compile "$LINENO"; then :
  63120. glibcxx_cv_fchmodat=yes
  63121. else
  63122. glibcxx_cv_fchmodat=no
  63123. fi
  63124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63125. else
  63126. if test x$gcc_no_link = xyes; then
  63127. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63128. fi
  63129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63130. /* end confdefs.h. */
  63131. #include <fcntl.h>
  63132. #include <sys/stat.h>
  63133. int
  63134. main ()
  63135. {
  63136. fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
  63137. ;
  63138. return 0;
  63139. }
  63140. _ACEOF
  63141. if ac_fn_cxx_try_link "$LINENO"; then :
  63142. glibcxx_cv_fchmodat=yes
  63143. else
  63144. glibcxx_cv_fchmodat=no
  63145. fi
  63146. rm -f core conftest.err conftest.$ac_objext \
  63147. conftest$ac_exeext conftest.$ac_ext
  63148. fi
  63149. fi
  63150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmodat" >&5
  63151. $as_echo "$glibcxx_cv_fchmodat" >&6; }
  63152. if test $glibcxx_cv_fchmodat = yes; then
  63153. $as_echo "#define _GLIBCXX_USE_FCHMODAT 1" >>confdefs.h
  63154. fi
  63155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files" >&5
  63156. $as_echo_n "checking for sendfile that can copy files... " >&6; }
  63157. if ${glibcxx_cv_sendfile+:} false; then :
  63158. $as_echo_n "(cached) " >&6
  63159. else
  63160. case "${target_os}" in
  63161. gnu* | linux* | solaris* | uclinux*)
  63162. if test x$gcc_no_link = xyes; then
  63163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63164. /* end confdefs.h. */
  63165. #include <sys/sendfile.h>
  63166. int
  63167. main ()
  63168. {
  63169. sendfile(1, 2, (off_t*)0, sizeof 1);
  63170. ;
  63171. return 0;
  63172. }
  63173. _ACEOF
  63174. if ac_fn_cxx_try_compile "$LINENO"; then :
  63175. glibcxx_cv_sendfile=yes
  63176. else
  63177. glibcxx_cv_sendfile=no
  63178. fi
  63179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63180. else
  63181. if test x$gcc_no_link = xyes; then
  63182. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63183. fi
  63184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63185. /* end confdefs.h. */
  63186. #include <sys/sendfile.h>
  63187. int
  63188. main ()
  63189. {
  63190. sendfile(1, 2, (off_t*)0, sizeof 1);
  63191. ;
  63192. return 0;
  63193. }
  63194. _ACEOF
  63195. if ac_fn_cxx_try_link "$LINENO"; then :
  63196. glibcxx_cv_sendfile=yes
  63197. else
  63198. glibcxx_cv_sendfile=no
  63199. fi
  63200. rm -f core conftest.err conftest.$ac_objext \
  63201. conftest$ac_exeext conftest.$ac_ext
  63202. fi
  63203. ;;
  63204. *)
  63205. glibcxx_cv_sendfile=no
  63206. ;;
  63207. esac
  63208. fi
  63209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile" >&5
  63210. $as_echo "$glibcxx_cv_sendfile" >&6; }
  63211. if test $glibcxx_cv_sendfile = yes; then
  63212. $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
  63213. fi
  63214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
  63215. $as_echo_n "checking for link... " >&6; }
  63216. if ${glibcxx_cv_link+:} false; then :
  63217. $as_echo_n "(cached) " >&6
  63218. else
  63219. if test x$gcc_no_link = xyes; then
  63220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63221. /* end confdefs.h. */
  63222. #include <unistd.h>
  63223. int
  63224. main ()
  63225. {
  63226. link("", "");
  63227. ;
  63228. return 0;
  63229. }
  63230. _ACEOF
  63231. if ac_fn_cxx_try_compile "$LINENO"; then :
  63232. glibcxx_cv_link=yes
  63233. else
  63234. glibcxx_cv_link=no
  63235. fi
  63236. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63237. else
  63238. if test x$gcc_no_link = xyes; then
  63239. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63240. fi
  63241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63242. /* end confdefs.h. */
  63243. #include <unistd.h>
  63244. int
  63245. main ()
  63246. {
  63247. link("", "");
  63248. ;
  63249. return 0;
  63250. }
  63251. _ACEOF
  63252. if ac_fn_cxx_try_link "$LINENO"; then :
  63253. glibcxx_cv_link=yes
  63254. else
  63255. glibcxx_cv_link=no
  63256. fi
  63257. rm -f core conftest.err conftest.$ac_objext \
  63258. conftest$ac_exeext conftest.$ac_ext
  63259. fi
  63260. fi
  63261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link" >&5
  63262. $as_echo "$glibcxx_cv_link" >&6; }
  63263. if test $glibcxx_cv_link = yes; then
  63264. $as_echo "#define HAVE_LINK 1" >>confdefs.h
  63265. fi
  63266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
  63267. $as_echo_n "checking for readlink... " >&6; }
  63268. if ${glibcxx_cv_readlink+:} false; then :
  63269. $as_echo_n "(cached) " >&6
  63270. else
  63271. if test x$gcc_no_link = xyes; then
  63272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63273. /* end confdefs.h. */
  63274. #include <unistd.h>
  63275. int
  63276. main ()
  63277. {
  63278. char buf[32]; readlink("", buf, sizeof(buf));
  63279. ;
  63280. return 0;
  63281. }
  63282. _ACEOF
  63283. if ac_fn_cxx_try_compile "$LINENO"; then :
  63284. glibcxx_cv_readlink=yes
  63285. else
  63286. glibcxx_cv_readlink=no
  63287. fi
  63288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63289. else
  63290. if test x$gcc_no_link = xyes; then
  63291. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63292. fi
  63293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63294. /* end confdefs.h. */
  63295. #include <unistd.h>
  63296. int
  63297. main ()
  63298. {
  63299. char buf[32]; readlink("", buf, sizeof(buf));
  63300. ;
  63301. return 0;
  63302. }
  63303. _ACEOF
  63304. if ac_fn_cxx_try_link "$LINENO"; then :
  63305. glibcxx_cv_readlink=yes
  63306. else
  63307. glibcxx_cv_readlink=no
  63308. fi
  63309. rm -f core conftest.err conftest.$ac_objext \
  63310. conftest$ac_exeext conftest.$ac_ext
  63311. fi
  63312. fi
  63313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_readlink" >&5
  63314. $as_echo "$glibcxx_cv_readlink" >&6; }
  63315. if test $glibcxx_cv_readlink = yes; then
  63316. $as_echo "#define HAVE_READLINK 1" >>confdefs.h
  63317. fi
  63318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
  63319. $as_echo_n "checking for symlink... " >&6; }
  63320. if ${glibcxx_cv_symlink+:} false; then :
  63321. $as_echo_n "(cached) " >&6
  63322. else
  63323. if test x$gcc_no_link = xyes; then
  63324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63325. /* end confdefs.h. */
  63326. #include <unistd.h>
  63327. int
  63328. main ()
  63329. {
  63330. symlink("", "");
  63331. ;
  63332. return 0;
  63333. }
  63334. _ACEOF
  63335. if ac_fn_cxx_try_compile "$LINENO"; then :
  63336. glibcxx_cv_symlink=yes
  63337. else
  63338. glibcxx_cv_symlink=no
  63339. fi
  63340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63341. else
  63342. if test x$gcc_no_link = xyes; then
  63343. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63344. fi
  63345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63346. /* end confdefs.h. */
  63347. #include <unistd.h>
  63348. int
  63349. main ()
  63350. {
  63351. symlink("", "");
  63352. ;
  63353. return 0;
  63354. }
  63355. _ACEOF
  63356. if ac_fn_cxx_try_link "$LINENO"; then :
  63357. glibcxx_cv_symlink=yes
  63358. else
  63359. glibcxx_cv_symlink=no
  63360. fi
  63361. rm -f core conftest.err conftest.$ac_objext \
  63362. conftest$ac_exeext conftest.$ac_ext
  63363. fi
  63364. fi
  63365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_symlink" >&5
  63366. $as_echo "$glibcxx_cv_symlink" >&6; }
  63367. if test $glibcxx_cv_symlink = yes; then
  63368. $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
  63369. fi
  63370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncate" >&5
  63371. $as_echo_n "checking for truncate... " >&6; }
  63372. if ${glibcxx_cv_truncate+:} false; then :
  63373. $as_echo_n "(cached) " >&6
  63374. else
  63375. if test x$gcc_no_link = xyes; then
  63376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63377. /* end confdefs.h. */
  63378. #include <unistd.h>
  63379. int
  63380. main ()
  63381. {
  63382. truncate("", 99);
  63383. ;
  63384. return 0;
  63385. }
  63386. _ACEOF
  63387. if ac_fn_cxx_try_compile "$LINENO"; then :
  63388. glibcxx_cv_truncate=yes
  63389. else
  63390. glibcxx_cv_truncate=no
  63391. fi
  63392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63393. else
  63394. if test x$gcc_no_link = xyes; then
  63395. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63396. fi
  63397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63398. /* end confdefs.h. */
  63399. #include <unistd.h>
  63400. int
  63401. main ()
  63402. {
  63403. truncate("", 99);
  63404. ;
  63405. return 0;
  63406. }
  63407. _ACEOF
  63408. if ac_fn_cxx_try_link "$LINENO"; then :
  63409. glibcxx_cv_truncate=yes
  63410. else
  63411. glibcxx_cv_truncate=no
  63412. fi
  63413. rm -f core conftest.err conftest.$ac_objext \
  63414. conftest$ac_exeext conftest.$ac_ext
  63415. fi
  63416. fi
  63417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_truncate" >&5
  63418. $as_echo "$glibcxx_cv_truncate" >&6; }
  63419. if test $glibcxx_cv_truncate = yes; then
  63420. $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
  63421. fi
  63422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
  63423. $as_echo_n "checking for fdopendir... " >&6; }
  63424. if ${glibcxx_cv_fdopendir+:} false; then :
  63425. $as_echo_n "(cached) " >&6
  63426. else
  63427. if test x$gcc_no_link = xyes; then
  63428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63429. /* end confdefs.h. */
  63430. #include <dirent.h>
  63431. int
  63432. main ()
  63433. {
  63434. ::DIR* dir = ::fdopendir(1);
  63435. ;
  63436. return 0;
  63437. }
  63438. _ACEOF
  63439. if ac_fn_cxx_try_compile "$LINENO"; then :
  63440. glibcxx_cv_fdopendir=yes
  63441. else
  63442. glibcxx_cv_fdopendir=no
  63443. fi
  63444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63445. else
  63446. if test x$gcc_no_link = xyes; then
  63447. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63448. fi
  63449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63450. /* end confdefs.h. */
  63451. #include <dirent.h>
  63452. int
  63453. main ()
  63454. {
  63455. ::DIR* dir = ::fdopendir(1);
  63456. ;
  63457. return 0;
  63458. }
  63459. _ACEOF
  63460. if ac_fn_cxx_try_link "$LINENO"; then :
  63461. glibcxx_cv_fdopendir=yes
  63462. else
  63463. glibcxx_cv_fdopendir=no
  63464. fi
  63465. rm -f core conftest.err conftest.$ac_objext \
  63466. conftest$ac_exeext conftest.$ac_ext
  63467. fi
  63468. fi
  63469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fdopendir" >&5
  63470. $as_echo "$glibcxx_cv_fdopendir" >&6; }
  63471. if test $glibcxx_cv_fdopendir = yes; then
  63472. $as_echo "#define HAVE_FDOPENDIR 1" >>confdefs.h
  63473. fi
  63474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
  63475. $as_echo_n "checking for dirfd... " >&6; }
  63476. if ${glibcxx_cv_dirfd+:} false; then :
  63477. $as_echo_n "(cached) " >&6
  63478. else
  63479. if test x$gcc_no_link = xyes; then
  63480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63481. /* end confdefs.h. */
  63482. #include <dirent.h>
  63483. int
  63484. main ()
  63485. {
  63486. int fd = ::dirfd((::DIR*)0);
  63487. ;
  63488. return 0;
  63489. }
  63490. _ACEOF
  63491. if ac_fn_cxx_try_compile "$LINENO"; then :
  63492. glibcxx_cv_dirfd=yes
  63493. else
  63494. glibcxx_cv_dirfd=no
  63495. fi
  63496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63497. else
  63498. if test x$gcc_no_link = xyes; then
  63499. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63500. fi
  63501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63502. /* end confdefs.h. */
  63503. #include <dirent.h>
  63504. int
  63505. main ()
  63506. {
  63507. int fd = ::dirfd((::DIR*)0);
  63508. ;
  63509. return 0;
  63510. }
  63511. _ACEOF
  63512. if ac_fn_cxx_try_link "$LINENO"; then :
  63513. glibcxx_cv_dirfd=yes
  63514. else
  63515. glibcxx_cv_dirfd=no
  63516. fi
  63517. rm -f core conftest.err conftest.$ac_objext \
  63518. conftest$ac_exeext conftest.$ac_ext
  63519. fi
  63520. fi
  63521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirfd" >&5
  63522. $as_echo "$glibcxx_cv_dirfd" >&6; }
  63523. if test $glibcxx_cv_dirfd = yes; then
  63524. $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
  63525. fi
  63526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlinkat" >&5
  63527. $as_echo_n "checking for unlinkat... " >&6; }
  63528. if ${glibcxx_cv_unlinkat+:} false; then :
  63529. $as_echo_n "(cached) " >&6
  63530. else
  63531. if test x$gcc_no_link = xyes; then
  63532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63533. /* end confdefs.h. */
  63534. #include <fcntl.h>
  63535. #include <unistd.h>
  63536. int
  63537. main ()
  63538. {
  63539. ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
  63540. ;
  63541. return 0;
  63542. }
  63543. _ACEOF
  63544. if ac_fn_cxx_try_compile "$LINENO"; then :
  63545. glibcxx_cv_unlinkat=yes
  63546. else
  63547. glibcxx_cv_unlinkat=no
  63548. fi
  63549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63550. else
  63551. if test x$gcc_no_link = xyes; then
  63552. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63553. fi
  63554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63555. /* end confdefs.h. */
  63556. #include <fcntl.h>
  63557. #include <unistd.h>
  63558. int
  63559. main ()
  63560. {
  63561. ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
  63562. ;
  63563. return 0;
  63564. }
  63565. _ACEOF
  63566. if ac_fn_cxx_try_link "$LINENO"; then :
  63567. glibcxx_cv_unlinkat=yes
  63568. else
  63569. glibcxx_cv_unlinkat=no
  63570. fi
  63571. rm -f core conftest.err conftest.$ac_objext \
  63572. conftest$ac_exeext conftest.$ac_ext
  63573. fi
  63574. fi
  63575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_unlinkat" >&5
  63576. $as_echo "$glibcxx_cv_unlinkat" >&6; }
  63577. if test $glibcxx_cv_unlinkat = yes; then
  63578. $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
  63579. fi
  63580. CXXFLAGS="$ac_save_CXXFLAGS"
  63581. ac_ext=c
  63582. ac_cpp='$CPP $CPPFLAGS'
  63583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  63584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  63585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  63586. # Check whether --enable-libstdcxx-backtrace was given.
  63587. if test "${enable_libstdcxx_backtrace+set}" = set; then :
  63588. enableval=$enable_libstdcxx_backtrace;
  63589. case "$enableval" in
  63590. yes|no|auto) ;;
  63591. *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-backtrace" "$LINENO" 5 ;;
  63592. esac
  63593. else
  63594. enable_libstdcxx_backtrace=auto
  63595. fi
  63596. # Most of this is adapted from libsanitizer/configure.ac
  63597. BACKTRACE_CPPFLAGS=
  63598. # libbacktrace only needs atomics for int, which we've already tested
  63599. if test "$glibcxx_cv_atomic_int" = "yes"; then
  63600. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_ATOMIC_FUNCTIONS=1"
  63601. fi
  63602. # Test for __sync support.
  63603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
  63604. $as_echo_n "checking __sync extensions... " >&6; }
  63605. if ${glibcxx_cv_sys_sync+:} false; then :
  63606. $as_echo_n "(cached) " >&6
  63607. else
  63608. if test x$gcc_no_link = xyes; then
  63609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63610. /* end confdefs.h. */
  63611. int i;
  63612. int
  63613. main ()
  63614. {
  63615. __sync_bool_compare_and_swap (&i, i, i);
  63616. __sync_lock_test_and_set (&i, 1);
  63617. __sync_lock_release (&i);
  63618. ;
  63619. return 0;
  63620. }
  63621. _ACEOF
  63622. if ac_fn_c_try_compile "$LINENO"; then :
  63623. glibcxx_cv_sys_sync=yes
  63624. else
  63625. glibcxx_cv_sys_sync=no
  63626. fi
  63627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63628. else
  63629. if test x$gcc_no_link = xyes; then
  63630. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  63631. fi
  63632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63633. /* end confdefs.h. */
  63634. int i;
  63635. int
  63636. main ()
  63637. {
  63638. __sync_bool_compare_and_swap (&i, i, i);
  63639. __sync_lock_test_and_set (&i, 1);
  63640. __sync_lock_release (&i);
  63641. ;
  63642. return 0;
  63643. }
  63644. _ACEOF
  63645. if ac_fn_c_try_link "$LINENO"; then :
  63646. glibcxx_cv_sys_sync=yes
  63647. else
  63648. glibcxx_cv_sys_sync=no
  63649. fi
  63650. rm -f core conftest.err conftest.$ac_objext \
  63651. conftest$ac_exeext conftest.$ac_ext
  63652. fi
  63653. fi
  63654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sync" >&5
  63655. $as_echo "$glibcxx_cv_sys_sync" >&6; }
  63656. if test "$glibcxx_cv_sys_sync" = "yes"; then
  63657. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_SYNC_FUNCTIONS=1"
  63658. fi
  63659. # Check for dl_iterate_phdr.
  63660. for ac_header in link.h
  63661. do :
  63662. ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
  63663. if test "x$ac_cv_header_link_h" = xyes; then :
  63664. cat >>confdefs.h <<_ACEOF
  63665. #define HAVE_LINK_H 1
  63666. _ACEOF
  63667. fi
  63668. done
  63669. if test "$ac_cv_header_link_h" = "no"; then
  63670. have_dl_iterate_phdr=no
  63671. else
  63672. # When built as a GCC target library, we can't do a link test.
  63673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63674. /* end confdefs.h. */
  63675. #include <link.h>
  63676. _ACEOF
  63677. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  63678. $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
  63679. have_dl_iterate_phdr=yes
  63680. else
  63681. have_dl_iterate_phdr=no
  63682. fi
  63683. rm -f conftest*
  63684. fi
  63685. if test "$have_dl_iterate_phdr" = "yes"; then
  63686. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1"
  63687. fi
  63688. # Check for the fcntl function.
  63689. if test -n "${with_target_subdir}"; then
  63690. case "${host}" in
  63691. *-*-mingw*) have_fcntl=no ;;
  63692. *) have_fcntl=yes ;;
  63693. esac
  63694. else
  63695. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  63696. if test "x$ac_cv_func_fcntl" = xyes; then :
  63697. have_fcntl=yes
  63698. else
  63699. have_fcntl=no
  63700. fi
  63701. fi
  63702. if test "$have_fcntl" = "yes"; then
  63703. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_FCNTL=1"
  63704. fi
  63705. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  63706. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  63707. ac_have_decl=1
  63708. else
  63709. ac_have_decl=0
  63710. fi
  63711. cat >>confdefs.h <<_ACEOF
  63712. #define HAVE_DECL_STRNLEN $ac_have_decl
  63713. _ACEOF
  63714. # Check for getexecname function.
  63715. if test -n "${with_target_subdir}"; then
  63716. case "${host}" in
  63717. *-*-solaris2*) have_getexecname=yes ;;
  63718. *) have_getexecname=no ;;
  63719. esac
  63720. else
  63721. ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
  63722. if test "x$ac_cv_func_getexecname" = xyes; then :
  63723. have_getexecname=yes
  63724. else
  63725. have_getexecname=no
  63726. fi
  63727. fi
  63728. if test "$have_getexecname" = "yes"; then
  63729. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_GETEXECNAME=1"
  63730. fi
  63731. # The library needs to be able to read the executable itself. Compile
  63732. # a file to determine the executable format. The awk script
  63733. # filetype.awk prints out the file type.
  63734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
  63735. $as_echo_n "checking output filetype... " >&6; }
  63736. if ${glibcxx_cv_sys_filetype+:} false; then :
  63737. $as_echo_n "(cached) " >&6
  63738. else
  63739. filetype=
  63740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63741. /* end confdefs.h. */
  63742. int i;
  63743. int
  63744. main ()
  63745. {
  63746. int j;
  63747. ;
  63748. return 0;
  63749. }
  63750. _ACEOF
  63751. if ac_fn_c_try_compile "$LINENO"; then :
  63752. filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
  63753. else
  63754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  63755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  63756. as_fn_error $? "compiler failed
  63757. See \`config.log' for more details" "$LINENO" 5; }
  63758. fi
  63759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63760. glibcxx_cv_sys_filetype=$filetype
  63761. fi
  63762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_filetype" >&5
  63763. $as_echo "$glibcxx_cv_sys_filetype" >&6; }
  63764. # Match the file type to decide what files to compile.
  63765. FORMAT_FILE=
  63766. case "$glibcxx_cv_sys_filetype" in
  63767. elf*) FORMAT_FILE="elf.lo" ;;
  63768. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
  63769. $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
  63770. FORMAT_FILE="unknown.lo"
  63771. enable_libstdcxx_backtrace=no
  63772. ;;
  63773. esac
  63774. # ELF defines.
  63775. elfsize=
  63776. case "$glibcxx_cv_sys_filetype" in
  63777. elf32) elfsize=32 ;;
  63778. elf64) elfsize=64 ;;
  63779. esac
  63780. BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
  63781. ALLOC_FILE=alloc.lo
  63782. VIEW_FILE=read.lo
  63783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5
  63784. $as_echo_n "checking whether to build libbacktrace support... " >&6; }
  63785. if test "$enable_libstdcxx_backtrace" == "auto"; then
  63786. enable_libstdcxx_backtrace=no
  63787. fi
  63788. if test "$enable_libstdcxx_backtrace" == "yes"; then
  63789. BACKTRACE_SUPPORTED=1
  63790. BACKTRACE_USES_MALLOC=1
  63791. if test "$ac_has_gthreads" = "yes"; then
  63792. BACKTRACE_SUPPORTS_THREADS=1
  63793. else
  63794. BACKTRACE_SUPPORTS_THREADS=0
  63795. fi
  63796. $as_echo "#define HAVE_STACKTRACE 1" >>confdefs.h
  63797. else
  63798. BACKTRACE_SUPPORTED=0
  63799. BACKTRACE_USES_MALLOC=0
  63800. BACKTRACE_SUPPORTS_THREADS=0
  63801. fi
  63802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5
  63803. $as_echo "$enable_libstdcxx_backtrace" >&6; }
  63804. # For Networking TS.
  63805. for ac_header in fcntl.h sys/ioctl.h sys/socket.h sys/uio.h poll.h netdb.h arpa/inet.h netinet/in.h netinet/tcp.h
  63806. do :
  63807. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  63808. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  63809. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  63810. cat >>confdefs.h <<_ACEOF
  63811. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  63812. _ACEOF
  63813. fi
  63814. done
  63815. ac_fn_c_check_decl "$LINENO" "F_GETFL" "ac_cv_have_decl_F_GETFL" "#include <fcntl.h>
  63816. "
  63817. if test "x$ac_cv_have_decl_F_GETFL" = xyes; then :
  63818. fi
  63819. ac_fn_c_check_decl "$LINENO" "F_SETFL" "ac_cv_have_decl_F_SETFL" "#include <fcntl.h>
  63820. "
  63821. if test "x$ac_cv_have_decl_F_SETFL" = xyes; then :
  63822. fi
  63823. if test "$ac_cv_have_decl_F_GETFL$ac_cv_have_decl_F_SETFL" = yesyes ; then
  63824. ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
  63825. "
  63826. if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
  63827. fi
  63828. fi
  63829. # For Transactional Memory TS
  63830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
  63831. $as_echo_n "checking how size_t is mangled... " >&6; }
  63832. if ${glibcxx_cv_size_t_mangling+:} false; then :
  63833. $as_echo_n "(cached) " >&6
  63834. else
  63835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63836. /* end confdefs.h. */
  63837. int
  63838. main ()
  63839. {
  63840. extern __SIZE_TYPE__ x; extern unsigned long x;
  63841. ;
  63842. return 0;
  63843. }
  63844. _ACEOF
  63845. if ac_fn_c_try_compile "$LINENO"; then :
  63846. glibcxx_cv_size_t_mangling=m
  63847. else
  63848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63849. /* end confdefs.h. */
  63850. int
  63851. main ()
  63852. {
  63853. extern __SIZE_TYPE__ x; extern unsigned int x;
  63854. ;
  63855. return 0;
  63856. }
  63857. _ACEOF
  63858. if ac_fn_c_try_compile "$LINENO"; then :
  63859. glibcxx_cv_size_t_mangling=j
  63860. else
  63861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63862. /* end confdefs.h. */
  63863. int
  63864. main ()
  63865. {
  63866. extern __SIZE_TYPE__ x; extern unsigned long long x;
  63867. ;
  63868. return 0;
  63869. }
  63870. _ACEOF
  63871. if ac_fn_c_try_compile "$LINENO"; then :
  63872. glibcxx_cv_size_t_mangling=y
  63873. else
  63874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63875. /* end confdefs.h. */
  63876. int
  63877. main ()
  63878. {
  63879. extern __SIZE_TYPE__ x; extern unsigned short x;
  63880. ;
  63881. return 0;
  63882. }
  63883. _ACEOF
  63884. if ac_fn_c_try_compile "$LINENO"; then :
  63885. glibcxx_cv_size_t_mangling=t
  63886. else
  63887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63888. /* end confdefs.h. */
  63889. int
  63890. main ()
  63891. {
  63892. extern __SIZE_TYPE__ x; extern __int20 unsigned x;
  63893. ;
  63894. return 0;
  63895. }
  63896. _ACEOF
  63897. if ac_fn_c_try_compile "$LINENO"; then :
  63898. glibcxx_cv_size_t_mangling=u6uint20
  63899. else
  63900. glibcxx_cv_size_t_mangling=x
  63901. fi
  63902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63903. fi
  63904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63905. fi
  63906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63907. fi
  63908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63909. fi
  63910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63911. fi
  63912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_size_t_mangling" >&5
  63913. $as_echo "$glibcxx_cv_size_t_mangling" >&6; }
  63914. if test $glibcxx_cv_size_t_mangling = x; then
  63915. as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
  63916. fi
  63917. cat >>confdefs.h <<_ACEOF
  63918. #define _GLIBCXX_MANGLE_SIZE_T $glibcxx_cv_size_t_mangling
  63919. _ACEOF
  63920. # Check which release added std::exception_ptr for the target
  63921. if test $enable_symvers != no; then
  63922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for first version to support std::exception_ptr" >&5
  63923. $as_echo_n "checking for first version to support std::exception_ptr... " >&6; }
  63924. case ${target} in
  63925. aarch64-*-* | alpha-*-* | hppa*-*-* | i?86-*-* | x86_64-*-* | \
  63926. m68k-*-* | powerpc*-*-* | s390*-*-* | *-*-solaris* )
  63927. ac_exception_ptr_since_gcc46=yes
  63928. ;;
  63929. *)
  63930. # If the value of this macro changes then we will need to hardcode
  63931. # yes/no here for additional targets based on the original value.
  63932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  63933. /* end confdefs.h. */
  63934. int
  63935. main ()
  63936. {
  63937. #if __GCC_ATOMIC_INT_LOCK_FREE <= 1
  63938. # error atomic int not always lock free
  63939. #endif
  63940. ;
  63941. return 0;
  63942. }
  63943. _ACEOF
  63944. if ac_fn_c_try_compile "$LINENO"; then :
  63945. ac_exception_ptr_since_gcc46=yes
  63946. else
  63947. ac_exception_ptr_since_gcc46=no
  63948. fi
  63949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  63950. ;;
  63951. esac
  63952. if test x"$ac_exception_ptr_since_gcc46" = x"yes" ; then
  63953. $as_echo "#define HAVE_EXCEPTION_PTR_SINCE_GCC46 1" >>confdefs.h
  63954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.6.0" >&5
  63955. $as_echo "4.6.0" >&6; }
  63956. else
  63957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7.1.0" >&5
  63958. $as_echo "7.1.0" >&6; }
  63959. fi
  63960. fi
  63961. # Define documentation rules conditionally.
  63962. # See if makeinfo has been installed and is modern enough
  63963. # that we can use it.
  63964. # Extract the first word of "makeinfo", so it can be a program name with args.
  63965. set dummy makeinfo; ac_word=$2
  63966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  63967. $as_echo_n "checking for $ac_word... " >&6; }
  63968. if ${ac_cv_prog_MAKEINFO+:} false; then :
  63969. $as_echo_n "(cached) " >&6
  63970. else
  63971. if test -n "$MAKEINFO"; then
  63972. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  63973. else
  63974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63975. for as_dir in $PATH
  63976. do
  63977. IFS=$as_save_IFS
  63978. test -z "$as_dir" && as_dir=.
  63979. for ac_exec_ext in '' $ac_executable_extensions; do
  63980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  63981. ac_cv_prog_MAKEINFO="makeinfo"
  63982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  63983. break 2
  63984. fi
  63985. done
  63986. done
  63987. IFS=$as_save_IFS
  63988. fi
  63989. fi
  63990. MAKEINFO=$ac_cv_prog_MAKEINFO
  63991. if test -n "$MAKEINFO"; then
  63992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  63993. $as_echo "$MAKEINFO" >&6; }
  63994. else
  63995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  63996. $as_echo "no" >&6; }
  63997. fi
  63998. if test -n "$MAKEINFO"; then
  63999. # Found it, now check the version.
  64000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  64001. $as_echo_n "checking for modern makeinfo... " >&6; }
  64002. if ${gcc_cv_prog_makeinfo_modern+:} false; then :
  64003. $as_echo_n "(cached) " >&6
  64004. else
  64005. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  64006. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  64007. case $ac_prog_version in
  64008. '') gcc_cv_prog_makeinfo_modern=no;;
  64009. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  64010. *) gcc_cv_prog_makeinfo_modern=no;;
  64011. esac
  64012. fi
  64013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  64014. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  64015. else
  64016. gcc_cv_prog_makeinfo_modern=no
  64017. fi
  64018. if test $gcc_cv_prog_makeinfo_modern = no; then
  64019. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  64020. fi
  64021. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  64022. BUILD_INFO_TRUE=
  64023. BUILD_INFO_FALSE='#'
  64024. else
  64025. BUILD_INFO_TRUE='#'
  64026. BUILD_INFO_FALSE=
  64027. fi
  64028. # Check for doxygen
  64029. # Extract the first word of "doxygen", so it can be a program name with args.
  64030. set dummy doxygen; ac_word=$2
  64031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64032. $as_echo_n "checking for $ac_word... " >&6; }
  64033. if ${ac_cv_prog_DOXYGEN+:} false; then :
  64034. $as_echo_n "(cached) " >&6
  64035. else
  64036. if test -n "$DOXYGEN"; then
  64037. ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  64038. else
  64039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64040. for as_dir in $PATH
  64041. do
  64042. IFS=$as_save_IFS
  64043. test -z "$as_dir" && as_dir=.
  64044. for ac_exec_ext in '' $ac_executable_extensions; do
  64045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64046. ac_cv_prog_DOXYGEN="yes"
  64047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64048. break 2
  64049. fi
  64050. done
  64051. done
  64052. IFS=$as_save_IFS
  64053. test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
  64054. fi
  64055. fi
  64056. DOXYGEN=$ac_cv_prog_DOXYGEN
  64057. if test -n "$DOXYGEN"; then
  64058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  64059. $as_echo "$DOXYGEN" >&6; }
  64060. else
  64061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64062. $as_echo "no" >&6; }
  64063. fi
  64064. # Extract the first word of "dot", so it can be a program name with args.
  64065. set dummy dot; ac_word=$2
  64066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64067. $as_echo_n "checking for $ac_word... " >&6; }
  64068. if ${ac_cv_prog_DOT+:} false; then :
  64069. $as_echo_n "(cached) " >&6
  64070. else
  64071. if test -n "$DOT"; then
  64072. ac_cv_prog_DOT="$DOT" # Let the user override the test.
  64073. else
  64074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64075. for as_dir in $PATH
  64076. do
  64077. IFS=$as_save_IFS
  64078. test -z "$as_dir" && as_dir=.
  64079. for ac_exec_ext in '' $ac_executable_extensions; do
  64080. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64081. ac_cv_prog_DOT="yes"
  64082. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64083. break 2
  64084. fi
  64085. done
  64086. done
  64087. IFS=$as_save_IFS
  64088. test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="no"
  64089. fi
  64090. fi
  64091. DOT=$ac_cv_prog_DOT
  64092. if test -n "$DOT"; then
  64093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  64094. $as_echo "$DOT" >&6; }
  64095. else
  64096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64097. $as_echo "no" >&6; }
  64098. fi
  64099. # Check for docbook
  64100. # Extract the first word of "xmlcatalog", so it can be a program name with args.
  64101. set dummy xmlcatalog; ac_word=$2
  64102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64103. $as_echo_n "checking for $ac_word... " >&6; }
  64104. if ${ac_cv_prog_XMLCATALOG+:} false; then :
  64105. $as_echo_n "(cached) " >&6
  64106. else
  64107. if test -n "$XMLCATALOG"; then
  64108. ac_cv_prog_XMLCATALOG="$XMLCATALOG" # Let the user override the test.
  64109. else
  64110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64111. for as_dir in $PATH
  64112. do
  64113. IFS=$as_save_IFS
  64114. test -z "$as_dir" && as_dir=.
  64115. for ac_exec_ext in '' $ac_executable_extensions; do
  64116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64117. ac_cv_prog_XMLCATALOG="yes"
  64118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64119. break 2
  64120. fi
  64121. done
  64122. done
  64123. IFS=$as_save_IFS
  64124. test -z "$ac_cv_prog_XMLCATALOG" && ac_cv_prog_XMLCATALOG="no"
  64125. fi
  64126. fi
  64127. XMLCATALOG=$ac_cv_prog_XMLCATALOG
  64128. if test -n "$XMLCATALOG"; then
  64129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
  64130. $as_echo "$XMLCATALOG" >&6; }
  64131. else
  64132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64133. $as_echo "no" >&6; }
  64134. fi
  64135. # Extract the first word of "xsltproc", so it can be a program name with args.
  64136. set dummy xsltproc; ac_word=$2
  64137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64138. $as_echo_n "checking for $ac_word... " >&6; }
  64139. if ${ac_cv_prog_XSLTPROC+:} false; then :
  64140. $as_echo_n "(cached) " >&6
  64141. else
  64142. if test -n "$XSLTPROC"; then
  64143. ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
  64144. else
  64145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64146. for as_dir in $PATH
  64147. do
  64148. IFS=$as_save_IFS
  64149. test -z "$as_dir" && as_dir=.
  64150. for ac_exec_ext in '' $ac_executable_extensions; do
  64151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64152. ac_cv_prog_XSLTPROC="yes"
  64153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64154. break 2
  64155. fi
  64156. done
  64157. done
  64158. IFS=$as_save_IFS
  64159. test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="no"
  64160. fi
  64161. fi
  64162. XSLTPROC=$ac_cv_prog_XSLTPROC
  64163. if test -n "$XSLTPROC"; then
  64164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  64165. $as_echo "$XSLTPROC" >&6; }
  64166. else
  64167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64168. $as_echo "no" >&6; }
  64169. fi
  64170. # Extract the first word of "xmllint", so it can be a program name with args.
  64171. set dummy xmllint; ac_word=$2
  64172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64173. $as_echo_n "checking for $ac_word... " >&6; }
  64174. if ${ac_cv_prog_XMLLINT+:} false; then :
  64175. $as_echo_n "(cached) " >&6
  64176. else
  64177. if test -n "$XMLLINT"; then
  64178. ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
  64179. else
  64180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64181. for as_dir in $PATH
  64182. do
  64183. IFS=$as_save_IFS
  64184. test -z "$as_dir" && as_dir=.
  64185. for ac_exec_ext in '' $ac_executable_extensions; do
  64186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64187. ac_cv_prog_XMLLINT="yes"
  64188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64189. break 2
  64190. fi
  64191. done
  64192. done
  64193. IFS=$as_save_IFS
  64194. test -z "$ac_cv_prog_XMLLINT" && ac_cv_prog_XMLLINT="no"
  64195. fi
  64196. fi
  64197. XMLLINT=$ac_cv_prog_XMLLINT
  64198. if test -n "$XMLLINT"; then
  64199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  64200. $as_echo "$XMLLINT" >&6; }
  64201. else
  64202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64203. $as_echo "no" >&6; }
  64204. fi
  64205. glibcxx_docbook_url=http://docbook.sourceforge.net/release/xsl-ns/current/
  64206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local stylesheet directory" >&5
  64207. $as_echo_n "checking for local stylesheet directory... " >&6; }
  64208. glibcxx_local_stylesheets=no
  64209. if test x${XMLCATALOG} = xyes && xsl_style_dir=`xmlcatalog "" $glibcxx_docbook_url 2>/dev/null`
  64210. then
  64211. XSL_STYLE_DIR=`echo $xsl_style_dir | sed -n 's;^file://;;p'`
  64212. glibcxx_local_stylesheets=yes
  64213. else
  64214. for dir in \
  64215. /usr/share/sgml/docbook/xsl-ns-stylesheets \
  64216. /usr/share/xml/docbook/stylesheet/docbook-xsl-ns \
  64217. /usr/share/xml/docbook/stylesheet/nwalsh5/current \
  64218. /usr/share/xml/docbook/stylesheet/nwalsh/current
  64219. do
  64220. if test -d $dir; then
  64221. glibcxx_local_stylesheets=yes
  64222. XSL_STYLE_DIR=$dir
  64223. break
  64224. fi
  64225. done
  64226. fi
  64227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_local_stylesheets" >&5
  64228. $as_echo "$glibcxx_local_stylesheets" >&6; }
  64229. if test x"$glibcxx_local_stylesheets" = x"yes"; then
  64230. { $as_echo "$as_me:${as_lineno-$LINENO}: $XSL_STYLE_DIR" >&5
  64231. $as_echo "$as_me: $XSL_STYLE_DIR" >&6;}
  64232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook stylesheets for documentation creation" >&5
  64233. $as_echo_n "checking for docbook stylesheets for documentation creation... " >&6; }
  64234. glibcxx_stylesheets=no
  64235. if test x${XMLCATALOG} = xno || xmlcatalog "" $glibcxx_docbook_url/xhtml/docbook.xsl >/dev/null 2>&1; then
  64236. if test x${XSLTPROC} = xyes && echo '<title/>' | xsltproc --noout --nonet --xinclude $glibcxx_docbook_url/xhtml/docbook.xsl - 2>/dev/null; then
  64237. glibcxx_stylesheets=yes
  64238. fi
  64239. fi
  64240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_stylesheets" >&5
  64241. $as_echo "$glibcxx_stylesheets" >&6; }
  64242. else
  64243. glibcxx_stylesheets=no
  64244. fi
  64245. # Check for epub3 dependencies.
  64246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epub3 stylesheets for documentation creation" >&5
  64247. $as_echo_n "checking for epub3 stylesheets for documentation creation... " >&6; }
  64248. glibcxx_epub_stylesheets=no
  64249. if test x"$glibcxx_local_stylesheets" = x"yes"; then
  64250. if test -f "$XSL_STYLE_DIR/epub3/chunk.xsl"; then
  64251. glibcxx_epub_stylesheets=yes
  64252. fi
  64253. fi
  64254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_epub_stylesheets" >&5
  64255. $as_echo "$glibcxx_epub_stylesheets" >&6; }
  64256. if test x"$glibcxx_epub_stylesheets" = x"yes"; then
  64257. BUILD_EPUB_TRUE=
  64258. BUILD_EPUB_FALSE='#'
  64259. else
  64260. BUILD_EPUB_TRUE='#'
  64261. BUILD_EPUB_FALSE=
  64262. fi
  64263. # Check for xml/html dependencies.
  64264. if test $ac_cv_prog_DOXYGEN = "yes" &&
  64265. test $ac_cv_prog_DOT = "yes" &&
  64266. test $ac_cv_prog_XSLTPROC = "yes" &&
  64267. test $ac_cv_prog_XMLLINT = "yes" &&
  64268. test $glibcxx_stylesheets = "yes"; then
  64269. BUILD_XML_TRUE=
  64270. BUILD_XML_FALSE='#'
  64271. else
  64272. BUILD_XML_TRUE='#'
  64273. BUILD_XML_FALSE=
  64274. fi
  64275. if test $ac_cv_prog_DOXYGEN = "yes" &&
  64276. test $ac_cv_prog_DOT = "yes" &&
  64277. test $ac_cv_prog_XSLTPROC = "yes" &&
  64278. test $ac_cv_prog_XMLLINT = "yes" &&
  64279. test $glibcxx_stylesheets = "yes"; then
  64280. BUILD_HTML_TRUE=
  64281. BUILD_HTML_FALSE='#'
  64282. else
  64283. BUILD_HTML_TRUE='#'
  64284. BUILD_HTML_FALSE=
  64285. fi
  64286. # Check for man dependencies.
  64287. if test $ac_cv_prog_DOXYGEN = "yes" &&
  64288. test $ac_cv_prog_DOT = "yes"; then
  64289. BUILD_MAN_TRUE=
  64290. BUILD_MAN_FALSE='#'
  64291. else
  64292. BUILD_MAN_TRUE='#'
  64293. BUILD_MAN_FALSE=
  64294. fi
  64295. # Check for pdf dependencies.
  64296. # Extract the first word of "dblatex", so it can be a program name with args.
  64297. set dummy dblatex; ac_word=$2
  64298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64299. $as_echo_n "checking for $ac_word... " >&6; }
  64300. if ${ac_cv_prog_DBLATEX+:} false; then :
  64301. $as_echo_n "(cached) " >&6
  64302. else
  64303. if test -n "$DBLATEX"; then
  64304. ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
  64305. else
  64306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64307. for as_dir in $PATH
  64308. do
  64309. IFS=$as_save_IFS
  64310. test -z "$as_dir" && as_dir=.
  64311. for ac_exec_ext in '' $ac_executable_extensions; do
  64312. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64313. ac_cv_prog_DBLATEX="yes"
  64314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64315. break 2
  64316. fi
  64317. done
  64318. done
  64319. IFS=$as_save_IFS
  64320. test -z "$ac_cv_prog_DBLATEX" && ac_cv_prog_DBLATEX="no"
  64321. fi
  64322. fi
  64323. DBLATEX=$ac_cv_prog_DBLATEX
  64324. if test -n "$DBLATEX"; then
  64325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
  64326. $as_echo "$DBLATEX" >&6; }
  64327. else
  64328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64329. $as_echo "no" >&6; }
  64330. fi
  64331. # Extract the first word of "pdflatex", so it can be a program name with args.
  64332. set dummy pdflatex; ac_word=$2
  64333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  64334. $as_echo_n "checking for $ac_word... " >&6; }
  64335. if ${ac_cv_prog_PDFLATEX+:} false; then :
  64336. $as_echo_n "(cached) " >&6
  64337. else
  64338. if test -n "$PDFLATEX"; then
  64339. ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
  64340. else
  64341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64342. for as_dir in $PATH
  64343. do
  64344. IFS=$as_save_IFS
  64345. test -z "$as_dir" && as_dir=.
  64346. for ac_exec_ext in '' $ac_executable_extensions; do
  64347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  64348. ac_cv_prog_PDFLATEX="yes"
  64349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  64350. break 2
  64351. fi
  64352. done
  64353. done
  64354. IFS=$as_save_IFS
  64355. test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="no"
  64356. fi
  64357. fi
  64358. PDFLATEX=$ac_cv_prog_PDFLATEX
  64359. if test -n "$PDFLATEX"; then
  64360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
  64361. $as_echo "$PDFLATEX" >&6; }
  64362. else
  64363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64364. $as_echo "no" >&6; }
  64365. fi
  64366. if test $ac_cv_prog_DOXYGEN = "yes" &&
  64367. test $ac_cv_prog_DOT = "yes" &&
  64368. test $ac_cv_prog_XSLTPROC = "yes" &&
  64369. test $ac_cv_prog_XMLLINT = "yes" &&
  64370. test $ac_cv_prog_DBLATEX = "yes" &&
  64371. test $ac_cv_prog_PDFLATEX = "yes"; then
  64372. BUILD_PDF_TRUE=
  64373. BUILD_PDF_FALSE='#'
  64374. else
  64375. BUILD_PDF_TRUE='#'
  64376. BUILD_PDF_FALSE=
  64377. fi
  64378. case "$build" in
  64379. *-*-darwin* ) glibcxx_include_dir_notparallel=yes ;;
  64380. * ) glibcxx_include_dir_notparallel=no ;;
  64381. esac
  64382. if test $glibcxx_include_dir_notparallel = "yes"; then
  64383. INCLUDE_DIR_NOTPARALLEL_TRUE=
  64384. INCLUDE_DIR_NOTPARALLEL_FALSE='#'
  64385. else
  64386. INCLUDE_DIR_NOTPARALLEL_TRUE='#'
  64387. INCLUDE_DIR_NOTPARALLEL_FALSE=
  64388. fi
  64389. # Propagate the target-specific source directories through the build chain.
  64390. ATOMICITY_SRCDIR=config/${atomicity_dir}
  64391. ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
  64392. ATOMIC_FLAGS=${atomic_flags}
  64393. CPU_DEFINES_SRCDIR=config/${cpu_defines_dir}
  64394. OS_INC_SRCDIR=config/${os_include_dir}
  64395. ERROR_CONSTANTS_SRCDIR=config/${error_constants_dir}
  64396. ABI_TWEAKS_SRCDIR=config/${abi_tweaks_dir}
  64397. CPU_OPT_EXT_RANDOM=config/${cpu_opt_ext_random}
  64398. CPU_OPT_BITS_RANDOM=config/${cpu_opt_bits_random}
  64399. # Conditionalize the makefile for this target machine.
  64400. tmake_file_=
  64401. for f in ${tmake_file}
  64402. do
  64403. if test -f ${srcdir}/config/$f
  64404. then
  64405. tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  64406. fi
  64407. done
  64408. tmake_file="${tmake_file_}"
  64409. # Add CET specific flags if Intel CET is enabled.
  64410. # Check whether --enable-cet was given.
  64411. if test "${enable_cet+set}" = set; then :
  64412. enableval=$enable_cet;
  64413. case "$enableval" in
  64414. yes|no|auto) ;;
  64415. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  64416. esac
  64417. else
  64418. enable_cet=auto
  64419. fi
  64420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  64421. $as_echo_n "checking for CET support... " >&6; }
  64422. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  64423. case "$host" in
  64424. i[34567]86-*-linux* | x86_64-*-linux*)
  64425. case "$enable_cet" in
  64426. auto)
  64427. # Check if target supports multi-byte NOPs
  64428. # and if compiler and assembler support CET insn.
  64429. cet_save_CFLAGS="$CFLAGS"
  64430. CFLAGS="$CFLAGS -fcf-protection"
  64431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64432. /* end confdefs.h. */
  64433. int
  64434. main ()
  64435. {
  64436. #if !defined(__SSE2__)
  64437. #error target does not support multi-byte NOPs
  64438. #else
  64439. asm ("setssbsy");
  64440. #endif
  64441. ;
  64442. return 0;
  64443. }
  64444. _ACEOF
  64445. if ac_fn_c_try_compile "$LINENO"; then :
  64446. enable_cet=yes
  64447. else
  64448. enable_cet=no
  64449. fi
  64450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  64451. CFLAGS="$cet_save_CFLAGS"
  64452. ;;
  64453. yes)
  64454. # Check if assembler supports CET.
  64455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  64456. /* end confdefs.h. */
  64457. int
  64458. main ()
  64459. {
  64460. asm ("setssbsy");
  64461. ;
  64462. return 0;
  64463. }
  64464. _ACEOF
  64465. if ac_fn_c_try_compile "$LINENO"; then :
  64466. else
  64467. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  64468. fi
  64469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  64470. ;;
  64471. esac
  64472. ;;
  64473. *)
  64474. enable_cet=no
  64475. ;;
  64476. esac
  64477. if test x$enable_cet = xyes; then
  64478. CET_FLAGS="-fcf-protection -mshstk"
  64479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  64480. $as_echo "yes" >&6; }
  64481. else
  64482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  64483. $as_echo "no" >&6; }
  64484. fi
  64485. EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"
  64486. EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
  64487. # Determine cross-compile flags and AM_CONDITIONALs.
  64488. #AC_SUBST(GLIBCXX_IS_NATIVE)
  64489. #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
  64490. if test $is_hosted = yes; then
  64491. GLIBCXX_HOSTED_TRUE=
  64492. GLIBCXX_HOSTED_FALSE='#'
  64493. else
  64494. GLIBCXX_HOSTED_TRUE='#'
  64495. GLIBCXX_HOSTED_FALSE=
  64496. fi
  64497. if test $enable_libstdcxx_pch = yes; then
  64498. GLIBCXX_BUILD_PCH_TRUE=
  64499. GLIBCXX_BUILD_PCH_FALSE='#'
  64500. else
  64501. GLIBCXX_BUILD_PCH_TRUE='#'
  64502. GLIBCXX_BUILD_PCH_FALSE=
  64503. fi
  64504. if test $enable_float128 = yes; then
  64505. ENABLE_FLOAT128_TRUE=
  64506. ENABLE_FLOAT128_FALSE='#'
  64507. else
  64508. ENABLE_FLOAT128_TRUE='#'
  64509. ENABLE_FLOAT128_FALSE=
  64510. fi
  64511. if test $enable_libstdcxx_allocator_flag = new; then
  64512. ENABLE_ALLOCATOR_NEW_TRUE=
  64513. ENABLE_ALLOCATOR_NEW_FALSE='#'
  64514. else
  64515. ENABLE_ALLOCATOR_NEW_TRUE='#'
  64516. ENABLE_ALLOCATOR_NEW_FALSE=
  64517. fi
  64518. if test $enable_cheaders = c; then
  64519. GLIBCXX_C_HEADERS_C_TRUE=
  64520. GLIBCXX_C_HEADERS_C_FALSE='#'
  64521. else
  64522. GLIBCXX_C_HEADERS_C_TRUE='#'
  64523. GLIBCXX_C_HEADERS_C_FALSE=
  64524. fi
  64525. if test $enable_cheaders = c_std; then
  64526. GLIBCXX_C_HEADERS_C_STD_TRUE=
  64527. GLIBCXX_C_HEADERS_C_STD_FALSE='#'
  64528. else
  64529. GLIBCXX_C_HEADERS_C_STD_TRUE='#'
  64530. GLIBCXX_C_HEADERS_C_STD_FALSE=
  64531. fi
  64532. if test $enable_cheaders = c_global; then
  64533. GLIBCXX_C_HEADERS_C_GLOBAL_TRUE=
  64534. GLIBCXX_C_HEADERS_C_GLOBAL_FALSE='#'
  64535. else
  64536. GLIBCXX_C_HEADERS_C_GLOBAL_TRUE='#'
  64537. GLIBCXX_C_HEADERS_C_GLOBAL_FALSE=
  64538. fi
  64539. if test $c_compatibility = yes; then
  64540. GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
  64541. GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
  64542. else
  64543. GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
  64544. GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
  64545. fi
  64546. if test $enable_libstdcxx_debug = yes; then
  64547. GLIBCXX_BUILD_DEBUG_TRUE=
  64548. GLIBCXX_BUILD_DEBUG_FALSE='#'
  64549. else
  64550. GLIBCXX_BUILD_DEBUG_TRUE='#'
  64551. GLIBCXX_BUILD_DEBUG_FALSE=
  64552. fi
  64553. if test $enable_extern_template = yes; then
  64554. ENABLE_EXTERN_TEMPLATE_TRUE=
  64555. ENABLE_EXTERN_TEMPLATE_FALSE='#'
  64556. else
  64557. ENABLE_EXTERN_TEMPLATE_TRUE='#'
  64558. ENABLE_EXTERN_TEMPLATE_FALSE=
  64559. fi
  64560. if test $python_mod_dir != no; then
  64561. ENABLE_PYTHONDIR_TRUE=
  64562. ENABLE_PYTHONDIR_FALSE='#'
  64563. else
  64564. ENABLE_PYTHONDIR_TRUE='#'
  64565. ENABLE_PYTHONDIR_FALSE=
  64566. fi
  64567. if test $enable_werror = yes; then
  64568. ENABLE_WERROR_TRUE=
  64569. ENABLE_WERROR_FALSE='#'
  64570. else
  64571. ENABLE_WERROR_TRUE='#'
  64572. ENABLE_WERROR_FALSE=
  64573. fi
  64574. if test $enable_vtable_verify = yes; then
  64575. ENABLE_VTABLE_VERIFY_TRUE=
  64576. ENABLE_VTABLE_VERIFY_FALSE='#'
  64577. else
  64578. ENABLE_VTABLE_VERIFY_TRUE='#'
  64579. ENABLE_VTABLE_VERIFY_FALSE=
  64580. fi
  64581. if test $enable_symvers != no; then
  64582. ENABLE_SYMVERS_TRUE=
  64583. ENABLE_SYMVERS_FALSE='#'
  64584. else
  64585. ENABLE_SYMVERS_TRUE='#'
  64586. ENABLE_SYMVERS_FALSE=
  64587. fi
  64588. if test $enable_symvers = gnu; then
  64589. ENABLE_SYMVERS_GNU_TRUE=
  64590. ENABLE_SYMVERS_GNU_FALSE='#'
  64591. else
  64592. ENABLE_SYMVERS_GNU_TRUE='#'
  64593. ENABLE_SYMVERS_GNU_FALSE=
  64594. fi
  64595. if test $enable_symvers = gnu-versioned-namespace; then
  64596. ENABLE_SYMVERS_GNU_NAMESPACE_TRUE=
  64597. ENABLE_SYMVERS_GNU_NAMESPACE_FALSE='#'
  64598. else
  64599. ENABLE_SYMVERS_GNU_NAMESPACE_TRUE='#'
  64600. ENABLE_SYMVERS_GNU_NAMESPACE_FALSE=
  64601. fi
  64602. if test $enable_symvers = darwin; then
  64603. ENABLE_SYMVERS_DARWIN_TRUE=
  64604. ENABLE_SYMVERS_DARWIN_FALSE='#'
  64605. else
  64606. ENABLE_SYMVERS_DARWIN_TRUE='#'
  64607. ENABLE_SYMVERS_DARWIN_FALSE=
  64608. fi
  64609. if test $enable_symvers = sun; then
  64610. ENABLE_SYMVERS_SUN_TRUE=
  64611. ENABLE_SYMVERS_SUN_FALSE='#'
  64612. else
  64613. ENABLE_SYMVERS_SUN_TRUE='#'
  64614. ENABLE_SYMVERS_SUN_FALSE=
  64615. fi
  64616. if test $enable_libstdcxx_visibility = yes; then
  64617. ENABLE_VISIBILITY_TRUE=
  64618. ENABLE_VISIBILITY_FALSE='#'
  64619. else
  64620. ENABLE_VISIBILITY_TRUE='#'
  64621. ENABLE_VISIBILITY_FALSE=
  64622. fi
  64623. if test $enable_libstdcxx_dual_abi = yes; then
  64624. ENABLE_DUAL_ABI_TRUE=
  64625. ENABLE_DUAL_ABI_FALSE='#'
  64626. else
  64627. ENABLE_DUAL_ABI_TRUE='#'
  64628. ENABLE_DUAL_ABI_FALSE=
  64629. fi
  64630. if test $glibcxx_cxx11_abi = 1; then
  64631. ENABLE_CXX11_ABI_TRUE=
  64632. ENABLE_CXX11_ABI_FALSE='#'
  64633. else
  64634. ENABLE_CXX11_ABI_TRUE='#'
  64635. ENABLE_CXX11_ABI_FALSE=
  64636. fi
  64637. if test $ac_ldbl_compat = yes; then
  64638. GLIBCXX_LDBL_COMPAT_TRUE=
  64639. GLIBCXX_LDBL_COMPAT_FALSE='#'
  64640. else
  64641. GLIBCXX_LDBL_COMPAT_TRUE='#'
  64642. GLIBCXX_LDBL_COMPAT_FALSE=
  64643. fi
  64644. if test $ac_ldbl_alt128_compat = yes; then
  64645. GLIBCXX_LDBL_ALT128_COMPAT_TRUE=
  64646. GLIBCXX_LDBL_ALT128_COMPAT_FALSE='#'
  64647. else
  64648. GLIBCXX_LDBL_ALT128_COMPAT_TRUE='#'
  64649. GLIBCXX_LDBL_ALT128_COMPAT_FALSE=
  64650. fi
  64651. if test $enable_libstdcxx_filesystem_ts = yes; then
  64652. ENABLE_FILESYSTEM_TS_TRUE=
  64653. ENABLE_FILESYSTEM_TS_FALSE='#'
  64654. else
  64655. ENABLE_FILESYSTEM_TS_TRUE='#'
  64656. ENABLE_FILESYSTEM_TS_FALSE=
  64657. fi
  64658. if test "$enable_libstdcxx_backtrace" != no; then
  64659. ENABLE_BACKTRACE_TRUE=
  64660. ENABLE_BACKTRACE_FALSE='#'
  64661. else
  64662. ENABLE_BACKTRACE_TRUE='#'
  64663. ENABLE_BACKTRACE_FALSE=
  64664. fi
  64665. cat >confcache <<\_ACEOF
  64666. # This file is a shell script that caches the results of configure
  64667. # tests run on this system so they can be shared between configure
  64668. # scripts and configure runs, see configure's option --config-cache.
  64669. # It is not useful on other systems. If it contains results you don't
  64670. # want to keep, you may remove or edit it.
  64671. #
  64672. # config.status only pays attention to the cache file if you give it
  64673. # the --recheck option to rerun configure.
  64674. #
  64675. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  64676. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  64677. # following values.
  64678. _ACEOF
  64679. # The following way of writing the cache mishandles newlines in values,
  64680. # but we know of no workaround that is simple, portable, and efficient.
  64681. # So, we kill variables containing newlines.
  64682. # Ultrix sh set writes to stderr and can't be redirected directly,
  64683. # and sets the high bit in the cache file unless we assign to the vars.
  64684. (
  64685. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  64686. eval ac_val=\$$ac_var
  64687. case $ac_val in #(
  64688. *${as_nl}*)
  64689. case $ac_var in #(
  64690. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  64691. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  64692. esac
  64693. case $ac_var in #(
  64694. _ | IFS | as_nl) ;; #(
  64695. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  64696. *) { eval $ac_var=; unset $ac_var;} ;;
  64697. esac ;;
  64698. esac
  64699. done
  64700. (set) 2>&1 |
  64701. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  64702. *${as_nl}ac_space=\ *)
  64703. # `set' does not quote correctly, so add quotes: double-quote
  64704. # substitution turns \\\\ into \\, and sed turns \\ into \.
  64705. sed -n \
  64706. "s/'/'\\\\''/g;
  64707. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  64708. ;; #(
  64709. *)
  64710. # `set' quotes correctly as required by POSIX, so do not add quotes.
  64711. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  64712. ;;
  64713. esac |
  64714. sort
  64715. ) |
  64716. sed '
  64717. /^ac_cv_env_/b end
  64718. t clear
  64719. :clear
  64720. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  64721. t end
  64722. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  64723. :end' >>confcache
  64724. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  64725. if test -w "$cache_file"; then
  64726. if test "x$cache_file" != "x/dev/null"; then
  64727. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  64728. $as_echo "$as_me: updating cache $cache_file" >&6;}
  64729. if test ! -f "$cache_file" || test -h "$cache_file"; then
  64730. cat confcache >"$cache_file"
  64731. else
  64732. case $cache_file in #(
  64733. */* | ?:*)
  64734. mv -f confcache "$cache_file"$$ &&
  64735. mv -f "$cache_file"$$ "$cache_file" ;; #(
  64736. *)
  64737. mv -f confcache "$cache_file" ;;
  64738. esac
  64739. fi
  64740. fi
  64741. else
  64742. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  64743. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  64744. fi
  64745. fi
  64746. rm -f confcache
  64747. if test ${multilib} = yes; then
  64748. multilib_arg="--enable-multilib"
  64749. else
  64750. multilib_arg=
  64751. fi
  64752. # Export all the install information.
  64753. glibcxx_toolexecdir=no
  64754. glibcxx_toolexeclibdir=no
  64755. glibcxx_prefixdir=$prefix
  64756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gxx-include-dir" >&5
  64757. $as_echo_n "checking for gxx-include-dir... " >&6; }
  64758. # Check whether --with-gxx-include-dir was given.
  64759. if test "${with_gxx_include_dir+set}" = set; then :
  64760. withval=$with_gxx_include_dir; case "$withval" in
  64761. yes) as_fn_error $? "Missing directory for --with-gxx-include-dir" "$LINENO" 5 ;;
  64762. no) gxx_include_dir=no ;;
  64763. *) gxx_include_dir=$withval ;;
  64764. esac
  64765. else
  64766. gxx_include_dir=no
  64767. fi
  64768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
  64769. $as_echo "$gxx_include_dir" >&6; }
  64770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  64771. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  64772. # Check whether --enable-version-specific-runtime-libs was given.
  64773. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  64774. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  64775. yes) version_specific_libs=yes ;;
  64776. no) version_specific_libs=no ;;
  64777. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  64778. esac
  64779. else
  64780. version_specific_libs=no
  64781. fi
  64782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  64783. $as_echo "$version_specific_libs" >&6; }
  64784. # Check whether --with-toolexeclibdir was given.
  64785. if test "${with_toolexeclibdir+set}" = set; then :
  64786. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  64787. /)
  64788. ;;
  64789. */)
  64790. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  64791. ;;
  64792. esac
  64793. else
  64794. with_toolexeclibdir=no
  64795. fi
  64796. # Default case for install directory for include files.
  64797. if test $version_specific_libs = no && test $gxx_include_dir = no; then
  64798. gxx_include_dir='include/c++/${gcc_version}'
  64799. if test -n "$with_cross_host" &&
  64800. test x"$with_cross_host" != x"no"; then
  64801. gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
  64802. else
  64803. gxx_include_dir='${prefix}/'"$gxx_include_dir"
  64804. fi
  64805. fi
  64806. # Version-specific runtime libs processing.
  64807. if test $version_specific_libs = yes; then
  64808. # Need the gcc compiler version to know where to install libraries
  64809. # and header files if --enable-version-specific-runtime-libs option
  64810. # is selected. FIXME: these variables are misnamed, there are
  64811. # no executables installed in _toolexecdir or _toolexeclibdir.
  64812. if test x"$gxx_include_dir" = x"no"; then
  64813. gxx_include_dir='${libdir}/gcc/${host_alias}/${gcc_version}/include/c++'
  64814. fi
  64815. glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
  64816. glibcxx_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
  64817. fi
  64818. # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
  64819. # Install a library built with a cross compiler in tooldir, not libdir.
  64820. if test x"$glibcxx_toolexecdir" = x"no"; then
  64821. if test -n "$with_cross_host" &&
  64822. test x"$with_cross_host" != x"no"; then
  64823. glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
  64824. case ${with_toolexeclibdir} in
  64825. no)
  64826. glibcxx_toolexeclibdir='${toolexecdir}/lib'
  64827. ;;
  64828. *)
  64829. glibcxx_toolexeclibdir=${with_toolexeclibdir}
  64830. ;;
  64831. esac
  64832. else
  64833. glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
  64834. glibcxx_toolexeclibdir='${libdir}'
  64835. fi
  64836. multi_os_directory=`$CXX -print-multi-os-directory`
  64837. case $multi_os_directory in
  64838. .) ;; # Avoid trailing /.
  64839. *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
  64840. esac
  64841. fi
  64842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install location" >&5
  64843. $as_echo_n "checking for install location... " >&6; }
  64844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
  64845. $as_echo "$gxx_include_dir" >&6; }
  64846. # Export all the include and flag information to Makefiles.
  64847. # Used for every C++ compile we perform.
  64848. GLIBCXX_INCLUDES="\
  64849. -I$glibcxx_builddir/include/$host_alias \
  64850. -I$glibcxx_builddir/include \
  64851. -I$glibcxx_srcdir/libsupc++"
  64852. # For Canadian crosses, pick this up too.
  64853. if test $CANADIAN = yes; then
  64854. GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
  64855. fi
  64856. # Stuff in the actual top level. Currently only used by libsupc++ to
  64857. # get unwind* headers from the libgcc dir.
  64858. #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc -I$(toplevel_srcdir)/include'
  64859. TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc'
  64860. # Now, export this to all the little Makefiles....
  64861. # Optimization flags that are probably a good idea for thrill-seekers. Just
  64862. # uncomment the lines below and make, everything else is ready to go...
  64863. # Alternatively OPTIMIZE_CXXFLAGS can be set in configure.host.
  64864. # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
  64865. WARN_FLAGS="-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2"
  64866. # Determine what GCC version number to use in filesystem paths.
  64867. get_gcc_base_ver="cat"
  64868. # Check whether --with-gcc-major-version-only was given.
  64869. if test "${with_gcc_major_version_only+set}" = set; then :
  64870. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  64871. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  64872. fi
  64873. fi
  64874. ac_config_files="$ac_config_files Makefile"
  64875. ac_config_files="$ac_config_files scripts/testsuite_flags"
  64876. ac_config_files="$ac_config_files scripts/extract_symvers"
  64877. ac_config_files="$ac_config_files doc/xsl/customization.xsl"
  64878. ac_config_files="$ac_config_files src/libbacktrace/backtrace-supported.h"
  64879. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  64880. # that multilib installs will end up installed in the correct place.
  64881. # The testsuite needs it for multilib-aware ABI baseline files.
  64882. # To work around this not being passed down from config-ml.in ->
  64883. # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
  64884. # append it here. Only modify Makefiles that have just been created.
  64885. #
  64886. # Also, get rid of this simulated-VPATH thing that automake does.
  64887. ac_config_files="$ac_config_files include/Makefile libsupc++/Makefile src/Makefile src/c++98/Makefile src/c++11/Makefile src/c++17/Makefile src/c++20/Makefile src/filesystem/Makefile src/libbacktrace/Makefile doc/Makefile po/Makefile testsuite/Makefile python/Makefile"
  64888. ac_config_commands="$ac_config_commands generate-headers"
  64889. cat >confcache <<\_ACEOF
  64890. # This file is a shell script that caches the results of configure
  64891. # tests run on this system so they can be shared between configure
  64892. # scripts and configure runs, see configure's option --config-cache.
  64893. # It is not useful on other systems. If it contains results you don't
  64894. # want to keep, you may remove or edit it.
  64895. #
  64896. # config.status only pays attention to the cache file if you give it
  64897. # the --recheck option to rerun configure.
  64898. #
  64899. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  64900. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  64901. # following values.
  64902. _ACEOF
  64903. # The following way of writing the cache mishandles newlines in values,
  64904. # but we know of no workaround that is simple, portable, and efficient.
  64905. # So, we kill variables containing newlines.
  64906. # Ultrix sh set writes to stderr and can't be redirected directly,
  64907. # and sets the high bit in the cache file unless we assign to the vars.
  64908. (
  64909. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  64910. eval ac_val=\$$ac_var
  64911. case $ac_val in #(
  64912. *${as_nl}*)
  64913. case $ac_var in #(
  64914. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  64915. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  64916. esac
  64917. case $ac_var in #(
  64918. _ | IFS | as_nl) ;; #(
  64919. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  64920. *) { eval $ac_var=; unset $ac_var;} ;;
  64921. esac ;;
  64922. esac
  64923. done
  64924. (set) 2>&1 |
  64925. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  64926. *${as_nl}ac_space=\ *)
  64927. # `set' does not quote correctly, so add quotes: double-quote
  64928. # substitution turns \\\\ into \\, and sed turns \\ into \.
  64929. sed -n \
  64930. "s/'/'\\\\''/g;
  64931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  64932. ;; #(
  64933. *)
  64934. # `set' quotes correctly as required by POSIX, so do not add quotes.
  64935. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  64936. ;;
  64937. esac |
  64938. sort
  64939. ) |
  64940. sed '
  64941. /^ac_cv_env_/b end
  64942. t clear
  64943. :clear
  64944. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  64945. t end
  64946. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  64947. :end' >>confcache
  64948. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  64949. if test -w "$cache_file"; then
  64950. if test "x$cache_file" != "x/dev/null"; then
  64951. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  64952. $as_echo "$as_me: updating cache $cache_file" >&6;}
  64953. if test ! -f "$cache_file" || test -h "$cache_file"; then
  64954. cat confcache >"$cache_file"
  64955. else
  64956. case $cache_file in #(
  64957. */* | ?:*)
  64958. mv -f confcache "$cache_file"$$ &&
  64959. mv -f "$cache_file"$$ "$cache_file" ;; #(
  64960. *)
  64961. mv -f confcache "$cache_file" ;;
  64962. esac
  64963. fi
  64964. fi
  64965. else
  64966. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  64967. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  64968. fi
  64969. fi
  64970. rm -f confcache
  64971. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  64972. # Let make expand exec_prefix.
  64973. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  64974. DEFS=-DHAVE_CONFIG_H
  64975. ac_libobjs=
  64976. ac_ltlibobjs=
  64977. U=
  64978. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  64979. # 1. Remove the extension, and $U if already installed.
  64980. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  64981. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  64982. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  64983. # will be set to the directory where LIBOBJS objects are built.
  64984. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  64985. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  64986. done
  64987. LIBOBJS=$ac_libobjs
  64988. LTLIBOBJS=$ac_ltlibobjs
  64989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  64990. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  64991. if test -n "$am_sleep_pid"; then
  64992. # Hide warnings about reused PIDs.
  64993. wait $am_sleep_pid 2>/dev/null
  64994. fi
  64995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  64996. $as_echo "done" >&6; }
  64997. if test -n "$EXEEXT"; then
  64998. am__EXEEXT_TRUE=
  64999. am__EXEEXT_FALSE='#'
  65000. else
  65001. am__EXEEXT_TRUE='#'
  65002. am__EXEEXT_FALSE=
  65003. fi
  65004. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  65005. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  65006. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65007. fi
  65008. if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
  65009. as_fn_error $? "conditional \"GLIBCXX_HOSTED\" was never defined.
  65010. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65011. fi
  65012. if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
  65013. as_fn_error $? "conditional \"GLIBCXX_BUILD_PCH\" was never defined.
  65014. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65015. fi
  65016. if test -z "${ENABLE_FLOAT128_TRUE}" && test -z "${ENABLE_FLOAT128_FALSE}"; then
  65017. as_fn_error $? "conditional \"ENABLE_FLOAT128\" was never defined.
  65018. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65019. fi
  65020. if test -z "${ENABLE_ALLOCATOR_NEW_TRUE}" && test -z "${ENABLE_ALLOCATOR_NEW_FALSE}"; then
  65021. as_fn_error $? "conditional \"ENABLE_ALLOCATOR_NEW\" was never defined.
  65022. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65023. fi
  65024. if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
  65025. as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
  65026. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65027. fi
  65028. if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
  65029. as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
  65030. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65031. fi
  65032. if test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_FALSE}"; then
  65033. as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_GLOBAL\" was never defined.
  65034. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65035. fi
  65036. if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
  65037. as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
  65038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65039. fi
  65040. if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
  65041. as_fn_error $? "conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
  65042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65043. fi
  65044. if test -z "${ENABLE_EXTERN_TEMPLATE_TRUE}" && test -z "${ENABLE_EXTERN_TEMPLATE_FALSE}"; then
  65045. as_fn_error $? "conditional \"ENABLE_EXTERN_TEMPLATE\" was never defined.
  65046. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65047. fi
  65048. if test -z "${ENABLE_PYTHONDIR_TRUE}" && test -z "${ENABLE_PYTHONDIR_FALSE}"; then
  65049. as_fn_error $? "conditional \"ENABLE_PYTHONDIR\" was never defined.
  65050. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65051. fi
  65052. if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then
  65053. as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined.
  65054. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65055. fi
  65056. if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
  65057. as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
  65058. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65059. fi
  65060. if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
  65061. as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
  65062. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65063. fi
  65064. if test -z "${ENABLE_SYMVERS_TRUE}" && test -z "${ENABLE_SYMVERS_FALSE}"; then
  65065. as_fn_error $? "conditional \"ENABLE_SYMVERS\" was never defined.
  65066. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65067. fi
  65068. if test -z "${ENABLE_SYMVERS_GNU_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_FALSE}"; then
  65069. as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU\" was never defined.
  65070. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65071. fi
  65072. if test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_FALSE}"; then
  65073. as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU_NAMESPACE\" was never defined.
  65074. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65075. fi
  65076. if test -z "${ENABLE_SYMVERS_DARWIN_TRUE}" && test -z "${ENABLE_SYMVERS_DARWIN_FALSE}"; then
  65077. as_fn_error $? "conditional \"ENABLE_SYMVERS_DARWIN\" was never defined.
  65078. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65079. fi
  65080. if test -z "${ENABLE_SYMVERS_SUN_TRUE}" && test -z "${ENABLE_SYMVERS_SUN_FALSE}"; then
  65081. as_fn_error $? "conditional \"ENABLE_SYMVERS_SUN\" was never defined.
  65082. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65083. fi
  65084. if test -z "${ENABLE_VISIBILITY_TRUE}" && test -z "${ENABLE_VISIBILITY_FALSE}"; then
  65085. as_fn_error $? "conditional \"ENABLE_VISIBILITY\" was never defined.
  65086. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65087. fi
  65088. if test -z "${ENABLE_DUAL_ABI_TRUE}" && test -z "${ENABLE_DUAL_ABI_FALSE}"; then
  65089. as_fn_error $? "conditional \"ENABLE_DUAL_ABI\" was never defined.
  65090. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65091. fi
  65092. if test -z "${ENABLE_CXX11_ABI_TRUE}" && test -z "${ENABLE_CXX11_ABI_FALSE}"; then
  65093. as_fn_error $? "conditional \"ENABLE_CXX11_ABI\" was never defined.
  65094. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65095. fi
  65096. if test -z "${GLIBCXX_LDBL_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_COMPAT_FALSE}"; then
  65097. as_fn_error $? "conditional \"GLIBCXX_LDBL_COMPAT\" was never defined.
  65098. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65099. fi
  65100. if test -z "${GLIBCXX_LDBL_ALT128_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_ALT128_COMPAT_FALSE}"; then
  65101. as_fn_error $? "conditional \"GLIBCXX_LDBL_ALT128_COMPAT\" was never defined.
  65102. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65103. fi
  65104. if test -z "${ENABLE_FILESYSTEM_TS_TRUE}" && test -z "${ENABLE_FILESYSTEM_TS_FALSE}"; then
  65105. as_fn_error $? "conditional \"ENABLE_FILESYSTEM_TS\" was never defined.
  65106. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65107. fi
  65108. if test -z "${ENABLE_BACKTRACE_TRUE}" && test -z "${ENABLE_BACKTRACE_FALSE}"; then
  65109. as_fn_error $? "conditional \"ENABLE_BACKTRACE\" was never defined.
  65110. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65111. fi
  65112. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  65113. as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
  65114. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65115. fi
  65116. if test -z "${BUILD_EPUB_TRUE}" && test -z "${BUILD_EPUB_FALSE}"; then
  65117. as_fn_error $? "conditional \"BUILD_EPUB\" was never defined.
  65118. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65119. fi
  65120. if test -z "${BUILD_XML_TRUE}" && test -z "${BUILD_XML_FALSE}"; then
  65121. as_fn_error $? "conditional \"BUILD_XML\" was never defined.
  65122. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65123. fi
  65124. if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
  65125. as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
  65126. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65127. fi
  65128. if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
  65129. as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
  65130. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65131. fi
  65132. if test -z "${BUILD_PDF_TRUE}" && test -z "${BUILD_PDF_FALSE}"; then
  65133. as_fn_error $? "conditional \"BUILD_PDF\" was never defined.
  65134. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65135. fi
  65136. if test -z "${INCLUDE_DIR_NOTPARALLEL_TRUE}" && test -z "${INCLUDE_DIR_NOTPARALLEL_FALSE}"; then
  65137. as_fn_error $? "conditional \"INCLUDE_DIR_NOTPARALLEL\" was never defined.
  65138. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  65139. fi
  65140. : "${CONFIG_STATUS=./config.status}"
  65141. ac_write_fail=0
  65142. ac_clean_files_save=$ac_clean_files
  65143. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  65144. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  65145. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  65146. as_write_fail=0
  65147. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  65148. #! $SHELL
  65149. # Generated by $as_me.
  65150. # Run this file to recreate the current configuration.
  65151. # Compiler output produced by configure, useful for debugging
  65152. # configure, is in config.log if it exists.
  65153. debug=false
  65154. ac_cs_recheck=false
  65155. ac_cs_silent=false
  65156. SHELL=\${CONFIG_SHELL-$SHELL}
  65157. export SHELL
  65158. _ASEOF
  65159. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  65160. ## -------------------- ##
  65161. ## M4sh Initialization. ##
  65162. ## -------------------- ##
  65163. # Be more Bourne compatible
  65164. DUALCASE=1; export DUALCASE # for MKS sh
  65165. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  65166. emulate sh
  65167. NULLCMD=:
  65168. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  65169. # is contrary to our usage. Disable this feature.
  65170. alias -g '${1+"$@"}'='"$@"'
  65171. setopt NO_GLOB_SUBST
  65172. else
  65173. case `(set -o) 2>/dev/null` in #(
  65174. *posix*) :
  65175. set -o posix ;; #(
  65176. *) :
  65177. ;;
  65178. esac
  65179. fi
  65180. as_nl='
  65181. '
  65182. export as_nl
  65183. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  65184. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  65185. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  65186. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  65187. # Prefer a ksh shell builtin over an external printf program on Solaris,
  65188. # but without wasting forks for bash or zsh.
  65189. if test -z "$BASH_VERSION$ZSH_VERSION" \
  65190. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  65191. as_echo='print -r --'
  65192. as_echo_n='print -rn --'
  65193. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  65194. as_echo='printf %s\n'
  65195. as_echo_n='printf %s'
  65196. else
  65197. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  65198. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  65199. as_echo_n='/usr/ucb/echo -n'
  65200. else
  65201. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  65202. as_echo_n_body='eval
  65203. arg=$1;
  65204. case $arg in #(
  65205. *"$as_nl"*)
  65206. expr "X$arg" : "X\\(.*\\)$as_nl";
  65207. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  65208. esac;
  65209. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65210. '
  65211. export as_echo_n_body
  65212. as_echo_n='sh -c $as_echo_n_body as_echo'
  65213. fi
  65214. export as_echo_body
  65215. as_echo='sh -c $as_echo_body as_echo'
  65216. fi
  65217. # The user is always right.
  65218. if test "${PATH_SEPARATOR+set}" != set; then
  65219. PATH_SEPARATOR=:
  65220. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  65221. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  65222. PATH_SEPARATOR=';'
  65223. }
  65224. fi
  65225. # IFS
  65226. # We need space, tab and new line, in precisely that order. Quoting is
  65227. # there to prevent editors from complaining about space-tab.
  65228. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  65229. # splitting by setting IFS to empty value.)
  65230. IFS=" "" $as_nl"
  65231. # Find who we are. Look in the path if we contain no directory separator.
  65232. as_myself=
  65233. case $0 in #((
  65234. *[\\/]* ) as_myself=$0 ;;
  65235. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65236. for as_dir in $PATH
  65237. do
  65238. IFS=$as_save_IFS
  65239. test -z "$as_dir" && as_dir=.
  65240. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  65241. done
  65242. IFS=$as_save_IFS
  65243. ;;
  65244. esac
  65245. # We did not find ourselves, most probably we were run as `sh COMMAND'
  65246. # in which case we are not to be found in the path.
  65247. if test "x$as_myself" = x; then
  65248. as_myself=$0
  65249. fi
  65250. if test ! -f "$as_myself"; then
  65251. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  65252. exit 1
  65253. fi
  65254. # Unset variables that we do not need and which cause bugs (e.g. in
  65255. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  65256. # suppresses any "Segmentation fault" message there. '((' could
  65257. # trigger a bug in pdksh 5.2.14.
  65258. for as_var in BASH_ENV ENV MAIL MAILPATH
  65259. do eval test x\${$as_var+set} = xset \
  65260. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  65261. done
  65262. PS1='$ '
  65263. PS2='> '
  65264. PS4='+ '
  65265. # NLS nuisances.
  65266. LC_ALL=C
  65267. export LC_ALL
  65268. LANGUAGE=C
  65269. export LANGUAGE
  65270. # CDPATH.
  65271. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  65272. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  65273. # ----------------------------------------
  65274. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  65275. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  65276. # script with STATUS, using 1 if that was 0.
  65277. as_fn_error ()
  65278. {
  65279. as_status=$1; test $as_status -eq 0 && as_status=1
  65280. if test "$4"; then
  65281. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  65282. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  65283. fi
  65284. $as_echo "$as_me: error: $2" >&2
  65285. as_fn_exit $as_status
  65286. } # as_fn_error
  65287. # as_fn_set_status STATUS
  65288. # -----------------------
  65289. # Set $? to STATUS, without forking.
  65290. as_fn_set_status ()
  65291. {
  65292. return $1
  65293. } # as_fn_set_status
  65294. # as_fn_exit STATUS
  65295. # -----------------
  65296. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  65297. as_fn_exit ()
  65298. {
  65299. set +e
  65300. as_fn_set_status $1
  65301. exit $1
  65302. } # as_fn_exit
  65303. # as_fn_unset VAR
  65304. # ---------------
  65305. # Portably unset VAR.
  65306. as_fn_unset ()
  65307. {
  65308. { eval $1=; unset $1;}
  65309. }
  65310. as_unset=as_fn_unset
  65311. # as_fn_append VAR VALUE
  65312. # ----------------------
  65313. # Append the text in VALUE to the end of the definition contained in VAR. Take
  65314. # advantage of any shell optimizations that allow amortized linear growth over
  65315. # repeated appends, instead of the typical quadratic growth present in naive
  65316. # implementations.
  65317. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  65318. eval 'as_fn_append ()
  65319. {
  65320. eval $1+=\$2
  65321. }'
  65322. else
  65323. as_fn_append ()
  65324. {
  65325. eval $1=\$$1\$2
  65326. }
  65327. fi # as_fn_append
  65328. # as_fn_arith ARG...
  65329. # ------------------
  65330. # Perform arithmetic evaluation on the ARGs, and store the result in the
  65331. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  65332. # must be portable across $(()) and expr.
  65333. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  65334. eval 'as_fn_arith ()
  65335. {
  65336. as_val=$(( $* ))
  65337. }'
  65338. else
  65339. as_fn_arith ()
  65340. {
  65341. as_val=`expr "$@" || test $? -eq 1`
  65342. }
  65343. fi # as_fn_arith
  65344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  65345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  65346. as_expr=expr
  65347. else
  65348. as_expr=false
  65349. fi
  65350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  65351. as_basename=basename
  65352. else
  65353. as_basename=false
  65354. fi
  65355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  65356. as_dirname=dirname
  65357. else
  65358. as_dirname=false
  65359. fi
  65360. as_me=`$as_basename -- "$0" ||
  65361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  65362. X"$0" : 'X\(//\)$' \| \
  65363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  65364. $as_echo X/"$0" |
  65365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  65366. s//\1/
  65367. q
  65368. }
  65369. /^X\/\(\/\/\)$/{
  65370. s//\1/
  65371. q
  65372. }
  65373. /^X\/\(\/\).*/{
  65374. s//\1/
  65375. q
  65376. }
  65377. s/.*/./; q'`
  65378. # Avoid depending upon Character Ranges.
  65379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  65380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  65381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  65382. as_cr_digits='0123456789'
  65383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  65384. ECHO_C= ECHO_N= ECHO_T=
  65385. case `echo -n x` in #(((((
  65386. -n*)
  65387. case `echo 'xy\c'` in
  65388. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  65389. xy) ECHO_C='\c';;
  65390. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  65391. ECHO_T=' ';;
  65392. esac;;
  65393. *)
  65394. ECHO_N='-n';;
  65395. esac
  65396. rm -f conf$$ conf$$.exe conf$$.file
  65397. if test -d conf$$.dir; then
  65398. rm -f conf$$.dir/conf$$.file
  65399. else
  65400. rm -f conf$$.dir
  65401. mkdir conf$$.dir 2>/dev/null
  65402. fi
  65403. if (echo >conf$$.file) 2>/dev/null; then
  65404. if ln -s conf$$.file conf$$ 2>/dev/null; then
  65405. as_ln_s='ln -s'
  65406. # ... but there are two gotchas:
  65407. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  65408. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  65409. # In both cases, we have to default to `cp -pR'.
  65410. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  65411. as_ln_s='cp -pR'
  65412. elif ln conf$$.file conf$$ 2>/dev/null; then
  65413. as_ln_s=ln
  65414. else
  65415. as_ln_s='cp -pR'
  65416. fi
  65417. else
  65418. as_ln_s='cp -pR'
  65419. fi
  65420. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  65421. rmdir conf$$.dir 2>/dev/null
  65422. # as_fn_mkdir_p
  65423. # -------------
  65424. # Create "$as_dir" as a directory, including parents if necessary.
  65425. as_fn_mkdir_p ()
  65426. {
  65427. case $as_dir in #(
  65428. -*) as_dir=./$as_dir;;
  65429. esac
  65430. test -d "$as_dir" || eval $as_mkdir_p || {
  65431. as_dirs=
  65432. while :; do
  65433. case $as_dir in #(
  65434. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  65435. *) as_qdir=$as_dir;;
  65436. esac
  65437. as_dirs="'$as_qdir' $as_dirs"
  65438. as_dir=`$as_dirname -- "$as_dir" ||
  65439. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  65440. X"$as_dir" : 'X\(//\)[^/]' \| \
  65441. X"$as_dir" : 'X\(//\)$' \| \
  65442. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  65443. $as_echo X"$as_dir" |
  65444. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  65445. s//\1/
  65446. q
  65447. }
  65448. /^X\(\/\/\)[^/].*/{
  65449. s//\1/
  65450. q
  65451. }
  65452. /^X\(\/\/\)$/{
  65453. s//\1/
  65454. q
  65455. }
  65456. /^X\(\/\).*/{
  65457. s//\1/
  65458. q
  65459. }
  65460. s/.*/./; q'`
  65461. test -d "$as_dir" && break
  65462. done
  65463. test -z "$as_dirs" || eval "mkdir $as_dirs"
  65464. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  65465. } # as_fn_mkdir_p
  65466. if mkdir -p . 2>/dev/null; then
  65467. as_mkdir_p='mkdir -p "$as_dir"'
  65468. else
  65469. test -d ./-p && rmdir ./-p
  65470. as_mkdir_p=false
  65471. fi
  65472. # as_fn_executable_p FILE
  65473. # -----------------------
  65474. # Test if FILE is an executable regular file.
  65475. as_fn_executable_p ()
  65476. {
  65477. test -f "$1" && test -x "$1"
  65478. } # as_fn_executable_p
  65479. as_test_x='test -x'
  65480. as_executable_p=as_fn_executable_p
  65481. # Sed expression to map a string onto a valid CPP name.
  65482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  65483. # Sed expression to map a string onto a valid variable name.
  65484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  65485. exec 6>&1
  65486. ## ----------------------------------- ##
  65487. ## Main body of $CONFIG_STATUS script. ##
  65488. ## ----------------------------------- ##
  65489. _ASEOF
  65490. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  65491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  65492. # Save the log message, to keep $0 and so on meaningful, and to
  65493. # report actual input values of CONFIG_FILES etc. instead of their
  65494. # values after options handling.
  65495. ac_log="
  65496. This file was extended by package-unused $as_me version-unused, which was
  65497. generated by GNU Autoconf 2.69. Invocation command line was
  65498. CONFIG_FILES = $CONFIG_FILES
  65499. CONFIG_HEADERS = $CONFIG_HEADERS
  65500. CONFIG_LINKS = $CONFIG_LINKS
  65501. CONFIG_COMMANDS = $CONFIG_COMMANDS
  65502. $ $0 $@
  65503. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  65504. "
  65505. _ACEOF
  65506. case $ac_config_files in *"
  65507. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  65508. esac
  65509. case $ac_config_headers in *"
  65510. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  65511. esac
  65512. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  65513. # Files that config.status was made for.
  65514. config_files="$ac_config_files"
  65515. config_headers="$ac_config_headers"
  65516. config_commands="$ac_config_commands"
  65517. _ACEOF
  65518. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  65519. ac_cs_usage="\
  65520. \`$as_me' instantiates files and other configuration actions
  65521. from templates according to the current configuration. Unless the files
  65522. and actions are specified as TAGs, all are instantiated by default.
  65523. Usage: $0 [OPTION]... [TAG]...
  65524. -h, --help print this help, then exit
  65525. -V, --version print version number and configuration settings, then exit
  65526. --config print configuration, then exit
  65527. -q, --quiet, --silent
  65528. do not print progress messages
  65529. -d, --debug don't remove temporary files
  65530. --recheck update $as_me by reconfiguring in the same conditions
  65531. --file=FILE[:TEMPLATE]
  65532. instantiate the configuration file FILE
  65533. --header=FILE[:TEMPLATE]
  65534. instantiate the configuration header FILE
  65535. Configuration files:
  65536. $config_files
  65537. Configuration headers:
  65538. $config_headers
  65539. Configuration commands:
  65540. $config_commands
  65541. Report bugs to the package provider."
  65542. _ACEOF
  65543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  65544. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  65545. ac_cs_version="\\
  65546. package-unused config.status version-unused
  65547. configured by $0, generated by GNU Autoconf 2.69,
  65548. with options \\"\$ac_cs_config\\"
  65549. Copyright (C) 2012 Free Software Foundation, Inc.
  65550. This config.status script is free software; the Free Software Foundation
  65551. gives unlimited permission to copy, distribute and modify it."
  65552. ac_pwd='$ac_pwd'
  65553. srcdir='$srcdir'
  65554. INSTALL='$INSTALL'
  65555. MKDIR_P='$MKDIR_P'
  65556. AWK='$AWK'
  65557. test -n "\$AWK" || AWK=awk
  65558. _ACEOF
  65559. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  65560. # The default lists apply if the user does not specify any file.
  65561. ac_need_defaults=:
  65562. while test $# != 0
  65563. do
  65564. case $1 in
  65565. --*=?*)
  65566. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  65567. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  65568. ac_shift=:
  65569. ;;
  65570. --*=)
  65571. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  65572. ac_optarg=
  65573. ac_shift=:
  65574. ;;
  65575. *)
  65576. ac_option=$1
  65577. ac_optarg=$2
  65578. ac_shift=shift
  65579. ;;
  65580. esac
  65581. case $ac_option in
  65582. # Handling of the options.
  65583. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  65584. ac_cs_recheck=: ;;
  65585. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  65586. $as_echo "$ac_cs_version"; exit ;;
  65587. --config | --confi | --conf | --con | --co | --c )
  65588. $as_echo "$ac_cs_config"; exit ;;
  65589. --debug | --debu | --deb | --de | --d | -d )
  65590. debug=: ;;
  65591. --file | --fil | --fi | --f )
  65592. $ac_shift
  65593. case $ac_optarg in
  65594. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  65595. '') as_fn_error $? "missing file argument" ;;
  65596. esac
  65597. as_fn_append CONFIG_FILES " '$ac_optarg'"
  65598. ac_need_defaults=false;;
  65599. --header | --heade | --head | --hea )
  65600. $ac_shift
  65601. case $ac_optarg in
  65602. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  65603. esac
  65604. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  65605. ac_need_defaults=false;;
  65606. --he | --h)
  65607. # Conflict between --help and --header
  65608. as_fn_error $? "ambiguous option: \`$1'
  65609. Try \`$0 --help' for more information.";;
  65610. --help | --hel | -h )
  65611. $as_echo "$ac_cs_usage"; exit ;;
  65612. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  65613. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  65614. ac_cs_silent=: ;;
  65615. # This is an error.
  65616. -*) as_fn_error $? "unrecognized option: \`$1'
  65617. Try \`$0 --help' for more information." ;;
  65618. *) as_fn_append ac_config_targets " $1"
  65619. ac_need_defaults=false ;;
  65620. esac
  65621. shift
  65622. done
  65623. ac_configure_extra_args=
  65624. if $ac_cs_silent; then
  65625. exec 6>/dev/null
  65626. ac_configure_extra_args="$ac_configure_extra_args --silent"
  65627. fi
  65628. _ACEOF
  65629. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  65630. if \$ac_cs_recheck; then
  65631. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  65632. shift
  65633. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  65634. CONFIG_SHELL='$SHELL'
  65635. export CONFIG_SHELL
  65636. exec "\$@"
  65637. fi
  65638. _ACEOF
  65639. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  65640. exec 5>>config.log
  65641. {
  65642. echo
  65643. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  65644. ## Running $as_me. ##
  65645. _ASBOX
  65646. $as_echo "$ac_log"
  65647. } >&5
  65648. _ACEOF
  65649. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  65650. #
  65651. # INIT-COMMANDS
  65652. #
  65653. srcdir="$srcdir"
  65654. host="$host"
  65655. target="$target"
  65656. with_multisubdir="$with_multisubdir"
  65657. with_multisrctop="$with_multisrctop"
  65658. with_target_subdir="$with_target_subdir"
  65659. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  65660. multi_basedir="$multi_basedir"
  65661. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  65662. CC="$CC"
  65663. CXX="$CXX"
  65664. GFORTRAN="$GFORTRAN"
  65665. GDC="$GDC"
  65666. # The HP-UX ksh and POSIX shell print the target directory to stdout
  65667. # if CDPATH is set.
  65668. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  65669. sed_quote_subst='$sed_quote_subst'
  65670. double_quote_subst='$double_quote_subst'
  65671. delay_variable_subst='$delay_variable_subst'
  65672. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  65673. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  65674. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  65675. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  65676. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  65677. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  65678. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  65679. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  65680. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  65681. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  65682. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  65683. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  65684. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  65685. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  65686. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  65687. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  65688. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  65689. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  65690. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  65691. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  65692. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  65693. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  65694. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  65695. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  65696. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  65697. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  65698. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  65699. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  65700. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  65701. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  65702. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  65703. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  65704. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  65705. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  65706. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  65707. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  65708. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  65709. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  65710. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  65711. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  65712. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  65713. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  65714. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  65715. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  65716. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  65717. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  65718. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  65719. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  65720. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  65721. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  65722. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  65723. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  65724. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  65725. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  65726. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  65727. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  65728. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  65729. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  65730. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  65731. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  65732. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  65733. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  65734. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  65735. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  65736. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  65737. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  65738. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  65739. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  65740. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  65741. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  65742. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  65743. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  65744. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  65745. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  65746. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  65747. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  65748. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  65749. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  65750. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  65751. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  65752. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  65753. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  65754. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  65755. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  65756. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  65757. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  65758. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  65759. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  65760. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  65761. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  65762. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  65763. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  65764. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  65765. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  65766. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  65767. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  65768. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  65769. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  65770. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  65771. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  65772. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  65773. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  65774. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  65775. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  65776. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  65777. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  65778. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  65779. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  65780. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  65781. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  65782. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  65783. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  65784. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  65785. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  65786. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  65787. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  65788. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  65789. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  65790. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  65791. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  65792. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  65793. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  65794. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  65795. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  65796. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  65797. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  65798. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  65799. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  65800. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65801. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65802. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  65803. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  65804. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  65805. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  65806. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  65807. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  65808. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  65809. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  65810. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  65811. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  65812. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  65813. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  65814. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65815. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65816. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65817. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65818. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65819. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65820. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  65821. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  65822. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  65823. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  65824. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  65825. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  65826. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  65827. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  65828. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  65829. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  65830. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  65831. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  65832. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  65833. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  65834. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  65835. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65836. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  65837. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  65838. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  65839. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  65840. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  65841. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  65842. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  65843. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  65844. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  65845. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  65846. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  65847. LTCC='$LTCC'
  65848. LTCFLAGS='$LTCFLAGS'
  65849. compiler='$compiler_DEFAULT'
  65850. # A function that is used when there is no print builtin or printf.
  65851. func_fallback_echo ()
  65852. {
  65853. eval 'cat <<_LTECHO_EOF
  65854. \$1
  65855. _LTECHO_EOF'
  65856. }
  65857. # Quote evaled strings.
  65858. for var in SHELL \
  65859. ECHO \
  65860. SED \
  65861. GREP \
  65862. EGREP \
  65863. FGREP \
  65864. LD \
  65865. NM \
  65866. LN_S \
  65867. lt_SP2NL \
  65868. lt_NL2SP \
  65869. reload_flag \
  65870. OBJDUMP \
  65871. deplibs_check_method \
  65872. file_magic_cmd \
  65873. AR \
  65874. AR_FLAGS \
  65875. STRIP \
  65876. RANLIB \
  65877. CC \
  65878. CFLAGS \
  65879. compiler \
  65880. lt_cv_sys_global_symbol_pipe \
  65881. lt_cv_sys_global_symbol_to_cdecl \
  65882. lt_cv_sys_global_symbol_to_c_name_address \
  65883. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  65884. lt_prog_compiler_no_builtin_flag \
  65885. lt_prog_compiler_wl \
  65886. lt_prog_compiler_pic \
  65887. lt_prog_compiler_static \
  65888. lt_cv_prog_compiler_c_o \
  65889. need_locks \
  65890. DSYMUTIL \
  65891. NMEDIT \
  65892. LIPO \
  65893. OTOOL \
  65894. OTOOL64 \
  65895. shrext_cmds \
  65896. export_dynamic_flag_spec \
  65897. whole_archive_flag_spec \
  65898. compiler_needs_object \
  65899. with_gnu_ld \
  65900. allow_undefined_flag \
  65901. no_undefined_flag \
  65902. hardcode_libdir_flag_spec \
  65903. hardcode_libdir_flag_spec_ld \
  65904. hardcode_libdir_separator \
  65905. fix_srcfile_path \
  65906. exclude_expsyms \
  65907. include_expsyms \
  65908. file_list_spec \
  65909. variables_saved_for_relink \
  65910. libname_spec \
  65911. library_names_spec \
  65912. soname_spec \
  65913. install_override_mode \
  65914. finish_eval \
  65915. old_striplib \
  65916. striplib \
  65917. compiler_lib_search_dirs \
  65918. predep_objects \
  65919. postdep_objects \
  65920. predeps \
  65921. postdeps \
  65922. compiler_lib_search_path \
  65923. LD_CXX \
  65924. reload_flag_CXX \
  65925. compiler_CXX \
  65926. lt_prog_compiler_no_builtin_flag_CXX \
  65927. lt_prog_compiler_wl_CXX \
  65928. lt_prog_compiler_pic_CXX \
  65929. lt_prog_compiler_static_CXX \
  65930. lt_cv_prog_compiler_c_o_CXX \
  65931. export_dynamic_flag_spec_CXX \
  65932. whole_archive_flag_spec_CXX \
  65933. compiler_needs_object_CXX \
  65934. with_gnu_ld_CXX \
  65935. allow_undefined_flag_CXX \
  65936. no_undefined_flag_CXX \
  65937. hardcode_libdir_flag_spec_CXX \
  65938. hardcode_libdir_flag_spec_ld_CXX \
  65939. hardcode_libdir_separator_CXX \
  65940. fix_srcfile_path_CXX \
  65941. exclude_expsyms_CXX \
  65942. include_expsyms_CXX \
  65943. file_list_spec_CXX \
  65944. compiler_lib_search_dirs_CXX \
  65945. predep_objects_CXX \
  65946. postdep_objects_CXX \
  65947. predeps_CXX \
  65948. postdeps_CXX \
  65949. compiler_lib_search_path_CXX; do
  65950. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  65951. *[\\\\\\\`\\"\\\$]*)
  65952. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  65953. ;;
  65954. *)
  65955. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  65956. ;;
  65957. esac
  65958. done
  65959. # Double-quote double-evaled strings.
  65960. for var in reload_cmds \
  65961. old_postinstall_cmds \
  65962. old_postuninstall_cmds \
  65963. old_archive_cmds \
  65964. extract_expsyms_cmds \
  65965. old_archive_from_new_cmds \
  65966. old_archive_from_expsyms_cmds \
  65967. archive_cmds \
  65968. archive_expsym_cmds \
  65969. module_cmds \
  65970. module_expsym_cmds \
  65971. export_symbols_cmds \
  65972. prelink_cmds \
  65973. postinstall_cmds \
  65974. postuninstall_cmds \
  65975. finish_cmds \
  65976. sys_lib_search_path_spec \
  65977. sys_lib_dlsearch_path_spec \
  65978. reload_cmds_CXX \
  65979. old_archive_cmds_CXX \
  65980. old_archive_from_new_cmds_CXX \
  65981. old_archive_from_expsyms_cmds_CXX \
  65982. archive_cmds_CXX \
  65983. archive_expsym_cmds_CXX \
  65984. module_cmds_CXX \
  65985. module_expsym_cmds_CXX \
  65986. export_symbols_cmds_CXX \
  65987. prelink_cmds_CXX; do
  65988. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  65989. *[\\\\\\\`\\"\\\$]*)
  65990. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  65991. ;;
  65992. *)
  65993. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  65994. ;;
  65995. esac
  65996. done
  65997. ac_aux_dir='$ac_aux_dir'
  65998. xsi_shell='$xsi_shell'
  65999. lt_shell_append='$lt_shell_append'
  66000. # See if we are running on zsh, and set the options which allow our
  66001. # commands through without removal of \ escapes INIT.
  66002. if test -n "\${ZSH_VERSION+set}" ; then
  66003. setopt NO_GLOB_SUBST
  66004. fi
  66005. PACKAGE='$PACKAGE'
  66006. VERSION='$VERSION'
  66007. TIMESTAMP='$TIMESTAMP'
  66008. RM='$RM'
  66009. ofile='$ofile'
  66010. GCC="$GCC"
  66011. CC="$CC"
  66012. acx_cv_header_stdint="$acx_cv_header_stdint"
  66013. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  66014. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  66015. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  66016. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  66017. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  66018. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  66019. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  66020. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  66021. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  66022. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  66023. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  66024. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  66025. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  66026. _ACEOF
  66027. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66028. # Handling of arguments.
  66029. for ac_config_target in $ac_config_targets
  66030. do
  66031. case $ac_config_target in
  66032. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  66033. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  66034. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  66035. "include/gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/gstdint.h" ;;
  66036. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  66037. "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
  66038. "scripts/extract_symvers") CONFIG_FILES="$CONFIG_FILES scripts/extract_symvers" ;;
  66039. "doc/xsl/customization.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/customization.xsl" ;;
  66040. "src/libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/backtrace-supported.h" ;;
  66041. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  66042. "libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
  66043. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  66044. "src/c++98/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++98/Makefile" ;;
  66045. "src/c++11/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++11/Makefile" ;;
  66046. "src/c++17/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++17/Makefile" ;;
  66047. "src/c++20/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++20/Makefile" ;;
  66048. "src/filesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/filesystem/Makefile" ;;
  66049. "src/libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/Makefile" ;;
  66050. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  66051. "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
  66052. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  66053. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  66054. "generate-headers") CONFIG_COMMANDS="$CONFIG_COMMANDS generate-headers" ;;
  66055. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  66056. esac
  66057. done
  66058. # If the user did not use the arguments to specify the items to instantiate,
  66059. # then the envvar interface is used. Set only those that are not.
  66060. # We use the long form for the default assignment because of an extremely
  66061. # bizarre bug on SunOS 4.1.3.
  66062. if $ac_need_defaults; then
  66063. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  66064. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  66065. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  66066. fi
  66067. # Have a temporary directory for convenience. Make it in the build tree
  66068. # simply because there is no reason against having it here, and in addition,
  66069. # creating and moving files from /tmp can sometimes cause problems.
  66070. # Hook for its removal unless debugging.
  66071. # Note that there is a small window in which the directory will not be cleaned:
  66072. # after its creation but before its name has been assigned to `$tmp'.
  66073. $debug ||
  66074. {
  66075. tmp= ac_tmp=
  66076. trap 'exit_status=$?
  66077. : "${ac_tmp:=$tmp}"
  66078. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  66079. ' 0
  66080. trap 'as_fn_exit 1' 1 2 13 15
  66081. }
  66082. # Create a (secure) tmp directory for tmp files.
  66083. {
  66084. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  66085. test -d "$tmp"
  66086. } ||
  66087. {
  66088. tmp=./conf$$-$RANDOM
  66089. (umask 077 && mkdir "$tmp")
  66090. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  66091. ac_tmp=$tmp
  66092. # Set up the scripts for CONFIG_FILES section.
  66093. # No need to generate them if there are no CONFIG_FILES.
  66094. # This happens for instance with `./config.status config.h'.
  66095. if test -n "$CONFIG_FILES"; then
  66096. ac_cr=`echo X | tr X '\015'`
  66097. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  66098. # But we know of no other shell where ac_cr would be empty at this
  66099. # point, so we can use a bashism as a fallback.
  66100. if test "x$ac_cr" = x; then
  66101. eval ac_cr=\$\'\\r\'
  66102. fi
  66103. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  66104. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  66105. ac_cs_awk_cr='\\r'
  66106. else
  66107. ac_cs_awk_cr=$ac_cr
  66108. fi
  66109. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  66110. _ACEOF
  66111. {
  66112. echo "cat >conf$$subs.awk <<_ACEOF" &&
  66113. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  66114. echo "_ACEOF"
  66115. } >conf$$subs.sh ||
  66116. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  66117. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  66118. ac_delim='%!_!# '
  66119. for ac_last_try in false false false false false :; do
  66120. . ./conf$$subs.sh ||
  66121. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  66122. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  66123. if test $ac_delim_n = $ac_delim_num; then
  66124. break
  66125. elif $ac_last_try; then
  66126. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  66127. else
  66128. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  66129. fi
  66130. done
  66131. rm -f conf$$subs.sh
  66132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  66133. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  66134. _ACEOF
  66135. sed -n '
  66136. h
  66137. s/^/S["/; s/!.*/"]=/
  66138. p
  66139. g
  66140. s/^[^!]*!//
  66141. :repl
  66142. t repl
  66143. s/'"$ac_delim"'$//
  66144. t delim
  66145. :nl
  66146. h
  66147. s/\(.\{148\}\)..*/\1/
  66148. t more1
  66149. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  66150. p
  66151. n
  66152. b repl
  66153. :more1
  66154. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  66155. p
  66156. g
  66157. s/.\{148\}//
  66158. t nl
  66159. :delim
  66160. h
  66161. s/\(.\{148\}\)..*/\1/
  66162. t more2
  66163. s/["\\]/\\&/g; s/^/"/; s/$/"/
  66164. p
  66165. b
  66166. :more2
  66167. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  66168. p
  66169. g
  66170. s/.\{148\}//
  66171. t delim
  66172. ' <conf$$subs.awk | sed '
  66173. /^[^""]/{
  66174. N
  66175. s/\n//
  66176. }
  66177. ' >>$CONFIG_STATUS || ac_write_fail=1
  66178. rm -f conf$$subs.awk
  66179. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  66180. _ACAWK
  66181. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  66182. for (key in S) S_is_set[key] = 1
  66183. FS = ""
  66184. }
  66185. {
  66186. line = $ 0
  66187. nfields = split(line, field, "@")
  66188. substed = 0
  66189. len = length(field[1])
  66190. for (i = 2; i < nfields; i++) {
  66191. key = field[i]
  66192. keylen = length(key)
  66193. if (S_is_set[key]) {
  66194. value = S[key]
  66195. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  66196. len += length(value) + length(field[++i])
  66197. substed = 1
  66198. } else
  66199. len += 1 + keylen
  66200. }
  66201. print line
  66202. }
  66203. _ACAWK
  66204. _ACEOF
  66205. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66206. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  66207. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  66208. else
  66209. cat
  66210. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  66211. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  66212. _ACEOF
  66213. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  66214. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  66215. # trailing colons and then remove the whole line if VPATH becomes empty
  66216. # (actually we leave an empty line to preserve line numbers).
  66217. if test "x$srcdir" = x.; then
  66218. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  66219. h
  66220. s///
  66221. s/^/:/
  66222. s/[ ]*$/:/
  66223. s/:\$(srcdir):/:/g
  66224. s/:\${srcdir}:/:/g
  66225. s/:@srcdir@:/:/g
  66226. s/^:*//
  66227. s/:*$//
  66228. x
  66229. s/\(=[ ]*\).*/\1/
  66230. G
  66231. s/\n//
  66232. s/^[^=]*=[ ]*$//
  66233. }'
  66234. fi
  66235. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66236. fi # test -n "$CONFIG_FILES"
  66237. # Set up the scripts for CONFIG_HEADERS section.
  66238. # No need to generate them if there are no CONFIG_HEADERS.
  66239. # This happens for instance with `./config.status Makefile'.
  66240. if test -n "$CONFIG_HEADERS"; then
  66241. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  66242. BEGIN {
  66243. _ACEOF
  66244. # Transform confdefs.h into an awk script `defines.awk', embedded as
  66245. # here-document in config.status, that substitutes the proper values into
  66246. # config.h.in to produce config.h.
  66247. # Create a delimiter string that does not exist in confdefs.h, to ease
  66248. # handling of long lines.
  66249. ac_delim='%!_!# '
  66250. for ac_last_try in false false :; do
  66251. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  66252. if test -z "$ac_tt"; then
  66253. break
  66254. elif $ac_last_try; then
  66255. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  66256. else
  66257. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  66258. fi
  66259. done
  66260. # For the awk script, D is an array of macro values keyed by name,
  66261. # likewise P contains macro parameters if any. Preserve backslash
  66262. # newline sequences.
  66263. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  66264. sed -n '
  66265. s/.\{148\}/&'"$ac_delim"'/g
  66266. t rset
  66267. :rset
  66268. s/^[ ]*#[ ]*define[ ][ ]*/ /
  66269. t def
  66270. d
  66271. :def
  66272. s/\\$//
  66273. t bsnl
  66274. s/["\\]/\\&/g
  66275. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  66276. D["\1"]=" \3"/p
  66277. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  66278. d
  66279. :bsnl
  66280. s/["\\]/\\&/g
  66281. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  66282. D["\1"]=" \3\\\\\\n"\\/p
  66283. t cont
  66284. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  66285. t cont
  66286. d
  66287. :cont
  66288. n
  66289. s/.\{148\}/&'"$ac_delim"'/g
  66290. t clear
  66291. :clear
  66292. s/\\$//
  66293. t bsnlc
  66294. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  66295. d
  66296. :bsnlc
  66297. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  66298. b cont
  66299. ' <confdefs.h | sed '
  66300. s/'"$ac_delim"'/"\\\
  66301. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  66302. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  66303. for (key in D) D_is_set[key] = 1
  66304. FS = ""
  66305. }
  66306. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  66307. line = \$ 0
  66308. split(line, arg, " ")
  66309. if (arg[1] == "#") {
  66310. defundef = arg[2]
  66311. mac1 = arg[3]
  66312. } else {
  66313. defundef = substr(arg[1], 2)
  66314. mac1 = arg[2]
  66315. }
  66316. split(mac1, mac2, "(") #)
  66317. macro = mac2[1]
  66318. prefix = substr(line, 1, index(line, defundef) - 1)
  66319. if (D_is_set[macro]) {
  66320. # Preserve the white space surrounding the "#".
  66321. print prefix "define", macro P[macro] D[macro]
  66322. next
  66323. } else {
  66324. # Replace #undef with comments. This is necessary, for example,
  66325. # in the case of _POSIX_SOURCE, which is predefined and required
  66326. # on some systems where configure will not decide to define it.
  66327. if (defundef == "undef") {
  66328. print "/*", prefix defundef, macro, "*/"
  66329. next
  66330. }
  66331. }
  66332. }
  66333. { print }
  66334. _ACAWK
  66335. _ACEOF
  66336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66337. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  66338. fi # test -n "$CONFIG_HEADERS"
  66339. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  66340. shift
  66341. for ac_tag
  66342. do
  66343. case $ac_tag in
  66344. :[FHLC]) ac_mode=$ac_tag; continue;;
  66345. esac
  66346. case $ac_mode$ac_tag in
  66347. :[FHL]*:*);;
  66348. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  66349. :[FH]-) ac_tag=-:-;;
  66350. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  66351. esac
  66352. ac_save_IFS=$IFS
  66353. IFS=:
  66354. set x $ac_tag
  66355. IFS=$ac_save_IFS
  66356. shift
  66357. ac_file=$1
  66358. shift
  66359. case $ac_mode in
  66360. :L) ac_source=$1;;
  66361. :[FH])
  66362. ac_file_inputs=
  66363. for ac_f
  66364. do
  66365. case $ac_f in
  66366. -) ac_f="$ac_tmp/stdin";;
  66367. *) # Look for the file first in the build tree, then in the source tree
  66368. # (if the path is not absolute). The absolute path cannot be DOS-style,
  66369. # because $ac_f cannot contain `:'.
  66370. test -f "$ac_f" ||
  66371. case $ac_f in
  66372. [\\/$]*) false;;
  66373. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  66374. esac ||
  66375. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  66376. esac
  66377. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  66378. as_fn_append ac_file_inputs " '$ac_f'"
  66379. done
  66380. # Let's still pretend it is `configure' which instantiates (i.e., don't
  66381. # use $as_me), people would be surprised to read:
  66382. # /* config.h. Generated by config.status. */
  66383. configure_input='Generated from '`
  66384. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  66385. `' by configure.'
  66386. if test x"$ac_file" != x-; then
  66387. configure_input="$ac_file. $configure_input"
  66388. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  66389. $as_echo "$as_me: creating $ac_file" >&6;}
  66390. fi
  66391. # Neutralize special characters interpreted by sed in replacement strings.
  66392. case $configure_input in #(
  66393. *\&* | *\|* | *\\* )
  66394. ac_sed_conf_input=`$as_echo "$configure_input" |
  66395. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  66396. *) ac_sed_conf_input=$configure_input;;
  66397. esac
  66398. case $ac_tag in
  66399. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  66400. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  66401. esac
  66402. ;;
  66403. esac
  66404. ac_dir=`$as_dirname -- "$ac_file" ||
  66405. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  66406. X"$ac_file" : 'X\(//\)[^/]' \| \
  66407. X"$ac_file" : 'X\(//\)$' \| \
  66408. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  66409. $as_echo X"$ac_file" |
  66410. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  66411. s//\1/
  66412. q
  66413. }
  66414. /^X\(\/\/\)[^/].*/{
  66415. s//\1/
  66416. q
  66417. }
  66418. /^X\(\/\/\)$/{
  66419. s//\1/
  66420. q
  66421. }
  66422. /^X\(\/\).*/{
  66423. s//\1/
  66424. q
  66425. }
  66426. s/.*/./; q'`
  66427. as_dir="$ac_dir"; as_fn_mkdir_p
  66428. ac_builddir=.
  66429. case "$ac_dir" in
  66430. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  66431. *)
  66432. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  66433. # A ".." for each directory in $ac_dir_suffix.
  66434. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  66435. case $ac_top_builddir_sub in
  66436. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  66437. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  66438. esac ;;
  66439. esac
  66440. ac_abs_top_builddir=$ac_pwd
  66441. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  66442. # for backward compatibility:
  66443. ac_top_builddir=$ac_top_build_prefix
  66444. case $srcdir in
  66445. .) # We are building in place.
  66446. ac_srcdir=.
  66447. ac_top_srcdir=$ac_top_builddir_sub
  66448. ac_abs_top_srcdir=$ac_pwd ;;
  66449. [\\/]* | ?:[\\/]* ) # Absolute name.
  66450. ac_srcdir=$srcdir$ac_dir_suffix;
  66451. ac_top_srcdir=$srcdir
  66452. ac_abs_top_srcdir=$srcdir ;;
  66453. *) # Relative name.
  66454. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  66455. ac_top_srcdir=$ac_top_build_prefix$srcdir
  66456. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  66457. esac
  66458. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  66459. case $ac_mode in
  66460. :F)
  66461. #
  66462. # CONFIG_FILE
  66463. #
  66464. case $INSTALL in
  66465. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  66466. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  66467. esac
  66468. ac_MKDIR_P=$MKDIR_P
  66469. case $MKDIR_P in
  66470. [\\/$]* | ?:[\\/]* ) ;;
  66471. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  66472. esac
  66473. _ACEOF
  66474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66475. # If the template does not know about datarootdir, expand it.
  66476. # FIXME: This hack should be removed a few years after 2.60.
  66477. ac_datarootdir_hack=; ac_datarootdir_seen=
  66478. ac_sed_dataroot='
  66479. /datarootdir/ {
  66480. p
  66481. q
  66482. }
  66483. /@datadir@/p
  66484. /@docdir@/p
  66485. /@infodir@/p
  66486. /@localedir@/p
  66487. /@mandir@/p'
  66488. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  66489. *datarootdir*) ac_datarootdir_seen=yes;;
  66490. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  66491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  66492. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  66493. _ACEOF
  66494. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  66495. ac_datarootdir_hack='
  66496. s&@datadir@&$datadir&g
  66497. s&@docdir@&$docdir&g
  66498. s&@infodir@&$infodir&g
  66499. s&@localedir@&$localedir&g
  66500. s&@mandir@&$mandir&g
  66501. s&\\\${datarootdir}&$datarootdir&g' ;;
  66502. esac
  66503. _ACEOF
  66504. # Neutralize VPATH when `$srcdir' = `.'.
  66505. # Shell code in configure.ac might set extrasub.
  66506. # FIXME: do we really want to maintain this feature?
  66507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  66508. ac_sed_extra="$ac_vpsub
  66509. $extrasub
  66510. _ACEOF
  66511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  66512. :t
  66513. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  66514. s|@configure_input@|$ac_sed_conf_input|;t t
  66515. s&@top_builddir@&$ac_top_builddir_sub&;t t
  66516. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  66517. s&@srcdir@&$ac_srcdir&;t t
  66518. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  66519. s&@top_srcdir@&$ac_top_srcdir&;t t
  66520. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  66521. s&@builddir@&$ac_builddir&;t t
  66522. s&@abs_builddir@&$ac_abs_builddir&;t t
  66523. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  66524. s&@INSTALL@&$ac_INSTALL&;t t
  66525. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  66526. $ac_datarootdir_hack
  66527. "
  66528. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  66529. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  66530. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  66531. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  66532. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  66533. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  66534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  66535. which seems to be undefined. Please make sure it is defined" >&5
  66536. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  66537. which seems to be undefined. Please make sure it is defined" >&2;}
  66538. rm -f "$ac_tmp/stdin"
  66539. case $ac_file in
  66540. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  66541. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  66542. esac \
  66543. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  66544. ;;
  66545. :H)
  66546. #
  66547. # CONFIG_HEADER
  66548. #
  66549. if test x"$ac_file" != x-; then
  66550. {
  66551. $as_echo "/* $configure_input */" \
  66552. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  66553. } >"$ac_tmp/config.h" \
  66554. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  66555. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  66556. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  66557. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  66558. else
  66559. rm -f "$ac_file"
  66560. mv "$ac_tmp/config.h" "$ac_file" \
  66561. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  66562. fi
  66563. else
  66564. $as_echo "/* $configure_input */" \
  66565. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  66566. || as_fn_error $? "could not create -" "$LINENO" 5
  66567. fi
  66568. # Compute "$ac_file"'s index in $config_headers.
  66569. _am_arg="$ac_file"
  66570. _am_stamp_count=1
  66571. for _am_header in $config_headers :; do
  66572. case $_am_header in
  66573. $_am_arg | $_am_arg:* )
  66574. break ;;
  66575. * )
  66576. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  66577. esac
  66578. done
  66579. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  66580. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  66581. X"$_am_arg" : 'X\(//\)[^/]' \| \
  66582. X"$_am_arg" : 'X\(//\)$' \| \
  66583. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  66584. $as_echo X"$_am_arg" |
  66585. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  66586. s//\1/
  66587. q
  66588. }
  66589. /^X\(\/\/\)[^/].*/{
  66590. s//\1/
  66591. q
  66592. }
  66593. /^X\(\/\/\)$/{
  66594. s//\1/
  66595. q
  66596. }
  66597. /^X\(\/\).*/{
  66598. s//\1/
  66599. q
  66600. }
  66601. s/.*/./; q'`/stamp-h$_am_stamp_count
  66602. ;;
  66603. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  66604. $as_echo "$as_me: executing $ac_file commands" >&6;}
  66605. ;;
  66606. esac
  66607. case $ac_file$ac_mode in
  66608. "default-1":C)
  66609. # Only add multilib support code if we just rebuilt the top-level
  66610. # Makefile.
  66611. case " $CONFIG_FILES " in
  66612. *" Makefile "*)
  66613. ac_file=Makefile . ${multi_basedir}/config-ml.in
  66614. ;;
  66615. esac ;;
  66616. "libtool":C)
  66617. # See if we are running on zsh, and set the options which allow our
  66618. # commands through without removal of \ escapes.
  66619. if test -n "${ZSH_VERSION+set}" ; then
  66620. setopt NO_GLOB_SUBST
  66621. fi
  66622. cfgfile="${ofile}T"
  66623. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  66624. $RM "$cfgfile"
  66625. cat <<_LT_EOF >> "$cfgfile"
  66626. #! $SHELL
  66627. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  66628. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  66629. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  66630. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  66631. #
  66632. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  66633. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  66634. # Written by Gordon Matzigkeit, 1996
  66635. #
  66636. # This file is part of GNU Libtool.
  66637. #
  66638. # GNU Libtool is free software; you can redistribute it and/or
  66639. # modify it under the terms of the GNU General Public License as
  66640. # published by the Free Software Foundation; either version 2 of
  66641. # the License, or (at your option) any later version.
  66642. #
  66643. # As a special exception to the GNU General Public License,
  66644. # if you distribute this file as part of a program or library that
  66645. # is built using GNU Libtool, you may include this file under the
  66646. # same distribution terms that you use for the rest of that program.
  66647. #
  66648. # GNU Libtool is distributed in the hope that it will be useful,
  66649. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  66650. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  66651. # GNU General Public License for more details.
  66652. #
  66653. # You should have received a copy of the GNU General Public License
  66654. # along with GNU Libtool; see the file COPYING. If not, a copy
  66655. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  66656. # obtained by writing to the Free Software Foundation, Inc.,
  66657. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  66658. # The names of the tagged configurations supported by this script.
  66659. available_tags="CXX "
  66660. # ### BEGIN LIBTOOL CONFIG
  66661. # Which release of libtool.m4 was used?
  66662. macro_version=$macro_version
  66663. macro_revision=$macro_revision
  66664. # Whether or not to build shared libraries.
  66665. build_libtool_libs=$enable_shared
  66666. # Whether or not to build static libraries.
  66667. build_old_libs=$enable_static
  66668. # What type of objects to build.
  66669. pic_mode=$pic_mode
  66670. # Whether or not to optimize for fast installation.
  66671. fast_install=$enable_fast_install
  66672. # Shell to use when invoking shell scripts.
  66673. SHELL=$lt_SHELL
  66674. # An echo program that protects backslashes.
  66675. ECHO=$lt_ECHO
  66676. # The host system.
  66677. host_alias=$host_alias
  66678. host=$host
  66679. host_os=$host_os
  66680. # The build system.
  66681. build_alias=$build_alias
  66682. build=$build
  66683. build_os=$build_os
  66684. # A sed program that does not truncate output.
  66685. SED=$lt_SED
  66686. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  66687. Xsed="\$SED -e 1s/^X//"
  66688. # A grep program that handles long lines.
  66689. GREP=$lt_GREP
  66690. # An ERE matcher.
  66691. EGREP=$lt_EGREP
  66692. # A literal string matcher.
  66693. FGREP=$lt_FGREP
  66694. # A BSD- or MS-compatible name lister.
  66695. NM=$lt_NM
  66696. # Whether we need soft or hard links.
  66697. LN_S=$lt_LN_S
  66698. # What is the maximum length of a command?
  66699. max_cmd_len=$max_cmd_len
  66700. # Object file suffix (normally "o").
  66701. objext=$ac_objext
  66702. # Executable file suffix (normally "").
  66703. exeext=$exeext
  66704. # whether the shell understands "unset".
  66705. lt_unset=$lt_unset
  66706. # turn spaces into newlines.
  66707. SP2NL=$lt_lt_SP2NL
  66708. # turn newlines into spaces.
  66709. NL2SP=$lt_lt_NL2SP
  66710. # An object symbol dumper.
  66711. OBJDUMP=$lt_OBJDUMP
  66712. # Method to check whether dependent libraries are shared objects.
  66713. deplibs_check_method=$lt_deplibs_check_method
  66714. # Command to use when deplibs_check_method == "file_magic".
  66715. file_magic_cmd=$lt_file_magic_cmd
  66716. # The archiver.
  66717. AR=$lt_AR
  66718. AR_FLAGS=$lt_AR_FLAGS
  66719. # A symbol stripping program.
  66720. STRIP=$lt_STRIP
  66721. # Commands used to install an old-style archive.
  66722. RANLIB=$lt_RANLIB
  66723. old_postinstall_cmds=$lt_old_postinstall_cmds
  66724. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  66725. # Whether to use a lock for old archive extraction.
  66726. lock_old_archive_extraction=$lock_old_archive_extraction
  66727. # A C compiler.
  66728. LTCC=$lt_CC
  66729. # LTCC compiler flags.
  66730. LTCFLAGS=$lt_CFLAGS
  66731. # Take the output of nm and produce a listing of raw symbols and C names.
  66732. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  66733. # Transform the output of nm in a proper C declaration.
  66734. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  66735. # Transform the output of nm in a C name address pair.
  66736. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  66737. # Transform the output of nm in a C name address pair when lib prefix is needed.
  66738. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  66739. # The name of the directory that contains temporary libtool files.
  66740. objdir=$objdir
  66741. # Used to examine libraries when file_magic_cmd begins with "file".
  66742. MAGIC_CMD=$MAGIC_CMD
  66743. # Must we lock files when doing compilation?
  66744. need_locks=$lt_need_locks
  66745. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  66746. DSYMUTIL=$lt_DSYMUTIL
  66747. # Tool to change global to local symbols on Mac OS X.
  66748. NMEDIT=$lt_NMEDIT
  66749. # Tool to manipulate fat objects and archives on Mac OS X.
  66750. LIPO=$lt_LIPO
  66751. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  66752. OTOOL=$lt_OTOOL
  66753. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  66754. OTOOL64=$lt_OTOOL64
  66755. # Old archive suffix (normally "a").
  66756. libext=$libext
  66757. # Shared library suffix (normally ".so").
  66758. shrext_cmds=$lt_shrext_cmds
  66759. # The commands to extract the exported symbol list from a shared archive.
  66760. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  66761. # Variables whose values should be saved in libtool wrapper scripts and
  66762. # restored at link time.
  66763. variables_saved_for_relink=$lt_variables_saved_for_relink
  66764. # Do we need the "lib" prefix for modules?
  66765. need_lib_prefix=$need_lib_prefix
  66766. # Do we need a version for libraries?
  66767. need_version=$need_version
  66768. # Library versioning type.
  66769. version_type=$version_type
  66770. # Shared library runtime path variable.
  66771. runpath_var=$runpath_var
  66772. # Shared library path variable.
  66773. shlibpath_var=$shlibpath_var
  66774. # Is shlibpath searched before the hard-coded library search path?
  66775. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  66776. # Format of library name prefix.
  66777. libname_spec=$lt_libname_spec
  66778. # List of archive names. First name is the real one, the rest are links.
  66779. # The last name is the one that the linker finds with -lNAME
  66780. library_names_spec=$lt_library_names_spec
  66781. # The coded name of the library, if different from the real name.
  66782. soname_spec=$lt_soname_spec
  66783. # Permission mode override for installation of shared libraries.
  66784. install_override_mode=$lt_install_override_mode
  66785. # Command to use after installation of a shared archive.
  66786. postinstall_cmds=$lt_postinstall_cmds
  66787. # Command to use after uninstallation of a shared archive.
  66788. postuninstall_cmds=$lt_postuninstall_cmds
  66789. # Commands used to finish a libtool library installation in a directory.
  66790. finish_cmds=$lt_finish_cmds
  66791. # As "finish_cmds", except a single script fragment to be evaled but
  66792. # not shown.
  66793. finish_eval=$lt_finish_eval
  66794. # Whether we should hardcode library paths into libraries.
  66795. hardcode_into_libs=$hardcode_into_libs
  66796. # Compile-time system search path for libraries.
  66797. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  66798. # Run-time system search path for libraries.
  66799. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  66800. # Whether dlopen is supported.
  66801. dlopen_support=$enable_dlopen
  66802. # Whether dlopen of programs is supported.
  66803. dlopen_self=$enable_dlopen_self
  66804. # Whether dlopen of statically linked programs is supported.
  66805. dlopen_self_static=$enable_dlopen_self_static
  66806. # Commands to strip libraries.
  66807. old_striplib=$lt_old_striplib
  66808. striplib=$lt_striplib
  66809. # The linker used to build libraries.
  66810. LD=$lt_LD
  66811. # How to create reloadable object files.
  66812. reload_flag=$lt_reload_flag
  66813. reload_cmds=$lt_reload_cmds
  66814. # Commands used to build an old-style archive.
  66815. old_archive_cmds=$lt_old_archive_cmds
  66816. # A language specific compiler.
  66817. CC=$lt_compiler
  66818. # Is the compiler the GNU compiler?
  66819. with_gcc=$GCC
  66820. # Compiler flag to turn off builtin functions.
  66821. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  66822. # How to pass a linker flag through the compiler.
  66823. wl=$lt_lt_prog_compiler_wl
  66824. # Additional compiler flags for building library objects.
  66825. pic_flag=$lt_lt_prog_compiler_pic
  66826. # Compiler flag to prevent dynamic linking.
  66827. link_static_flag=$lt_lt_prog_compiler_static
  66828. # Does compiler simultaneously support -c and -o options?
  66829. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  66830. # Whether or not to add -lc for building shared libraries.
  66831. build_libtool_need_lc=$archive_cmds_need_lc
  66832. # Whether or not to disallow shared libs when runtime libs are static.
  66833. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  66834. # Compiler flag to allow reflexive dlopens.
  66835. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  66836. # Compiler flag to generate shared objects directly from archives.
  66837. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  66838. # Whether the compiler copes with passing no objects directly.
  66839. compiler_needs_object=$lt_compiler_needs_object
  66840. # Create an old-style archive from a shared archive.
  66841. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  66842. # Create a temporary old-style archive to link instead of a shared archive.
  66843. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  66844. # Commands used to build a shared archive.
  66845. archive_cmds=$lt_archive_cmds
  66846. archive_expsym_cmds=$lt_archive_expsym_cmds
  66847. # Commands used to build a loadable module if different from building
  66848. # a shared archive.
  66849. module_cmds=$lt_module_cmds
  66850. module_expsym_cmds=$lt_module_expsym_cmds
  66851. # Whether we are building with GNU ld or not.
  66852. with_gnu_ld=$lt_with_gnu_ld
  66853. # Flag that allows shared libraries with undefined symbols to be built.
  66854. allow_undefined_flag=$lt_allow_undefined_flag
  66855. # Flag that enforces no undefined symbols.
  66856. no_undefined_flag=$lt_no_undefined_flag
  66857. # Flag to hardcode \$libdir into a binary during linking.
  66858. # This must work even if \$libdir does not exist
  66859. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  66860. # If ld is used when linking, flag to hardcode \$libdir into a binary
  66861. # during linking. This must work even if \$libdir does not exist.
  66862. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  66863. # Whether we need a single "-rpath" flag with a separated argument.
  66864. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  66865. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  66866. # DIR into the resulting binary.
  66867. hardcode_direct=$hardcode_direct
  66868. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  66869. # DIR into the resulting binary and the resulting library dependency is
  66870. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  66871. # library is relocated.
  66872. hardcode_direct_absolute=$hardcode_direct_absolute
  66873. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  66874. # into the resulting binary.
  66875. hardcode_minus_L=$hardcode_minus_L
  66876. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  66877. # into the resulting binary.
  66878. hardcode_shlibpath_var=$hardcode_shlibpath_var
  66879. # Set to "yes" if building a shared library automatically hardcodes DIR
  66880. # into the library and all subsequent libraries and executables linked
  66881. # against it.
  66882. hardcode_automatic=$hardcode_automatic
  66883. # Set to yes if linker adds runtime paths of dependent libraries
  66884. # to runtime path list.
  66885. inherit_rpath=$inherit_rpath
  66886. # Whether libtool must link a program against all its dependency libraries.
  66887. link_all_deplibs=$link_all_deplibs
  66888. # Fix the shell variable \$srcfile for the compiler.
  66889. fix_srcfile_path=$lt_fix_srcfile_path
  66890. # Set to "yes" if exported symbols are required.
  66891. always_export_symbols=$always_export_symbols
  66892. # The commands to list exported symbols.
  66893. export_symbols_cmds=$lt_export_symbols_cmds
  66894. # Symbols that should not be listed in the preloaded symbols.
  66895. exclude_expsyms=$lt_exclude_expsyms
  66896. # Symbols that must always be exported.
  66897. include_expsyms=$lt_include_expsyms
  66898. # Commands necessary for linking programs (against libraries) with templates.
  66899. prelink_cmds=$lt_prelink_cmds
  66900. # Specify filename containing input files.
  66901. file_list_spec=$lt_file_list_spec
  66902. # How to hardcode a shared library path into an executable.
  66903. hardcode_action=$hardcode_action
  66904. # The directories searched by this compiler when creating a shared library.
  66905. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  66906. # Dependencies to place before and after the objects being linked to
  66907. # create a shared library.
  66908. predep_objects=$lt_predep_objects
  66909. postdep_objects=$lt_postdep_objects
  66910. predeps=$lt_predeps
  66911. postdeps=$lt_postdeps
  66912. # The library search path used internally by the compiler when linking
  66913. # a shared library.
  66914. compiler_lib_search_path=$lt_compiler_lib_search_path
  66915. # ### END LIBTOOL CONFIG
  66916. _LT_EOF
  66917. case $host_os in
  66918. aix3*)
  66919. cat <<\_LT_EOF >> "$cfgfile"
  66920. # AIX sometimes has problems with the GCC collect2 program. For some
  66921. # reason, if we set the COLLECT_NAMES environment variable, the problems
  66922. # vanish in a puff of smoke.
  66923. if test "X${COLLECT_NAMES+set}" != Xset; then
  66924. COLLECT_NAMES=
  66925. export COLLECT_NAMES
  66926. fi
  66927. _LT_EOF
  66928. ;;
  66929. esac
  66930. ltmain="$ac_aux_dir/ltmain.sh"
  66931. # We use sed instead of cat because bash on DJGPP gets confused if
  66932. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  66933. # text mode, it properly converts lines to CR/LF. This bash problem
  66934. # is reportedly fixed, but why not run on old versions too?
  66935. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  66936. || (rm -f "$cfgfile"; exit 1)
  66937. case $xsi_shell in
  66938. yes)
  66939. cat << \_LT_EOF >> "$cfgfile"
  66940. # func_dirname file append nondir_replacement
  66941. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  66942. # otherwise set result to NONDIR_REPLACEMENT.
  66943. func_dirname ()
  66944. {
  66945. case ${1} in
  66946. */*) func_dirname_result="${1%/*}${2}" ;;
  66947. * ) func_dirname_result="${3}" ;;
  66948. esac
  66949. }
  66950. # func_basename file
  66951. func_basename ()
  66952. {
  66953. func_basename_result="${1##*/}"
  66954. }
  66955. # func_dirname_and_basename file append nondir_replacement
  66956. # perform func_basename and func_dirname in a single function
  66957. # call:
  66958. # dirname: Compute the dirname of FILE. If nonempty,
  66959. # add APPEND to the result, otherwise set result
  66960. # to NONDIR_REPLACEMENT.
  66961. # value returned in "$func_dirname_result"
  66962. # basename: Compute filename of FILE.
  66963. # value retuned in "$func_basename_result"
  66964. # Implementation must be kept synchronized with func_dirname
  66965. # and func_basename. For efficiency, we do not delegate to
  66966. # those functions but instead duplicate the functionality here.
  66967. func_dirname_and_basename ()
  66968. {
  66969. case ${1} in
  66970. */*) func_dirname_result="${1%/*}${2}" ;;
  66971. * ) func_dirname_result="${3}" ;;
  66972. esac
  66973. func_basename_result="${1##*/}"
  66974. }
  66975. # func_stripname prefix suffix name
  66976. # strip PREFIX and SUFFIX off of NAME.
  66977. # PREFIX and SUFFIX must not contain globbing or regex special
  66978. # characters, hashes, percent signs, but SUFFIX may contain a leading
  66979. # dot (in which case that matches only a dot).
  66980. func_stripname ()
  66981. {
  66982. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  66983. # positional parameters, so assign one to ordinary parameter first.
  66984. func_stripname_result=${3}
  66985. func_stripname_result=${func_stripname_result#"${1}"}
  66986. func_stripname_result=${func_stripname_result%"${2}"}
  66987. }
  66988. # func_opt_split
  66989. func_opt_split ()
  66990. {
  66991. func_opt_split_opt=${1%%=*}
  66992. func_opt_split_arg=${1#*=}
  66993. }
  66994. # func_lo2o object
  66995. func_lo2o ()
  66996. {
  66997. case ${1} in
  66998. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  66999. *) func_lo2o_result=${1} ;;
  67000. esac
  67001. }
  67002. # func_xform libobj-or-source
  67003. func_xform ()
  67004. {
  67005. func_xform_result=${1%.*}.lo
  67006. }
  67007. # func_arith arithmetic-term...
  67008. func_arith ()
  67009. {
  67010. func_arith_result=$(( $* ))
  67011. }
  67012. # func_len string
  67013. # STRING may not start with a hyphen.
  67014. func_len ()
  67015. {
  67016. func_len_result=${#1}
  67017. }
  67018. _LT_EOF
  67019. ;;
  67020. *) # Bourne compatible functions.
  67021. cat << \_LT_EOF >> "$cfgfile"
  67022. # func_dirname file append nondir_replacement
  67023. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  67024. # otherwise set result to NONDIR_REPLACEMENT.
  67025. func_dirname ()
  67026. {
  67027. # Extract subdirectory from the argument.
  67028. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  67029. if test "X$func_dirname_result" = "X${1}"; then
  67030. func_dirname_result="${3}"
  67031. else
  67032. func_dirname_result="$func_dirname_result${2}"
  67033. fi
  67034. }
  67035. # func_basename file
  67036. func_basename ()
  67037. {
  67038. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  67039. }
  67040. # func_stripname prefix suffix name
  67041. # strip PREFIX and SUFFIX off of NAME.
  67042. # PREFIX and SUFFIX must not contain globbing or regex special
  67043. # characters, hashes, percent signs, but SUFFIX may contain a leading
  67044. # dot (in which case that matches only a dot).
  67045. # func_strip_suffix prefix name
  67046. func_stripname ()
  67047. {
  67048. case ${2} in
  67049. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  67050. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  67051. esac
  67052. }
  67053. # sed scripts:
  67054. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  67055. my_sed_long_arg='1s/^-[^=]*=//'
  67056. # func_opt_split
  67057. func_opt_split ()
  67058. {
  67059. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  67060. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  67061. }
  67062. # func_lo2o object
  67063. func_lo2o ()
  67064. {
  67065. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  67066. }
  67067. # func_xform libobj-or-source
  67068. func_xform ()
  67069. {
  67070. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  67071. }
  67072. # func_arith arithmetic-term...
  67073. func_arith ()
  67074. {
  67075. func_arith_result=`expr "$@"`
  67076. }
  67077. # func_len string
  67078. # STRING may not start with a hyphen.
  67079. func_len ()
  67080. {
  67081. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  67082. }
  67083. _LT_EOF
  67084. esac
  67085. case $lt_shell_append in
  67086. yes)
  67087. cat << \_LT_EOF >> "$cfgfile"
  67088. # func_append var value
  67089. # Append VALUE to the end of shell variable VAR.
  67090. func_append ()
  67091. {
  67092. eval "$1+=\$2"
  67093. }
  67094. _LT_EOF
  67095. ;;
  67096. *)
  67097. cat << \_LT_EOF >> "$cfgfile"
  67098. # func_append var value
  67099. # Append VALUE to the end of shell variable VAR.
  67100. func_append ()
  67101. {
  67102. eval "$1=\$$1\$2"
  67103. }
  67104. _LT_EOF
  67105. ;;
  67106. esac
  67107. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  67108. || (rm -f "$cfgfile"; exit 1)
  67109. mv -f "$cfgfile" "$ofile" ||
  67110. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  67111. chmod +x "$ofile"
  67112. cat <<_LT_EOF >> "$ofile"
  67113. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  67114. # The linker used to build libraries.
  67115. LD=$lt_LD_CXX
  67116. # How to create reloadable object files.
  67117. reload_flag=$lt_reload_flag_CXX
  67118. reload_cmds=$lt_reload_cmds_CXX
  67119. # Commands used to build an old-style archive.
  67120. old_archive_cmds=$lt_old_archive_cmds_CXX
  67121. # A language specific compiler.
  67122. CC=$lt_compiler_CXX
  67123. # Is the compiler the GNU compiler?
  67124. with_gcc=$GCC_CXX
  67125. # Compiler flag to turn off builtin functions.
  67126. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  67127. # How to pass a linker flag through the compiler.
  67128. wl=$lt_lt_prog_compiler_wl_CXX
  67129. # Additional compiler flags for building library objects.
  67130. pic_flag=$lt_lt_prog_compiler_pic_CXX
  67131. # Compiler flag to prevent dynamic linking.
  67132. link_static_flag=$lt_lt_prog_compiler_static_CXX
  67133. # Does compiler simultaneously support -c and -o options?
  67134. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  67135. # Whether or not to add -lc for building shared libraries.
  67136. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  67137. # Whether or not to disallow shared libs when runtime libs are static.
  67138. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  67139. # Compiler flag to allow reflexive dlopens.
  67140. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  67141. # Compiler flag to generate shared objects directly from archives.
  67142. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  67143. # Whether the compiler copes with passing no objects directly.
  67144. compiler_needs_object=$lt_compiler_needs_object_CXX
  67145. # Create an old-style archive from a shared archive.
  67146. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  67147. # Create a temporary old-style archive to link instead of a shared archive.
  67148. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  67149. # Commands used to build a shared archive.
  67150. archive_cmds=$lt_archive_cmds_CXX
  67151. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  67152. # Commands used to build a loadable module if different from building
  67153. # a shared archive.
  67154. module_cmds=$lt_module_cmds_CXX
  67155. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  67156. # Whether we are building with GNU ld or not.
  67157. with_gnu_ld=$lt_with_gnu_ld_CXX
  67158. # Flag that allows shared libraries with undefined symbols to be built.
  67159. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  67160. # Flag that enforces no undefined symbols.
  67161. no_undefined_flag=$lt_no_undefined_flag_CXX
  67162. # Flag to hardcode \$libdir into a binary during linking.
  67163. # This must work even if \$libdir does not exist
  67164. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  67165. # If ld is used when linking, flag to hardcode \$libdir into a binary
  67166. # during linking. This must work even if \$libdir does not exist.
  67167. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  67168. # Whether we need a single "-rpath" flag with a separated argument.
  67169. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  67170. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  67171. # DIR into the resulting binary.
  67172. hardcode_direct=$hardcode_direct_CXX
  67173. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  67174. # DIR into the resulting binary and the resulting library dependency is
  67175. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  67176. # library is relocated.
  67177. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  67178. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  67179. # into the resulting binary.
  67180. hardcode_minus_L=$hardcode_minus_L_CXX
  67181. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  67182. # into the resulting binary.
  67183. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  67184. # Set to "yes" if building a shared library automatically hardcodes DIR
  67185. # into the library and all subsequent libraries and executables linked
  67186. # against it.
  67187. hardcode_automatic=$hardcode_automatic_CXX
  67188. # Set to yes if linker adds runtime paths of dependent libraries
  67189. # to runtime path list.
  67190. inherit_rpath=$inherit_rpath_CXX
  67191. # Whether libtool must link a program against all its dependency libraries.
  67192. link_all_deplibs=$link_all_deplibs_CXX
  67193. # Fix the shell variable \$srcfile for the compiler.
  67194. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  67195. # Set to "yes" if exported symbols are required.
  67196. always_export_symbols=$always_export_symbols_CXX
  67197. # The commands to list exported symbols.
  67198. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  67199. # Symbols that should not be listed in the preloaded symbols.
  67200. exclude_expsyms=$lt_exclude_expsyms_CXX
  67201. # Symbols that must always be exported.
  67202. include_expsyms=$lt_include_expsyms_CXX
  67203. # Commands necessary for linking programs (against libraries) with templates.
  67204. prelink_cmds=$lt_prelink_cmds_CXX
  67205. # Specify filename containing input files.
  67206. file_list_spec=$lt_file_list_spec_CXX
  67207. # How to hardcode a shared library path into an executable.
  67208. hardcode_action=$hardcode_action_CXX
  67209. # The directories searched by this compiler when creating a shared library.
  67210. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  67211. # Dependencies to place before and after the objects being linked to
  67212. # create a shared library.
  67213. predep_objects=$lt_predep_objects_CXX
  67214. postdep_objects=$lt_postdep_objects_CXX
  67215. predeps=$lt_predeps_CXX
  67216. postdeps=$lt_postdeps_CXX
  67217. # The library search path used internally by the compiler when linking
  67218. # a shared library.
  67219. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  67220. # ### END LIBTOOL TAG CONFIG: CXX
  67221. _LT_EOF
  67222. ;;
  67223. "include/gstdint.h":C)
  67224. if test "$GCC" = yes; then
  67225. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  67226. else
  67227. echo "/* generated for $CC */" > tmp-stdint.h
  67228. fi
  67229. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67230. #ifndef GCC_GENERATED_STDINT_H
  67231. #define GCC_GENERATED_STDINT_H 1
  67232. #include <sys/types.h>
  67233. EOF
  67234. if test "$acx_cv_header_stdint" != stdint.h; then
  67235. echo "#include <stddef.h>" >> tmp-stdint.h
  67236. fi
  67237. if test "$acx_cv_header_stdint" != stddef.h; then
  67238. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  67239. fi
  67240. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67241. /* glibc uses these symbols as guards to prevent redefinitions. */
  67242. #ifdef __int8_t_defined
  67243. #define _INT8_T
  67244. #define _INT16_T
  67245. #define _INT32_T
  67246. #endif
  67247. #ifdef __uint32_t_defined
  67248. #define _UINT32_T
  67249. #endif
  67250. EOF
  67251. # ----------------- done header, emit basic int types -------------
  67252. if test "$acx_cv_header_stdint" = stddef.h; then
  67253. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67254. #ifndef _UINT8_T
  67255. #define _UINT8_T
  67256. #ifndef __uint8_t_defined
  67257. #define __uint8_t_defined
  67258. #ifndef uint8_t
  67259. typedef unsigned $acx_cv_type_int8_t uint8_t;
  67260. #endif
  67261. #endif
  67262. #endif
  67263. #ifndef _UINT16_T
  67264. #define _UINT16_T
  67265. #ifndef __uint16_t_defined
  67266. #define __uint16_t_defined
  67267. #ifndef uint16_t
  67268. typedef unsigned $acx_cv_type_int16_t uint16_t;
  67269. #endif
  67270. #endif
  67271. #endif
  67272. #ifndef _UINT32_T
  67273. #define _UINT32_T
  67274. #ifndef __uint32_t_defined
  67275. #define __uint32_t_defined
  67276. #ifndef uint32_t
  67277. typedef unsigned $acx_cv_type_int32_t uint32_t;
  67278. #endif
  67279. #endif
  67280. #endif
  67281. #ifndef _INT8_T
  67282. #define _INT8_T
  67283. #ifndef __int8_t_defined
  67284. #define __int8_t_defined
  67285. #ifndef int8_t
  67286. typedef $acx_cv_type_int8_t int8_t;
  67287. #endif
  67288. #endif
  67289. #endif
  67290. #ifndef _INT16_T
  67291. #define _INT16_T
  67292. #ifndef __int16_t_defined
  67293. #define __int16_t_defined
  67294. #ifndef int16_t
  67295. typedef $acx_cv_type_int16_t int16_t;
  67296. #endif
  67297. #endif
  67298. #endif
  67299. #ifndef _INT32_T
  67300. #define _INT32_T
  67301. #ifndef __int32_t_defined
  67302. #define __int32_t_defined
  67303. #ifndef int32_t
  67304. typedef $acx_cv_type_int32_t int32_t;
  67305. #endif
  67306. #endif
  67307. #endif
  67308. EOF
  67309. elif test "$ac_cv_type_u_int32_t" = yes; then
  67310. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67311. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  67312. #ifndef _INT8_T
  67313. #define _INT8_T
  67314. #endif
  67315. #ifndef _INT16_T
  67316. #define _INT16_T
  67317. #endif
  67318. #ifndef _INT32_T
  67319. #define _INT32_T
  67320. #endif
  67321. #ifndef _UINT8_T
  67322. #define _UINT8_T
  67323. #ifndef __uint8_t_defined
  67324. #define __uint8_t_defined
  67325. #ifndef uint8_t
  67326. typedef u_int8_t uint8_t;
  67327. #endif
  67328. #endif
  67329. #endif
  67330. #ifndef _UINT16_T
  67331. #define _UINT16_T
  67332. #ifndef __uint16_t_defined
  67333. #define __uint16_t_defined
  67334. #ifndef uint16_t
  67335. typedef u_int16_t uint16_t;
  67336. #endif
  67337. #endif
  67338. #endif
  67339. #ifndef _UINT32_T
  67340. #define _UINT32_T
  67341. #ifndef __uint32_t_defined
  67342. #define __uint32_t_defined
  67343. #ifndef uint32_t
  67344. typedef u_int32_t uint32_t;
  67345. #endif
  67346. #endif
  67347. #endif
  67348. EOF
  67349. else
  67350. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67351. /* Some systems have guard macros to prevent redefinitions, define them. */
  67352. #ifndef _INT8_T
  67353. #define _INT8_T
  67354. #endif
  67355. #ifndef _INT16_T
  67356. #define _INT16_T
  67357. #endif
  67358. #ifndef _INT32_T
  67359. #define _INT32_T
  67360. #endif
  67361. #ifndef _UINT8_T
  67362. #define _UINT8_T
  67363. #endif
  67364. #ifndef _UINT16_T
  67365. #define _UINT16_T
  67366. #endif
  67367. #ifndef _UINT32_T
  67368. #define _UINT32_T
  67369. #endif
  67370. EOF
  67371. fi
  67372. # ------------- done basic int types, emit int64_t types ------------
  67373. if test "$ac_cv_type_uint64_t" = yes; then
  67374. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67375. /* system headers have good uint64_t and int64_t */
  67376. #ifndef _INT64_T
  67377. #define _INT64_T
  67378. #endif
  67379. #ifndef _UINT64_T
  67380. #define _UINT64_T
  67381. #endif
  67382. EOF
  67383. elif test "$ac_cv_type_u_int64_t" = yes; then
  67384. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67385. /* system headers have an u_int64_t (and int64_t) */
  67386. #ifndef _INT64_T
  67387. #define _INT64_T
  67388. #endif
  67389. #ifndef _UINT64_T
  67390. #define _UINT64_T
  67391. #ifndef __uint64_t_defined
  67392. #define __uint64_t_defined
  67393. #ifndef uint64_t
  67394. typedef u_int64_t uint64_t;
  67395. #endif
  67396. #endif
  67397. #endif
  67398. EOF
  67399. elif test -n "$acx_cv_type_int64_t"; then
  67400. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67401. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  67402. #ifndef _INT64_T
  67403. #define _INT64_T
  67404. #ifndef int64_t
  67405. typedef $acx_cv_type_int64_t int64_t;
  67406. #endif
  67407. #endif
  67408. #ifndef _UINT64_T
  67409. #define _UINT64_T
  67410. #ifndef __uint64_t_defined
  67411. #define __uint64_t_defined
  67412. #ifndef uint64_t
  67413. typedef unsigned $acx_cv_type_int64_t uint64_t;
  67414. #endif
  67415. #endif
  67416. #endif
  67417. EOF
  67418. else
  67419. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67420. /* some common heuristics for int64_t, using compiler-specific tests */
  67421. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  67422. #ifndef _INT64_T
  67423. #define _INT64_T
  67424. #ifndef __int64_t_defined
  67425. #ifndef int64_t
  67426. typedef long long int64_t;
  67427. #endif
  67428. #endif
  67429. #endif
  67430. #ifndef _UINT64_T
  67431. #define _UINT64_T
  67432. #ifndef uint64_t
  67433. typedef unsigned long long uint64_t;
  67434. #endif
  67435. #endif
  67436. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  67437. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  67438. does not implement __extension__. But that compiler doesn't define
  67439. __GNUC_MINOR__. */
  67440. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  67441. # define __extension__
  67442. # endif
  67443. # ifndef _INT64_T
  67444. # define _INT64_T
  67445. # ifndef int64_t
  67446. __extension__ typedef long long int64_t;
  67447. # endif
  67448. # endif
  67449. # ifndef _UINT64_T
  67450. # define _UINT64_T
  67451. # ifndef uint64_t
  67452. __extension__ typedef unsigned long long uint64_t;
  67453. # endif
  67454. # endif
  67455. #elif !defined __STRICT_ANSI__
  67456. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  67457. # ifndef _INT64_T
  67458. # define _INT64_T
  67459. # ifndef int64_t
  67460. typedef __int64 int64_t;
  67461. # endif
  67462. # endif
  67463. # ifndef _UINT64_T
  67464. # define _UINT64_T
  67465. # ifndef uint64_t
  67466. typedef unsigned __int64 uint64_t;
  67467. # endif
  67468. # endif
  67469. # endif /* compiler */
  67470. #endif /* ANSI version */
  67471. EOF
  67472. fi
  67473. # ------------- done int64_t types, emit intptr types ------------
  67474. if test "$ac_cv_type_uintptr_t" != yes; then
  67475. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67476. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  67477. #ifndef __uintptr_t_defined
  67478. #ifndef uintptr_t
  67479. typedef u$acx_cv_type_intptr_t uintptr_t;
  67480. #endif
  67481. #endif
  67482. #ifndef __intptr_t_defined
  67483. #ifndef intptr_t
  67484. typedef $acx_cv_type_intptr_t intptr_t;
  67485. #endif
  67486. #endif
  67487. EOF
  67488. fi
  67489. # ------------- done intptr types, emit int_least types ------------
  67490. if test "$ac_cv_type_int_least32_t" != yes; then
  67491. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67492. /* Define int_least types */
  67493. typedef int8_t int_least8_t;
  67494. typedef int16_t int_least16_t;
  67495. typedef int32_t int_least32_t;
  67496. #ifdef _INT64_T
  67497. typedef int64_t int_least64_t;
  67498. #endif
  67499. typedef uint8_t uint_least8_t;
  67500. typedef uint16_t uint_least16_t;
  67501. typedef uint32_t uint_least32_t;
  67502. #ifdef _UINT64_T
  67503. typedef uint64_t uint_least64_t;
  67504. #endif
  67505. EOF
  67506. fi
  67507. # ------------- done intptr types, emit int_fast types ------------
  67508. if test "$ac_cv_type_int_fast32_t" != yes; then
  67509. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67510. /* Define int_fast types. short is often slow */
  67511. typedef int8_t int_fast8_t;
  67512. typedef int int_fast16_t;
  67513. typedef int32_t int_fast32_t;
  67514. #ifdef _INT64_T
  67515. typedef int64_t int_fast64_t;
  67516. #endif
  67517. typedef uint8_t uint_fast8_t;
  67518. typedef unsigned int uint_fast16_t;
  67519. typedef uint32_t uint_fast32_t;
  67520. #ifdef _UINT64_T
  67521. typedef uint64_t uint_fast64_t;
  67522. #endif
  67523. EOF
  67524. fi
  67525. if test "$ac_cv_type_uintmax_t" != yes; then
  67526. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67527. /* Define intmax based on what we found */
  67528. #ifndef intmax_t
  67529. #ifdef _INT64_T
  67530. typedef int64_t intmax_t;
  67531. #else
  67532. typedef long intmax_t;
  67533. #endif
  67534. #endif
  67535. #ifndef uintmax_t
  67536. #ifdef _UINT64_T
  67537. typedef uint64_t uintmax_t;
  67538. #else
  67539. typedef unsigned long uintmax_t;
  67540. #endif
  67541. #endif
  67542. EOF
  67543. fi
  67544. sed 's/^ *//' >> tmp-stdint.h <<EOF
  67545. #endif /* GCC_GENERATED_STDINT_H */
  67546. EOF
  67547. if test -r include/gstdint.h && cmp -s tmp-stdint.h include/gstdint.h; then
  67548. rm -f tmp-stdint.h
  67549. else
  67550. mv -f tmp-stdint.h include/gstdint.h
  67551. fi
  67552. ;;
  67553. "scripts/testsuite_flags":F) chmod +x scripts/testsuite_flags ;;
  67554. "scripts/extract_symvers":F) chmod +x scripts/extract_symvers ;;
  67555. "include/Makefile":F) cat > vpsed$$ << \_EOF
  67556. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67557. _EOF
  67558. sed -f vpsed$$ $ac_file > tmp$$
  67559. mv tmp$$ $ac_file
  67560. rm vpsed$$
  67561. echo 'MULTISUBDIR =' >> $ac_file
  67562. ml_norecursion=yes
  67563. . ${multi_basedir}/config-ml.in
  67564. { ml_norecursion=; unset ml_norecursion;}
  67565. ;;
  67566. "libsupc++/Makefile":F) cat > vpsed$$ << \_EOF
  67567. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67568. _EOF
  67569. sed -f vpsed$$ $ac_file > tmp$$
  67570. mv tmp$$ $ac_file
  67571. rm vpsed$$
  67572. echo 'MULTISUBDIR =' >> $ac_file
  67573. ml_norecursion=yes
  67574. . ${multi_basedir}/config-ml.in
  67575. { ml_norecursion=; unset ml_norecursion;}
  67576. ;;
  67577. "src/Makefile":F) cat > vpsed$$ << \_EOF
  67578. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67579. _EOF
  67580. sed -f vpsed$$ $ac_file > tmp$$
  67581. mv tmp$$ $ac_file
  67582. rm vpsed$$
  67583. echo 'MULTISUBDIR =' >> $ac_file
  67584. ml_norecursion=yes
  67585. . ${multi_basedir}/config-ml.in
  67586. { ml_norecursion=; unset ml_norecursion;}
  67587. ;;
  67588. "src/c++98/Makefile":F) cat > vpsed$$ << \_EOF
  67589. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67590. _EOF
  67591. sed -f vpsed$$ $ac_file > tmp$$
  67592. mv tmp$$ $ac_file
  67593. rm vpsed$$
  67594. echo 'MULTISUBDIR =' >> $ac_file
  67595. ml_norecursion=yes
  67596. . ${multi_basedir}/config-ml.in
  67597. { ml_norecursion=; unset ml_norecursion;}
  67598. ;;
  67599. "src/c++11/Makefile":F) cat > vpsed$$ << \_EOF
  67600. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67601. _EOF
  67602. sed -f vpsed$$ $ac_file > tmp$$
  67603. mv tmp$$ $ac_file
  67604. rm vpsed$$
  67605. echo 'MULTISUBDIR =' >> $ac_file
  67606. ml_norecursion=yes
  67607. . ${multi_basedir}/config-ml.in
  67608. { ml_norecursion=; unset ml_norecursion;}
  67609. ;;
  67610. "src/c++17/Makefile":F) cat > vpsed$$ << \_EOF
  67611. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67612. _EOF
  67613. sed -f vpsed$$ $ac_file > tmp$$
  67614. mv tmp$$ $ac_file
  67615. rm vpsed$$
  67616. echo 'MULTISUBDIR =' >> $ac_file
  67617. ml_norecursion=yes
  67618. . ${multi_basedir}/config-ml.in
  67619. { ml_norecursion=; unset ml_norecursion;}
  67620. ;;
  67621. "src/c++20/Makefile":F) cat > vpsed$$ << \_EOF
  67622. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67623. _EOF
  67624. sed -f vpsed$$ $ac_file > tmp$$
  67625. mv tmp$$ $ac_file
  67626. rm vpsed$$
  67627. echo 'MULTISUBDIR =' >> $ac_file
  67628. ml_norecursion=yes
  67629. . ${multi_basedir}/config-ml.in
  67630. { ml_norecursion=; unset ml_norecursion;}
  67631. ;;
  67632. "src/filesystem/Makefile":F) cat > vpsed$$ << \_EOF
  67633. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67634. _EOF
  67635. sed -f vpsed$$ $ac_file > tmp$$
  67636. mv tmp$$ $ac_file
  67637. rm vpsed$$
  67638. echo 'MULTISUBDIR =' >> $ac_file
  67639. ml_norecursion=yes
  67640. . ${multi_basedir}/config-ml.in
  67641. { ml_norecursion=; unset ml_norecursion;}
  67642. ;;
  67643. "src/libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
  67644. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67645. _EOF
  67646. sed -f vpsed$$ $ac_file > tmp$$
  67647. mv tmp$$ $ac_file
  67648. rm vpsed$$
  67649. echo 'MULTISUBDIR =' >> $ac_file
  67650. ml_norecursion=yes
  67651. . ${multi_basedir}/config-ml.in
  67652. { ml_norecursion=; unset ml_norecursion;}
  67653. ;;
  67654. "doc/Makefile":F) cat > vpsed$$ << \_EOF
  67655. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67656. _EOF
  67657. sed -f vpsed$$ $ac_file > tmp$$
  67658. mv tmp$$ $ac_file
  67659. rm vpsed$$
  67660. echo 'MULTISUBDIR =' >> $ac_file
  67661. ml_norecursion=yes
  67662. . ${multi_basedir}/config-ml.in
  67663. { ml_norecursion=; unset ml_norecursion;}
  67664. ;;
  67665. "po/Makefile":F) cat > vpsed$$ << \_EOF
  67666. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67667. _EOF
  67668. sed -f vpsed$$ $ac_file > tmp$$
  67669. mv tmp$$ $ac_file
  67670. rm vpsed$$
  67671. echo 'MULTISUBDIR =' >> $ac_file
  67672. ml_norecursion=yes
  67673. . ${multi_basedir}/config-ml.in
  67674. { ml_norecursion=; unset ml_norecursion;}
  67675. ;;
  67676. "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
  67677. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67678. _EOF
  67679. sed -f vpsed$$ $ac_file > tmp$$
  67680. mv tmp$$ $ac_file
  67681. rm vpsed$$
  67682. echo 'MULTISUBDIR =' >> $ac_file
  67683. ml_norecursion=yes
  67684. . ${multi_basedir}/config-ml.in
  67685. { ml_norecursion=; unset ml_norecursion;}
  67686. ;;
  67687. "python/Makefile":F) cat > vpsed$$ << \_EOF
  67688. s!`test -f '$<' || echo '$(srcdir)/'`!!
  67689. _EOF
  67690. sed -f vpsed$$ $ac_file > tmp$$
  67691. mv tmp$$ $ac_file
  67692. rm vpsed$$
  67693. echo 'MULTISUBDIR =' >> $ac_file
  67694. ml_norecursion=yes
  67695. . ${multi_basedir}/config-ml.in
  67696. { ml_norecursion=; unset ml_norecursion;}
  67697. ;;
  67698. "generate-headers":C) (cd include && ${MAKE-make} pch_build= ) ;;
  67699. esac
  67700. done # for ac_tag
  67701. as_fn_exit 0
  67702. _ACEOF
  67703. ac_clean_files=$ac_clean_files_save
  67704. test $ac_write_fail = 0 ||
  67705. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  67706. # configure is writing to config.log, and then calls config.status.
  67707. # config.status does its own redirection, appending to config.log.
  67708. # Unfortunately, on DOS this fails, as config.log is still kept open
  67709. # by configure, so config.status won't be able to write to it; its
  67710. # output is simply discarded. So we exec the FD to /dev/null,
  67711. # effectively closing config.log, so it can be properly (re)opened and
  67712. # appended to by config.status. When coming back to configure, we
  67713. # need to make the FD available again.
  67714. if test "$no_create" != yes; then
  67715. ac_cs_success=:
  67716. ac_config_status_args=
  67717. test "$silent" = yes &&
  67718. ac_config_status_args="$ac_config_status_args --quiet"
  67719. exec 5>/dev/null
  67720. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  67721. exec 5>>config.log
  67722. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  67723. # would make configure fail if this is the last instruction.
  67724. $ac_cs_success || as_fn_exit 1
  67725. fi
  67726. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  67727. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  67728. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  67729. fi