configure 920 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  7. # Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. as_nop=:
  18. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  19. then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else $as_nop
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. # Reset variables that may have inherited troublesome values from
  35. # the environment.
  36. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  37. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  38. # side effect of setting IFS to empty, thus disabling word splitting.)
  39. # Quoting is to prevent editors from complaining about space-tab.
  40. as_nl='
  41. '
  42. export as_nl
  43. IFS=" "" $as_nl"
  44. PS1='$ '
  45. PS2='> '
  46. PS4='+ '
  47. # Ensure predictable behavior from utilities with locale-dependent output.
  48. LC_ALL=C
  49. export LC_ALL
  50. LANGUAGE=C
  51. export LANGUAGE
  52. # We cannot yet rely on "unset" to work, but we need these variables
  53. # to be unset--not just set to an empty or harmless value--now, to
  54. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  55. # also avoids known problems related to "unset" and subshell syntax
  56. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  57. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  58. do eval test \${$as_var+y} \
  59. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  60. done
  61. # Ensure that fds 0, 1, and 2 are open.
  62. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  63. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  64. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  65. # The user is always right.
  66. if ${PATH_SEPARATOR+false} :; then
  67. PATH_SEPARATOR=:
  68. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  69. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  70. PATH_SEPARATOR=';'
  71. }
  72. fi
  73. # Find who we are. Look in the path if we contain no directory separator.
  74. as_myself=
  75. case $0 in #((
  76. *[\\/]* ) as_myself=$0 ;;
  77. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  78. for as_dir in $PATH
  79. do
  80. IFS=$as_save_IFS
  81. case $as_dir in #(((
  82. '') as_dir=./ ;;
  83. */) ;;
  84. *) as_dir=$as_dir/ ;;
  85. esac
  86. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  87. done
  88. IFS=$as_save_IFS
  89. ;;
  90. esac
  91. # We did not find ourselves, most probably we were run as `sh COMMAND'
  92. # in which case we are not to be found in the path.
  93. if test "x$as_myself" = x; then
  94. as_myself=$0
  95. fi
  96. if test ! -f "$as_myself"; then
  97. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  98. exit 1
  99. fi
  100. # Use a proper internal environment variable to ensure we don't fall
  101. # into an infinite loop, continuously re-executing ourselves.
  102. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  103. _as_can_reexec=no; export _as_can_reexec;
  104. # We cannot yet assume a decent shell, so we have to provide a
  105. # neutralization value for shells without unset; and this also
  106. # works around shells that cannot unset nonexistent variables.
  107. # Preserve -v and -x to the replacement shell.
  108. BASH_ENV=/dev/null
  109. ENV=/dev/null
  110. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  111. case $- in # ((((
  112. *v*x* | *x*v* ) as_opts=-vx ;;
  113. *v* ) as_opts=-v ;;
  114. *x* ) as_opts=-x ;;
  115. * ) as_opts= ;;
  116. esac
  117. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  118. # Admittedly, this is quite paranoid, since all the known shells bail
  119. # out after a failed `exec'.
  120. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  121. exit 255
  122. fi
  123. # We don't want this to propagate to other subprocesses.
  124. { _as_can_reexec=; unset _as_can_reexec;}
  125. if test "x$CONFIG_SHELL" = x; then
  126. as_bourne_compatible="as_nop=:
  127. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  128. then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else \$as_nop
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  155. then :
  156. else \$as_nop
  157. exitcode=1; echo positional parameters were not saved.
  158. fi
  159. test x\$exitcode = x0 || exit 1
  160. blah=\$(echo \$(echo blah))
  161. test x\"\$blah\" = xblah || exit 1
  162. test -x / || exit 1"
  163. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  164. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  165. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  166. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  167. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  168. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  169. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  170. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  171. PATH=/empty FPATH=/empty; export PATH FPATH
  172. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  173. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  174. test \$(( 1 + 1 )) = 2 || exit 1"
  175. if (eval "$as_required") 2>/dev/null
  176. then :
  177. as_have_required=yes
  178. else $as_nop
  179. as_have_required=no
  180. fi
  181. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  182. then :
  183. else $as_nop
  184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  185. as_found=false
  186. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  187. do
  188. IFS=$as_save_IFS
  189. case $as_dir in #(((
  190. '') as_dir=./ ;;
  191. */) ;;
  192. *) as_dir=$as_dir/ ;;
  193. esac
  194. as_found=:
  195. case $as_dir in #(
  196. /*)
  197. for as_base in sh bash ksh sh5; do
  198. # Try only shells that exist, to save several forks.
  199. as_shell=$as_dir$as_base
  200. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  201. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  202. then :
  203. CONFIG_SHELL=$as_shell as_have_required=yes
  204. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  205. then :
  206. break 2
  207. fi
  208. fi
  209. done;;
  210. esac
  211. as_found=false
  212. done
  213. IFS=$as_save_IFS
  214. if $as_found
  215. then :
  216. else $as_nop
  217. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  218. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  219. then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi
  222. fi
  223. if test "x$CONFIG_SHELL" != x
  224. then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno
  246. then :
  247. printf "%s\n" "$0: This script requires a shell more modern than all"
  248. printf "%s\n" "$0: the shells that I found on your system."
  249. if test ${ZSH_VERSION+y} ; then
  250. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  251. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  252. else
  253. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
  254. $0: including any error possibly output before this
  255. $0: message. Then install a modern shell, or manually run
  256. $0: the script under such a shell if you do have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_nop
  295. # ---------
  296. # Do nothing but, unlike ":", preserve the value of $?.
  297. as_fn_nop ()
  298. {
  299. return $?
  300. }
  301. as_nop=as_fn_nop
  302. # as_fn_mkdir_p
  303. # -------------
  304. # Create "$as_dir" as a directory, including parents if necessary.
  305. as_fn_mkdir_p ()
  306. {
  307. case $as_dir in #(
  308. -*) as_dir=./$as_dir;;
  309. esac
  310. test -d "$as_dir" || eval $as_mkdir_p || {
  311. as_dirs=
  312. while :; do
  313. case $as_dir in #(
  314. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  315. *) as_qdir=$as_dir;;
  316. esac
  317. as_dirs="'$as_qdir' $as_dirs"
  318. as_dir=`$as_dirname -- "$as_dir" ||
  319. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  320. X"$as_dir" : 'X\(//\)[^/]' \| \
  321. X"$as_dir" : 'X\(//\)$' \| \
  322. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  323. printf "%s\n" X"$as_dir" |
  324. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\/\)[^/].*/{
  329. s//\1/
  330. q
  331. }
  332. /^X\(\/\/\)$/{
  333. s//\1/
  334. q
  335. }
  336. /^X\(\/\).*/{
  337. s//\1/
  338. q
  339. }
  340. s/.*/./; q'`
  341. test -d "$as_dir" && break
  342. done
  343. test -z "$as_dirs" || eval "mkdir $as_dirs"
  344. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  345. } # as_fn_mkdir_p
  346. # as_fn_executable_p FILE
  347. # -----------------------
  348. # Test if FILE is an executable regular file.
  349. as_fn_executable_p ()
  350. {
  351. test -f "$1" && test -x "$1"
  352. } # as_fn_executable_p
  353. # as_fn_append VAR VALUE
  354. # ----------------------
  355. # Append the text in VALUE to the end of the definition contained in VAR. Take
  356. # advantage of any shell optimizations that allow amortized linear growth over
  357. # repeated appends, instead of the typical quadratic growth present in naive
  358. # implementations.
  359. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  360. then :
  361. eval 'as_fn_append ()
  362. {
  363. eval $1+=\$2
  364. }'
  365. else $as_nop
  366. as_fn_append ()
  367. {
  368. eval $1=\$$1\$2
  369. }
  370. fi # as_fn_append
  371. # as_fn_arith ARG...
  372. # ------------------
  373. # Perform arithmetic evaluation on the ARGs, and store the result in the
  374. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  375. # must be portable across $(()) and expr.
  376. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  377. then :
  378. eval 'as_fn_arith ()
  379. {
  380. as_val=$(( $* ))
  381. }'
  382. else $as_nop
  383. as_fn_arith ()
  384. {
  385. as_val=`expr "$@" || test $? -eq 1`
  386. }
  387. fi # as_fn_arith
  388. # as_fn_nop
  389. # ---------
  390. # Do nothing but, unlike ":", preserve the value of $?.
  391. as_fn_nop ()
  392. {
  393. return $?
  394. }
  395. as_nop=as_fn_nop
  396. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  397. # ----------------------------------------
  398. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  399. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  400. # script with STATUS, using 1 if that was 0.
  401. as_fn_error ()
  402. {
  403. as_status=$1; test $as_status -eq 0 && as_status=1
  404. if test "$4"; then
  405. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  407. fi
  408. printf "%s\n" "$as_me: error: $2" >&2
  409. as_fn_exit $as_status
  410. } # as_fn_error
  411. if expr a : '\(a\)' >/dev/null 2>&1 &&
  412. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  413. as_expr=expr
  414. else
  415. as_expr=false
  416. fi
  417. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  418. as_basename=basename
  419. else
  420. as_basename=false
  421. fi
  422. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  423. as_dirname=dirname
  424. else
  425. as_dirname=false
  426. fi
  427. as_me=`$as_basename -- "$0" ||
  428. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  429. X"$0" : 'X\(//\)$' \| \
  430. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  431. printf "%s\n" X/"$0" |
  432. sed '/^.*\/\([^/][^/]*\)\/*$/{
  433. s//\1/
  434. q
  435. }
  436. /^X\/\(\/\/\)$/{
  437. s//\1/
  438. q
  439. }
  440. /^X\/\(\/\).*/{
  441. s//\1/
  442. q
  443. }
  444. s/.*/./; q'`
  445. # Avoid depending upon Character Ranges.
  446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  449. as_cr_digits='0123456789'
  450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  451. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  452. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  453. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  454. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  455. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  456. sed -n '
  457. p
  458. /[$]LINENO/=
  459. ' <$as_myself |
  460. sed '
  461. s/[$]LINENO.*/&-/
  462. t lineno
  463. b
  464. :lineno
  465. N
  466. :loop
  467. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  468. t loop
  469. s/-\n.*//
  470. ' >$as_me.lineno &&
  471. chmod +x "$as_me.lineno" ||
  472. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  473. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  474. # already done that, so ensure we don't try to do so again and fall
  475. # in an infinite loop. This has already happened in practice.
  476. _as_can_reexec=no; export _as_can_reexec
  477. # Don't try to exec as it changes $[0], causing all sort of problems
  478. # (the dirname of $[0] is not the place where we might find the
  479. # original and so on. Autoconf is especially sensitive to this).
  480. . "./$as_me.lineno"
  481. # Exit status is that of the last command.
  482. exit
  483. }
  484. # Determine whether it's possible to make 'echo' print without a newline.
  485. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  486. # for compatibility with existing Makefiles.
  487. ECHO_C= ECHO_N= ECHO_T=
  488. case `echo -n x` in #(((((
  489. -n*)
  490. case `echo 'xy\c'` in
  491. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  492. xy) ECHO_C='\c';;
  493. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  494. ECHO_T=' ';;
  495. esac;;
  496. *)
  497. ECHO_N='-n';;
  498. esac
  499. # For backward compatibility with old third-party macros, we provide
  500. # the shell variables $as_echo and $as_echo_n. New code should use
  501. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  502. as_echo='printf %s\n'
  503. as_echo_n='printf %s'
  504. rm -f conf$$ conf$$.exe conf$$.file
  505. if test -d conf$$.dir; then
  506. rm -f conf$$.dir/conf$$.file
  507. else
  508. rm -f conf$$.dir
  509. mkdir conf$$.dir 2>/dev/null
  510. fi
  511. if (echo >conf$$.file) 2>/dev/null; then
  512. if ln -s conf$$.file conf$$ 2>/dev/null; then
  513. as_ln_s='ln -s'
  514. # ... but there are two gotchas:
  515. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  516. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  517. # In both cases, we have to default to `cp -pR'.
  518. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  519. as_ln_s='cp -pR'
  520. elif ln conf$$.file conf$$ 2>/dev/null; then
  521. as_ln_s=ln
  522. else
  523. as_ln_s='cp -pR'
  524. fi
  525. else
  526. as_ln_s='cp -pR'
  527. fi
  528. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  529. rmdir conf$$.dir 2>/dev/null
  530. if mkdir -p . 2>/dev/null; then
  531. as_mkdir_p='mkdir -p "$as_dir"'
  532. else
  533. test -d ./-p && rmdir ./-p
  534. as_mkdir_p=false
  535. fi
  536. as_test_x='test -x'
  537. as_executable_p=as_fn_executable_p
  538. # Sed expression to map a string onto a valid CPP name.
  539. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  540. # Sed expression to map a string onto a valid variable name.
  541. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  542. SHELL=${CONFIG_SHELL-/bin/sh}
  543. test -n "$DJDIR" || exec 7<&0 </dev/null
  544. exec 6>&1
  545. # Name of the host.
  546. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  547. # so uname gets run too.
  548. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  549. #
  550. # Initializations.
  551. #
  552. ac_default_prefix=/usr/local
  553. ac_clean_files=
  554. ac_config_libobj_dir=.
  555. LIBOBJS=
  556. cross_compiling=no
  557. subdirs=
  558. MFLAGS=
  559. MAKEFLAGS=
  560. # Identity of this package.
  561. PACKAGE_NAME=''
  562. PACKAGE_TARNAME=''
  563. PACKAGE_VERSION=''
  564. PACKAGE_STRING=''
  565. PACKAGE_BUGREPORT=''
  566. PACKAGE_URL=''
  567. ac_unique_file="src/SDL.c"
  568. # Factoring default headers for most tests.
  569. ac_includes_default="\
  570. #include <stddef.h>
  571. #ifdef HAVE_STDIO_H
  572. # include <stdio.h>
  573. #endif
  574. #ifdef HAVE_STDLIB_H
  575. # include <stdlib.h>
  576. #endif
  577. #ifdef HAVE_STRING_H
  578. # include <string.h>
  579. #endif
  580. #ifdef HAVE_INTTYPES_H
  581. # include <inttypes.h>
  582. #endif
  583. #ifdef HAVE_STDINT_H
  584. # include <stdint.h>
  585. #endif
  586. #ifdef HAVE_STRINGS_H
  587. # include <strings.h>
  588. #endif
  589. #ifdef HAVE_SYS_TYPES_H
  590. # include <sys/types.h>
  591. #endif
  592. #ifdef HAVE_SYS_STAT_H
  593. # include <sys/stat.h>
  594. #endif
  595. #ifdef HAVE_UNISTD_H
  596. # include <unistd.h>
  597. #endif"
  598. ac_header_c_list=
  599. ac_subst_vars='LTLIBOBJS
  600. LIBOBJS
  601. WAYLAND_SCANNER_CODE_MODE
  602. WAYLAND_SCANNER
  603. EXTRA_LDFLAGS
  604. BUILD_LDFLAGS
  605. EXTRA_CFLAGS
  606. BUILD_CFLAGS
  607. SDLTEST_OBJECTS
  608. SDLMAIN_OBJECTS
  609. VERSION_OBJECTS
  610. GEN_OBJECTS
  611. GEN_HEADERS
  612. OBJECTS
  613. INCLUDE
  614. ac_aux_dir
  615. ENABLE_STATIC_FALSE
  616. ENABLE_STATIC_TRUE
  617. ENABLE_SHARED_FALSE
  618. ENABLE_SHARED_TRUE
  619. PKGCONFIG_LIBS_PRIV
  620. SDL_RLD_FLAGS
  621. SDL_STATIC_LIBS
  622. SDL_LIBS
  623. SDL_CFLAGS
  624. bin_prefix_relpath
  625. cmake_prefix_relpath
  626. SDL_VENDOR_INFO
  627. INSTALL_SDL3_CONFIG
  628. LIBUSB_LIBS
  629. LIBUSB_CFLAGS
  630. IBUS_LIBS
  631. IBUS_CFLAGS
  632. DBUS_LIBS
  633. DBUS_CFLAGS
  634. LIBGBM_LIBS
  635. LIBGBM_CFLAGS
  636. LIBDRM_LIBS
  637. LIBDRM_CFLAGS
  638. X_EXTRA_LIBS
  639. X_LIBS
  640. X_PRE_LIBS
  641. X_CFLAGS
  642. XMKMF
  643. RPI_LIBS
  644. RPI_CFLAGS
  645. DECOR_LIBS
  646. DECOR_CFLAGS
  647. SNDIO_LIBS
  648. SNDIO_CFLAGS
  649. PULSEAUDIO_LIBS
  650. PULSEAUDIO_CFLAGS
  651. PIPEWIRE_LIBS
  652. PIPEWIRE_CFLAGS
  653. JACK_LIBS
  654. JACK_CFLAGS
  655. ALSA_LIBS
  656. ALSA_CFLAGS
  657. ALLOCA
  658. CPP
  659. LIBTOOLLINKERTAG
  660. LINKER
  661. SORT
  662. PKG_CONFIG_LIBDIR
  663. PKG_CONFIG_PATH
  664. PKG_CONFIG
  665. SET_MAKE
  666. INSTALL_DATA
  667. INSTALL_SCRIPT
  668. INSTALL_PROGRAM
  669. CXXCPP
  670. ac_ct_CXX
  671. CXXFLAGS
  672. CXX
  673. LT_AGE
  674. LT_REVISION
  675. LT_CURRENT
  676. LT_RELEASE
  677. RC
  678. LT_SYS_LIBRARY_PATH
  679. OTOOL64
  680. OTOOL
  681. LIPO
  682. NMEDIT
  683. DSYMUTIL
  684. MANIFEST_TOOL
  685. AWK
  686. RANLIB
  687. STRIP
  688. ac_ct_AR
  689. AR
  690. LN_S
  691. NM
  692. ac_ct_DUMPBIN
  693. DUMPBIN
  694. LD
  695. FGREP
  696. EGREP
  697. GREP
  698. SED
  699. OBJEXT
  700. EXEEXT
  701. ac_ct_CC
  702. CPPFLAGS
  703. LDFLAGS
  704. CFLAGS
  705. CC
  706. host_os
  707. host_vendor
  708. host_cpu
  709. host
  710. build_os
  711. build_vendor
  712. build_cpu
  713. build
  714. LIBTOOL
  715. OBJDUMP
  716. DLLTOOL
  717. AS
  718. SDL_VERSION
  719. SDL_BINARY_AGE
  720. SDL_INTERFACE_AGE
  721. SDL_MICRO_VERSION
  722. SDL_MINOR_VERSION
  723. SDL_MAJOR_VERSION
  724. target_alias
  725. host_alias
  726. build_alias
  727. LIBS
  728. ECHO_T
  729. ECHO_N
  730. ECHO_C
  731. DEFS
  732. mandir
  733. localedir
  734. libdir
  735. psdir
  736. pdfdir
  737. dvidir
  738. htmldir
  739. infodir
  740. docdir
  741. oldincludedir
  742. includedir
  743. runstatedir
  744. localstatedir
  745. sharedstatedir
  746. sysconfdir
  747. datadir
  748. datarootdir
  749. libexecdir
  750. sbindir
  751. bindir
  752. program_transform_name
  753. prefix
  754. exec_prefix
  755. PACKAGE_URL
  756. PACKAGE_BUGREPORT
  757. PACKAGE_STRING
  758. PACKAGE_VERSION
  759. PACKAGE_TARNAME
  760. PACKAGE_NAME
  761. PATH_SEPARATOR
  762. SHELL'
  763. ac_subst_files=''
  764. ac_user_opts='
  765. enable_option_checking
  766. enable_shared
  767. enable_static
  768. with_pic
  769. enable_fast_install
  770. with_aix_soname
  771. with_gnu_ld
  772. with_sysroot
  773. enable_libtool_lock
  774. enable_largefile
  775. enable_assertions
  776. enable_dependency_tracking
  777. enable_libc
  778. enable_system_iconv
  779. enable_gcc_atomics
  780. enable_atomic
  781. enable_audio
  782. enable_video
  783. enable_render
  784. enable_events
  785. enable_joystick
  786. enable_haptic
  787. enable_hidapi
  788. enable_sensor
  789. enable_power
  790. enable_filesystem
  791. enable_timers
  792. enable_file
  793. enable_misc
  794. enable_locale
  795. enable_loadso
  796. enable_cpuinfo
  797. enable_assembly
  798. enable_ssemath
  799. enable_mmx
  800. enable_3dnow
  801. enable_sse
  802. enable_sse2
  803. enable_sse3
  804. enable_altivec
  805. enable_lsx
  806. enable_lasx
  807. enable_oss
  808. enable_alsa
  809. with_alsa_prefix
  810. with_alsa_inc_prefix
  811. enable_alsatest
  812. enable_alsa_shared
  813. enable_jack
  814. enable_jack_shared
  815. enable_pipewire
  816. enable_pipewire_shared
  817. enable_pulseaudio
  818. enable_pulseaudio_shared
  819. enable_sndio
  820. enable_sndio_shared
  821. enable_diskaudio
  822. enable_dummyaudio
  823. enable_libsamplerate
  824. enable_libsamplerate_shared
  825. enable_arm_simd
  826. enable_arm_neon
  827. enable_werror
  828. enable_video_wayland
  829. enable_video_wayland_qt_touch
  830. enable_wayland_shared
  831. enable_libdecor
  832. enable_libdecor_shared
  833. enable_video_rpi
  834. enable_video_x11
  835. with_x
  836. enable_x11_shared
  837. enable_video_x11_xcursor
  838. enable_video_x11_xdbe
  839. enable_video_x11_xinput
  840. enable_video_x11_xfixes
  841. enable_video_x11_xrandr
  842. enable_video_x11_scrnsaver
  843. enable_video_x11_xshape
  844. enable_video_vivante
  845. enable_video_cocoa
  846. enable_video_metal
  847. enable_render_metal
  848. enable_video_kmsdrm
  849. enable_kmsdrm_shared
  850. enable_video_dummy
  851. enable_video_offscreen
  852. enable_video_opengl
  853. enable_video_opengles
  854. enable_video_opengles1
  855. enable_video_opengles2
  856. enable_video_vulkan
  857. enable_libudev
  858. enable_dbus
  859. enable_ime
  860. enable_ibus
  861. enable_fcitx
  862. enable_joystick_mfi
  863. enable_pthreads
  864. enable_pthread_sem
  865. enable_directx
  866. enable_xinput
  867. enable_wasapi
  868. enable_hidapi_joystick
  869. enable_hidapi_libusb
  870. enable_clock_gettime
  871. enable_rpath
  872. enable_backgrounding_signal
  873. enable_foregrounding_signal
  874. enable_joystick_virtual
  875. enable_render_d3d
  876. enable_sdl3_config
  877. enable_vendor_info
  878. '
  879. ac_precious_vars='build_alias
  880. host_alias
  881. target_alias
  882. CC
  883. CFLAGS
  884. LDFLAGS
  885. LIBS
  886. CPPFLAGS
  887. LT_SYS_LIBRARY_PATH
  888. CXX
  889. CXXFLAGS
  890. CCC
  891. CXXCPP
  892. PKG_CONFIG
  893. PKG_CONFIG_PATH
  894. PKG_CONFIG_LIBDIR
  895. CPP
  896. JACK_CFLAGS
  897. JACK_LIBS
  898. PIPEWIRE_CFLAGS
  899. PIPEWIRE_LIBS
  900. PULSEAUDIO_CFLAGS
  901. PULSEAUDIO_LIBS
  902. SNDIO_CFLAGS
  903. SNDIO_LIBS
  904. DECOR_CFLAGS
  905. DECOR_LIBS
  906. RPI_CFLAGS
  907. RPI_LIBS
  908. XMKMF
  909. LIBDRM_CFLAGS
  910. LIBDRM_LIBS
  911. LIBGBM_CFLAGS
  912. LIBGBM_LIBS
  913. DBUS_CFLAGS
  914. DBUS_LIBS
  915. IBUS_CFLAGS
  916. IBUS_LIBS
  917. LIBUSB_CFLAGS
  918. LIBUSB_LIBS'
  919. # Initialize some variables set by options.
  920. ac_init_help=
  921. ac_init_version=false
  922. ac_unrecognized_opts=
  923. ac_unrecognized_sep=
  924. # The variables have the same names as the options, with
  925. # dashes changed to underlines.
  926. cache_file=/dev/null
  927. exec_prefix=NONE
  928. no_create=
  929. no_recursion=
  930. prefix=NONE
  931. program_prefix=NONE
  932. program_suffix=NONE
  933. program_transform_name=s,x,x,
  934. silent=
  935. site=
  936. srcdir=
  937. verbose=
  938. x_includes=NONE
  939. x_libraries=NONE
  940. # Installation directory options.
  941. # These are left unexpanded so users can "make install exec_prefix=/foo"
  942. # and all the variables that are supposed to be based on exec_prefix
  943. # by default will actually change.
  944. # Use braces instead of parens because sh, perl, etc. also accept them.
  945. # (The list follows the same order as the GNU Coding Standards.)
  946. bindir='${exec_prefix}/bin'
  947. sbindir='${exec_prefix}/sbin'
  948. libexecdir='${exec_prefix}/libexec'
  949. datarootdir='${prefix}/share'
  950. datadir='${datarootdir}'
  951. sysconfdir='${prefix}/etc'
  952. sharedstatedir='${prefix}/com'
  953. localstatedir='${prefix}/var'
  954. runstatedir='${localstatedir}/run'
  955. includedir='${prefix}/include'
  956. oldincludedir='/usr/include'
  957. docdir='${datarootdir}/doc/${PACKAGE}'
  958. infodir='${datarootdir}/info'
  959. htmldir='${docdir}'
  960. dvidir='${docdir}'
  961. pdfdir='${docdir}'
  962. psdir='${docdir}'
  963. libdir='${exec_prefix}/lib'
  964. localedir='${datarootdir}/locale'
  965. mandir='${datarootdir}/man'
  966. ac_prev=
  967. ac_dashdash=
  968. for ac_option
  969. do
  970. # If the previous option needs an argument, assign it.
  971. if test -n "$ac_prev"; then
  972. eval $ac_prev=\$ac_option
  973. ac_prev=
  974. continue
  975. fi
  976. case $ac_option in
  977. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  978. *=) ac_optarg= ;;
  979. *) ac_optarg=yes ;;
  980. esac
  981. case $ac_dashdash$ac_option in
  982. --)
  983. ac_dashdash=yes ;;
  984. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  985. ac_prev=bindir ;;
  986. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  987. bindir=$ac_optarg ;;
  988. -build | --build | --buil | --bui | --bu)
  989. ac_prev=build_alias ;;
  990. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  991. build_alias=$ac_optarg ;;
  992. -cache-file | --cache-file | --cache-fil | --cache-fi \
  993. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  994. ac_prev=cache_file ;;
  995. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  996. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  997. cache_file=$ac_optarg ;;
  998. --config-cache | -C)
  999. cache_file=config.cache ;;
  1000. -datadir | --datadir | --datadi | --datad)
  1001. ac_prev=datadir ;;
  1002. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1003. datadir=$ac_optarg ;;
  1004. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1005. | --dataroo | --dataro | --datar)
  1006. ac_prev=datarootdir ;;
  1007. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1008. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1009. datarootdir=$ac_optarg ;;
  1010. -disable-* | --disable-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "enable_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval enable_$ac_useropt=no ;;
  1025. -docdir | --docdir | --docdi | --doc | --do)
  1026. ac_prev=docdir ;;
  1027. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1028. docdir=$ac_optarg ;;
  1029. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1030. ac_prev=dvidir ;;
  1031. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1032. dvidir=$ac_optarg ;;
  1033. -enable-* | --enable-*)
  1034. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1035. # Reject names that are not valid shell variable names.
  1036. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1037. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1038. ac_useropt_orig=$ac_useropt
  1039. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1040. case $ac_user_opts in
  1041. *"
  1042. "enable_$ac_useropt"
  1043. "*) ;;
  1044. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1045. ac_unrecognized_sep=', ';;
  1046. esac
  1047. eval enable_$ac_useropt=\$ac_optarg ;;
  1048. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1049. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1050. | --exec | --exe | --ex)
  1051. ac_prev=exec_prefix ;;
  1052. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1053. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1054. | --exec=* | --exe=* | --ex=*)
  1055. exec_prefix=$ac_optarg ;;
  1056. -gas | --gas | --ga | --g)
  1057. # Obsolete; use --with-gas.
  1058. with_gas=yes ;;
  1059. -help | --help | --hel | --he | -h)
  1060. ac_init_help=long ;;
  1061. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1062. ac_init_help=recursive ;;
  1063. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1064. ac_init_help=short ;;
  1065. -host | --host | --hos | --ho)
  1066. ac_prev=host_alias ;;
  1067. -host=* | --host=* | --hos=* | --ho=*)
  1068. host_alias=$ac_optarg ;;
  1069. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1070. ac_prev=htmldir ;;
  1071. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1072. | --ht=*)
  1073. htmldir=$ac_optarg ;;
  1074. -includedir | --includedir | --includedi | --included | --include \
  1075. | --includ | --inclu | --incl | --inc)
  1076. ac_prev=includedir ;;
  1077. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1078. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1079. includedir=$ac_optarg ;;
  1080. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1081. ac_prev=infodir ;;
  1082. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1083. infodir=$ac_optarg ;;
  1084. -libdir | --libdir | --libdi | --libd)
  1085. ac_prev=libdir ;;
  1086. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1087. libdir=$ac_optarg ;;
  1088. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1089. | --libexe | --libex | --libe)
  1090. ac_prev=libexecdir ;;
  1091. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1092. | --libexe=* | --libex=* | --libe=*)
  1093. libexecdir=$ac_optarg ;;
  1094. -localedir | --localedir | --localedi | --localed | --locale)
  1095. ac_prev=localedir ;;
  1096. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1097. localedir=$ac_optarg ;;
  1098. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1099. | --localstate | --localstat | --localsta | --localst | --locals)
  1100. ac_prev=localstatedir ;;
  1101. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1102. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1103. localstatedir=$ac_optarg ;;
  1104. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1105. ac_prev=mandir ;;
  1106. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1107. mandir=$ac_optarg ;;
  1108. -nfp | --nfp | --nf)
  1109. # Obsolete; use --without-fp.
  1110. with_fp=no ;;
  1111. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1112. | --no-cr | --no-c | -n)
  1113. no_create=yes ;;
  1114. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1115. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1116. no_recursion=yes ;;
  1117. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1118. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1119. | --oldin | --oldi | --old | --ol | --o)
  1120. ac_prev=oldincludedir ;;
  1121. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1122. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1123. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1124. oldincludedir=$ac_optarg ;;
  1125. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1126. ac_prev=prefix ;;
  1127. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1128. prefix=$ac_optarg ;;
  1129. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1130. | --program-pre | --program-pr | --program-p)
  1131. ac_prev=program_prefix ;;
  1132. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1133. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1134. program_prefix=$ac_optarg ;;
  1135. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1136. | --program-suf | --program-su | --program-s)
  1137. ac_prev=program_suffix ;;
  1138. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1139. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1140. program_suffix=$ac_optarg ;;
  1141. -program-transform-name | --program-transform-name \
  1142. | --program-transform-nam | --program-transform-na \
  1143. | --program-transform-n | --program-transform- \
  1144. | --program-transform | --program-transfor \
  1145. | --program-transfo | --program-transf \
  1146. | --program-trans | --program-tran \
  1147. | --progr-tra | --program-tr | --program-t)
  1148. ac_prev=program_transform_name ;;
  1149. -program-transform-name=* | --program-transform-name=* \
  1150. | --program-transform-nam=* | --program-transform-na=* \
  1151. | --program-transform-n=* | --program-transform-=* \
  1152. | --program-transform=* | --program-transfor=* \
  1153. | --program-transfo=* | --program-transf=* \
  1154. | --program-trans=* | --program-tran=* \
  1155. | --progr-tra=* | --program-tr=* | --program-t=*)
  1156. program_transform_name=$ac_optarg ;;
  1157. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1158. ac_prev=pdfdir ;;
  1159. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1160. pdfdir=$ac_optarg ;;
  1161. -psdir | --psdir | --psdi | --psd | --ps)
  1162. ac_prev=psdir ;;
  1163. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1164. psdir=$ac_optarg ;;
  1165. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1166. | -silent | --silent | --silen | --sile | --sil)
  1167. silent=yes ;;
  1168. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1169. | --runstate | --runstat | --runsta | --runst | --runs \
  1170. | --run | --ru | --r)
  1171. ac_prev=runstatedir ;;
  1172. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1173. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1174. | --run=* | --ru=* | --r=*)
  1175. runstatedir=$ac_optarg ;;
  1176. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1177. ac_prev=sbindir ;;
  1178. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1179. | --sbi=* | --sb=*)
  1180. sbindir=$ac_optarg ;;
  1181. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1182. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1183. | --sharedst | --shareds | --shared | --share | --shar \
  1184. | --sha | --sh)
  1185. ac_prev=sharedstatedir ;;
  1186. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1187. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1188. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1189. | --sha=* | --sh=*)
  1190. sharedstatedir=$ac_optarg ;;
  1191. -site | --site | --sit)
  1192. ac_prev=site ;;
  1193. -site=* | --site=* | --sit=*)
  1194. site=$ac_optarg ;;
  1195. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1196. ac_prev=srcdir ;;
  1197. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1198. srcdir=$ac_optarg ;;
  1199. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1200. | --syscon | --sysco | --sysc | --sys | --sy)
  1201. ac_prev=sysconfdir ;;
  1202. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1203. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1204. sysconfdir=$ac_optarg ;;
  1205. -target | --target | --targe | --targ | --tar | --ta | --t)
  1206. ac_prev=target_alias ;;
  1207. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1208. target_alias=$ac_optarg ;;
  1209. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1210. verbose=yes ;;
  1211. -version | --version | --versio | --versi | --vers | -V)
  1212. ac_init_version=: ;;
  1213. -with-* | --with-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=\$ac_optarg ;;
  1228. -without-* | --without-*)
  1229. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1230. # Reject names that are not valid shell variable names.
  1231. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1232. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1233. ac_useropt_orig=$ac_useropt
  1234. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1235. case $ac_user_opts in
  1236. *"
  1237. "with_$ac_useropt"
  1238. "*) ;;
  1239. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1240. ac_unrecognized_sep=', ';;
  1241. esac
  1242. eval with_$ac_useropt=no ;;
  1243. --x)
  1244. # Obsolete; use --with-x.
  1245. with_x=yes ;;
  1246. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1247. | --x-incl | --x-inc | --x-in | --x-i)
  1248. ac_prev=x_includes ;;
  1249. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1250. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1251. x_includes=$ac_optarg ;;
  1252. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1253. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1254. ac_prev=x_libraries ;;
  1255. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1256. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1257. x_libraries=$ac_optarg ;;
  1258. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1259. Try \`$0 --help' for more information"
  1260. ;;
  1261. *=*)
  1262. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1263. # Reject names that are not valid shell variable names.
  1264. case $ac_envvar in #(
  1265. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1266. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1267. esac
  1268. eval $ac_envvar=\$ac_optarg
  1269. export $ac_envvar ;;
  1270. *)
  1271. # FIXME: should be removed in autoconf 3.0.
  1272. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1273. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1274. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1275. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1276. ;;
  1277. esac
  1278. done
  1279. if test -n "$ac_prev"; then
  1280. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1281. as_fn_error $? "missing argument to $ac_option"
  1282. fi
  1283. if test -n "$ac_unrecognized_opts"; then
  1284. case $enable_option_checking in
  1285. no) ;;
  1286. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1287. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1288. esac
  1289. fi
  1290. # Check all directory arguments for consistency.
  1291. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1292. datadir sysconfdir sharedstatedir localstatedir includedir \
  1293. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1294. libdir localedir mandir runstatedir
  1295. do
  1296. eval ac_val=\$$ac_var
  1297. # Remove trailing slashes.
  1298. case $ac_val in
  1299. */ )
  1300. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1301. eval $ac_var=\$ac_val;;
  1302. esac
  1303. # Be sure to have absolute directory names.
  1304. case $ac_val in
  1305. [\\/$]* | ?:[\\/]* ) continue;;
  1306. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1307. esac
  1308. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1309. done
  1310. # There might be people who depend on the old broken behavior: `$host'
  1311. # used to hold the argument of --host etc.
  1312. # FIXME: To remove some day.
  1313. build=$build_alias
  1314. host=$host_alias
  1315. target=$target_alias
  1316. # FIXME: To remove some day.
  1317. if test "x$host_alias" != x; then
  1318. if test "x$build_alias" = x; then
  1319. cross_compiling=maybe
  1320. elif test "x$build_alias" != "x$host_alias"; then
  1321. cross_compiling=yes
  1322. fi
  1323. fi
  1324. ac_tool_prefix=
  1325. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1326. test "$silent" = yes && exec 6>/dev/null
  1327. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1328. ac_ls_di=`ls -di .` &&
  1329. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1330. as_fn_error $? "working directory cannot be determined"
  1331. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1332. as_fn_error $? "pwd does not report name of working directory"
  1333. # Find the source files, if location was not specified.
  1334. if test -z "$srcdir"; then
  1335. ac_srcdir_defaulted=yes
  1336. # Try the directory containing this script, then the parent directory.
  1337. ac_confdir=`$as_dirname -- "$as_myself" ||
  1338. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1339. X"$as_myself" : 'X\(//\)[^/]' \| \
  1340. X"$as_myself" : 'X\(//\)$' \| \
  1341. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1342. printf "%s\n" X"$as_myself" |
  1343. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1344. s//\1/
  1345. q
  1346. }
  1347. /^X\(\/\/\)[^/].*/{
  1348. s//\1/
  1349. q
  1350. }
  1351. /^X\(\/\/\)$/{
  1352. s//\1/
  1353. q
  1354. }
  1355. /^X\(\/\).*/{
  1356. s//\1/
  1357. q
  1358. }
  1359. s/.*/./; q'`
  1360. srcdir=$ac_confdir
  1361. if test ! -r "$srcdir/$ac_unique_file"; then
  1362. srcdir=..
  1363. fi
  1364. else
  1365. ac_srcdir_defaulted=no
  1366. fi
  1367. if test ! -r "$srcdir/$ac_unique_file"; then
  1368. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1369. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1370. fi
  1371. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1372. ac_abs_confdir=`(
  1373. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1374. pwd)`
  1375. # When building in place, set srcdir=.
  1376. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1377. srcdir=.
  1378. fi
  1379. # Remove unnecessary trailing slashes from srcdir.
  1380. # Double slashes in file names in object file debugging info
  1381. # mess up M-x gdb in Emacs.
  1382. case $srcdir in
  1383. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1384. esac
  1385. for ac_var in $ac_precious_vars; do
  1386. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1387. eval ac_env_${ac_var}_value=\$${ac_var}
  1388. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1389. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1390. done
  1391. #
  1392. # Report the --help message.
  1393. #
  1394. if test "$ac_init_help" = "long"; then
  1395. # Omit some internal or obsolete options to make the list less imposing.
  1396. # This message is too long to be a string in the A/UX 3.1 sh.
  1397. cat <<_ACEOF
  1398. \`configure' configures this package to adapt to many kinds of systems.
  1399. Usage: $0 [OPTION]... [VAR=VALUE]...
  1400. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1401. VAR=VALUE. See below for descriptions of some of the useful variables.
  1402. Defaults for the options are specified in brackets.
  1403. Configuration:
  1404. -h, --help display this help and exit
  1405. --help=short display options specific to this package
  1406. --help=recursive display the short help of all the included packages
  1407. -V, --version display version information and exit
  1408. -q, --quiet, --silent do not print \`checking ...' messages
  1409. --cache-file=FILE cache test results in FILE [disabled]
  1410. -C, --config-cache alias for \`--cache-file=config.cache'
  1411. -n, --no-create do not create output files
  1412. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1413. Installation directories:
  1414. --prefix=PREFIX install architecture-independent files in PREFIX
  1415. [$ac_default_prefix]
  1416. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1417. [PREFIX]
  1418. By default, \`make install' will install all the files in
  1419. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1420. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1421. for instance \`--prefix=\$HOME'.
  1422. For better control, use the options below.
  1423. Fine tuning of the installation directories:
  1424. --bindir=DIR user executables [EPREFIX/bin]
  1425. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1426. --libexecdir=DIR program executables [EPREFIX/libexec]
  1427. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1428. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1429. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1430. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  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/PACKAGE]
  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. X features:
  1447. --x-includes=DIR X include files are in DIR
  1448. --x-libraries=DIR X library files are in DIR
  1449. System types:
  1450. --build=BUILD configure for building on BUILD [guessed]
  1451. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1452. _ACEOF
  1453. fi
  1454. if test -n "$ac_init_help"; then
  1455. cat <<\_ACEOF
  1456. Optional Features:
  1457. --disable-option-checking ignore unrecognized --enable/--with options
  1458. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1459. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1460. --enable-shared[=PKGS] build shared libraries [default=yes]
  1461. --enable-static[=PKGS] build static libraries [default=yes]
  1462. --enable-fast-install[=PKGS]
  1463. optimize for fast installation [default=yes]
  1464. --disable-libtool-lock avoid locking (might break parallel builds)
  1465. --disable-largefile omit support for large files
  1466. --enable-assertions Enable internal sanity checks
  1467. (auto/disabled/release/enabled/paranoid)
  1468. [default=auto]
  1469. --enable-dependency-tracking
  1470. Use gcc -MMD -MT dependency tracking [default=yes]
  1471. --enable-libc Use the system C library [default=yes]
  1472. --enable-system-iconv Use iconv() from system-installed libraries
  1473. [default=yes]
  1474. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1475. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1476. --enable-audio Enable the audio subsystem [default=yes]
  1477. --enable-video Enable the video subsystem [default=yes]
  1478. --enable-render Enable the render subsystem [default=yes]
  1479. --enable-events Enable the events subsystem [default=yes]
  1480. --enable-joystick Enable the joystick subsystem [default=yes]
  1481. --enable-haptic Enable the haptic (force feedback) subsystem
  1482. [default=yes]
  1483. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1484. --enable-sensor Enable the sensor subsystem [default=yes]
  1485. --enable-power Enable the power subsystem [default=yes]
  1486. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1487. --enable-timers Enable the timer subsystem [default=yes]
  1488. --enable-file Enable the file subsystem [default=yes]
  1489. --enable-misc Enable the misc subsystem [default=yes]
  1490. --enable-locale Enable the locale subsystem [default=yes]
  1491. --enable-loadso Enable the shared object loading subsystem
  1492. [default=yes]
  1493. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1494. --enable-assembly Enable assembly routines [default=yes]
  1495. --enable-ssemath Allow GCC to use SSE floating point math
  1496. [default=maybe]
  1497. --enable-mmx use MMX assembly routines [default=yes]
  1498. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1499. --enable-sse use SSE assembly routines [default=yes]
  1500. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1501. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1502. --enable-altivec use Altivec assembly routines [default=yes]
  1503. --enable-lsx use LSX assembly routines [default=yes]
  1504. --enable-lasx use LASX assembly routines [default=yes]
  1505. --enable-oss support the OSS audio API [default=maybe]
  1506. --enable-alsa support the ALSA audio API [default=yes]
  1507. --disable-alsatest Do not try to compile and run a test Alsa program
  1508. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1509. --enable-jack use JACK audio [default=yes]
  1510. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1511. --enable-pipewire use Pipewire audio [default=yes]
  1512. --enable-pipewire-shared
  1513. dynamically load Pipewire support [default=yes]
  1514. --enable-pulseaudio use PulseAudio [default=yes]
  1515. --enable-pulseaudio-shared
  1516. dynamically load PulseAudio support [default=yes]
  1517. --enable-sndio support the sndio audio API [default=yes]
  1518. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1519. --enable-diskaudio support the disk writer audio driver [default=yes]
  1520. --enable-dummyaudio support the dummy audio driver [default=yes]
  1521. --enable-libsamplerate use libsamplerate for audio rate conversion
  1522. [default=yes]
  1523. --enable-libsamplerate-shared
  1524. dynamically load libsamplerate [default=yes]
  1525. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1526. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1527. --enable-werror treat warnings as errors [default=no]
  1528. --enable-video-wayland use Wayland video driver [default=yes]
  1529. --enable-video-wayland-qt-touch
  1530. QtWayland server support for Wayland video driver
  1531. [default=yes]
  1532. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1533. --enable-libdecor use libdecor for Wayland client-side decorations
  1534. [default=yes]
  1535. --enable-libdecor-shared
  1536. dynamically load libdecor [default=yes]
  1537. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1538. --enable-video-x11 use X11 video driver [default=maybe]
  1539. --enable-x11-shared dynamically load X11 support [default=maybe]
  1540. --enable-video-x11-xcursor
  1541. enable X11 Xcursor support [default=yes]
  1542. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1543. --enable-video-x11-xinput
  1544. enable X11 XInput extension for manymouse, tablets,
  1545. etc [default=yes]
  1546. --enable-video-x11-xfixes
  1547. enable X11 Xfixes support [default=yes]
  1548. --enable-video-x11-xrandr
  1549. enable X11 Xrandr extension for fullscreen
  1550. [default=yes]
  1551. --enable-video-x11-scrnsaver
  1552. enable X11 screensaver extension [default=yes]
  1553. --enable-video-x11-xshape
  1554. enable X11 XShape support [default=yes]
  1555. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1556. --enable-video-cocoa use Cocoa video driver [default=yes]
  1557. --enable-video-metal include Metal support [default=yes]
  1558. --enable-render-metal enable the Metal render driver [default=yes]
  1559. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1560. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1561. --enable-video-dummy use dummy video driver [default=yes]
  1562. --enable-video-offscreen
  1563. use offscreen video driver [default=yes]
  1564. --enable-video-opengl include OpenGL support [default=yes]
  1565. --enable-video-opengles include OpenGL ES support [default=yes]
  1566. --enable-video-opengles1
  1567. include OpenGL ES 1.1 support [default=yes]
  1568. --enable-video-opengles2
  1569. include OpenGL ES 2.0 support [default=yes]
  1570. --enable-video-vulkan include Vulkan support [default=yes]
  1571. --enable-libudev enable libudev support [default=yes]
  1572. --enable-dbus enable D-Bus support [default=yes]
  1573. --enable-ime enable IME support [default=yes]
  1574. --enable-ibus enable IBus support [default=yes]
  1575. --enable-fcitx enable fcitx support [default=yes]
  1576. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1577. --enable-pthreads use POSIX threads for multi-threading
  1578. [default=maybe]
  1579. --enable-pthread-sem use pthread semaphores [default=maybe]
  1580. --enable-directx use DirectX for Windows audio/video [default=yes]
  1581. --enable-xinput use Xinput for Windows [default=yes]
  1582. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1583. --enable-hidapi-joystick
  1584. use HIDAPI for low level joystick drivers
  1585. [default=yes]
  1586. --enable-hidapi-libusb use libusb for low level joystick drivers
  1587. [default=maybe]
  1588. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1589. UNIX [default=yes]
  1590. --enable-rpath use an rpath when linking SDL [default=yes]
  1591. --enable-backgrounding-signal
  1592. number to use for magic backgrounding signal or 'no'
  1593. [default=no]
  1594. --enable-foregrounding-signal
  1595. number to use for magic foregrounding signal or 'no'
  1596. [default=no]
  1597. --enable-joystick-virtual
  1598. enable virtual joystick APIs [default=yes]
  1599. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1600. --enable-sdl3-config Install sdl3-config [default=yes]
  1601. --enable-vendor-info=STRING
  1602. Add vendor info to SDL_REVISION
  1603. Optional Packages:
  1604. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1605. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1606. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1607. both]
  1608. --with-aix-soname=aix|svr4|both
  1609. shared library versioning (aka "SONAME") variant to
  1610. provide on AIX, [default=aix].
  1611. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1612. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1613. compiler's sysroot if not specified).
  1614. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1615. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1616. --with-x use the X Window System
  1617. Some influential environment variables:
  1618. CC C compiler command
  1619. CFLAGS C compiler flags
  1620. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1621. nonstandard directory <lib dir>
  1622. LIBS libraries to pass to the linker, e.g. -l<library>
  1623. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1624. you have headers in a nonstandard directory <include dir>
  1625. LT_SYS_LIBRARY_PATH
  1626. User-defined run-time library search path.
  1627. CXX C++ compiler command
  1628. CXXFLAGS C++ compiler flags
  1629. CXXCPP C++ preprocessor
  1630. PKG_CONFIG path to pkg-config utility
  1631. PKG_CONFIG_PATH
  1632. directories to add to pkg-config's search path
  1633. PKG_CONFIG_LIBDIR
  1634. path overriding pkg-config's built-in search path
  1635. CPP C preprocessor
  1636. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1637. JACK_LIBS linker flags for JACK, overriding pkg-config
  1638. PIPEWIRE_CFLAGS
  1639. C compiler flags for PIPEWIRE, overriding pkg-config
  1640. PIPEWIRE_LIBS
  1641. linker flags for PIPEWIRE, overriding pkg-config
  1642. PULSEAUDIO_CFLAGS
  1643. C compiler flags for PULSEAUDIO, overriding pkg-config
  1644. PULSEAUDIO_LIBS
  1645. linker flags for PULSEAUDIO, overriding pkg-config
  1646. SNDIO_CFLAGS
  1647. C compiler flags for SNDIO, overriding pkg-config
  1648. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1649. DECOR_CFLAGS
  1650. C compiler flags for DECOR, overriding pkg-config
  1651. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1652. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1653. RPI_LIBS linker flags for RPI, overriding pkg-config
  1654. XMKMF Path to xmkmf, Makefile generator for X Window System
  1655. LIBDRM_CFLAGS
  1656. C compiler flags for LIBDRM, overriding pkg-config
  1657. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1658. LIBGBM_CFLAGS
  1659. C compiler flags for LIBGBM, overriding pkg-config
  1660. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1661. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1662. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1663. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1664. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1665. LIBUSB_CFLAGS
  1666. C compiler flags for LIBUSB, overriding pkg-config
  1667. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1668. Use these variables to override the choices made by `configure' or to help
  1669. it to find libraries and programs with nonstandard names/locations.
  1670. Report bugs to the package provider.
  1671. _ACEOF
  1672. ac_status=$?
  1673. fi
  1674. if test "$ac_init_help" = "recursive"; then
  1675. # If there are subdirs, report their specific --help.
  1676. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1677. test -d "$ac_dir" ||
  1678. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1679. continue
  1680. ac_builddir=.
  1681. case "$ac_dir" in
  1682. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1683. *)
  1684. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1685. # A ".." for each directory in $ac_dir_suffix.
  1686. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1687. case $ac_top_builddir_sub in
  1688. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1689. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1690. esac ;;
  1691. esac
  1692. ac_abs_top_builddir=$ac_pwd
  1693. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1694. # for backward compatibility:
  1695. ac_top_builddir=$ac_top_build_prefix
  1696. case $srcdir in
  1697. .) # We are building in place.
  1698. ac_srcdir=.
  1699. ac_top_srcdir=$ac_top_builddir_sub
  1700. ac_abs_top_srcdir=$ac_pwd ;;
  1701. [\\/]* | ?:[\\/]* ) # Absolute name.
  1702. ac_srcdir=$srcdir$ac_dir_suffix;
  1703. ac_top_srcdir=$srcdir
  1704. ac_abs_top_srcdir=$srcdir ;;
  1705. *) # Relative name.
  1706. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1707. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1708. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1709. esac
  1710. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1711. cd "$ac_dir" || { ac_status=$?; continue; }
  1712. # Check for configure.gnu first; this name is used for a wrapper for
  1713. # Metaconfig's "Configure" on case-insensitive file systems.
  1714. if test -f "$ac_srcdir/configure.gnu"; then
  1715. echo &&
  1716. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1717. elif test -f "$ac_srcdir/configure"; then
  1718. echo &&
  1719. $SHELL "$ac_srcdir/configure" --help=recursive
  1720. else
  1721. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1722. fi || ac_status=$?
  1723. cd "$ac_pwd" || { ac_status=$?; break; }
  1724. done
  1725. fi
  1726. test -n "$ac_init_help" && exit $ac_status
  1727. if $ac_init_version; then
  1728. cat <<\_ACEOF
  1729. configure
  1730. generated by GNU Autoconf 2.71
  1731. Copyright (C) 2021 Free Software Foundation, Inc.
  1732. This configure script is free software; the Free Software Foundation
  1733. gives unlimited permission to copy, distribute and modify it.
  1734. _ACEOF
  1735. exit
  1736. fi
  1737. ## ------------------------ ##
  1738. ## Autoconf initialization. ##
  1739. ## ------------------------ ##
  1740. # ac_fn_c_try_compile LINENO
  1741. # --------------------------
  1742. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1743. ac_fn_c_try_compile ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. rm -f conftest.$ac_objext conftest.beam
  1747. if { { ac_try="$ac_compile"
  1748. case "(($ac_try" in
  1749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1750. *) ac_try_echo=$ac_try;;
  1751. esac
  1752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1753. printf "%s\n" "$ac_try_echo"; } >&5
  1754. (eval "$ac_compile") 2>conftest.err
  1755. ac_status=$?
  1756. if test -s conftest.err; then
  1757. grep -v '^ *+' conftest.err >conftest.er1
  1758. cat conftest.er1 >&5
  1759. mv -f conftest.er1 conftest.err
  1760. fi
  1761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1762. test $ac_status = 0; } && {
  1763. test -z "$ac_c_werror_flag" ||
  1764. test ! -s conftest.err
  1765. } && test -s conftest.$ac_objext
  1766. then :
  1767. ac_retval=0
  1768. else $as_nop
  1769. printf "%s\n" "$as_me: failed program was:" >&5
  1770. sed 's/^/| /' conftest.$ac_ext >&5
  1771. ac_retval=1
  1772. fi
  1773. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1774. as_fn_set_status $ac_retval
  1775. } # ac_fn_c_try_compile
  1776. # ac_fn_c_try_link LINENO
  1777. # -----------------------
  1778. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1779. ac_fn_c_try_link ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1783. if { { ac_try="$ac_link"
  1784. case "(($ac_try" in
  1785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1786. *) ac_try_echo=$ac_try;;
  1787. esac
  1788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1789. printf "%s\n" "$ac_try_echo"; } >&5
  1790. (eval "$ac_link") 2>conftest.err
  1791. ac_status=$?
  1792. if test -s conftest.err; then
  1793. grep -v '^ *+' conftest.err >conftest.er1
  1794. cat conftest.er1 >&5
  1795. mv -f conftest.er1 conftest.err
  1796. fi
  1797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1798. test $ac_status = 0; } && {
  1799. test -z "$ac_c_werror_flag" ||
  1800. test ! -s conftest.err
  1801. } && test -s conftest$ac_exeext && {
  1802. test "$cross_compiling" = yes ||
  1803. test -x conftest$ac_exeext
  1804. }
  1805. then :
  1806. ac_retval=0
  1807. else $as_nop
  1808. printf "%s\n" "$as_me: failed program was:" >&5
  1809. sed 's/^/| /' conftest.$ac_ext >&5
  1810. ac_retval=1
  1811. fi
  1812. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1813. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1814. # interfere with the next link command; also delete a directory that is
  1815. # left behind by Apple's compiler. We do this before executing the actions.
  1816. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1817. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1818. as_fn_set_status $ac_retval
  1819. } # ac_fn_c_try_link
  1820. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1821. # -------------------------------------------------------
  1822. # Tests whether HEADER exists and can be compiled using the include files in
  1823. # INCLUDES, setting the cache variable VAR accordingly.
  1824. ac_fn_c_check_header_compile ()
  1825. {
  1826. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1828. printf %s "checking for $2... " >&6; }
  1829. if eval test \${$3+y}
  1830. then :
  1831. printf %s "(cached) " >&6
  1832. else $as_nop
  1833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1834. /* end confdefs.h. */
  1835. $4
  1836. #include <$2>
  1837. _ACEOF
  1838. if ac_fn_c_try_compile "$LINENO"
  1839. then :
  1840. eval "$3=yes"
  1841. else $as_nop
  1842. eval "$3=no"
  1843. fi
  1844. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1845. fi
  1846. eval ac_res=\$$3
  1847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1848. printf "%s\n" "$ac_res" >&6; }
  1849. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1850. } # ac_fn_c_check_header_compile
  1851. # ac_fn_c_check_func LINENO FUNC VAR
  1852. # ----------------------------------
  1853. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1854. ac_fn_c_check_func ()
  1855. {
  1856. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1858. printf %s "checking for $2... " >&6; }
  1859. if eval test \${$3+y}
  1860. then :
  1861. printf %s "(cached) " >&6
  1862. else $as_nop
  1863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1864. /* end confdefs.h. */
  1865. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1866. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1867. #define $2 innocuous_$2
  1868. /* System header to define __stub macros and hopefully few prototypes,
  1869. which can conflict with char $2 (); below. */
  1870. #include <limits.h>
  1871. #undef $2
  1872. /* Override any GCC internal prototype to avoid an error.
  1873. Use char because int might match the return type of a GCC
  1874. builtin and then its argument prototype would still apply. */
  1875. #ifdef __cplusplus
  1876. extern "C"
  1877. #endif
  1878. char $2 ();
  1879. /* The GNU C library defines this for functions which it implements
  1880. to always fail with ENOSYS. Some functions are actually named
  1881. something starting with __ and the normal name is an alias. */
  1882. #if defined __stub_$2 || defined __stub___$2
  1883. choke me
  1884. #endif
  1885. int
  1886. main (void)
  1887. {
  1888. return $2 ();
  1889. ;
  1890. return 0;
  1891. }
  1892. _ACEOF
  1893. if ac_fn_c_try_link "$LINENO"
  1894. then :
  1895. eval "$3=yes"
  1896. else $as_nop
  1897. eval "$3=no"
  1898. fi
  1899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1900. conftest$ac_exeext conftest.$ac_ext
  1901. fi
  1902. eval ac_res=\$$3
  1903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1904. printf "%s\n" "$ac_res" >&6; }
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. } # ac_fn_c_check_func
  1907. # ac_fn_cxx_try_compile LINENO
  1908. # ----------------------------
  1909. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1910. ac_fn_cxx_try_compile ()
  1911. {
  1912. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1913. rm -f conftest.$ac_objext conftest.beam
  1914. if { { ac_try="$ac_compile"
  1915. case "(($ac_try" in
  1916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1917. *) ac_try_echo=$ac_try;;
  1918. esac
  1919. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1920. printf "%s\n" "$ac_try_echo"; } >&5
  1921. (eval "$ac_compile") 2>conftest.err
  1922. ac_status=$?
  1923. if test -s conftest.err; then
  1924. grep -v '^ *+' conftest.err >conftest.er1
  1925. cat conftest.er1 >&5
  1926. mv -f conftest.er1 conftest.err
  1927. fi
  1928. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1929. test $ac_status = 0; } && {
  1930. test -z "$ac_cxx_werror_flag" ||
  1931. test ! -s conftest.err
  1932. } && test -s conftest.$ac_objext
  1933. then :
  1934. ac_retval=0
  1935. else $as_nop
  1936. printf "%s\n" "$as_me: failed program was:" >&5
  1937. sed 's/^/| /' conftest.$ac_ext >&5
  1938. ac_retval=1
  1939. fi
  1940. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1941. as_fn_set_status $ac_retval
  1942. } # ac_fn_cxx_try_compile
  1943. # ac_fn_cxx_try_cpp LINENO
  1944. # ------------------------
  1945. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1946. ac_fn_cxx_try_cpp ()
  1947. {
  1948. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1949. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1950. case "(($ac_try" in
  1951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1952. *) ac_try_echo=$ac_try;;
  1953. esac
  1954. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1955. printf "%s\n" "$ac_try_echo"; } >&5
  1956. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1957. ac_status=$?
  1958. if test -s conftest.err; then
  1959. grep -v '^ *+' conftest.err >conftest.er1
  1960. cat conftest.er1 >&5
  1961. mv -f conftest.er1 conftest.err
  1962. fi
  1963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1964. test $ac_status = 0; } > conftest.i && {
  1965. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1966. test ! -s conftest.err
  1967. }
  1968. then :
  1969. ac_retval=0
  1970. else $as_nop
  1971. printf "%s\n" "$as_me: failed program was:" >&5
  1972. sed 's/^/| /' conftest.$ac_ext >&5
  1973. ac_retval=1
  1974. fi
  1975. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1976. as_fn_set_status $ac_retval
  1977. } # ac_fn_cxx_try_cpp
  1978. # ac_fn_cxx_try_link LINENO
  1979. # -------------------------
  1980. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1981. ac_fn_cxx_try_link ()
  1982. {
  1983. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1984. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1985. if { { ac_try="$ac_link"
  1986. case "(($ac_try" in
  1987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1988. *) ac_try_echo=$ac_try;;
  1989. esac
  1990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1991. printf "%s\n" "$ac_try_echo"; } >&5
  1992. (eval "$ac_link") 2>conftest.err
  1993. ac_status=$?
  1994. if test -s conftest.err; then
  1995. grep -v '^ *+' conftest.err >conftest.er1
  1996. cat conftest.er1 >&5
  1997. mv -f conftest.er1 conftest.err
  1998. fi
  1999. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2000. test $ac_status = 0; } && {
  2001. test -z "$ac_cxx_werror_flag" ||
  2002. test ! -s conftest.err
  2003. } && test -s conftest$ac_exeext && {
  2004. test "$cross_compiling" = yes ||
  2005. test -x conftest$ac_exeext
  2006. }
  2007. then :
  2008. ac_retval=0
  2009. else $as_nop
  2010. printf "%s\n" "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_retval=1
  2013. fi
  2014. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2015. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2016. # interfere with the next link command; also delete a directory that is
  2017. # left behind by Apple's compiler. We do this before executing the actions.
  2018. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2019. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2020. as_fn_set_status $ac_retval
  2021. } # ac_fn_cxx_try_link
  2022. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2023. # -------------------------------------------
  2024. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2025. # variable VAR accordingly.
  2026. ac_fn_c_check_type ()
  2027. {
  2028. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2030. printf %s "checking for $2... " >&6; }
  2031. if eval test \${$3+y}
  2032. then :
  2033. printf %s "(cached) " >&6
  2034. else $as_nop
  2035. eval "$3=no"
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $4
  2039. int
  2040. main (void)
  2041. {
  2042. if (sizeof ($2))
  2043. return 0;
  2044. ;
  2045. return 0;
  2046. }
  2047. _ACEOF
  2048. if ac_fn_c_try_compile "$LINENO"
  2049. then :
  2050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2051. /* end confdefs.h. */
  2052. $4
  2053. int
  2054. main (void)
  2055. {
  2056. if (sizeof (($2)))
  2057. return 0;
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_c_try_compile "$LINENO"
  2063. then :
  2064. else $as_nop
  2065. eval "$3=yes"
  2066. fi
  2067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2068. fi
  2069. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2070. fi
  2071. eval ac_res=\$$3
  2072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2073. printf "%s\n" "$ac_res" >&6; }
  2074. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2075. } # ac_fn_c_check_type
  2076. # ac_fn_c_try_cpp LINENO
  2077. # ----------------------
  2078. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2079. ac_fn_c_try_cpp ()
  2080. {
  2081. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2082. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2083. case "(($ac_try" in
  2084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2085. *) ac_try_echo=$ac_try;;
  2086. esac
  2087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2088. printf "%s\n" "$ac_try_echo"; } >&5
  2089. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2090. ac_status=$?
  2091. if test -s conftest.err; then
  2092. grep -v '^ *+' conftest.err >conftest.er1
  2093. cat conftest.er1 >&5
  2094. mv -f conftest.er1 conftest.err
  2095. fi
  2096. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2097. test $ac_status = 0; } > conftest.i && {
  2098. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2099. test ! -s conftest.err
  2100. }
  2101. then :
  2102. ac_retval=0
  2103. else $as_nop
  2104. printf "%s\n" "$as_me: failed program was:" >&5
  2105. sed 's/^/| /' conftest.$ac_ext >&5
  2106. ac_retval=1
  2107. fi
  2108. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2109. as_fn_set_status $ac_retval
  2110. } # ac_fn_c_try_cpp
  2111. # ac_fn_c_try_run LINENO
  2112. # ----------------------
  2113. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2114. # executables *can* be run.
  2115. ac_fn_c_try_run ()
  2116. {
  2117. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2118. if { { ac_try="$ac_link"
  2119. case "(($ac_try" in
  2120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2121. *) ac_try_echo=$ac_try;;
  2122. esac
  2123. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2124. printf "%s\n" "$ac_try_echo"; } >&5
  2125. (eval "$ac_link") 2>&5
  2126. ac_status=$?
  2127. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2128. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2129. { { case "(($ac_try" in
  2130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2131. *) ac_try_echo=$ac_try;;
  2132. esac
  2133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2134. printf "%s\n" "$ac_try_echo"; } >&5
  2135. (eval "$ac_try") 2>&5
  2136. ac_status=$?
  2137. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2138. test $ac_status = 0; }; }
  2139. then :
  2140. ac_retval=0
  2141. else $as_nop
  2142. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2143. printf "%s\n" "$as_me: failed program was:" >&5
  2144. sed 's/^/| /' conftest.$ac_ext >&5
  2145. ac_retval=$ac_status
  2146. fi
  2147. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2148. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2149. as_fn_set_status $ac_retval
  2150. } # ac_fn_c_try_run
  2151. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2152. # ----------------------------------------------------
  2153. # Tries to find if the field MEMBER exists in type AGGR, after including
  2154. # INCLUDES, setting cache variable VAR accordingly.
  2155. ac_fn_c_check_member ()
  2156. {
  2157. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2159. printf %s "checking for $2.$3... " >&6; }
  2160. if eval test \${$4+y}
  2161. then :
  2162. printf %s "(cached) " >&6
  2163. else $as_nop
  2164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2165. /* end confdefs.h. */
  2166. $5
  2167. int
  2168. main (void)
  2169. {
  2170. static $2 ac_aggr;
  2171. if (ac_aggr.$3)
  2172. return 0;
  2173. ;
  2174. return 0;
  2175. }
  2176. _ACEOF
  2177. if ac_fn_c_try_compile "$LINENO"
  2178. then :
  2179. eval "$4=yes"
  2180. else $as_nop
  2181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2182. /* end confdefs.h. */
  2183. $5
  2184. int
  2185. main (void)
  2186. {
  2187. static $2 ac_aggr;
  2188. if (sizeof ac_aggr.$3)
  2189. return 0;
  2190. ;
  2191. return 0;
  2192. }
  2193. _ACEOF
  2194. if ac_fn_c_try_compile "$LINENO"
  2195. then :
  2196. eval "$4=yes"
  2197. else $as_nop
  2198. eval "$4=no"
  2199. fi
  2200. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2201. fi
  2202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2203. fi
  2204. eval ac_res=\$$4
  2205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2206. printf "%s\n" "$ac_res" >&6; }
  2207. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2208. } # ac_fn_c_check_member
  2209. ac_configure_args_raw=
  2210. for ac_arg
  2211. do
  2212. case $ac_arg in
  2213. *\'*)
  2214. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2215. esac
  2216. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2217. done
  2218. case $ac_configure_args_raw in
  2219. *$as_nl*)
  2220. ac_safe_unquote= ;;
  2221. *)
  2222. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2223. ac_unsafe_a="$ac_unsafe_z#~"
  2224. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2225. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2226. esac
  2227. cat >config.log <<_ACEOF
  2228. This file contains any messages produced by compilers while
  2229. running configure, to aid debugging if configure makes a mistake.
  2230. It was created by $as_me, which was
  2231. generated by GNU Autoconf 2.71. Invocation command line was
  2232. $ $0$ac_configure_args_raw
  2233. _ACEOF
  2234. exec 5>>config.log
  2235. {
  2236. cat <<_ASUNAME
  2237. ## --------- ##
  2238. ## Platform. ##
  2239. ## --------- ##
  2240. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2241. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2242. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2243. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2244. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2245. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2246. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2247. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2248. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2249. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2250. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2251. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2252. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2253. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2254. _ASUNAME
  2255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2256. for as_dir in $PATH
  2257. do
  2258. IFS=$as_save_IFS
  2259. case $as_dir in #(((
  2260. '') as_dir=./ ;;
  2261. */) ;;
  2262. *) as_dir=$as_dir/ ;;
  2263. esac
  2264. printf "%s\n" "PATH: $as_dir"
  2265. done
  2266. IFS=$as_save_IFS
  2267. } >&5
  2268. cat >&5 <<_ACEOF
  2269. ## ----------- ##
  2270. ## Core tests. ##
  2271. ## ----------- ##
  2272. _ACEOF
  2273. # Keep a trace of the command line.
  2274. # Strip out --no-create and --no-recursion so they do not pile up.
  2275. # Strip out --silent because we don't want to record it for future runs.
  2276. # Also quote any args containing shell meta-characters.
  2277. # Make two passes to allow for proper duplicate-argument suppression.
  2278. ac_configure_args=
  2279. ac_configure_args0=
  2280. ac_configure_args1=
  2281. ac_must_keep_next=false
  2282. for ac_pass in 1 2
  2283. do
  2284. for ac_arg
  2285. do
  2286. case $ac_arg in
  2287. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2288. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2289. | -silent | --silent | --silen | --sile | --sil)
  2290. continue ;;
  2291. *\'*)
  2292. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2293. esac
  2294. case $ac_pass in
  2295. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2296. 2)
  2297. as_fn_append ac_configure_args1 " '$ac_arg'"
  2298. if test $ac_must_keep_next = true; then
  2299. ac_must_keep_next=false # Got value, back to normal.
  2300. else
  2301. case $ac_arg in
  2302. *=* | --config-cache | -C | -disable-* | --disable-* \
  2303. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2304. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2305. | -with-* | --with-* | -without-* | --without-* | --x)
  2306. case "$ac_configure_args0 " in
  2307. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2308. esac
  2309. ;;
  2310. -* ) ac_must_keep_next=true ;;
  2311. esac
  2312. fi
  2313. as_fn_append ac_configure_args " '$ac_arg'"
  2314. ;;
  2315. esac
  2316. done
  2317. done
  2318. { ac_configure_args0=; unset ac_configure_args0;}
  2319. { ac_configure_args1=; unset ac_configure_args1;}
  2320. # When interrupted or exit'd, cleanup temporary files, and complete
  2321. # config.log. We remove comments because anyway the quotes in there
  2322. # would cause problems or look ugly.
  2323. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2324. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2325. trap 'exit_status=$?
  2326. # Sanitize IFS.
  2327. IFS=" "" $as_nl"
  2328. # Save into config.log some information that might help in debugging.
  2329. {
  2330. echo
  2331. printf "%s\n" "## ---------------- ##
  2332. ## Cache variables. ##
  2333. ## ---------------- ##"
  2334. echo
  2335. # The following way of writing the cache mishandles newlines in values,
  2336. (
  2337. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2338. eval ac_val=\$$ac_var
  2339. case $ac_val in #(
  2340. *${as_nl}*)
  2341. case $ac_var in #(
  2342. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2343. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2344. esac
  2345. case $ac_var in #(
  2346. _ | IFS | as_nl) ;; #(
  2347. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2348. *) { eval $ac_var=; unset $ac_var;} ;;
  2349. esac ;;
  2350. esac
  2351. done
  2352. (set) 2>&1 |
  2353. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2354. *${as_nl}ac_space=\ *)
  2355. sed -n \
  2356. "s/'\''/'\''\\\\'\'''\''/g;
  2357. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2358. ;; #(
  2359. *)
  2360. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2361. ;;
  2362. esac |
  2363. sort
  2364. )
  2365. echo
  2366. printf "%s\n" "## ----------------- ##
  2367. ## Output variables. ##
  2368. ## ----------------- ##"
  2369. echo
  2370. for ac_var in $ac_subst_vars
  2371. do
  2372. eval ac_val=\$$ac_var
  2373. case $ac_val in
  2374. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2375. esac
  2376. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2377. done | sort
  2378. echo
  2379. if test -n "$ac_subst_files"; then
  2380. printf "%s\n" "## ------------------- ##
  2381. ## File substitutions. ##
  2382. ## ------------------- ##"
  2383. echo
  2384. for ac_var in $ac_subst_files
  2385. do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in
  2388. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2389. esac
  2390. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2391. done | sort
  2392. echo
  2393. fi
  2394. if test -s confdefs.h; then
  2395. printf "%s\n" "## ----------- ##
  2396. ## confdefs.h. ##
  2397. ## ----------- ##"
  2398. echo
  2399. cat confdefs.h
  2400. echo
  2401. fi
  2402. test "$ac_signal" != 0 &&
  2403. printf "%s\n" "$as_me: caught signal $ac_signal"
  2404. printf "%s\n" "$as_me: exit $exit_status"
  2405. } >&5
  2406. rm -f core *.core core.conftest.* &&
  2407. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2408. exit $exit_status
  2409. ' 0
  2410. for ac_signal in 1 2 13 15; do
  2411. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2412. done
  2413. ac_signal=0
  2414. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2415. rm -f -r conftest* confdefs.h
  2416. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2417. # Predefined preprocessor variables.
  2418. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2419. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2420. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2421. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2422. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2423. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2424. # Let the site file select an alternate cache file if it wants to.
  2425. # Prefer an explicitly selected file to automatically selected ones.
  2426. if test -n "$CONFIG_SITE"; then
  2427. ac_site_files="$CONFIG_SITE"
  2428. elif test "x$prefix" != xNONE; then
  2429. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2430. else
  2431. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2432. fi
  2433. for ac_site_file in $ac_site_files
  2434. do
  2435. case $ac_site_file in #(
  2436. */*) :
  2437. ;; #(
  2438. *) :
  2439. ac_site_file=./$ac_site_file ;;
  2440. esac
  2441. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2443. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2444. sed 's/^/| /' "$ac_site_file" >&5
  2445. . "$ac_site_file" \
  2446. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2448. as_fn_error $? "failed to load site script $ac_site_file
  2449. See \`config.log' for more details" "$LINENO" 5; }
  2450. fi
  2451. done
  2452. if test -r "$cache_file"; then
  2453. # Some versions of bash will fail to source /dev/null (special files
  2454. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2455. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2457. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2458. case $cache_file in
  2459. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2460. *) . "./$cache_file";;
  2461. esac
  2462. fi
  2463. else
  2464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2465. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2466. >$cache_file
  2467. fi
  2468. # Test code for whether the C compiler supports C89 (global declarations)
  2469. ac_c_conftest_c89_globals='
  2470. /* Does the compiler advertise C89 conformance?
  2471. Do not test the value of __STDC__, because some compilers set it to 0
  2472. while being otherwise adequately conformant. */
  2473. #if !defined __STDC__
  2474. # error "Compiler does not advertise C89 conformance"
  2475. #endif
  2476. #include <stddef.h>
  2477. #include <stdarg.h>
  2478. struct stat;
  2479. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2480. struct buf { int x; };
  2481. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2482. static char *e (p, i)
  2483. char **p;
  2484. int i;
  2485. {
  2486. return p[i];
  2487. }
  2488. static char *f (char * (*g) (char **, int), char **p, ...)
  2489. {
  2490. char *s;
  2491. va_list v;
  2492. va_start (v,p);
  2493. s = g (p, va_arg (v,int));
  2494. va_end (v);
  2495. return s;
  2496. }
  2497. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2498. function prototypes and stuff, but not \xHH hex character constants.
  2499. These do not provoke an error unfortunately, instead are silently treated
  2500. as an "x". The following induces an error, until -std is added to get
  2501. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2502. array size at least. It is necessary to write \x00 == 0 to get something
  2503. that is true only with -std. */
  2504. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2505. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2506. inside strings and character constants. */
  2507. #define FOO(x) '\''x'\''
  2508. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2509. int test (int i, double x);
  2510. struct s1 {int (*f) (int a);};
  2511. struct s2 {int (*f) (double a);};
  2512. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2513. int, int);'
  2514. # Test code for whether the C compiler supports C89 (body of main).
  2515. ac_c_conftest_c89_main='
  2516. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2517. '
  2518. # Test code for whether the C compiler supports C99 (global declarations)
  2519. ac_c_conftest_c99_globals='
  2520. // Does the compiler advertise C99 conformance?
  2521. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2522. # error "Compiler does not advertise C99 conformance"
  2523. #endif
  2524. #include <stdbool.h>
  2525. extern int puts (const char *);
  2526. extern int printf (const char *, ...);
  2527. extern int dprintf (int, const char *, ...);
  2528. extern void *malloc (size_t);
  2529. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2530. // dprintf is used instead of fprintf to avoid needing to declare
  2531. // FILE and stderr.
  2532. #define debug(...) dprintf (2, __VA_ARGS__)
  2533. #define showlist(...) puts (#__VA_ARGS__)
  2534. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2535. static void
  2536. test_varargs_macros (void)
  2537. {
  2538. int x = 1234;
  2539. int y = 5678;
  2540. debug ("Flag");
  2541. debug ("X = %d\n", x);
  2542. showlist (The first, second, and third items.);
  2543. report (x>y, "x is %d but y is %d", x, y);
  2544. }
  2545. // Check long long types.
  2546. #define BIG64 18446744073709551615ull
  2547. #define BIG32 4294967295ul
  2548. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2549. #if !BIG_OK
  2550. #error "your preprocessor is broken"
  2551. #endif
  2552. #if BIG_OK
  2553. #else
  2554. #error "your preprocessor is broken"
  2555. #endif
  2556. static long long int bignum = -9223372036854775807LL;
  2557. static unsigned long long int ubignum = BIG64;
  2558. struct incomplete_array
  2559. {
  2560. int datasize;
  2561. double data[];
  2562. };
  2563. struct named_init {
  2564. int number;
  2565. const wchar_t *name;
  2566. double average;
  2567. };
  2568. typedef const char *ccp;
  2569. static inline int
  2570. test_restrict (ccp restrict text)
  2571. {
  2572. // See if C++-style comments work.
  2573. // Iterate through items via the restricted pointer.
  2574. // Also check for declarations in for loops.
  2575. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2576. continue;
  2577. return 0;
  2578. }
  2579. // Check varargs and va_copy.
  2580. static bool
  2581. test_varargs (const char *format, ...)
  2582. {
  2583. va_list args;
  2584. va_start (args, format);
  2585. va_list args_copy;
  2586. va_copy (args_copy, args);
  2587. const char *str = "";
  2588. int number = 0;
  2589. float fnumber = 0;
  2590. while (*format)
  2591. {
  2592. switch (*format++)
  2593. {
  2594. case '\''s'\'': // string
  2595. str = va_arg (args_copy, const char *);
  2596. break;
  2597. case '\''d'\'': // int
  2598. number = va_arg (args_copy, int);
  2599. break;
  2600. case '\''f'\'': // float
  2601. fnumber = va_arg (args_copy, double);
  2602. break;
  2603. default:
  2604. break;
  2605. }
  2606. }
  2607. va_end (args_copy);
  2608. va_end (args);
  2609. return *str && number && fnumber;
  2610. }
  2611. '
  2612. # Test code for whether the C compiler supports C99 (body of main).
  2613. ac_c_conftest_c99_main='
  2614. // Check bool.
  2615. _Bool success = false;
  2616. success |= (argc != 0);
  2617. // Check restrict.
  2618. if (test_restrict ("String literal") == 0)
  2619. success = true;
  2620. char *restrict newvar = "Another string";
  2621. // Check varargs.
  2622. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2623. test_varargs_macros ();
  2624. // Check flexible array members.
  2625. struct incomplete_array *ia =
  2626. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2627. ia->datasize = 10;
  2628. for (int i = 0; i < ia->datasize; ++i)
  2629. ia->data[i] = i * 1.234;
  2630. // Check named initializers.
  2631. struct named_init ni = {
  2632. .number = 34,
  2633. .name = L"Test wide string",
  2634. .average = 543.34343,
  2635. };
  2636. ni.number = 58;
  2637. int dynamic_array[ni.number];
  2638. dynamic_array[0] = argv[0][0];
  2639. dynamic_array[ni.number - 1] = 543;
  2640. // work around unused variable warnings
  2641. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2642. || dynamic_array[ni.number - 1] != 543);
  2643. '
  2644. # Test code for whether the C compiler supports C11 (global declarations)
  2645. ac_c_conftest_c11_globals='
  2646. // Does the compiler advertise C11 conformance?
  2647. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2648. # error "Compiler does not advertise C11 conformance"
  2649. #endif
  2650. // Check _Alignas.
  2651. char _Alignas (double) aligned_as_double;
  2652. char _Alignas (0) no_special_alignment;
  2653. extern char aligned_as_int;
  2654. char _Alignas (0) _Alignas (int) aligned_as_int;
  2655. // Check _Alignof.
  2656. enum
  2657. {
  2658. int_alignment = _Alignof (int),
  2659. int_array_alignment = _Alignof (int[100]),
  2660. char_alignment = _Alignof (char)
  2661. };
  2662. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2663. // Check _Noreturn.
  2664. int _Noreturn does_not_return (void) { for (;;) continue; }
  2665. // Check _Static_assert.
  2666. struct test_static_assert
  2667. {
  2668. int x;
  2669. _Static_assert (sizeof (int) <= sizeof (long int),
  2670. "_Static_assert does not work in struct");
  2671. long int y;
  2672. };
  2673. // Check UTF-8 literals.
  2674. #define u8 syntax error!
  2675. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2676. // Check duplicate typedefs.
  2677. typedef long *long_ptr;
  2678. typedef long int *long_ptr;
  2679. typedef long_ptr long_ptr;
  2680. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2681. struct anonymous
  2682. {
  2683. union {
  2684. struct { int i; int j; };
  2685. struct { int k; long int l; } w;
  2686. };
  2687. int m;
  2688. } v1;
  2689. '
  2690. # Test code for whether the C compiler supports C11 (body of main).
  2691. ac_c_conftest_c11_main='
  2692. _Static_assert ((offsetof (struct anonymous, i)
  2693. == offsetof (struct anonymous, w.k)),
  2694. "Anonymous union alignment botch");
  2695. v1.i = 2;
  2696. v1.w.k = 5;
  2697. ok |= v1.i != 5;
  2698. '
  2699. # Test code for whether the C compiler supports C11 (complete).
  2700. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2701. ${ac_c_conftest_c99_globals}
  2702. ${ac_c_conftest_c11_globals}
  2703. int
  2704. main (int argc, char **argv)
  2705. {
  2706. int ok = 0;
  2707. ${ac_c_conftest_c89_main}
  2708. ${ac_c_conftest_c99_main}
  2709. ${ac_c_conftest_c11_main}
  2710. return ok;
  2711. }
  2712. "
  2713. # Test code for whether the C compiler supports C99 (complete).
  2714. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2715. ${ac_c_conftest_c99_globals}
  2716. int
  2717. main (int argc, char **argv)
  2718. {
  2719. int ok = 0;
  2720. ${ac_c_conftest_c89_main}
  2721. ${ac_c_conftest_c99_main}
  2722. return ok;
  2723. }
  2724. "
  2725. # Test code for whether the C compiler supports C89 (complete).
  2726. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2727. int
  2728. main (int argc, char **argv)
  2729. {
  2730. int ok = 0;
  2731. ${ac_c_conftest_c89_main}
  2732. return ok;
  2733. }
  2734. "
  2735. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2736. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2737. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2738. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2739. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2740. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2741. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2742. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2743. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2744. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2745. ac_cxx_conftest_cxx98_globals='
  2746. // Does the compiler advertise C++98 conformance?
  2747. #if !defined __cplusplus || __cplusplus < 199711L
  2748. # error "Compiler does not advertise C++98 conformance"
  2749. #endif
  2750. // These inclusions are to reject old compilers that
  2751. // lack the unsuffixed header files.
  2752. #include <cstdlib>
  2753. #include <exception>
  2754. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2755. extern void assert (int);
  2756. namespace std {
  2757. extern int strcmp (const char *, const char *);
  2758. }
  2759. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2760. using std::exception;
  2761. using std::strcmp;
  2762. namespace {
  2763. void test_exception_syntax()
  2764. {
  2765. try {
  2766. throw "test";
  2767. } catch (const char *s) {
  2768. // Extra parentheses suppress a warning when building autoconf itself,
  2769. // due to lint rules shared with more typical C programs.
  2770. assert (!(strcmp) (s, "test"));
  2771. }
  2772. }
  2773. template <typename T> struct test_template
  2774. {
  2775. T const val;
  2776. explicit test_template(T t) : val(t) {}
  2777. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2778. };
  2779. } // anonymous namespace
  2780. '
  2781. # Test code for whether the C++ compiler supports C++98 (body of main)
  2782. ac_cxx_conftest_cxx98_main='
  2783. assert (argc);
  2784. assert (! argv[0]);
  2785. {
  2786. test_exception_syntax ();
  2787. test_template<double> tt (2.0);
  2788. assert (tt.add (4) == 6.0);
  2789. assert (true && !false);
  2790. }
  2791. '
  2792. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2793. ac_cxx_conftest_cxx11_globals='
  2794. // Does the compiler advertise C++ 2011 conformance?
  2795. #if !defined __cplusplus || __cplusplus < 201103L
  2796. # error "Compiler does not advertise C++11 conformance"
  2797. #endif
  2798. namespace cxx11test
  2799. {
  2800. constexpr int get_val() { return 20; }
  2801. struct testinit
  2802. {
  2803. int i;
  2804. double d;
  2805. };
  2806. class delegate
  2807. {
  2808. public:
  2809. delegate(int n) : n(n) {}
  2810. delegate(): delegate(2354) {}
  2811. virtual int getval() { return this->n; };
  2812. protected:
  2813. int n;
  2814. };
  2815. class overridden : public delegate
  2816. {
  2817. public:
  2818. overridden(int n): delegate(n) {}
  2819. virtual int getval() override final { return this->n * 2; }
  2820. };
  2821. class nocopy
  2822. {
  2823. public:
  2824. nocopy(int i): i(i) {}
  2825. nocopy() = default;
  2826. nocopy(const nocopy&) = delete;
  2827. nocopy & operator=(const nocopy&) = delete;
  2828. private:
  2829. int i;
  2830. };
  2831. // for testing lambda expressions
  2832. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2833. {
  2834. return f(v);
  2835. }
  2836. // for testing variadic templates and trailing return types
  2837. template <typename V> auto sum(V first) -> V
  2838. {
  2839. return first;
  2840. }
  2841. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2842. {
  2843. return first + sum(rest...);
  2844. }
  2845. }
  2846. '
  2847. # Test code for whether the C++ compiler supports C++11 (body of main)
  2848. ac_cxx_conftest_cxx11_main='
  2849. {
  2850. // Test auto and decltype
  2851. auto a1 = 6538;
  2852. auto a2 = 48573953.4;
  2853. auto a3 = "String literal";
  2854. int total = 0;
  2855. for (auto i = a3; *i; ++i) { total += *i; }
  2856. decltype(a2) a4 = 34895.034;
  2857. }
  2858. {
  2859. // Test constexpr
  2860. short sa[cxx11test::get_val()] = { 0 };
  2861. }
  2862. {
  2863. // Test initializer lists
  2864. cxx11test::testinit il = { 4323, 435234.23544 };
  2865. }
  2866. {
  2867. // Test range-based for
  2868. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2869. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2870. for (auto &x : array) { x += 23; }
  2871. }
  2872. {
  2873. // Test lambda expressions
  2874. using cxx11test::eval;
  2875. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2876. double d = 2.0;
  2877. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2878. assert (d == 5.0);
  2879. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2880. assert (d == 5.0);
  2881. }
  2882. {
  2883. // Test use of variadic templates
  2884. using cxx11test::sum;
  2885. auto a = sum(1);
  2886. auto b = sum(1, 2);
  2887. auto c = sum(1.0, 2.0, 3.0);
  2888. }
  2889. {
  2890. // Test constructor delegation
  2891. cxx11test::delegate d1;
  2892. cxx11test::delegate d2();
  2893. cxx11test::delegate d3(45);
  2894. }
  2895. {
  2896. // Test override and final
  2897. cxx11test::overridden o1(55464);
  2898. }
  2899. {
  2900. // Test nullptr
  2901. char *c = nullptr;
  2902. }
  2903. {
  2904. // Test template brackets
  2905. test_template<::test_template<int>> v(test_template<int>(12));
  2906. }
  2907. {
  2908. // Unicode literals
  2909. char const *utf8 = u8"UTF-8 string \u2500";
  2910. char16_t const *utf16 = u"UTF-8 string \u2500";
  2911. char32_t const *utf32 = U"UTF-32 string \u2500";
  2912. }
  2913. '
  2914. # Test code for whether the C compiler supports C++11 (complete).
  2915. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2916. ${ac_cxx_conftest_cxx11_globals}
  2917. int
  2918. main (int argc, char **argv)
  2919. {
  2920. int ok = 0;
  2921. ${ac_cxx_conftest_cxx98_main}
  2922. ${ac_cxx_conftest_cxx11_main}
  2923. return ok;
  2924. }
  2925. "
  2926. # Test code for whether the C compiler supports C++98 (complete).
  2927. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2928. int
  2929. main (int argc, char **argv)
  2930. {
  2931. int ok = 0;
  2932. ${ac_cxx_conftest_cxx98_main}
  2933. return ok;
  2934. }
  2935. "
  2936. # Auxiliary files required by this configure script.
  2937. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2938. # Locations in which to look for auxiliary files.
  2939. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2940. # Search for a directory containing all of the required auxiliary files,
  2941. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2942. # If we don't find one directory that contains all the files we need,
  2943. # we report the set of missing files from the *first* directory in
  2944. # $ac_aux_dir_candidates and give up.
  2945. ac_missing_aux_files=""
  2946. ac_first_candidate=:
  2947. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. as_found=false
  2950. for as_dir in $ac_aux_dir_candidates
  2951. do
  2952. IFS=$as_save_IFS
  2953. case $as_dir in #(((
  2954. '') as_dir=./ ;;
  2955. */) ;;
  2956. *) as_dir=$as_dir/ ;;
  2957. esac
  2958. as_found=:
  2959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  2960. ac_aux_dir_found=yes
  2961. ac_install_sh=
  2962. for ac_aux in $ac_aux_files
  2963. do
  2964. # As a special case, if "install-sh" is required, that requirement
  2965. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  2966. # and $ac_install_sh is set appropriately for whichever one is found.
  2967. if test x"$ac_aux" = x"install-sh"
  2968. then
  2969. if test -f "${as_dir}install-sh"; then
  2970. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  2971. ac_install_sh="${as_dir}install-sh -c"
  2972. elif test -f "${as_dir}install.sh"; then
  2973. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  2974. ac_install_sh="${as_dir}install.sh -c"
  2975. elif test -f "${as_dir}shtool"; then
  2976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  2977. ac_install_sh="${as_dir}shtool install -c"
  2978. else
  2979. ac_aux_dir_found=no
  2980. if $ac_first_candidate; then
  2981. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  2982. else
  2983. break
  2984. fi
  2985. fi
  2986. else
  2987. if test -f "${as_dir}${ac_aux}"; then
  2988. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  2989. else
  2990. ac_aux_dir_found=no
  2991. if $ac_first_candidate; then
  2992. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  2993. else
  2994. break
  2995. fi
  2996. fi
  2997. fi
  2998. done
  2999. if test "$ac_aux_dir_found" = yes; then
  3000. ac_aux_dir="$as_dir"
  3001. break
  3002. fi
  3003. ac_first_candidate=false
  3004. as_found=false
  3005. done
  3006. IFS=$as_save_IFS
  3007. if $as_found
  3008. then :
  3009. else $as_nop
  3010. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3011. fi
  3012. # These three variables are undocumented and unsupported,
  3013. # and are intended to be withdrawn in a future Autoconf release.
  3014. # They can cause serious problems if a builder's source tree is in a directory
  3015. # whose full name contains unusual characters.
  3016. if test -f "${ac_aux_dir}config.guess"; then
  3017. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3018. fi
  3019. if test -f "${ac_aux_dir}config.sub"; then
  3020. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3021. fi
  3022. if test -f "$ac_aux_dir/configure"; then
  3023. ac_configure="$SHELL ${ac_aux_dir}configure"
  3024. fi
  3025. # Check that the precious variables saved in the cache have kept the same
  3026. # value.
  3027. ac_cache_corrupted=false
  3028. for ac_var in $ac_precious_vars; do
  3029. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3030. eval ac_new_set=\$ac_env_${ac_var}_set
  3031. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3032. eval ac_new_val=\$ac_env_${ac_var}_value
  3033. case $ac_old_set,$ac_new_set in
  3034. set,)
  3035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3036. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3037. ac_cache_corrupted=: ;;
  3038. ,set)
  3039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3040. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3041. ac_cache_corrupted=: ;;
  3042. ,);;
  3043. *)
  3044. if test "x$ac_old_val" != "x$ac_new_val"; then
  3045. # differences in whitespace do not lead to failure.
  3046. ac_old_val_w=`echo x $ac_old_val`
  3047. ac_new_val_w=`echo x $ac_new_val`
  3048. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3050. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3051. ac_cache_corrupted=:
  3052. else
  3053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3054. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3055. eval $ac_var=\$ac_old_val
  3056. fi
  3057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3058. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3060. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3061. fi;;
  3062. esac
  3063. # Pass precious variables to config.status.
  3064. if test "$ac_new_set" = set; then
  3065. case $ac_new_val in
  3066. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3067. *) ac_arg=$ac_var=$ac_new_val ;;
  3068. esac
  3069. case " $ac_configure_args " in
  3070. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3071. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3072. esac
  3073. fi
  3074. done
  3075. if $ac_cache_corrupted; then
  3076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3077. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3079. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3080. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3081. and start over" "$LINENO" 5
  3082. fi
  3083. ## -------------------- ##
  3084. ## Main body of script. ##
  3085. ## -------------------- ##
  3086. ac_ext=c
  3087. ac_cpp='$CPP $CPPFLAGS'
  3088. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3089. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3090. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3091. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3092. orig_CFLAGS="$CFLAGS"
  3093. # See docs/release_checklist.md
  3094. SDL_MAJOR_VERSION=3
  3095. SDL_MINOR_VERSION=0
  3096. SDL_MICRO_VERSION=0
  3097. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3098. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3099. case "$SDL_MINOR_VERSION" in #(
  3100. *[02468]) :
  3101. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3102. *) :
  3103. SDL_INTERFACE_AGE=0 ;; #(
  3104. *) :
  3105. ;;
  3106. esac
  3107. # libtool versioning
  3108. case `pwd` in
  3109. *\ * | *\ *)
  3110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3111. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3112. esac
  3113. macro_version='2.4.6'
  3114. macro_revision='2.4.6'
  3115. ltmain=$ac_aux_dir/ltmain.sh
  3116. # Make sure we can run config.sub.
  3117. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3118. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3120. printf %s "checking build system type... " >&6; }
  3121. if test ${ac_cv_build+y}
  3122. then :
  3123. printf %s "(cached) " >&6
  3124. else $as_nop
  3125. ac_build_alias=$build_alias
  3126. test "x$ac_build_alias" = x &&
  3127. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3128. test "x$ac_build_alias" = x &&
  3129. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3130. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3131. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3132. fi
  3133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3134. printf "%s\n" "$ac_cv_build" >&6; }
  3135. case $ac_cv_build in
  3136. *-*-*) ;;
  3137. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3138. esac
  3139. build=$ac_cv_build
  3140. ac_save_IFS=$IFS; IFS='-'
  3141. set x $ac_cv_build
  3142. shift
  3143. build_cpu=$1
  3144. build_vendor=$2
  3145. shift; shift
  3146. # Remember, the first character of IFS is used to create $*,
  3147. # except with old shells:
  3148. build_os=$*
  3149. IFS=$ac_save_IFS
  3150. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3152. printf %s "checking host system type... " >&6; }
  3153. if test ${ac_cv_host+y}
  3154. then :
  3155. printf %s "(cached) " >&6
  3156. else $as_nop
  3157. if test "x$host_alias" = x; then
  3158. ac_cv_host=$ac_cv_build
  3159. else
  3160. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3161. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3162. fi
  3163. fi
  3164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3165. printf "%s\n" "$ac_cv_host" >&6; }
  3166. case $ac_cv_host in
  3167. *-*-*) ;;
  3168. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3169. esac
  3170. host=$ac_cv_host
  3171. ac_save_IFS=$IFS; IFS='-'
  3172. set x $ac_cv_host
  3173. shift
  3174. host_cpu=$1
  3175. host_vendor=$2
  3176. shift; shift
  3177. # Remember, the first character of IFS is used to create $*,
  3178. # except with old shells:
  3179. host_os=$*
  3180. IFS=$ac_save_IFS
  3181. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3182. # Backslashify metacharacters that are still active within
  3183. # double-quoted strings.
  3184. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3185. # Same as above, but do not quote variable references.
  3186. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3187. # Sed substitution to delay expansion of an escaped shell variable in a
  3188. # double_quote_subst'ed string.
  3189. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3190. # Sed substitution to delay expansion of an escaped single quote.
  3191. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3192. # Sed substitution to avoid accidental globbing in evaled expressions
  3193. no_glob_subst='s/\*/\\\*/g'
  3194. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3195. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3196. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3198. printf %s "checking how to print strings... " >&6; }
  3199. # Test print first, because it will be a builtin if present.
  3200. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3201. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3202. ECHO='print -r --'
  3203. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3204. ECHO='printf %s\n'
  3205. else
  3206. # Use this function as a fallback that always works.
  3207. func_fallback_echo ()
  3208. {
  3209. eval 'cat <<_LTECHO_EOF
  3210. $1
  3211. _LTECHO_EOF'
  3212. }
  3213. ECHO='func_fallback_echo'
  3214. fi
  3215. # func_echo_all arg...
  3216. # Invoke $ECHO with all args, space-separated.
  3217. func_echo_all ()
  3218. {
  3219. $ECHO ""
  3220. }
  3221. case $ECHO in
  3222. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3223. printf "%s\n" "printf" >&6; } ;;
  3224. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3225. printf "%s\n" "print -r" >&6; } ;;
  3226. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3227. printf "%s\n" "cat" >&6; } ;;
  3228. esac
  3229. ac_ext=c
  3230. ac_cpp='$CPP $CPPFLAGS'
  3231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3234. if test -n "$ac_tool_prefix"; then
  3235. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3236. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3238. printf %s "checking for $ac_word... " >&6; }
  3239. if test ${ac_cv_prog_CC+y}
  3240. then :
  3241. printf %s "(cached) " >&6
  3242. else $as_nop
  3243. if test -n "$CC"; then
  3244. ac_cv_prog_CC="$CC" # Let the user override the test.
  3245. else
  3246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3247. for as_dir in $PATH
  3248. do
  3249. IFS=$as_save_IFS
  3250. case $as_dir in #(((
  3251. '') as_dir=./ ;;
  3252. */) ;;
  3253. *) as_dir=$as_dir/ ;;
  3254. esac
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3257. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3259. break 2
  3260. fi
  3261. done
  3262. done
  3263. IFS=$as_save_IFS
  3264. fi
  3265. fi
  3266. CC=$ac_cv_prog_CC
  3267. if test -n "$CC"; then
  3268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3269. printf "%s\n" "$CC" >&6; }
  3270. else
  3271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3272. printf "%s\n" "no" >&6; }
  3273. fi
  3274. fi
  3275. if test -z "$ac_cv_prog_CC"; then
  3276. ac_ct_CC=$CC
  3277. # Extract the first word of "gcc", so it can be a program name with args.
  3278. set dummy gcc; ac_word=$2
  3279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3280. printf %s "checking for $ac_word... " >&6; }
  3281. if test ${ac_cv_prog_ac_ct_CC+y}
  3282. then :
  3283. printf %s "(cached) " >&6
  3284. else $as_nop
  3285. if test -n "$ac_ct_CC"; then
  3286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3287. else
  3288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3289. for as_dir in $PATH
  3290. do
  3291. IFS=$as_save_IFS
  3292. case $as_dir in #(((
  3293. '') as_dir=./ ;;
  3294. */) ;;
  3295. *) as_dir=$as_dir/ ;;
  3296. esac
  3297. for ac_exec_ext in '' $ac_executable_extensions; do
  3298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3299. ac_cv_prog_ac_ct_CC="gcc"
  3300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3301. break 2
  3302. fi
  3303. done
  3304. done
  3305. IFS=$as_save_IFS
  3306. fi
  3307. fi
  3308. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3309. if test -n "$ac_ct_CC"; then
  3310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3311. printf "%s\n" "$ac_ct_CC" >&6; }
  3312. else
  3313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3314. printf "%s\n" "no" >&6; }
  3315. fi
  3316. if test "x$ac_ct_CC" = x; then
  3317. CC=""
  3318. else
  3319. case $cross_compiling:$ac_tool_warned in
  3320. yes:)
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3322. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3323. ac_tool_warned=yes ;;
  3324. esac
  3325. CC=$ac_ct_CC
  3326. fi
  3327. else
  3328. CC="$ac_cv_prog_CC"
  3329. fi
  3330. if test -z "$CC"; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3333. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. printf %s "checking for $ac_word... " >&6; }
  3336. if test ${ac_cv_prog_CC+y}
  3337. then :
  3338. printf %s "(cached) " >&6
  3339. else $as_nop
  3340. if test -n "$CC"; then
  3341. ac_cv_prog_CC="$CC" # Let the user override the test.
  3342. else
  3343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3344. for as_dir in $PATH
  3345. do
  3346. IFS=$as_save_IFS
  3347. case $as_dir in #(((
  3348. '') as_dir=./ ;;
  3349. */) ;;
  3350. *) as_dir=$as_dir/ ;;
  3351. esac
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3354. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3355. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. CC=$ac_cv_prog_CC
  3364. if test -n "$CC"; then
  3365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3366. printf "%s\n" "$CC" >&6; }
  3367. else
  3368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. printf "%s\n" "no" >&6; }
  3370. fi
  3371. fi
  3372. fi
  3373. if test -z "$CC"; then
  3374. # Extract the first word of "cc", so it can be a program name with args.
  3375. set dummy cc; ac_word=$2
  3376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3377. printf %s "checking for $ac_word... " >&6; }
  3378. if test ${ac_cv_prog_CC+y}
  3379. then :
  3380. printf %s "(cached) " >&6
  3381. else $as_nop
  3382. if test -n "$CC"; then
  3383. ac_cv_prog_CC="$CC" # Let the user override the test.
  3384. else
  3385. ac_prog_rejected=no
  3386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3387. for as_dir in $PATH
  3388. do
  3389. IFS=$as_save_IFS
  3390. case $as_dir in #(((
  3391. '') as_dir=./ ;;
  3392. */) ;;
  3393. *) as_dir=$as_dir/ ;;
  3394. esac
  3395. for ac_exec_ext in '' $ac_executable_extensions; do
  3396. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3397. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3398. ac_prog_rejected=yes
  3399. continue
  3400. fi
  3401. ac_cv_prog_CC="cc"
  3402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3403. break 2
  3404. fi
  3405. done
  3406. done
  3407. IFS=$as_save_IFS
  3408. if test $ac_prog_rejected = yes; then
  3409. # We found a bogon in the path, so make sure we never use it.
  3410. set dummy $ac_cv_prog_CC
  3411. shift
  3412. if test $# != 0; then
  3413. # We chose a different compiler from the bogus one.
  3414. # However, it has the same basename, so the bogon will be chosen
  3415. # first if we set CC to just the basename; use the full file name.
  3416. shift
  3417. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3418. fi
  3419. fi
  3420. fi
  3421. fi
  3422. CC=$ac_cv_prog_CC
  3423. if test -n "$CC"; then
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3425. printf "%s\n" "$CC" >&6; }
  3426. else
  3427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3428. printf "%s\n" "no" >&6; }
  3429. fi
  3430. fi
  3431. if test -z "$CC"; then
  3432. if test -n "$ac_tool_prefix"; then
  3433. for ac_prog in cl.exe
  3434. do
  3435. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3436. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. printf %s "checking for $ac_word... " >&6; }
  3439. if test ${ac_cv_prog_CC+y}
  3440. then :
  3441. printf %s "(cached) " >&6
  3442. else $as_nop
  3443. if test -n "$CC"; then
  3444. ac_cv_prog_CC="$CC" # Let the user override the test.
  3445. else
  3446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3447. for as_dir in $PATH
  3448. do
  3449. IFS=$as_save_IFS
  3450. case $as_dir in #(((
  3451. '') as_dir=./ ;;
  3452. */) ;;
  3453. *) as_dir=$as_dir/ ;;
  3454. esac
  3455. for ac_exec_ext in '' $ac_executable_extensions; do
  3456. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3457. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3459. break 2
  3460. fi
  3461. done
  3462. done
  3463. IFS=$as_save_IFS
  3464. fi
  3465. fi
  3466. CC=$ac_cv_prog_CC
  3467. if test -n "$CC"; then
  3468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3469. printf "%s\n" "$CC" >&6; }
  3470. else
  3471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3472. printf "%s\n" "no" >&6; }
  3473. fi
  3474. test -n "$CC" && break
  3475. done
  3476. fi
  3477. if test -z "$CC"; then
  3478. ac_ct_CC=$CC
  3479. for ac_prog in cl.exe
  3480. do
  3481. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3482. set dummy $ac_prog; ac_word=$2
  3483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3484. printf %s "checking for $ac_word... " >&6; }
  3485. if test ${ac_cv_prog_ac_ct_CC+y}
  3486. then :
  3487. printf %s "(cached) " >&6
  3488. else $as_nop
  3489. if test -n "$ac_ct_CC"; then
  3490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3491. else
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH
  3494. do
  3495. IFS=$as_save_IFS
  3496. case $as_dir in #(((
  3497. '') as_dir=./ ;;
  3498. */) ;;
  3499. *) as_dir=$as_dir/ ;;
  3500. esac
  3501. for ac_exec_ext in '' $ac_executable_extensions; do
  3502. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3503. ac_cv_prog_ac_ct_CC="$ac_prog"
  3504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3505. break 2
  3506. fi
  3507. done
  3508. done
  3509. IFS=$as_save_IFS
  3510. fi
  3511. fi
  3512. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3513. if test -n "$ac_ct_CC"; then
  3514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3515. printf "%s\n" "$ac_ct_CC" >&6; }
  3516. else
  3517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3518. printf "%s\n" "no" >&6; }
  3519. fi
  3520. test -n "$ac_ct_CC" && break
  3521. done
  3522. if test "x$ac_ct_CC" = x; then
  3523. CC=""
  3524. else
  3525. case $cross_compiling:$ac_tool_warned in
  3526. yes:)
  3527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3528. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3529. ac_tool_warned=yes ;;
  3530. esac
  3531. CC=$ac_ct_CC
  3532. fi
  3533. fi
  3534. fi
  3535. if test -z "$CC"; then
  3536. if test -n "$ac_tool_prefix"; then
  3537. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3538. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3540. printf %s "checking for $ac_word... " >&6; }
  3541. if test ${ac_cv_prog_CC+y}
  3542. then :
  3543. printf %s "(cached) " >&6
  3544. else $as_nop
  3545. if test -n "$CC"; then
  3546. ac_cv_prog_CC="$CC" # Let the user override the test.
  3547. else
  3548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3549. for as_dir in $PATH
  3550. do
  3551. IFS=$as_save_IFS
  3552. case $as_dir in #(((
  3553. '') as_dir=./ ;;
  3554. */) ;;
  3555. *) as_dir=$as_dir/ ;;
  3556. esac
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3559. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3561. break 2
  3562. fi
  3563. done
  3564. done
  3565. IFS=$as_save_IFS
  3566. fi
  3567. fi
  3568. CC=$ac_cv_prog_CC
  3569. if test -n "$CC"; then
  3570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3571. printf "%s\n" "$CC" >&6; }
  3572. else
  3573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3574. printf "%s\n" "no" >&6; }
  3575. fi
  3576. fi
  3577. if test -z "$ac_cv_prog_CC"; then
  3578. ac_ct_CC=$CC
  3579. # Extract the first word of "clang", so it can be a program name with args.
  3580. set dummy clang; ac_word=$2
  3581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3582. printf %s "checking for $ac_word... " >&6; }
  3583. if test ${ac_cv_prog_ac_ct_CC+y}
  3584. then :
  3585. printf %s "(cached) " >&6
  3586. else $as_nop
  3587. if test -n "$ac_ct_CC"; then
  3588. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3589. else
  3590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3591. for as_dir in $PATH
  3592. do
  3593. IFS=$as_save_IFS
  3594. case $as_dir in #(((
  3595. '') as_dir=./ ;;
  3596. */) ;;
  3597. *) as_dir=$as_dir/ ;;
  3598. esac
  3599. for ac_exec_ext in '' $ac_executable_extensions; do
  3600. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3601. ac_cv_prog_ac_ct_CC="clang"
  3602. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3603. break 2
  3604. fi
  3605. done
  3606. done
  3607. IFS=$as_save_IFS
  3608. fi
  3609. fi
  3610. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3611. if test -n "$ac_ct_CC"; then
  3612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3613. printf "%s\n" "$ac_ct_CC" >&6; }
  3614. else
  3615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3616. printf "%s\n" "no" >&6; }
  3617. fi
  3618. if test "x$ac_ct_CC" = x; then
  3619. CC=""
  3620. else
  3621. case $cross_compiling:$ac_tool_warned in
  3622. yes:)
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3624. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3625. ac_tool_warned=yes ;;
  3626. esac
  3627. CC=$ac_ct_CC
  3628. fi
  3629. else
  3630. CC="$ac_cv_prog_CC"
  3631. fi
  3632. fi
  3633. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3634. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3635. as_fn_error $? "no acceptable C compiler found in \$PATH
  3636. See \`config.log' for more details" "$LINENO" 5; }
  3637. # Provide some information about the compiler.
  3638. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3639. set X $ac_compile
  3640. ac_compiler=$2
  3641. for ac_option in --version -v -V -qversion -version; do
  3642. { { ac_try="$ac_compiler $ac_option >&5"
  3643. case "(($ac_try" in
  3644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3645. *) ac_try_echo=$ac_try;;
  3646. esac
  3647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3648. printf "%s\n" "$ac_try_echo"; } >&5
  3649. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3650. ac_status=$?
  3651. if test -s conftest.err; then
  3652. sed '10a\
  3653. ... rest of stderr output deleted ...
  3654. 10q' conftest.err >conftest.er1
  3655. cat conftest.er1 >&5
  3656. fi
  3657. rm -f conftest.er1 conftest.err
  3658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3659. test $ac_status = 0; }
  3660. done
  3661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3662. /* end confdefs.h. */
  3663. int
  3664. main (void)
  3665. {
  3666. ;
  3667. return 0;
  3668. }
  3669. _ACEOF
  3670. ac_clean_files_save=$ac_clean_files
  3671. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3672. # Try to create an executable without -o first, disregard a.out.
  3673. # It will help us diagnose broken compilers, and finding out an intuition
  3674. # of exeext.
  3675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3676. printf %s "checking whether the C compiler works... " >&6; }
  3677. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3678. # The possible output files:
  3679. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3680. ac_rmfiles=
  3681. for ac_file in $ac_files
  3682. do
  3683. case $ac_file in
  3684. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3685. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3686. esac
  3687. done
  3688. rm -f $ac_rmfiles
  3689. if { { ac_try="$ac_link_default"
  3690. case "(($ac_try" in
  3691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3692. *) ac_try_echo=$ac_try;;
  3693. esac
  3694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3695. printf "%s\n" "$ac_try_echo"; } >&5
  3696. (eval "$ac_link_default") 2>&5
  3697. ac_status=$?
  3698. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3699. test $ac_status = 0; }
  3700. then :
  3701. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3702. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3703. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3704. # so that the user can short-circuit this test for compilers unknown to
  3705. # Autoconf.
  3706. for ac_file in $ac_files ''
  3707. do
  3708. test -f "$ac_file" || continue
  3709. case $ac_file in
  3710. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3711. ;;
  3712. [ab].out )
  3713. # We found the default executable, but exeext='' is most
  3714. # certainly right.
  3715. break;;
  3716. *.* )
  3717. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3718. then :; else
  3719. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3720. fi
  3721. # We set ac_cv_exeext here because the later test for it is not
  3722. # safe: cross compilers may not add the suffix if given an `-o'
  3723. # argument, so we may need to know it at that point already.
  3724. # Even if this section looks crufty: it has the advantage of
  3725. # actually working.
  3726. break;;
  3727. * )
  3728. break;;
  3729. esac
  3730. done
  3731. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3732. else $as_nop
  3733. ac_file=''
  3734. fi
  3735. if test -z "$ac_file"
  3736. then :
  3737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3738. printf "%s\n" "no" >&6; }
  3739. printf "%s\n" "$as_me: failed program was:" >&5
  3740. sed 's/^/| /' conftest.$ac_ext >&5
  3741. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3742. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3743. as_fn_error 77 "C compiler cannot create executables
  3744. See \`config.log' for more details" "$LINENO" 5; }
  3745. else $as_nop
  3746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3747. printf "%s\n" "yes" >&6; }
  3748. fi
  3749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3750. printf %s "checking for C compiler default output file name... " >&6; }
  3751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3752. printf "%s\n" "$ac_file" >&6; }
  3753. ac_exeext=$ac_cv_exeext
  3754. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3755. ac_clean_files=$ac_clean_files_save
  3756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3757. printf %s "checking for suffix of executables... " >&6; }
  3758. if { { ac_try="$ac_link"
  3759. case "(($ac_try" in
  3760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3761. *) ac_try_echo=$ac_try;;
  3762. esac
  3763. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3764. printf "%s\n" "$ac_try_echo"; } >&5
  3765. (eval "$ac_link") 2>&5
  3766. ac_status=$?
  3767. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3768. test $ac_status = 0; }
  3769. then :
  3770. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3771. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3772. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3773. # `rm'.
  3774. for ac_file in conftest.exe conftest conftest.*; do
  3775. test -f "$ac_file" || continue
  3776. case $ac_file in
  3777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3778. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3779. break;;
  3780. * ) break;;
  3781. esac
  3782. done
  3783. else $as_nop
  3784. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3785. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3786. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3787. See \`config.log' for more details" "$LINENO" 5; }
  3788. fi
  3789. rm -f conftest conftest$ac_cv_exeext
  3790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3791. printf "%s\n" "$ac_cv_exeext" >&6; }
  3792. rm -f conftest.$ac_ext
  3793. EXEEXT=$ac_cv_exeext
  3794. ac_exeext=$EXEEXT
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. #include <stdio.h>
  3798. int
  3799. main (void)
  3800. {
  3801. FILE *f = fopen ("conftest.out", "w");
  3802. return ferror (f) || fclose (f) != 0;
  3803. ;
  3804. return 0;
  3805. }
  3806. _ACEOF
  3807. ac_clean_files="$ac_clean_files conftest.out"
  3808. # Check that the compiler produces executables we can run. If not, either
  3809. # the compiler is broken, or we cross compile.
  3810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3811. printf %s "checking whether we are cross compiling... " >&6; }
  3812. if test "$cross_compiling" != yes; then
  3813. { { ac_try="$ac_link"
  3814. case "(($ac_try" in
  3815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3816. *) ac_try_echo=$ac_try;;
  3817. esac
  3818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3819. printf "%s\n" "$ac_try_echo"; } >&5
  3820. (eval "$ac_link") 2>&5
  3821. ac_status=$?
  3822. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3823. test $ac_status = 0; }
  3824. if { ac_try='./conftest$ac_cv_exeext'
  3825. { { case "(($ac_try" in
  3826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3827. *) ac_try_echo=$ac_try;;
  3828. esac
  3829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3830. printf "%s\n" "$ac_try_echo"; } >&5
  3831. (eval "$ac_try") 2>&5
  3832. ac_status=$?
  3833. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3834. test $ac_status = 0; }; }; then
  3835. cross_compiling=no
  3836. else
  3837. if test "$cross_compiling" = maybe; then
  3838. cross_compiling=yes
  3839. else
  3840. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3841. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3842. as_fn_error 77 "cannot run C compiled programs.
  3843. If you meant to cross compile, use \`--host'.
  3844. See \`config.log' for more details" "$LINENO" 5; }
  3845. fi
  3846. fi
  3847. fi
  3848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3849. printf "%s\n" "$cross_compiling" >&6; }
  3850. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3851. ac_clean_files=$ac_clean_files_save
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3853. printf %s "checking for suffix of object files... " >&6; }
  3854. if test ${ac_cv_objext+y}
  3855. then :
  3856. printf %s "(cached) " >&6
  3857. else $as_nop
  3858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3859. /* end confdefs.h. */
  3860. int
  3861. main (void)
  3862. {
  3863. ;
  3864. return 0;
  3865. }
  3866. _ACEOF
  3867. rm -f conftest.o conftest.obj
  3868. if { { ac_try="$ac_compile"
  3869. case "(($ac_try" in
  3870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3871. *) ac_try_echo=$ac_try;;
  3872. esac
  3873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3874. printf "%s\n" "$ac_try_echo"; } >&5
  3875. (eval "$ac_compile") 2>&5
  3876. ac_status=$?
  3877. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3878. test $ac_status = 0; }
  3879. then :
  3880. for ac_file in conftest.o conftest.obj conftest.*; do
  3881. test -f "$ac_file" || continue;
  3882. case $ac_file in
  3883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3884. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3885. break;;
  3886. esac
  3887. done
  3888. else $as_nop
  3889. printf "%s\n" "$as_me: failed program was:" >&5
  3890. sed 's/^/| /' conftest.$ac_ext >&5
  3891. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3892. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3893. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3894. See \`config.log' for more details" "$LINENO" 5; }
  3895. fi
  3896. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3897. fi
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3899. printf "%s\n" "$ac_cv_objext" >&6; }
  3900. OBJEXT=$ac_cv_objext
  3901. ac_objext=$OBJEXT
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3903. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3904. if test ${ac_cv_c_compiler_gnu+y}
  3905. then :
  3906. printf %s "(cached) " >&6
  3907. else $as_nop
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main (void)
  3912. {
  3913. #ifndef __GNUC__
  3914. choke me
  3915. #endif
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_c_try_compile "$LINENO"
  3921. then :
  3922. ac_compiler_gnu=yes
  3923. else $as_nop
  3924. ac_compiler_gnu=no
  3925. fi
  3926. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3927. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3928. fi
  3929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3930. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3931. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3932. if test $ac_compiler_gnu = yes; then
  3933. GCC=yes
  3934. else
  3935. GCC=
  3936. fi
  3937. ac_test_CFLAGS=${CFLAGS+y}
  3938. ac_save_CFLAGS=$CFLAGS
  3939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3940. printf %s "checking whether $CC accepts -g... " >&6; }
  3941. if test ${ac_cv_prog_cc_g+y}
  3942. then :
  3943. printf %s "(cached) " >&6
  3944. else $as_nop
  3945. ac_save_c_werror_flag=$ac_c_werror_flag
  3946. ac_c_werror_flag=yes
  3947. ac_cv_prog_cc_g=no
  3948. CFLAGS="-g"
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main (void)
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. if ac_fn_c_try_compile "$LINENO"
  3959. then :
  3960. ac_cv_prog_cc_g=yes
  3961. else $as_nop
  3962. CFLAGS=""
  3963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3964. /* end confdefs.h. */
  3965. int
  3966. main (void)
  3967. {
  3968. ;
  3969. return 0;
  3970. }
  3971. _ACEOF
  3972. if ac_fn_c_try_compile "$LINENO"
  3973. then :
  3974. else $as_nop
  3975. ac_c_werror_flag=$ac_save_c_werror_flag
  3976. CFLAGS="-g"
  3977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3978. /* end confdefs.h. */
  3979. int
  3980. main (void)
  3981. {
  3982. ;
  3983. return 0;
  3984. }
  3985. _ACEOF
  3986. if ac_fn_c_try_compile "$LINENO"
  3987. then :
  3988. ac_cv_prog_cc_g=yes
  3989. fi
  3990. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3991. fi
  3992. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3993. fi
  3994. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3995. ac_c_werror_flag=$ac_save_c_werror_flag
  3996. fi
  3997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3998. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3999. if test $ac_test_CFLAGS; then
  4000. CFLAGS=$ac_save_CFLAGS
  4001. elif test $ac_cv_prog_cc_g = yes; then
  4002. if test "$GCC" = yes; then
  4003. CFLAGS="-g -O2"
  4004. else
  4005. CFLAGS="-g"
  4006. fi
  4007. else
  4008. if test "$GCC" = yes; then
  4009. CFLAGS="-O2"
  4010. else
  4011. CFLAGS=
  4012. fi
  4013. fi
  4014. ac_prog_cc_stdc=no
  4015. if test x$ac_prog_cc_stdc = xno
  4016. then :
  4017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4018. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4019. if test ${ac_cv_prog_cc_c11+y}
  4020. then :
  4021. printf %s "(cached) " >&6
  4022. else $as_nop
  4023. ac_cv_prog_cc_c11=no
  4024. ac_save_CC=$CC
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. $ac_c_conftest_c11_program
  4028. _ACEOF
  4029. for ac_arg in '' -std=gnu11
  4030. do
  4031. CC="$ac_save_CC $ac_arg"
  4032. if ac_fn_c_try_compile "$LINENO"
  4033. then :
  4034. ac_cv_prog_cc_c11=$ac_arg
  4035. fi
  4036. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4037. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4038. done
  4039. rm -f conftest.$ac_ext
  4040. CC=$ac_save_CC
  4041. fi
  4042. if test "x$ac_cv_prog_cc_c11" = xno
  4043. then :
  4044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4045. printf "%s\n" "unsupported" >&6; }
  4046. else $as_nop
  4047. if test "x$ac_cv_prog_cc_c11" = x
  4048. then :
  4049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4050. printf "%s\n" "none needed" >&6; }
  4051. else $as_nop
  4052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4053. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4054. CC="$CC $ac_cv_prog_cc_c11"
  4055. fi
  4056. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4057. ac_prog_cc_stdc=c11
  4058. fi
  4059. fi
  4060. if test x$ac_prog_cc_stdc = xno
  4061. then :
  4062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4063. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4064. if test ${ac_cv_prog_cc_c99+y}
  4065. then :
  4066. printf %s "(cached) " >&6
  4067. else $as_nop
  4068. ac_cv_prog_cc_c99=no
  4069. ac_save_CC=$CC
  4070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4071. /* end confdefs.h. */
  4072. $ac_c_conftest_c99_program
  4073. _ACEOF
  4074. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4075. do
  4076. CC="$ac_save_CC $ac_arg"
  4077. if ac_fn_c_try_compile "$LINENO"
  4078. then :
  4079. ac_cv_prog_cc_c99=$ac_arg
  4080. fi
  4081. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4082. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4083. done
  4084. rm -f conftest.$ac_ext
  4085. CC=$ac_save_CC
  4086. fi
  4087. if test "x$ac_cv_prog_cc_c99" = xno
  4088. then :
  4089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4090. printf "%s\n" "unsupported" >&6; }
  4091. else $as_nop
  4092. if test "x$ac_cv_prog_cc_c99" = x
  4093. then :
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4095. printf "%s\n" "none needed" >&6; }
  4096. else $as_nop
  4097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4098. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4099. CC="$CC $ac_cv_prog_cc_c99"
  4100. fi
  4101. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4102. ac_prog_cc_stdc=c99
  4103. fi
  4104. fi
  4105. if test x$ac_prog_cc_stdc = xno
  4106. then :
  4107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4108. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4109. if test ${ac_cv_prog_cc_c89+y}
  4110. then :
  4111. printf %s "(cached) " >&6
  4112. else $as_nop
  4113. ac_cv_prog_cc_c89=no
  4114. ac_save_CC=$CC
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. $ac_c_conftest_c89_program
  4118. _ACEOF
  4119. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4120. do
  4121. CC="$ac_save_CC $ac_arg"
  4122. if ac_fn_c_try_compile "$LINENO"
  4123. then :
  4124. ac_cv_prog_cc_c89=$ac_arg
  4125. fi
  4126. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4127. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4128. done
  4129. rm -f conftest.$ac_ext
  4130. CC=$ac_save_CC
  4131. fi
  4132. if test "x$ac_cv_prog_cc_c89" = xno
  4133. then :
  4134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4135. printf "%s\n" "unsupported" >&6; }
  4136. else $as_nop
  4137. if test "x$ac_cv_prog_cc_c89" = x
  4138. then :
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4140. printf "%s\n" "none needed" >&6; }
  4141. else $as_nop
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4143. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4144. CC="$CC $ac_cv_prog_cc_c89"
  4145. fi
  4146. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4147. ac_prog_cc_stdc=c89
  4148. fi
  4149. fi
  4150. ac_ext=c
  4151. ac_cpp='$CPP $CPPFLAGS'
  4152. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4153. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4154. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4156. printf %s "checking for a sed that does not truncate output... " >&6; }
  4157. if test ${ac_cv_path_SED+y}
  4158. then :
  4159. printf %s "(cached) " >&6
  4160. else $as_nop
  4161. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4162. for ac_i in 1 2 3 4 5 6 7; do
  4163. ac_script="$ac_script$as_nl$ac_script"
  4164. done
  4165. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4166. { ac_script=; unset ac_script;}
  4167. if test -z "$SED"; then
  4168. ac_path_SED_found=false
  4169. # Loop through the user's path and test for each of PROGNAME-LIST
  4170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4171. for as_dir in $PATH
  4172. do
  4173. IFS=$as_save_IFS
  4174. case $as_dir in #(((
  4175. '') as_dir=./ ;;
  4176. */) ;;
  4177. *) as_dir=$as_dir/ ;;
  4178. esac
  4179. for ac_prog in sed gsed
  4180. do
  4181. for ac_exec_ext in '' $ac_executable_extensions; do
  4182. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4183. as_fn_executable_p "$ac_path_SED" || continue
  4184. # Check for GNU ac_path_SED and select it if it is found.
  4185. # Check for GNU $ac_path_SED
  4186. case `"$ac_path_SED" --version 2>&1` in
  4187. *GNU*)
  4188. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4189. *)
  4190. ac_count=0
  4191. printf %s 0123456789 >"conftest.in"
  4192. while :
  4193. do
  4194. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4195. mv "conftest.tmp" "conftest.in"
  4196. cp "conftest.in" "conftest.nl"
  4197. printf "%s\n" '' >> "conftest.nl"
  4198. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4199. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4200. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4201. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4202. # Best one so far, save it but keep looking for a better one
  4203. ac_cv_path_SED="$ac_path_SED"
  4204. ac_path_SED_max=$ac_count
  4205. fi
  4206. # 10*(2^10) chars as input seems more than enough
  4207. test $ac_count -gt 10 && break
  4208. done
  4209. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4210. esac
  4211. $ac_path_SED_found && break 3
  4212. done
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. if test -z "$ac_cv_path_SED"; then
  4217. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4218. fi
  4219. else
  4220. ac_cv_path_SED=$SED
  4221. fi
  4222. fi
  4223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4224. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4225. SED="$ac_cv_path_SED"
  4226. rm -f conftest.sed
  4227. test -z "$SED" && SED=sed
  4228. Xsed="$SED -e 1s/^X//"
  4229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4230. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4231. if test ${ac_cv_path_GREP+y}
  4232. then :
  4233. printf %s "(cached) " >&6
  4234. else $as_nop
  4235. if test -z "$GREP"; then
  4236. ac_path_GREP_found=false
  4237. # Loop through the user's path and test for each of PROGNAME-LIST
  4238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4239. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4240. do
  4241. IFS=$as_save_IFS
  4242. case $as_dir in #(((
  4243. '') as_dir=./ ;;
  4244. */) ;;
  4245. *) as_dir=$as_dir/ ;;
  4246. esac
  4247. for ac_prog in grep ggrep
  4248. do
  4249. for ac_exec_ext in '' $ac_executable_extensions; do
  4250. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4251. as_fn_executable_p "$ac_path_GREP" || continue
  4252. # Check for GNU ac_path_GREP and select it if it is found.
  4253. # Check for GNU $ac_path_GREP
  4254. case `"$ac_path_GREP" --version 2>&1` in
  4255. *GNU*)
  4256. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4257. *)
  4258. ac_count=0
  4259. printf %s 0123456789 >"conftest.in"
  4260. while :
  4261. do
  4262. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4263. mv "conftest.tmp" "conftest.in"
  4264. cp "conftest.in" "conftest.nl"
  4265. printf "%s\n" 'GREP' >> "conftest.nl"
  4266. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4267. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4268. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4269. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4270. # Best one so far, save it but keep looking for a better one
  4271. ac_cv_path_GREP="$ac_path_GREP"
  4272. ac_path_GREP_max=$ac_count
  4273. fi
  4274. # 10*(2^10) chars as input seems more than enough
  4275. test $ac_count -gt 10 && break
  4276. done
  4277. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4278. esac
  4279. $ac_path_GREP_found && break 3
  4280. done
  4281. done
  4282. done
  4283. IFS=$as_save_IFS
  4284. if test -z "$ac_cv_path_GREP"; then
  4285. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4286. fi
  4287. else
  4288. ac_cv_path_GREP=$GREP
  4289. fi
  4290. fi
  4291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4292. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4293. GREP="$ac_cv_path_GREP"
  4294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4295. printf %s "checking for egrep... " >&6; }
  4296. if test ${ac_cv_path_EGREP+y}
  4297. then :
  4298. printf %s "(cached) " >&6
  4299. else $as_nop
  4300. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4301. then ac_cv_path_EGREP="$GREP -E"
  4302. else
  4303. if test -z "$EGREP"; then
  4304. ac_path_EGREP_found=false
  4305. # Loop through the user's path and test for each of PROGNAME-LIST
  4306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4308. do
  4309. IFS=$as_save_IFS
  4310. case $as_dir in #(((
  4311. '') as_dir=./ ;;
  4312. */) ;;
  4313. *) as_dir=$as_dir/ ;;
  4314. esac
  4315. for ac_prog in egrep
  4316. do
  4317. for ac_exec_ext in '' $ac_executable_extensions; do
  4318. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4319. as_fn_executable_p "$ac_path_EGREP" || continue
  4320. # Check for GNU ac_path_EGREP and select it if it is found.
  4321. # Check for GNU $ac_path_EGREP
  4322. case `"$ac_path_EGREP" --version 2>&1` in
  4323. *GNU*)
  4324. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4325. *)
  4326. ac_count=0
  4327. printf %s 0123456789 >"conftest.in"
  4328. while :
  4329. do
  4330. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4331. mv "conftest.tmp" "conftest.in"
  4332. cp "conftest.in" "conftest.nl"
  4333. printf "%s\n" 'EGREP' >> "conftest.nl"
  4334. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4335. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4336. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4337. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4338. # Best one so far, save it but keep looking for a better one
  4339. ac_cv_path_EGREP="$ac_path_EGREP"
  4340. ac_path_EGREP_max=$ac_count
  4341. fi
  4342. # 10*(2^10) chars as input seems more than enough
  4343. test $ac_count -gt 10 && break
  4344. done
  4345. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4346. esac
  4347. $ac_path_EGREP_found && break 3
  4348. done
  4349. done
  4350. done
  4351. IFS=$as_save_IFS
  4352. if test -z "$ac_cv_path_EGREP"; then
  4353. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4354. fi
  4355. else
  4356. ac_cv_path_EGREP=$EGREP
  4357. fi
  4358. fi
  4359. fi
  4360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4361. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4362. EGREP="$ac_cv_path_EGREP"
  4363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4364. printf %s "checking for fgrep... " >&6; }
  4365. if test ${ac_cv_path_FGREP+y}
  4366. then :
  4367. printf %s "(cached) " >&6
  4368. else $as_nop
  4369. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4370. then ac_cv_path_FGREP="$GREP -F"
  4371. else
  4372. if test -z "$FGREP"; then
  4373. ac_path_FGREP_found=false
  4374. # Loop through the user's path and test for each of PROGNAME-LIST
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4377. do
  4378. IFS=$as_save_IFS
  4379. case $as_dir in #(((
  4380. '') as_dir=./ ;;
  4381. */) ;;
  4382. *) as_dir=$as_dir/ ;;
  4383. esac
  4384. for ac_prog in fgrep
  4385. do
  4386. for ac_exec_ext in '' $ac_executable_extensions; do
  4387. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4388. as_fn_executable_p "$ac_path_FGREP" || continue
  4389. # Check for GNU ac_path_FGREP and select it if it is found.
  4390. # Check for GNU $ac_path_FGREP
  4391. case `"$ac_path_FGREP" --version 2>&1` in
  4392. *GNU*)
  4393. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4394. *)
  4395. ac_count=0
  4396. printf %s 0123456789 >"conftest.in"
  4397. while :
  4398. do
  4399. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4400. mv "conftest.tmp" "conftest.in"
  4401. cp "conftest.in" "conftest.nl"
  4402. printf "%s\n" 'FGREP' >> "conftest.nl"
  4403. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4404. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4405. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4406. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4407. # Best one so far, save it but keep looking for a better one
  4408. ac_cv_path_FGREP="$ac_path_FGREP"
  4409. ac_path_FGREP_max=$ac_count
  4410. fi
  4411. # 10*(2^10) chars as input seems more than enough
  4412. test $ac_count -gt 10 && break
  4413. done
  4414. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4415. esac
  4416. $ac_path_FGREP_found && break 3
  4417. done
  4418. done
  4419. done
  4420. IFS=$as_save_IFS
  4421. if test -z "$ac_cv_path_FGREP"; then
  4422. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4423. fi
  4424. else
  4425. ac_cv_path_FGREP=$FGREP
  4426. fi
  4427. fi
  4428. fi
  4429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4430. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4431. FGREP="$ac_cv_path_FGREP"
  4432. test -z "$GREP" && GREP=grep
  4433. # Check whether --with-gnu-ld was given.
  4434. if test ${with_gnu_ld+y}
  4435. then :
  4436. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4437. else $as_nop
  4438. with_gnu_ld=no
  4439. fi
  4440. ac_prog=ld
  4441. if test yes = "$GCC"; then
  4442. # Check if gcc -print-prog-name=ld gives a path.
  4443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4444. printf %s "checking for ld used by $CC... " >&6; }
  4445. case $host in
  4446. *-*-mingw*)
  4447. # gcc leaves a trailing carriage return, which upsets mingw
  4448. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4449. *)
  4450. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4451. esac
  4452. case $ac_prog in
  4453. # Accept absolute paths.
  4454. [\\/]* | ?:[\\/]*)
  4455. re_direlt='/[^/][^/]*/\.\./'
  4456. # Canonicalize the pathname of ld
  4457. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4458. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4459. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4460. done
  4461. test -z "$LD" && LD=$ac_prog
  4462. ;;
  4463. "")
  4464. # If it fails, then pretend we aren't using GCC.
  4465. ac_prog=ld
  4466. ;;
  4467. *)
  4468. # If it is relative, then search for the first ld in PATH.
  4469. with_gnu_ld=unknown
  4470. ;;
  4471. esac
  4472. elif test yes = "$with_gnu_ld"; then
  4473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4474. printf %s "checking for GNU ld... " >&6; }
  4475. else
  4476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4477. printf %s "checking for non-GNU ld... " >&6; }
  4478. fi
  4479. if test ${lt_cv_path_LD+y}
  4480. then :
  4481. printf %s "(cached) " >&6
  4482. else $as_nop
  4483. if test -z "$LD"; then
  4484. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4485. for ac_dir in $PATH; do
  4486. IFS=$lt_save_ifs
  4487. test -z "$ac_dir" && ac_dir=.
  4488. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4489. lt_cv_path_LD=$ac_dir/$ac_prog
  4490. # Check to see if the program is GNU ld. I'd rather use --version,
  4491. # but apparently some variants of GNU ld only accept -v.
  4492. # Break only if it was the GNU/non-GNU ld that we prefer.
  4493. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4494. *GNU* | *'with BFD'*)
  4495. test no != "$with_gnu_ld" && break
  4496. ;;
  4497. *)
  4498. test yes != "$with_gnu_ld" && break
  4499. ;;
  4500. esac
  4501. fi
  4502. done
  4503. IFS=$lt_save_ifs
  4504. else
  4505. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4506. fi
  4507. fi
  4508. LD=$lt_cv_path_LD
  4509. if test -n "$LD"; then
  4510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4511. printf "%s\n" "$LD" >&6; }
  4512. else
  4513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4514. printf "%s\n" "no" >&6; }
  4515. fi
  4516. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4518. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4519. if test ${lt_cv_prog_gnu_ld+y}
  4520. then :
  4521. printf %s "(cached) " >&6
  4522. else $as_nop
  4523. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4524. case `$LD -v 2>&1 </dev/null` in
  4525. *GNU* | *'with BFD'*)
  4526. lt_cv_prog_gnu_ld=yes
  4527. ;;
  4528. *)
  4529. lt_cv_prog_gnu_ld=no
  4530. ;;
  4531. esac
  4532. fi
  4533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4534. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4535. with_gnu_ld=$lt_cv_prog_gnu_ld
  4536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4537. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4538. if test ${lt_cv_path_NM+y}
  4539. then :
  4540. printf %s "(cached) " >&6
  4541. else $as_nop
  4542. if test -n "$NM"; then
  4543. # Let the user override the test.
  4544. lt_cv_path_NM=$NM
  4545. else
  4546. lt_nm_to_check=${ac_tool_prefix}nm
  4547. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4548. lt_nm_to_check="$lt_nm_to_check nm"
  4549. fi
  4550. for lt_tmp_nm in $lt_nm_to_check; do
  4551. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4552. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4553. IFS=$lt_save_ifs
  4554. test -z "$ac_dir" && ac_dir=.
  4555. tmp_nm=$ac_dir/$lt_tmp_nm
  4556. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4557. # Check to see if the nm accepts a BSD-compat flag.
  4558. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4559. # nm: unknown option "B" ignored
  4560. # Tru64's nm complains that /dev/null is an invalid object file
  4561. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4562. case $build_os in
  4563. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4564. *) lt_bad_file=/dev/null ;;
  4565. esac
  4566. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4567. *$lt_bad_file* | *'Invalid file or object type'*)
  4568. lt_cv_path_NM="$tmp_nm -B"
  4569. break 2
  4570. ;;
  4571. *)
  4572. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4573. */dev/null*)
  4574. lt_cv_path_NM="$tmp_nm -p"
  4575. break 2
  4576. ;;
  4577. *)
  4578. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4579. continue # so that we can try to find one that supports BSD flags
  4580. ;;
  4581. esac
  4582. ;;
  4583. esac
  4584. fi
  4585. done
  4586. IFS=$lt_save_ifs
  4587. done
  4588. : ${lt_cv_path_NM=no}
  4589. fi
  4590. fi
  4591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4592. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4593. if test no != "$lt_cv_path_NM"; then
  4594. NM=$lt_cv_path_NM
  4595. else
  4596. # Didn't find any BSD compatible name lister, look for dumpbin.
  4597. if test -n "$DUMPBIN"; then :
  4598. # Let the user override the test.
  4599. else
  4600. if test -n "$ac_tool_prefix"; then
  4601. for ac_prog in dumpbin "link -dump"
  4602. do
  4603. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4604. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4606. printf %s "checking for $ac_word... " >&6; }
  4607. if test ${ac_cv_prog_DUMPBIN+y}
  4608. then :
  4609. printf %s "(cached) " >&6
  4610. else $as_nop
  4611. if test -n "$DUMPBIN"; then
  4612. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. case $as_dir in #(((
  4619. '') as_dir=./ ;;
  4620. */) ;;
  4621. *) as_dir=$as_dir/ ;;
  4622. esac
  4623. for ac_exec_ext in '' $ac_executable_extensions; do
  4624. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4625. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4626. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4627. break 2
  4628. fi
  4629. done
  4630. done
  4631. IFS=$as_save_IFS
  4632. fi
  4633. fi
  4634. DUMPBIN=$ac_cv_prog_DUMPBIN
  4635. if test -n "$DUMPBIN"; then
  4636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4637. printf "%s\n" "$DUMPBIN" >&6; }
  4638. else
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4640. printf "%s\n" "no" >&6; }
  4641. fi
  4642. test -n "$DUMPBIN" && break
  4643. done
  4644. fi
  4645. if test -z "$DUMPBIN"; then
  4646. ac_ct_DUMPBIN=$DUMPBIN
  4647. for ac_prog in dumpbin "link -dump"
  4648. do
  4649. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4650. set dummy $ac_prog; ac_word=$2
  4651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4652. printf %s "checking for $ac_word... " >&6; }
  4653. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4654. then :
  4655. printf %s "(cached) " >&6
  4656. else $as_nop
  4657. if test -n "$ac_ct_DUMPBIN"; then
  4658. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4659. else
  4660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4661. for as_dir in $PATH
  4662. do
  4663. IFS=$as_save_IFS
  4664. case $as_dir in #(((
  4665. '') as_dir=./ ;;
  4666. */) ;;
  4667. *) as_dir=$as_dir/ ;;
  4668. esac
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4671. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4673. break 2
  4674. fi
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. fi
  4679. fi
  4680. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4681. if test -n "$ac_ct_DUMPBIN"; then
  4682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4683. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4684. else
  4685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4686. printf "%s\n" "no" >&6; }
  4687. fi
  4688. test -n "$ac_ct_DUMPBIN" && break
  4689. done
  4690. if test "x$ac_ct_DUMPBIN" = x; then
  4691. DUMPBIN=":"
  4692. else
  4693. case $cross_compiling:$ac_tool_warned in
  4694. yes:)
  4695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4696. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4697. ac_tool_warned=yes ;;
  4698. esac
  4699. DUMPBIN=$ac_ct_DUMPBIN
  4700. fi
  4701. fi
  4702. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4703. *COFF*)
  4704. DUMPBIN="$DUMPBIN -symbols -headers"
  4705. ;;
  4706. *)
  4707. DUMPBIN=:
  4708. ;;
  4709. esac
  4710. fi
  4711. if test : != "$DUMPBIN"; then
  4712. NM=$DUMPBIN
  4713. fi
  4714. fi
  4715. test -z "$NM" && NM=nm
  4716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4717. printf %s "checking the name lister ($NM) interface... " >&6; }
  4718. if test ${lt_cv_nm_interface+y}
  4719. then :
  4720. printf %s "(cached) " >&6
  4721. else $as_nop
  4722. lt_cv_nm_interface="BSD nm"
  4723. echo "int some_variable = 0;" > conftest.$ac_ext
  4724. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4725. (eval "$ac_compile" 2>conftest.err)
  4726. cat conftest.err >&5
  4727. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4728. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4729. cat conftest.err >&5
  4730. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4731. cat conftest.out >&5
  4732. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4733. lt_cv_nm_interface="MS dumpbin"
  4734. fi
  4735. rm -f conftest*
  4736. fi
  4737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4738. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4740. printf %s "checking whether ln -s works... " >&6; }
  4741. LN_S=$as_ln_s
  4742. if test "$LN_S" = "ln -s"; then
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4744. printf "%s\n" "yes" >&6; }
  4745. else
  4746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4747. printf "%s\n" "no, using $LN_S" >&6; }
  4748. fi
  4749. # find the maximum length of command line arguments
  4750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4751. printf %s "checking the maximum length of command line arguments... " >&6; }
  4752. if test ${lt_cv_sys_max_cmd_len+y}
  4753. then :
  4754. printf %s "(cached) " >&6
  4755. else $as_nop
  4756. i=0
  4757. teststring=ABCD
  4758. case $build_os in
  4759. msdosdjgpp*)
  4760. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4761. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4762. # during glob expansion). Even if it were fixed, the result of this
  4763. # check would be larger than it should be.
  4764. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4765. ;;
  4766. gnu*)
  4767. # Under GNU Hurd, this test is not required because there is
  4768. # no limit to the length of command line arguments.
  4769. # Libtool will interpret -1 as no limit whatsoever
  4770. lt_cv_sys_max_cmd_len=-1;
  4771. ;;
  4772. cygwin* | mingw* | cegcc*)
  4773. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4774. # about 5 minutes as the teststring grows exponentially.
  4775. # Worse, since 9x/ME are not pre-emptively multitasking,
  4776. # you end up with a "frozen" computer, even though with patience
  4777. # the test eventually succeeds (with a max line length of 256k).
  4778. # Instead, let's just punt: use the minimum linelength reported by
  4779. # all of the supported platforms: 8192 (on NT/2K/XP).
  4780. lt_cv_sys_max_cmd_len=8192;
  4781. ;;
  4782. mint*)
  4783. # On MiNT this can take a long time and run out of memory.
  4784. lt_cv_sys_max_cmd_len=8192;
  4785. ;;
  4786. amigaos*)
  4787. # On AmigaOS with pdksh, this test takes hours, literally.
  4788. # So we just punt and use a minimum line length of 8192.
  4789. lt_cv_sys_max_cmd_len=8192;
  4790. ;;
  4791. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4792. # This has been around since 386BSD, at least. Likely further.
  4793. if test -x /sbin/sysctl; then
  4794. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4795. elif test -x /usr/sbin/sysctl; then
  4796. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4797. else
  4798. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4799. fi
  4800. # And add a safety zone
  4801. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4802. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4803. ;;
  4804. interix*)
  4805. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4806. lt_cv_sys_max_cmd_len=196608
  4807. ;;
  4808. os2*)
  4809. # The test takes a long time on OS/2.
  4810. lt_cv_sys_max_cmd_len=8192
  4811. ;;
  4812. osf*)
  4813. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4814. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4815. # nice to cause kernel panics so lets avoid the loop below.
  4816. # First set a reasonable default.
  4817. lt_cv_sys_max_cmd_len=16384
  4818. #
  4819. if test -x /sbin/sysconfig; then
  4820. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4821. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4822. esac
  4823. fi
  4824. ;;
  4825. sco3.2v5*)
  4826. lt_cv_sys_max_cmd_len=102400
  4827. ;;
  4828. sysv5* | sco5v6* | sysv4.2uw2*)
  4829. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4830. if test -n "$kargmax"; then
  4831. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4832. else
  4833. lt_cv_sys_max_cmd_len=32768
  4834. fi
  4835. ;;
  4836. *)
  4837. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4838. if test -n "$lt_cv_sys_max_cmd_len" && \
  4839. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4840. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4841. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4842. else
  4843. # Make teststring a little bigger before we do anything with it.
  4844. # a 1K string should be a reasonable start.
  4845. for i in 1 2 3 4 5 6 7 8; do
  4846. teststring=$teststring$teststring
  4847. done
  4848. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4849. # If test is not a shell built-in, we'll probably end up computing a
  4850. # maximum length that is only half of the actual maximum length, but
  4851. # we can't tell.
  4852. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4853. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4854. test 17 != "$i" # 1/2 MB should be enough
  4855. do
  4856. i=`expr $i + 1`
  4857. teststring=$teststring$teststring
  4858. done
  4859. # Only check the string length outside the loop.
  4860. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4861. teststring=
  4862. # Add a significant safety factor because C++ compilers can tack on
  4863. # massive amounts of additional arguments before passing them to the
  4864. # linker. It appears as though 1/2 is a usable value.
  4865. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4866. fi
  4867. ;;
  4868. esac
  4869. fi
  4870. if test -n "$lt_cv_sys_max_cmd_len"; then
  4871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4872. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4873. else
  4874. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4875. printf "%s\n" "none" >&6; }
  4876. fi
  4877. max_cmd_len=$lt_cv_sys_max_cmd_len
  4878. : ${CP="cp -f"}
  4879. : ${MV="mv -f"}
  4880. : ${RM="rm -f"}
  4881. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4882. lt_unset=unset
  4883. else
  4884. lt_unset=false
  4885. fi
  4886. # test EBCDIC or ASCII
  4887. case `echo X|tr X '\101'` in
  4888. A) # ASCII based system
  4889. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4890. lt_SP2NL='tr \040 \012'
  4891. lt_NL2SP='tr \015\012 \040\040'
  4892. ;;
  4893. *) # EBCDIC based system
  4894. lt_SP2NL='tr \100 \n'
  4895. lt_NL2SP='tr \r\n \100\100'
  4896. ;;
  4897. esac
  4898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4899. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4900. if test ${lt_cv_to_host_file_cmd+y}
  4901. then :
  4902. printf %s "(cached) " >&6
  4903. else $as_nop
  4904. case $host in
  4905. *-*-mingw* )
  4906. case $build in
  4907. *-*-mingw* ) # actually msys
  4908. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4909. ;;
  4910. *-*-cygwin* )
  4911. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4912. ;;
  4913. * ) # otherwise, assume *nix
  4914. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4915. ;;
  4916. esac
  4917. ;;
  4918. *-*-cygwin* )
  4919. case $build in
  4920. *-*-mingw* ) # actually msys
  4921. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4922. ;;
  4923. *-*-cygwin* )
  4924. lt_cv_to_host_file_cmd=func_convert_file_noop
  4925. ;;
  4926. * ) # otherwise, assume *nix
  4927. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4928. ;;
  4929. esac
  4930. ;;
  4931. * ) # unhandled hosts (and "normal" native builds)
  4932. lt_cv_to_host_file_cmd=func_convert_file_noop
  4933. ;;
  4934. esac
  4935. fi
  4936. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4938. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4940. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4941. if test ${lt_cv_to_tool_file_cmd+y}
  4942. then :
  4943. printf %s "(cached) " >&6
  4944. else $as_nop
  4945. #assume ordinary cross tools, or native build.
  4946. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4947. case $host in
  4948. *-*-mingw* )
  4949. case $build in
  4950. *-*-mingw* ) # actually msys
  4951. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4952. ;;
  4953. esac
  4954. ;;
  4955. esac
  4956. fi
  4957. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4959. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  4960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4961. printf %s "checking for $LD option to reload object files... " >&6; }
  4962. if test ${lt_cv_ld_reload_flag+y}
  4963. then :
  4964. printf %s "(cached) " >&6
  4965. else $as_nop
  4966. lt_cv_ld_reload_flag='-r'
  4967. fi
  4968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4969. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  4970. reload_flag=$lt_cv_ld_reload_flag
  4971. case $reload_flag in
  4972. "" | " "*) ;;
  4973. *) reload_flag=" $reload_flag" ;;
  4974. esac
  4975. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4976. case $host_os in
  4977. cygwin* | mingw* | pw32* | cegcc*)
  4978. if test yes != "$GCC"; then
  4979. reload_cmds=false
  4980. fi
  4981. ;;
  4982. darwin*)
  4983. if test yes = "$GCC"; then
  4984. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4985. else
  4986. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4987. fi
  4988. ;;
  4989. esac
  4990. if test -n "$ac_tool_prefix"; then
  4991. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4992. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4994. printf %s "checking for $ac_word... " >&6; }
  4995. if test ${ac_cv_prog_OBJDUMP+y}
  4996. then :
  4997. printf %s "(cached) " >&6
  4998. else $as_nop
  4999. if test -n "$OBJDUMP"; then
  5000. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5001. else
  5002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5003. for as_dir in $PATH
  5004. do
  5005. IFS=$as_save_IFS
  5006. case $as_dir in #(((
  5007. '') as_dir=./ ;;
  5008. */) ;;
  5009. *) as_dir=$as_dir/ ;;
  5010. esac
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5013. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5014. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5015. break 2
  5016. fi
  5017. done
  5018. done
  5019. IFS=$as_save_IFS
  5020. fi
  5021. fi
  5022. OBJDUMP=$ac_cv_prog_OBJDUMP
  5023. if test -n "$OBJDUMP"; then
  5024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5025. printf "%s\n" "$OBJDUMP" >&6; }
  5026. else
  5027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5028. printf "%s\n" "no" >&6; }
  5029. fi
  5030. fi
  5031. if test -z "$ac_cv_prog_OBJDUMP"; then
  5032. ac_ct_OBJDUMP=$OBJDUMP
  5033. # Extract the first word of "objdump", so it can be a program name with args.
  5034. set dummy objdump; ac_word=$2
  5035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5036. printf %s "checking for $ac_word... " >&6; }
  5037. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5038. then :
  5039. printf %s "(cached) " >&6
  5040. else $as_nop
  5041. if test -n "$ac_ct_OBJDUMP"; then
  5042. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5043. else
  5044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5045. for as_dir in $PATH
  5046. do
  5047. IFS=$as_save_IFS
  5048. case $as_dir in #(((
  5049. '') as_dir=./ ;;
  5050. */) ;;
  5051. *) as_dir=$as_dir/ ;;
  5052. esac
  5053. for ac_exec_ext in '' $ac_executable_extensions; do
  5054. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5055. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5056. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5057. break 2
  5058. fi
  5059. done
  5060. done
  5061. IFS=$as_save_IFS
  5062. fi
  5063. fi
  5064. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5065. if test -n "$ac_ct_OBJDUMP"; then
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5067. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5068. else
  5069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5070. printf "%s\n" "no" >&6; }
  5071. fi
  5072. if test "x$ac_ct_OBJDUMP" = x; then
  5073. OBJDUMP="false"
  5074. else
  5075. case $cross_compiling:$ac_tool_warned in
  5076. yes:)
  5077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5078. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5079. ac_tool_warned=yes ;;
  5080. esac
  5081. OBJDUMP=$ac_ct_OBJDUMP
  5082. fi
  5083. else
  5084. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5085. fi
  5086. test -z "$OBJDUMP" && OBJDUMP=objdump
  5087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5088. printf %s "checking how to recognize dependent libraries... " >&6; }
  5089. if test ${lt_cv_deplibs_check_method+y}
  5090. then :
  5091. printf %s "(cached) " >&6
  5092. else $as_nop
  5093. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5094. lt_cv_file_magic_test_file=
  5095. lt_cv_deplibs_check_method='unknown'
  5096. # Need to set the preceding variable on all platforms that support
  5097. # interlibrary dependencies.
  5098. # 'none' -- dependencies not supported.
  5099. # 'unknown' -- same as none, but documents that we really don't know.
  5100. # 'pass_all' -- all dependencies passed with no checks.
  5101. # 'test_compile' -- check by making test program.
  5102. # 'file_magic [[regex]]' -- check by looking for files in library path
  5103. # that responds to the $file_magic_cmd with a given extended regex.
  5104. # If you have 'file' or equivalent on your system and you're not sure
  5105. # whether 'pass_all' will *always* work, you probably want this one.
  5106. case $host_os in
  5107. aix[4-9]*)
  5108. lt_cv_deplibs_check_method=pass_all
  5109. ;;
  5110. beos*)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. bsdi[45]*)
  5114. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5115. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5116. lt_cv_file_magic_test_file=/shlib/libc.so
  5117. ;;
  5118. cygwin*)
  5119. # func_win32_libid is a shell function defined in ltmain.sh
  5120. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5121. lt_cv_file_magic_cmd='func_win32_libid'
  5122. lt_cv_deplibs_check_method=pass_all # SDL customization
  5123. ;;
  5124. mingw* | pw32*)
  5125. # Base MSYS/MinGW do not provide the 'file' command needed by
  5126. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5127. # unless we find 'file', for example because we are cross-compiling.
  5128. if ( file / ) >/dev/null 2>&1; then
  5129. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5130. lt_cv_file_magic_cmd='func_win32_libid'
  5131. else
  5132. # Keep this pattern in sync with the one in func_win32_libid.
  5133. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5134. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5135. fi
  5136. lt_cv_deplibs_check_method=pass_all # SDL customization
  5137. ;;
  5138. cegcc*)
  5139. # use the weaker test based on 'objdump'. See mingw*.
  5140. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5141. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5142. ;;
  5143. darwin* | rhapsody*)
  5144. lt_cv_deplibs_check_method=pass_all
  5145. ;;
  5146. freebsd* | dragonfly* | midnightbsd*)
  5147. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5148. case $host_cpu in
  5149. i*86 )
  5150. # Not sure whether the presence of OpenBSD here was a mistake.
  5151. # Let's accept both of them until this is cleared up.
  5152. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5153. lt_cv_file_magic_cmd=/usr/bin/file
  5154. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5155. ;;
  5156. esac
  5157. else
  5158. lt_cv_deplibs_check_method=pass_all
  5159. fi
  5160. ;;
  5161. haiku*)
  5162. lt_cv_deplibs_check_method=pass_all
  5163. ;;
  5164. hpux10.20* | hpux11*)
  5165. lt_cv_file_magic_cmd=/usr/bin/file
  5166. case $host_cpu in
  5167. ia64*)
  5168. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5169. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5170. ;;
  5171. hppa*64*)
  5172. 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]'
  5173. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5174. ;;
  5175. *)
  5176. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5177. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5178. ;;
  5179. esac
  5180. ;;
  5181. interix[3-9]*)
  5182. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5183. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5184. ;;
  5185. irix5* | irix6* | nonstopux*)
  5186. case $LD in
  5187. *-32|*"-32 ") libmagic=32-bit;;
  5188. *-n32|*"-n32 ") libmagic=N32;;
  5189. *-64|*"-64 ") libmagic=64-bit;;
  5190. *) libmagic=never-match;;
  5191. esac
  5192. lt_cv_deplibs_check_method=pass_all
  5193. ;;
  5194. # This must be glibc/ELF.
  5195. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5196. lt_cv_deplibs_check_method=pass_all
  5197. ;;
  5198. netbsd*)
  5199. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5200. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5201. else
  5202. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5203. fi
  5204. ;;
  5205. newos6*)
  5206. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5207. lt_cv_file_magic_cmd=/usr/bin/file
  5208. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5209. ;;
  5210. *nto* | *qnx*)
  5211. lt_cv_deplibs_check_method=pass_all
  5212. ;;
  5213. openbsd* | bitrig*)
  5214. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5215. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5216. else
  5217. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5218. fi
  5219. ;;
  5220. osf3* | osf4* | osf5*)
  5221. lt_cv_deplibs_check_method=pass_all
  5222. ;;
  5223. rdos*)
  5224. lt_cv_deplibs_check_method=pass_all
  5225. ;;
  5226. solaris*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. sysv4 | sysv4.3*)
  5233. case $host_vendor in
  5234. motorola)
  5235. 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]'
  5236. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5237. ;;
  5238. ncr)
  5239. lt_cv_deplibs_check_method=pass_all
  5240. ;;
  5241. sequent)
  5242. lt_cv_file_magic_cmd='/bin/file'
  5243. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5244. ;;
  5245. sni)
  5246. lt_cv_file_magic_cmd='/bin/file'
  5247. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5248. lt_cv_file_magic_test_file=/lib/libc.so
  5249. ;;
  5250. siemens)
  5251. lt_cv_deplibs_check_method=pass_all
  5252. ;;
  5253. pc)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. esac
  5257. ;;
  5258. tpf*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. os2*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. esac
  5265. fi
  5266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5267. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5268. file_magic_glob=
  5269. want_nocaseglob=no
  5270. if test "$build" = "$host"; then
  5271. case $host_os in
  5272. mingw* | pw32*)
  5273. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5274. want_nocaseglob=yes
  5275. else
  5276. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5277. fi
  5278. ;;
  5279. esac
  5280. fi
  5281. file_magic_cmd=$lt_cv_file_magic_cmd
  5282. deplibs_check_method=$lt_cv_deplibs_check_method
  5283. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5284. if test -n "$ac_tool_prefix"; then
  5285. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5286. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5288. printf %s "checking for $ac_word... " >&6; }
  5289. if test ${ac_cv_prog_DLLTOOL+y}
  5290. then :
  5291. printf %s "(cached) " >&6
  5292. else $as_nop
  5293. if test -n "$DLLTOOL"; then
  5294. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5295. else
  5296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5297. for as_dir in $PATH
  5298. do
  5299. IFS=$as_save_IFS
  5300. case $as_dir in #(((
  5301. '') as_dir=./ ;;
  5302. */) ;;
  5303. *) as_dir=$as_dir/ ;;
  5304. esac
  5305. for ac_exec_ext in '' $ac_executable_extensions; do
  5306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5307. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5309. break 2
  5310. fi
  5311. done
  5312. done
  5313. IFS=$as_save_IFS
  5314. fi
  5315. fi
  5316. DLLTOOL=$ac_cv_prog_DLLTOOL
  5317. if test -n "$DLLTOOL"; then
  5318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5319. printf "%s\n" "$DLLTOOL" >&6; }
  5320. else
  5321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5322. printf "%s\n" "no" >&6; }
  5323. fi
  5324. fi
  5325. if test -z "$ac_cv_prog_DLLTOOL"; then
  5326. ac_ct_DLLTOOL=$DLLTOOL
  5327. # Extract the first word of "dlltool", so it can be a program name with args.
  5328. set dummy dlltool; ac_word=$2
  5329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5330. printf %s "checking for $ac_word... " >&6; }
  5331. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5332. then :
  5333. printf %s "(cached) " >&6
  5334. else $as_nop
  5335. if test -n "$ac_ct_DLLTOOL"; then
  5336. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5337. else
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH
  5340. do
  5341. IFS=$as_save_IFS
  5342. case $as_dir in #(((
  5343. '') as_dir=./ ;;
  5344. */) ;;
  5345. *) as_dir=$as_dir/ ;;
  5346. esac
  5347. for ac_exec_ext in '' $ac_executable_extensions; do
  5348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5349. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5351. break 2
  5352. fi
  5353. done
  5354. done
  5355. IFS=$as_save_IFS
  5356. fi
  5357. fi
  5358. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5359. if test -n "$ac_ct_DLLTOOL"; then
  5360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5361. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5362. else
  5363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5364. printf "%s\n" "no" >&6; }
  5365. fi
  5366. if test "x$ac_ct_DLLTOOL" = x; then
  5367. DLLTOOL="false"
  5368. else
  5369. case $cross_compiling:$ac_tool_warned in
  5370. yes:)
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5373. ac_tool_warned=yes ;;
  5374. esac
  5375. DLLTOOL=$ac_ct_DLLTOOL
  5376. fi
  5377. else
  5378. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5379. fi
  5380. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5382. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5383. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5384. then :
  5385. printf %s "(cached) " >&6
  5386. else $as_nop
  5387. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5388. case $host_os in
  5389. cygwin* | mingw* | pw32* | cegcc*)
  5390. # two different shell functions defined in ltmain.sh;
  5391. # decide which one to use based on capabilities of $DLLTOOL
  5392. case `$DLLTOOL --help 2>&1` in
  5393. *--identify-strict*)
  5394. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5395. ;;
  5396. *)
  5397. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5398. ;;
  5399. esac
  5400. ;;
  5401. *)
  5402. # fallback: assume linklib IS sharedlib
  5403. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5404. ;;
  5405. esac
  5406. fi
  5407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5408. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5409. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5410. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5411. if test -n "$ac_tool_prefix"; then
  5412. for ac_prog in ar
  5413. do
  5414. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5415. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5417. printf %s "checking for $ac_word... " >&6; }
  5418. if test ${ac_cv_prog_AR+y}
  5419. then :
  5420. printf %s "(cached) " >&6
  5421. else $as_nop
  5422. if test -n "$AR"; then
  5423. ac_cv_prog_AR="$AR" # Let the user override the test.
  5424. else
  5425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5426. for as_dir in $PATH
  5427. do
  5428. IFS=$as_save_IFS
  5429. case $as_dir in #(((
  5430. '') as_dir=./ ;;
  5431. */) ;;
  5432. *) as_dir=$as_dir/ ;;
  5433. esac
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5436. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5437. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. fi
  5444. fi
  5445. AR=$ac_cv_prog_AR
  5446. if test -n "$AR"; then
  5447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5448. printf "%s\n" "$AR" >&6; }
  5449. else
  5450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. printf "%s\n" "no" >&6; }
  5452. fi
  5453. test -n "$AR" && break
  5454. done
  5455. fi
  5456. if test -z "$AR"; then
  5457. ac_ct_AR=$AR
  5458. for ac_prog in ar
  5459. do
  5460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5461. set dummy $ac_prog; ac_word=$2
  5462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. printf %s "checking for $ac_word... " >&6; }
  5464. if test ${ac_cv_prog_ac_ct_AR+y}
  5465. then :
  5466. printf %s "(cached) " >&6
  5467. else $as_nop
  5468. if test -n "$ac_ct_AR"; then
  5469. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. case $as_dir in #(((
  5476. '') as_dir=./ ;;
  5477. */) ;;
  5478. *) as_dir=$as_dir/ ;;
  5479. esac
  5480. for ac_exec_ext in '' $ac_executable_extensions; do
  5481. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5482. ac_cv_prog_ac_ct_AR="$ac_prog"
  5483. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5484. break 2
  5485. fi
  5486. done
  5487. done
  5488. IFS=$as_save_IFS
  5489. fi
  5490. fi
  5491. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5492. if test -n "$ac_ct_AR"; then
  5493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5494. printf "%s\n" "$ac_ct_AR" >&6; }
  5495. else
  5496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5497. printf "%s\n" "no" >&6; }
  5498. fi
  5499. test -n "$ac_ct_AR" && break
  5500. done
  5501. if test "x$ac_ct_AR" = x; then
  5502. AR="false"
  5503. else
  5504. case $cross_compiling:$ac_tool_warned in
  5505. yes:)
  5506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5507. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5508. ac_tool_warned=yes ;;
  5509. esac
  5510. AR=$ac_ct_AR
  5511. fi
  5512. fi
  5513. : ${AR=ar}
  5514. : ${AR_FLAGS=cru}
  5515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5516. printf %s "checking for archiver @FILE support... " >&6; }
  5517. if test ${lt_cv_ar_at_file+y}
  5518. then :
  5519. printf %s "(cached) " >&6
  5520. else $as_nop
  5521. lt_cv_ar_at_file=no
  5522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5523. /* end confdefs.h. */
  5524. int
  5525. main (void)
  5526. {
  5527. ;
  5528. return 0;
  5529. }
  5530. _ACEOF
  5531. if ac_fn_c_try_compile "$LINENO"
  5532. then :
  5533. echo conftest.$ac_objext > conftest.lst
  5534. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5535. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5536. (eval $lt_ar_try) 2>&5
  5537. ac_status=$?
  5538. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5539. test $ac_status = 0; }
  5540. if test 0 -eq "$ac_status"; then
  5541. # Ensure the archiver fails upon bogus file names.
  5542. rm -f conftest.$ac_objext libconftest.a
  5543. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5544. (eval $lt_ar_try) 2>&5
  5545. ac_status=$?
  5546. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5547. test $ac_status = 0; }
  5548. if test 0 -ne "$ac_status"; then
  5549. lt_cv_ar_at_file=@
  5550. fi
  5551. fi
  5552. rm -f conftest.* libconftest.a
  5553. fi
  5554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5555. fi
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5557. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5558. if test no = "$lt_cv_ar_at_file"; then
  5559. archiver_list_spec=
  5560. else
  5561. archiver_list_spec=$lt_cv_ar_at_file
  5562. fi
  5563. if test -n "$ac_tool_prefix"; then
  5564. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5565. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. printf %s "checking for $ac_word... " >&6; }
  5568. if test ${ac_cv_prog_STRIP+y}
  5569. then :
  5570. printf %s "(cached) " >&6
  5571. else $as_nop
  5572. if test -n "$STRIP"; then
  5573. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5574. else
  5575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5576. for as_dir in $PATH
  5577. do
  5578. IFS=$as_save_IFS
  5579. case $as_dir in #(((
  5580. '') as_dir=./ ;;
  5581. */) ;;
  5582. *) as_dir=$as_dir/ ;;
  5583. esac
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5586. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5587. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. STRIP=$ac_cv_prog_STRIP
  5596. if test -n "$STRIP"; then
  5597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5598. printf "%s\n" "$STRIP" >&6; }
  5599. else
  5600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5601. printf "%s\n" "no" >&6; }
  5602. fi
  5603. fi
  5604. if test -z "$ac_cv_prog_STRIP"; then
  5605. ac_ct_STRIP=$STRIP
  5606. # Extract the first word of "strip", so it can be a program name with args.
  5607. set dummy strip; ac_word=$2
  5608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5609. printf %s "checking for $ac_word... " >&6; }
  5610. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5611. then :
  5612. printf %s "(cached) " >&6
  5613. else $as_nop
  5614. if test -n "$ac_ct_STRIP"; then
  5615. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5616. else
  5617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5618. for as_dir in $PATH
  5619. do
  5620. IFS=$as_save_IFS
  5621. case $as_dir in #(((
  5622. '') as_dir=./ ;;
  5623. */) ;;
  5624. *) as_dir=$as_dir/ ;;
  5625. esac
  5626. for ac_exec_ext in '' $ac_executable_extensions; do
  5627. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5628. ac_cv_prog_ac_ct_STRIP="strip"
  5629. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5630. break 2
  5631. fi
  5632. done
  5633. done
  5634. IFS=$as_save_IFS
  5635. fi
  5636. fi
  5637. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5638. if test -n "$ac_ct_STRIP"; then
  5639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5640. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5641. else
  5642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5643. printf "%s\n" "no" >&6; }
  5644. fi
  5645. if test "x$ac_ct_STRIP" = x; then
  5646. STRIP=":"
  5647. else
  5648. case $cross_compiling:$ac_tool_warned in
  5649. yes:)
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5651. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5652. ac_tool_warned=yes ;;
  5653. esac
  5654. STRIP=$ac_ct_STRIP
  5655. fi
  5656. else
  5657. STRIP="$ac_cv_prog_STRIP"
  5658. fi
  5659. test -z "$STRIP" && STRIP=:
  5660. if test -n "$ac_tool_prefix"; then
  5661. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5662. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5664. printf %s "checking for $ac_word... " >&6; }
  5665. if test ${ac_cv_prog_RANLIB+y}
  5666. then :
  5667. printf %s "(cached) " >&6
  5668. else $as_nop
  5669. if test -n "$RANLIB"; then
  5670. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5671. else
  5672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5673. for as_dir in $PATH
  5674. do
  5675. IFS=$as_save_IFS
  5676. case $as_dir in #(((
  5677. '') as_dir=./ ;;
  5678. */) ;;
  5679. *) as_dir=$as_dir/ ;;
  5680. esac
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5684. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. RANLIB=$ac_cv_prog_RANLIB
  5693. if test -n "$RANLIB"; then
  5694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5695. printf "%s\n" "$RANLIB" >&6; }
  5696. else
  5697. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. printf "%s\n" "no" >&6; }
  5699. fi
  5700. fi
  5701. if test -z "$ac_cv_prog_RANLIB"; then
  5702. ac_ct_RANLIB=$RANLIB
  5703. # Extract the first word of "ranlib", so it can be a program name with args.
  5704. set dummy ranlib; ac_word=$2
  5705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. printf %s "checking for $ac_word... " >&6; }
  5707. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5708. then :
  5709. printf %s "(cached) " >&6
  5710. else $as_nop
  5711. if test -n "$ac_ct_RANLIB"; then
  5712. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5713. else
  5714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5715. for as_dir in $PATH
  5716. do
  5717. IFS=$as_save_IFS
  5718. case $as_dir in #(((
  5719. '') as_dir=./ ;;
  5720. */) ;;
  5721. *) as_dir=$as_dir/ ;;
  5722. esac
  5723. for ac_exec_ext in '' $ac_executable_extensions; do
  5724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5725. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5727. break 2
  5728. fi
  5729. done
  5730. done
  5731. IFS=$as_save_IFS
  5732. fi
  5733. fi
  5734. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5735. if test -n "$ac_ct_RANLIB"; then
  5736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5737. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5738. else
  5739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5740. printf "%s\n" "no" >&6; }
  5741. fi
  5742. if test "x$ac_ct_RANLIB" = x; then
  5743. RANLIB=":"
  5744. else
  5745. case $cross_compiling:$ac_tool_warned in
  5746. yes:)
  5747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5748. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5749. ac_tool_warned=yes ;;
  5750. esac
  5751. RANLIB=$ac_ct_RANLIB
  5752. fi
  5753. else
  5754. RANLIB="$ac_cv_prog_RANLIB"
  5755. fi
  5756. test -z "$RANLIB" && RANLIB=:
  5757. # Determine commands to create old-style static archives.
  5758. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5759. old_postinstall_cmds='chmod 644 $oldlib'
  5760. old_postuninstall_cmds=
  5761. if test -n "$RANLIB"; then
  5762. case $host_os in
  5763. bitrig* | openbsd*)
  5764. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5765. ;;
  5766. *)
  5767. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5768. ;;
  5769. esac
  5770. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5771. fi
  5772. case $host_os in
  5773. darwin*)
  5774. lock_old_archive_extraction=yes ;;
  5775. *)
  5776. lock_old_archive_extraction=no ;;
  5777. esac
  5778. for ac_prog in gawk mawk nawk awk
  5779. do
  5780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5781. set dummy $ac_prog; ac_word=$2
  5782. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. printf %s "checking for $ac_word... " >&6; }
  5784. if test ${ac_cv_prog_AWK+y}
  5785. then :
  5786. printf %s "(cached) " >&6
  5787. else $as_nop
  5788. if test -n "$AWK"; then
  5789. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5790. else
  5791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5792. for as_dir in $PATH
  5793. do
  5794. IFS=$as_save_IFS
  5795. case $as_dir in #(((
  5796. '') as_dir=./ ;;
  5797. */) ;;
  5798. *) as_dir=$as_dir/ ;;
  5799. esac
  5800. for ac_exec_ext in '' $ac_executable_extensions; do
  5801. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5802. ac_cv_prog_AWK="$ac_prog"
  5803. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5804. break 2
  5805. fi
  5806. done
  5807. done
  5808. IFS=$as_save_IFS
  5809. fi
  5810. fi
  5811. AWK=$ac_cv_prog_AWK
  5812. if test -n "$AWK"; then
  5813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5814. printf "%s\n" "$AWK" >&6; }
  5815. else
  5816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5817. printf "%s\n" "no" >&6; }
  5818. fi
  5819. test -n "$AWK" && break
  5820. done
  5821. # If no C compiler was specified, use CC.
  5822. LTCC=${LTCC-"$CC"}
  5823. # If no C compiler flags were specified, use CFLAGS.
  5824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5825. # Allow CC to be a program name with arguments.
  5826. compiler=$CC
  5827. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5829. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5830. if test ${lt_cv_sys_global_symbol_pipe+y}
  5831. then :
  5832. printf %s "(cached) " >&6
  5833. else $as_nop
  5834. # These are sane defaults that work on at least a few old systems.
  5835. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5836. # Character class describing NM global symbol codes.
  5837. symcode='[BCDEGRST]'
  5838. # Regexp to match symbols that can be accessed directly from C.
  5839. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5840. # Define system-specific variables.
  5841. case $host_os in
  5842. aix*)
  5843. symcode='[BCDT]'
  5844. ;;
  5845. cygwin* | mingw* | pw32* | cegcc*)
  5846. symcode='[ABCDGISTW]'
  5847. ;;
  5848. hpux*)
  5849. if test ia64 = "$host_cpu"; then
  5850. symcode='[ABCDEGRST]'
  5851. fi
  5852. ;;
  5853. irix* | nonstopux*)
  5854. symcode='[BCDEGRST]'
  5855. ;;
  5856. osf*)
  5857. symcode='[BCDEGQRST]'
  5858. ;;
  5859. solaris*)
  5860. symcode='[BCDRT]'
  5861. ;;
  5862. sco3.2v5*)
  5863. symcode='[DT]'
  5864. ;;
  5865. sysv4.2uw2*)
  5866. symcode='[DT]'
  5867. ;;
  5868. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5869. symcode='[ABDT]'
  5870. ;;
  5871. sysv4)
  5872. symcode='[DFNSTU]'
  5873. ;;
  5874. esac
  5875. # If we're using GNU nm, then use its standard symbol codes.
  5876. case `$NM -V 2>&1` in
  5877. *GNU* | *'with BFD'*)
  5878. symcode='[ABCDGIRSTW]' ;;
  5879. esac
  5880. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5881. # Gets list of data symbols to import.
  5882. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5883. # Adjust the below global symbol transforms to fixup imported variables.
  5884. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5885. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5886. lt_c_name_lib_hook="\
  5887. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5888. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5889. else
  5890. # Disable hooks by default.
  5891. lt_cv_sys_global_symbol_to_import=
  5892. lt_cdecl_hook=
  5893. lt_c_name_hook=
  5894. lt_c_name_lib_hook=
  5895. fi
  5896. # Transform an extracted symbol line into a proper C declaration.
  5897. # Some systems (esp. on ia64) link data and code symbols differently,
  5898. # so use this general approach.
  5899. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5900. $lt_cdecl_hook\
  5901. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5902. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5903. # Transform an extracted symbol line into symbol name and symbol address
  5904. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5905. $lt_c_name_hook\
  5906. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5907. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5908. # Transform an extracted symbol line into symbol name with lib prefix and
  5909. # symbol address.
  5910. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5911. $lt_c_name_lib_hook\
  5912. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5913. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5914. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5915. # Handle CRLF in mingw tool chain
  5916. opt_cr=
  5917. case $build_os in
  5918. mingw*)
  5919. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5920. ;;
  5921. esac
  5922. # Try without a prefix underscore, then with it.
  5923. for ac_symprfx in "" "_"; do
  5924. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5925. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5926. # Write the raw and C identifiers.
  5927. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5928. # Fake it for dumpbin and say T for any non-static function,
  5929. # D for any global variable and I for any imported variable.
  5930. # Also find C++ and __fastcall symbols from MSVC++,
  5931. # which start with @ or ?.
  5932. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5933. " {last_section=section; section=\$ 3};"\
  5934. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5935. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5936. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5937. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5938. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5939. " \$ 0!~/External *\|/{next};"\
  5940. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5941. " {if(hide[section]) next};"\
  5942. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5943. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5944. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5945. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5946. " ' prfx=^$ac_symprfx"
  5947. else
  5948. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5949. fi
  5950. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5951. # Check to see that the pipe works correctly.
  5952. pipe_works=no
  5953. rm -f conftest*
  5954. cat > conftest.$ac_ext <<_LT_EOF
  5955. #ifdef __cplusplus
  5956. extern "C" {
  5957. #endif
  5958. char nm_test_var;
  5959. void nm_test_func(void);
  5960. void nm_test_func(void){}
  5961. #ifdef __cplusplus
  5962. }
  5963. #endif
  5964. int main(){nm_test_var='a';nm_test_func();return(0);}
  5965. _LT_EOF
  5966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5967. (eval $ac_compile) 2>&5
  5968. ac_status=$?
  5969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5970. test $ac_status = 0; }; then
  5971. # Now try to grab the symbols.
  5972. nlist=conftest.nm
  5973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5974. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5975. ac_status=$?
  5976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5977. test $ac_status = 0; } && test -s "$nlist"; then
  5978. # Try sorting and uniquifying the output.
  5979. if sort "$nlist" | uniq > "$nlist"T; then
  5980. mv -f "$nlist"T "$nlist"
  5981. else
  5982. rm -f "$nlist"T
  5983. fi
  5984. # Make sure that we snagged all the symbols we need.
  5985. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5986. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5987. cat <<_LT_EOF > conftest.$ac_ext
  5988. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5989. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5990. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5991. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5992. # define LT_DLSYM_CONST
  5993. #elif defined __osf__
  5994. /* This system does not cope well with relocations in const data. */
  5995. # define LT_DLSYM_CONST
  5996. #else
  5997. # define LT_DLSYM_CONST const
  5998. #endif
  5999. #ifdef __cplusplus
  6000. extern "C" {
  6001. #endif
  6002. _LT_EOF
  6003. # Now generate the symbol file.
  6004. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6005. cat <<_LT_EOF >> conftest.$ac_ext
  6006. /* The mapping between symbol names and symbols. */
  6007. LT_DLSYM_CONST struct {
  6008. const char *name;
  6009. void *address;
  6010. }
  6011. lt__PROGRAM__LTX_preloaded_symbols[] =
  6012. {
  6013. { "@PROGRAM@", (void *) 0 },
  6014. _LT_EOF
  6015. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6016. cat <<\_LT_EOF >> conftest.$ac_ext
  6017. {0, (void *) 0}
  6018. };
  6019. /* This works around a problem in FreeBSD linker */
  6020. #ifdef FREEBSD_WORKAROUND
  6021. static const void *lt_preloaded_setup() {
  6022. return lt__PROGRAM__LTX_preloaded_symbols;
  6023. }
  6024. #endif
  6025. #ifdef __cplusplus
  6026. }
  6027. #endif
  6028. _LT_EOF
  6029. # Now try linking the two files.
  6030. mv conftest.$ac_objext conftstm.$ac_objext
  6031. lt_globsym_save_LIBS=$LIBS
  6032. lt_globsym_save_CFLAGS=$CFLAGS
  6033. LIBS=conftstm.$ac_objext
  6034. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6036. (eval $ac_link) 2>&5
  6037. ac_status=$?
  6038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6039. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6040. pipe_works=yes
  6041. fi
  6042. LIBS=$lt_globsym_save_LIBS
  6043. CFLAGS=$lt_globsym_save_CFLAGS
  6044. else
  6045. echo "cannot find nm_test_func in $nlist" >&5
  6046. fi
  6047. else
  6048. echo "cannot find nm_test_var in $nlist" >&5
  6049. fi
  6050. else
  6051. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6052. fi
  6053. else
  6054. echo "$progname: failed program was:" >&5
  6055. cat conftest.$ac_ext >&5
  6056. fi
  6057. rm -rf conftest* conftst*
  6058. # Do not use the global_symbol_pipe unless it works.
  6059. if test yes = "$pipe_works"; then
  6060. break
  6061. else
  6062. lt_cv_sys_global_symbol_pipe=
  6063. fi
  6064. done
  6065. fi
  6066. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6067. lt_cv_sys_global_symbol_to_cdecl=
  6068. fi
  6069. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6071. printf "%s\n" "failed" >&6; }
  6072. else
  6073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6074. printf "%s\n" "ok" >&6; }
  6075. fi
  6076. # Response file support.
  6077. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6078. nm_file_list_spec='@'
  6079. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6080. nm_file_list_spec='@'
  6081. fi
  6082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6083. printf %s "checking for sysroot... " >&6; }
  6084. # Check whether --with-sysroot was given.
  6085. if test ${with_sysroot+y}
  6086. then :
  6087. withval=$with_sysroot;
  6088. else $as_nop
  6089. with_sysroot=no
  6090. fi
  6091. lt_sysroot=
  6092. case $with_sysroot in #(
  6093. yes)
  6094. if test yes = "$GCC"; then
  6095. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6096. fi
  6097. ;; #(
  6098. /*)
  6099. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6100. ;; #(
  6101. no|'')
  6102. ;; #(
  6103. *)
  6104. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6105. printf "%s\n" "$with_sysroot" >&6; }
  6106. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6107. ;;
  6108. esac
  6109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6110. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6112. printf %s "checking for a working dd... " >&6; }
  6113. if test ${ac_cv_path_lt_DD+y}
  6114. then :
  6115. printf %s "(cached) " >&6
  6116. else $as_nop
  6117. printf 0123456789abcdef0123456789abcdef >conftest.i
  6118. cat conftest.i conftest.i >conftest2.i
  6119. : ${lt_DD:=$DD}
  6120. if test -z "$lt_DD"; then
  6121. ac_path_lt_DD_found=false
  6122. # Loop through the user's path and test for each of PROGNAME-LIST
  6123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6124. for as_dir in $PATH
  6125. do
  6126. IFS=$as_save_IFS
  6127. case $as_dir in #(((
  6128. '') as_dir=./ ;;
  6129. */) ;;
  6130. *) as_dir=$as_dir/ ;;
  6131. esac
  6132. for ac_prog in dd
  6133. do
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6136. as_fn_executable_p "$ac_path_lt_DD" || continue
  6137. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6138. cmp -s conftest.i conftest.out \
  6139. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6140. fi
  6141. $ac_path_lt_DD_found && break 3
  6142. done
  6143. done
  6144. done
  6145. IFS=$as_save_IFS
  6146. if test -z "$ac_cv_path_lt_DD"; then
  6147. :
  6148. fi
  6149. else
  6150. ac_cv_path_lt_DD=$lt_DD
  6151. fi
  6152. rm -f conftest.i conftest2.i conftest.out
  6153. fi
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6155. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6157. printf %s "checking how to truncate binary pipes... " >&6; }
  6158. if test ${lt_cv_truncate_bin+y}
  6159. then :
  6160. printf %s "(cached) " >&6
  6161. else $as_nop
  6162. printf 0123456789abcdef0123456789abcdef >conftest.i
  6163. cat conftest.i conftest.i >conftest2.i
  6164. lt_cv_truncate_bin=
  6165. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6166. cmp -s conftest.i conftest.out \
  6167. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6168. fi
  6169. rm -f conftest.i conftest2.i conftest.out
  6170. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6171. fi
  6172. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6173. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6174. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6175. func_cc_basename ()
  6176. {
  6177. for cc_temp in $*""; do
  6178. case $cc_temp in
  6179. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6180. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6181. \-*) ;;
  6182. *) break;;
  6183. esac
  6184. done
  6185. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6186. }
  6187. # Check whether --enable-libtool-lock was given.
  6188. if test ${enable_libtool_lock+y}
  6189. then :
  6190. enableval=$enable_libtool_lock;
  6191. fi
  6192. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6193. # Some flags need to be propagated to the compiler or linker for good
  6194. # libtool support.
  6195. case $host in
  6196. ia64-*-hpux*)
  6197. # Find out what ABI is being produced by ac_compile, and set mode
  6198. # options accordingly.
  6199. echo 'int i;' > conftest.$ac_ext
  6200. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6201. (eval $ac_compile) 2>&5
  6202. ac_status=$?
  6203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6204. test $ac_status = 0; }; then
  6205. case `/usr/bin/file conftest.$ac_objext` in
  6206. *ELF-32*)
  6207. HPUX_IA64_MODE=32
  6208. ;;
  6209. *ELF-64*)
  6210. HPUX_IA64_MODE=64
  6211. ;;
  6212. esac
  6213. fi
  6214. rm -rf conftest*
  6215. ;;
  6216. *-*-irix6*)
  6217. # Find out what ABI is being produced by ac_compile, and set linker
  6218. # options accordingly.
  6219. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6221. (eval $ac_compile) 2>&5
  6222. ac_status=$?
  6223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6224. test $ac_status = 0; }; then
  6225. if test yes = "$lt_cv_prog_gnu_ld"; then
  6226. case `/usr/bin/file conftest.$ac_objext` in
  6227. *32-bit*)
  6228. LD="${LD-ld} -melf32bsmip"
  6229. ;;
  6230. *N32*)
  6231. LD="${LD-ld} -melf32bmipn32"
  6232. ;;
  6233. *64-bit*)
  6234. LD="${LD-ld} -melf64bmip"
  6235. ;;
  6236. esac
  6237. else
  6238. case `/usr/bin/file conftest.$ac_objext` in
  6239. *32-bit*)
  6240. LD="${LD-ld} -32"
  6241. ;;
  6242. *N32*)
  6243. LD="${LD-ld} -n32"
  6244. ;;
  6245. *64-bit*)
  6246. LD="${LD-ld} -64"
  6247. ;;
  6248. esac
  6249. fi
  6250. fi
  6251. rm -rf conftest*
  6252. ;;
  6253. mips64*-*linux*)
  6254. # Find out what ABI is being produced by ac_compile, and set linker
  6255. # options accordingly.
  6256. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6258. (eval $ac_compile) 2>&5
  6259. ac_status=$?
  6260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; }; then
  6262. emul=elf
  6263. case `/usr/bin/file conftest.$ac_objext` in
  6264. *32-bit*)
  6265. emul="${emul}32"
  6266. ;;
  6267. *64-bit*)
  6268. emul="${emul}64"
  6269. ;;
  6270. esac
  6271. case `/usr/bin/file conftest.$ac_objext` in
  6272. *MSB*)
  6273. emul="${emul}btsmip"
  6274. ;;
  6275. *LSB*)
  6276. emul="${emul}ltsmip"
  6277. ;;
  6278. esac
  6279. case `/usr/bin/file conftest.$ac_objext` in
  6280. *N32*)
  6281. emul="${emul}n32"
  6282. ;;
  6283. esac
  6284. LD="${LD-ld} -m $emul"
  6285. fi
  6286. rm -rf conftest*
  6287. ;;
  6288. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6289. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6290. # Find out what ABI is being produced by ac_compile, and set linker
  6291. # options accordingly. Note that the listed cases only cover the
  6292. # situations where additional linker options are needed (such as when
  6293. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6294. # vice versa); the common cases where no linker options are needed do
  6295. # not appear in the list.
  6296. echo 'int i;' > conftest.$ac_ext
  6297. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6298. (eval $ac_compile) 2>&5
  6299. ac_status=$?
  6300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6301. test $ac_status = 0; }; then
  6302. case `/usr/bin/file conftest.o` in
  6303. *32-bit*)
  6304. case $host in
  6305. x86_64-*kfreebsd*-gnu)
  6306. LD="${LD-ld} -m elf_i386_fbsd"
  6307. ;;
  6308. x86_64-*linux*)
  6309. case `/usr/bin/file conftest.o` in
  6310. *x86-64*)
  6311. LD="${LD-ld} -m elf32_x86_64"
  6312. ;;
  6313. *)
  6314. LD="${LD-ld} -m elf_i386"
  6315. ;;
  6316. esac
  6317. ;;
  6318. powerpc64le-*linux*)
  6319. LD="${LD-ld} -m elf32lppclinux"
  6320. ;;
  6321. powerpc64-*linux*)
  6322. LD="${LD-ld} -m elf32ppclinux"
  6323. ;;
  6324. s390x-*linux*)
  6325. LD="${LD-ld} -m elf_s390"
  6326. ;;
  6327. sparc64-*linux*)
  6328. LD="${LD-ld} -m elf32_sparc"
  6329. ;;
  6330. esac
  6331. ;;
  6332. *64-bit*)
  6333. case $host in
  6334. x86_64-*kfreebsd*-gnu)
  6335. LD="${LD-ld} -m elf_x86_64_fbsd"
  6336. ;;
  6337. x86_64-*linux*)
  6338. LD="${LD-ld} -m elf_x86_64"
  6339. ;;
  6340. powerpcle-*linux*|powerpc64le-*linux*)
  6341. LD="${LD-ld} -m elf64lppc"
  6342. ;;
  6343. powerpc-*linux*|powerpc64-*linux*)
  6344. LD="${LD-ld} -m elf64ppc"
  6345. ;;
  6346. s390*-*linux*|s390*-*tpf*)
  6347. LD="${LD-ld} -m elf64_s390"
  6348. ;;
  6349. sparc*-*linux*)
  6350. LD="${LD-ld} -m elf64_sparc"
  6351. ;;
  6352. esac
  6353. ;;
  6354. esac
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. *-*-sco3.2v5*)
  6359. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6360. SAVE_CFLAGS=$CFLAGS
  6361. CFLAGS="$CFLAGS -belf"
  6362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6363. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6364. if test ${lt_cv_cc_needs_belf+y}
  6365. then :
  6366. printf %s "(cached) " >&6
  6367. else $as_nop
  6368. ac_ext=c
  6369. ac_cpp='$CPP $CPPFLAGS'
  6370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6374. /* end confdefs.h. */
  6375. int
  6376. main (void)
  6377. {
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. if ac_fn_c_try_link "$LINENO"
  6383. then :
  6384. lt_cv_cc_needs_belf=yes
  6385. else $as_nop
  6386. lt_cv_cc_needs_belf=no
  6387. fi
  6388. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6389. conftest$ac_exeext conftest.$ac_ext
  6390. ac_ext=c
  6391. ac_cpp='$CPP $CPPFLAGS'
  6392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6395. fi
  6396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6397. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6398. if test yes != "$lt_cv_cc_needs_belf"; then
  6399. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6400. CFLAGS=$SAVE_CFLAGS
  6401. fi
  6402. ;;
  6403. *-*solaris*)
  6404. # Find out what ABI is being produced by ac_compile, and set linker
  6405. # options accordingly.
  6406. echo 'int i;' > conftest.$ac_ext
  6407. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6408. (eval $ac_compile) 2>&5
  6409. ac_status=$?
  6410. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6411. test $ac_status = 0; }; then
  6412. case `/usr/bin/file conftest.o` in
  6413. *64-bit*)
  6414. case $lt_cv_prog_gnu_ld in
  6415. yes*)
  6416. case $host in
  6417. i?86-*-solaris*|x86_64-*-solaris*)
  6418. LD="${LD-ld} -m elf_x86_64"
  6419. ;;
  6420. sparc*-*-solaris*)
  6421. LD="${LD-ld} -m elf64_sparc"
  6422. ;;
  6423. esac
  6424. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6425. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6426. LD=${LD-ld}_sol2
  6427. fi
  6428. ;;
  6429. *)
  6430. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6431. LD="${LD-ld} -64"
  6432. fi
  6433. ;;
  6434. esac
  6435. ;;
  6436. esac
  6437. fi
  6438. rm -rf conftest*
  6439. ;;
  6440. esac
  6441. need_locks=$enable_libtool_lock
  6442. if test -n "$ac_tool_prefix"; then
  6443. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6444. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6446. printf %s "checking for $ac_word... " >&6; }
  6447. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6448. then :
  6449. printf %s "(cached) " >&6
  6450. else $as_nop
  6451. if test -n "$MANIFEST_TOOL"; then
  6452. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6453. else
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. case $as_dir in #(((
  6459. '') as_dir=./ ;;
  6460. */) ;;
  6461. *) as_dir=$as_dir/ ;;
  6462. esac
  6463. for ac_exec_ext in '' $ac_executable_extensions; do
  6464. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6465. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6466. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6467. break 2
  6468. fi
  6469. done
  6470. done
  6471. IFS=$as_save_IFS
  6472. fi
  6473. fi
  6474. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6475. if test -n "$MANIFEST_TOOL"; then
  6476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6477. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6478. else
  6479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6480. printf "%s\n" "no" >&6; }
  6481. fi
  6482. fi
  6483. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6484. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6485. # Extract the first word of "mt", so it can be a program name with args.
  6486. set dummy mt; ac_word=$2
  6487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6488. printf %s "checking for $ac_word... " >&6; }
  6489. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6490. then :
  6491. printf %s "(cached) " >&6
  6492. else $as_nop
  6493. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6494. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6495. else
  6496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6497. for as_dir in $PATH
  6498. do
  6499. IFS=$as_save_IFS
  6500. case $as_dir in #(((
  6501. '') as_dir=./ ;;
  6502. */) ;;
  6503. *) as_dir=$as_dir/ ;;
  6504. esac
  6505. for ac_exec_ext in '' $ac_executable_extensions; do
  6506. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6507. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6509. break 2
  6510. fi
  6511. done
  6512. done
  6513. IFS=$as_save_IFS
  6514. fi
  6515. fi
  6516. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6517. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6519. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6520. else
  6521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6522. printf "%s\n" "no" >&6; }
  6523. fi
  6524. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6525. MANIFEST_TOOL=":"
  6526. else
  6527. case $cross_compiling:$ac_tool_warned in
  6528. yes:)
  6529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6530. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6531. ac_tool_warned=yes ;;
  6532. esac
  6533. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6534. fi
  6535. else
  6536. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6537. fi
  6538. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6540. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6541. if test ${lt_cv_path_mainfest_tool+y}
  6542. then :
  6543. printf %s "(cached) " >&6
  6544. else $as_nop
  6545. lt_cv_path_mainfest_tool=no
  6546. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6547. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6548. cat conftest.err >&5
  6549. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6550. lt_cv_path_mainfest_tool=yes
  6551. fi
  6552. rm -f conftest*
  6553. fi
  6554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6555. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6556. if test yes != "$lt_cv_path_mainfest_tool"; then
  6557. MANIFEST_TOOL=:
  6558. fi
  6559. case $host_os in
  6560. rhapsody* | darwin*)
  6561. if test -n "$ac_tool_prefix"; then
  6562. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6563. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6565. printf %s "checking for $ac_word... " >&6; }
  6566. if test ${ac_cv_prog_DSYMUTIL+y}
  6567. then :
  6568. printf %s "(cached) " >&6
  6569. else $as_nop
  6570. if test -n "$DSYMUTIL"; then
  6571. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6572. else
  6573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6574. for as_dir in $PATH
  6575. do
  6576. IFS=$as_save_IFS
  6577. case $as_dir in #(((
  6578. '') as_dir=./ ;;
  6579. */) ;;
  6580. *) as_dir=$as_dir/ ;;
  6581. esac
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6584. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6585. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6594. if test -n "$DSYMUTIL"; then
  6595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6596. printf "%s\n" "$DSYMUTIL" >&6; }
  6597. else
  6598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. printf "%s\n" "no" >&6; }
  6600. fi
  6601. fi
  6602. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6603. ac_ct_DSYMUTIL=$DSYMUTIL
  6604. # Extract the first word of "dsymutil", so it can be a program name with args.
  6605. set dummy dsymutil; ac_word=$2
  6606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. printf %s "checking for $ac_word... " >&6; }
  6608. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6609. then :
  6610. printf %s "(cached) " >&6
  6611. else $as_nop
  6612. if test -n "$ac_ct_DSYMUTIL"; then
  6613. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. case $as_dir in #(((
  6620. '') as_dir=./ ;;
  6621. */) ;;
  6622. *) as_dir=$as_dir/ ;;
  6623. esac
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6627. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6636. if test -n "$ac_ct_DSYMUTIL"; then
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6638. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6639. else
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. printf "%s\n" "no" >&6; }
  6642. fi
  6643. if test "x$ac_ct_DSYMUTIL" = x; then
  6644. DSYMUTIL=":"
  6645. else
  6646. case $cross_compiling:$ac_tool_warned in
  6647. yes:)
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6649. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6650. ac_tool_warned=yes ;;
  6651. esac
  6652. DSYMUTIL=$ac_ct_DSYMUTIL
  6653. fi
  6654. else
  6655. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6656. fi
  6657. if test -n "$ac_tool_prefix"; then
  6658. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6659. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6661. printf %s "checking for $ac_word... " >&6; }
  6662. if test ${ac_cv_prog_NMEDIT+y}
  6663. then :
  6664. printf %s "(cached) " >&6
  6665. else $as_nop
  6666. if test -n "$NMEDIT"; then
  6667. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6668. else
  6669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6670. for as_dir in $PATH
  6671. do
  6672. IFS=$as_save_IFS
  6673. case $as_dir in #(((
  6674. '') as_dir=./ ;;
  6675. */) ;;
  6676. *) as_dir=$as_dir/ ;;
  6677. esac
  6678. for ac_exec_ext in '' $ac_executable_extensions; do
  6679. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6680. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6681. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6682. break 2
  6683. fi
  6684. done
  6685. done
  6686. IFS=$as_save_IFS
  6687. fi
  6688. fi
  6689. NMEDIT=$ac_cv_prog_NMEDIT
  6690. if test -n "$NMEDIT"; then
  6691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6692. printf "%s\n" "$NMEDIT" >&6; }
  6693. else
  6694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6695. printf "%s\n" "no" >&6; }
  6696. fi
  6697. fi
  6698. if test -z "$ac_cv_prog_NMEDIT"; then
  6699. ac_ct_NMEDIT=$NMEDIT
  6700. # Extract the first word of "nmedit", so it can be a program name with args.
  6701. set dummy nmedit; ac_word=$2
  6702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6703. printf %s "checking for $ac_word... " >&6; }
  6704. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6705. then :
  6706. printf %s "(cached) " >&6
  6707. else $as_nop
  6708. if test -n "$ac_ct_NMEDIT"; then
  6709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6710. else
  6711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6712. for as_dir in $PATH
  6713. do
  6714. IFS=$as_save_IFS
  6715. case $as_dir in #(((
  6716. '') as_dir=./ ;;
  6717. */) ;;
  6718. *) as_dir=$as_dir/ ;;
  6719. esac
  6720. for ac_exec_ext in '' $ac_executable_extensions; do
  6721. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6722. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6724. break 2
  6725. fi
  6726. done
  6727. done
  6728. IFS=$as_save_IFS
  6729. fi
  6730. fi
  6731. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6732. if test -n "$ac_ct_NMEDIT"; then
  6733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6734. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6735. else
  6736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6737. printf "%s\n" "no" >&6; }
  6738. fi
  6739. if test "x$ac_ct_NMEDIT" = x; then
  6740. NMEDIT=":"
  6741. else
  6742. case $cross_compiling:$ac_tool_warned in
  6743. yes:)
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6745. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6746. ac_tool_warned=yes ;;
  6747. esac
  6748. NMEDIT=$ac_ct_NMEDIT
  6749. fi
  6750. else
  6751. NMEDIT="$ac_cv_prog_NMEDIT"
  6752. fi
  6753. if test -n "$ac_tool_prefix"; then
  6754. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6755. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6757. printf %s "checking for $ac_word... " >&6; }
  6758. if test ${ac_cv_prog_LIPO+y}
  6759. then :
  6760. printf %s "(cached) " >&6
  6761. else $as_nop
  6762. if test -n "$LIPO"; then
  6763. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. case $as_dir in #(((
  6770. '') as_dir=./ ;;
  6771. */) ;;
  6772. *) as_dir=$as_dir/ ;;
  6773. esac
  6774. for ac_exec_ext in '' $ac_executable_extensions; do
  6775. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6776. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6778. break 2
  6779. fi
  6780. done
  6781. done
  6782. IFS=$as_save_IFS
  6783. fi
  6784. fi
  6785. LIPO=$ac_cv_prog_LIPO
  6786. if test -n "$LIPO"; then
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6788. printf "%s\n" "$LIPO" >&6; }
  6789. else
  6790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6791. printf "%s\n" "no" >&6; }
  6792. fi
  6793. fi
  6794. if test -z "$ac_cv_prog_LIPO"; then
  6795. ac_ct_LIPO=$LIPO
  6796. # Extract the first word of "lipo", so it can be a program name with args.
  6797. set dummy lipo; ac_word=$2
  6798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6799. printf %s "checking for $ac_word... " >&6; }
  6800. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6801. then :
  6802. printf %s "(cached) " >&6
  6803. else $as_nop
  6804. if test -n "$ac_ct_LIPO"; then
  6805. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6806. else
  6807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6808. for as_dir in $PATH
  6809. do
  6810. IFS=$as_save_IFS
  6811. case $as_dir in #(((
  6812. '') as_dir=./ ;;
  6813. */) ;;
  6814. *) as_dir=$as_dir/ ;;
  6815. esac
  6816. for ac_exec_ext in '' $ac_executable_extensions; do
  6817. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6818. ac_cv_prog_ac_ct_LIPO="lipo"
  6819. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6820. break 2
  6821. fi
  6822. done
  6823. done
  6824. IFS=$as_save_IFS
  6825. fi
  6826. fi
  6827. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6828. if test -n "$ac_ct_LIPO"; then
  6829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6830. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6831. else
  6832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6833. printf "%s\n" "no" >&6; }
  6834. fi
  6835. if test "x$ac_ct_LIPO" = x; then
  6836. LIPO=":"
  6837. else
  6838. case $cross_compiling:$ac_tool_warned in
  6839. yes:)
  6840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6841. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6842. ac_tool_warned=yes ;;
  6843. esac
  6844. LIPO=$ac_ct_LIPO
  6845. fi
  6846. else
  6847. LIPO="$ac_cv_prog_LIPO"
  6848. fi
  6849. if test -n "$ac_tool_prefix"; then
  6850. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6851. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. printf %s "checking for $ac_word... " >&6; }
  6854. if test ${ac_cv_prog_OTOOL+y}
  6855. then :
  6856. printf %s "(cached) " >&6
  6857. else $as_nop
  6858. if test -n "$OTOOL"; then
  6859. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. case $as_dir in #(((
  6866. '') as_dir=./ ;;
  6867. */) ;;
  6868. *) as_dir=$as_dir/ ;;
  6869. esac
  6870. for ac_exec_ext in '' $ac_executable_extensions; do
  6871. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6872. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6874. break 2
  6875. fi
  6876. done
  6877. done
  6878. IFS=$as_save_IFS
  6879. fi
  6880. fi
  6881. OTOOL=$ac_cv_prog_OTOOL
  6882. if test -n "$OTOOL"; then
  6883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6884. printf "%s\n" "$OTOOL" >&6; }
  6885. else
  6886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6887. printf "%s\n" "no" >&6; }
  6888. fi
  6889. fi
  6890. if test -z "$ac_cv_prog_OTOOL"; then
  6891. ac_ct_OTOOL=$OTOOL
  6892. # Extract the first word of "otool", so it can be a program name with args.
  6893. set dummy otool; ac_word=$2
  6894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6895. printf %s "checking for $ac_word... " >&6; }
  6896. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6897. then :
  6898. printf %s "(cached) " >&6
  6899. else $as_nop
  6900. if test -n "$ac_ct_OTOOL"; then
  6901. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6902. else
  6903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6904. for as_dir in $PATH
  6905. do
  6906. IFS=$as_save_IFS
  6907. case $as_dir in #(((
  6908. '') as_dir=./ ;;
  6909. */) ;;
  6910. *) as_dir=$as_dir/ ;;
  6911. esac
  6912. for ac_exec_ext in '' $ac_executable_extensions; do
  6913. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6914. ac_cv_prog_ac_ct_OTOOL="otool"
  6915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6916. break 2
  6917. fi
  6918. done
  6919. done
  6920. IFS=$as_save_IFS
  6921. fi
  6922. fi
  6923. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6924. if test -n "$ac_ct_OTOOL"; then
  6925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6926. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6927. else
  6928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6929. printf "%s\n" "no" >&6; }
  6930. fi
  6931. if test "x$ac_ct_OTOOL" = x; then
  6932. OTOOL=":"
  6933. else
  6934. case $cross_compiling:$ac_tool_warned in
  6935. yes:)
  6936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6937. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6938. ac_tool_warned=yes ;;
  6939. esac
  6940. OTOOL=$ac_ct_OTOOL
  6941. fi
  6942. else
  6943. OTOOL="$ac_cv_prog_OTOOL"
  6944. fi
  6945. if test -n "$ac_tool_prefix"; then
  6946. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6947. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6949. printf %s "checking for $ac_word... " >&6; }
  6950. if test ${ac_cv_prog_OTOOL64+y}
  6951. then :
  6952. printf %s "(cached) " >&6
  6953. else $as_nop
  6954. if test -n "$OTOOL64"; then
  6955. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6956. else
  6957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6958. for as_dir in $PATH
  6959. do
  6960. IFS=$as_save_IFS
  6961. case $as_dir in #(((
  6962. '') as_dir=./ ;;
  6963. */) ;;
  6964. *) as_dir=$as_dir/ ;;
  6965. esac
  6966. for ac_exec_ext in '' $ac_executable_extensions; do
  6967. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6968. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6969. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6970. break 2
  6971. fi
  6972. done
  6973. done
  6974. IFS=$as_save_IFS
  6975. fi
  6976. fi
  6977. OTOOL64=$ac_cv_prog_OTOOL64
  6978. if test -n "$OTOOL64"; then
  6979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6980. printf "%s\n" "$OTOOL64" >&6; }
  6981. else
  6982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6983. printf "%s\n" "no" >&6; }
  6984. fi
  6985. fi
  6986. if test -z "$ac_cv_prog_OTOOL64"; then
  6987. ac_ct_OTOOL64=$OTOOL64
  6988. # Extract the first word of "otool64", so it can be a program name with args.
  6989. set dummy otool64; ac_word=$2
  6990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6991. printf %s "checking for $ac_word... " >&6; }
  6992. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  6993. then :
  6994. printf %s "(cached) " >&6
  6995. else $as_nop
  6996. if test -n "$ac_ct_OTOOL64"; then
  6997. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6998. else
  6999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7000. for as_dir in $PATH
  7001. do
  7002. IFS=$as_save_IFS
  7003. case $as_dir in #(((
  7004. '') as_dir=./ ;;
  7005. */) ;;
  7006. *) as_dir=$as_dir/ ;;
  7007. esac
  7008. for ac_exec_ext in '' $ac_executable_extensions; do
  7009. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7010. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7012. break 2
  7013. fi
  7014. done
  7015. done
  7016. IFS=$as_save_IFS
  7017. fi
  7018. fi
  7019. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7020. if test -n "$ac_ct_OTOOL64"; then
  7021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7022. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7023. else
  7024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7025. printf "%s\n" "no" >&6; }
  7026. fi
  7027. if test "x$ac_ct_OTOOL64" = x; then
  7028. OTOOL64=":"
  7029. else
  7030. case $cross_compiling:$ac_tool_warned in
  7031. yes:)
  7032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7033. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7034. ac_tool_warned=yes ;;
  7035. esac
  7036. OTOOL64=$ac_ct_OTOOL64
  7037. fi
  7038. else
  7039. OTOOL64="$ac_cv_prog_OTOOL64"
  7040. fi
  7041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7042. printf %s "checking for -single_module linker flag... " >&6; }
  7043. if test ${lt_cv_apple_cc_single_mod+y}
  7044. then :
  7045. printf %s "(cached) " >&6
  7046. else $as_nop
  7047. lt_cv_apple_cc_single_mod=no
  7048. if test -z "$LT_MULTI_MODULE"; then
  7049. # By default we will add the -single_module flag. You can override
  7050. # by either setting the environment variable LT_MULTI_MODULE
  7051. # non-empty at configure time, or by adding -multi_module to the
  7052. # link flags.
  7053. rm -rf libconftest.dylib*
  7054. echo "int foo(void){return 1;}" > conftest.c
  7055. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7056. -dynamiclib -Wl,-single_module conftest.c" >&5
  7057. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7058. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7059. _lt_result=$?
  7060. # If there is a non-empty error log, and "single_module"
  7061. # appears in it, assume the flag caused a linker warning
  7062. if test -s conftest.err && $GREP single_module conftest.err; then
  7063. cat conftest.err >&5
  7064. # Otherwise, if the output was created with a 0 exit code from
  7065. # the compiler, it worked.
  7066. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7067. lt_cv_apple_cc_single_mod=yes
  7068. else
  7069. cat conftest.err >&5
  7070. fi
  7071. rm -rf libconftest.dylib*
  7072. rm -f conftest.*
  7073. fi
  7074. fi
  7075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7076. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7078. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7079. if test ${lt_cv_ld_exported_symbols_list+y}
  7080. then :
  7081. printf %s "(cached) " >&6
  7082. else $as_nop
  7083. lt_cv_ld_exported_symbols_list=no
  7084. save_LDFLAGS=$LDFLAGS
  7085. echo "_main" > conftest.sym
  7086. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7088. /* end confdefs.h. */
  7089. int
  7090. main (void)
  7091. {
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. if ac_fn_c_try_link "$LINENO"
  7097. then :
  7098. lt_cv_ld_exported_symbols_list=yes
  7099. else $as_nop
  7100. lt_cv_ld_exported_symbols_list=no
  7101. fi
  7102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7103. conftest$ac_exeext conftest.$ac_ext
  7104. LDFLAGS=$save_LDFLAGS
  7105. fi
  7106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7107. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7109. printf %s "checking for -force_load linker flag... " >&6; }
  7110. if test ${lt_cv_ld_force_load+y}
  7111. then :
  7112. printf %s "(cached) " >&6
  7113. else $as_nop
  7114. lt_cv_ld_force_load=no
  7115. cat > conftest.c << _LT_EOF
  7116. int forced_loaded() { return 2;}
  7117. _LT_EOF
  7118. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7119. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7120. echo "$AR cru libconftest.a conftest.o" >&5
  7121. $AR cru libconftest.a conftest.o 2>&5
  7122. echo "$RANLIB libconftest.a" >&5
  7123. $RANLIB libconftest.a 2>&5
  7124. cat > conftest.c << _LT_EOF
  7125. int main() { return 0;}
  7126. _LT_EOF
  7127. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7128. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7129. _lt_result=$?
  7130. if test -s conftest.err && $GREP force_load conftest.err; then
  7131. cat conftest.err >&5
  7132. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7133. lt_cv_ld_force_load=yes
  7134. else
  7135. cat conftest.err >&5
  7136. fi
  7137. rm -f conftest.err libconftest.a conftest conftest.c
  7138. rm -rf conftest.dSYM
  7139. fi
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7141. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7142. case $host_os in
  7143. rhapsody* | darwin1.[012])
  7144. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7145. darwin1.*)
  7146. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7147. darwin*)
  7148. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7149. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7150. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7151. *)
  7152. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7153. esac
  7154. ;;
  7155. esac
  7156. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7157. _lt_dar_single_mod='$single_module'
  7158. fi
  7159. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7160. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7161. else
  7162. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7163. fi
  7164. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7165. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7166. else
  7167. _lt_dsymutil=
  7168. fi
  7169. ;;
  7170. esac
  7171. # func_munge_path_list VARIABLE PATH
  7172. # -----------------------------------
  7173. # VARIABLE is name of variable containing _space_ separated list of
  7174. # directories to be munged by the contents of PATH, which is string
  7175. # having a format:
  7176. # "DIR[:DIR]:"
  7177. # string "DIR[ DIR]" will be prepended to VARIABLE
  7178. # ":DIR[:DIR]"
  7179. # string "DIR[ DIR]" will be appended to VARIABLE
  7180. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7181. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7182. # "DIRA[ DIRA]" will be appended to VARIABLE
  7183. # "DIR[:DIR]"
  7184. # VARIABLE will be replaced by "DIR[ DIR]"
  7185. func_munge_path_list ()
  7186. {
  7187. case x$2 in
  7188. x)
  7189. ;;
  7190. *:)
  7191. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7192. ;;
  7193. x:*)
  7194. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7195. ;;
  7196. *::*)
  7197. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7198. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7199. ;;
  7200. *)
  7201. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7202. ;;
  7203. esac
  7204. }
  7205. ac_header= ac_cache=
  7206. for ac_item in $ac_header_c_list
  7207. do
  7208. if test $ac_cache; then
  7209. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7210. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7211. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7212. fi
  7213. ac_header= ac_cache=
  7214. elif test $ac_header; then
  7215. ac_cache=$ac_item
  7216. else
  7217. ac_header=$ac_item
  7218. fi
  7219. done
  7220. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7221. then :
  7222. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7223. fi
  7224. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7225. "
  7226. if test "x$ac_cv_header_dlfcn_h" = xyes
  7227. then :
  7228. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7229. fi
  7230. # Set options
  7231. enable_win32_dll=yes
  7232. case $host in
  7233. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7234. if test -n "$ac_tool_prefix"; then
  7235. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7236. set dummy ${ac_tool_prefix}as; ac_word=$2
  7237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7238. printf %s "checking for $ac_word... " >&6; }
  7239. if test ${ac_cv_prog_AS+y}
  7240. then :
  7241. printf %s "(cached) " >&6
  7242. else $as_nop
  7243. if test -n "$AS"; then
  7244. ac_cv_prog_AS="$AS" # Let the user override the test.
  7245. else
  7246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7247. for as_dir in $PATH
  7248. do
  7249. IFS=$as_save_IFS
  7250. case $as_dir in #(((
  7251. '') as_dir=./ ;;
  7252. */) ;;
  7253. *) as_dir=$as_dir/ ;;
  7254. esac
  7255. for ac_exec_ext in '' $ac_executable_extensions; do
  7256. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7257. ac_cv_prog_AS="${ac_tool_prefix}as"
  7258. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7259. break 2
  7260. fi
  7261. done
  7262. done
  7263. IFS=$as_save_IFS
  7264. fi
  7265. fi
  7266. AS=$ac_cv_prog_AS
  7267. if test -n "$AS"; then
  7268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7269. printf "%s\n" "$AS" >&6; }
  7270. else
  7271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7272. printf "%s\n" "no" >&6; }
  7273. fi
  7274. fi
  7275. if test -z "$ac_cv_prog_AS"; then
  7276. ac_ct_AS=$AS
  7277. # Extract the first word of "as", so it can be a program name with args.
  7278. set dummy as; ac_word=$2
  7279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7280. printf %s "checking for $ac_word... " >&6; }
  7281. if test ${ac_cv_prog_ac_ct_AS+y}
  7282. then :
  7283. printf %s "(cached) " >&6
  7284. else $as_nop
  7285. if test -n "$ac_ct_AS"; then
  7286. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7287. else
  7288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7289. for as_dir in $PATH
  7290. do
  7291. IFS=$as_save_IFS
  7292. case $as_dir in #(((
  7293. '') as_dir=./ ;;
  7294. */) ;;
  7295. *) as_dir=$as_dir/ ;;
  7296. esac
  7297. for ac_exec_ext in '' $ac_executable_extensions; do
  7298. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7299. ac_cv_prog_ac_ct_AS="as"
  7300. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7301. break 2
  7302. fi
  7303. done
  7304. done
  7305. IFS=$as_save_IFS
  7306. fi
  7307. fi
  7308. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7309. if test -n "$ac_ct_AS"; then
  7310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7311. printf "%s\n" "$ac_ct_AS" >&6; }
  7312. else
  7313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. printf "%s\n" "no" >&6; }
  7315. fi
  7316. if test "x$ac_ct_AS" = x; then
  7317. AS="false"
  7318. else
  7319. case $cross_compiling:$ac_tool_warned in
  7320. yes:)
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7322. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7323. ac_tool_warned=yes ;;
  7324. esac
  7325. AS=$ac_ct_AS
  7326. fi
  7327. else
  7328. AS="$ac_cv_prog_AS"
  7329. fi
  7330. if test -n "$ac_tool_prefix"; then
  7331. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7332. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. printf %s "checking for $ac_word... " >&6; }
  7335. if test ${ac_cv_prog_DLLTOOL+y}
  7336. then :
  7337. printf %s "(cached) " >&6
  7338. else $as_nop
  7339. if test -n "$DLLTOOL"; then
  7340. ac_cv_prog_DLLTOOL="$DLLTOOL" # 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. case $as_dir in #(((
  7347. '') as_dir=./ ;;
  7348. */) ;;
  7349. *) as_dir=$as_dir/ ;;
  7350. esac
  7351. for ac_exec_ext in '' $ac_executable_extensions; do
  7352. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7353. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7354. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7355. break 2
  7356. fi
  7357. done
  7358. done
  7359. IFS=$as_save_IFS
  7360. fi
  7361. fi
  7362. DLLTOOL=$ac_cv_prog_DLLTOOL
  7363. if test -n "$DLLTOOL"; then
  7364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7365. printf "%s\n" "$DLLTOOL" >&6; }
  7366. else
  7367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. printf "%s\n" "no" >&6; }
  7369. fi
  7370. fi
  7371. if test -z "$ac_cv_prog_DLLTOOL"; then
  7372. ac_ct_DLLTOOL=$DLLTOOL
  7373. # Extract the first word of "dlltool", so it can be a program name with args.
  7374. set dummy dlltool; ac_word=$2
  7375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7376. printf %s "checking for $ac_word... " >&6; }
  7377. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7378. then :
  7379. printf %s "(cached) " >&6
  7380. else $as_nop
  7381. if test -n "$ac_ct_DLLTOOL"; then
  7382. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7383. else
  7384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7385. for as_dir in $PATH
  7386. do
  7387. IFS=$as_save_IFS
  7388. case $as_dir in #(((
  7389. '') as_dir=./ ;;
  7390. */) ;;
  7391. *) as_dir=$as_dir/ ;;
  7392. esac
  7393. for ac_exec_ext in '' $ac_executable_extensions; do
  7394. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7395. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7396. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7397. break 2
  7398. fi
  7399. done
  7400. done
  7401. IFS=$as_save_IFS
  7402. fi
  7403. fi
  7404. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7405. if test -n "$ac_ct_DLLTOOL"; then
  7406. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7407. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7408. else
  7409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7410. printf "%s\n" "no" >&6; }
  7411. fi
  7412. if test "x$ac_ct_DLLTOOL" = x; then
  7413. DLLTOOL="false"
  7414. else
  7415. case $cross_compiling:$ac_tool_warned in
  7416. yes:)
  7417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7418. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7419. ac_tool_warned=yes ;;
  7420. esac
  7421. DLLTOOL=$ac_ct_DLLTOOL
  7422. fi
  7423. else
  7424. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7425. fi
  7426. if test -n "$ac_tool_prefix"; then
  7427. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7428. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7430. printf %s "checking for $ac_word... " >&6; }
  7431. if test ${ac_cv_prog_OBJDUMP+y}
  7432. then :
  7433. printf %s "(cached) " >&6
  7434. else $as_nop
  7435. if test -n "$OBJDUMP"; then
  7436. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7437. else
  7438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7439. for as_dir in $PATH
  7440. do
  7441. IFS=$as_save_IFS
  7442. case $as_dir in #(((
  7443. '') as_dir=./ ;;
  7444. */) ;;
  7445. *) as_dir=$as_dir/ ;;
  7446. esac
  7447. for ac_exec_ext in '' $ac_executable_extensions; do
  7448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7449. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7451. break 2
  7452. fi
  7453. done
  7454. done
  7455. IFS=$as_save_IFS
  7456. fi
  7457. fi
  7458. OBJDUMP=$ac_cv_prog_OBJDUMP
  7459. if test -n "$OBJDUMP"; then
  7460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7461. printf "%s\n" "$OBJDUMP" >&6; }
  7462. else
  7463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7464. printf "%s\n" "no" >&6; }
  7465. fi
  7466. fi
  7467. if test -z "$ac_cv_prog_OBJDUMP"; then
  7468. ac_ct_OBJDUMP=$OBJDUMP
  7469. # Extract the first word of "objdump", so it can be a program name with args.
  7470. set dummy objdump; ac_word=$2
  7471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7472. printf %s "checking for $ac_word... " >&6; }
  7473. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7474. then :
  7475. printf %s "(cached) " >&6
  7476. else $as_nop
  7477. if test -n "$ac_ct_OBJDUMP"; then
  7478. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7479. else
  7480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7481. for as_dir in $PATH
  7482. do
  7483. IFS=$as_save_IFS
  7484. case $as_dir in #(((
  7485. '') as_dir=./ ;;
  7486. */) ;;
  7487. *) as_dir=$as_dir/ ;;
  7488. esac
  7489. for ac_exec_ext in '' $ac_executable_extensions; do
  7490. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7491. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7493. break 2
  7494. fi
  7495. done
  7496. done
  7497. IFS=$as_save_IFS
  7498. fi
  7499. fi
  7500. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7501. if test -n "$ac_ct_OBJDUMP"; then
  7502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7503. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7504. else
  7505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7506. printf "%s\n" "no" >&6; }
  7507. fi
  7508. if test "x$ac_ct_OBJDUMP" = x; then
  7509. OBJDUMP="false"
  7510. else
  7511. case $cross_compiling:$ac_tool_warned in
  7512. yes:)
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7514. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7515. ac_tool_warned=yes ;;
  7516. esac
  7517. OBJDUMP=$ac_ct_OBJDUMP
  7518. fi
  7519. else
  7520. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7521. fi
  7522. ;;
  7523. esac
  7524. test -z "$AS" && AS=as
  7525. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7526. test -z "$OBJDUMP" && OBJDUMP=objdump
  7527. enable_dlopen=no
  7528. # Check whether --enable-shared was given.
  7529. if test ${enable_shared+y}
  7530. then :
  7531. enableval=$enable_shared; p=${PACKAGE-default}
  7532. case $enableval in
  7533. yes) enable_shared=yes ;;
  7534. no) enable_shared=no ;;
  7535. *)
  7536. enable_shared=no
  7537. # Look at the argument we got. We use all the common list separators.
  7538. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7539. for pkg in $enableval; do
  7540. IFS=$lt_save_ifs
  7541. if test "X$pkg" = "X$p"; then
  7542. enable_shared=yes
  7543. fi
  7544. done
  7545. IFS=$lt_save_ifs
  7546. ;;
  7547. esac
  7548. else $as_nop
  7549. enable_shared=yes
  7550. fi
  7551. # Check whether --enable-static was given.
  7552. if test ${enable_static+y}
  7553. then :
  7554. enableval=$enable_static; p=${PACKAGE-default}
  7555. case $enableval in
  7556. yes) enable_static=yes ;;
  7557. no) enable_static=no ;;
  7558. *)
  7559. enable_static=no
  7560. # Look at the argument we got. We use all the common list separators.
  7561. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7562. for pkg in $enableval; do
  7563. IFS=$lt_save_ifs
  7564. if test "X$pkg" = "X$p"; then
  7565. enable_static=yes
  7566. fi
  7567. done
  7568. IFS=$lt_save_ifs
  7569. ;;
  7570. esac
  7571. else $as_nop
  7572. enable_static=yes
  7573. fi
  7574. # Check whether --with-pic was given.
  7575. if test ${with_pic+y}
  7576. then :
  7577. withval=$with_pic; lt_p=${PACKAGE-default}
  7578. case $withval in
  7579. yes|no) pic_mode=$withval ;;
  7580. *)
  7581. pic_mode=default
  7582. # Look at the argument we got. We use all the common list separators.
  7583. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7584. for lt_pkg in $withval; do
  7585. IFS=$lt_save_ifs
  7586. if test "X$lt_pkg" = "X$lt_p"; then
  7587. pic_mode=yes
  7588. fi
  7589. done
  7590. IFS=$lt_save_ifs
  7591. ;;
  7592. esac
  7593. else $as_nop
  7594. pic_mode=default
  7595. fi
  7596. # Check whether --enable-fast-install was given.
  7597. if test ${enable_fast_install+y}
  7598. then :
  7599. enableval=$enable_fast_install; p=${PACKAGE-default}
  7600. case $enableval in
  7601. yes) enable_fast_install=yes ;;
  7602. no) enable_fast_install=no ;;
  7603. *)
  7604. enable_fast_install=no
  7605. # Look at the argument we got. We use all the common list separators.
  7606. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7607. for pkg in $enableval; do
  7608. IFS=$lt_save_ifs
  7609. if test "X$pkg" = "X$p"; then
  7610. enable_fast_install=yes
  7611. fi
  7612. done
  7613. IFS=$lt_save_ifs
  7614. ;;
  7615. esac
  7616. else $as_nop
  7617. enable_fast_install=yes
  7618. fi
  7619. shared_archive_member_spec=
  7620. case $host,$enable_shared in
  7621. power*-*-aix[5-9]*,yes)
  7622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7623. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7624. # Check whether --with-aix-soname was given.
  7625. if test ${with_aix_soname+y}
  7626. then :
  7627. withval=$with_aix_soname; case $withval in
  7628. aix|svr4|both)
  7629. ;;
  7630. *)
  7631. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7632. ;;
  7633. esac
  7634. lt_cv_with_aix_soname=$with_aix_soname
  7635. else $as_nop
  7636. if test ${lt_cv_with_aix_soname+y}
  7637. then :
  7638. printf %s "(cached) " >&6
  7639. else $as_nop
  7640. lt_cv_with_aix_soname=aix
  7641. fi
  7642. with_aix_soname=$lt_cv_with_aix_soname
  7643. fi
  7644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7645. printf "%s\n" "$with_aix_soname" >&6; }
  7646. if test aix != "$with_aix_soname"; then
  7647. # For the AIX way of multilib, we name the shared archive member
  7648. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7649. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7650. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7651. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7652. if test 64 = "${OBJECT_MODE-32}"; then
  7653. shared_archive_member_spec=shr_64
  7654. else
  7655. shared_archive_member_spec=shr
  7656. fi
  7657. fi
  7658. ;;
  7659. *)
  7660. with_aix_soname=aix
  7661. ;;
  7662. esac
  7663. # This can be used to rebuild libtool when needed
  7664. LIBTOOL_DEPS=$ltmain
  7665. # Always use our own libtool.
  7666. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7667. test -z "$LN_S" && LN_S="ln -s"
  7668. if test -n "${ZSH_VERSION+set}"; then
  7669. setopt NO_GLOB_SUBST
  7670. fi
  7671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7672. printf %s "checking for objdir... " >&6; }
  7673. if test ${lt_cv_objdir+y}
  7674. then :
  7675. printf %s "(cached) " >&6
  7676. else $as_nop
  7677. rm -f .libs 2>/dev/null
  7678. mkdir .libs 2>/dev/null
  7679. if test -d .libs; then
  7680. lt_cv_objdir=.libs
  7681. else
  7682. # MS-DOS does not allow filenames that begin with a dot.
  7683. lt_cv_objdir=_libs
  7684. fi
  7685. rmdir .libs 2>/dev/null
  7686. fi
  7687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7688. printf "%s\n" "$lt_cv_objdir" >&6; }
  7689. objdir=$lt_cv_objdir
  7690. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7691. case $host_os in
  7692. aix3*)
  7693. # AIX sometimes has problems with the GCC collect2 program. For some
  7694. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7695. # vanish in a puff of smoke.
  7696. if test set != "${COLLECT_NAMES+set}"; then
  7697. COLLECT_NAMES=
  7698. export COLLECT_NAMES
  7699. fi
  7700. ;;
  7701. esac
  7702. # Global variables:
  7703. ofile=libtool
  7704. can_build_shared=yes
  7705. # All known linkers require a '.a' archive for static linking (except MSVC,
  7706. # which needs '.lib').
  7707. libext=a
  7708. with_gnu_ld=$lt_cv_prog_gnu_ld
  7709. old_CC=$CC
  7710. old_CFLAGS=$CFLAGS
  7711. # Set sane defaults for various variables
  7712. test -z "$CC" && CC=cc
  7713. test -z "$LTCC" && LTCC=$CC
  7714. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7715. test -z "$LD" && LD=ld
  7716. test -z "$ac_objext" && ac_objext=o
  7717. func_cc_basename $compiler
  7718. cc_basename=$func_cc_basename_result
  7719. # Only perform the check for file, if the check method requires it
  7720. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7721. case $deplibs_check_method in
  7722. file_magic*)
  7723. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7725. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7726. if test ${lt_cv_path_MAGIC_CMD+y}
  7727. then :
  7728. printf %s "(cached) " >&6
  7729. else $as_nop
  7730. case $MAGIC_CMD in
  7731. [\\/*] | ?:[\\/]*)
  7732. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7733. ;;
  7734. *)
  7735. lt_save_MAGIC_CMD=$MAGIC_CMD
  7736. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7737. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7738. for ac_dir in $ac_dummy; do
  7739. IFS=$lt_save_ifs
  7740. test -z "$ac_dir" && ac_dir=.
  7741. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7742. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7743. if test -n "$file_magic_test_file"; then
  7744. case $deplibs_check_method in
  7745. "file_magic "*)
  7746. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7747. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7748. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7749. $EGREP "$file_magic_regex" > /dev/null; then
  7750. :
  7751. else
  7752. cat <<_LT_EOF 1>&2
  7753. *** Warning: the command libtool uses to detect shared libraries,
  7754. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7755. *** The result is that libtool may fail to recognize shared libraries
  7756. *** as such. This will affect the creation of libtool libraries that
  7757. *** depend on shared libraries, but programs linked with such libtool
  7758. *** libraries will work regardless of this problem. Nevertheless, you
  7759. *** may want to report the problem to your system manager and/or to
  7760. *** bug-libtool@gnu.org
  7761. _LT_EOF
  7762. fi ;;
  7763. esac
  7764. fi
  7765. break
  7766. fi
  7767. done
  7768. IFS=$lt_save_ifs
  7769. MAGIC_CMD=$lt_save_MAGIC_CMD
  7770. ;;
  7771. esac
  7772. fi
  7773. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7774. if test -n "$MAGIC_CMD"; then
  7775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7776. printf "%s\n" "$MAGIC_CMD" >&6; }
  7777. else
  7778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7779. printf "%s\n" "no" >&6; }
  7780. fi
  7781. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7782. if test -n "$ac_tool_prefix"; then
  7783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7784. printf %s "checking for file... " >&6; }
  7785. if test ${lt_cv_path_MAGIC_CMD+y}
  7786. then :
  7787. printf %s "(cached) " >&6
  7788. else $as_nop
  7789. case $MAGIC_CMD in
  7790. [\\/*] | ?:[\\/]*)
  7791. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7792. ;;
  7793. *)
  7794. lt_save_MAGIC_CMD=$MAGIC_CMD
  7795. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7796. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7797. for ac_dir in $ac_dummy; do
  7798. IFS=$lt_save_ifs
  7799. test -z "$ac_dir" && ac_dir=.
  7800. if test -f "$ac_dir/file"; then
  7801. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7802. if test -n "$file_magic_test_file"; then
  7803. case $deplibs_check_method in
  7804. "file_magic "*)
  7805. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7806. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7807. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7808. $EGREP "$file_magic_regex" > /dev/null; then
  7809. :
  7810. else
  7811. cat <<_LT_EOF 1>&2
  7812. *** Warning: the command libtool uses to detect shared libraries,
  7813. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7814. *** The result is that libtool may fail to recognize shared libraries
  7815. *** as such. This will affect the creation of libtool libraries that
  7816. *** depend on shared libraries, but programs linked with such libtool
  7817. *** libraries will work regardless of this problem. Nevertheless, you
  7818. *** may want to report the problem to your system manager and/or to
  7819. *** bug-libtool@gnu.org
  7820. _LT_EOF
  7821. fi ;;
  7822. esac
  7823. fi
  7824. break
  7825. fi
  7826. done
  7827. IFS=$lt_save_ifs
  7828. MAGIC_CMD=$lt_save_MAGIC_CMD
  7829. ;;
  7830. esac
  7831. fi
  7832. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7833. if test -n "$MAGIC_CMD"; then
  7834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7835. printf "%s\n" "$MAGIC_CMD" >&6; }
  7836. else
  7837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7838. printf "%s\n" "no" >&6; }
  7839. fi
  7840. else
  7841. MAGIC_CMD=:
  7842. fi
  7843. fi
  7844. fi
  7845. ;;
  7846. esac
  7847. # Use C for the default configuration in the libtool script
  7848. lt_save_CC=$CC
  7849. ac_ext=c
  7850. ac_cpp='$CPP $CPPFLAGS'
  7851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7854. # Source file extension for C test sources.
  7855. ac_ext=c
  7856. # Object file extension for compiled C test sources.
  7857. objext=o
  7858. objext=$objext
  7859. # Code to be used in simple compile tests
  7860. lt_simple_compile_test_code="int some_variable = 0;"
  7861. # Code to be used in simple link tests
  7862. lt_simple_link_test_code='int main(){return(0);}'
  7863. # If no C compiler was specified, use CC.
  7864. LTCC=${LTCC-"$CC"}
  7865. # If no C compiler flags were specified, use CFLAGS.
  7866. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7867. # Allow CC to be a program name with arguments.
  7868. compiler=$CC
  7869. # Save the default compiler, since it gets overwritten when the other
  7870. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7871. compiler_DEFAULT=$CC
  7872. # save warnings/boilerplate of simple test code
  7873. ac_outfile=conftest.$ac_objext
  7874. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7875. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7876. _lt_compiler_boilerplate=`cat conftest.err`
  7877. $RM conftest*
  7878. ac_outfile=conftest.$ac_objext
  7879. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7880. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7881. _lt_linker_boilerplate=`cat conftest.err`
  7882. $RM -r conftest*
  7883. ## CAVEAT EMPTOR:
  7884. ## There is no encapsulation within the following macros, do not change
  7885. ## the running order or otherwise move them around unless you know exactly
  7886. ## what you are doing...
  7887. if test -n "$compiler"; then
  7888. lt_prog_compiler_no_builtin_flag=
  7889. if test yes = "$GCC"; then
  7890. case $cc_basename in
  7891. nvcc*)
  7892. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7893. *)
  7894. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7895. esac
  7896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7897. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7898. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7899. then :
  7900. printf %s "(cached) " >&6
  7901. else $as_nop
  7902. lt_cv_prog_compiler_rtti_exceptions=no
  7903. ac_outfile=conftest.$ac_objext
  7904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7905. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7906. # Insert the option either (1) after the last *FLAGS variable, or
  7907. # (2) before a word containing "conftest.", or (3) at the end.
  7908. # Note that $ac_compile itself does not contain backslashes and begins
  7909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7910. # The option is referenced via a variable to avoid confusing sed.
  7911. lt_compile=`echo "$ac_compile" | $SED \
  7912. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7913. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7914. -e 's:$: $lt_compiler_flag:'`
  7915. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7916. (eval "$lt_compile" 2>conftest.err)
  7917. ac_status=$?
  7918. cat conftest.err >&5
  7919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7920. if (exit $ac_status) && test -s "$ac_outfile"; then
  7921. # The compiler can only warn and ignore the option if not recognized
  7922. # So say no if there are warnings other than the usual output.
  7923. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7924. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7925. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7926. lt_cv_prog_compiler_rtti_exceptions=yes
  7927. fi
  7928. fi
  7929. $RM conftest*
  7930. fi
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7932. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7933. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7934. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7935. else
  7936. :
  7937. fi
  7938. fi
  7939. lt_prog_compiler_wl=
  7940. lt_prog_compiler_pic=
  7941. lt_prog_compiler_static=
  7942. if test yes = "$GCC"; then
  7943. lt_prog_compiler_wl='-Wl,'
  7944. lt_prog_compiler_static='-static'
  7945. case $host_os in
  7946. aix*)
  7947. # All AIX code is PIC.
  7948. if test ia64 = "$host_cpu"; then
  7949. # AIX 5 now supports IA64 processor
  7950. lt_prog_compiler_static='-Bstatic'
  7951. fi
  7952. lt_prog_compiler_pic='-fPIC'
  7953. ;;
  7954. amigaos*)
  7955. case $host_cpu in
  7956. powerpc)
  7957. # see comment about AmigaOS4 .so support
  7958. lt_prog_compiler_pic='-fPIC'
  7959. ;;
  7960. m68k)
  7961. # FIXME: we need at least 68020 code to build shared libraries, but
  7962. # adding the '-m68020' flag to GCC prevents building anything better,
  7963. # like '-m68040'.
  7964. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7965. ;;
  7966. esac
  7967. ;;
  7968. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7969. # PIC is the default for these OSes.
  7970. ;;
  7971. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7972. # This hack is so that the source file can tell whether it is being
  7973. # built for inclusion in a dll (and should export symbols for example).
  7974. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7975. # (--disable-auto-import) libraries
  7976. lt_prog_compiler_pic='-DDLL_EXPORT'
  7977. case $host_os in
  7978. os2*)
  7979. lt_prog_compiler_static='$wl-static'
  7980. ;;
  7981. esac
  7982. ;;
  7983. darwin* | rhapsody*)
  7984. # PIC is the default on this platform
  7985. # Common symbols not allowed in MH_DYLIB files
  7986. lt_prog_compiler_pic='-fno-common'
  7987. ;;
  7988. haiku*)
  7989. # PIC is the default for Haiku.
  7990. # The "-static" flag exists, but is broken.
  7991. lt_prog_compiler_static=
  7992. ;;
  7993. hpux*)
  7994. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7995. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7996. # sets the default TLS model and affects inlining.
  7997. case $host_cpu in
  7998. hppa*64*)
  7999. # +Z the default
  8000. ;;
  8001. *)
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. esac
  8005. ;;
  8006. interix[3-9]*)
  8007. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8008. # Instead, we relocate shared libraries at runtime.
  8009. ;;
  8010. msdosdjgpp*)
  8011. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8012. # on systems that don't support them.
  8013. lt_prog_compiler_can_build_shared=no
  8014. enable_shared=no
  8015. ;;
  8016. *nto* | *qnx*)
  8017. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8018. # it will coredump.
  8019. lt_prog_compiler_pic='-fPIC -shared'
  8020. ;;
  8021. sysv4*MP*)
  8022. if test -d /usr/nec; then
  8023. lt_prog_compiler_pic=-Kconform_pic
  8024. fi
  8025. ;;
  8026. *)
  8027. lt_prog_compiler_pic='-fPIC'
  8028. ;;
  8029. esac
  8030. case $cc_basename in
  8031. nvcc*) # Cuda Compiler Driver 2.2
  8032. lt_prog_compiler_wl='-Xlinker '
  8033. if test -n "$lt_prog_compiler_pic"; then
  8034. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8035. fi
  8036. ;;
  8037. esac
  8038. else
  8039. # PORTME Check for flag to pass linker flags through the system compiler.
  8040. case $host_os in
  8041. aix*)
  8042. lt_prog_compiler_wl='-Wl,'
  8043. if test ia64 = "$host_cpu"; then
  8044. # AIX 5 now supports IA64 processor
  8045. lt_prog_compiler_static='-Bstatic'
  8046. else
  8047. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8048. fi
  8049. ;;
  8050. darwin* | rhapsody*)
  8051. # PIC is the default on this platform
  8052. # Common symbols not allowed in MH_DYLIB files
  8053. lt_prog_compiler_pic='-fno-common'
  8054. case $cc_basename in
  8055. nagfor*)
  8056. # NAG Fortran compiler
  8057. lt_prog_compiler_wl='-Wl,-Wl,,'
  8058. lt_prog_compiler_pic='-PIC'
  8059. lt_prog_compiler_static='-Bstatic'
  8060. ;;
  8061. esac
  8062. ;;
  8063. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8064. # This hack is so that the source file can tell whether it is being
  8065. # built for inclusion in a dll (and should export symbols for example).
  8066. lt_prog_compiler_pic='-DDLL_EXPORT'
  8067. case $host_os in
  8068. os2*)
  8069. lt_prog_compiler_static='$wl-static'
  8070. ;;
  8071. esac
  8072. ;;
  8073. hpux9* | hpux10* | hpux11*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8076. # not for PA HP-UX.
  8077. case $host_cpu in
  8078. hppa*64*|ia64*)
  8079. # +Z the default
  8080. ;;
  8081. *)
  8082. lt_prog_compiler_pic='+Z'
  8083. ;;
  8084. esac
  8085. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8086. lt_prog_compiler_static='$wl-a ${wl}archive'
  8087. ;;
  8088. irix5* | irix6* | nonstopux*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. # PIC (with -KPIC) is the default.
  8091. lt_prog_compiler_static='-non_shared'
  8092. ;;
  8093. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8094. case $cc_basename in
  8095. # old Intel for x86_64, which still supported -KPIC.
  8096. ecc*)
  8097. lt_prog_compiler_wl='-Wl,'
  8098. lt_prog_compiler_pic='-KPIC'
  8099. lt_prog_compiler_static='-static'
  8100. ;;
  8101. # icc used to be incompatible with GCC.
  8102. # ICC 10 doesn't accept -KPIC any more.
  8103. icc* | ifort*)
  8104. lt_prog_compiler_wl='-Wl,'
  8105. lt_prog_compiler_pic='-fPIC'
  8106. lt_prog_compiler_static='-static'
  8107. ;;
  8108. # Lahey Fortran 8.1.
  8109. lf95*)
  8110. lt_prog_compiler_wl='-Wl,'
  8111. lt_prog_compiler_pic='--shared'
  8112. lt_prog_compiler_static='--static'
  8113. ;;
  8114. nagfor*)
  8115. # NAG Fortran compiler
  8116. lt_prog_compiler_wl='-Wl,-Wl,,'
  8117. lt_prog_compiler_pic='-PIC'
  8118. lt_prog_compiler_static='-Bstatic'
  8119. ;;
  8120. tcc*)
  8121. # Fabrice Bellard et al's Tiny C Compiler
  8122. lt_prog_compiler_wl='-Wl,'
  8123. lt_prog_compiler_pic='-fPIC'
  8124. lt_prog_compiler_static='-static'
  8125. ;;
  8126. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8127. # Portland Group compilers (*not* the Pentium gcc compiler,
  8128. # which looks to be a dead project)
  8129. lt_prog_compiler_wl='-Wl,'
  8130. lt_prog_compiler_pic='-fpic'
  8131. lt_prog_compiler_static='-Bstatic'
  8132. ;;
  8133. ccc*)
  8134. lt_prog_compiler_wl='-Wl,'
  8135. # All Alpha code is PIC.
  8136. lt_prog_compiler_static='-non_shared'
  8137. ;;
  8138. xl* | bgxl* | bgf* | mpixl*)
  8139. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8140. lt_prog_compiler_wl='-Wl,'
  8141. lt_prog_compiler_pic='-qpic'
  8142. lt_prog_compiler_static='-qstaticlink'
  8143. ;;
  8144. *)
  8145. case `$CC -V 2>&1 | sed 5q` in
  8146. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8147. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8148. lt_prog_compiler_pic='-KPIC'
  8149. lt_prog_compiler_static='-Bstatic'
  8150. lt_prog_compiler_wl=''
  8151. ;;
  8152. *Sun\ F* | *Sun*Fortran*)
  8153. lt_prog_compiler_pic='-KPIC'
  8154. lt_prog_compiler_static='-Bstatic'
  8155. lt_prog_compiler_wl='-Qoption ld '
  8156. ;;
  8157. *Sun\ C*)
  8158. # Sun C 5.9
  8159. lt_prog_compiler_pic='-KPIC'
  8160. lt_prog_compiler_static='-Bstatic'
  8161. lt_prog_compiler_wl='-Wl,'
  8162. ;;
  8163. *Intel*\ [CF]*Compiler*)
  8164. lt_prog_compiler_wl='-Wl,'
  8165. lt_prog_compiler_pic='-fPIC'
  8166. lt_prog_compiler_static='-static'
  8167. ;;
  8168. *Portland\ Group*)
  8169. lt_prog_compiler_wl='-Wl,'
  8170. lt_prog_compiler_pic='-fpic'
  8171. lt_prog_compiler_static='-Bstatic'
  8172. ;;
  8173. esac
  8174. ;;
  8175. esac
  8176. ;;
  8177. newsos6)
  8178. lt_prog_compiler_pic='-KPIC'
  8179. lt_prog_compiler_static='-Bstatic'
  8180. ;;
  8181. *nto* | *qnx*)
  8182. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8183. # it will coredump.
  8184. lt_prog_compiler_pic='-fPIC -shared'
  8185. ;;
  8186. osf3* | osf4* | osf5*)
  8187. lt_prog_compiler_wl='-Wl,'
  8188. # All OSF/1 code is PIC.
  8189. lt_prog_compiler_static='-non_shared'
  8190. ;;
  8191. rdos*)
  8192. lt_prog_compiler_static='-non_shared'
  8193. ;;
  8194. solaris*)
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. case $cc_basename in
  8198. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8199. lt_prog_compiler_wl='-Qoption ld ';;
  8200. *)
  8201. lt_prog_compiler_wl='-Wl,';;
  8202. esac
  8203. ;;
  8204. sunos4*)
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. lt_prog_compiler_pic='-PIC'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. sysv4 | sysv4.2uw2* | sysv4.3*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-KPIC'
  8212. lt_prog_compiler_static='-Bstatic'
  8213. ;;
  8214. sysv4*MP*)
  8215. if test -d /usr/nec; then
  8216. lt_prog_compiler_pic='-Kconform_pic'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. fi
  8219. ;;
  8220. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. lt_prog_compiler_pic='-KPIC'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. unicos*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. lt_prog_compiler_can_build_shared=no
  8228. ;;
  8229. uts4*)
  8230. lt_prog_compiler_pic='-pic'
  8231. lt_prog_compiler_static='-Bstatic'
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_can_build_shared=no
  8235. ;;
  8236. esac
  8237. fi
  8238. case $host_os in
  8239. # For platforms that do not support PIC, -DPIC is meaningless:
  8240. *djgpp*)
  8241. lt_prog_compiler_pic=
  8242. ;;
  8243. *)
  8244. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8245. ;;
  8246. esac
  8247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8248. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8249. if test ${lt_cv_prog_compiler_pic+y}
  8250. then :
  8251. printf %s "(cached) " >&6
  8252. else $as_nop
  8253. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8254. fi
  8255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8256. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8257. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8258. #
  8259. # Check to make sure the PIC flag actually works.
  8260. #
  8261. if test -n "$lt_prog_compiler_pic"; then
  8262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8263. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8264. if test ${lt_cv_prog_compiler_pic_works+y}
  8265. then :
  8266. printf %s "(cached) " >&6
  8267. else $as_nop
  8268. lt_cv_prog_compiler_pic_works=no
  8269. ac_outfile=conftest.$ac_objext
  8270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8271. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8272. # Insert the option either (1) after the last *FLAGS variable, or
  8273. # (2) before a word containing "conftest.", or (3) at the end.
  8274. # Note that $ac_compile itself does not contain backslashes and begins
  8275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8276. # The option is referenced via a variable to avoid confusing sed.
  8277. lt_compile=`echo "$ac_compile" | $SED \
  8278. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8279. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8280. -e 's:$: $lt_compiler_flag:'`
  8281. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8282. (eval "$lt_compile" 2>conftest.err)
  8283. ac_status=$?
  8284. cat conftest.err >&5
  8285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8286. if (exit $ac_status) && test -s "$ac_outfile"; then
  8287. # The compiler can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings other than the usual output.
  8289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8290. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8291. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler_pic_works=yes
  8293. fi
  8294. fi
  8295. $RM conftest*
  8296. fi
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8298. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8299. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8300. case $lt_prog_compiler_pic in
  8301. "" | " "*) ;;
  8302. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8303. esac
  8304. else
  8305. lt_prog_compiler_pic=
  8306. lt_prog_compiler_can_build_shared=no
  8307. fi
  8308. fi
  8309. #
  8310. # Check to make sure the static flag actually works.
  8311. #
  8312. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8314. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8315. if test ${lt_cv_prog_compiler_static_works+y}
  8316. then :
  8317. printf %s "(cached) " >&6
  8318. else $as_nop
  8319. lt_cv_prog_compiler_static_works=no
  8320. save_LDFLAGS=$LDFLAGS
  8321. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8322. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8323. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8324. # The linker can only warn and ignore the option if not recognized
  8325. # So say no if there are warnings
  8326. if test -s conftest.err; then
  8327. # Append any errors to the config.log.
  8328. cat conftest.err 1>&5
  8329. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8330. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8331. if diff conftest.exp conftest.er2 >/dev/null; then
  8332. lt_cv_prog_compiler_static_works=yes
  8333. fi
  8334. else
  8335. lt_cv_prog_compiler_static_works=yes
  8336. fi
  8337. fi
  8338. $RM -r conftest*
  8339. LDFLAGS=$save_LDFLAGS
  8340. fi
  8341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8342. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8343. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8344. :
  8345. else
  8346. lt_prog_compiler_static=
  8347. fi
  8348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8349. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8350. if test ${lt_cv_prog_compiler_c_o+y}
  8351. then :
  8352. printf %s "(cached) " >&6
  8353. else $as_nop
  8354. lt_cv_prog_compiler_c_o=no
  8355. $RM -r conftest 2>/dev/null
  8356. mkdir conftest
  8357. cd conftest
  8358. mkdir out
  8359. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8360. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8361. # Insert the option either (1) after the last *FLAGS variable, or
  8362. # (2) before a word containing "conftest.", or (3) at the end.
  8363. # Note that $ac_compile itself does not contain backslashes and begins
  8364. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8365. lt_compile=`echo "$ac_compile" | $SED \
  8366. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8367. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8368. -e 's:$: $lt_compiler_flag:'`
  8369. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8370. (eval "$lt_compile" 2>out/conftest.err)
  8371. ac_status=$?
  8372. cat out/conftest.err >&5
  8373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8374. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8375. then
  8376. # The compiler can only warn and ignore the option if not recognized
  8377. # So say no if there are warnings
  8378. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8379. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8380. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8381. lt_cv_prog_compiler_c_o=yes
  8382. fi
  8383. fi
  8384. chmod u+w . 2>&5
  8385. $RM conftest*
  8386. # SGI C++ compiler will create directory out/ii_files/ for
  8387. # template instantiation
  8388. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8389. $RM out/* && rmdir out
  8390. cd ..
  8391. $RM -r conftest
  8392. $RM conftest*
  8393. fi
  8394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8395. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8397. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8398. if test ${lt_cv_prog_compiler_c_o+y}
  8399. then :
  8400. printf %s "(cached) " >&6
  8401. else $as_nop
  8402. lt_cv_prog_compiler_c_o=no
  8403. $RM -r conftest 2>/dev/null
  8404. mkdir conftest
  8405. cd conftest
  8406. mkdir out
  8407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8408. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8409. # Insert the option either (1) after the last *FLAGS variable, or
  8410. # (2) before a word containing "conftest.", or (3) at the end.
  8411. # Note that $ac_compile itself does not contain backslashes and begins
  8412. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8413. lt_compile=`echo "$ac_compile" | $SED \
  8414. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8415. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8416. -e 's:$: $lt_compiler_flag:'`
  8417. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8418. (eval "$lt_compile" 2>out/conftest.err)
  8419. ac_status=$?
  8420. cat out/conftest.err >&5
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8423. then
  8424. # The compiler can only warn and ignore the option if not recognized
  8425. # So say no if there are warnings
  8426. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8427. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8428. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8429. lt_cv_prog_compiler_c_o=yes
  8430. fi
  8431. fi
  8432. chmod u+w . 2>&5
  8433. $RM conftest*
  8434. # SGI C++ compiler will create directory out/ii_files/ for
  8435. # template instantiation
  8436. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8437. $RM out/* && rmdir out
  8438. cd ..
  8439. $RM -r conftest
  8440. $RM conftest*
  8441. fi
  8442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8443. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8444. hard_links=nottested
  8445. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8446. # do not overwrite the value of need_locks provided by the user
  8447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8448. printf %s "checking if we can lock with hard links... " >&6; }
  8449. hard_links=yes
  8450. $RM conftest*
  8451. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8452. touch conftest.a
  8453. ln conftest.a conftest.b 2>&5 || hard_links=no
  8454. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8456. printf "%s\n" "$hard_links" >&6; }
  8457. if test no = "$hard_links"; then
  8458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8459. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8460. need_locks=warn
  8461. fi
  8462. else
  8463. need_locks=no
  8464. fi
  8465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8466. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8467. runpath_var=
  8468. allow_undefined_flag=
  8469. always_export_symbols=no
  8470. archive_cmds=
  8471. archive_expsym_cmds=
  8472. compiler_needs_object=no
  8473. enable_shared_with_static_runtimes=no
  8474. export_dynamic_flag_spec=
  8475. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8476. hardcode_automatic=no
  8477. hardcode_direct=no
  8478. hardcode_direct_absolute=no
  8479. hardcode_libdir_flag_spec=
  8480. hardcode_libdir_separator=
  8481. hardcode_minus_L=no
  8482. hardcode_shlibpath_var=unsupported
  8483. inherit_rpath=no
  8484. link_all_deplibs=unknown
  8485. module_cmds=
  8486. module_expsym_cmds=
  8487. old_archive_from_new_cmds=
  8488. old_archive_from_expsyms_cmds=
  8489. thread_safe_flag_spec=
  8490. whole_archive_flag_spec=
  8491. # include_expsyms should be a list of space-separated symbols to be *always*
  8492. # included in the symbol list
  8493. include_expsyms=
  8494. # exclude_expsyms can be an extended regexp of symbols to exclude
  8495. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8496. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8497. # as well as any symbol that contains 'd'.
  8498. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8499. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8500. # platforms (ab)use it in PIC code, but their linkers get confused if
  8501. # the symbol is explicitly referenced. Since portable code cannot
  8502. # rely on this symbol name, it's probably fine to never include it in
  8503. # preloaded symbol tables.
  8504. # Exclude shared library initialization/finalization symbols.
  8505. extract_expsyms_cmds=
  8506. case $host_os in
  8507. cygwin* | mingw* | pw32* | cegcc*)
  8508. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8509. # When not using gcc, we currently assume that we are using
  8510. # Microsoft Visual C++.
  8511. if test yes != "$GCC"; then
  8512. with_gnu_ld=no
  8513. fi
  8514. ;;
  8515. interix*)
  8516. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8517. with_gnu_ld=yes
  8518. ;;
  8519. openbsd* | bitrig*)
  8520. with_gnu_ld=no
  8521. ;;
  8522. esac
  8523. ld_shlibs=yes
  8524. # On some targets, GNU ld is compatible enough with the native linker
  8525. # that we're better off using the native interface for both.
  8526. lt_use_gnu_ld_interface=no
  8527. if test yes = "$with_gnu_ld"; then
  8528. case $host_os in
  8529. aix*)
  8530. # The AIX port of GNU ld has always aspired to compatibility
  8531. # with the native linker. However, as the warning in the GNU ld
  8532. # block says, versions before 2.19.5* couldn't really create working
  8533. # shared libraries, regardless of the interface used.
  8534. case `$LD -v 2>&1` in
  8535. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8536. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8537. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8538. *)
  8539. lt_use_gnu_ld_interface=yes
  8540. ;;
  8541. esac
  8542. ;;
  8543. *)
  8544. lt_use_gnu_ld_interface=yes
  8545. ;;
  8546. esac
  8547. fi
  8548. if test yes = "$lt_use_gnu_ld_interface"; then
  8549. # If archive_cmds runs LD, not CC, wlarc should be empty
  8550. wlarc='$wl'
  8551. # Set some defaults for GNU ld with shared library support. These
  8552. # are reset later if shared libraries are not supported. Putting them
  8553. # here allows them to be overridden if necessary.
  8554. runpath_var=LD_RUN_PATH
  8555. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8556. export_dynamic_flag_spec='$wl--export-dynamic'
  8557. # ancient GNU ld didn't support --whole-archive et. al.
  8558. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8559. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8560. else
  8561. whole_archive_flag_spec=
  8562. fi
  8563. supports_anon_versioning=no
  8564. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8565. *GNU\ gold*) supports_anon_versioning=yes ;;
  8566. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8567. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8568. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8569. *\ 2.11.*) ;; # other 2.11 versions
  8570. *) supports_anon_versioning=yes ;;
  8571. esac
  8572. # See if GNU ld supports shared libraries.
  8573. case $host_os in
  8574. aix[3-9]*)
  8575. # On AIX/PPC, the GNU linker is very broken
  8576. if test ia64 != "$host_cpu"; then
  8577. ld_shlibs=no
  8578. cat <<_LT_EOF 1>&2
  8579. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8580. *** to be unable to reliably create shared libraries on AIX.
  8581. *** Therefore, libtool is disabling shared libraries support. If you
  8582. *** really care for shared libraries, you may want to install binutils
  8583. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8584. *** You will then need to restart the configuration process.
  8585. _LT_EOF
  8586. fi
  8587. ;;
  8588. amigaos*)
  8589. case $host_cpu in
  8590. powerpc)
  8591. # see comment about AmigaOS4 .so support
  8592. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8593. archive_expsym_cmds=''
  8594. ;;
  8595. m68k)
  8596. 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)'
  8597. hardcode_libdir_flag_spec='-L$libdir'
  8598. hardcode_minus_L=yes
  8599. ;;
  8600. esac
  8601. ;;
  8602. beos*)
  8603. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8604. allow_undefined_flag=unsupported
  8605. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8606. # support --undefined. This deserves some investigation. FIXME
  8607. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8608. else
  8609. ld_shlibs=no
  8610. fi
  8611. ;;
  8612. cygwin* | mingw* | pw32* | cegcc*)
  8613. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8614. # as there is no search path for DLLs.
  8615. hardcode_libdir_flag_spec='-L$libdir'
  8616. export_dynamic_flag_spec='$wl--export-all-symbols'
  8617. allow_undefined_flag=unsupported
  8618. always_export_symbols=no
  8619. enable_shared_with_static_runtimes=yes
  8620. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8621. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8622. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8623. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8624. # If the export-symbols file already is a .def file, use it as
  8625. # is; otherwise, prepend EXPORTS...
  8626. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8627. cp $export_symbols $output_objdir/$soname.def;
  8628. else
  8629. echo EXPORTS > $output_objdir/$soname.def;
  8630. cat $export_symbols >> $output_objdir/$soname.def;
  8631. fi~
  8632. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8633. else
  8634. ld_shlibs=no
  8635. fi
  8636. ;;
  8637. haiku*)
  8638. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8639. link_all_deplibs=yes
  8640. ;;
  8641. os2*)
  8642. hardcode_libdir_flag_spec='-L$libdir'
  8643. hardcode_minus_L=yes
  8644. allow_undefined_flag=unsupported
  8645. shrext_cmds=.dll
  8646. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8647. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8648. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8649. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8650. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8651. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8652. emximp -o $lib $output_objdir/$libname.def'
  8653. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8654. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8655. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8656. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8657. prefix_cmds="$SED"~
  8658. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8659. prefix_cmds="$prefix_cmds -e 1d";
  8660. fi~
  8661. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8662. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8663. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8664. emximp -o $lib $output_objdir/$libname.def'
  8665. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8666. enable_shared_with_static_runtimes=yes
  8667. file_list_spec='@'
  8668. ;;
  8669. interix[3-9]*)
  8670. hardcode_direct=no
  8671. hardcode_shlibpath_var=no
  8672. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8673. export_dynamic_flag_spec='$wl-E'
  8674. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8675. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8676. # default) and relocated if they conflict, which is a slow very memory
  8677. # consuming and fragmenting process. To avoid this, we pick a random,
  8678. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8679. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8680. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8681. 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'
  8682. ;;
  8683. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8684. tmp_diet=no
  8685. if test linux-dietlibc = "$host_os"; then
  8686. case $cc_basename in
  8687. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8688. esac
  8689. fi
  8690. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8691. && test no = "$tmp_diet"
  8692. then
  8693. tmp_addflag=' $pic_flag'
  8694. tmp_sharedflag='-shared'
  8695. case $cc_basename,$host_cpu in
  8696. pgcc*) # Portland Group C compiler
  8697. 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'
  8698. tmp_addflag=' $pic_flag'
  8699. ;;
  8700. pgf77* | pgf90* | pgf95* | pgfortran*)
  8701. # Portland Group f77 and f90 compilers
  8702. 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'
  8703. tmp_addflag=' $pic_flag -Mnomain' ;;
  8704. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8705. tmp_addflag=' -i_dynamic' ;;
  8706. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8707. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8708. ifc* | ifort*) # Intel Fortran compiler
  8709. tmp_addflag=' -nofor_main' ;;
  8710. lf95*) # Lahey Fortran 8.1
  8711. whole_archive_flag_spec=
  8712. tmp_sharedflag='--shared' ;;
  8713. nagfor*) # NAGFOR 5.3
  8714. tmp_sharedflag='-Wl,-shared' ;;
  8715. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8716. tmp_sharedflag='-qmkshrobj'
  8717. tmp_addflag= ;;
  8718. nvcc*) # Cuda Compiler Driver 2.2
  8719. 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'
  8720. compiler_needs_object=yes
  8721. ;;
  8722. esac
  8723. case `$CC -V 2>&1 | sed 5q` in
  8724. *Sun\ C*) # Sun C 5.9
  8725. 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'
  8726. compiler_needs_object=yes
  8727. tmp_sharedflag='-G' ;;
  8728. *Sun\ F*) # Sun Fortran 8.3
  8729. tmp_sharedflag='-G' ;;
  8730. esac
  8731. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8732. if test yes = "$supports_anon_versioning"; then
  8733. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8734. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8735. echo "local: *; };" >> $output_objdir/$libname.ver~
  8736. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8737. fi
  8738. case $cc_basename in
  8739. tcc*)
  8740. export_dynamic_flag_spec='-rdynamic'
  8741. ;;
  8742. xlf* | bgf* | bgxlf* | mpixlf*)
  8743. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8744. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8745. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8746. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8747. if test yes = "$supports_anon_versioning"; then
  8748. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8749. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8750. echo "local: *; };" >> $output_objdir/$libname.ver~
  8751. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8752. fi
  8753. ;;
  8754. esac
  8755. else
  8756. ld_shlibs=no
  8757. fi
  8758. ;;
  8759. netbsd*)
  8760. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8761. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8762. wlarc=
  8763. else
  8764. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8765. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8766. fi
  8767. ;;
  8768. solaris*)
  8769. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8770. ld_shlibs=no
  8771. cat <<_LT_EOF 1>&2
  8772. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8773. *** create shared libraries on Solaris systems. Therefore, libtool
  8774. *** is disabling shared libraries support. We urge you to upgrade GNU
  8775. *** binutils to release 2.9.1 or newer. Another option is to modify
  8776. *** your PATH or compiler configuration so that the native linker is
  8777. *** used, and then restart.
  8778. _LT_EOF
  8779. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8780. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8781. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8782. else
  8783. ld_shlibs=no
  8784. fi
  8785. ;;
  8786. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8787. case `$LD -v 2>&1` in
  8788. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8789. ld_shlibs=no
  8790. cat <<_LT_EOF 1>&2
  8791. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8792. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8793. *** is disabling shared libraries support. We urge you to upgrade GNU
  8794. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8795. *** your PATH or compiler configuration so that the native linker is
  8796. *** used, and then restart.
  8797. _LT_EOF
  8798. ;;
  8799. *)
  8800. # For security reasons, it is highly recommended that you always
  8801. # use absolute paths for naming shared libraries, and exclude the
  8802. # DT_RUNPATH tag from executables and libraries. But doing so
  8803. # requires that you compile everything twice, which is a pain.
  8804. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8805. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8806. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8807. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8808. else
  8809. ld_shlibs=no
  8810. fi
  8811. ;;
  8812. esac
  8813. ;;
  8814. sunos4*)
  8815. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8816. wlarc=
  8817. hardcode_direct=yes
  8818. hardcode_shlibpath_var=no
  8819. ;;
  8820. *)
  8821. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8822. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8823. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8824. else
  8825. ld_shlibs=no
  8826. fi
  8827. ;;
  8828. esac
  8829. if test no = "$ld_shlibs"; then
  8830. runpath_var=
  8831. hardcode_libdir_flag_spec=
  8832. export_dynamic_flag_spec=
  8833. whole_archive_flag_spec=
  8834. fi
  8835. else
  8836. # PORTME fill in a description of your system's linker (not GNU ld)
  8837. case $host_os in
  8838. aix3*)
  8839. allow_undefined_flag=unsupported
  8840. always_export_symbols=yes
  8841. 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'
  8842. # Note: this linker hardcodes the directories in LIBPATH if there
  8843. # are no directories specified by -L.
  8844. hardcode_minus_L=yes
  8845. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8846. # Neither direct hardcoding nor static linking is supported with a
  8847. # broken collect2.
  8848. hardcode_direct=unsupported
  8849. fi
  8850. ;;
  8851. aix[4-9]*)
  8852. if test ia64 = "$host_cpu"; then
  8853. # On IA64, the linker does run time linking by default, so we don't
  8854. # have to do anything special.
  8855. aix_use_runtimelinking=no
  8856. exp_sym_flag='-Bexport'
  8857. no_entry_flag=
  8858. else
  8859. # If we're using GNU nm, then we don't want the "-C" option.
  8860. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8861. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8862. # weak defined symbols like other global defined symbols, whereas
  8863. # GNU nm marks them as "W".
  8864. # While the 'weak' keyword is ignored in the Export File, we need
  8865. # it in the Import File for the 'aix-soname' feature, so we have
  8866. # to replace the "-B" option with "-P" for AIX nm.
  8867. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8868. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8869. else
  8870. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8871. fi
  8872. aix_use_runtimelinking=no
  8873. # Test if we are trying to use run time linking or normal
  8874. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8875. # have runtime linking enabled, and use it for executables.
  8876. # For shared libraries, we enable/disable runtime linking
  8877. # depending on the kind of the shared library created -
  8878. # when "with_aix_soname,aix_use_runtimelinking" is:
  8879. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8880. # "aix,yes" lib.so shared, rtl:yes, for executables
  8881. # lib.a static archive
  8882. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8883. # lib.a(lib.so.V) shared, rtl:no, for executables
  8884. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8885. # lib.a(lib.so.V) shared, rtl:no
  8886. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8887. # lib.a static archive
  8888. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8889. for ld_flag in $LDFLAGS; do
  8890. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8891. aix_use_runtimelinking=yes
  8892. break
  8893. fi
  8894. done
  8895. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8896. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8897. # so we don't have lib.a shared libs to link our executables.
  8898. # We have to force runtime linking in this case.
  8899. aix_use_runtimelinking=yes
  8900. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8901. fi
  8902. ;;
  8903. esac
  8904. exp_sym_flag='-bexport'
  8905. no_entry_flag='-bnoentry'
  8906. fi
  8907. # When large executables or shared objects are built, AIX ld can
  8908. # have problems creating the table of contents. If linking a library
  8909. # or program results in "error TOC overflow" add -mminimal-toc to
  8910. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8911. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8912. archive_cmds=''
  8913. hardcode_direct=yes
  8914. hardcode_direct_absolute=yes
  8915. hardcode_libdir_separator=':'
  8916. link_all_deplibs=yes
  8917. file_list_spec='$wl-f,'
  8918. case $with_aix_soname,$aix_use_runtimelinking in
  8919. aix,*) ;; # traditional, no import file
  8920. svr4,* | *,yes) # use import file
  8921. # The Import File defines what to hardcode.
  8922. hardcode_direct=no
  8923. hardcode_direct_absolute=no
  8924. ;;
  8925. esac
  8926. if test yes = "$GCC"; then
  8927. case $host_os in aix4.[012]|aix4.[012].*)
  8928. # We only want to do this on AIX 4.2 and lower, the check
  8929. # below for broken collect2 doesn't work under 4.3+
  8930. collect2name=`$CC -print-prog-name=collect2`
  8931. if test -f "$collect2name" &&
  8932. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8933. then
  8934. # We have reworked collect2
  8935. :
  8936. else
  8937. # We have old collect2
  8938. hardcode_direct=unsupported
  8939. # It fails to find uninstalled libraries when the uninstalled
  8940. # path is not listed in the libpath. Setting hardcode_minus_L
  8941. # to unsupported forces relinking
  8942. hardcode_minus_L=yes
  8943. hardcode_libdir_flag_spec='-L$libdir'
  8944. hardcode_libdir_separator=
  8945. fi
  8946. ;;
  8947. esac
  8948. shared_flag='-shared'
  8949. if test yes = "$aix_use_runtimelinking"; then
  8950. shared_flag="$shared_flag "'$wl-G'
  8951. fi
  8952. # Need to ensure runtime linking is disabled for the traditional
  8953. # shared library, or the linker may eventually find shared libraries
  8954. # /with/ Import File - we do not want to mix them.
  8955. shared_flag_aix='-shared'
  8956. shared_flag_svr4='-shared $wl-G'
  8957. else
  8958. # not using gcc
  8959. if test ia64 = "$host_cpu"; then
  8960. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8961. # chokes on -Wl,-G. The following line is correct:
  8962. shared_flag='-G'
  8963. else
  8964. if test yes = "$aix_use_runtimelinking"; then
  8965. shared_flag='$wl-G'
  8966. else
  8967. shared_flag='$wl-bM:SRE'
  8968. fi
  8969. shared_flag_aix='$wl-bM:SRE'
  8970. shared_flag_svr4='$wl-G'
  8971. fi
  8972. fi
  8973. export_dynamic_flag_spec='$wl-bexpall'
  8974. # It seems that -bexpall does not export symbols beginning with
  8975. # underscore (_), so it is better to generate a list of symbols to export.
  8976. always_export_symbols=yes
  8977. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8978. # Warning - without using the other runtime loading flags (-brtl),
  8979. # -berok will link without error, but may produce a broken library.
  8980. allow_undefined_flag='-berok'
  8981. # Determine the default libpath from the value encoded in an
  8982. # empty executable.
  8983. if test set = "${lt_cv_aix_libpath+set}"; then
  8984. aix_libpath=$lt_cv_aix_libpath
  8985. else
  8986. if test ${lt_cv_aix_libpath_+y}
  8987. then :
  8988. printf %s "(cached) " >&6
  8989. else $as_nop
  8990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8991. /* end confdefs.h. */
  8992. int
  8993. main (void)
  8994. {
  8995. ;
  8996. return 0;
  8997. }
  8998. _ACEOF
  8999. if ac_fn_c_try_link "$LINENO"
  9000. then :
  9001. lt_aix_libpath_sed='
  9002. /Import File Strings/,/^$/ {
  9003. /^0/ {
  9004. s/^0 *\([^ ]*\) *$/\1/
  9005. p
  9006. }
  9007. }'
  9008. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9009. # Check for a 64-bit object if we didn't find anything.
  9010. if test -z "$lt_cv_aix_libpath_"; then
  9011. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9012. fi
  9013. fi
  9014. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9015. conftest$ac_exeext conftest.$ac_ext
  9016. if test -z "$lt_cv_aix_libpath_"; then
  9017. lt_cv_aix_libpath_=/usr/lib:/lib
  9018. fi
  9019. fi
  9020. aix_libpath=$lt_cv_aix_libpath_
  9021. fi
  9022. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9023. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9024. else
  9025. if test ia64 = "$host_cpu"; then
  9026. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9027. allow_undefined_flag="-z nodefs"
  9028. 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"
  9029. else
  9030. # Determine the default libpath from the value encoded in an
  9031. # empty executable.
  9032. if test set = "${lt_cv_aix_libpath+set}"; then
  9033. aix_libpath=$lt_cv_aix_libpath
  9034. else
  9035. if test ${lt_cv_aix_libpath_+y}
  9036. then :
  9037. printf %s "(cached) " >&6
  9038. else $as_nop
  9039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9040. /* end confdefs.h. */
  9041. int
  9042. main (void)
  9043. {
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. if ac_fn_c_try_link "$LINENO"
  9049. then :
  9050. lt_aix_libpath_sed='
  9051. /Import File Strings/,/^$/ {
  9052. /^0/ {
  9053. s/^0 *\([^ ]*\) *$/\1/
  9054. p
  9055. }
  9056. }'
  9057. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9058. # Check for a 64-bit object if we didn't find anything.
  9059. if test -z "$lt_cv_aix_libpath_"; then
  9060. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9061. fi
  9062. fi
  9063. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9064. conftest$ac_exeext conftest.$ac_ext
  9065. if test -z "$lt_cv_aix_libpath_"; then
  9066. lt_cv_aix_libpath_=/usr/lib:/lib
  9067. fi
  9068. fi
  9069. aix_libpath=$lt_cv_aix_libpath_
  9070. fi
  9071. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9072. # Warning - without using the other run time loading flags,
  9073. # -berok will link without error, but may produce a broken library.
  9074. no_undefined_flag=' $wl-bernotok'
  9075. allow_undefined_flag=' $wl-berok'
  9076. if test yes = "$with_gnu_ld"; then
  9077. # We only use this code for GNU lds that support --whole-archive.
  9078. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9079. else
  9080. # Exported symbols can be pulled into shared objects from archives
  9081. whole_archive_flag_spec='$convenience'
  9082. fi
  9083. archive_cmds_need_lc=yes
  9084. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9085. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9086. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9087. if test svr4 != "$with_aix_soname"; then
  9088. # This is similar to how AIX traditionally builds its shared libraries.
  9089. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9090. fi
  9091. if test aix != "$with_aix_soname"; then
  9092. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9093. else
  9094. # used by -dlpreopen to get the symbols
  9095. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9096. fi
  9097. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9098. fi
  9099. fi
  9100. ;;
  9101. amigaos*)
  9102. case $host_cpu in
  9103. powerpc)
  9104. # see comment about AmigaOS4 .so support
  9105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9106. archive_expsym_cmds=''
  9107. ;;
  9108. m68k)
  9109. 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)'
  9110. hardcode_libdir_flag_spec='-L$libdir'
  9111. hardcode_minus_L=yes
  9112. ;;
  9113. esac
  9114. ;;
  9115. bsdi[45]*)
  9116. export_dynamic_flag_spec=-rdynamic
  9117. ;;
  9118. cygwin* | mingw* | pw32* | cegcc*)
  9119. # When not using gcc, we currently assume that we are using
  9120. # Microsoft Visual C++.
  9121. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9122. # no search path for DLLs.
  9123. case $cc_basename in
  9124. cl*)
  9125. # Native MSVC
  9126. hardcode_libdir_flag_spec=' '
  9127. allow_undefined_flag=unsupported
  9128. always_export_symbols=yes
  9129. file_list_spec='@'
  9130. # Tell ltmain to make .lib files, not .a files.
  9131. libext=lib
  9132. # Tell ltmain to make .dll files, not .so files.
  9133. shrext_cmds=.dll
  9134. # FIXME: Setting linknames here is a bad hack.
  9135. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9136. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9137. cp "$export_symbols" "$output_objdir/$soname.def";
  9138. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9139. else
  9140. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9141. fi~
  9142. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9143. linknames='
  9144. # The linker will not automatically build a static lib if we build a DLL.
  9145. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9146. enable_shared_with_static_runtimes=yes
  9147. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9148. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9149. # Don't use ranlib
  9150. old_postinstall_cmds='chmod 644 $oldlib'
  9151. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9152. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9153. case $lt_outputfile in
  9154. *.exe|*.EXE) ;;
  9155. *)
  9156. lt_outputfile=$lt_outputfile.exe
  9157. lt_tool_outputfile=$lt_tool_outputfile.exe
  9158. ;;
  9159. esac~
  9160. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9161. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9162. $RM "$lt_outputfile.manifest";
  9163. fi'
  9164. ;;
  9165. *)
  9166. # Assume MSVC wrapper
  9167. hardcode_libdir_flag_spec=' '
  9168. allow_undefined_flag=unsupported
  9169. # Tell ltmain to make .lib files, not .a files.
  9170. libext=lib
  9171. # Tell ltmain to make .dll files, not .so files.
  9172. shrext_cmds=.dll
  9173. # FIXME: Setting linknames here is a bad hack.
  9174. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9175. # The linker will automatically build a .lib file if we build a DLL.
  9176. old_archive_from_new_cmds='true'
  9177. # FIXME: Should let the user specify the lib program.
  9178. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9179. enable_shared_with_static_runtimes=yes
  9180. ;;
  9181. esac
  9182. ;;
  9183. darwin* | rhapsody*)
  9184. archive_cmds_need_lc=no
  9185. hardcode_direct=no
  9186. hardcode_automatic=yes
  9187. hardcode_shlibpath_var=unsupported
  9188. if test yes = "$lt_cv_ld_force_load"; then
  9189. 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\"`'
  9190. else
  9191. whole_archive_flag_spec=''
  9192. fi
  9193. link_all_deplibs=yes
  9194. allow_undefined_flag=$_lt_dar_allow_undefined
  9195. case $cc_basename in
  9196. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9197. *) _lt_dar_can_shared=$GCC ;;
  9198. esac
  9199. if test yes = "$_lt_dar_can_shared"; then
  9200. output_verbose_link_cmd=func_echo_all
  9201. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9202. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9203. 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"
  9204. 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"
  9205. else
  9206. ld_shlibs=no
  9207. fi
  9208. ;;
  9209. dgux*)
  9210. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9211. hardcode_libdir_flag_spec='-L$libdir'
  9212. hardcode_shlibpath_var=no
  9213. ;;
  9214. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9215. # support. Future versions do this automatically, but an explicit c++rt0.o
  9216. # does not break anything, and helps significantly (at the cost of a little
  9217. # extra space).
  9218. freebsd2.2*)
  9219. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9220. hardcode_libdir_flag_spec='-R$libdir'
  9221. hardcode_direct=yes
  9222. hardcode_shlibpath_var=no
  9223. ;;
  9224. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9225. freebsd2.*)
  9226. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9227. hardcode_direct=yes
  9228. hardcode_minus_L=yes
  9229. hardcode_shlibpath_var=no
  9230. ;;
  9231. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9232. freebsd* | dragonfly* | midnightbsd*)
  9233. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9234. hardcode_libdir_flag_spec='-R$libdir'
  9235. hardcode_direct=yes
  9236. hardcode_shlibpath_var=no
  9237. ;;
  9238. hpux9*)
  9239. if test yes = "$GCC"; then
  9240. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9241. else
  9242. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9243. fi
  9244. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9245. hardcode_libdir_separator=:
  9246. hardcode_direct=yes
  9247. # hardcode_minus_L: Not really in the search PATH,
  9248. # but as the default location of the library.
  9249. hardcode_minus_L=yes
  9250. export_dynamic_flag_spec='$wl-E'
  9251. ;;
  9252. hpux10*)
  9253. if test yes,no = "$GCC,$with_gnu_ld"; then
  9254. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9255. else
  9256. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9257. fi
  9258. if test no = "$with_gnu_ld"; then
  9259. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9260. hardcode_libdir_separator=:
  9261. hardcode_direct=yes
  9262. hardcode_direct_absolute=yes
  9263. export_dynamic_flag_spec='$wl-E'
  9264. # hardcode_minus_L: Not really in the search PATH,
  9265. # but as the default location of the library.
  9266. hardcode_minus_L=yes
  9267. fi
  9268. ;;
  9269. hpux11*)
  9270. if test yes,no = "$GCC,$with_gnu_ld"; then
  9271. case $host_cpu in
  9272. hppa*64*)
  9273. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9274. ;;
  9275. ia64*)
  9276. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9277. ;;
  9278. *)
  9279. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9280. ;;
  9281. esac
  9282. else
  9283. case $host_cpu in
  9284. hppa*64*)
  9285. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9286. ;;
  9287. ia64*)
  9288. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9289. ;;
  9290. *)
  9291. # Older versions of the 11.00 compiler do not understand -b yet
  9292. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9294. printf %s "checking if $CC understands -b... " >&6; }
  9295. if test ${lt_cv_prog_compiler__b+y}
  9296. then :
  9297. printf %s "(cached) " >&6
  9298. else $as_nop
  9299. lt_cv_prog_compiler__b=no
  9300. save_LDFLAGS=$LDFLAGS
  9301. LDFLAGS="$LDFLAGS -b"
  9302. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9303. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9304. # The linker can only warn and ignore the option if not recognized
  9305. # So say no if there are warnings
  9306. if test -s conftest.err; then
  9307. # Append any errors to the config.log.
  9308. cat conftest.err 1>&5
  9309. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9311. if diff conftest.exp conftest.er2 >/dev/null; then
  9312. lt_cv_prog_compiler__b=yes
  9313. fi
  9314. else
  9315. lt_cv_prog_compiler__b=yes
  9316. fi
  9317. fi
  9318. $RM -r conftest*
  9319. LDFLAGS=$save_LDFLAGS
  9320. fi
  9321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9322. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9323. if test yes = "$lt_cv_prog_compiler__b"; then
  9324. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9325. else
  9326. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9327. fi
  9328. ;;
  9329. esac
  9330. fi
  9331. if test no = "$with_gnu_ld"; then
  9332. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9333. hardcode_libdir_separator=:
  9334. case $host_cpu in
  9335. hppa*64*|ia64*)
  9336. hardcode_direct=no
  9337. hardcode_shlibpath_var=no
  9338. ;;
  9339. *)
  9340. hardcode_direct=yes
  9341. hardcode_direct_absolute=yes
  9342. export_dynamic_flag_spec='$wl-E'
  9343. # hardcode_minus_L: Not really in the search PATH,
  9344. # but as the default location of the library.
  9345. hardcode_minus_L=yes
  9346. ;;
  9347. esac
  9348. fi
  9349. ;;
  9350. irix5* | irix6* | nonstopux*)
  9351. if test yes = "$GCC"; then
  9352. archive_cmds='$CC -shared $pic_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'
  9353. # Try to use the -exported_symbol ld option, if it does not
  9354. # work, assume that -exports_file does not work either and
  9355. # implicitly export all symbols.
  9356. # This should be the same for all languages, so no per-tag cache variable.
  9357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9358. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9359. if test ${lt_cv_irix_exported_symbol+y}
  9360. then :
  9361. printf %s "(cached) " >&6
  9362. else $as_nop
  9363. save_LDFLAGS=$LDFLAGS
  9364. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9366. /* end confdefs.h. */
  9367. int foo (void) { return 0; }
  9368. _ACEOF
  9369. if ac_fn_c_try_link "$LINENO"
  9370. then :
  9371. lt_cv_irix_exported_symbol=yes
  9372. else $as_nop
  9373. lt_cv_irix_exported_symbol=no
  9374. fi
  9375. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9376. conftest$ac_exeext conftest.$ac_ext
  9377. LDFLAGS=$save_LDFLAGS
  9378. fi
  9379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9380. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9381. if test yes = "$lt_cv_irix_exported_symbol"; then
  9382. archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
  9383. fi
  9384. else
  9385. 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'
  9386. 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'
  9387. fi
  9388. archive_cmds_need_lc='no'
  9389. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9390. hardcode_libdir_separator=:
  9391. inherit_rpath=yes
  9392. link_all_deplibs=yes
  9393. ;;
  9394. linux*)
  9395. case $cc_basename in
  9396. tcc*)
  9397. # Fabrice Bellard et al's Tiny C Compiler
  9398. ld_shlibs=yes
  9399. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9400. ;;
  9401. esac
  9402. ;;
  9403. netbsd*)
  9404. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9405. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9406. else
  9407. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9408. fi
  9409. hardcode_libdir_flag_spec='-R$libdir'
  9410. hardcode_direct=yes
  9411. hardcode_shlibpath_var=no
  9412. ;;
  9413. newsos6)
  9414. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9415. hardcode_direct=yes
  9416. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9417. hardcode_libdir_separator=:
  9418. hardcode_shlibpath_var=no
  9419. ;;
  9420. *nto* | *qnx*)
  9421. ;;
  9422. openbsd* | bitrig*)
  9423. if test -f /usr/libexec/ld.so; then
  9424. hardcode_direct=yes
  9425. hardcode_shlibpath_var=no
  9426. hardcode_direct_absolute=yes
  9427. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9428. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9429. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9430. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9431. export_dynamic_flag_spec='$wl-E'
  9432. else
  9433. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9434. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9435. fi
  9436. else
  9437. ld_shlibs=no
  9438. fi
  9439. ;;
  9440. os2*)
  9441. hardcode_libdir_flag_spec='-L$libdir'
  9442. hardcode_minus_L=yes
  9443. allow_undefined_flag=unsupported
  9444. shrext_cmds=.dll
  9445. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9446. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9447. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9448. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9449. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9450. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9451. emximp -o $lib $output_objdir/$libname.def'
  9452. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9453. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9454. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9455. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9456. prefix_cmds="$SED"~
  9457. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9458. prefix_cmds="$prefix_cmds -e 1d";
  9459. fi~
  9460. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9461. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9462. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9463. emximp -o $lib $output_objdir/$libname.def'
  9464. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9465. enable_shared_with_static_runtimes=yes
  9466. file_list_spec='@'
  9467. ;;
  9468. osf3*)
  9469. if test yes = "$GCC"; then
  9470. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9471. 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'
  9472. else
  9473. allow_undefined_flag=' -expect_unresolved \*'
  9474. 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'
  9475. fi
  9476. archive_cmds_need_lc='no'
  9477. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9478. hardcode_libdir_separator=:
  9479. ;;
  9480. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9481. if test yes = "$GCC"; then
  9482. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9483. archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
  9484. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9485. else
  9486. allow_undefined_flag=' -expect_unresolved \*'
  9487. 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'
  9488. 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~
  9489. $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'
  9490. # Both c and cxx compiler support -rpath directly
  9491. hardcode_libdir_flag_spec='-rpath $libdir'
  9492. fi
  9493. archive_cmds_need_lc='no'
  9494. hardcode_libdir_separator=:
  9495. ;;
  9496. solaris*)
  9497. no_undefined_flag=' -z defs'
  9498. if test yes = "$GCC"; then
  9499. wlarc='$wl'
  9500. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9501. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9502. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9503. else
  9504. case `$CC -V 2>&1` in
  9505. *"Compilers 5.0"*)
  9506. wlarc=''
  9507. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9508. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9509. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9510. ;;
  9511. *)
  9512. wlarc='$wl'
  9513. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9514. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9515. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9516. ;;
  9517. esac
  9518. fi
  9519. hardcode_libdir_flag_spec='-R$libdir'
  9520. hardcode_shlibpath_var=no
  9521. case $host_os in
  9522. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9523. *)
  9524. # The compiler driver will combine and reorder linker options,
  9525. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9526. # but is careful enough not to reorder.
  9527. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9528. if test yes = "$GCC"; then
  9529. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9530. else
  9531. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9532. fi
  9533. ;;
  9534. esac
  9535. link_all_deplibs=yes
  9536. ;;
  9537. sunos4*)
  9538. if test sequent = "$host_vendor"; then
  9539. # Use $CC to link under sequent, because it throws in some extra .o
  9540. # files that make .init and .fini sections work.
  9541. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9542. else
  9543. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9544. fi
  9545. hardcode_libdir_flag_spec='-L$libdir'
  9546. hardcode_direct=yes
  9547. hardcode_minus_L=yes
  9548. hardcode_shlibpath_var=no
  9549. ;;
  9550. sysv4)
  9551. case $host_vendor in
  9552. sni)
  9553. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9554. hardcode_direct=yes # is this really true???
  9555. ;;
  9556. siemens)
  9557. ## LD is ld it makes a PLAMLIB
  9558. ## CC just makes a GrossModule.
  9559. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9560. reload_cmds='$CC -r -o $output$reload_objs'
  9561. hardcode_direct=no
  9562. ;;
  9563. motorola)
  9564. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9565. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9566. ;;
  9567. esac
  9568. runpath_var='LD_RUN_PATH'
  9569. hardcode_shlibpath_var=no
  9570. ;;
  9571. sysv4.3*)
  9572. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9573. hardcode_shlibpath_var=no
  9574. export_dynamic_flag_spec='-Bexport'
  9575. ;;
  9576. sysv4*MP*)
  9577. if test -d /usr/nec; then
  9578. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9579. hardcode_shlibpath_var=no
  9580. runpath_var=LD_RUN_PATH
  9581. hardcode_runpath_var=yes
  9582. ld_shlibs=yes
  9583. fi
  9584. ;;
  9585. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9586. no_undefined_flag='$wl-z,text'
  9587. archive_cmds_need_lc=no
  9588. hardcode_shlibpath_var=no
  9589. runpath_var='LD_RUN_PATH'
  9590. if test yes = "$GCC"; then
  9591. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9593. else
  9594. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9595. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9596. fi
  9597. ;;
  9598. sysv5* | sco3.2v5* | sco5v6*)
  9599. # Note: We CANNOT use -z defs as we might desire, because we do not
  9600. # link with -lc, and that would cause any symbols used from libc to
  9601. # always be unresolved, which means just about no library would
  9602. # ever link correctly. If we're not using GNU ld we use -z text
  9603. # though, which does catch some bad symbols but isn't as heavy-handed
  9604. # as -z defs.
  9605. no_undefined_flag='$wl-z,text'
  9606. allow_undefined_flag='$wl-z,nodefs'
  9607. archive_cmds_need_lc=no
  9608. hardcode_shlibpath_var=no
  9609. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9610. hardcode_libdir_separator=':'
  9611. link_all_deplibs=yes
  9612. export_dynamic_flag_spec='$wl-Bexport'
  9613. runpath_var='LD_RUN_PATH'
  9614. if test yes = "$GCC"; then
  9615. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9616. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9617. else
  9618. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9619. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9620. fi
  9621. ;;
  9622. uts4*)
  9623. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9624. hardcode_libdir_flag_spec='-L$libdir'
  9625. hardcode_shlibpath_var=no
  9626. ;;
  9627. *)
  9628. ld_shlibs=no
  9629. ;;
  9630. esac
  9631. if test sni = "$host_vendor"; then
  9632. case $host in
  9633. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9634. export_dynamic_flag_spec='$wl-Blargedynsym'
  9635. ;;
  9636. esac
  9637. fi
  9638. fi
  9639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9640. printf "%s\n" "$ld_shlibs" >&6; }
  9641. test no = "$ld_shlibs" && can_build_shared=no
  9642. with_gnu_ld=$with_gnu_ld
  9643. #
  9644. # Do we need to explicitly link libc?
  9645. #
  9646. case "x$archive_cmds_need_lc" in
  9647. x|xyes)
  9648. # Assume -lc should be added
  9649. archive_cmds_need_lc=yes
  9650. if test yes,yes = "$GCC,$enable_shared"; then
  9651. case $archive_cmds in
  9652. *'~'*)
  9653. # FIXME: we may have to deal with multi-command sequences.
  9654. ;;
  9655. '$CC '*)
  9656. # Test whether the compiler implicitly links with -lc since on some
  9657. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9658. # to ld, don't add -lc before -lgcc.
  9659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9660. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9661. if test ${lt_cv_archive_cmds_need_lc+y}
  9662. then :
  9663. printf %s "(cached) " >&6
  9664. else $as_nop
  9665. $RM conftest*
  9666. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9667. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9668. (eval $ac_compile) 2>&5
  9669. ac_status=$?
  9670. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9671. test $ac_status = 0; } 2>conftest.err; then
  9672. soname=conftest
  9673. lib=conftest
  9674. libobjs=conftest.$ac_objext
  9675. deplibs=
  9676. wl=$lt_prog_compiler_wl
  9677. pic_flag=$lt_prog_compiler_pic
  9678. compiler_flags=-v
  9679. linker_flags=-v
  9680. verstring=
  9681. output_objdir=.
  9682. libname=conftest
  9683. lt_save_allow_undefined_flag=$allow_undefined_flag
  9684. allow_undefined_flag=
  9685. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9686. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9687. ac_status=$?
  9688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9689. test $ac_status = 0; }
  9690. then
  9691. lt_cv_archive_cmds_need_lc=no
  9692. else
  9693. lt_cv_archive_cmds_need_lc=yes
  9694. fi
  9695. allow_undefined_flag=$lt_save_allow_undefined_flag
  9696. else
  9697. cat conftest.err 1>&5
  9698. fi
  9699. $RM conftest*
  9700. fi
  9701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9702. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9703. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9704. ;;
  9705. esac
  9706. fi
  9707. ;;
  9708. esac
  9709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9710. printf %s "checking dynamic linker characteristics... " >&6; }
  9711. if test yes = "$GCC"; then
  9712. case $host_os in
  9713. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9714. *) lt_awk_arg='/^libraries:/' ;;
  9715. esac
  9716. case $host_os in
  9717. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9718. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9719. esac
  9720. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9721. case $lt_search_path_spec in
  9722. *\;*)
  9723. # if the path contains ";" then we assume it to be the separator
  9724. # otherwise default to the standard path separator (i.e. ":") - it is
  9725. # assumed that no part of a normal pathname contains ";" but that should
  9726. # okay in the real world where ";" in dirpaths is itself problematic.
  9727. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9728. ;;
  9729. *)
  9730. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9731. ;;
  9732. esac
  9733. # Ok, now we have the path, separated by spaces, we can step through it
  9734. # and add multilib dir if necessary...
  9735. lt_tmp_lt_search_path_spec=
  9736. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9737. # ...but if some path component already ends with the multilib dir we assume
  9738. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9739. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9740. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9741. lt_multi_os_dir=
  9742. ;;
  9743. esac
  9744. for lt_sys_path in $lt_search_path_spec; do
  9745. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9746. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9747. elif test -n "$lt_multi_os_dir"; then
  9748. test -d "$lt_sys_path" && \
  9749. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9750. fi
  9751. done
  9752. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9753. BEGIN {RS = " "; FS = "/|\n";} {
  9754. lt_foo = "";
  9755. lt_count = 0;
  9756. for (lt_i = NF; lt_i > 0; lt_i--) {
  9757. if ($lt_i != "" && $lt_i != ".") {
  9758. if ($lt_i == "..") {
  9759. lt_count++;
  9760. } else {
  9761. if (lt_count == 0) {
  9762. lt_foo = "/" $lt_i lt_foo;
  9763. } else {
  9764. lt_count--;
  9765. }
  9766. }
  9767. }
  9768. }
  9769. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9770. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9771. }'`
  9772. # AWK program above erroneously prepends '/' to C:/dos/paths
  9773. # for these hosts.
  9774. case $host_os in
  9775. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9776. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9777. esac
  9778. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9779. else
  9780. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9781. fi
  9782. library_names_spec=
  9783. libname_spec='lib$name'
  9784. soname_spec=
  9785. shrext_cmds=.so
  9786. postinstall_cmds=
  9787. postuninstall_cmds=
  9788. finish_cmds=
  9789. finish_eval=
  9790. shlibpath_var=
  9791. shlibpath_overrides_runpath=unknown
  9792. version_type=none
  9793. dynamic_linker="$host_os ld.so"
  9794. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9795. need_lib_prefix=unknown
  9796. hardcode_into_libs=no
  9797. # when you set need_version to no, make sure it does not cause -set_version
  9798. # flags to be left without arguments
  9799. need_version=unknown
  9800. case $host_os in
  9801. aix3*)
  9802. version_type=linux # correct to gnu/linux during the next big refactor
  9803. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9804. shlibpath_var=LIBPATH
  9805. # AIX 3 has no versioning support, so we append a major version to the name.
  9806. soname_spec='$libname$release$shared_ext$major'
  9807. ;;
  9808. aix[4-9]*)
  9809. version_type=linux # correct to gnu/linux during the next big refactor
  9810. need_lib_prefix=no
  9811. need_version=no
  9812. hardcode_into_libs=yes
  9813. if test ia64 = "$host_cpu"; then
  9814. # AIX 5 supports IA64
  9815. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9816. shlibpath_var=LD_LIBRARY_PATH
  9817. else
  9818. # With GCC up to 2.95.x, collect2 would create an import file
  9819. # for dependence libraries. The import file would start with
  9820. # the line '#! .'. This would cause the generated library to
  9821. # depend on '.', always an invalid library. This was fixed in
  9822. # development snapshots of GCC prior to 3.0.
  9823. case $host_os in
  9824. aix4 | aix4.[01] | aix4.[01].*)
  9825. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9826. echo ' yes '
  9827. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9828. :
  9829. else
  9830. can_build_shared=no
  9831. fi
  9832. ;;
  9833. esac
  9834. # Using Import Files as archive members, it is possible to support
  9835. # filename-based versioning of shared library archives on AIX. While
  9836. # this would work for both with and without runtime linking, it will
  9837. # prevent static linking of such archives. So we do filename-based
  9838. # shared library versioning with .so extension only, which is used
  9839. # when both runtime linking and shared linking is enabled.
  9840. # Unfortunately, runtime linking may impact performance, so we do
  9841. # not want this to be the default eventually. Also, we use the
  9842. # versioned .so libs for executables only if there is the -brtl
  9843. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9844. # To allow for filename-based versioning support, we need to create
  9845. # libNAME.so.V as an archive file, containing:
  9846. # *) an Import File, referring to the versioned filename of the
  9847. # archive as well as the shared archive member, telling the
  9848. # bitwidth (32 or 64) of that shared object, and providing the
  9849. # list of exported symbols of that shared object, eventually
  9850. # decorated with the 'weak' keyword
  9851. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9852. # it being seen by the linker.
  9853. # At run time we better use the real file rather than another symlink,
  9854. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9855. case $with_aix_soname,$aix_use_runtimelinking in
  9856. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9857. # soname into executable. Probably we can add versioning support to
  9858. # collect2, so additional links can be useful in future.
  9859. aix,yes) # traditional libtool
  9860. dynamic_linker='AIX unversionable lib.so'
  9861. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9862. # instead of lib<name>.a to let people know that these are not
  9863. # typical AIX shared libraries.
  9864. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9865. ;;
  9866. aix,no) # traditional AIX only
  9867. dynamic_linker='AIX lib.a(lib.so.V)'
  9868. # We preserve .a as extension for shared libraries through AIX4.2
  9869. # and later when we are not doing run time linking.
  9870. library_names_spec='$libname$release.a $libname.a'
  9871. soname_spec='$libname$release$shared_ext$major'
  9872. ;;
  9873. svr4,*) # full svr4 only
  9874. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9875. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9876. # We do not specify a path in Import Files, so LIBPATH fires.
  9877. shlibpath_overrides_runpath=yes
  9878. ;;
  9879. *,yes) # both, prefer svr4
  9880. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9881. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9882. # unpreferred sharedlib libNAME.a needs extra handling
  9883. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9884. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9885. # We do not specify a path in Import Files, so LIBPATH fires.
  9886. shlibpath_overrides_runpath=yes
  9887. ;;
  9888. *,no) # both, prefer aix
  9889. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9890. library_names_spec='$libname$release.a $libname.a'
  9891. soname_spec='$libname$release$shared_ext$major'
  9892. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9893. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9894. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9895. ;;
  9896. esac
  9897. shlibpath_var=LIBPATH
  9898. fi
  9899. ;;
  9900. amigaos*)
  9901. case $host_cpu in
  9902. powerpc)
  9903. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9904. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9905. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9906. ;;
  9907. m68k)
  9908. library_names_spec='$libname.ixlibrary $libname.a'
  9909. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9910. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9911. ;;
  9912. esac
  9913. ;;
  9914. beos*)
  9915. library_names_spec='$libname$shared_ext'
  9916. dynamic_linker="$host_os ld.so"
  9917. shlibpath_var=LIBRARY_PATH
  9918. ;;
  9919. bsdi[45]*)
  9920. version_type=linux # correct to gnu/linux during the next big refactor
  9921. need_version=no
  9922. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9923. soname_spec='$libname$release$shared_ext$major'
  9924. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9925. shlibpath_var=LD_LIBRARY_PATH
  9926. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9927. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9928. # the default ld.so.conf also contains /usr/contrib/lib and
  9929. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9930. # libtool to hard-code these into programs
  9931. ;;
  9932. cygwin* | mingw* | pw32* | cegcc*)
  9933. version_type=windows
  9934. shrext_cmds=.dll
  9935. need_version=no
  9936. need_lib_prefix=no
  9937. case $GCC,$cc_basename in
  9938. yes,*)
  9939. # gcc
  9940. library_names_spec='$libname.dll.a'
  9941. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9942. postinstall_cmds='base_file=`basename \$file`~
  9943. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9944. dldir=$destdir/`dirname \$dlpath`~
  9945. test -d \$dldir || mkdir -p \$dldir~
  9946. $install_prog $dir/$dlname \$dldir/$dlname~
  9947. chmod a+x \$dldir/$dlname~
  9948. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9949. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9950. fi'
  9951. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9952. dlpath=$dir/\$dldll~
  9953. $RM \$dlpath'
  9954. shlibpath_overrides_runpath=yes
  9955. case $host_os in
  9956. cygwin*)
  9957. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9958. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9959. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  9960. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9961. ;;
  9962. mingw* | cegcc*)
  9963. # MinGW DLLs use traditional 'lib' prefix
  9964. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  9965. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  9966. ;;
  9967. pw32*)
  9968. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9969. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9970. ;;
  9971. esac
  9972. dynamic_linker='Win32 ld.exe'
  9973. ;;
  9974. *,cl*)
  9975. # Native MSVC
  9976. libname_spec='$name'
  9977. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9978. library_names_spec='$libname.dll.lib'
  9979. case $build_os in
  9980. mingw*)
  9981. sys_lib_search_path_spec=
  9982. lt_save_ifs=$IFS
  9983. IFS=';'
  9984. for lt_path in $LIB
  9985. do
  9986. IFS=$lt_save_ifs
  9987. # Let DOS variable expansion print the short 8.3 style file name.
  9988. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9989. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9990. done
  9991. IFS=$lt_save_ifs
  9992. # Convert to MSYS style.
  9993. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9994. ;;
  9995. cygwin*)
  9996. # Convert to unix form, then to dos form, then back to unix form
  9997. # but this time dos style (no spaces!) so that the unix form looks
  9998. # like /cygdrive/c/PROGRA~1:/cygdr...
  9999. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10000. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10001. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10002. ;;
  10003. *)
  10004. sys_lib_search_path_spec=$LIB
  10005. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10006. # It is most probably a Windows format PATH.
  10007. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10008. else
  10009. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10010. fi
  10011. # FIXME: find the short name or the path components, as spaces are
  10012. # common. (e.g. "Program Files" -> "PROGRA~1")
  10013. ;;
  10014. esac
  10015. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10016. postinstall_cmds='base_file=`basename \$file`~
  10017. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10018. dldir=$destdir/`dirname \$dlpath`~
  10019. test -d \$dldir || mkdir -p \$dldir~
  10020. $install_prog $dir/$dlname \$dldir/$dlname'
  10021. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10022. dlpath=$dir/\$dldll~
  10023. $RM \$dlpath'
  10024. shlibpath_overrides_runpath=yes
  10025. dynamic_linker='Win32 link.exe'
  10026. ;;
  10027. *)
  10028. # Assume MSVC wrapper
  10029. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10030. dynamic_linker='Win32 ld.exe'
  10031. ;;
  10032. esac
  10033. # FIXME: first we should search . and the directory the executable is in
  10034. shlibpath_var=PATH
  10035. ;;
  10036. darwin* | rhapsody*)
  10037. dynamic_linker="$host_os dyld"
  10038. version_type=darwin
  10039. need_lib_prefix=no
  10040. need_version=no
  10041. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10042. soname_spec='$libname$release$major$shared_ext'
  10043. shlibpath_overrides_runpath=yes
  10044. shlibpath_var=DYLD_LIBRARY_PATH
  10045. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10046. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10047. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10048. ;;
  10049. dgux*)
  10050. version_type=linux # correct to gnu/linux during the next big refactor
  10051. need_lib_prefix=no
  10052. need_version=no
  10053. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10054. soname_spec='$libname$release$shared_ext$major'
  10055. shlibpath_var=LD_LIBRARY_PATH
  10056. ;;
  10057. freebsd* | dragonfly* | midnightbsd*)
  10058. # DragonFly does not have aout. When/if they implement a new
  10059. # versioning mechanism, adjust this.
  10060. if test -x /usr/bin/objformat; then
  10061. objformat=`/usr/bin/objformat`
  10062. else
  10063. case $host_os in
  10064. freebsd[23].*) objformat=aout ;;
  10065. *) objformat=elf ;;
  10066. esac
  10067. fi
  10068. version_type=freebsd-$objformat
  10069. case $version_type in
  10070. freebsd-elf*)
  10071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10072. soname_spec='$libname$release$shared_ext$major'
  10073. need_version=no
  10074. need_lib_prefix=no
  10075. ;;
  10076. freebsd-*)
  10077. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10078. need_version=yes
  10079. ;;
  10080. esac
  10081. shlibpath_var=LD_LIBRARY_PATH
  10082. case $host_os in
  10083. freebsd2.*)
  10084. shlibpath_overrides_runpath=yes
  10085. ;;
  10086. freebsd3.[01]* | freebsdelf3.[01]*)
  10087. shlibpath_overrides_runpath=yes
  10088. hardcode_into_libs=yes
  10089. ;;
  10090. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10091. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10092. shlibpath_overrides_runpath=no
  10093. hardcode_into_libs=yes
  10094. ;;
  10095. *) # from 4.6 on, and DragonFly
  10096. shlibpath_overrides_runpath=yes
  10097. hardcode_into_libs=yes
  10098. ;;
  10099. esac
  10100. ;;
  10101. haiku*)
  10102. version_type=linux # correct to gnu/linux during the next big refactor
  10103. need_lib_prefix=no
  10104. need_version=no
  10105. dynamic_linker="$host_os runtime_loader"
  10106. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10107. soname_spec='$libname$release$shared_ext$major'
  10108. shlibpath_var=LIBRARY_PATH
  10109. shlibpath_overrides_runpath=no
  10110. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10111. hardcode_into_libs=yes
  10112. ;;
  10113. hpux9* | hpux10* | hpux11*)
  10114. # Give a soname corresponding to the major version so that dld.sl refuses to
  10115. # link against other versions.
  10116. version_type=sunos
  10117. need_lib_prefix=no
  10118. need_version=no
  10119. case $host_cpu in
  10120. ia64*)
  10121. shrext_cmds='.so'
  10122. hardcode_into_libs=yes
  10123. dynamic_linker="$host_os dld.so"
  10124. shlibpath_var=LD_LIBRARY_PATH
  10125. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10126. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10127. soname_spec='$libname$release$shared_ext$major'
  10128. if test 32 = "$HPUX_IA64_MODE"; then
  10129. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10130. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10131. else
  10132. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10133. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10134. fi
  10135. ;;
  10136. hppa*64*)
  10137. shrext_cmds='.sl'
  10138. hardcode_into_libs=yes
  10139. dynamic_linker="$host_os dld.sl"
  10140. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10141. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10143. soname_spec='$libname$release$shared_ext$major'
  10144. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10145. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10146. ;;
  10147. *)
  10148. shrext_cmds='.sl'
  10149. dynamic_linker="$host_os dld.sl"
  10150. shlibpath_var=SHLIB_PATH
  10151. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10152. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10153. soname_spec='$libname$release$shared_ext$major'
  10154. ;;
  10155. esac
  10156. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10157. postinstall_cmds='chmod 555 $lib'
  10158. # or fails outright, so override atomically:
  10159. install_override_mode=555
  10160. ;;
  10161. interix[3-9]*)
  10162. version_type=linux # correct to gnu/linux during the next big refactor
  10163. need_lib_prefix=no
  10164. need_version=no
  10165. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10166. soname_spec='$libname$release$shared_ext$major'
  10167. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10168. shlibpath_var=LD_LIBRARY_PATH
  10169. shlibpath_overrides_runpath=no
  10170. hardcode_into_libs=yes
  10171. ;;
  10172. irix5* | irix6* | nonstopux*)
  10173. case $host_os in
  10174. nonstopux*) version_type=nonstopux ;;
  10175. *)
  10176. if test yes = "$lt_cv_prog_gnu_ld"; then
  10177. version_type=linux # correct to gnu/linux during the next big refactor
  10178. else
  10179. version_type=irix
  10180. fi ;;
  10181. esac
  10182. need_lib_prefix=no
  10183. need_version=no
  10184. soname_spec='$libname$release$shared_ext$major'
  10185. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10186. case $host_os in
  10187. irix5* | nonstopux*)
  10188. libsuff= shlibsuff=
  10189. ;;
  10190. *)
  10191. case $LD in # libtool.m4 will add one of these switches to LD
  10192. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10193. libsuff= shlibsuff= libmagic=32-bit;;
  10194. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10195. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10196. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10197. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10198. *) libsuff= shlibsuff= libmagic=never-match;;
  10199. esac
  10200. ;;
  10201. esac
  10202. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10203. shlibpath_overrides_runpath=no
  10204. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10205. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10206. hardcode_into_libs=yes
  10207. ;;
  10208. # No shared lib support for Linux oldld, aout, or coff.
  10209. linux*oldld* | linux*aout* | linux*coff*)
  10210. dynamic_linker=no
  10211. ;;
  10212. linux*android*)
  10213. version_type=none # Android doesn't support versioned libraries.
  10214. need_lib_prefix=no
  10215. need_version=no
  10216. library_names_spec='$libname$release$shared_ext'
  10217. soname_spec='$libname$release$shared_ext'
  10218. finish_cmds=
  10219. shlibpath_var=LD_LIBRARY_PATH
  10220. shlibpath_overrides_runpath=yes
  10221. # This implies no fast_install, which is unacceptable.
  10222. # Some rework will be needed to allow for fast_install
  10223. # before this can be enabled.
  10224. hardcode_into_libs=yes
  10225. dynamic_linker='Android linker'
  10226. # Don't embed -rpath directories since the linker doesn't support them.
  10227. hardcode_libdir_flag_spec='-L$libdir'
  10228. ;;
  10229. # This must be glibc/ELF.
  10230. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10231. version_type=linux # correct to gnu/linux during the next big refactor
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10235. soname_spec='$libname$release$shared_ext$major'
  10236. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10237. shlibpath_var=LD_LIBRARY_PATH
  10238. shlibpath_overrides_runpath=no
  10239. # Some binutils ld are patched to set DT_RUNPATH
  10240. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10241. then :
  10242. printf %s "(cached) " >&6
  10243. else $as_nop
  10244. lt_cv_shlibpath_overrides_runpath=no
  10245. save_LDFLAGS=$LDFLAGS
  10246. save_libdir=$libdir
  10247. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10248. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10250. /* end confdefs.h. */
  10251. int
  10252. main (void)
  10253. {
  10254. ;
  10255. return 0;
  10256. }
  10257. _ACEOF
  10258. if ac_fn_c_try_link "$LINENO"
  10259. then :
  10260. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10261. then :
  10262. lt_cv_shlibpath_overrides_runpath=yes
  10263. fi
  10264. fi
  10265. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10266. conftest$ac_exeext conftest.$ac_ext
  10267. LDFLAGS=$save_LDFLAGS
  10268. libdir=$save_libdir
  10269. fi
  10270. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10271. # This implies no fast_install, which is unacceptable.
  10272. # Some rework will be needed to allow for fast_install
  10273. # before this can be enabled.
  10274. hardcode_into_libs=yes
  10275. # Add ABI-specific directories to the system library path.
  10276. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10277. # Ideally, we could use ldconfig to report *all* directores which are
  10278. # searched for libraries, however this is still not possible. Aside from not
  10279. # being certain /sbin/ldconfig is available, command
  10280. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10281. # even though it is searched at run-time. Try to do the best guess by
  10282. # appending ld.so.conf contents (and includes) to the search path.
  10283. if test -f /etc/ld.so.conf; then
  10284. 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' ' '`
  10285. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10286. fi
  10287. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10288. # powerpc, because MkLinux only supported shared libraries with the
  10289. # GNU dynamic linker. Since this was broken with cross compilers,
  10290. # most powerpc-linux boxes support dynamic linking these days and
  10291. # people can always --disable-shared, the test was removed, and we
  10292. # assume the GNU/Linux dynamic linker is in use.
  10293. dynamic_linker='GNU/Linux ld.so'
  10294. ;;
  10295. netbsd*)
  10296. version_type=sunos
  10297. need_lib_prefix=no
  10298. need_version=no
  10299. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10300. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10301. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10302. dynamic_linker='NetBSD (a.out) ld.so'
  10303. else
  10304. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10305. soname_spec='$libname$release$shared_ext$major'
  10306. dynamic_linker='NetBSD ld.elf_so'
  10307. fi
  10308. shlibpath_var=LD_LIBRARY_PATH
  10309. shlibpath_overrides_runpath=yes
  10310. hardcode_into_libs=yes
  10311. ;;
  10312. newsos6)
  10313. version_type=linux # correct to gnu/linux during the next big refactor
  10314. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10315. shlibpath_var=LD_LIBRARY_PATH
  10316. shlibpath_overrides_runpath=yes
  10317. ;;
  10318. *nto* | *qnx*)
  10319. version_type=qnx
  10320. need_lib_prefix=no
  10321. need_version=no
  10322. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10323. soname_spec='$libname$release$shared_ext$major'
  10324. shlibpath_var=LD_LIBRARY_PATH
  10325. shlibpath_overrides_runpath=no
  10326. hardcode_into_libs=yes
  10327. dynamic_linker='ldqnx.so'
  10328. ;;
  10329. openbsd* | bitrig*)
  10330. version_type=sunos
  10331. sys_lib_dlsearch_path_spec=/usr/lib
  10332. need_lib_prefix=no
  10333. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10334. need_version=no
  10335. else
  10336. need_version=yes
  10337. fi
  10338. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10339. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10340. shlibpath_var=LD_LIBRARY_PATH
  10341. shlibpath_overrides_runpath=yes
  10342. ;;
  10343. os2*)
  10344. libname_spec='$name'
  10345. shrext_cmds=.dll
  10346. need_lib_prefix=no
  10347. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10348. # SDL customization: removed versioning support.
  10349. # version_type=windows
  10350. # need_version=no
  10351. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10352. # v=$($ECHO $release$versuffix | tr -d .-);
  10353. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10354. # $ECHO $n$v`$shared_ext'
  10355. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10356. library_names_spec='${libname}_dll.$libext'
  10357. dynamic_linker='OS/2 ld.exe'
  10358. shlibpath_var=BEGINLIBPATH
  10359. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10360. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10361. postinstall_cmds='base_file=`basename \$file`~
  10362. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10363. dldir=$destdir/`dirname \$dlpath`~
  10364. test -d \$dldir || mkdir -p \$dldir~
  10365. $install_prog $dir/$dlname \$dldir/$dlname~
  10366. chmod a+x \$dldir/$dlname~
  10367. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10368. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10369. fi'
  10370. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10371. dlpath=$dir/\$dldll~
  10372. $RM \$dlpath'
  10373. ;;
  10374. osf3* | osf4* | osf5*)
  10375. version_type=osf
  10376. need_lib_prefix=no
  10377. need_version=no
  10378. soname_spec='$libname$release$shared_ext$major'
  10379. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10380. shlibpath_var=LD_LIBRARY_PATH
  10381. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10382. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10383. ;;
  10384. rdos*)
  10385. dynamic_linker=no
  10386. ;;
  10387. solaris*)
  10388. version_type=linux # correct to gnu/linux during the next big refactor
  10389. need_lib_prefix=no
  10390. need_version=no
  10391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10392. soname_spec='$libname$release$shared_ext$major'
  10393. shlibpath_var=LD_LIBRARY_PATH
  10394. shlibpath_overrides_runpath=yes
  10395. hardcode_into_libs=yes
  10396. # ldd complains unless libraries are executable
  10397. postinstall_cmds='chmod +x $lib'
  10398. ;;
  10399. sunos4*)
  10400. version_type=sunos
  10401. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10402. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10403. shlibpath_var=LD_LIBRARY_PATH
  10404. shlibpath_overrides_runpath=yes
  10405. if test yes = "$with_gnu_ld"; then
  10406. need_lib_prefix=no
  10407. fi
  10408. need_version=yes
  10409. ;;
  10410. sysv4 | sysv4.3*)
  10411. version_type=linux # correct to gnu/linux during the next big refactor
  10412. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10413. soname_spec='$libname$release$shared_ext$major'
  10414. shlibpath_var=LD_LIBRARY_PATH
  10415. case $host_vendor in
  10416. sni)
  10417. shlibpath_overrides_runpath=no
  10418. need_lib_prefix=no
  10419. runpath_var=LD_RUN_PATH
  10420. ;;
  10421. siemens)
  10422. need_lib_prefix=no
  10423. ;;
  10424. motorola)
  10425. need_lib_prefix=no
  10426. need_version=no
  10427. shlibpath_overrides_runpath=no
  10428. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10429. ;;
  10430. esac
  10431. ;;
  10432. sysv4*MP*)
  10433. if test -d /usr/nec; then
  10434. version_type=linux # correct to gnu/linux during the next big refactor
  10435. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10436. soname_spec='$libname$shared_ext.$major'
  10437. shlibpath_var=LD_LIBRARY_PATH
  10438. fi
  10439. ;;
  10440. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10441. version_type=sco
  10442. need_lib_prefix=no
  10443. need_version=no
  10444. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10445. soname_spec='$libname$release$shared_ext$major'
  10446. shlibpath_var=LD_LIBRARY_PATH
  10447. shlibpath_overrides_runpath=yes
  10448. hardcode_into_libs=yes
  10449. if test yes = "$with_gnu_ld"; then
  10450. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10451. else
  10452. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10453. case $host_os in
  10454. sco3.2v5*)
  10455. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10456. ;;
  10457. esac
  10458. fi
  10459. sys_lib_dlsearch_path_spec='/usr/lib'
  10460. ;;
  10461. tpf*)
  10462. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10463. version_type=linux # correct to gnu/linux during the next big refactor
  10464. need_lib_prefix=no
  10465. need_version=no
  10466. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10467. shlibpath_var=LD_LIBRARY_PATH
  10468. shlibpath_overrides_runpath=no
  10469. hardcode_into_libs=yes
  10470. ;;
  10471. uts4*)
  10472. version_type=linux # correct to gnu/linux during the next big refactor
  10473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10474. soname_spec='$libname$release$shared_ext$major'
  10475. shlibpath_var=LD_LIBRARY_PATH
  10476. ;;
  10477. *)
  10478. dynamic_linker=no
  10479. ;;
  10480. esac
  10481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10482. printf "%s\n" "$dynamic_linker" >&6; }
  10483. test no = "$dynamic_linker" && can_build_shared=no
  10484. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10485. if test yes = "$GCC"; then
  10486. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10487. fi
  10488. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10489. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10490. fi
  10491. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10492. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10493. fi
  10494. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10495. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10496. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10497. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10498. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10499. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10501. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10502. hardcode_action=
  10503. if test -n "$hardcode_libdir_flag_spec" ||
  10504. test -n "$runpath_var" ||
  10505. test yes = "$hardcode_automatic"; then
  10506. # We can hardcode non-existent directories.
  10507. if test no != "$hardcode_direct" &&
  10508. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10509. # have to relink, otherwise we might link with an installed library
  10510. # when we should be linking with a yet-to-be-installed one
  10511. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10512. test no != "$hardcode_minus_L"; then
  10513. # Linking always hardcodes the temporary library directory.
  10514. hardcode_action=relink
  10515. else
  10516. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10517. hardcode_action=immediate
  10518. fi
  10519. else
  10520. # We cannot hardcode anything, or else we can only hardcode existing
  10521. # directories.
  10522. hardcode_action=unsupported
  10523. fi
  10524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10525. printf "%s\n" "$hardcode_action" >&6; }
  10526. if test relink = "$hardcode_action" ||
  10527. test yes = "$inherit_rpath"; then
  10528. # Fast installation is not supported
  10529. enable_fast_install=no
  10530. elif test yes = "$shlibpath_overrides_runpath" ||
  10531. test no = "$enable_shared"; then
  10532. # Fast installation is not necessary
  10533. enable_fast_install=needless
  10534. fi
  10535. if test yes != "$enable_dlopen"; then
  10536. enable_dlopen=unknown
  10537. enable_dlopen_self=unknown
  10538. enable_dlopen_self_static=unknown
  10539. else
  10540. lt_cv_dlopen=no
  10541. lt_cv_dlopen_libs=
  10542. case $host_os in
  10543. beos*)
  10544. lt_cv_dlopen=load_add_on
  10545. lt_cv_dlopen_libs=
  10546. lt_cv_dlopen_self=yes
  10547. ;;
  10548. mingw* | pw32* | cegcc*)
  10549. lt_cv_dlopen=LoadLibrary
  10550. lt_cv_dlopen_libs=
  10551. ;;
  10552. cygwin*)
  10553. lt_cv_dlopen=dlopen
  10554. lt_cv_dlopen_libs=
  10555. ;;
  10556. darwin*)
  10557. # if libdl is installed we need to link against it
  10558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10559. printf %s "checking for dlopen in -ldl... " >&6; }
  10560. if test ${ac_cv_lib_dl_dlopen+y}
  10561. then :
  10562. printf %s "(cached) " >&6
  10563. else $as_nop
  10564. ac_check_lib_save_LIBS=$LIBS
  10565. LIBS="-ldl $LIBS"
  10566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10567. /* end confdefs.h. */
  10568. /* Override any GCC internal prototype to avoid an error.
  10569. Use char because int might match the return type of a GCC
  10570. builtin and then its argument prototype would still apply. */
  10571. char dlopen ();
  10572. int
  10573. main (void)
  10574. {
  10575. return dlopen ();
  10576. ;
  10577. return 0;
  10578. }
  10579. _ACEOF
  10580. if ac_fn_c_try_link "$LINENO"
  10581. then :
  10582. ac_cv_lib_dl_dlopen=yes
  10583. else $as_nop
  10584. ac_cv_lib_dl_dlopen=no
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10587. conftest$ac_exeext conftest.$ac_ext
  10588. LIBS=$ac_check_lib_save_LIBS
  10589. fi
  10590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10591. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10592. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10593. then :
  10594. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10595. else $as_nop
  10596. lt_cv_dlopen=dyld
  10597. lt_cv_dlopen_libs=
  10598. lt_cv_dlopen_self=yes
  10599. fi
  10600. ;;
  10601. tpf*)
  10602. # Don't try to run any link tests for TPF. We know it's impossible
  10603. # because TPF is a cross-compiler, and we know how we open DSOs.
  10604. lt_cv_dlopen=dlopen
  10605. lt_cv_dlopen_libs=
  10606. lt_cv_dlopen_self=no
  10607. ;;
  10608. *)
  10609. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10610. if test "x$ac_cv_func_shl_load" = xyes
  10611. then :
  10612. lt_cv_dlopen=shl_load
  10613. else $as_nop
  10614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10615. printf %s "checking for shl_load in -ldld... " >&6; }
  10616. if test ${ac_cv_lib_dld_shl_load+y}
  10617. then :
  10618. printf %s "(cached) " >&6
  10619. else $as_nop
  10620. ac_check_lib_save_LIBS=$LIBS
  10621. LIBS="-ldld $LIBS"
  10622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10623. /* end confdefs.h. */
  10624. /* Override any GCC internal prototype to avoid an error.
  10625. Use char because int might match the return type of a GCC
  10626. builtin and then its argument prototype would still apply. */
  10627. char shl_load ();
  10628. int
  10629. main (void)
  10630. {
  10631. return shl_load ();
  10632. ;
  10633. return 0;
  10634. }
  10635. _ACEOF
  10636. if ac_fn_c_try_link "$LINENO"
  10637. then :
  10638. ac_cv_lib_dld_shl_load=yes
  10639. else $as_nop
  10640. ac_cv_lib_dld_shl_load=no
  10641. fi
  10642. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10643. conftest$ac_exeext conftest.$ac_ext
  10644. LIBS=$ac_check_lib_save_LIBS
  10645. fi
  10646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10647. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10648. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10649. then :
  10650. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10651. else $as_nop
  10652. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10653. if test "x$ac_cv_func_dlopen" = xyes
  10654. then :
  10655. lt_cv_dlopen=dlopen
  10656. else $as_nop
  10657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10658. printf %s "checking for dlopen in -ldl... " >&6; }
  10659. if test ${ac_cv_lib_dl_dlopen+y}
  10660. then :
  10661. printf %s "(cached) " >&6
  10662. else $as_nop
  10663. ac_check_lib_save_LIBS=$LIBS
  10664. LIBS="-ldl $LIBS"
  10665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10666. /* end confdefs.h. */
  10667. /* Override any GCC internal prototype to avoid an error.
  10668. Use char because int might match the return type of a GCC
  10669. builtin and then its argument prototype would still apply. */
  10670. char dlopen ();
  10671. int
  10672. main (void)
  10673. {
  10674. return dlopen ();
  10675. ;
  10676. return 0;
  10677. }
  10678. _ACEOF
  10679. if ac_fn_c_try_link "$LINENO"
  10680. then :
  10681. ac_cv_lib_dl_dlopen=yes
  10682. else $as_nop
  10683. ac_cv_lib_dl_dlopen=no
  10684. fi
  10685. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. LIBS=$ac_check_lib_save_LIBS
  10688. fi
  10689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10690. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10691. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10692. then :
  10693. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10694. else $as_nop
  10695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10696. printf %s "checking for dlopen in -lsvld... " >&6; }
  10697. if test ${ac_cv_lib_svld_dlopen+y}
  10698. then :
  10699. printf %s "(cached) " >&6
  10700. else $as_nop
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-lsvld $LIBS"
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. /* Override any GCC internal prototype to avoid an error.
  10706. Use char because int might match the return type of a GCC
  10707. builtin and then its argument prototype would still apply. */
  10708. char dlopen ();
  10709. int
  10710. main (void)
  10711. {
  10712. return dlopen ();
  10713. ;
  10714. return 0;
  10715. }
  10716. _ACEOF
  10717. if ac_fn_c_try_link "$LINENO"
  10718. then :
  10719. ac_cv_lib_svld_dlopen=yes
  10720. else $as_nop
  10721. ac_cv_lib_svld_dlopen=no
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10724. conftest$ac_exeext conftest.$ac_ext
  10725. LIBS=$ac_check_lib_save_LIBS
  10726. fi
  10727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10728. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10729. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10730. then :
  10731. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10732. else $as_nop
  10733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10734. printf %s "checking for dld_link in -ldld... " >&6; }
  10735. if test ${ac_cv_lib_dld_dld_link+y}
  10736. then :
  10737. printf %s "(cached) " >&6
  10738. else $as_nop
  10739. ac_check_lib_save_LIBS=$LIBS
  10740. LIBS="-ldld $LIBS"
  10741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10742. /* end confdefs.h. */
  10743. /* Override any GCC internal prototype to avoid an error.
  10744. Use char because int might match the return type of a GCC
  10745. builtin and then its argument prototype would still apply. */
  10746. char dld_link ();
  10747. int
  10748. main (void)
  10749. {
  10750. return dld_link ();
  10751. ;
  10752. return 0;
  10753. }
  10754. _ACEOF
  10755. if ac_fn_c_try_link "$LINENO"
  10756. then :
  10757. ac_cv_lib_dld_dld_link=yes
  10758. else $as_nop
  10759. ac_cv_lib_dld_dld_link=no
  10760. fi
  10761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10762. conftest$ac_exeext conftest.$ac_ext
  10763. LIBS=$ac_check_lib_save_LIBS
  10764. fi
  10765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10766. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10767. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10768. then :
  10769. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10770. fi
  10771. fi
  10772. fi
  10773. fi
  10774. fi
  10775. fi
  10776. ;;
  10777. esac
  10778. if test no = "$lt_cv_dlopen"; then
  10779. enable_dlopen=no
  10780. else
  10781. enable_dlopen=yes
  10782. fi
  10783. case $lt_cv_dlopen in
  10784. dlopen)
  10785. save_CPPFLAGS=$CPPFLAGS
  10786. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10787. save_LDFLAGS=$LDFLAGS
  10788. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10789. save_LIBS=$LIBS
  10790. LIBS="$lt_cv_dlopen_libs $LIBS"
  10791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10792. printf %s "checking whether a program can dlopen itself... " >&6; }
  10793. if test ${lt_cv_dlopen_self+y}
  10794. then :
  10795. printf %s "(cached) " >&6
  10796. else $as_nop
  10797. if test yes = "$cross_compiling"; then :
  10798. lt_cv_dlopen_self=cross
  10799. else
  10800. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10801. lt_status=$lt_dlunknown
  10802. cat > conftest.$ac_ext <<_LT_EOF
  10803. #line $LINENO "configure"
  10804. #include "confdefs.h"
  10805. #if HAVE_DLFCN_H
  10806. #include <dlfcn.h>
  10807. #endif
  10808. #include <stdio.h>
  10809. #ifdef RTLD_GLOBAL
  10810. # define LT_DLGLOBAL RTLD_GLOBAL
  10811. #else
  10812. # ifdef DL_GLOBAL
  10813. # define LT_DLGLOBAL DL_GLOBAL
  10814. # else
  10815. # define LT_DLGLOBAL 0
  10816. # endif
  10817. #endif
  10818. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10819. find out it does not work in some platform. */
  10820. #ifndef LT_DLLAZY_OR_NOW
  10821. # ifdef RTLD_LAZY
  10822. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10823. # else
  10824. # ifdef DL_LAZY
  10825. # define LT_DLLAZY_OR_NOW DL_LAZY
  10826. # else
  10827. # ifdef RTLD_NOW
  10828. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10829. # else
  10830. # ifdef DL_NOW
  10831. # define LT_DLLAZY_OR_NOW DL_NOW
  10832. # else
  10833. # define LT_DLLAZY_OR_NOW 0
  10834. # endif
  10835. # endif
  10836. # endif
  10837. # endif
  10838. #endif
  10839. /* When -fvisibility=hidden is used, assume the code has been annotated
  10840. correspondingly for the symbols needed. */
  10841. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10842. int fnord () __attribute__((visibility("default")));
  10843. #endif
  10844. int fnord () { return 42; }
  10845. int main ()
  10846. {
  10847. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10848. int status = $lt_dlunknown;
  10849. if (self)
  10850. {
  10851. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10852. else
  10853. {
  10854. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10855. else puts (dlerror ());
  10856. }
  10857. /* dlclose (self); */
  10858. }
  10859. else
  10860. puts (dlerror ());
  10861. return status;
  10862. }
  10863. _LT_EOF
  10864. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10865. (eval $ac_link) 2>&5
  10866. ac_status=$?
  10867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10868. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10869. (./conftest; exit; ) >&5 2>/dev/null
  10870. lt_status=$?
  10871. case x$lt_status in
  10872. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10873. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10874. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10875. esac
  10876. else :
  10877. # compilation failed
  10878. lt_cv_dlopen_self=no
  10879. fi
  10880. fi
  10881. rm -fr conftest*
  10882. fi
  10883. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10884. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10885. if test yes = "$lt_cv_dlopen_self"; then
  10886. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10888. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10889. if test ${lt_cv_dlopen_self_static+y}
  10890. then :
  10891. printf %s "(cached) " >&6
  10892. else $as_nop
  10893. if test yes = "$cross_compiling"; then :
  10894. lt_cv_dlopen_self_static=cross
  10895. else
  10896. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10897. lt_status=$lt_dlunknown
  10898. cat > conftest.$ac_ext <<_LT_EOF
  10899. #line $LINENO "configure"
  10900. #include "confdefs.h"
  10901. #if HAVE_DLFCN_H
  10902. #include <dlfcn.h>
  10903. #endif
  10904. #include <stdio.h>
  10905. #ifdef RTLD_GLOBAL
  10906. # define LT_DLGLOBAL RTLD_GLOBAL
  10907. #else
  10908. # ifdef DL_GLOBAL
  10909. # define LT_DLGLOBAL DL_GLOBAL
  10910. # else
  10911. # define LT_DLGLOBAL 0
  10912. # endif
  10913. #endif
  10914. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10915. find out it does not work in some platform. */
  10916. #ifndef LT_DLLAZY_OR_NOW
  10917. # ifdef RTLD_LAZY
  10918. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10919. # else
  10920. # ifdef DL_LAZY
  10921. # define LT_DLLAZY_OR_NOW DL_LAZY
  10922. # else
  10923. # ifdef RTLD_NOW
  10924. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10925. # else
  10926. # ifdef DL_NOW
  10927. # define LT_DLLAZY_OR_NOW DL_NOW
  10928. # else
  10929. # define LT_DLLAZY_OR_NOW 0
  10930. # endif
  10931. # endif
  10932. # endif
  10933. # endif
  10934. #endif
  10935. /* When -fvisibility=hidden is used, assume the code has been annotated
  10936. correspondingly for the symbols needed. */
  10937. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10938. int fnord () __attribute__((visibility("default")));
  10939. #endif
  10940. int fnord () { return 42; }
  10941. int main ()
  10942. {
  10943. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10944. int status = $lt_dlunknown;
  10945. if (self)
  10946. {
  10947. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10948. else
  10949. {
  10950. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10951. else puts (dlerror ());
  10952. }
  10953. /* dlclose (self); */
  10954. }
  10955. else
  10956. puts (dlerror ());
  10957. return status;
  10958. }
  10959. _LT_EOF
  10960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10961. (eval $ac_link) 2>&5
  10962. ac_status=$?
  10963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10964. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10965. (./conftest; exit; ) >&5 2>/dev/null
  10966. lt_status=$?
  10967. case x$lt_status in
  10968. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10969. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10970. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10971. esac
  10972. else :
  10973. # compilation failed
  10974. lt_cv_dlopen_self_static=no
  10975. fi
  10976. fi
  10977. rm -fr conftest*
  10978. fi
  10979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10980. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  10981. fi
  10982. CPPFLAGS=$save_CPPFLAGS
  10983. LDFLAGS=$save_LDFLAGS
  10984. LIBS=$save_LIBS
  10985. ;;
  10986. esac
  10987. case $lt_cv_dlopen_self in
  10988. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10989. *) enable_dlopen_self=unknown ;;
  10990. esac
  10991. case $lt_cv_dlopen_self_static in
  10992. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10993. *) enable_dlopen_self_static=unknown ;;
  10994. esac
  10995. fi
  10996. striplib=
  10997. old_striplib=
  10998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10999. printf %s "checking whether stripping libraries is possible... " >&6; }
  11000. if test -z "$STRIP"; then
  11001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11002. printf "%s\n" "no" >&6; }
  11003. else
  11004. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11005. old_striplib="$STRIP --strip-debug"
  11006. striplib="$STRIP --strip-unneeded"
  11007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11008. printf "%s\n" "yes" >&6; }
  11009. else
  11010. case $host_os in
  11011. darwin*)
  11012. # FIXME - insert some real tests, host_os isn't really good enough
  11013. striplib="$STRIP -x"
  11014. old_striplib="$STRIP -S"
  11015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11016. printf "%s\n" "yes" >&6; }
  11017. ;;
  11018. freebsd*)
  11019. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11020. old_striplib="$STRIP --strip-debug"
  11021. striplib="$STRIP --strip-unneeded"
  11022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11023. printf "%s\n" "yes" >&6; }
  11024. else
  11025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11026. printf "%s\n" "no" >&6; }
  11027. fi
  11028. ;;
  11029. *)
  11030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11031. printf "%s\n" "no" >&6; }
  11032. ;;
  11033. esac
  11034. fi
  11035. fi
  11036. # Report what library types will actually be built
  11037. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11038. printf %s "checking if libtool supports shared libraries... " >&6; }
  11039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11040. printf "%s\n" "$can_build_shared" >&6; }
  11041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11042. printf %s "checking whether to build shared libraries... " >&6; }
  11043. test no = "$can_build_shared" && enable_shared=no
  11044. # On AIX, shared libraries and static libraries use the same namespace, and
  11045. # are all built from PIC.
  11046. case $host_os in
  11047. aix3*)
  11048. test yes = "$enable_shared" && enable_static=no
  11049. if test -n "$RANLIB"; then
  11050. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11051. postinstall_cmds='$RANLIB $lib'
  11052. fi
  11053. ;;
  11054. aix[4-9]*)
  11055. if test ia64 != "$host_cpu"; then
  11056. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11057. yes,aix,yes) ;; # shared object as lib.so file only
  11058. yes,svr4,*) ;; # shared object as lib.so archive member only
  11059. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11060. esac
  11061. fi
  11062. ;;
  11063. esac
  11064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11065. printf "%s\n" "$enable_shared" >&6; }
  11066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11067. printf %s "checking whether to build static libraries... " >&6; }
  11068. # Make sure either enable_shared or enable_static is yes.
  11069. test yes = "$enable_shared" || enable_static=yes
  11070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11071. printf "%s\n" "$enable_static" >&6; }
  11072. fi
  11073. ac_ext=c
  11074. ac_cpp='$CPP $CPPFLAGS'
  11075. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11076. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11077. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11078. CC=$lt_save_CC
  11079. ac_config_commands="$ac_config_commands libtool"
  11080. # Only expand once:
  11081. if test -n "$ac_tool_prefix"; then
  11082. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11083. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11085. printf %s "checking for $ac_word... " >&6; }
  11086. if test ${ac_cv_prog_RC+y}
  11087. then :
  11088. printf %s "(cached) " >&6
  11089. else $as_nop
  11090. if test -n "$RC"; then
  11091. ac_cv_prog_RC="$RC" # Let the user override the test.
  11092. else
  11093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11094. for as_dir in $PATH
  11095. do
  11096. IFS=$as_save_IFS
  11097. case $as_dir in #(((
  11098. '') as_dir=./ ;;
  11099. */) ;;
  11100. *) as_dir=$as_dir/ ;;
  11101. esac
  11102. for ac_exec_ext in '' $ac_executable_extensions; do
  11103. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11104. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11105. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11106. break 2
  11107. fi
  11108. done
  11109. done
  11110. IFS=$as_save_IFS
  11111. fi
  11112. fi
  11113. RC=$ac_cv_prog_RC
  11114. if test -n "$RC"; then
  11115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11116. printf "%s\n" "$RC" >&6; }
  11117. else
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11119. printf "%s\n" "no" >&6; }
  11120. fi
  11121. fi
  11122. if test -z "$ac_cv_prog_RC"; then
  11123. ac_ct_RC=$RC
  11124. # Extract the first word of "windres", so it can be a program name with args.
  11125. set dummy windres; ac_word=$2
  11126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11127. printf %s "checking for $ac_word... " >&6; }
  11128. if test ${ac_cv_prog_ac_ct_RC+y}
  11129. then :
  11130. printf %s "(cached) " >&6
  11131. else $as_nop
  11132. if test -n "$ac_ct_RC"; then
  11133. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11134. else
  11135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11136. for as_dir in $PATH
  11137. do
  11138. IFS=$as_save_IFS
  11139. case $as_dir in #(((
  11140. '') as_dir=./ ;;
  11141. */) ;;
  11142. *) as_dir=$as_dir/ ;;
  11143. esac
  11144. for ac_exec_ext in '' $ac_executable_extensions; do
  11145. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11146. ac_cv_prog_ac_ct_RC="windres"
  11147. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11148. break 2
  11149. fi
  11150. done
  11151. done
  11152. IFS=$as_save_IFS
  11153. fi
  11154. fi
  11155. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11156. if test -n "$ac_ct_RC"; then
  11157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11158. printf "%s\n" "$ac_ct_RC" >&6; }
  11159. else
  11160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11161. printf "%s\n" "no" >&6; }
  11162. fi
  11163. if test "x$ac_ct_RC" = x; then
  11164. RC=""
  11165. else
  11166. case $cross_compiling:$ac_tool_warned in
  11167. yes:)
  11168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11169. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11170. ac_tool_warned=yes ;;
  11171. esac
  11172. RC=$ac_ct_RC
  11173. fi
  11174. else
  11175. RC="$ac_cv_prog_RC"
  11176. fi
  11177. # Source file extension for RC test sources.
  11178. ac_ext=rc
  11179. # Object file extension for compiled RC test sources.
  11180. objext=o
  11181. objext_RC=$objext
  11182. # Code to be used in simple compile tests
  11183. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11184. # Code to be used in simple link tests
  11185. lt_simple_link_test_code=$lt_simple_compile_test_code
  11186. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11187. # If no C compiler was specified, use CC.
  11188. LTCC=${LTCC-"$CC"}
  11189. # If no C compiler flags were specified, use CFLAGS.
  11190. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11191. # Allow CC to be a program name with arguments.
  11192. compiler=$CC
  11193. # save warnings/boilerplate of simple test code
  11194. ac_outfile=conftest.$ac_objext
  11195. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11196. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11197. _lt_compiler_boilerplate=`cat conftest.err`
  11198. $RM conftest*
  11199. ac_outfile=conftest.$ac_objext
  11200. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11201. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11202. _lt_linker_boilerplate=`cat conftest.err`
  11203. $RM -r conftest*
  11204. # Allow CC to be a program name with arguments.
  11205. lt_save_CC=$CC
  11206. lt_save_CFLAGS=$CFLAGS
  11207. lt_save_GCC=$GCC
  11208. GCC=
  11209. CC=${RC-"windres"}
  11210. CFLAGS=
  11211. compiler=$CC
  11212. compiler_RC=$CC
  11213. func_cc_basename $compiler
  11214. cc_basename=$func_cc_basename_result
  11215. lt_cv_prog_compiler_c_o_RC=yes
  11216. if test -n "$compiler"; then
  11217. :
  11218. fi
  11219. GCC=$lt_save_GCC
  11220. ac_ext=c
  11221. ac_cpp='$CPP $CPPFLAGS'
  11222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11225. CC=$lt_save_CC
  11226. CFLAGS=$lt_save_CFLAGS
  11227. # For historical reasons, the library name redundantly includes the major
  11228. # version twice: libSDL3-3.0.so.0.
  11229. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11230. LT_RELEASE=3.0
  11231. # Increment this if there is an incompatible change - but if that happens,
  11232. # we should rename the library from SDL2 to SDL3, at which point this would
  11233. # reset to 0 anyway.
  11234. LT_MAJOR=0
  11235. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11236. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11237. LT_REVISION=$SDL_INTERFACE_AGE
  11238. for ac_prog in gawk mawk nawk awk
  11239. do
  11240. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11241. set dummy $ac_prog; ac_word=$2
  11242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11243. printf %s "checking for $ac_word... " >&6; }
  11244. if test ${ac_cv_prog_AWK+y}
  11245. then :
  11246. printf %s "(cached) " >&6
  11247. else $as_nop
  11248. if test -n "$AWK"; then
  11249. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11250. else
  11251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11252. for as_dir in $PATH
  11253. do
  11254. IFS=$as_save_IFS
  11255. case $as_dir in #(((
  11256. '') as_dir=./ ;;
  11257. */) ;;
  11258. *) as_dir=$as_dir/ ;;
  11259. esac
  11260. for ac_exec_ext in '' $ac_executable_extensions; do
  11261. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11262. ac_cv_prog_AWK="$ac_prog"
  11263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11264. break 2
  11265. fi
  11266. done
  11267. done
  11268. IFS=$as_save_IFS
  11269. fi
  11270. fi
  11271. AWK=$ac_cv_prog_AWK
  11272. if test -n "$AWK"; then
  11273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11274. printf "%s\n" "$AWK" >&6; }
  11275. else
  11276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11277. printf "%s\n" "no" >&6; }
  11278. fi
  11279. test -n "$AWK" && break
  11280. done
  11281. ac_ext=c
  11282. ac_cpp='$CPP $CPPFLAGS'
  11283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11286. if test -n "$ac_tool_prefix"; then
  11287. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11288. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11290. printf %s "checking for $ac_word... " >&6; }
  11291. if test ${ac_cv_prog_CC+y}
  11292. then :
  11293. printf %s "(cached) " >&6
  11294. else $as_nop
  11295. if test -n "$CC"; then
  11296. ac_cv_prog_CC="$CC" # Let the user override the test.
  11297. else
  11298. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11299. for as_dir in $PATH
  11300. do
  11301. IFS=$as_save_IFS
  11302. case $as_dir in #(((
  11303. '') as_dir=./ ;;
  11304. */) ;;
  11305. *) as_dir=$as_dir/ ;;
  11306. esac
  11307. for ac_exec_ext in '' $ac_executable_extensions; do
  11308. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11309. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11311. break 2
  11312. fi
  11313. done
  11314. done
  11315. IFS=$as_save_IFS
  11316. fi
  11317. fi
  11318. CC=$ac_cv_prog_CC
  11319. if test -n "$CC"; then
  11320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11321. printf "%s\n" "$CC" >&6; }
  11322. else
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11324. printf "%s\n" "no" >&6; }
  11325. fi
  11326. fi
  11327. if test -z "$ac_cv_prog_CC"; then
  11328. ac_ct_CC=$CC
  11329. # Extract the first word of "gcc", so it can be a program name with args.
  11330. set dummy gcc; ac_word=$2
  11331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11332. printf %s "checking for $ac_word... " >&6; }
  11333. if test ${ac_cv_prog_ac_ct_CC+y}
  11334. then :
  11335. printf %s "(cached) " >&6
  11336. else $as_nop
  11337. if test -n "$ac_ct_CC"; then
  11338. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11339. else
  11340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11341. for as_dir in $PATH
  11342. do
  11343. IFS=$as_save_IFS
  11344. case $as_dir in #(((
  11345. '') as_dir=./ ;;
  11346. */) ;;
  11347. *) as_dir=$as_dir/ ;;
  11348. esac
  11349. for ac_exec_ext in '' $ac_executable_extensions; do
  11350. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11351. ac_cv_prog_ac_ct_CC="gcc"
  11352. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11353. break 2
  11354. fi
  11355. done
  11356. done
  11357. IFS=$as_save_IFS
  11358. fi
  11359. fi
  11360. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11361. if test -n "$ac_ct_CC"; then
  11362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11363. printf "%s\n" "$ac_ct_CC" >&6; }
  11364. else
  11365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11366. printf "%s\n" "no" >&6; }
  11367. fi
  11368. if test "x$ac_ct_CC" = x; then
  11369. CC=""
  11370. else
  11371. case $cross_compiling:$ac_tool_warned in
  11372. yes:)
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11374. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11375. ac_tool_warned=yes ;;
  11376. esac
  11377. CC=$ac_ct_CC
  11378. fi
  11379. else
  11380. CC="$ac_cv_prog_CC"
  11381. fi
  11382. if test -z "$CC"; then
  11383. if test -n "$ac_tool_prefix"; then
  11384. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11385. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11387. printf %s "checking for $ac_word... " >&6; }
  11388. if test ${ac_cv_prog_CC+y}
  11389. then :
  11390. printf %s "(cached) " >&6
  11391. else $as_nop
  11392. if test -n "$CC"; then
  11393. ac_cv_prog_CC="$CC" # Let the user override the test.
  11394. else
  11395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11396. for as_dir in $PATH
  11397. do
  11398. IFS=$as_save_IFS
  11399. case $as_dir in #(((
  11400. '') as_dir=./ ;;
  11401. */) ;;
  11402. *) as_dir=$as_dir/ ;;
  11403. esac
  11404. for ac_exec_ext in '' $ac_executable_extensions; do
  11405. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11406. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11407. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11408. break 2
  11409. fi
  11410. done
  11411. done
  11412. IFS=$as_save_IFS
  11413. fi
  11414. fi
  11415. CC=$ac_cv_prog_CC
  11416. if test -n "$CC"; then
  11417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11418. printf "%s\n" "$CC" >&6; }
  11419. else
  11420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11421. printf "%s\n" "no" >&6; }
  11422. fi
  11423. fi
  11424. fi
  11425. if test -z "$CC"; then
  11426. # Extract the first word of "cc", so it can be a program name with args.
  11427. set dummy cc; ac_word=$2
  11428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11429. printf %s "checking for $ac_word... " >&6; }
  11430. if test ${ac_cv_prog_CC+y}
  11431. then :
  11432. printf %s "(cached) " >&6
  11433. else $as_nop
  11434. if test -n "$CC"; then
  11435. ac_cv_prog_CC="$CC" # Let the user override the test.
  11436. else
  11437. ac_prog_rejected=no
  11438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11439. for as_dir in $PATH
  11440. do
  11441. IFS=$as_save_IFS
  11442. case $as_dir in #(((
  11443. '') as_dir=./ ;;
  11444. */) ;;
  11445. *) as_dir=$as_dir/ ;;
  11446. esac
  11447. for ac_exec_ext in '' $ac_executable_extensions; do
  11448. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11449. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11450. ac_prog_rejected=yes
  11451. continue
  11452. fi
  11453. ac_cv_prog_CC="cc"
  11454. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11455. break 2
  11456. fi
  11457. done
  11458. done
  11459. IFS=$as_save_IFS
  11460. if test $ac_prog_rejected = yes; then
  11461. # We found a bogon in the path, so make sure we never use it.
  11462. set dummy $ac_cv_prog_CC
  11463. shift
  11464. if test $# != 0; then
  11465. # We chose a different compiler from the bogus one.
  11466. # However, it has the same basename, so the bogon will be chosen
  11467. # first if we set CC to just the basename; use the full file name.
  11468. shift
  11469. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11470. fi
  11471. fi
  11472. fi
  11473. fi
  11474. CC=$ac_cv_prog_CC
  11475. if test -n "$CC"; then
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11477. printf "%s\n" "$CC" >&6; }
  11478. else
  11479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11480. printf "%s\n" "no" >&6; }
  11481. fi
  11482. fi
  11483. if test -z "$CC"; then
  11484. if test -n "$ac_tool_prefix"; then
  11485. for ac_prog in cl.exe
  11486. do
  11487. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11488. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11490. printf %s "checking for $ac_word... " >&6; }
  11491. if test ${ac_cv_prog_CC+y}
  11492. then :
  11493. printf %s "(cached) " >&6
  11494. else $as_nop
  11495. if test -n "$CC"; then
  11496. ac_cv_prog_CC="$CC" # Let the user override the test.
  11497. else
  11498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11499. for as_dir in $PATH
  11500. do
  11501. IFS=$as_save_IFS
  11502. case $as_dir in #(((
  11503. '') as_dir=./ ;;
  11504. */) ;;
  11505. *) as_dir=$as_dir/ ;;
  11506. esac
  11507. for ac_exec_ext in '' $ac_executable_extensions; do
  11508. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11509. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11510. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11511. break 2
  11512. fi
  11513. done
  11514. done
  11515. IFS=$as_save_IFS
  11516. fi
  11517. fi
  11518. CC=$ac_cv_prog_CC
  11519. if test -n "$CC"; then
  11520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11521. printf "%s\n" "$CC" >&6; }
  11522. else
  11523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. printf "%s\n" "no" >&6; }
  11525. fi
  11526. test -n "$CC" && break
  11527. done
  11528. fi
  11529. if test -z "$CC"; then
  11530. ac_ct_CC=$CC
  11531. for ac_prog in cl.exe
  11532. do
  11533. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11534. set dummy $ac_prog; ac_word=$2
  11535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11536. printf %s "checking for $ac_word... " >&6; }
  11537. if test ${ac_cv_prog_ac_ct_CC+y}
  11538. then :
  11539. printf %s "(cached) " >&6
  11540. else $as_nop
  11541. if test -n "$ac_ct_CC"; then
  11542. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11543. else
  11544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11545. for as_dir in $PATH
  11546. do
  11547. IFS=$as_save_IFS
  11548. case $as_dir in #(((
  11549. '') as_dir=./ ;;
  11550. */) ;;
  11551. *) as_dir=$as_dir/ ;;
  11552. esac
  11553. for ac_exec_ext in '' $ac_executable_extensions; do
  11554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11555. ac_cv_prog_ac_ct_CC="$ac_prog"
  11556. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11557. break 2
  11558. fi
  11559. done
  11560. done
  11561. IFS=$as_save_IFS
  11562. fi
  11563. fi
  11564. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11565. if test -n "$ac_ct_CC"; then
  11566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11567. printf "%s\n" "$ac_ct_CC" >&6; }
  11568. else
  11569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11570. printf "%s\n" "no" >&6; }
  11571. fi
  11572. test -n "$ac_ct_CC" && break
  11573. done
  11574. if test "x$ac_ct_CC" = x; then
  11575. CC=""
  11576. else
  11577. case $cross_compiling:$ac_tool_warned in
  11578. yes:)
  11579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11580. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11581. ac_tool_warned=yes ;;
  11582. esac
  11583. CC=$ac_ct_CC
  11584. fi
  11585. fi
  11586. fi
  11587. if test -z "$CC"; then
  11588. if test -n "$ac_tool_prefix"; then
  11589. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11590. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11592. printf %s "checking for $ac_word... " >&6; }
  11593. if test ${ac_cv_prog_CC+y}
  11594. then :
  11595. printf %s "(cached) " >&6
  11596. else $as_nop
  11597. if test -n "$CC"; then
  11598. ac_cv_prog_CC="$CC" # Let the user override the test.
  11599. else
  11600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11601. for as_dir in $PATH
  11602. do
  11603. IFS=$as_save_IFS
  11604. case $as_dir in #(((
  11605. '') as_dir=./ ;;
  11606. */) ;;
  11607. *) as_dir=$as_dir/ ;;
  11608. esac
  11609. for ac_exec_ext in '' $ac_executable_extensions; do
  11610. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11611. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11612. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11613. break 2
  11614. fi
  11615. done
  11616. done
  11617. IFS=$as_save_IFS
  11618. fi
  11619. fi
  11620. CC=$ac_cv_prog_CC
  11621. if test -n "$CC"; then
  11622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11623. printf "%s\n" "$CC" >&6; }
  11624. else
  11625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11626. printf "%s\n" "no" >&6; }
  11627. fi
  11628. fi
  11629. if test -z "$ac_cv_prog_CC"; then
  11630. ac_ct_CC=$CC
  11631. # Extract the first word of "clang", so it can be a program name with args.
  11632. set dummy clang; ac_word=$2
  11633. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11634. printf %s "checking for $ac_word... " >&6; }
  11635. if test ${ac_cv_prog_ac_ct_CC+y}
  11636. then :
  11637. printf %s "(cached) " >&6
  11638. else $as_nop
  11639. if test -n "$ac_ct_CC"; then
  11640. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11641. else
  11642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11643. for as_dir in $PATH
  11644. do
  11645. IFS=$as_save_IFS
  11646. case $as_dir in #(((
  11647. '') as_dir=./ ;;
  11648. */) ;;
  11649. *) as_dir=$as_dir/ ;;
  11650. esac
  11651. for ac_exec_ext in '' $ac_executable_extensions; do
  11652. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11653. ac_cv_prog_ac_ct_CC="clang"
  11654. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11655. break 2
  11656. fi
  11657. done
  11658. done
  11659. IFS=$as_save_IFS
  11660. fi
  11661. fi
  11662. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11663. if test -n "$ac_ct_CC"; then
  11664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11665. printf "%s\n" "$ac_ct_CC" >&6; }
  11666. else
  11667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11668. printf "%s\n" "no" >&6; }
  11669. fi
  11670. if test "x$ac_ct_CC" = x; then
  11671. CC=""
  11672. else
  11673. case $cross_compiling:$ac_tool_warned in
  11674. yes:)
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11676. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11677. ac_tool_warned=yes ;;
  11678. esac
  11679. CC=$ac_ct_CC
  11680. fi
  11681. else
  11682. CC="$ac_cv_prog_CC"
  11683. fi
  11684. fi
  11685. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11686. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11687. as_fn_error $? "no acceptable C compiler found in \$PATH
  11688. See \`config.log' for more details" "$LINENO" 5; }
  11689. # Provide some information about the compiler.
  11690. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11691. set X $ac_compile
  11692. ac_compiler=$2
  11693. for ac_option in --version -v -V -qversion -version; do
  11694. { { ac_try="$ac_compiler $ac_option >&5"
  11695. case "(($ac_try" in
  11696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11697. *) ac_try_echo=$ac_try;;
  11698. esac
  11699. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11700. printf "%s\n" "$ac_try_echo"; } >&5
  11701. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11702. ac_status=$?
  11703. if test -s conftest.err; then
  11704. sed '10a\
  11705. ... rest of stderr output deleted ...
  11706. 10q' conftest.err >conftest.er1
  11707. cat conftest.er1 >&5
  11708. fi
  11709. rm -f conftest.er1 conftest.err
  11710. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11711. test $ac_status = 0; }
  11712. done
  11713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11714. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11715. if test ${ac_cv_c_compiler_gnu+y}
  11716. then :
  11717. printf %s "(cached) " >&6
  11718. else $as_nop
  11719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11720. /* end confdefs.h. */
  11721. int
  11722. main (void)
  11723. {
  11724. #ifndef __GNUC__
  11725. choke me
  11726. #endif
  11727. ;
  11728. return 0;
  11729. }
  11730. _ACEOF
  11731. if ac_fn_c_try_compile "$LINENO"
  11732. then :
  11733. ac_compiler_gnu=yes
  11734. else $as_nop
  11735. ac_compiler_gnu=no
  11736. fi
  11737. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11738. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11739. fi
  11740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11741. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11742. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11743. if test $ac_compiler_gnu = yes; then
  11744. GCC=yes
  11745. else
  11746. GCC=
  11747. fi
  11748. ac_test_CFLAGS=${CFLAGS+y}
  11749. ac_save_CFLAGS=$CFLAGS
  11750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11751. printf %s "checking whether $CC accepts -g... " >&6; }
  11752. if test ${ac_cv_prog_cc_g+y}
  11753. then :
  11754. printf %s "(cached) " >&6
  11755. else $as_nop
  11756. ac_save_c_werror_flag=$ac_c_werror_flag
  11757. ac_c_werror_flag=yes
  11758. ac_cv_prog_cc_g=no
  11759. CFLAGS="-g"
  11760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11761. /* end confdefs.h. */
  11762. int
  11763. main (void)
  11764. {
  11765. ;
  11766. return 0;
  11767. }
  11768. _ACEOF
  11769. if ac_fn_c_try_compile "$LINENO"
  11770. then :
  11771. ac_cv_prog_cc_g=yes
  11772. else $as_nop
  11773. CFLAGS=""
  11774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11775. /* end confdefs.h. */
  11776. int
  11777. main (void)
  11778. {
  11779. ;
  11780. return 0;
  11781. }
  11782. _ACEOF
  11783. if ac_fn_c_try_compile "$LINENO"
  11784. then :
  11785. else $as_nop
  11786. ac_c_werror_flag=$ac_save_c_werror_flag
  11787. CFLAGS="-g"
  11788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11789. /* end confdefs.h. */
  11790. int
  11791. main (void)
  11792. {
  11793. ;
  11794. return 0;
  11795. }
  11796. _ACEOF
  11797. if ac_fn_c_try_compile "$LINENO"
  11798. then :
  11799. ac_cv_prog_cc_g=yes
  11800. fi
  11801. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11802. fi
  11803. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11804. fi
  11805. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11806. ac_c_werror_flag=$ac_save_c_werror_flag
  11807. fi
  11808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11809. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11810. if test $ac_test_CFLAGS; then
  11811. CFLAGS=$ac_save_CFLAGS
  11812. elif test $ac_cv_prog_cc_g = yes; then
  11813. if test "$GCC" = yes; then
  11814. CFLAGS="-g -O2"
  11815. else
  11816. CFLAGS="-g"
  11817. fi
  11818. else
  11819. if test "$GCC" = yes; then
  11820. CFLAGS="-O2"
  11821. else
  11822. CFLAGS=
  11823. fi
  11824. fi
  11825. ac_prog_cc_stdc=no
  11826. if test x$ac_prog_cc_stdc = xno
  11827. then :
  11828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11829. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11830. if test ${ac_cv_prog_cc_c11+y}
  11831. then :
  11832. printf %s "(cached) " >&6
  11833. else $as_nop
  11834. ac_cv_prog_cc_c11=no
  11835. ac_save_CC=$CC
  11836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11837. /* end confdefs.h. */
  11838. $ac_c_conftest_c11_program
  11839. _ACEOF
  11840. for ac_arg in '' -std=gnu11
  11841. do
  11842. CC="$ac_save_CC $ac_arg"
  11843. if ac_fn_c_try_compile "$LINENO"
  11844. then :
  11845. ac_cv_prog_cc_c11=$ac_arg
  11846. fi
  11847. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11848. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11849. done
  11850. rm -f conftest.$ac_ext
  11851. CC=$ac_save_CC
  11852. fi
  11853. if test "x$ac_cv_prog_cc_c11" = xno
  11854. then :
  11855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11856. printf "%s\n" "unsupported" >&6; }
  11857. else $as_nop
  11858. if test "x$ac_cv_prog_cc_c11" = x
  11859. then :
  11860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11861. printf "%s\n" "none needed" >&6; }
  11862. else $as_nop
  11863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11864. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11865. CC="$CC $ac_cv_prog_cc_c11"
  11866. fi
  11867. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11868. ac_prog_cc_stdc=c11
  11869. fi
  11870. fi
  11871. if test x$ac_prog_cc_stdc = xno
  11872. then :
  11873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11874. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11875. if test ${ac_cv_prog_cc_c99+y}
  11876. then :
  11877. printf %s "(cached) " >&6
  11878. else $as_nop
  11879. ac_cv_prog_cc_c99=no
  11880. ac_save_CC=$CC
  11881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11882. /* end confdefs.h. */
  11883. $ac_c_conftest_c99_program
  11884. _ACEOF
  11885. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11886. do
  11887. CC="$ac_save_CC $ac_arg"
  11888. if ac_fn_c_try_compile "$LINENO"
  11889. then :
  11890. ac_cv_prog_cc_c99=$ac_arg
  11891. fi
  11892. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11893. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11894. done
  11895. rm -f conftest.$ac_ext
  11896. CC=$ac_save_CC
  11897. fi
  11898. if test "x$ac_cv_prog_cc_c99" = xno
  11899. then :
  11900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11901. printf "%s\n" "unsupported" >&6; }
  11902. else $as_nop
  11903. if test "x$ac_cv_prog_cc_c99" = x
  11904. then :
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11906. printf "%s\n" "none needed" >&6; }
  11907. else $as_nop
  11908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11909. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11910. CC="$CC $ac_cv_prog_cc_c99"
  11911. fi
  11912. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11913. ac_prog_cc_stdc=c99
  11914. fi
  11915. fi
  11916. if test x$ac_prog_cc_stdc = xno
  11917. then :
  11918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11919. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11920. if test ${ac_cv_prog_cc_c89+y}
  11921. then :
  11922. printf %s "(cached) " >&6
  11923. else $as_nop
  11924. ac_cv_prog_cc_c89=no
  11925. ac_save_CC=$CC
  11926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11927. /* end confdefs.h. */
  11928. $ac_c_conftest_c89_program
  11929. _ACEOF
  11930. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11931. do
  11932. CC="$ac_save_CC $ac_arg"
  11933. if ac_fn_c_try_compile "$LINENO"
  11934. then :
  11935. ac_cv_prog_cc_c89=$ac_arg
  11936. fi
  11937. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11938. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11939. done
  11940. rm -f conftest.$ac_ext
  11941. CC=$ac_save_CC
  11942. fi
  11943. if test "x$ac_cv_prog_cc_c89" = xno
  11944. then :
  11945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11946. printf "%s\n" "unsupported" >&6; }
  11947. else $as_nop
  11948. if test "x$ac_cv_prog_cc_c89" = x
  11949. then :
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11951. printf "%s\n" "none needed" >&6; }
  11952. else $as_nop
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  11954. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  11955. CC="$CC $ac_cv_prog_cc_c89"
  11956. fi
  11957. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  11958. ac_prog_cc_stdc=c89
  11959. fi
  11960. fi
  11961. ac_ext=c
  11962. ac_cpp='$CPP $CPPFLAGS'
  11963. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11964. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11965. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11966. ac_ext=cpp
  11967. ac_cpp='$CXXCPP $CPPFLAGS'
  11968. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11969. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11970. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11971. if test -z "$CXX"; then
  11972. if test -n "$CCC"; then
  11973. CXX=$CCC
  11974. else
  11975. if test -n "$ac_tool_prefix"; then
  11976. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  11977. do
  11978. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11979. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11981. printf %s "checking for $ac_word... " >&6; }
  11982. if test ${ac_cv_prog_CXX+y}
  11983. then :
  11984. printf %s "(cached) " >&6
  11985. else $as_nop
  11986. if test -n "$CXX"; then
  11987. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  11988. else
  11989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11990. for as_dir in $PATH
  11991. do
  11992. IFS=$as_save_IFS
  11993. case $as_dir in #(((
  11994. '') as_dir=./ ;;
  11995. */) ;;
  11996. *) as_dir=$as_dir/ ;;
  11997. esac
  11998. for ac_exec_ext in '' $ac_executable_extensions; do
  11999. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12000. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12002. break 2
  12003. fi
  12004. done
  12005. done
  12006. IFS=$as_save_IFS
  12007. fi
  12008. fi
  12009. CXX=$ac_cv_prog_CXX
  12010. if test -n "$CXX"; then
  12011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12012. printf "%s\n" "$CXX" >&6; }
  12013. else
  12014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12015. printf "%s\n" "no" >&6; }
  12016. fi
  12017. test -n "$CXX" && break
  12018. done
  12019. fi
  12020. if test -z "$CXX"; then
  12021. ac_ct_CXX=$CXX
  12022. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12023. do
  12024. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12025. set dummy $ac_prog; ac_word=$2
  12026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12027. printf %s "checking for $ac_word... " >&6; }
  12028. if test ${ac_cv_prog_ac_ct_CXX+y}
  12029. then :
  12030. printf %s "(cached) " >&6
  12031. else $as_nop
  12032. if test -n "$ac_ct_CXX"; then
  12033. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12034. else
  12035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12036. for as_dir in $PATH
  12037. do
  12038. IFS=$as_save_IFS
  12039. case $as_dir in #(((
  12040. '') as_dir=./ ;;
  12041. */) ;;
  12042. *) as_dir=$as_dir/ ;;
  12043. esac
  12044. for ac_exec_ext in '' $ac_executable_extensions; do
  12045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12046. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12048. break 2
  12049. fi
  12050. done
  12051. done
  12052. IFS=$as_save_IFS
  12053. fi
  12054. fi
  12055. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12056. if test -n "$ac_ct_CXX"; then
  12057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12058. printf "%s\n" "$ac_ct_CXX" >&6; }
  12059. else
  12060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12061. printf "%s\n" "no" >&6; }
  12062. fi
  12063. test -n "$ac_ct_CXX" && break
  12064. done
  12065. if test "x$ac_ct_CXX" = x; then
  12066. CXX="g++"
  12067. else
  12068. case $cross_compiling:$ac_tool_warned in
  12069. yes:)
  12070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12071. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12072. ac_tool_warned=yes ;;
  12073. esac
  12074. CXX=$ac_ct_CXX
  12075. fi
  12076. fi
  12077. fi
  12078. fi
  12079. # Provide some information about the compiler.
  12080. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12081. set X $ac_compile
  12082. ac_compiler=$2
  12083. for ac_option in --version -v -V -qversion; do
  12084. { { ac_try="$ac_compiler $ac_option >&5"
  12085. case "(($ac_try" in
  12086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12087. *) ac_try_echo=$ac_try;;
  12088. esac
  12089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12090. printf "%s\n" "$ac_try_echo"; } >&5
  12091. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12092. ac_status=$?
  12093. if test -s conftest.err; then
  12094. sed '10a\
  12095. ... rest of stderr output deleted ...
  12096. 10q' conftest.err >conftest.er1
  12097. cat conftest.er1 >&5
  12098. fi
  12099. rm -f conftest.er1 conftest.err
  12100. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12101. test $ac_status = 0; }
  12102. done
  12103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12104. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12105. if test ${ac_cv_cxx_compiler_gnu+y}
  12106. then :
  12107. printf %s "(cached) " >&6
  12108. else $as_nop
  12109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12110. /* end confdefs.h. */
  12111. int
  12112. main (void)
  12113. {
  12114. #ifndef __GNUC__
  12115. choke me
  12116. #endif
  12117. ;
  12118. return 0;
  12119. }
  12120. _ACEOF
  12121. if ac_fn_cxx_try_compile "$LINENO"
  12122. then :
  12123. ac_compiler_gnu=yes
  12124. else $as_nop
  12125. ac_compiler_gnu=no
  12126. fi
  12127. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12128. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12129. fi
  12130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12131. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12132. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12133. if test $ac_compiler_gnu = yes; then
  12134. GXX=yes
  12135. else
  12136. GXX=
  12137. fi
  12138. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12139. ac_save_CXXFLAGS=$CXXFLAGS
  12140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12141. printf %s "checking whether $CXX accepts -g... " >&6; }
  12142. if test ${ac_cv_prog_cxx_g+y}
  12143. then :
  12144. printf %s "(cached) " >&6
  12145. else $as_nop
  12146. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12147. ac_cxx_werror_flag=yes
  12148. ac_cv_prog_cxx_g=no
  12149. CXXFLAGS="-g"
  12150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12151. /* end confdefs.h. */
  12152. int
  12153. main (void)
  12154. {
  12155. ;
  12156. return 0;
  12157. }
  12158. _ACEOF
  12159. if ac_fn_cxx_try_compile "$LINENO"
  12160. then :
  12161. ac_cv_prog_cxx_g=yes
  12162. else $as_nop
  12163. CXXFLAGS=""
  12164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12165. /* end confdefs.h. */
  12166. int
  12167. main (void)
  12168. {
  12169. ;
  12170. return 0;
  12171. }
  12172. _ACEOF
  12173. if ac_fn_cxx_try_compile "$LINENO"
  12174. then :
  12175. else $as_nop
  12176. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12177. CXXFLAGS="-g"
  12178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12179. /* end confdefs.h. */
  12180. int
  12181. main (void)
  12182. {
  12183. ;
  12184. return 0;
  12185. }
  12186. _ACEOF
  12187. if ac_fn_cxx_try_compile "$LINENO"
  12188. then :
  12189. ac_cv_prog_cxx_g=yes
  12190. fi
  12191. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12192. fi
  12193. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12194. fi
  12195. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12196. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12197. fi
  12198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12199. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12200. if test $ac_test_CXXFLAGS; then
  12201. CXXFLAGS=$ac_save_CXXFLAGS
  12202. elif test $ac_cv_prog_cxx_g = yes; then
  12203. if test "$GXX" = yes; then
  12204. CXXFLAGS="-g -O2"
  12205. else
  12206. CXXFLAGS="-g"
  12207. fi
  12208. else
  12209. if test "$GXX" = yes; then
  12210. CXXFLAGS="-O2"
  12211. else
  12212. CXXFLAGS=
  12213. fi
  12214. fi
  12215. ac_prog_cxx_stdcxx=no
  12216. if test x$ac_prog_cxx_stdcxx = xno
  12217. then :
  12218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12219. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12220. if test ${ac_cv_prog_cxx_11+y}
  12221. then :
  12222. printf %s "(cached) " >&6
  12223. else $as_nop
  12224. ac_cv_prog_cxx_11=no
  12225. ac_save_CXX=$CXX
  12226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12227. /* end confdefs.h. */
  12228. $ac_cxx_conftest_cxx11_program
  12229. _ACEOF
  12230. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12231. do
  12232. CXX="$ac_save_CXX $ac_arg"
  12233. if ac_fn_cxx_try_compile "$LINENO"
  12234. then :
  12235. ac_cv_prog_cxx_cxx11=$ac_arg
  12236. fi
  12237. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12238. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12239. done
  12240. rm -f conftest.$ac_ext
  12241. CXX=$ac_save_CXX
  12242. fi
  12243. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12244. then :
  12245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12246. printf "%s\n" "unsupported" >&6; }
  12247. else $as_nop
  12248. if test "x$ac_cv_prog_cxx_cxx11" = x
  12249. then :
  12250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12251. printf "%s\n" "none needed" >&6; }
  12252. else $as_nop
  12253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12254. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12255. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12256. fi
  12257. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12258. ac_prog_cxx_stdcxx=cxx11
  12259. fi
  12260. fi
  12261. if test x$ac_prog_cxx_stdcxx = xno
  12262. then :
  12263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12264. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12265. if test ${ac_cv_prog_cxx_98+y}
  12266. then :
  12267. printf %s "(cached) " >&6
  12268. else $as_nop
  12269. ac_cv_prog_cxx_98=no
  12270. ac_save_CXX=$CXX
  12271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12272. /* end confdefs.h. */
  12273. $ac_cxx_conftest_cxx98_program
  12274. _ACEOF
  12275. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12276. do
  12277. CXX="$ac_save_CXX $ac_arg"
  12278. if ac_fn_cxx_try_compile "$LINENO"
  12279. then :
  12280. ac_cv_prog_cxx_cxx98=$ac_arg
  12281. fi
  12282. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12283. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12284. done
  12285. rm -f conftest.$ac_ext
  12286. CXX=$ac_save_CXX
  12287. fi
  12288. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12289. then :
  12290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12291. printf "%s\n" "unsupported" >&6; }
  12292. else $as_nop
  12293. if test "x$ac_cv_prog_cxx_cxx98" = x
  12294. then :
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12296. printf "%s\n" "none needed" >&6; }
  12297. else $as_nop
  12298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12299. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12300. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12301. fi
  12302. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12303. ac_prog_cxx_stdcxx=cxx98
  12304. fi
  12305. fi
  12306. ac_ext=c
  12307. ac_cpp='$CPP $CPPFLAGS'
  12308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12311. func_stripname_cnf ()
  12312. {
  12313. case $2 in
  12314. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12315. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12316. esac
  12317. } # func_stripname_cnf
  12318. if test -n "$CXX" && ( test no != "$CXX" &&
  12319. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12320. (test g++ != "$CXX"))); then
  12321. ac_ext=cpp
  12322. ac_cpp='$CXXCPP $CPPFLAGS'
  12323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12327. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12328. if test -z "$CXXCPP"; then
  12329. if test ${ac_cv_prog_CXXCPP+y}
  12330. then :
  12331. printf %s "(cached) " >&6
  12332. else $as_nop
  12333. # Double quotes because $CXX needs to be expanded
  12334. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12335. do
  12336. ac_preproc_ok=false
  12337. for ac_cxx_preproc_warn_flag in '' yes
  12338. do
  12339. # Use a header file that comes with gcc, so configuring glibc
  12340. # with a fresh cross-compiler works.
  12341. # On the NeXT, cc -E runs the code through the compiler's parser,
  12342. # not just through cpp. "Syntax error" is here to catch this case.
  12343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12344. /* end confdefs.h. */
  12345. #include <limits.h>
  12346. Syntax error
  12347. _ACEOF
  12348. if ac_fn_cxx_try_cpp "$LINENO"
  12349. then :
  12350. else $as_nop
  12351. # Broken: fails on valid input.
  12352. continue
  12353. fi
  12354. rm -f conftest.err conftest.i conftest.$ac_ext
  12355. # OK, works on sane cases. Now check whether nonexistent headers
  12356. # can be detected and how.
  12357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12358. /* end confdefs.h. */
  12359. #include <ac_nonexistent.h>
  12360. _ACEOF
  12361. if ac_fn_cxx_try_cpp "$LINENO"
  12362. then :
  12363. # Broken: success on invalid input.
  12364. continue
  12365. else $as_nop
  12366. # Passes both tests.
  12367. ac_preproc_ok=:
  12368. break
  12369. fi
  12370. rm -f conftest.err conftest.i conftest.$ac_ext
  12371. done
  12372. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12373. rm -f conftest.i conftest.err conftest.$ac_ext
  12374. if $ac_preproc_ok
  12375. then :
  12376. break
  12377. fi
  12378. done
  12379. ac_cv_prog_CXXCPP=$CXXCPP
  12380. fi
  12381. CXXCPP=$ac_cv_prog_CXXCPP
  12382. else
  12383. ac_cv_prog_CXXCPP=$CXXCPP
  12384. fi
  12385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12386. printf "%s\n" "$CXXCPP" >&6; }
  12387. ac_preproc_ok=false
  12388. for ac_cxx_preproc_warn_flag in '' yes
  12389. do
  12390. # Use a header file that comes with gcc, so configuring glibc
  12391. # with a fresh cross-compiler works.
  12392. # On the NeXT, cc -E runs the code through the compiler's parser,
  12393. # not just through cpp. "Syntax error" is here to catch this case.
  12394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12395. /* end confdefs.h. */
  12396. #include <limits.h>
  12397. Syntax error
  12398. _ACEOF
  12399. if ac_fn_cxx_try_cpp "$LINENO"
  12400. then :
  12401. else $as_nop
  12402. # Broken: fails on valid input.
  12403. continue
  12404. fi
  12405. rm -f conftest.err conftest.i conftest.$ac_ext
  12406. # OK, works on sane cases. Now check whether nonexistent headers
  12407. # can be detected and how.
  12408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12409. /* end confdefs.h. */
  12410. #include <ac_nonexistent.h>
  12411. _ACEOF
  12412. if ac_fn_cxx_try_cpp "$LINENO"
  12413. then :
  12414. # Broken: success on invalid input.
  12415. continue
  12416. else $as_nop
  12417. # Passes both tests.
  12418. ac_preproc_ok=:
  12419. break
  12420. fi
  12421. rm -f conftest.err conftest.i conftest.$ac_ext
  12422. done
  12423. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12424. rm -f conftest.i conftest.err conftest.$ac_ext
  12425. if $ac_preproc_ok
  12426. then :
  12427. else $as_nop
  12428. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12429. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12430. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12431. See \`config.log' for more details" "$LINENO" 5; }
  12432. fi
  12433. ac_ext=c
  12434. ac_cpp='$CPP $CPPFLAGS'
  12435. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12436. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12437. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12438. else
  12439. _lt_caught_CXX_error=yes
  12440. fi
  12441. ac_ext=cpp
  12442. ac_cpp='$CXXCPP $CPPFLAGS'
  12443. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12444. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12445. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12446. archive_cmds_need_lc_CXX=no
  12447. allow_undefined_flag_CXX=
  12448. always_export_symbols_CXX=no
  12449. archive_expsym_cmds_CXX=
  12450. compiler_needs_object_CXX=no
  12451. export_dynamic_flag_spec_CXX=
  12452. hardcode_direct_CXX=no
  12453. hardcode_direct_absolute_CXX=no
  12454. hardcode_libdir_flag_spec_CXX=
  12455. hardcode_libdir_separator_CXX=
  12456. hardcode_minus_L_CXX=no
  12457. hardcode_shlibpath_var_CXX=unsupported
  12458. hardcode_automatic_CXX=no
  12459. inherit_rpath_CXX=no
  12460. module_cmds_CXX=
  12461. module_expsym_cmds_CXX=
  12462. link_all_deplibs_CXX=unknown
  12463. old_archive_cmds_CXX=$old_archive_cmds
  12464. reload_flag_CXX=$reload_flag
  12465. reload_cmds_CXX=$reload_cmds
  12466. no_undefined_flag_CXX=
  12467. whole_archive_flag_spec_CXX=
  12468. enable_shared_with_static_runtimes_CXX=no
  12469. # Source file extension for C++ test sources.
  12470. ac_ext=cpp
  12471. # Object file extension for compiled C++ test sources.
  12472. objext=o
  12473. objext_CXX=$objext
  12474. # No sense in running all these tests if we already determined that
  12475. # the CXX compiler isn't working. Some variables (like enable_shared)
  12476. # are currently assumed to apply to all compilers on this platform,
  12477. # and will be corrupted by setting them based on a non-working compiler.
  12478. if test yes != "$_lt_caught_CXX_error"; then
  12479. # Code to be used in simple compile tests
  12480. lt_simple_compile_test_code="int some_variable = 0;"
  12481. # Code to be used in simple link tests
  12482. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12483. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12484. # If no C compiler was specified, use CC.
  12485. LTCC=${LTCC-"$CC"}
  12486. # If no C compiler flags were specified, use CFLAGS.
  12487. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12488. # Allow CC to be a program name with arguments.
  12489. compiler=$CC
  12490. # save warnings/boilerplate of simple test code
  12491. ac_outfile=conftest.$ac_objext
  12492. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12493. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12494. _lt_compiler_boilerplate=`cat conftest.err`
  12495. $RM conftest*
  12496. ac_outfile=conftest.$ac_objext
  12497. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12498. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12499. _lt_linker_boilerplate=`cat conftest.err`
  12500. $RM -r conftest*
  12501. # Allow CC to be a program name with arguments.
  12502. lt_save_CC=$CC
  12503. lt_save_CFLAGS=$CFLAGS
  12504. lt_save_LD=$LD
  12505. lt_save_GCC=$GCC
  12506. GCC=$GXX
  12507. lt_save_with_gnu_ld=$with_gnu_ld
  12508. lt_save_path_LD=$lt_cv_path_LD
  12509. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12510. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12511. else
  12512. $as_unset lt_cv_prog_gnu_ld
  12513. fi
  12514. if test -n "${lt_cv_path_LDCXX+set}"; then
  12515. lt_cv_path_LD=$lt_cv_path_LDCXX
  12516. else
  12517. $as_unset lt_cv_path_LD
  12518. fi
  12519. test -z "${LDCXX+set}" || LD=$LDCXX
  12520. CC=${CXX-"c++"}
  12521. CFLAGS=$CXXFLAGS
  12522. compiler=$CC
  12523. compiler_CXX=$CC
  12524. func_cc_basename $compiler
  12525. cc_basename=$func_cc_basename_result
  12526. if test -n "$compiler"; then
  12527. # We don't want -fno-exception when compiling C++ code, so set the
  12528. # no_builtin_flag separately
  12529. if test yes = "$GXX"; then
  12530. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12531. else
  12532. lt_prog_compiler_no_builtin_flag_CXX=
  12533. fi
  12534. if test yes = "$GXX"; then
  12535. # Set up default GNU C++ configuration
  12536. # Check whether --with-gnu-ld was given.
  12537. if test ${with_gnu_ld+y}
  12538. then :
  12539. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12540. else $as_nop
  12541. with_gnu_ld=no
  12542. fi
  12543. ac_prog=ld
  12544. if test yes = "$GCC"; then
  12545. # Check if gcc -print-prog-name=ld gives a path.
  12546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12547. printf %s "checking for ld used by $CC... " >&6; }
  12548. case $host in
  12549. *-*-mingw*)
  12550. # gcc leaves a trailing carriage return, which upsets mingw
  12551. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12552. *)
  12553. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12554. esac
  12555. case $ac_prog in
  12556. # Accept absolute paths.
  12557. [\\/]* | ?:[\\/]*)
  12558. re_direlt='/[^/][^/]*/\.\./'
  12559. # Canonicalize the pathname of ld
  12560. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12561. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12562. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12563. done
  12564. test -z "$LD" && LD=$ac_prog
  12565. ;;
  12566. "")
  12567. # If it fails, then pretend we aren't using GCC.
  12568. ac_prog=ld
  12569. ;;
  12570. *)
  12571. # If it is relative, then search for the first ld in PATH.
  12572. with_gnu_ld=unknown
  12573. ;;
  12574. esac
  12575. elif test yes = "$with_gnu_ld"; then
  12576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12577. printf %s "checking for GNU ld... " >&6; }
  12578. else
  12579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12580. printf %s "checking for non-GNU ld... " >&6; }
  12581. fi
  12582. if test ${lt_cv_path_LD+y}
  12583. then :
  12584. printf %s "(cached) " >&6
  12585. else $as_nop
  12586. if test -z "$LD"; then
  12587. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12588. for ac_dir in $PATH; do
  12589. IFS=$lt_save_ifs
  12590. test -z "$ac_dir" && ac_dir=.
  12591. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12592. lt_cv_path_LD=$ac_dir/$ac_prog
  12593. # Check to see if the program is GNU ld. I'd rather use --version,
  12594. # but apparently some variants of GNU ld only accept -v.
  12595. # Break only if it was the GNU/non-GNU ld that we prefer.
  12596. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12597. *GNU* | *'with BFD'*)
  12598. test no != "$with_gnu_ld" && break
  12599. ;;
  12600. *)
  12601. test yes != "$with_gnu_ld" && break
  12602. ;;
  12603. esac
  12604. fi
  12605. done
  12606. IFS=$lt_save_ifs
  12607. else
  12608. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12609. fi
  12610. fi
  12611. LD=$lt_cv_path_LD
  12612. if test -n "$LD"; then
  12613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12614. printf "%s\n" "$LD" >&6; }
  12615. else
  12616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12617. printf "%s\n" "no" >&6; }
  12618. fi
  12619. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12621. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12622. if test ${lt_cv_prog_gnu_ld+y}
  12623. then :
  12624. printf %s "(cached) " >&6
  12625. else $as_nop
  12626. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12627. case `$LD -v 2>&1 </dev/null` in
  12628. *GNU* | *'with BFD'*)
  12629. lt_cv_prog_gnu_ld=yes
  12630. ;;
  12631. *)
  12632. lt_cv_prog_gnu_ld=no
  12633. ;;
  12634. esac
  12635. fi
  12636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12637. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12638. with_gnu_ld=$lt_cv_prog_gnu_ld
  12639. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12640. # archiving commands below assume that GNU ld is being used.
  12641. if test yes = "$with_gnu_ld"; then
  12642. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12643. 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'
  12644. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12645. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12646. # If archive_cmds runs LD, not CC, wlarc should be empty
  12647. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12648. # investigate it a little bit more. (MM)
  12649. wlarc='$wl'
  12650. # ancient GNU ld didn't support --whole-archive et. al.
  12651. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12652. $GREP 'no-whole-archive' > /dev/null; then
  12653. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12654. else
  12655. whole_archive_flag_spec_CXX=
  12656. fi
  12657. else
  12658. with_gnu_ld=no
  12659. wlarc=
  12660. # A generic and very simple default shared library creation
  12661. # command for GNU C++ for the case where it uses the native
  12662. # linker, instead of GNU ld. If possible, this setting should
  12663. # overridden to take advantage of the native linker features on
  12664. # the platform it is being used on.
  12665. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12666. fi
  12667. # Commands to make compiler produce verbose output that lists
  12668. # what "hidden" libraries, object files and flags are used when
  12669. # linking a shared library.
  12670. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12671. else
  12672. GXX=no
  12673. with_gnu_ld=no
  12674. wlarc=
  12675. fi
  12676. # PORTME: fill in a description of your system's C++ link characteristics
  12677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12678. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12679. ld_shlibs_CXX=yes
  12680. case $host_os in
  12681. aix3*)
  12682. # FIXME: insert proper C++ library support
  12683. ld_shlibs_CXX=no
  12684. ;;
  12685. aix[4-9]*)
  12686. if test ia64 = "$host_cpu"; then
  12687. # On IA64, the linker does run time linking by default, so we don't
  12688. # have to do anything special.
  12689. aix_use_runtimelinking=no
  12690. exp_sym_flag='-Bexport'
  12691. no_entry_flag=
  12692. else
  12693. aix_use_runtimelinking=no
  12694. # Test if we are trying to use run time linking or normal
  12695. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12696. # have runtime linking enabled, and use it for executables.
  12697. # For shared libraries, we enable/disable runtime linking
  12698. # depending on the kind of the shared library created -
  12699. # when "with_aix_soname,aix_use_runtimelinking" is:
  12700. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12701. # "aix,yes" lib.so shared, rtl:yes, for executables
  12702. # lib.a static archive
  12703. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12704. # lib.a(lib.so.V) shared, rtl:no, for executables
  12705. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12706. # lib.a(lib.so.V) shared, rtl:no
  12707. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12708. # lib.a static archive
  12709. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12710. for ld_flag in $LDFLAGS; do
  12711. case $ld_flag in
  12712. *-brtl*)
  12713. aix_use_runtimelinking=yes
  12714. break
  12715. ;;
  12716. esac
  12717. done
  12718. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12719. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12720. # so we don't have lib.a shared libs to link our executables.
  12721. # We have to force runtime linking in this case.
  12722. aix_use_runtimelinking=yes
  12723. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12724. fi
  12725. ;;
  12726. esac
  12727. exp_sym_flag='-bexport'
  12728. no_entry_flag='-bnoentry'
  12729. fi
  12730. # When large executables or shared objects are built, AIX ld can
  12731. # have problems creating the table of contents. If linking a library
  12732. # or program results in "error TOC overflow" add -mminimal-toc to
  12733. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12734. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12735. archive_cmds_CXX=''
  12736. hardcode_direct_CXX=yes
  12737. hardcode_direct_absolute_CXX=yes
  12738. hardcode_libdir_separator_CXX=':'
  12739. link_all_deplibs_CXX=yes
  12740. file_list_spec_CXX='$wl-f,'
  12741. case $with_aix_soname,$aix_use_runtimelinking in
  12742. aix,*) ;; # no import file
  12743. svr4,* | *,yes) # use import file
  12744. # The Import File defines what to hardcode.
  12745. hardcode_direct_CXX=no
  12746. hardcode_direct_absolute_CXX=no
  12747. ;;
  12748. esac
  12749. if test yes = "$GXX"; then
  12750. case $host_os in aix4.[012]|aix4.[012].*)
  12751. # We only want to do this on AIX 4.2 and lower, the check
  12752. # below for broken collect2 doesn't work under 4.3+
  12753. collect2name=`$CC -print-prog-name=collect2`
  12754. if test -f "$collect2name" &&
  12755. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12756. then
  12757. # We have reworked collect2
  12758. :
  12759. else
  12760. # We have old collect2
  12761. hardcode_direct_CXX=unsupported
  12762. # It fails to find uninstalled libraries when the uninstalled
  12763. # path is not listed in the libpath. Setting hardcode_minus_L
  12764. # to unsupported forces relinking
  12765. hardcode_minus_L_CXX=yes
  12766. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12767. hardcode_libdir_separator_CXX=
  12768. fi
  12769. esac
  12770. shared_flag='-shared'
  12771. if test yes = "$aix_use_runtimelinking"; then
  12772. shared_flag=$shared_flag' $wl-G'
  12773. fi
  12774. # Need to ensure runtime linking is disabled for the traditional
  12775. # shared library, or the linker may eventually find shared libraries
  12776. # /with/ Import File - we do not want to mix them.
  12777. shared_flag_aix='-shared'
  12778. shared_flag_svr4='-shared $wl-G'
  12779. else
  12780. # not using gcc
  12781. if test ia64 = "$host_cpu"; then
  12782. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12783. # chokes on -Wl,-G. The following line is correct:
  12784. shared_flag='-G'
  12785. else
  12786. if test yes = "$aix_use_runtimelinking"; then
  12787. shared_flag='$wl-G'
  12788. else
  12789. shared_flag='$wl-bM:SRE'
  12790. fi
  12791. shared_flag_aix='$wl-bM:SRE'
  12792. shared_flag_svr4='$wl-G'
  12793. fi
  12794. fi
  12795. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12796. # It seems that -bexpall does not export symbols beginning with
  12797. # underscore (_), so it is better to generate a list of symbols to
  12798. # export.
  12799. always_export_symbols_CXX=yes
  12800. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12801. # Warning - without using the other runtime loading flags (-brtl),
  12802. # -berok will link without error, but may produce a broken library.
  12803. # The "-G" linker flag allows undefined symbols.
  12804. no_undefined_flag_CXX='-bernotok'
  12805. # Determine the default libpath from the value encoded in an empty
  12806. # executable.
  12807. if test set = "${lt_cv_aix_libpath+set}"; then
  12808. aix_libpath=$lt_cv_aix_libpath
  12809. else
  12810. if test ${lt_cv_aix_libpath__CXX+y}
  12811. then :
  12812. printf %s "(cached) " >&6
  12813. else $as_nop
  12814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12815. /* end confdefs.h. */
  12816. int
  12817. main (void)
  12818. {
  12819. ;
  12820. return 0;
  12821. }
  12822. _ACEOF
  12823. if ac_fn_cxx_try_link "$LINENO"
  12824. then :
  12825. lt_aix_libpath_sed='
  12826. /Import File Strings/,/^$/ {
  12827. /^0/ {
  12828. s/^0 *\([^ ]*\) *$/\1/
  12829. p
  12830. }
  12831. }'
  12832. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12833. # Check for a 64-bit object if we didn't find anything.
  12834. if test -z "$lt_cv_aix_libpath__CXX"; then
  12835. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12836. fi
  12837. fi
  12838. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12839. conftest$ac_exeext conftest.$ac_ext
  12840. if test -z "$lt_cv_aix_libpath__CXX"; then
  12841. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12842. fi
  12843. fi
  12844. aix_libpath=$lt_cv_aix_libpath__CXX
  12845. fi
  12846. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12847. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12848. else
  12849. if test ia64 = "$host_cpu"; then
  12850. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12851. allow_undefined_flag_CXX="-z nodefs"
  12852. 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"
  12853. else
  12854. # Determine the default libpath from the value encoded in an
  12855. # empty executable.
  12856. if test set = "${lt_cv_aix_libpath+set}"; then
  12857. aix_libpath=$lt_cv_aix_libpath
  12858. else
  12859. if test ${lt_cv_aix_libpath__CXX+y}
  12860. then :
  12861. printf %s "(cached) " >&6
  12862. else $as_nop
  12863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12864. /* end confdefs.h. */
  12865. int
  12866. main (void)
  12867. {
  12868. ;
  12869. return 0;
  12870. }
  12871. _ACEOF
  12872. if ac_fn_cxx_try_link "$LINENO"
  12873. then :
  12874. lt_aix_libpath_sed='
  12875. /Import File Strings/,/^$/ {
  12876. /^0/ {
  12877. s/^0 *\([^ ]*\) *$/\1/
  12878. p
  12879. }
  12880. }'
  12881. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12882. # Check for a 64-bit object if we didn't find anything.
  12883. if test -z "$lt_cv_aix_libpath__CXX"; then
  12884. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12885. fi
  12886. fi
  12887. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12888. conftest$ac_exeext conftest.$ac_ext
  12889. if test -z "$lt_cv_aix_libpath__CXX"; then
  12890. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12891. fi
  12892. fi
  12893. aix_libpath=$lt_cv_aix_libpath__CXX
  12894. fi
  12895. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12896. # Warning - without using the other run time loading flags,
  12897. # -berok will link without error, but may produce a broken library.
  12898. no_undefined_flag_CXX=' $wl-bernotok'
  12899. allow_undefined_flag_CXX=' $wl-berok'
  12900. if test yes = "$with_gnu_ld"; then
  12901. # We only use this code for GNU lds that support --whole-archive.
  12902. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12903. else
  12904. # Exported symbols can be pulled into shared objects from archives
  12905. whole_archive_flag_spec_CXX='$convenience'
  12906. fi
  12907. archive_cmds_need_lc_CXX=yes
  12908. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12909. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12910. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12911. if test svr4 != "$with_aix_soname"; then
  12912. # This is similar to how AIX traditionally builds its shared
  12913. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12914. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12915. fi
  12916. if test aix != "$with_aix_soname"; then
  12917. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12918. else
  12919. # used by -dlpreopen to get the symbols
  12920. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12921. fi
  12922. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12923. fi
  12924. fi
  12925. ;;
  12926. beos*)
  12927. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12928. allow_undefined_flag_CXX=unsupported
  12929. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12930. # support --undefined. This deserves some investigation. FIXME
  12931. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12932. else
  12933. ld_shlibs_CXX=no
  12934. fi
  12935. ;;
  12936. chorus*)
  12937. case $cc_basename in
  12938. *)
  12939. # FIXME: insert proper C++ library support
  12940. ld_shlibs_CXX=no
  12941. ;;
  12942. esac
  12943. ;;
  12944. cygwin* | mingw* | pw32* | cegcc*)
  12945. case $GXX,$cc_basename in
  12946. ,cl* | no,cl*)
  12947. # Native MSVC
  12948. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12949. # no search path for DLLs.
  12950. hardcode_libdir_flag_spec_CXX=' '
  12951. allow_undefined_flag_CXX=unsupported
  12952. always_export_symbols_CXX=yes
  12953. file_list_spec_CXX='@'
  12954. # Tell ltmain to make .lib files, not .a files.
  12955. libext=lib
  12956. # Tell ltmain to make .dll files, not .so files.
  12957. shrext_cmds=.dll
  12958. # FIXME: Setting linknames here is a bad hack.
  12959. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12960. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  12961. cp "$export_symbols" "$output_objdir/$soname.def";
  12962. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12963. else
  12964. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12965. fi~
  12966. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12967. linknames='
  12968. # The linker will not automatically build a static lib if we build a DLL.
  12969. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  12970. enable_shared_with_static_runtimes_CXX=yes
  12971. # Don't use ranlib
  12972. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  12973. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  12974. lt_tool_outputfile="@TOOL_OUTPUT@"~
  12975. case $lt_outputfile in
  12976. *.exe|*.EXE) ;;
  12977. *)
  12978. lt_outputfile=$lt_outputfile.exe
  12979. lt_tool_outputfile=$lt_tool_outputfile.exe
  12980. ;;
  12981. esac~
  12982. func_to_tool_file "$lt_outputfile"~
  12983. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12984. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12985. $RM "$lt_outputfile.manifest";
  12986. fi'
  12987. ;;
  12988. *)
  12989. # g++
  12990. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  12991. # as there is no search path for DLLs.
  12992. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12993. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  12994. allow_undefined_flag_CXX=unsupported
  12995. always_export_symbols_CXX=no
  12996. enable_shared_with_static_runtimes_CXX=yes
  12997. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12998. 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'
  12999. # If the export-symbols file already is a .def file, use it as
  13000. # is; otherwise, prepend EXPORTS...
  13001. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13002. cp $export_symbols $output_objdir/$soname.def;
  13003. else
  13004. echo EXPORTS > $output_objdir/$soname.def;
  13005. cat $export_symbols >> $output_objdir/$soname.def;
  13006. fi~
  13007. $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'
  13008. else
  13009. ld_shlibs_CXX=no
  13010. fi
  13011. ;;
  13012. esac
  13013. ;;
  13014. darwin* | rhapsody*)
  13015. archive_cmds_need_lc_CXX=no
  13016. hardcode_direct_CXX=no
  13017. hardcode_automatic_CXX=yes
  13018. hardcode_shlibpath_var_CXX=unsupported
  13019. if test yes = "$lt_cv_ld_force_load"; then
  13020. 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\"`'
  13021. else
  13022. whole_archive_flag_spec_CXX=''
  13023. fi
  13024. link_all_deplibs_CXX=yes
  13025. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13026. case $cc_basename in
  13027. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13028. *) _lt_dar_can_shared=$GCC ;;
  13029. esac
  13030. if test yes = "$_lt_dar_can_shared"; then
  13031. output_verbose_link_cmd=func_echo_all
  13032. 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"
  13033. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13034. 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"
  13035. 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"
  13036. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13037. 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"
  13038. 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"
  13039. fi
  13040. else
  13041. ld_shlibs_CXX=no
  13042. fi
  13043. ;;
  13044. os2*)
  13045. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13046. hardcode_minus_L_CXX=yes
  13047. allow_undefined_flag_CXX=unsupported
  13048. shrext_cmds=.dll
  13049. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13050. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13051. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13052. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13053. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13054. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13055. emximp -o $lib $output_objdir/$libname.def'
  13056. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13057. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13058. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13059. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13060. prefix_cmds="$SED"~
  13061. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13062. prefix_cmds="$prefix_cmds -e 1d";
  13063. fi~
  13064. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13065. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13066. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13067. emximp -o $lib $output_objdir/$libname.def'
  13068. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13069. enable_shared_with_static_runtimes_CXX=yes
  13070. file_list_spec_CXX='@'
  13071. ;;
  13072. dgux*)
  13073. case $cc_basename in
  13074. ec++*)
  13075. # FIXME: insert proper C++ library support
  13076. ld_shlibs_CXX=no
  13077. ;;
  13078. ghcx*)
  13079. # Green Hills C++ Compiler
  13080. # FIXME: insert proper C++ library support
  13081. ld_shlibs_CXX=no
  13082. ;;
  13083. *)
  13084. # FIXME: insert proper C++ library support
  13085. ld_shlibs_CXX=no
  13086. ;;
  13087. esac
  13088. ;;
  13089. freebsd2.*)
  13090. # C++ shared libraries reported to be fairly broken before
  13091. # switch to ELF
  13092. ld_shlibs_CXX=no
  13093. ;;
  13094. freebsd-elf*)
  13095. archive_cmds_need_lc_CXX=no
  13096. ;;
  13097. freebsd* | dragonfly* | midnightbsd*)
  13098. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13099. # conventions
  13100. ld_shlibs_CXX=yes
  13101. ;;
  13102. haiku*)
  13103. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13104. link_all_deplibs_CXX=yes
  13105. ;;
  13106. hpux9*)
  13107. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13108. hardcode_libdir_separator_CXX=:
  13109. export_dynamic_flag_spec_CXX='$wl-E'
  13110. hardcode_direct_CXX=yes
  13111. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13112. # but as the default
  13113. # location of the library.
  13114. case $cc_basename in
  13115. CC*)
  13116. # FIXME: insert proper C++ library support
  13117. ld_shlibs_CXX=no
  13118. ;;
  13119. aCC*)
  13120. 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13121. # Commands to make compiler produce verbose output that lists
  13122. # what "hidden" libraries, object files and flags are used when
  13123. # linking a shared library.
  13124. #
  13125. # There doesn't appear to be a way to prevent this compiler from
  13126. # explicitly linking system object files so we need to strip them
  13127. # from the output so that they don't get included in the library
  13128. # dependencies.
  13129. 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"'
  13130. ;;
  13131. *)
  13132. if test yes = "$GXX"; then
  13133. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  13134. else
  13135. # FIXME: insert proper C++ library support
  13136. ld_shlibs_CXX=no
  13137. fi
  13138. ;;
  13139. esac
  13140. ;;
  13141. hpux10*|hpux11*)
  13142. if test no = "$with_gnu_ld"; then
  13143. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13144. hardcode_libdir_separator_CXX=:
  13145. case $host_cpu in
  13146. hppa*64*|ia64*)
  13147. ;;
  13148. *)
  13149. export_dynamic_flag_spec_CXX='$wl-E'
  13150. ;;
  13151. esac
  13152. fi
  13153. case $host_cpu in
  13154. hppa*64*|ia64*)
  13155. hardcode_direct_CXX=no
  13156. hardcode_shlibpath_var_CXX=no
  13157. ;;
  13158. *)
  13159. hardcode_direct_CXX=yes
  13160. hardcode_direct_absolute_CXX=yes
  13161. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13162. # but as the default
  13163. # location of the library.
  13164. ;;
  13165. esac
  13166. case $cc_basename in
  13167. CC*)
  13168. # FIXME: insert proper C++ library support
  13169. ld_shlibs_CXX=no
  13170. ;;
  13171. aCC*)
  13172. case $host_cpu in
  13173. hppa*64*)
  13174. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13175. ;;
  13176. ia64*)
  13177. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13178. ;;
  13179. *)
  13180. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13181. ;;
  13182. esac
  13183. # Commands to make compiler produce verbose output that lists
  13184. # what "hidden" libraries, object files and flags are used when
  13185. # linking a shared library.
  13186. #
  13187. # There doesn't appear to be a way to prevent this compiler from
  13188. # explicitly linking system object files so we need to strip them
  13189. # from the output so that they don't get included in the library
  13190. # dependencies.
  13191. 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"'
  13192. ;;
  13193. *)
  13194. if test yes = "$GXX"; then
  13195. if test no = "$with_gnu_ld"; then
  13196. case $host_cpu in
  13197. hppa*64*)
  13198. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13199. ;;
  13200. ia64*)
  13201. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13202. ;;
  13203. *)
  13204. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13205. ;;
  13206. esac
  13207. fi
  13208. else
  13209. # FIXME: insert proper C++ library support
  13210. ld_shlibs_CXX=no
  13211. fi
  13212. ;;
  13213. esac
  13214. ;;
  13215. interix[3-9]*)
  13216. hardcode_direct_CXX=no
  13217. hardcode_shlibpath_var_CXX=no
  13218. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13219. export_dynamic_flag_spec_CXX='$wl-E'
  13220. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13221. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13222. # default) and relocated if they conflict, which is a slow very memory
  13223. # consuming and fragmenting process. To avoid this, we pick a random,
  13224. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13225. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13226. 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'
  13227. 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'
  13228. ;;
  13229. irix5* | irix6*)
  13230. case $cc_basename in
  13231. CC*)
  13232. # SGI C++
  13233. 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'
  13234. # Archives containing C++ object files must be created using
  13235. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13236. # necessary to make sure instantiated templates are included
  13237. # in the archive.
  13238. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13239. ;;
  13240. *)
  13241. if test yes = "$GXX"; then
  13242. if test no = "$with_gnu_ld"; then
  13243. archive_cmds_CXX='$CC -shared $pic_flag -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'
  13244. else
  13245. archive_cmds_CXX='$CC -shared $pic_flag -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'
  13246. fi
  13247. fi
  13248. link_all_deplibs_CXX=yes
  13249. ;;
  13250. esac
  13251. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13252. hardcode_libdir_separator_CXX=:
  13253. inherit_rpath_CXX=yes
  13254. ;;
  13255. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13256. case $cc_basename in
  13257. KCC*)
  13258. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13259. # KCC will only create a shared library if the output file
  13260. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13261. # to its proper name (with version) after linking.
  13262. 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'
  13263. 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'
  13264. # Commands to make compiler produce verbose output that lists
  13265. # what "hidden" libraries, object files and flags are used when
  13266. # linking a shared library.
  13267. #
  13268. # There doesn't appear to be a way to prevent this compiler from
  13269. # explicitly linking system object files so we need to strip them
  13270. # from the output so that they don't get included in the library
  13271. # dependencies.
  13272. 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"'
  13273. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13274. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13275. # Archives containing C++ object files must be created using
  13276. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13277. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13278. ;;
  13279. icpc* | ecpc* )
  13280. # Intel C++
  13281. with_gnu_ld=yes
  13282. # version 8.0 and above of icpc choke on multiply defined symbols
  13283. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13284. # earlier do not add the objects themselves.
  13285. case `$CC -V 2>&1` in
  13286. *"Version 7."*)
  13287. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13288. 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'
  13289. ;;
  13290. *) # Version 8.0 or newer
  13291. tmp_idyn=
  13292. case $host_cpu in
  13293. ia64*) tmp_idyn=' -i_dynamic';;
  13294. esac
  13295. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13296. 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'
  13297. ;;
  13298. esac
  13299. archive_cmds_need_lc_CXX=no
  13300. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13301. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13302. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13303. ;;
  13304. pgCC* | pgcpp*)
  13305. # Portland Group C++ compiler
  13306. case `$CC -V` in
  13307. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13308. prelink_cmds_CXX='tpldir=Template.dir~
  13309. rm -rf $tpldir~
  13310. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13311. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13312. old_archive_cmds_CXX='tpldir=Template.dir~
  13313. rm -rf $tpldir~
  13314. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13315. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13316. $RANLIB $oldlib'
  13317. archive_cmds_CXX='tpldir=Template.dir~
  13318. rm -rf $tpldir~
  13319. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13320. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13321. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13322. rm -rf $tpldir~
  13323. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13324. $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'
  13325. ;;
  13326. *) # Version 6 and above use weak symbols
  13327. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13328. 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'
  13329. ;;
  13330. esac
  13331. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13332. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13333. 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'
  13334. ;;
  13335. cxx*)
  13336. # Compaq C++
  13337. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13338. 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'
  13339. runpath_var=LD_RUN_PATH
  13340. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13341. hardcode_libdir_separator_CXX=:
  13342. # Commands to make compiler produce verbose output that lists
  13343. # what "hidden" libraries, object files and flags are used when
  13344. # linking a shared library.
  13345. #
  13346. # There doesn't appear to be a way to prevent this compiler from
  13347. # explicitly linking system object files so we need to strip them
  13348. # from the output so that they don't get included in the library
  13349. # dependencies.
  13350. 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'
  13351. ;;
  13352. xl* | mpixl* | bgxl*)
  13353. # IBM XL 8.0 on PPC, with GNU ld
  13354. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13355. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13356. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13357. if test yes = "$supports_anon_versioning"; then
  13358. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13359. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13360. echo "local: *; };" >> $output_objdir/$libname.ver~
  13361. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13362. fi
  13363. ;;
  13364. *)
  13365. case `$CC -V 2>&1 | sed 5q` in
  13366. *Sun\ C*)
  13367. # Sun C++ 5.9
  13368. no_undefined_flag_CXX=' -zdefs'
  13369. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13370. 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'
  13371. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13372. 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'
  13373. compiler_needs_object_CXX=yes
  13374. # Not sure whether something based on
  13375. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13376. # would be better.
  13377. output_verbose_link_cmd='func_echo_all'
  13378. # Archives containing C++ object files must be created using
  13379. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13380. # necessary to make sure instantiated templates are included
  13381. # in the archive.
  13382. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13383. ;;
  13384. esac
  13385. ;;
  13386. esac
  13387. ;;
  13388. lynxos*)
  13389. # FIXME: insert proper C++ library support
  13390. ld_shlibs_CXX=no
  13391. ;;
  13392. m88k*)
  13393. # FIXME: insert proper C++ library support
  13394. ld_shlibs_CXX=no
  13395. ;;
  13396. mvs*)
  13397. case $cc_basename in
  13398. cxx*)
  13399. # FIXME: insert proper C++ library support
  13400. ld_shlibs_CXX=no
  13401. ;;
  13402. *)
  13403. # FIXME: insert proper C++ library support
  13404. ld_shlibs_CXX=no
  13405. ;;
  13406. esac
  13407. ;;
  13408. netbsd*)
  13409. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13410. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13411. wlarc=
  13412. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13413. hardcode_direct_CXX=yes
  13414. hardcode_shlibpath_var_CXX=no
  13415. fi
  13416. # Workaround some broken pre-1.5 toolchains
  13417. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13418. ;;
  13419. *nto* | *qnx*)
  13420. ld_shlibs_CXX=yes
  13421. ;;
  13422. openbsd* | bitrig*)
  13423. if test -f /usr/libexec/ld.so; then
  13424. hardcode_direct_CXX=yes
  13425. hardcode_shlibpath_var_CXX=no
  13426. hardcode_direct_absolute_CXX=yes
  13427. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13428. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13429. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13430. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13431. export_dynamic_flag_spec_CXX='$wl-E'
  13432. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13433. fi
  13434. output_verbose_link_cmd=func_echo_all
  13435. else
  13436. ld_shlibs_CXX=no
  13437. fi
  13438. ;;
  13439. osf3* | osf4* | osf5*)
  13440. case $cc_basename in
  13441. KCC*)
  13442. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13443. # KCC will only create a shared library if the output file
  13444. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13445. # to its proper name (with version) after linking.
  13446. 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'
  13447. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13448. hardcode_libdir_separator_CXX=:
  13449. # Archives containing C++ object files must be created using
  13450. # the KAI C++ compiler.
  13451. case $host in
  13452. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13453. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13454. esac
  13455. ;;
  13456. RCC*)
  13457. # Rational C++ 2.4.1
  13458. # FIXME: insert proper C++ library support
  13459. ld_shlibs_CXX=no
  13460. ;;
  13461. cxx*)
  13462. case $host in
  13463. osf3*)
  13464. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13465. 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'
  13466. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13467. ;;
  13468. *)
  13469. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13470. 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'
  13471. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13472. echo "-hidden">> $lib.exp~
  13473. $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~
  13474. $RM $lib.exp'
  13475. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13476. ;;
  13477. esac
  13478. hardcode_libdir_separator_CXX=:
  13479. # Commands to make compiler produce verbose output that lists
  13480. # what "hidden" libraries, object files and flags are used when
  13481. # linking a shared library.
  13482. #
  13483. # There doesn't appear to be a way to prevent this compiler from
  13484. # explicitly linking system object files so we need to strip them
  13485. # from the output so that they don't get included in the library
  13486. # dependencies.
  13487. 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"'
  13488. ;;
  13489. *)
  13490. if test yes,no = "$GXX,$with_gnu_ld"; then
  13491. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13492. case $host in
  13493. osf3*)
  13494. 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'
  13495. ;;
  13496. *)
  13497. archive_cmds_CXX='$CC -shared $pic_flag -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'
  13498. ;;
  13499. esac
  13500. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13501. hardcode_libdir_separator_CXX=:
  13502. # Commands to make compiler produce verbose output that lists
  13503. # what "hidden" libraries, object files and flags are used when
  13504. # linking a shared library.
  13505. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13506. else
  13507. # FIXME: insert proper C++ library support
  13508. ld_shlibs_CXX=no
  13509. fi
  13510. ;;
  13511. esac
  13512. ;;
  13513. psos*)
  13514. # FIXME: insert proper C++ library support
  13515. ld_shlibs_CXX=no
  13516. ;;
  13517. sunos4*)
  13518. case $cc_basename in
  13519. CC*)
  13520. # Sun C++ 4.x
  13521. # FIXME: insert proper C++ library support
  13522. ld_shlibs_CXX=no
  13523. ;;
  13524. lcc*)
  13525. # Lucid
  13526. # FIXME: insert proper C++ library support
  13527. ld_shlibs_CXX=no
  13528. ;;
  13529. *)
  13530. # FIXME: insert proper C++ library support
  13531. ld_shlibs_CXX=no
  13532. ;;
  13533. esac
  13534. ;;
  13535. solaris*)
  13536. case $cc_basename in
  13537. CC* | sunCC*)
  13538. # Sun C++ 4.2, 5.x and Centerline C++
  13539. archive_cmds_need_lc_CXX=yes
  13540. no_undefined_flag_CXX=' -zdefs'
  13541. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13542. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13543. $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'
  13544. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13545. hardcode_shlibpath_var_CXX=no
  13546. case $host_os in
  13547. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13548. *)
  13549. # The compiler driver will combine and reorder linker options,
  13550. # but understands '-z linker_flag'.
  13551. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13552. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13553. ;;
  13554. esac
  13555. link_all_deplibs_CXX=yes
  13556. output_verbose_link_cmd='func_echo_all'
  13557. # Archives containing C++ object files must be created using
  13558. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13559. # necessary to make sure instantiated templates are included
  13560. # in the archive.
  13561. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13562. ;;
  13563. gcx*)
  13564. # Green Hills C++ Compiler
  13565. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13566. # The C++ compiler must be used to create the archive.
  13567. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13568. ;;
  13569. *)
  13570. # GNU C++ compiler with Solaris linker
  13571. if test yes,no = "$GXX,$with_gnu_ld"; then
  13572. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13573. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13574. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13575. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13576. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13577. # Commands to make compiler produce verbose output that lists
  13578. # what "hidden" libraries, object files and flags are used when
  13579. # linking a shared library.
  13580. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13581. else
  13582. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13583. # platform.
  13584. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13585. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13586. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  13587. # Commands to make compiler produce verbose output that lists
  13588. # what "hidden" libraries, object files and flags are used when
  13589. # linking a shared library.
  13590. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13591. fi
  13592. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13593. case $host_os in
  13594. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13595. *)
  13596. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13597. ;;
  13598. esac
  13599. fi
  13600. ;;
  13601. esac
  13602. ;;
  13603. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13604. no_undefined_flag_CXX='$wl-z,text'
  13605. archive_cmds_need_lc_CXX=no
  13606. hardcode_shlibpath_var_CXX=no
  13607. runpath_var='LD_RUN_PATH'
  13608. case $cc_basename in
  13609. CC*)
  13610. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13611. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13612. ;;
  13613. *)
  13614. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13615. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13616. ;;
  13617. esac
  13618. ;;
  13619. sysv5* | sco3.2v5* | sco5v6*)
  13620. # Note: We CANNOT use -z defs as we might desire, because we do not
  13621. # link with -lc, and that would cause any symbols used from libc to
  13622. # always be unresolved, which means just about no library would
  13623. # ever link correctly. If we're not using GNU ld we use -z text
  13624. # though, which does catch some bad symbols but isn't as heavy-handed
  13625. # as -z defs.
  13626. no_undefined_flag_CXX='$wl-z,text'
  13627. allow_undefined_flag_CXX='$wl-z,nodefs'
  13628. archive_cmds_need_lc_CXX=no
  13629. hardcode_shlibpath_var_CXX=no
  13630. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13631. hardcode_libdir_separator_CXX=':'
  13632. link_all_deplibs_CXX=yes
  13633. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13634. runpath_var='LD_RUN_PATH'
  13635. case $cc_basename in
  13636. CC*)
  13637. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13638. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13639. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13640. '"$old_archive_cmds_CXX"
  13641. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13642. '"$reload_cmds_CXX"
  13643. ;;
  13644. *)
  13645. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13646. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13647. ;;
  13648. esac
  13649. ;;
  13650. tandem*)
  13651. case $cc_basename in
  13652. NCC*)
  13653. # NonStop-UX NCC 3.20
  13654. # FIXME: insert proper C++ library support
  13655. ld_shlibs_CXX=no
  13656. ;;
  13657. *)
  13658. # FIXME: insert proper C++ library support
  13659. ld_shlibs_CXX=no
  13660. ;;
  13661. esac
  13662. ;;
  13663. vxworks*)
  13664. # FIXME: insert proper C++ library support
  13665. ld_shlibs_CXX=no
  13666. ;;
  13667. *)
  13668. # FIXME: insert proper C++ library support
  13669. ld_shlibs_CXX=no
  13670. ;;
  13671. esac
  13672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13673. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13674. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13675. GCC_CXX=$GXX
  13676. LD_CXX=$LD
  13677. ## CAVEAT EMPTOR:
  13678. ## There is no encapsulation within the following macros, do not change
  13679. ## the running order or otherwise move them around unless you know exactly
  13680. ## what you are doing...
  13681. # Dependencies to place before and after the object being linked:
  13682. predep_objects_CXX=
  13683. postdep_objects_CXX=
  13684. predeps_CXX=
  13685. postdeps_CXX=
  13686. compiler_lib_search_path_CXX=
  13687. cat > conftest.$ac_ext <<_LT_EOF
  13688. class Foo
  13689. {
  13690. public:
  13691. Foo (void) { a = 0; }
  13692. private:
  13693. int a;
  13694. };
  13695. _LT_EOF
  13696. _lt_libdeps_save_CFLAGS=$CFLAGS
  13697. case "$CC $CFLAGS " in #(
  13698. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13699. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13700. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13701. esac
  13702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13703. (eval $ac_compile) 2>&5
  13704. ac_status=$?
  13705. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13706. test $ac_status = 0; }; then
  13707. # Parse the compiler output and extract the necessary
  13708. # objects, libraries and library flags.
  13709. # Sentinel used to keep track of whether or not we are before
  13710. # the conftest object file.
  13711. pre_test_object_deps_done=no
  13712. for p in `eval "$output_verbose_link_cmd"`; do
  13713. case $prev$p in
  13714. -L* | -R* | -l*)
  13715. # Some compilers place space between "-{L,R}" and the path.
  13716. # Remove the space.
  13717. if test x-L = "x$p" ||
  13718. test x-R = "x$p" ||
  13719. test x-l = "x$p"; then
  13720. prev=$p
  13721. continue
  13722. fi
  13723. # Expand the sysroot to ease extracting the directories later.
  13724. if test -z "$prev"; then
  13725. case $p in
  13726. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13727. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13728. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13729. esac
  13730. fi
  13731. case $p in
  13732. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13733. esac
  13734. if test no = "$pre_test_object_deps_done"; then
  13735. case $prev in
  13736. -L | -R)
  13737. # Internal compiler library paths should come after those
  13738. # provided the user. The postdeps already come after the
  13739. # user supplied libs so there is no need to process them.
  13740. if test -z "$compiler_lib_search_path_CXX"; then
  13741. compiler_lib_search_path_CXX=$prev$p
  13742. else
  13743. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13744. fi
  13745. ;;
  13746. # The "-l" case would never come before the object being
  13747. # linked, so don't bother handling this case.
  13748. esac
  13749. else
  13750. if test -z "$postdeps_CXX"; then
  13751. postdeps_CXX=$prev$p
  13752. else
  13753. postdeps_CXX="${postdeps_CXX} $prev$p"
  13754. fi
  13755. fi
  13756. prev=
  13757. ;;
  13758. *.lto.$objext) ;; # Ignore GCC LTO objects
  13759. *.$objext)
  13760. # This assumes that the test object file only shows up
  13761. # once in the compiler output.
  13762. if test "$p" = "conftest.$objext"; then
  13763. pre_test_object_deps_done=yes
  13764. continue
  13765. fi
  13766. if test no = "$pre_test_object_deps_done"; then
  13767. if test -z "$predep_objects_CXX"; then
  13768. predep_objects_CXX=$p
  13769. else
  13770. predep_objects_CXX="$predep_objects_CXX $p"
  13771. fi
  13772. else
  13773. if test -z "$postdep_objects_CXX"; then
  13774. postdep_objects_CXX=$p
  13775. else
  13776. postdep_objects_CXX="$postdep_objects_CXX $p"
  13777. fi
  13778. fi
  13779. ;;
  13780. *) ;; # Ignore the rest.
  13781. esac
  13782. done
  13783. # Clean up.
  13784. rm -f a.out a.exe
  13785. else
  13786. echo "libtool.m4: error: problem compiling CXX test program"
  13787. fi
  13788. $RM -f confest.$objext
  13789. CFLAGS=$_lt_libdeps_save_CFLAGS
  13790. # PORTME: override above test on systems where it is broken
  13791. case $host_os in
  13792. interix[3-9]*)
  13793. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13794. # hack all around it, let's just trust "g++" to DTRT.
  13795. predep_objects_CXX=
  13796. postdep_objects_CXX=
  13797. postdeps_CXX=
  13798. ;;
  13799. esac
  13800. case " $postdeps_CXX " in
  13801. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13802. esac
  13803. compiler_lib_search_dirs_CXX=
  13804. if test -n "${compiler_lib_search_path_CXX}"; then
  13805. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13806. fi
  13807. lt_prog_compiler_wl_CXX=
  13808. lt_prog_compiler_pic_CXX=
  13809. lt_prog_compiler_static_CXX=
  13810. # C++ specific cases for pic, static, wl, etc.
  13811. if test yes = "$GXX"; then
  13812. lt_prog_compiler_wl_CXX='-Wl,'
  13813. lt_prog_compiler_static_CXX='-static'
  13814. case $host_os in
  13815. aix*)
  13816. # All AIX code is PIC.
  13817. if test ia64 = "$host_cpu"; then
  13818. # AIX 5 now supports IA64 processor
  13819. lt_prog_compiler_static_CXX='-Bstatic'
  13820. fi
  13821. lt_prog_compiler_pic_CXX='-fPIC'
  13822. ;;
  13823. amigaos*)
  13824. case $host_cpu in
  13825. powerpc)
  13826. # see comment about AmigaOS4 .so support
  13827. lt_prog_compiler_pic_CXX='-fPIC'
  13828. ;;
  13829. m68k)
  13830. # FIXME: we need at least 68020 code to build shared libraries, but
  13831. # adding the '-m68020' flag to GCC prevents building anything better,
  13832. # like '-m68040'.
  13833. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13834. ;;
  13835. esac
  13836. ;;
  13837. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13838. # PIC is the default for these OSes.
  13839. ;;
  13840. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13841. # This hack is so that the source file can tell whether it is being
  13842. # built for inclusion in a dll (and should export symbols for example).
  13843. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13844. # (--disable-auto-import) libraries
  13845. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13846. case $host_os in
  13847. os2*)
  13848. lt_prog_compiler_static_CXX='$wl-static'
  13849. ;;
  13850. esac
  13851. ;;
  13852. darwin* | rhapsody*)
  13853. # PIC is the default on this platform
  13854. # Common symbols not allowed in MH_DYLIB files
  13855. lt_prog_compiler_pic_CXX='-fno-common'
  13856. ;;
  13857. *djgpp*)
  13858. # DJGPP does not support shared libraries at all
  13859. lt_prog_compiler_pic_CXX=
  13860. ;;
  13861. haiku*)
  13862. # PIC is the default for Haiku.
  13863. # The "-static" flag exists, but is broken.
  13864. lt_prog_compiler_static_CXX=
  13865. ;;
  13866. interix[3-9]*)
  13867. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13868. # Instead, we relocate shared libraries at runtime.
  13869. ;;
  13870. sysv4*MP*)
  13871. if test -d /usr/nec; then
  13872. lt_prog_compiler_pic_CXX=-Kconform_pic
  13873. fi
  13874. ;;
  13875. hpux*)
  13876. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13877. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13878. # sets the default TLS model and affects inlining.
  13879. case $host_cpu in
  13880. hppa*64*)
  13881. ;;
  13882. *)
  13883. lt_prog_compiler_pic_CXX='-fPIC'
  13884. ;;
  13885. esac
  13886. ;;
  13887. *qnx* | *nto*)
  13888. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13889. # it will coredump.
  13890. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13891. ;;
  13892. *)
  13893. lt_prog_compiler_pic_CXX='-fPIC'
  13894. ;;
  13895. esac
  13896. else
  13897. case $host_os in
  13898. aix[4-9]*)
  13899. # All AIX code is PIC.
  13900. if test ia64 = "$host_cpu"; then
  13901. # AIX 5 now supports IA64 processor
  13902. lt_prog_compiler_static_CXX='-Bstatic'
  13903. else
  13904. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13905. fi
  13906. ;;
  13907. chorus*)
  13908. case $cc_basename in
  13909. cxch68*)
  13910. # Green Hills C++ Compiler
  13911. # _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"
  13912. ;;
  13913. esac
  13914. ;;
  13915. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13916. # This hack is so that the source file can tell whether it is being
  13917. # built for inclusion in a dll (and should export symbols for example).
  13918. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13919. ;;
  13920. dgux*)
  13921. case $cc_basename in
  13922. ec++*)
  13923. lt_prog_compiler_pic_CXX='-KPIC'
  13924. ;;
  13925. ghcx*)
  13926. # Green Hills C++ Compiler
  13927. lt_prog_compiler_pic_CXX='-pic'
  13928. ;;
  13929. *)
  13930. ;;
  13931. esac
  13932. ;;
  13933. freebsd* | dragonfly* | midnightbsd*)
  13934. # FreeBSD uses GNU C++
  13935. ;;
  13936. hpux9* | hpux10* | hpux11*)
  13937. case $cc_basename in
  13938. CC*)
  13939. lt_prog_compiler_wl_CXX='-Wl,'
  13940. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13941. if test ia64 != "$host_cpu"; then
  13942. lt_prog_compiler_pic_CXX='+Z'
  13943. fi
  13944. ;;
  13945. aCC*)
  13946. lt_prog_compiler_wl_CXX='-Wl,'
  13947. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13948. case $host_cpu in
  13949. hppa*64*|ia64*)
  13950. # +Z the default
  13951. ;;
  13952. *)
  13953. lt_prog_compiler_pic_CXX='+Z'
  13954. ;;
  13955. esac
  13956. ;;
  13957. *)
  13958. ;;
  13959. esac
  13960. ;;
  13961. interix*)
  13962. # This is c89, which is MS Visual C++ (no shared libs)
  13963. # Anyone wants to do a port?
  13964. ;;
  13965. irix5* | irix6* | nonstopux*)
  13966. case $cc_basename in
  13967. CC*)
  13968. lt_prog_compiler_wl_CXX='-Wl,'
  13969. lt_prog_compiler_static_CXX='-non_shared'
  13970. # CC pic flag -KPIC is the default.
  13971. ;;
  13972. *)
  13973. ;;
  13974. esac
  13975. ;;
  13976. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13977. case $cc_basename in
  13978. KCC*)
  13979. # KAI C++ Compiler
  13980. lt_prog_compiler_wl_CXX='--backend -Wl,'
  13981. lt_prog_compiler_pic_CXX='-fPIC'
  13982. ;;
  13983. ecpc* )
  13984. # old Intel C++ for x86_64, which still supported -KPIC.
  13985. lt_prog_compiler_wl_CXX='-Wl,'
  13986. lt_prog_compiler_pic_CXX='-KPIC'
  13987. lt_prog_compiler_static_CXX='-static'
  13988. ;;
  13989. icpc* )
  13990. # Intel C++, used to be incompatible with GCC.
  13991. # ICC 10 doesn't accept -KPIC any more.
  13992. lt_prog_compiler_wl_CXX='-Wl,'
  13993. lt_prog_compiler_pic_CXX='-fPIC'
  13994. lt_prog_compiler_static_CXX='-static'
  13995. ;;
  13996. pgCC* | pgcpp*)
  13997. # Portland Group C++ compiler
  13998. lt_prog_compiler_wl_CXX='-Wl,'
  13999. lt_prog_compiler_pic_CXX='-fpic'
  14000. lt_prog_compiler_static_CXX='-Bstatic'
  14001. ;;
  14002. cxx*)
  14003. # Compaq C++
  14004. # Make sure the PIC flag is empty. It appears that all Alpha
  14005. # Linux and Compaq Tru64 Unix objects are PIC.
  14006. lt_prog_compiler_pic_CXX=
  14007. lt_prog_compiler_static_CXX='-non_shared'
  14008. ;;
  14009. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14010. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14011. lt_prog_compiler_wl_CXX='-Wl,'
  14012. lt_prog_compiler_pic_CXX='-qpic'
  14013. lt_prog_compiler_static_CXX='-qstaticlink'
  14014. ;;
  14015. *)
  14016. case `$CC -V 2>&1 | sed 5q` in
  14017. *Sun\ C*)
  14018. # Sun C++ 5.9
  14019. lt_prog_compiler_pic_CXX='-KPIC'
  14020. lt_prog_compiler_static_CXX='-Bstatic'
  14021. lt_prog_compiler_wl_CXX='-Qoption ld '
  14022. ;;
  14023. esac
  14024. ;;
  14025. esac
  14026. ;;
  14027. lynxos*)
  14028. ;;
  14029. m88k*)
  14030. ;;
  14031. mvs*)
  14032. case $cc_basename in
  14033. cxx*)
  14034. lt_prog_compiler_pic_CXX='-W c,exportall'
  14035. ;;
  14036. *)
  14037. ;;
  14038. esac
  14039. ;;
  14040. netbsd*)
  14041. ;;
  14042. *qnx* | *nto*)
  14043. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14044. # it will coredump.
  14045. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14046. ;;
  14047. osf3* | osf4* | osf5*)
  14048. case $cc_basename in
  14049. KCC*)
  14050. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14051. ;;
  14052. RCC*)
  14053. # Rational C++ 2.4.1
  14054. lt_prog_compiler_pic_CXX='-pic'
  14055. ;;
  14056. cxx*)
  14057. # Digital/Compaq C++
  14058. lt_prog_compiler_wl_CXX='-Wl,'
  14059. # Make sure the PIC flag is empty. It appears that all Alpha
  14060. # Linux and Compaq Tru64 Unix objects are PIC.
  14061. lt_prog_compiler_pic_CXX=
  14062. lt_prog_compiler_static_CXX='-non_shared'
  14063. ;;
  14064. *)
  14065. ;;
  14066. esac
  14067. ;;
  14068. psos*)
  14069. ;;
  14070. solaris*)
  14071. case $cc_basename in
  14072. CC* | sunCC*)
  14073. # Sun C++ 4.2, 5.x and Centerline C++
  14074. lt_prog_compiler_pic_CXX='-KPIC'
  14075. lt_prog_compiler_static_CXX='-Bstatic'
  14076. lt_prog_compiler_wl_CXX='-Qoption ld '
  14077. ;;
  14078. gcx*)
  14079. # Green Hills C++ Compiler
  14080. lt_prog_compiler_pic_CXX='-PIC'
  14081. ;;
  14082. *)
  14083. ;;
  14084. esac
  14085. ;;
  14086. sunos4*)
  14087. case $cc_basename in
  14088. CC*)
  14089. # Sun C++ 4.x
  14090. lt_prog_compiler_pic_CXX='-pic'
  14091. lt_prog_compiler_static_CXX='-Bstatic'
  14092. ;;
  14093. lcc*)
  14094. # Lucid
  14095. lt_prog_compiler_pic_CXX='-pic'
  14096. ;;
  14097. *)
  14098. ;;
  14099. esac
  14100. ;;
  14101. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14102. case $cc_basename in
  14103. CC*)
  14104. lt_prog_compiler_wl_CXX='-Wl,'
  14105. lt_prog_compiler_pic_CXX='-KPIC'
  14106. lt_prog_compiler_static_CXX='-Bstatic'
  14107. ;;
  14108. esac
  14109. ;;
  14110. tandem*)
  14111. case $cc_basename in
  14112. NCC*)
  14113. # NonStop-UX NCC 3.20
  14114. lt_prog_compiler_pic_CXX='-KPIC'
  14115. ;;
  14116. *)
  14117. ;;
  14118. esac
  14119. ;;
  14120. vxworks*)
  14121. ;;
  14122. *)
  14123. lt_prog_compiler_can_build_shared_CXX=no
  14124. ;;
  14125. esac
  14126. fi
  14127. case $host_os in
  14128. # For platforms that do not support PIC, -DPIC is meaningless:
  14129. *djgpp*)
  14130. lt_prog_compiler_pic_CXX=
  14131. ;;
  14132. *)
  14133. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14134. ;;
  14135. esac
  14136. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14137. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14138. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14139. then :
  14140. printf %s "(cached) " >&6
  14141. else $as_nop
  14142. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14143. fi
  14144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14145. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14146. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14147. #
  14148. # Check to make sure the PIC flag actually works.
  14149. #
  14150. if test -n "$lt_prog_compiler_pic_CXX"; then
  14151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14152. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14153. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14154. then :
  14155. printf %s "(cached) " >&6
  14156. else $as_nop
  14157. lt_cv_prog_compiler_pic_works_CXX=no
  14158. ac_outfile=conftest.$ac_objext
  14159. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14160. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14161. # Insert the option either (1) after the last *FLAGS variable, or
  14162. # (2) before a word containing "conftest.", or (3) at the end.
  14163. # Note that $ac_compile itself does not contain backslashes and begins
  14164. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14165. # The option is referenced via a variable to avoid confusing sed.
  14166. lt_compile=`echo "$ac_compile" | $SED \
  14167. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14168. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14169. -e 's:$: $lt_compiler_flag:'`
  14170. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14171. (eval "$lt_compile" 2>conftest.err)
  14172. ac_status=$?
  14173. cat conftest.err >&5
  14174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14175. if (exit $ac_status) && test -s "$ac_outfile"; then
  14176. # The compiler can only warn and ignore the option if not recognized
  14177. # So say no if there are warnings other than the usual output.
  14178. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14179. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14180. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14181. lt_cv_prog_compiler_pic_works_CXX=yes
  14182. fi
  14183. fi
  14184. $RM conftest*
  14185. fi
  14186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14187. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14188. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14189. case $lt_prog_compiler_pic_CXX in
  14190. "" | " "*) ;;
  14191. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14192. esac
  14193. else
  14194. lt_prog_compiler_pic_CXX=
  14195. lt_prog_compiler_can_build_shared_CXX=no
  14196. fi
  14197. fi
  14198. #
  14199. # Check to make sure the static flag actually works.
  14200. #
  14201. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14203. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14204. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14205. then :
  14206. printf %s "(cached) " >&6
  14207. else $as_nop
  14208. lt_cv_prog_compiler_static_works_CXX=no
  14209. save_LDFLAGS=$LDFLAGS
  14210. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14211. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14212. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14213. # The linker can only warn and ignore the option if not recognized
  14214. # So say no if there are warnings
  14215. if test -s conftest.err; then
  14216. # Append any errors to the config.log.
  14217. cat conftest.err 1>&5
  14218. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14219. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14220. if diff conftest.exp conftest.er2 >/dev/null; then
  14221. lt_cv_prog_compiler_static_works_CXX=yes
  14222. fi
  14223. else
  14224. lt_cv_prog_compiler_static_works_CXX=yes
  14225. fi
  14226. fi
  14227. $RM -r conftest*
  14228. LDFLAGS=$save_LDFLAGS
  14229. fi
  14230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14231. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14232. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14233. :
  14234. else
  14235. lt_prog_compiler_static_CXX=
  14236. fi
  14237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14238. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14239. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14240. then :
  14241. printf %s "(cached) " >&6
  14242. else $as_nop
  14243. lt_cv_prog_compiler_c_o_CXX=no
  14244. $RM -r conftest 2>/dev/null
  14245. mkdir conftest
  14246. cd conftest
  14247. mkdir out
  14248. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14249. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14250. # Insert the option either (1) after the last *FLAGS variable, or
  14251. # (2) before a word containing "conftest.", or (3) at the end.
  14252. # Note that $ac_compile itself does not contain backslashes and begins
  14253. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14254. lt_compile=`echo "$ac_compile" | $SED \
  14255. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14256. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14257. -e 's:$: $lt_compiler_flag:'`
  14258. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14259. (eval "$lt_compile" 2>out/conftest.err)
  14260. ac_status=$?
  14261. cat out/conftest.err >&5
  14262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14263. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14264. then
  14265. # The compiler can only warn and ignore the option if not recognized
  14266. # So say no if there are warnings
  14267. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14268. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14269. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14270. lt_cv_prog_compiler_c_o_CXX=yes
  14271. fi
  14272. fi
  14273. chmod u+w . 2>&5
  14274. $RM conftest*
  14275. # SGI C++ compiler will create directory out/ii_files/ for
  14276. # template instantiation
  14277. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14278. $RM out/* && rmdir out
  14279. cd ..
  14280. $RM -r conftest
  14281. $RM conftest*
  14282. fi
  14283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14284. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14286. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14287. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14288. then :
  14289. printf %s "(cached) " >&6
  14290. else $as_nop
  14291. lt_cv_prog_compiler_c_o_CXX=no
  14292. $RM -r conftest 2>/dev/null
  14293. mkdir conftest
  14294. cd conftest
  14295. mkdir out
  14296. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14297. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14298. # Insert the option either (1) after the last *FLAGS variable, or
  14299. # (2) before a word containing "conftest.", or (3) at the end.
  14300. # Note that $ac_compile itself does not contain backslashes and begins
  14301. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14302. lt_compile=`echo "$ac_compile" | $SED \
  14303. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14304. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14305. -e 's:$: $lt_compiler_flag:'`
  14306. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14307. (eval "$lt_compile" 2>out/conftest.err)
  14308. ac_status=$?
  14309. cat out/conftest.err >&5
  14310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14311. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14312. then
  14313. # The compiler can only warn and ignore the option if not recognized
  14314. # So say no if there are warnings
  14315. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14316. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14317. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14318. lt_cv_prog_compiler_c_o_CXX=yes
  14319. fi
  14320. fi
  14321. chmod u+w . 2>&5
  14322. $RM conftest*
  14323. # SGI C++ compiler will create directory out/ii_files/ for
  14324. # template instantiation
  14325. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14326. $RM out/* && rmdir out
  14327. cd ..
  14328. $RM -r conftest
  14329. $RM conftest*
  14330. fi
  14331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14332. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14333. hard_links=nottested
  14334. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14335. # do not overwrite the value of need_locks provided by the user
  14336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14337. printf %s "checking if we can lock with hard links... " >&6; }
  14338. hard_links=yes
  14339. $RM conftest*
  14340. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14341. touch conftest.a
  14342. ln conftest.a conftest.b 2>&5 || hard_links=no
  14343. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14345. printf "%s\n" "$hard_links" >&6; }
  14346. if test no = "$hard_links"; then
  14347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14348. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14349. need_locks=warn
  14350. fi
  14351. else
  14352. need_locks=no
  14353. fi
  14354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14355. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14356. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14357. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14358. case $host_os in
  14359. aix[4-9]*)
  14360. # If we're using GNU nm, then we don't want the "-C" option.
  14361. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14362. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14363. # weak defined symbols like other global defined symbols, whereas
  14364. # GNU nm marks them as "W".
  14365. # While the 'weak' keyword is ignored in the Export File, we need
  14366. # it in the Import File for the 'aix-soname' feature, so we have
  14367. # to replace the "-B" option with "-P" for AIX nm.
  14368. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14369. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  14370. else
  14371. export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  14372. fi
  14373. ;;
  14374. pw32*)
  14375. export_symbols_cmds_CXX=$ltdll_cmds
  14376. ;;
  14377. cygwin* | mingw* | cegcc*)
  14378. case $cc_basename in
  14379. cl*)
  14380. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14381. ;;
  14382. *)
  14383. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  14384. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14385. ;;
  14386. esac
  14387. ;;
  14388. *)
  14389. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14390. ;;
  14391. esac
  14392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14393. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14394. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14395. with_gnu_ld_CXX=$with_gnu_ld
  14396. #
  14397. # Do we need to explicitly link libc?
  14398. #
  14399. case "x$archive_cmds_need_lc_CXX" in
  14400. x|xyes)
  14401. # Assume -lc should be added
  14402. archive_cmds_need_lc_CXX=yes
  14403. if test yes,yes = "$GCC,$enable_shared"; then
  14404. case $archive_cmds_CXX in
  14405. *'~'*)
  14406. # FIXME: we may have to deal with multi-command sequences.
  14407. ;;
  14408. '$CC '*)
  14409. # Test whether the compiler implicitly links with -lc since on some
  14410. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14411. # to ld, don't add -lc before -lgcc.
  14412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14413. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14414. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14415. then :
  14416. printf %s "(cached) " >&6
  14417. else $as_nop
  14418. $RM conftest*
  14419. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14420. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14421. (eval $ac_compile) 2>&5
  14422. ac_status=$?
  14423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14424. test $ac_status = 0; } 2>conftest.err; then
  14425. soname=conftest
  14426. lib=conftest
  14427. libobjs=conftest.$ac_objext
  14428. deplibs=
  14429. wl=$lt_prog_compiler_wl_CXX
  14430. pic_flag=$lt_prog_compiler_pic_CXX
  14431. compiler_flags=-v
  14432. linker_flags=-v
  14433. verstring=
  14434. output_objdir=.
  14435. libname=conftest
  14436. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14437. allow_undefined_flag_CXX=
  14438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14439. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14440. ac_status=$?
  14441. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14442. test $ac_status = 0; }
  14443. then
  14444. lt_cv_archive_cmds_need_lc_CXX=no
  14445. else
  14446. lt_cv_archive_cmds_need_lc_CXX=yes
  14447. fi
  14448. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14449. else
  14450. cat conftest.err 1>&5
  14451. fi
  14452. $RM conftest*
  14453. fi
  14454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14455. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14456. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14457. ;;
  14458. esac
  14459. fi
  14460. ;;
  14461. esac
  14462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14463. printf %s "checking dynamic linker characteristics... " >&6; }
  14464. library_names_spec=
  14465. libname_spec='lib$name'
  14466. soname_spec=
  14467. shrext_cmds=.so
  14468. postinstall_cmds=
  14469. postuninstall_cmds=
  14470. finish_cmds=
  14471. finish_eval=
  14472. shlibpath_var=
  14473. shlibpath_overrides_runpath=unknown
  14474. version_type=none
  14475. dynamic_linker="$host_os ld.so"
  14476. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14477. need_lib_prefix=unknown
  14478. hardcode_into_libs=no
  14479. # when you set need_version to no, make sure it does not cause -set_version
  14480. # flags to be left without arguments
  14481. need_version=unknown
  14482. case $host_os in
  14483. aix3*)
  14484. version_type=linux # correct to gnu/linux during the next big refactor
  14485. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14486. shlibpath_var=LIBPATH
  14487. # AIX 3 has no versioning support, so we append a major version to the name.
  14488. soname_spec='$libname$release$shared_ext$major'
  14489. ;;
  14490. aix[4-9]*)
  14491. version_type=linux # correct to gnu/linux during the next big refactor
  14492. need_lib_prefix=no
  14493. need_version=no
  14494. hardcode_into_libs=yes
  14495. if test ia64 = "$host_cpu"; then
  14496. # AIX 5 supports IA64
  14497. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14498. shlibpath_var=LD_LIBRARY_PATH
  14499. else
  14500. # With GCC up to 2.95.x, collect2 would create an import file
  14501. # for dependence libraries. The import file would start with
  14502. # the line '#! .'. This would cause the generated library to
  14503. # depend on '.', always an invalid library. This was fixed in
  14504. # development snapshots of GCC prior to 3.0.
  14505. case $host_os in
  14506. aix4 | aix4.[01] | aix4.[01].*)
  14507. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14508. echo ' yes '
  14509. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14510. :
  14511. else
  14512. can_build_shared=no
  14513. fi
  14514. ;;
  14515. esac
  14516. # Using Import Files as archive members, it is possible to support
  14517. # filename-based versioning of shared library archives on AIX. While
  14518. # this would work for both with and without runtime linking, it will
  14519. # prevent static linking of such archives. So we do filename-based
  14520. # shared library versioning with .so extension only, which is used
  14521. # when both runtime linking and shared linking is enabled.
  14522. # Unfortunately, runtime linking may impact performance, so we do
  14523. # not want this to be the default eventually. Also, we use the
  14524. # versioned .so libs for executables only if there is the -brtl
  14525. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14526. # To allow for filename-based versioning support, we need to create
  14527. # libNAME.so.V as an archive file, containing:
  14528. # *) an Import File, referring to the versioned filename of the
  14529. # archive as well as the shared archive member, telling the
  14530. # bitwidth (32 or 64) of that shared object, and providing the
  14531. # list of exported symbols of that shared object, eventually
  14532. # decorated with the 'weak' keyword
  14533. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14534. # it being seen by the linker.
  14535. # At run time we better use the real file rather than another symlink,
  14536. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14537. case $with_aix_soname,$aix_use_runtimelinking in
  14538. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14539. # soname into executable. Probably we can add versioning support to
  14540. # collect2, so additional links can be useful in future.
  14541. aix,yes) # traditional libtool
  14542. dynamic_linker='AIX unversionable lib.so'
  14543. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14544. # instead of lib<name>.a to let people know that these are not
  14545. # typical AIX shared libraries.
  14546. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14547. ;;
  14548. aix,no) # traditional AIX only
  14549. dynamic_linker='AIX lib.a(lib.so.V)'
  14550. # We preserve .a as extension for shared libraries through AIX4.2
  14551. # and later when we are not doing run time linking.
  14552. library_names_spec='$libname$release.a $libname.a'
  14553. soname_spec='$libname$release$shared_ext$major'
  14554. ;;
  14555. svr4,*) # full svr4 only
  14556. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14557. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14558. # We do not specify a path in Import Files, so LIBPATH fires.
  14559. shlibpath_overrides_runpath=yes
  14560. ;;
  14561. *,yes) # both, prefer svr4
  14562. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14563. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14564. # unpreferred sharedlib libNAME.a needs extra handling
  14565. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  14566. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  14567. # We do not specify a path in Import Files, so LIBPATH fires.
  14568. shlibpath_overrides_runpath=yes
  14569. ;;
  14570. *,no) # both, prefer aix
  14571. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14572. library_names_spec='$libname$release.a $libname.a'
  14573. soname_spec='$libname$release$shared_ext$major'
  14574. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14575. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  14576. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  14577. ;;
  14578. esac
  14579. shlibpath_var=LIBPATH
  14580. fi
  14581. ;;
  14582. amigaos*)
  14583. case $host_cpu in
  14584. powerpc)
  14585. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14586. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14588. ;;
  14589. m68k)
  14590. library_names_spec='$libname.ixlibrary $libname.a'
  14591. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14592. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  14593. ;;
  14594. esac
  14595. ;;
  14596. beos*)
  14597. library_names_spec='$libname$shared_ext'
  14598. dynamic_linker="$host_os ld.so"
  14599. shlibpath_var=LIBRARY_PATH
  14600. ;;
  14601. bsdi[45]*)
  14602. version_type=linux # correct to gnu/linux during the next big refactor
  14603. need_version=no
  14604. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14605. soname_spec='$libname$release$shared_ext$major'
  14606. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14607. shlibpath_var=LD_LIBRARY_PATH
  14608. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14609. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14610. # the default ld.so.conf also contains /usr/contrib/lib and
  14611. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14612. # libtool to hard-code these into programs
  14613. ;;
  14614. cygwin* | mingw* | pw32* | cegcc*)
  14615. version_type=windows
  14616. shrext_cmds=.dll
  14617. need_version=no
  14618. need_lib_prefix=no
  14619. case $GCC,$cc_basename in
  14620. yes,*)
  14621. # gcc
  14622. library_names_spec='$libname.dll.a'
  14623. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14624. postinstall_cmds='base_file=`basename \$file`~
  14625. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14626. dldir=$destdir/`dirname \$dlpath`~
  14627. test -d \$dldir || mkdir -p \$dldir~
  14628. $install_prog $dir/$dlname \$dldir/$dlname~
  14629. chmod a+x \$dldir/$dlname~
  14630. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14631. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14632. fi'
  14633. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14634. dlpath=$dir/\$dldll~
  14635. $RM \$dlpath'
  14636. shlibpath_overrides_runpath=yes
  14637. case $host_os in
  14638. cygwin*)
  14639. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14640. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14641. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14642. ;;
  14643. mingw* | cegcc*)
  14644. # MinGW DLLs use traditional 'lib' prefix
  14645. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14646. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14647. ;;
  14648. pw32*)
  14649. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14650. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14651. ;;
  14652. esac
  14653. dynamic_linker='Win32 ld.exe'
  14654. ;;
  14655. *,cl*)
  14656. # Native MSVC
  14657. libname_spec='$name'
  14658. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14659. library_names_spec='$libname.dll.lib'
  14660. case $build_os in
  14661. mingw*)
  14662. sys_lib_search_path_spec=
  14663. lt_save_ifs=$IFS
  14664. IFS=';'
  14665. for lt_path in $LIB
  14666. do
  14667. IFS=$lt_save_ifs
  14668. # Let DOS variable expansion print the short 8.3 style file name.
  14669. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14670. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14671. done
  14672. IFS=$lt_save_ifs
  14673. # Convert to MSYS style.
  14674. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14675. ;;
  14676. cygwin*)
  14677. # Convert to unix form, then to dos form, then back to unix form
  14678. # but this time dos style (no spaces!) so that the unix form looks
  14679. # like /cygdrive/c/PROGRA~1:/cygdr...
  14680. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14681. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14682. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14683. ;;
  14684. *)
  14685. sys_lib_search_path_spec=$LIB
  14686. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14687. # It is most probably a Windows format PATH.
  14688. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14689. else
  14690. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14691. fi
  14692. # FIXME: find the short name or the path components, as spaces are
  14693. # common. (e.g. "Program Files" -> "PROGRA~1")
  14694. ;;
  14695. esac
  14696. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14697. postinstall_cmds='base_file=`basename \$file`~
  14698. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14699. dldir=$destdir/`dirname \$dlpath`~
  14700. test -d \$dldir || mkdir -p \$dldir~
  14701. $install_prog $dir/$dlname \$dldir/$dlname'
  14702. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14703. dlpath=$dir/\$dldll~
  14704. $RM \$dlpath'
  14705. shlibpath_overrides_runpath=yes
  14706. dynamic_linker='Win32 link.exe'
  14707. ;;
  14708. *)
  14709. # Assume MSVC wrapper
  14710. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14711. dynamic_linker='Win32 ld.exe'
  14712. ;;
  14713. esac
  14714. # FIXME: first we should search . and the directory the executable is in
  14715. shlibpath_var=PATH
  14716. ;;
  14717. darwin* | rhapsody*)
  14718. dynamic_linker="$host_os dyld"
  14719. version_type=darwin
  14720. need_lib_prefix=no
  14721. need_version=no
  14722. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14723. soname_spec='$libname$release$major$shared_ext'
  14724. shlibpath_overrides_runpath=yes
  14725. shlibpath_var=DYLD_LIBRARY_PATH
  14726. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14727. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14728. ;;
  14729. dgux*)
  14730. version_type=linux # correct to gnu/linux during the next big refactor
  14731. need_lib_prefix=no
  14732. need_version=no
  14733. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14734. soname_spec='$libname$release$shared_ext$major'
  14735. shlibpath_var=LD_LIBRARY_PATH
  14736. ;;
  14737. freebsd* | dragonfly* | midnightbsd*)
  14738. # DragonFly does not have aout. When/if they implement a new
  14739. # versioning mechanism, adjust this.
  14740. if test -x /usr/bin/objformat; then
  14741. objformat=`/usr/bin/objformat`
  14742. else
  14743. case $host_os in
  14744. freebsd[23].*) objformat=aout ;;
  14745. *) objformat=elf ;;
  14746. esac
  14747. fi
  14748. version_type=freebsd-$objformat
  14749. case $version_type in
  14750. freebsd-elf*)
  14751. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14752. soname_spec='$libname$release$shared_ext$major'
  14753. need_version=no
  14754. need_lib_prefix=no
  14755. ;;
  14756. freebsd-*)
  14757. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14758. need_version=yes
  14759. ;;
  14760. esac
  14761. shlibpath_var=LD_LIBRARY_PATH
  14762. case $host_os in
  14763. freebsd2.*)
  14764. shlibpath_overrides_runpath=yes
  14765. ;;
  14766. freebsd3.[01]* | freebsdelf3.[01]*)
  14767. shlibpath_overrides_runpath=yes
  14768. hardcode_into_libs=yes
  14769. ;;
  14770. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14771. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14772. shlibpath_overrides_runpath=no
  14773. hardcode_into_libs=yes
  14774. ;;
  14775. *) # from 4.6 on, and DragonFly
  14776. shlibpath_overrides_runpath=yes
  14777. hardcode_into_libs=yes
  14778. ;;
  14779. esac
  14780. ;;
  14781. haiku*)
  14782. version_type=linux # correct to gnu/linux during the next big refactor
  14783. need_lib_prefix=no
  14784. need_version=no
  14785. dynamic_linker="$host_os runtime_loader"
  14786. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14787. soname_spec='$libname$release$shared_ext$major'
  14788. shlibpath_var=LIBRARY_PATH
  14789. shlibpath_overrides_runpath=no
  14790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14791. hardcode_into_libs=yes
  14792. ;;
  14793. hpux9* | hpux10* | hpux11*)
  14794. # Give a soname corresponding to the major version so that dld.sl refuses to
  14795. # link against other versions.
  14796. version_type=sunos
  14797. need_lib_prefix=no
  14798. need_version=no
  14799. case $host_cpu in
  14800. ia64*)
  14801. shrext_cmds='.so'
  14802. hardcode_into_libs=yes
  14803. dynamic_linker="$host_os dld.so"
  14804. shlibpath_var=LD_LIBRARY_PATH
  14805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14806. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14807. soname_spec='$libname$release$shared_ext$major'
  14808. if test 32 = "$HPUX_IA64_MODE"; then
  14809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14810. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14811. else
  14812. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14813. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14814. fi
  14815. ;;
  14816. hppa*64*)
  14817. shrext_cmds='.sl'
  14818. hardcode_into_libs=yes
  14819. dynamic_linker="$host_os dld.sl"
  14820. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14821. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14822. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14823. soname_spec='$libname$release$shared_ext$major'
  14824. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14826. ;;
  14827. *)
  14828. shrext_cmds='.sl'
  14829. dynamic_linker="$host_os dld.sl"
  14830. shlibpath_var=SHLIB_PATH
  14831. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14832. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14833. soname_spec='$libname$release$shared_ext$major'
  14834. ;;
  14835. esac
  14836. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14837. postinstall_cmds='chmod 555 $lib'
  14838. # or fails outright, so override atomically:
  14839. install_override_mode=555
  14840. ;;
  14841. interix[3-9]*)
  14842. version_type=linux # correct to gnu/linux during the next big refactor
  14843. need_lib_prefix=no
  14844. need_version=no
  14845. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14846. soname_spec='$libname$release$shared_ext$major'
  14847. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14848. shlibpath_var=LD_LIBRARY_PATH
  14849. shlibpath_overrides_runpath=no
  14850. hardcode_into_libs=yes
  14851. ;;
  14852. irix5* | irix6* | nonstopux*)
  14853. case $host_os in
  14854. nonstopux*) version_type=nonstopux ;;
  14855. *)
  14856. if test yes = "$lt_cv_prog_gnu_ld"; then
  14857. version_type=linux # correct to gnu/linux during the next big refactor
  14858. else
  14859. version_type=irix
  14860. fi ;;
  14861. esac
  14862. need_lib_prefix=no
  14863. need_version=no
  14864. soname_spec='$libname$release$shared_ext$major'
  14865. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14866. case $host_os in
  14867. irix5* | nonstopux*)
  14868. libsuff= shlibsuff=
  14869. ;;
  14870. *)
  14871. case $LD in # libtool.m4 will add one of these switches to LD
  14872. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14873. libsuff= shlibsuff= libmagic=32-bit;;
  14874. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14875. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14876. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14877. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14878. *) libsuff= shlibsuff= libmagic=never-match;;
  14879. esac
  14880. ;;
  14881. esac
  14882. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14883. shlibpath_overrides_runpath=no
  14884. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14885. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14886. hardcode_into_libs=yes
  14887. ;;
  14888. # No shared lib support for Linux oldld, aout, or coff.
  14889. linux*oldld* | linux*aout* | linux*coff*)
  14890. dynamic_linker=no
  14891. ;;
  14892. linux*android*)
  14893. version_type=none # Android doesn't support versioned libraries.
  14894. need_lib_prefix=no
  14895. need_version=no
  14896. library_names_spec='$libname$release$shared_ext'
  14897. soname_spec='$libname$release$shared_ext'
  14898. finish_cmds=
  14899. shlibpath_var=LD_LIBRARY_PATH
  14900. shlibpath_overrides_runpath=yes
  14901. # This implies no fast_install, which is unacceptable.
  14902. # Some rework will be needed to allow for fast_install
  14903. # before this can be enabled.
  14904. hardcode_into_libs=yes
  14905. dynamic_linker='Android linker'
  14906. # Don't embed -rpath directories since the linker doesn't support them.
  14907. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14908. ;;
  14909. # This must be glibc/ELF.
  14910. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14911. version_type=linux # correct to gnu/linux during the next big refactor
  14912. need_lib_prefix=no
  14913. need_version=no
  14914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14915. soname_spec='$libname$release$shared_ext$major'
  14916. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14917. shlibpath_var=LD_LIBRARY_PATH
  14918. shlibpath_overrides_runpath=no
  14919. # Some binutils ld are patched to set DT_RUNPATH
  14920. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14921. then :
  14922. printf %s "(cached) " >&6
  14923. else $as_nop
  14924. lt_cv_shlibpath_overrides_runpath=no
  14925. save_LDFLAGS=$LDFLAGS
  14926. save_libdir=$libdir
  14927. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14928. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14930. /* end confdefs.h. */
  14931. int
  14932. main (void)
  14933. {
  14934. ;
  14935. return 0;
  14936. }
  14937. _ACEOF
  14938. if ac_fn_cxx_try_link "$LINENO"
  14939. then :
  14940. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14941. then :
  14942. lt_cv_shlibpath_overrides_runpath=yes
  14943. fi
  14944. fi
  14945. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14946. conftest$ac_exeext conftest.$ac_ext
  14947. LDFLAGS=$save_LDFLAGS
  14948. libdir=$save_libdir
  14949. fi
  14950. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14951. # This implies no fast_install, which is unacceptable.
  14952. # Some rework will be needed to allow for fast_install
  14953. # before this can be enabled.
  14954. hardcode_into_libs=yes
  14955. # Add ABI-specific directories to the system library path.
  14956. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  14957. # Ideally, we could use ldconfig to report *all* directores which are
  14958. # searched for libraries, however this is still not possible. Aside from not
  14959. # being certain /sbin/ldconfig is available, command
  14960. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  14961. # even though it is searched at run-time. Try to do the best guess by
  14962. # appending ld.so.conf contents (and includes) to the search path.
  14963. if test -f /etc/ld.so.conf; then
  14964. 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' ' '`
  14965. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14966. fi
  14967. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14968. # powerpc, because MkLinux only supported shared libraries with the
  14969. # GNU dynamic linker. Since this was broken with cross compilers,
  14970. # most powerpc-linux boxes support dynamic linking these days and
  14971. # people can always --disable-shared, the test was removed, and we
  14972. # assume the GNU/Linux dynamic linker is in use.
  14973. dynamic_linker='GNU/Linux ld.so'
  14974. ;;
  14975. netbsd*)
  14976. version_type=sunos
  14977. need_lib_prefix=no
  14978. need_version=no
  14979. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14980. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14981. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14982. dynamic_linker='NetBSD (a.out) ld.so'
  14983. else
  14984. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14985. soname_spec='$libname$release$shared_ext$major'
  14986. dynamic_linker='NetBSD ld.elf_so'
  14987. fi
  14988. shlibpath_var=LD_LIBRARY_PATH
  14989. shlibpath_overrides_runpath=yes
  14990. hardcode_into_libs=yes
  14991. ;;
  14992. newsos6)
  14993. version_type=linux # correct to gnu/linux during the next big refactor
  14994. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14995. shlibpath_var=LD_LIBRARY_PATH
  14996. shlibpath_overrides_runpath=yes
  14997. ;;
  14998. *nto* | *qnx*)
  14999. version_type=qnx
  15000. need_lib_prefix=no
  15001. need_version=no
  15002. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15003. soname_spec='$libname$release$shared_ext$major'
  15004. shlibpath_var=LD_LIBRARY_PATH
  15005. shlibpath_overrides_runpath=no
  15006. hardcode_into_libs=yes
  15007. dynamic_linker='ldqnx.so'
  15008. ;;
  15009. openbsd* | bitrig*)
  15010. version_type=sunos
  15011. sys_lib_dlsearch_path_spec=/usr/lib
  15012. need_lib_prefix=no
  15013. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15014. need_version=no
  15015. else
  15016. need_version=yes
  15017. fi
  15018. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15020. shlibpath_var=LD_LIBRARY_PATH
  15021. shlibpath_overrides_runpath=yes
  15022. ;;
  15023. os2*)
  15024. libname_spec='$name'
  15025. shrext_cmds=.dll
  15026. need_lib_prefix=no
  15027. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15028. # SDL customization: removed versioning support.
  15029. # version_type=windows
  15030. # need_version=no
  15031. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15032. # v=$($ECHO $release$versuffix | tr -d .-);
  15033. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15034. # $ECHO $n$v`$shared_ext'
  15035. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15036. library_names_spec='${libname}_dll.$libext'
  15037. dynamic_linker='OS/2 ld.exe'
  15038. shlibpath_var=BEGINLIBPATH
  15039. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15040. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15041. postinstall_cmds='base_file=`basename \$file`~
  15042. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15043. dldir=$destdir/`dirname \$dlpath`~
  15044. test -d \$dldir || mkdir -p \$dldir~
  15045. $install_prog $dir/$dlname \$dldir/$dlname~
  15046. chmod a+x \$dldir/$dlname~
  15047. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15048. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15049. fi'
  15050. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15051. dlpath=$dir/\$dldll~
  15052. $RM \$dlpath'
  15053. ;;
  15054. osf3* | osf4* | osf5*)
  15055. version_type=osf
  15056. need_lib_prefix=no
  15057. need_version=no
  15058. soname_spec='$libname$release$shared_ext$major'
  15059. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15060. shlibpath_var=LD_LIBRARY_PATH
  15061. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15063. ;;
  15064. rdos*)
  15065. dynamic_linker=no
  15066. ;;
  15067. solaris*)
  15068. version_type=linux # correct to gnu/linux during the next big refactor
  15069. need_lib_prefix=no
  15070. need_version=no
  15071. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15072. soname_spec='$libname$release$shared_ext$major'
  15073. shlibpath_var=LD_LIBRARY_PATH
  15074. shlibpath_overrides_runpath=yes
  15075. hardcode_into_libs=yes
  15076. # ldd complains unless libraries are executable
  15077. postinstall_cmds='chmod +x $lib'
  15078. ;;
  15079. sunos4*)
  15080. version_type=sunos
  15081. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15082. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15083. shlibpath_var=LD_LIBRARY_PATH
  15084. shlibpath_overrides_runpath=yes
  15085. if test yes = "$with_gnu_ld"; then
  15086. need_lib_prefix=no
  15087. fi
  15088. need_version=yes
  15089. ;;
  15090. sysv4 | sysv4.3*)
  15091. version_type=linux # correct to gnu/linux during the next big refactor
  15092. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15093. soname_spec='$libname$release$shared_ext$major'
  15094. shlibpath_var=LD_LIBRARY_PATH
  15095. case $host_vendor in
  15096. sni)
  15097. shlibpath_overrides_runpath=no
  15098. need_lib_prefix=no
  15099. runpath_var=LD_RUN_PATH
  15100. ;;
  15101. siemens)
  15102. need_lib_prefix=no
  15103. ;;
  15104. motorola)
  15105. need_lib_prefix=no
  15106. need_version=no
  15107. shlibpath_overrides_runpath=no
  15108. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15109. ;;
  15110. esac
  15111. ;;
  15112. sysv4*MP*)
  15113. if test -d /usr/nec; then
  15114. version_type=linux # correct to gnu/linux during the next big refactor
  15115. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15116. soname_spec='$libname$shared_ext.$major'
  15117. shlibpath_var=LD_LIBRARY_PATH
  15118. fi
  15119. ;;
  15120. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15121. version_type=sco
  15122. need_lib_prefix=no
  15123. need_version=no
  15124. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15125. soname_spec='$libname$release$shared_ext$major'
  15126. shlibpath_var=LD_LIBRARY_PATH
  15127. shlibpath_overrides_runpath=yes
  15128. hardcode_into_libs=yes
  15129. if test yes = "$with_gnu_ld"; then
  15130. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15131. else
  15132. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15133. case $host_os in
  15134. sco3.2v5*)
  15135. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15136. ;;
  15137. esac
  15138. fi
  15139. sys_lib_dlsearch_path_spec='/usr/lib'
  15140. ;;
  15141. tpf*)
  15142. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15143. version_type=linux # correct to gnu/linux during the next big refactor
  15144. need_lib_prefix=no
  15145. need_version=no
  15146. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15147. shlibpath_var=LD_LIBRARY_PATH
  15148. shlibpath_overrides_runpath=no
  15149. hardcode_into_libs=yes
  15150. ;;
  15151. uts4*)
  15152. version_type=linux # correct to gnu/linux during the next big refactor
  15153. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15154. soname_spec='$libname$release$shared_ext$major'
  15155. shlibpath_var=LD_LIBRARY_PATH
  15156. ;;
  15157. *)
  15158. dynamic_linker=no
  15159. ;;
  15160. esac
  15161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15162. printf "%s\n" "$dynamic_linker" >&6; }
  15163. test no = "$dynamic_linker" && can_build_shared=no
  15164. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15165. if test yes = "$GCC"; then
  15166. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15167. fi
  15168. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15169. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15170. fi
  15171. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15172. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15173. fi
  15174. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15175. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15176. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15177. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15178. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15179. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15181. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15182. hardcode_action_CXX=
  15183. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15184. test -n "$runpath_var_CXX" ||
  15185. test yes = "$hardcode_automatic_CXX"; then
  15186. # We can hardcode non-existent directories.
  15187. if test no != "$hardcode_direct_CXX" &&
  15188. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15189. # have to relink, otherwise we might link with an installed library
  15190. # when we should be linking with a yet-to-be-installed one
  15191. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15192. test no != "$hardcode_minus_L_CXX"; then
  15193. # Linking always hardcodes the temporary library directory.
  15194. hardcode_action_CXX=relink
  15195. else
  15196. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15197. hardcode_action_CXX=immediate
  15198. fi
  15199. else
  15200. # We cannot hardcode anything, or else we can only hardcode existing
  15201. # directories.
  15202. hardcode_action_CXX=unsupported
  15203. fi
  15204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15205. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15206. if test relink = "$hardcode_action_CXX" ||
  15207. test yes = "$inherit_rpath_CXX"; then
  15208. # Fast installation is not supported
  15209. enable_fast_install=no
  15210. elif test yes = "$shlibpath_overrides_runpath" ||
  15211. test no = "$enable_shared"; then
  15212. # Fast installation is not necessary
  15213. enable_fast_install=needless
  15214. fi
  15215. fi # test -n "$compiler"
  15216. CC=$lt_save_CC
  15217. CFLAGS=$lt_save_CFLAGS
  15218. LDCXX=$LD
  15219. LD=$lt_save_LD
  15220. GCC=$lt_save_GCC
  15221. with_gnu_ld=$lt_save_with_gnu_ld
  15222. lt_cv_path_LDCXX=$lt_cv_path_LD
  15223. lt_cv_path_LD=$lt_save_path_LD
  15224. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15225. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15226. fi # test yes != "$_lt_caught_CXX_error"
  15227. ac_ext=c
  15228. ac_cpp='$CPP $CPPFLAGS'
  15229. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15230. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15231. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15233. printf %s "checking for egrep... " >&6; }
  15234. if test ${ac_cv_path_EGREP+y}
  15235. then :
  15236. printf %s "(cached) " >&6
  15237. else $as_nop
  15238. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15239. then ac_cv_path_EGREP="$GREP -E"
  15240. else
  15241. if test -z "$EGREP"; then
  15242. ac_path_EGREP_found=false
  15243. # Loop through the user's path and test for each of PROGNAME-LIST
  15244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15245. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15246. do
  15247. IFS=$as_save_IFS
  15248. case $as_dir in #(((
  15249. '') as_dir=./ ;;
  15250. */) ;;
  15251. *) as_dir=$as_dir/ ;;
  15252. esac
  15253. for ac_prog in egrep
  15254. do
  15255. for ac_exec_ext in '' $ac_executable_extensions; do
  15256. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15257. as_fn_executable_p "$ac_path_EGREP" || continue
  15258. # Check for GNU ac_path_EGREP and select it if it is found.
  15259. # Check for GNU $ac_path_EGREP
  15260. case `"$ac_path_EGREP" --version 2>&1` in
  15261. *GNU*)
  15262. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15263. *)
  15264. ac_count=0
  15265. printf %s 0123456789 >"conftest.in"
  15266. while :
  15267. do
  15268. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15269. mv "conftest.tmp" "conftest.in"
  15270. cp "conftest.in" "conftest.nl"
  15271. printf "%s\n" 'EGREP' >> "conftest.nl"
  15272. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15273. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15274. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15275. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15276. # Best one so far, save it but keep looking for a better one
  15277. ac_cv_path_EGREP="$ac_path_EGREP"
  15278. ac_path_EGREP_max=$ac_count
  15279. fi
  15280. # 10*(2^10) chars as input seems more than enough
  15281. test $ac_count -gt 10 && break
  15282. done
  15283. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15284. esac
  15285. $ac_path_EGREP_found && break 3
  15286. done
  15287. done
  15288. done
  15289. IFS=$as_save_IFS
  15290. if test -z "$ac_cv_path_EGREP"; then
  15291. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15292. fi
  15293. else
  15294. ac_cv_path_EGREP=$EGREP
  15295. fi
  15296. fi
  15297. fi
  15298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15299. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15300. EGREP="$ac_cv_path_EGREP"
  15301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  15302. printf %s "checking for fgrep... " >&6; }
  15303. if test ${ac_cv_path_FGREP+y}
  15304. then :
  15305. printf %s "(cached) " >&6
  15306. else $as_nop
  15307. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  15308. then ac_cv_path_FGREP="$GREP -F"
  15309. else
  15310. if test -z "$FGREP"; then
  15311. ac_path_FGREP_found=false
  15312. # Loop through the user's path and test for each of PROGNAME-LIST
  15313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15314. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15315. do
  15316. IFS=$as_save_IFS
  15317. case $as_dir in #(((
  15318. '') as_dir=./ ;;
  15319. */) ;;
  15320. *) as_dir=$as_dir/ ;;
  15321. esac
  15322. for ac_prog in fgrep
  15323. do
  15324. for ac_exec_ext in '' $ac_executable_extensions; do
  15325. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  15326. as_fn_executable_p "$ac_path_FGREP" || continue
  15327. # Check for GNU ac_path_FGREP and select it if it is found.
  15328. # Check for GNU $ac_path_FGREP
  15329. case `"$ac_path_FGREP" --version 2>&1` in
  15330. *GNU*)
  15331. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  15332. *)
  15333. ac_count=0
  15334. printf %s 0123456789 >"conftest.in"
  15335. while :
  15336. do
  15337. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15338. mv "conftest.tmp" "conftest.in"
  15339. cp "conftest.in" "conftest.nl"
  15340. printf "%s\n" 'FGREP' >> "conftest.nl"
  15341. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15342. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15343. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15344. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  15345. # Best one so far, save it but keep looking for a better one
  15346. ac_cv_path_FGREP="$ac_path_FGREP"
  15347. ac_path_FGREP_max=$ac_count
  15348. fi
  15349. # 10*(2^10) chars as input seems more than enough
  15350. test $ac_count -gt 10 && break
  15351. done
  15352. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15353. esac
  15354. $ac_path_FGREP_found && break 3
  15355. done
  15356. done
  15357. done
  15358. IFS=$as_save_IFS
  15359. if test -z "$ac_cv_path_FGREP"; then
  15360. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15361. fi
  15362. else
  15363. ac_cv_path_FGREP=$FGREP
  15364. fi
  15365. fi
  15366. fi
  15367. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  15368. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  15369. FGREP="$ac_cv_path_FGREP"
  15370. # Find a good install program. We prefer a C program (faster),
  15371. # so one script is as good as another. But avoid the broken or
  15372. # incompatible versions:
  15373. # SysV /etc/install, /usr/sbin/install
  15374. # SunOS /usr/etc/install
  15375. # IRIX /sbin/install
  15376. # AIX /bin/install
  15377. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15378. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15379. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15380. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15381. # OS/2's system install, which has a completely different semantic
  15382. # ./install, which can be erroneously created by make from ./install.sh.
  15383. # Reject install programs that cannot install multiple files.
  15384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15385. printf %s "checking for a BSD-compatible install... " >&6; }
  15386. if test -z "$INSTALL"; then
  15387. if test ${ac_cv_path_install+y}
  15388. then :
  15389. printf %s "(cached) " >&6
  15390. else $as_nop
  15391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15392. for as_dir in $PATH
  15393. do
  15394. IFS=$as_save_IFS
  15395. case $as_dir in #(((
  15396. '') as_dir=./ ;;
  15397. */) ;;
  15398. *) as_dir=$as_dir/ ;;
  15399. esac
  15400. # Account for fact that we put trailing slashes in our PATH walk.
  15401. case $as_dir in #((
  15402. ./ | /[cC]/* | \
  15403. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15404. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15405. /usr/ucb/* ) ;;
  15406. *)
  15407. # OSF1 and SCO ODT 3.0 have their own names for install.
  15408. # Don't use installbsd from OSF since it installs stuff as root
  15409. # by default.
  15410. for ac_prog in ginstall scoinst install; do
  15411. for ac_exec_ext in '' $ac_executable_extensions; do
  15412. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15413. if test $ac_prog = install &&
  15414. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15415. # AIX install. It has an incompatible calling convention.
  15416. :
  15417. elif test $ac_prog = install &&
  15418. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15419. # program-specific install script used by HP pwplus--don't use.
  15420. :
  15421. else
  15422. rm -rf conftest.one conftest.two conftest.dir
  15423. echo one > conftest.one
  15424. echo two > conftest.two
  15425. mkdir conftest.dir
  15426. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15427. test -s conftest.one && test -s conftest.two &&
  15428. test -s conftest.dir/conftest.one &&
  15429. test -s conftest.dir/conftest.two
  15430. then
  15431. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15432. break 3
  15433. fi
  15434. fi
  15435. fi
  15436. done
  15437. done
  15438. ;;
  15439. esac
  15440. done
  15441. IFS=$as_save_IFS
  15442. rm -rf conftest.one conftest.two conftest.dir
  15443. fi
  15444. if test ${ac_cv_path_install+y}; then
  15445. INSTALL=$ac_cv_path_install
  15446. else
  15447. # As a last resort, use the slow shell script. Don't cache a
  15448. # value for INSTALL within a source directory, because that will
  15449. # break other packages using the cache if that directory is
  15450. # removed, or if the value is a relative name.
  15451. INSTALL=$ac_install_sh
  15452. fi
  15453. fi
  15454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15455. printf "%s\n" "$INSTALL" >&6; }
  15456. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15457. # It thinks the first close brace ends the variable substitution.
  15458. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15459. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15460. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15462. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15463. set x ${MAKE-make}
  15464. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15465. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15466. then :
  15467. printf %s "(cached) " >&6
  15468. else $as_nop
  15469. cat >conftest.make <<\_ACEOF
  15470. SHELL = /bin/sh
  15471. all:
  15472. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15473. _ACEOF
  15474. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15475. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15476. *@@@%%%=?*=@@@%%%*)
  15477. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15478. *)
  15479. eval ac_cv_prog_make_${ac_make}_set=no;;
  15480. esac
  15481. rm -f conftest.make
  15482. fi
  15483. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15485. printf "%s\n" "yes" >&6; }
  15486. SET_MAKE=
  15487. else
  15488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15489. printf "%s\n" "no" >&6; }
  15490. SET_MAKE="MAKE=${MAKE-make}"
  15491. fi
  15492. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15493. if test -n "$ac_tool_prefix"; then
  15494. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15495. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15497. printf %s "checking for $ac_word... " >&6; }
  15498. if test ${ac_cv_path_PKG_CONFIG+y}
  15499. then :
  15500. printf %s "(cached) " >&6
  15501. else $as_nop
  15502. case $PKG_CONFIG in
  15503. [\\/]* | ?:[\\/]*)
  15504. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15505. ;;
  15506. *)
  15507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15508. for as_dir in $PATH
  15509. do
  15510. IFS=$as_save_IFS
  15511. case $as_dir in #(((
  15512. '') as_dir=./ ;;
  15513. */) ;;
  15514. *) as_dir=$as_dir/ ;;
  15515. esac
  15516. for ac_exec_ext in '' $ac_executable_extensions; do
  15517. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15518. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15520. break 2
  15521. fi
  15522. done
  15523. done
  15524. IFS=$as_save_IFS
  15525. ;;
  15526. esac
  15527. fi
  15528. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15529. if test -n "$PKG_CONFIG"; then
  15530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15531. printf "%s\n" "$PKG_CONFIG" >&6; }
  15532. else
  15533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15534. printf "%s\n" "no" >&6; }
  15535. fi
  15536. fi
  15537. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15538. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15539. # Extract the first word of "pkg-config", so it can be a program name with args.
  15540. set dummy pkg-config; ac_word=$2
  15541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15542. printf %s "checking for $ac_word... " >&6; }
  15543. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15544. then :
  15545. printf %s "(cached) " >&6
  15546. else $as_nop
  15547. case $ac_pt_PKG_CONFIG in
  15548. [\\/]* | ?:[\\/]*)
  15549. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15550. ;;
  15551. *)
  15552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15553. for as_dir in $PATH
  15554. do
  15555. IFS=$as_save_IFS
  15556. case $as_dir in #(((
  15557. '') as_dir=./ ;;
  15558. */) ;;
  15559. *) as_dir=$as_dir/ ;;
  15560. esac
  15561. for ac_exec_ext in '' $ac_executable_extensions; do
  15562. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15563. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15564. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15565. break 2
  15566. fi
  15567. done
  15568. done
  15569. IFS=$as_save_IFS
  15570. ;;
  15571. esac
  15572. fi
  15573. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15574. if test -n "$ac_pt_PKG_CONFIG"; then
  15575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15576. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15577. else
  15578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15579. printf "%s\n" "no" >&6; }
  15580. fi
  15581. if test "x$ac_pt_PKG_CONFIG" = x; then
  15582. PKG_CONFIG=""
  15583. else
  15584. case $cross_compiling:$ac_tool_warned in
  15585. yes:)
  15586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15587. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15588. ac_tool_warned=yes ;;
  15589. esac
  15590. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15591. fi
  15592. else
  15593. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15594. fi
  15595. fi
  15596. if test -n "$PKG_CONFIG"; then
  15597. _pkg_min_version=0.9.0
  15598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15599. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15600. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15602. printf "%s\n" "yes" >&6; }
  15603. else
  15604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15605. printf "%s\n" "no" >&6; }
  15606. PKG_CONFIG=""
  15607. fi
  15608. fi
  15609. if test -z "$AWK" ; then
  15610. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15611. fi
  15612. for ac_prog in gsort sort
  15613. do
  15614. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15615. set dummy $ac_prog; ac_word=$2
  15616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15617. printf %s "checking for $ac_word... " >&6; }
  15618. if test ${ac_cv_prog_SORT+y}
  15619. then :
  15620. printf %s "(cached) " >&6
  15621. else $as_nop
  15622. if test -n "$SORT"; then
  15623. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15624. else
  15625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15626. for as_dir in $PATH
  15627. do
  15628. IFS=$as_save_IFS
  15629. case $as_dir in #(((
  15630. '') as_dir=./ ;;
  15631. */) ;;
  15632. *) as_dir=$as_dir/ ;;
  15633. esac
  15634. for ac_exec_ext in '' $ac_executable_extensions; do
  15635. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15636. ac_cv_prog_SORT="$ac_prog"
  15637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15638. break 2
  15639. fi
  15640. done
  15641. done
  15642. IFS=$as_save_IFS
  15643. fi
  15644. fi
  15645. SORT=$ac_cv_prog_SORT
  15646. if test -n "$SORT"; then
  15647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15648. printf "%s\n" "$SORT" >&6; }
  15649. else
  15650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15651. printf "%s\n" "no" >&6; }
  15652. fi
  15653. test -n "$SORT" && break
  15654. done
  15655. test -n "$SORT" || SORT="false"
  15656. if ! "$SORT" -V </dev/null >/dev/null
  15657. then :
  15658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15659. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15660. fi
  15661. # Check whether --enable-largefile was given.
  15662. if test ${enable_largefile+y}
  15663. then :
  15664. enableval=$enable_largefile;
  15665. fi
  15666. if test "$enable_largefile" != no; then
  15667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15668. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15669. if test ${ac_cv_sys_largefile_CC+y}
  15670. then :
  15671. printf %s "(cached) " >&6
  15672. else $as_nop
  15673. ac_cv_sys_largefile_CC=no
  15674. if test "$GCC" != yes; then
  15675. ac_save_CC=$CC
  15676. while :; do
  15677. # IRIX 6.2 and later do not support large files by default,
  15678. # so use the C compiler's -n32 option if that helps.
  15679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15680. /* end confdefs.h. */
  15681. #include <sys/types.h>
  15682. /* Check that off_t can represent 2**63 - 1 correctly.
  15683. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15684. since some C++ compilers masquerading as C compilers
  15685. incorrectly reject 9223372036854775807. */
  15686. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15687. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15688. && LARGE_OFF_T % 2147483647 == 1)
  15689. ? 1 : -1];
  15690. int
  15691. main (void)
  15692. {
  15693. ;
  15694. return 0;
  15695. }
  15696. _ACEOF
  15697. if ac_fn_c_try_compile "$LINENO"
  15698. then :
  15699. break
  15700. fi
  15701. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15702. CC="$CC -n32"
  15703. if ac_fn_c_try_compile "$LINENO"
  15704. then :
  15705. ac_cv_sys_largefile_CC=' -n32'; break
  15706. fi
  15707. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15708. break
  15709. done
  15710. CC=$ac_save_CC
  15711. rm -f conftest.$ac_ext
  15712. fi
  15713. fi
  15714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15715. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15716. if test "$ac_cv_sys_largefile_CC" != no; then
  15717. CC=$CC$ac_cv_sys_largefile_CC
  15718. fi
  15719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15720. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15721. if test ${ac_cv_sys_file_offset_bits+y}
  15722. then :
  15723. printf %s "(cached) " >&6
  15724. else $as_nop
  15725. while :; do
  15726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15727. /* end confdefs.h. */
  15728. #include <sys/types.h>
  15729. /* Check that off_t can represent 2**63 - 1 correctly.
  15730. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15731. since some C++ compilers masquerading as C compilers
  15732. incorrectly reject 9223372036854775807. */
  15733. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15734. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15735. && LARGE_OFF_T % 2147483647 == 1)
  15736. ? 1 : -1];
  15737. int
  15738. main (void)
  15739. {
  15740. ;
  15741. return 0;
  15742. }
  15743. _ACEOF
  15744. if ac_fn_c_try_compile "$LINENO"
  15745. then :
  15746. ac_cv_sys_file_offset_bits=no; break
  15747. fi
  15748. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15750. /* end confdefs.h. */
  15751. #define _FILE_OFFSET_BITS 64
  15752. #include <sys/types.h>
  15753. /* Check that off_t can represent 2**63 - 1 correctly.
  15754. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15755. since some C++ compilers masquerading as C compilers
  15756. incorrectly reject 9223372036854775807. */
  15757. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15758. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15759. && LARGE_OFF_T % 2147483647 == 1)
  15760. ? 1 : -1];
  15761. int
  15762. main (void)
  15763. {
  15764. ;
  15765. return 0;
  15766. }
  15767. _ACEOF
  15768. if ac_fn_c_try_compile "$LINENO"
  15769. then :
  15770. ac_cv_sys_file_offset_bits=64; break
  15771. fi
  15772. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15773. ac_cv_sys_file_offset_bits=unknown
  15774. break
  15775. done
  15776. fi
  15777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15778. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15779. case $ac_cv_sys_file_offset_bits in #(
  15780. no | unknown) ;;
  15781. *)
  15782. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15783. ;;
  15784. esac
  15785. rm -rf conftest*
  15786. if test $ac_cv_sys_file_offset_bits = unknown; then
  15787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15788. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15789. if test ${ac_cv_sys_large_files+y}
  15790. then :
  15791. printf %s "(cached) " >&6
  15792. else $as_nop
  15793. while :; do
  15794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15795. /* end confdefs.h. */
  15796. #include <sys/types.h>
  15797. /* Check that off_t can represent 2**63 - 1 correctly.
  15798. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15799. since some C++ compilers masquerading as C compilers
  15800. incorrectly reject 9223372036854775807. */
  15801. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15802. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15803. && LARGE_OFF_T % 2147483647 == 1)
  15804. ? 1 : -1];
  15805. int
  15806. main (void)
  15807. {
  15808. ;
  15809. return 0;
  15810. }
  15811. _ACEOF
  15812. if ac_fn_c_try_compile "$LINENO"
  15813. then :
  15814. ac_cv_sys_large_files=no; break
  15815. fi
  15816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15818. /* end confdefs.h. */
  15819. #define _LARGE_FILES 1
  15820. #include <sys/types.h>
  15821. /* Check that off_t can represent 2**63 - 1 correctly.
  15822. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15823. since some C++ compilers masquerading as C compilers
  15824. incorrectly reject 9223372036854775807. */
  15825. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15826. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15827. && LARGE_OFF_T % 2147483647 == 1)
  15828. ? 1 : -1];
  15829. int
  15830. main (void)
  15831. {
  15832. ;
  15833. return 0;
  15834. }
  15835. _ACEOF
  15836. if ac_fn_c_try_compile "$LINENO"
  15837. then :
  15838. ac_cv_sys_large_files=1; break
  15839. fi
  15840. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15841. ac_cv_sys_large_files=unknown
  15842. break
  15843. done
  15844. fi
  15845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15846. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15847. case $ac_cv_sys_large_files in #(
  15848. no | unknown) ;;
  15849. *)
  15850. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15851. ;;
  15852. esac
  15853. rm -rf conftest*
  15854. fi
  15855. fi
  15856. case "$host" in
  15857. *-*-mingw*)
  15858. # Except on msys, where make can't handle full pathnames (bug 1972)
  15859. ;;
  15860. *)
  15861. srcdir=`cd $srcdir && pwd`
  15862. ;;
  15863. esac
  15864. INCLUDE="-I$srcdir/include"
  15865. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15866. case "$host" in
  15867. *-*-haiku*)
  15868. LINKER='$(CXX)'
  15869. LIBTOOLLINKERTAG='CXX'
  15870. ;;
  15871. *)
  15872. LINKER='$(CC)'
  15873. LIBTOOLLINKERTAG='CC'
  15874. ;;
  15875. esac
  15876. if test x$srcdir != x.; then
  15877. INCLUDE="-Iinclude $INCLUDE"
  15878. elif test -d .git; then
  15879. as_fn_error $? "
  15880. *** When building from a git clone you should configure and build in a
  15881. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15882. " "$LINENO" 5
  15883. fi
  15884. BASE_CFLAGS=""
  15885. BASE_LDFLAGS=""
  15886. case "$host" in
  15887. *-*-cygwin*)
  15888. # We build SDL on cygwin without the UNIX emulation layer
  15889. save_CFLAGS="$CFLAGS"
  15890. have_no_cygwin=no
  15891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15892. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15893. CFLAGS="$save_CFLAGS -mno-cygwin"
  15894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15895. /* end confdefs.h. */
  15896. int
  15897. main (void)
  15898. {
  15899. ;
  15900. return 0;
  15901. }
  15902. _ACEOF
  15903. if ac_fn_c_try_compile "$LINENO"
  15904. then :
  15905. have_no_cygwin=yes
  15906. fi
  15907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15909. printf "%s\n" "$have_no_cygwin" >&6; }
  15910. CFLAGS="$save_CFLAGS"
  15911. if test x$have_no_cygwin = xyes; then
  15912. BASE_CFLAGS="-mno-cygwin"
  15913. BASE_LDFLAGS="-mno-cygwin"
  15914. fi
  15915. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15916. ;;
  15917. esac
  15918. # Uncomment the following line if you want to force SDL and applications
  15919. # built with it to be compiled for a particular architecture.
  15920. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15921. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15922. # The default optimization for SDL is -O3 (Bug #31)
  15923. if test "x$orig_CFLAGS" = x; then
  15924. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15925. fi
  15926. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15927. BUILD_LDFLAGS="$LDFLAGS"
  15928. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15929. ## These are common directories to find software packages
  15930. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15931. # if test -d $path/include; then
  15932. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15933. # fi
  15934. # if test -d $path/lib; then
  15935. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15936. # fi
  15937. #done
  15938. SDL_CFLAGS="$BASE_CFLAGS"
  15939. SDL_LIBS="-lSDL3"
  15940. if test "x$BASE_LDFLAGS" != x; then
  15941. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15942. fi
  15943. if test "x$EXTRA_CFLAGS" != x; then
  15944. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15945. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15946. fi
  15947. if test "x$EXTRA_LDFLAGS" != x; then
  15948. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15949. fi
  15950. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15951. find_lib()
  15952. {
  15953. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | $FGREP programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15954. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | $FGREP libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15955. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15956. if test "$cross_compiling" = yes; then
  15957. host_lib_path=""
  15958. else
  15959. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15960. fi
  15961. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15962. lib=`ls -- $path/$1 2>/dev/null | sed 's,.*/,,' | "$SORT" -V -r | $AWK 'BEGIN{FS="."}{ print NF, $0 }' | "$SORT" -n -s | sed 's,[0-9]* ,,' | head -1`
  15963. if test x$lib != x; then
  15964. echo $lib
  15965. return
  15966. fi
  15967. done
  15968. }
  15969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15970. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15971. if test ${ac_cv_c_const+y}
  15972. then :
  15973. printf %s "(cached) " >&6
  15974. else $as_nop
  15975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15976. /* end confdefs.h. */
  15977. int
  15978. main (void)
  15979. {
  15980. #ifndef __cplusplus
  15981. /* Ultrix mips cc rejects this sort of thing. */
  15982. typedef int charset[2];
  15983. const charset cs = { 0, 0 };
  15984. /* SunOS 4.1.1 cc rejects this. */
  15985. char const *const *pcpcc;
  15986. char **ppc;
  15987. /* NEC SVR4.0.2 mips cc rejects this. */
  15988. struct point {int x, y;};
  15989. static struct point const zero = {0,0};
  15990. /* IBM XL C 1.02.0.0 rejects this.
  15991. It does not let you subtract one const X* pointer from another in
  15992. an arm of an if-expression whose if-part is not a constant
  15993. expression */
  15994. const char *g = "string";
  15995. pcpcc = &g + (g ? g-g : 0);
  15996. /* HPUX 7.0 cc rejects these. */
  15997. ++pcpcc;
  15998. ppc = (char**) pcpcc;
  15999. pcpcc = (char const *const *) ppc;
  16000. { /* SCO 3.2v4 cc rejects this sort of thing. */
  16001. char tx;
  16002. char *t = &tx;
  16003. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16004. *t++ = 0;
  16005. if (s) return 0;
  16006. }
  16007. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16008. int x[] = {25, 17};
  16009. const int *foo = &x[0];
  16010. ++foo;
  16011. }
  16012. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16013. typedef const int *iptr;
  16014. iptr p = 0;
  16015. ++p;
  16016. }
  16017. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16018. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16019. struct s { int j; const int *ap[3]; } bx;
  16020. struct s *b = &bx; b->j = 5;
  16021. }
  16022. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16023. const int foo = 10;
  16024. if (!foo) return 0;
  16025. }
  16026. return !cs[0] && !zero.x;
  16027. #endif
  16028. ;
  16029. return 0;
  16030. }
  16031. _ACEOF
  16032. if ac_fn_c_try_compile "$LINENO"
  16033. then :
  16034. ac_cv_c_const=yes
  16035. else $as_nop
  16036. ac_cv_c_const=no
  16037. fi
  16038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16039. fi
  16040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16041. printf "%s\n" "$ac_cv_c_const" >&6; }
  16042. if test $ac_cv_c_const = no; then
  16043. printf "%s\n" "#define const /**/" >>confdefs.h
  16044. fi
  16045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16046. printf %s "checking for inline... " >&6; }
  16047. if test ${ac_cv_c_inline+y}
  16048. then :
  16049. printf %s "(cached) " >&6
  16050. else $as_nop
  16051. ac_cv_c_inline=no
  16052. for ac_kw in inline __inline__ __inline; do
  16053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16054. /* end confdefs.h. */
  16055. #ifndef __cplusplus
  16056. typedef int foo_t;
  16057. static $ac_kw foo_t static_foo (void) {return 0; }
  16058. $ac_kw foo_t foo (void) {return 0; }
  16059. #endif
  16060. _ACEOF
  16061. if ac_fn_c_try_compile "$LINENO"
  16062. then :
  16063. ac_cv_c_inline=$ac_kw
  16064. fi
  16065. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16066. test "$ac_cv_c_inline" != no && break
  16067. done
  16068. fi
  16069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16070. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16071. case $ac_cv_c_inline in
  16072. inline | yes) ;;
  16073. *)
  16074. case $ac_cv_c_inline in
  16075. no) ac_val=;;
  16076. *) ac_val=$ac_cv_c_inline;;
  16077. esac
  16078. cat >>confdefs.h <<_ACEOF
  16079. #ifndef __cplusplus
  16080. #define inline $ac_val
  16081. #endif
  16082. _ACEOF
  16083. ;;
  16084. esac
  16085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16086. printf %s "checking for working volatile... " >&6; }
  16087. if test ${ac_cv_c_volatile+y}
  16088. then :
  16089. printf %s "(cached) " >&6
  16090. else $as_nop
  16091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16092. /* end confdefs.h. */
  16093. int
  16094. main (void)
  16095. {
  16096. volatile int x;
  16097. int * volatile y = (int *) 0;
  16098. return !x && !y;
  16099. ;
  16100. return 0;
  16101. }
  16102. _ACEOF
  16103. if ac_fn_c_try_compile "$LINENO"
  16104. then :
  16105. ac_cv_c_volatile=yes
  16106. else $as_nop
  16107. ac_cv_c_volatile=no
  16108. fi
  16109. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16110. fi
  16111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16112. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16113. if test $ac_cv_c_volatile = no; then
  16114. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16115. fi
  16116. # Check whether --enable-assertions was given.
  16117. if test ${enable_assertions+y}
  16118. then :
  16119. enableval=$enable_assertions;
  16120. else $as_nop
  16121. enable_assertions=auto
  16122. fi
  16123. case "$enable_assertions" in
  16124. auto) # Use optimization settings to determine assertion level
  16125. ;;
  16126. disabled)
  16127. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16128. ;;
  16129. release)
  16130. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16131. ;;
  16132. enabled)
  16133. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16134. ;;
  16135. paranoid)
  16136. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16137. ;;
  16138. *)
  16139. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16140. ;;
  16141. esac
  16142. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BUILD_MAJOR_VERSION=$SDL_MAJOR_VERSION -DSDL_BUILD_MINOR_VERSION=$SDL_MINOR_VERSION -DSDL_BUILD_MICRO_VERSION=$SDL_MICRO_VERSION"
  16143. # Check whether --enable-dependency-tracking was given.
  16144. if test ${enable_dependency_tracking+y}
  16145. then :
  16146. enableval=$enable_dependency_tracking;
  16147. else $as_nop
  16148. enable_dependency_tracking=yes
  16149. fi
  16150. if test x$enable_dependency_tracking = xyes; then
  16151. have_gcc_mmd_mt=no
  16152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16153. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16155. /* end confdefs.h. */
  16156. #if !defined(__GNUC__) || __GNUC__ < 3
  16157. #error Dependency tracking requires GCC 3.0 or newer
  16158. #endif
  16159. int
  16160. main (void)
  16161. {
  16162. ;
  16163. return 0;
  16164. }
  16165. _ACEOF
  16166. if ac_fn_c_try_compile "$LINENO"
  16167. then :
  16168. have_gcc_mmd_mt=yes
  16169. fi
  16170. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16172. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16173. if test x$have_gcc_mmd_mt = xyes; then
  16174. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16175. fi
  16176. fi
  16177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16178. printf %s "checking for linker option --no-undefined... " >&6; }
  16179. have_no_undefined=no
  16180. case "$host" in
  16181. *-*-openbsd*)
  16182. ;;
  16183. *)
  16184. save_LDFLAGS="$LDFLAGS"
  16185. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16187. /* end confdefs.h. */
  16188. int
  16189. main (void)
  16190. {
  16191. ;
  16192. return 0;
  16193. }
  16194. _ACEOF
  16195. if ac_fn_c_try_link "$LINENO"
  16196. then :
  16197. have_no_undefined=yes
  16198. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16199. fi
  16200. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16201. conftest$ac_exeext conftest.$ac_ext
  16202. LDFLAGS="$save_LDFLAGS"
  16203. ;;
  16204. esac
  16205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16206. printf "%s\n" "$have_no_undefined" >&6; }
  16207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16208. printf %s "checking for linker option --dynamicbase... " >&6; }
  16209. have_dynamicbase=no
  16210. case "$host" in
  16211. *)
  16212. save_LDFLAGS="$LDFLAGS"
  16213. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16215. /* end confdefs.h. */
  16216. int
  16217. main (void)
  16218. {
  16219. ;
  16220. return 0;
  16221. }
  16222. _ACEOF
  16223. if ac_fn_c_try_link "$LINENO"
  16224. then :
  16225. have_dynamicbase=yes
  16226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16227. fi
  16228. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16229. conftest$ac_exeext conftest.$ac_ext
  16230. LDFLAGS="$save_LDFLAGS"
  16231. ;;
  16232. esac
  16233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16234. printf "%s\n" "$have_dynamicbase" >&6; }
  16235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16236. printf %s "checking for linker option --nxcompat... " >&6; }
  16237. have_nxcompat=no
  16238. case "$host" in
  16239. *)
  16240. save_LDFLAGS="$LDFLAGS"
  16241. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16243. /* end confdefs.h. */
  16244. int
  16245. main (void)
  16246. {
  16247. ;
  16248. return 0;
  16249. }
  16250. _ACEOF
  16251. if ac_fn_c_try_link "$LINENO"
  16252. then :
  16253. have_nxcompat=yes
  16254. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16255. fi
  16256. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16257. conftest$ac_exeext conftest.$ac_ext
  16258. LDFLAGS="$save_LDFLAGS"
  16259. ;;
  16260. esac
  16261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16262. printf "%s\n" "$have_nxcompat" >&6; }
  16263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16264. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16265. have_high_entropy_va=no
  16266. case "$host" in
  16267. *)
  16268. save_LDFLAGS="$LDFLAGS"
  16269. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16271. /* end confdefs.h. */
  16272. int
  16273. main (void)
  16274. {
  16275. ;
  16276. return 0;
  16277. }
  16278. _ACEOF
  16279. if ac_fn_c_try_link "$LINENO"
  16280. then :
  16281. have_high_entropy_va=yes
  16282. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16283. fi
  16284. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16285. conftest$ac_exeext conftest.$ac_ext
  16286. LDFLAGS="$save_LDFLAGS"
  16287. ;;
  16288. esac
  16289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16290. printf "%s\n" "$have_high_entropy_va" >&6; }
  16291. # Check whether --enable-libc was given.
  16292. if test ${enable_libc+y}
  16293. then :
  16294. enableval=$enable_libc;
  16295. else $as_nop
  16296. enable_libc=yes
  16297. fi
  16298. # Check whether --enable-system-iconv was given.
  16299. if test ${enable_system_iconv+y}
  16300. then :
  16301. enableval=$enable_system_iconv;
  16302. else $as_nop
  16303. enable_system_iconv=yes
  16304. fi
  16305. if test x$enable_libc = xyes; then
  16306. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16307. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16308. if test "x$ac_cv_header_sys_types_h" = xyes
  16309. then :
  16310. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16311. fi
  16312. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16313. if test "x$ac_cv_header_stdio_h" = xyes
  16314. then :
  16315. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16316. fi
  16317. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16318. if test "x$ac_cv_header_stdlib_h" = xyes
  16319. then :
  16320. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16321. fi
  16322. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16323. if test "x$ac_cv_header_stddef_h" = xyes
  16324. then :
  16325. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16326. fi
  16327. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16328. if test "x$ac_cv_header_stdarg_h" = xyes
  16329. then :
  16330. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16331. fi
  16332. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16333. if test "x$ac_cv_header_malloc_h" = xyes
  16334. then :
  16335. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16336. fi
  16337. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16338. if test "x$ac_cv_header_memory_h" = xyes
  16339. then :
  16340. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16341. fi
  16342. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16343. if test "x$ac_cv_header_string_h" = xyes
  16344. then :
  16345. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16346. fi
  16347. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16348. if test "x$ac_cv_header_strings_h" = xyes
  16349. then :
  16350. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16351. fi
  16352. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16353. if test "x$ac_cv_header_wchar_h" = xyes
  16354. then :
  16355. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16356. fi
  16357. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16358. if test "x$ac_cv_header_inttypes_h" = xyes
  16359. then :
  16360. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16361. fi
  16362. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16363. if test "x$ac_cv_header_stdint_h" = xyes
  16364. then :
  16365. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16366. fi
  16367. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16368. if test "x$ac_cv_header_limits_h" = xyes
  16369. then :
  16370. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16371. fi
  16372. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16373. if test "x$ac_cv_header_ctype_h" = xyes
  16374. then :
  16375. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16376. fi
  16377. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16378. if test "x$ac_cv_header_math_h" = xyes
  16379. then :
  16380. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16381. fi
  16382. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16383. if test "x$ac_cv_header_float_h" = xyes
  16384. then :
  16385. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16386. fi
  16387. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16388. if test "x$ac_cv_header_iconv_h" = xyes
  16389. then :
  16390. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16391. fi
  16392. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16393. if test "x$ac_cv_header_signal_h" = xyes
  16394. then :
  16395. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16396. fi
  16397. ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
  16398. if test "x$ac_cv_header_linux_input_h" = xyes
  16399. then :
  16400. printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
  16401. fi
  16402. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16403. if test "x$ac_cv_type_size_t" = xyes
  16404. then :
  16405. else $as_nop
  16406. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16407. fi
  16408. ac_ext=c
  16409. ac_cpp='$CPP $CPPFLAGS'
  16410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16414. printf %s "checking how to run the C preprocessor... " >&6; }
  16415. # On Suns, sometimes $CPP names a directory.
  16416. if test -n "$CPP" && test -d "$CPP"; then
  16417. CPP=
  16418. fi
  16419. if test -z "$CPP"; then
  16420. if test ${ac_cv_prog_CPP+y}
  16421. then :
  16422. printf %s "(cached) " >&6
  16423. else $as_nop
  16424. # Double quotes because $CC needs to be expanded
  16425. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16426. do
  16427. ac_preproc_ok=false
  16428. for ac_c_preproc_warn_flag in '' yes
  16429. do
  16430. # Use a header file that comes with gcc, so configuring glibc
  16431. # with a fresh cross-compiler works.
  16432. # On the NeXT, cc -E runs the code through the compiler's parser,
  16433. # not just through cpp. "Syntax error" is here to catch this case.
  16434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16435. /* end confdefs.h. */
  16436. #include <limits.h>
  16437. Syntax error
  16438. _ACEOF
  16439. if ac_fn_c_try_cpp "$LINENO"
  16440. then :
  16441. else $as_nop
  16442. # Broken: fails on valid input.
  16443. continue
  16444. fi
  16445. rm -f conftest.err conftest.i conftest.$ac_ext
  16446. # OK, works on sane cases. Now check whether nonexistent headers
  16447. # can be detected and how.
  16448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16449. /* end confdefs.h. */
  16450. #include <ac_nonexistent.h>
  16451. _ACEOF
  16452. if ac_fn_c_try_cpp "$LINENO"
  16453. then :
  16454. # Broken: success on invalid input.
  16455. continue
  16456. else $as_nop
  16457. # Passes both tests.
  16458. ac_preproc_ok=:
  16459. break
  16460. fi
  16461. rm -f conftest.err conftest.i conftest.$ac_ext
  16462. done
  16463. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16464. rm -f conftest.i conftest.err conftest.$ac_ext
  16465. if $ac_preproc_ok
  16466. then :
  16467. break
  16468. fi
  16469. done
  16470. ac_cv_prog_CPP=$CPP
  16471. fi
  16472. CPP=$ac_cv_prog_CPP
  16473. else
  16474. ac_cv_prog_CPP=$CPP
  16475. fi
  16476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16477. printf "%s\n" "$CPP" >&6; }
  16478. ac_preproc_ok=false
  16479. for ac_c_preproc_warn_flag in '' yes
  16480. do
  16481. # Use a header file that comes with gcc, so configuring glibc
  16482. # with a fresh cross-compiler works.
  16483. # On the NeXT, cc -E runs the code through the compiler's parser,
  16484. # not just through cpp. "Syntax error" is here to catch this case.
  16485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16486. /* end confdefs.h. */
  16487. #include <limits.h>
  16488. Syntax error
  16489. _ACEOF
  16490. if ac_fn_c_try_cpp "$LINENO"
  16491. then :
  16492. else $as_nop
  16493. # Broken: fails on valid input.
  16494. continue
  16495. fi
  16496. rm -f conftest.err conftest.i conftest.$ac_ext
  16497. # OK, works on sane cases. Now check whether nonexistent headers
  16498. # can be detected and how.
  16499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16500. /* end confdefs.h. */
  16501. #include <ac_nonexistent.h>
  16502. _ACEOF
  16503. if ac_fn_c_try_cpp "$LINENO"
  16504. then :
  16505. # Broken: success on invalid input.
  16506. continue
  16507. else $as_nop
  16508. # Passes both tests.
  16509. ac_preproc_ok=:
  16510. break
  16511. fi
  16512. rm -f conftest.err conftest.i conftest.$ac_ext
  16513. done
  16514. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16515. rm -f conftest.i conftest.err conftest.$ac_ext
  16516. if $ac_preproc_ok
  16517. then :
  16518. else $as_nop
  16519. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16520. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16521. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16522. See \`config.log' for more details" "$LINENO" 5; }
  16523. fi
  16524. ac_ext=c
  16525. ac_cpp='$CPP $CPPFLAGS'
  16526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16527. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16530. printf %s "checking for M_PI in math.h... " >&6; }
  16531. if test ${ac_cv_define_M_PI+y}
  16532. then :
  16533. printf %s "(cached) " >&6
  16534. else $as_nop
  16535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16536. /* end confdefs.h. */
  16537. #include <math.h>
  16538. #ifdef M_PI
  16539. YES_IS_DEFINED
  16540. #endif
  16541. _ACEOF
  16542. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16543. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16544. then :
  16545. ac_cv_define_M_PI=yes
  16546. else $as_nop
  16547. ac_cv_define_M_PI=no
  16548. fi
  16549. rm -rf conftest*
  16550. fi
  16551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16552. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16553. if test "$ac_cv_define_M_PI" = "yes" ; then
  16554. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16555. fi
  16556. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16557. # for constant arguments. Useless!
  16558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16559. printf %s "checking for working alloca.h... " >&6; }
  16560. if test ${ac_cv_working_alloca_h+y}
  16561. then :
  16562. printf %s "(cached) " >&6
  16563. else $as_nop
  16564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16565. /* end confdefs.h. */
  16566. #include <alloca.h>
  16567. int
  16568. main (void)
  16569. {
  16570. char *p = (char *) alloca (2 * sizeof (int));
  16571. if (p) return 0;
  16572. ;
  16573. return 0;
  16574. }
  16575. _ACEOF
  16576. if ac_fn_c_try_link "$LINENO"
  16577. then :
  16578. ac_cv_working_alloca_h=yes
  16579. else $as_nop
  16580. ac_cv_working_alloca_h=no
  16581. fi
  16582. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16583. conftest$ac_exeext conftest.$ac_ext
  16584. fi
  16585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16586. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16587. if test $ac_cv_working_alloca_h = yes; then
  16588. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16589. fi
  16590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16591. printf %s "checking for alloca... " >&6; }
  16592. if test ${ac_cv_func_alloca_works+y}
  16593. then :
  16594. printf %s "(cached) " >&6
  16595. else $as_nop
  16596. if test $ac_cv_working_alloca_h = yes; then
  16597. ac_cv_func_alloca_works=yes
  16598. else
  16599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16600. /* end confdefs.h. */
  16601. #include <stdlib.h>
  16602. #include <stddef.h>
  16603. #ifndef alloca
  16604. # ifdef __GNUC__
  16605. # define alloca __builtin_alloca
  16606. # elif defined _MSC_VER
  16607. # include <malloc.h>
  16608. # define alloca _alloca
  16609. # else
  16610. # ifdef __cplusplus
  16611. extern "C"
  16612. # endif
  16613. void *alloca (size_t);
  16614. # endif
  16615. #endif
  16616. int
  16617. main (void)
  16618. {
  16619. char *p = (char *) alloca (1);
  16620. if (p) return 0;
  16621. ;
  16622. return 0;
  16623. }
  16624. _ACEOF
  16625. if ac_fn_c_try_link "$LINENO"
  16626. then :
  16627. ac_cv_func_alloca_works=yes
  16628. else $as_nop
  16629. ac_cv_func_alloca_works=no
  16630. fi
  16631. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16632. conftest$ac_exeext conftest.$ac_ext
  16633. fi
  16634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16635. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16636. fi
  16637. if test $ac_cv_func_alloca_works = yes; then
  16638. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16639. else
  16640. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16641. # that cause trouble. Some versions do not even contain alloca or
  16642. # contain a buggy version. If you still want to use their alloca,
  16643. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16644. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16645. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16647. printf %s "checking stack direction for C alloca... " >&6; }
  16648. if test ${ac_cv_c_stack_direction+y}
  16649. then :
  16650. printf %s "(cached) " >&6
  16651. else $as_nop
  16652. if test "$cross_compiling" = yes
  16653. then :
  16654. ac_cv_c_stack_direction=0
  16655. else $as_nop
  16656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16657. /* end confdefs.h. */
  16658. $ac_includes_default
  16659. int
  16660. find_stack_direction (int *addr, int depth)
  16661. {
  16662. int dir, dummy = 0;
  16663. if (! addr)
  16664. addr = &dummy;
  16665. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16666. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16667. return dir + dummy;
  16668. }
  16669. int
  16670. main (int argc, char **argv)
  16671. {
  16672. return find_stack_direction (0, argc + !argv + 20) < 0;
  16673. }
  16674. _ACEOF
  16675. if ac_fn_c_try_run "$LINENO"
  16676. then :
  16677. ac_cv_c_stack_direction=1
  16678. else $as_nop
  16679. ac_cv_c_stack_direction=-1
  16680. fi
  16681. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16682. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16683. fi
  16684. fi
  16685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16686. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16687. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16688. fi
  16689. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16690. if test "x$ac_cv_func_mprotect" = xyes
  16691. then :
  16692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16693. /* end confdefs.h. */
  16694. #include <sys/types.h>
  16695. #include <sys/mman.h>
  16696. int
  16697. main (void)
  16698. {
  16699. ;
  16700. return 0;
  16701. }
  16702. _ACEOF
  16703. if ac_fn_c_try_compile "$LINENO"
  16704. then :
  16705. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16706. fi
  16707. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16708. fi
  16709. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16710. if test "x$ac_cv_func_malloc" = xyes
  16711. then :
  16712. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16713. fi
  16714. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16715. if test "x$ac_cv_func_calloc" = xyes
  16716. then :
  16717. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16718. fi
  16719. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16720. if test "x$ac_cv_func_realloc" = xyes
  16721. then :
  16722. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16723. fi
  16724. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16725. if test "x$ac_cv_func_free" = xyes
  16726. then :
  16727. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16728. fi
  16729. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16730. if test "x$ac_cv_func_getenv" = xyes
  16731. then :
  16732. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16733. fi
  16734. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16735. if test "x$ac_cv_func_setenv" = xyes
  16736. then :
  16737. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16738. fi
  16739. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16740. if test "x$ac_cv_func_putenv" = xyes
  16741. then :
  16742. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16743. fi
  16744. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16745. if test "x$ac_cv_func_unsetenv" = xyes
  16746. then :
  16747. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16748. fi
  16749. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16750. if test "x$ac_cv_func_bsearch" = xyes
  16751. then :
  16752. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16753. fi
  16754. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16755. if test "x$ac_cv_func_qsort" = xyes
  16756. then :
  16757. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16758. fi
  16759. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16760. if test "x$ac_cv_func_abs" = xyes
  16761. then :
  16762. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16763. fi
  16764. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16765. if test "x$ac_cv_func_bcopy" = xyes
  16766. then :
  16767. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16768. fi
  16769. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16770. if test "x$ac_cv_func_memset" = xyes
  16771. then :
  16772. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16773. fi
  16774. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16775. if test "x$ac_cv_func_memcmp" = xyes
  16776. then :
  16777. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16778. fi
  16779. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16780. if test "x$ac_cv_func_memcpy" = xyes
  16781. then :
  16782. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16783. fi
  16784. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16785. if test "x$ac_cv_func_memmove" = xyes
  16786. then :
  16787. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16788. fi
  16789. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16790. if test "x$ac_cv_func_wcslen" = xyes
  16791. then :
  16792. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16793. fi
  16794. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16795. if test "x$ac_cv_func_wcslcpy" = xyes
  16796. then :
  16797. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16798. fi
  16799. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16800. if test "x$ac_cv_func_wcslcat" = xyes
  16801. then :
  16802. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16803. fi
  16804. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16805. if test "x$ac_cv_func__wcsdup" = xyes
  16806. then :
  16807. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16808. fi
  16809. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16810. if test "x$ac_cv_func_wcsdup" = xyes
  16811. then :
  16812. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16813. fi
  16814. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16815. if test "x$ac_cv_func_wcsstr" = xyes
  16816. then :
  16817. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16820. if test "x$ac_cv_func_wcscmp" = xyes
  16821. then :
  16822. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16823. fi
  16824. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16825. if test "x$ac_cv_func_wcsncmp" = xyes
  16826. then :
  16827. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16828. fi
  16829. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16830. if test "x$ac_cv_func_wcscasecmp" = xyes
  16831. then :
  16832. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16833. fi
  16834. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16835. if test "x$ac_cv_func__wcsicmp" = xyes
  16836. then :
  16837. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16840. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16845. if test "x$ac_cv_func__wcsnicmp" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16850. if test "x$ac_cv_func_strlen" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16855. if test "x$ac_cv_func_strlcpy" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16860. if test "x$ac_cv_func_strlcat" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16865. if test "x$ac_cv_func__strrev" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16870. if test "x$ac_cv_func__strupr" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16875. if test "x$ac_cv_func__strlwr" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16880. if test "x$ac_cv_func_index" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16885. if test "x$ac_cv_func_rindex" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16890. if test "x$ac_cv_func_strchr" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16895. if test "x$ac_cv_func_strrchr" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16900. if test "x$ac_cv_func_strstr" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16905. if test "x$ac_cv_func_strtok_r" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16910. if test "x$ac_cv_func_itoa" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16915. if test "x$ac_cv_func__ltoa" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16920. if test "x$ac_cv_func__uitoa" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16925. if test "x$ac_cv_func__ultoa" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16930. if test "x$ac_cv_func_strtod" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16935. if test "x$ac_cv_func_strtol" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16940. if test "x$ac_cv_func_strtoul" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16945. if test "x$ac_cv_func__i64toa" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16950. if test "x$ac_cv_func__ui64toa" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16955. if test "x$ac_cv_func_strtoll" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16960. if test "x$ac_cv_func_strtoull" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16965. if test "x$ac_cv_func_atoi" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16970. if test "x$ac_cv_func_atof" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16975. if test "x$ac_cv_func_strcmp" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16980. if test "x$ac_cv_func_strncmp" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16985. if test "x$ac_cv_func__stricmp" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16990. if test "x$ac_cv_func_strcasecmp" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16995. if test "x$ac_cv_func__strnicmp" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  17000. if test "x$ac_cv_func_strncasecmp" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  17005. if test "x$ac_cv_func_strcasestr" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  17010. if test "x$ac_cv_func_vsscanf" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  17015. if test "x$ac_cv_func_vsnprintf" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  17020. if test "x$ac_cv_func_fopen64" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17025. if test "x$ac_cv_func_fseeko" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17030. if test "x$ac_cv_func_fseeko64" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17035. if test "x$ac_cv_func_sigaction" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17040. if test "x$ac_cv_func_setjmp" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17045. if test "x$ac_cv_func_nanosleep" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17050. if test "x$ac_cv_func_sysconf" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17053. fi
  17054. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17055. if test "x$ac_cv_func_sysctlbyname" = xyes
  17056. then :
  17057. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17058. fi
  17059. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17060. if test "x$ac_cv_func_getauxval" = xyes
  17061. then :
  17062. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17063. fi
  17064. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17065. if test "x$ac_cv_func_elf_aux_info" = xyes
  17066. then :
  17067. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17068. fi
  17069. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17070. if test "x$ac_cv_func_poll" = xyes
  17071. then :
  17072. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17073. fi
  17074. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17075. if test "x$ac_cv_func__Exit" = xyes
  17076. then :
  17077. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17078. fi
  17079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17080. printf %s "checking for pow in -lm... " >&6; }
  17081. if test ${ac_cv_lib_m_pow+y}
  17082. then :
  17083. printf %s "(cached) " >&6
  17084. else $as_nop
  17085. ac_check_lib_save_LIBS=$LIBS
  17086. LIBS="-lm $LIBS"
  17087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17088. /* end confdefs.h. */
  17089. /* Override any GCC internal prototype to avoid an error.
  17090. Use char because int might match the return type of a GCC
  17091. builtin and then its argument prototype would still apply. */
  17092. char pow ();
  17093. int
  17094. main (void)
  17095. {
  17096. return pow ();
  17097. ;
  17098. return 0;
  17099. }
  17100. _ACEOF
  17101. if ac_fn_c_try_link "$LINENO"
  17102. then :
  17103. ac_cv_lib_m_pow=yes
  17104. else $as_nop
  17105. ac_cv_lib_m_pow=no
  17106. fi
  17107. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17108. conftest$ac_exeext conftest.$ac_ext
  17109. LIBS=$ac_check_lib_save_LIBS
  17110. fi
  17111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17112. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17113. if test "x$ac_cv_lib_m_pow" = xyes
  17114. then :
  17115. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17118. if test "x$ac_cv_func_acos" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17123. if test "x$ac_cv_func_acosf" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17128. if test "x$ac_cv_func_asin" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17133. if test "x$ac_cv_func_asinf" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17138. if test "x$ac_cv_func_atan" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17143. if test "x$ac_cv_func_atanf" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17146. fi
  17147. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17148. if test "x$ac_cv_func_atan2" = xyes
  17149. then :
  17150. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17151. fi
  17152. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17153. if test "x$ac_cv_func_atan2f" = xyes
  17154. then :
  17155. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17156. fi
  17157. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17158. if test "x$ac_cv_func_ceil" = xyes
  17159. then :
  17160. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17161. fi
  17162. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17163. if test "x$ac_cv_func_ceilf" = xyes
  17164. then :
  17165. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17166. fi
  17167. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17168. if test "x$ac_cv_func_copysign" = xyes
  17169. then :
  17170. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17171. fi
  17172. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17173. if test "x$ac_cv_func_copysignf" = xyes
  17174. then :
  17175. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17178. if test "x$ac_cv_func_cos" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17183. if test "x$ac_cv_func_cosf" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17188. if test "x$ac_cv_func_exp" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17193. if test "x$ac_cv_func_expf" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17198. if test "x$ac_cv_func_fabs" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17201. fi
  17202. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17203. if test "x$ac_cv_func_fabsf" = xyes
  17204. then :
  17205. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17206. fi
  17207. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17208. if test "x$ac_cv_func_floor" = xyes
  17209. then :
  17210. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17211. fi
  17212. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17213. if test "x$ac_cv_func_floorf" = xyes
  17214. then :
  17215. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17216. fi
  17217. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17218. if test "x$ac_cv_func_trunc" = xyes
  17219. then :
  17220. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17221. fi
  17222. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17223. if test "x$ac_cv_func_truncf" = xyes
  17224. then :
  17225. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17226. fi
  17227. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17228. if test "x$ac_cv_func_fmod" = xyes
  17229. then :
  17230. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17233. if test "x$ac_cv_func_fmodf" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17238. if test "x$ac_cv_func_log" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17243. if test "x$ac_cv_func_logf" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17246. fi
  17247. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17248. if test "x$ac_cv_func_log10" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17251. fi
  17252. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17253. if test "x$ac_cv_func_log10f" = xyes
  17254. then :
  17255. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17258. if test "x$ac_cv_func_lround" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17263. if test "x$ac_cv_func_lroundf" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17268. if test "x$ac_cv_func_pow" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17273. if test "x$ac_cv_func_powf" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17278. if test "x$ac_cv_func_round" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17283. if test "x$ac_cv_func_roundf" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17288. if test "x$ac_cv_func_scalbn" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17293. if test "x$ac_cv_func_scalbnf" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17298. if test "x$ac_cv_func_sin" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17301. fi
  17302. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17303. if test "x$ac_cv_func_sinf" = xyes
  17304. then :
  17305. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17306. fi
  17307. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17308. if test "x$ac_cv_func_sqrt" = xyes
  17309. then :
  17310. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17311. fi
  17312. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17313. if test "x$ac_cv_func_sqrtf" = xyes
  17314. then :
  17315. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17316. fi
  17317. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17318. if test "x$ac_cv_func_tan" = xyes
  17319. then :
  17320. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17321. fi
  17322. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17323. if test "x$ac_cv_func_tanf" = xyes
  17324. then :
  17325. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17326. fi
  17327. if test x$enable_system_iconv = xyes; then
  17328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17329. printf %s "checking for iconv_open in -liconv... " >&6; }
  17330. if test ${ac_cv_lib_iconv_iconv_open+y}
  17331. then :
  17332. printf %s "(cached) " >&6
  17333. else $as_nop
  17334. ac_check_lib_save_LIBS=$LIBS
  17335. LIBS="-liconv $LIBS"
  17336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17337. /* end confdefs.h. */
  17338. /* Override any GCC internal prototype to avoid an error.
  17339. Use char because int might match the return type of a GCC
  17340. builtin and then its argument prototype would still apply. */
  17341. char iconv_open ();
  17342. int
  17343. main (void)
  17344. {
  17345. return iconv_open ();
  17346. ;
  17347. return 0;
  17348. }
  17349. _ACEOF
  17350. if ac_fn_c_try_link "$LINENO"
  17351. then :
  17352. ac_cv_lib_iconv_iconv_open=yes
  17353. else $as_nop
  17354. ac_cv_lib_iconv_iconv_open=no
  17355. fi
  17356. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17357. conftest$ac_exeext conftest.$ac_ext
  17358. LIBS=$ac_check_lib_save_LIBS
  17359. fi
  17360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17361. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17362. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17363. then :
  17364. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17365. fi
  17366. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17367. if test "x$ac_cv_func_iconv" = xyes
  17368. then :
  17369. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17370. fi
  17371. fi
  17372. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17373. "
  17374. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17375. then :
  17376. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17377. fi
  17378. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17379. if test "x$ac_cv_header_libunwind_h" = xyes
  17380. then :
  17381. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17382. fi
  17383. fi
  17384. # Check whether --enable-gcc-atomics was given.
  17385. if test ${enable_gcc_atomics+y}
  17386. then :
  17387. enableval=$enable_gcc_atomics;
  17388. else $as_nop
  17389. enable_gcc_atomics=yes
  17390. fi
  17391. if test x$enable_gcc_atomics = xyes; then
  17392. have_gcc_atomics=no
  17393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17394. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17396. /* end confdefs.h. */
  17397. int
  17398. main (void)
  17399. {
  17400. int a;
  17401. void *x, *y, *z;
  17402. __sync_lock_test_and_set(&a, 4);
  17403. __sync_lock_test_and_set(&x, y);
  17404. __sync_fetch_and_add(&a, 1);
  17405. __sync_bool_compare_and_swap(&a, 5, 10);
  17406. __sync_bool_compare_and_swap(&x, y, z);
  17407. ;
  17408. return 0;
  17409. }
  17410. _ACEOF
  17411. if ac_fn_c_try_link "$LINENO"
  17412. then :
  17413. have_gcc_atomics=yes
  17414. fi
  17415. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17416. conftest$ac_exeext conftest.$ac_ext
  17417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17418. printf "%s\n" "$have_gcc_atomics" >&6; }
  17419. if test x$have_gcc_atomics = xyes; then
  17420. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17421. else
  17422. # See if we have the minimum operation needed for GCC atomics
  17423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17424. /* end confdefs.h. */
  17425. int
  17426. main (void)
  17427. {
  17428. int a;
  17429. __sync_lock_test_and_set(&a, 1);
  17430. __sync_lock_release(&a);
  17431. ;
  17432. return 0;
  17433. }
  17434. _ACEOF
  17435. if ac_fn_c_try_link "$LINENO"
  17436. then :
  17437. have_gcc_sync_lock_test_and_set=yes
  17438. fi
  17439. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17440. conftest$ac_exeext conftest.$ac_ext
  17441. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17442. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17443. fi
  17444. fi
  17445. fi
  17446. # Standard C sources
  17447. SOURCES="$SOURCES $srcdir/src/*.c"
  17448. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17449. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17450. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17451. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17452. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17453. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17454. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17455. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17456. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17457. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17458. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17459. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17460. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17461. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17462. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17463. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17464. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17465. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17466. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17467. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17468. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17469. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17470. case "$host" in
  17471. *-*-emscripten*)
  17472. default_atomic=no
  17473. ;;
  17474. *)
  17475. default_atomic=yes
  17476. ;;
  17477. esac
  17478. # Check whether --enable-atomic was given.
  17479. if test ${enable_atomic+y}
  17480. then :
  17481. enableval=$enable_atomic;
  17482. else $as_nop
  17483. enable_atomic=$default_atomic
  17484. fi
  17485. if test x$enable_atomic != xyes; then
  17486. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17487. else
  17488. SUMMARY_modules="${SUMMARY_modules} atomic"
  17489. fi
  17490. # Check whether --enable-audio was given.
  17491. if test ${enable_audio+y}
  17492. then :
  17493. enableval=$enable_audio;
  17494. else $as_nop
  17495. enable_audio=yes
  17496. fi
  17497. if test x$enable_audio != xyes; then
  17498. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17499. else
  17500. SUMMARY_modules="${SUMMARY_modules} audio"
  17501. fi
  17502. # Check whether --enable-video was given.
  17503. if test ${enable_video+y}
  17504. then :
  17505. enableval=$enable_video;
  17506. else $as_nop
  17507. enable_video=yes
  17508. fi
  17509. if test x$enable_video != xyes; then
  17510. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17511. else
  17512. SUMMARY_modules="${SUMMARY_modules} video"
  17513. fi
  17514. # Check whether --enable-render was given.
  17515. if test ${enable_render+y}
  17516. then :
  17517. enableval=$enable_render;
  17518. else $as_nop
  17519. enable_render=yes
  17520. fi
  17521. if test x$enable_render != xyes; then
  17522. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17523. else
  17524. SUMMARY_modules="${SUMMARY_modules} render"
  17525. fi
  17526. # Check whether --enable-events was given.
  17527. if test ${enable_events+y}
  17528. then :
  17529. enableval=$enable_events;
  17530. else $as_nop
  17531. enable_events=yes
  17532. fi
  17533. if test x$enable_events != xyes; then
  17534. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17535. else
  17536. SUMMARY_modules="${SUMMARY_modules} events"
  17537. fi
  17538. # Check whether --enable-joystick was given.
  17539. if test ${enable_joystick+y}
  17540. then :
  17541. enableval=$enable_joystick;
  17542. else $as_nop
  17543. enable_joystick=yes
  17544. fi
  17545. if test x$enable_joystick != xyes; then
  17546. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17547. else
  17548. SUMMARY_modules="${SUMMARY_modules} joystick"
  17549. fi
  17550. # Check whether --enable-haptic was given.
  17551. if test ${enable_haptic+y}
  17552. then :
  17553. enableval=$enable_haptic;
  17554. else $as_nop
  17555. enable_haptic=yes
  17556. fi
  17557. if test x$enable_haptic != xyes; then
  17558. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17559. else
  17560. SUMMARY_modules="${SUMMARY_modules} haptic"
  17561. fi
  17562. # Check whether --enable-hidapi was given.
  17563. if test ${enable_hidapi+y}
  17564. then :
  17565. enableval=$enable_hidapi;
  17566. else $as_nop
  17567. enable_hidapi=yes
  17568. fi
  17569. if test x$enable_hidapi != xyes; then
  17570. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17571. else
  17572. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17573. fi
  17574. # Check whether --enable-sensor was given.
  17575. if test ${enable_sensor+y}
  17576. then :
  17577. enableval=$enable_sensor;
  17578. else $as_nop
  17579. enable_sensor=yes
  17580. fi
  17581. if test x$enable_sensor != xyes; then
  17582. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17583. else
  17584. SUMMARY_modules="${SUMMARY_modules} sensor"
  17585. fi
  17586. # Check whether --enable-power was given.
  17587. if test ${enable_power+y}
  17588. then :
  17589. enableval=$enable_power;
  17590. else $as_nop
  17591. enable_power=yes
  17592. fi
  17593. if test x$enable_power != xyes; then
  17594. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17595. else
  17596. SUMMARY_modules="${SUMMARY_modules} power"
  17597. fi
  17598. # Check whether --enable-filesystem was given.
  17599. if test ${enable_filesystem+y}
  17600. then :
  17601. enableval=$enable_filesystem;
  17602. else $as_nop
  17603. enable_filesystem=yes
  17604. fi
  17605. if test x$enable_filesystem != xyes; then
  17606. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17607. else
  17608. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17609. fi
  17610. # Many subsystems depend on threads, so leave them enabled by default
  17611. #AC_ARG_ENABLE(threads,
  17612. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17613. # , enable_threads=yes)
  17614. enable_threads=yes
  17615. if test x$enable_threads != xyes; then
  17616. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17617. else
  17618. SUMMARY_modules="${SUMMARY_modules} threads"
  17619. fi
  17620. # Check whether --enable-timers was given.
  17621. if test ${enable_timers+y}
  17622. then :
  17623. enableval=$enable_timers;
  17624. else $as_nop
  17625. enable_timers=yes
  17626. fi
  17627. if test x$enable_timers != xyes; then
  17628. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17629. else
  17630. SUMMARY_modules="${SUMMARY_modules} timers"
  17631. fi
  17632. # Check whether --enable-file was given.
  17633. if test ${enable_file+y}
  17634. then :
  17635. enableval=$enable_file;
  17636. else $as_nop
  17637. enable_file=yes
  17638. fi
  17639. if test x$enable_file != xyes; then
  17640. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17641. else
  17642. SUMMARY_modules="${SUMMARY_modules} file"
  17643. fi
  17644. # Check whether --enable-misc was given.
  17645. if test ${enable_misc+y}
  17646. then :
  17647. enableval=$enable_misc;
  17648. else $as_nop
  17649. enable_misc=yes
  17650. fi
  17651. if test x$enable_misc != xyes; then
  17652. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17653. else
  17654. SUMMARY_modules="${SUMMARY_modules} misc"
  17655. fi
  17656. # Check whether --enable-locale was given.
  17657. if test ${enable_locale+y}
  17658. then :
  17659. enableval=$enable_locale;
  17660. else $as_nop
  17661. enable_locale=yes
  17662. fi
  17663. if test x$enable_locale != xyes; then
  17664. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17665. else
  17666. SUMMARY_modules="${SUMMARY_modules} locale"
  17667. fi
  17668. # Check whether --enable-loadso was given.
  17669. if test ${enable_loadso+y}
  17670. then :
  17671. enableval=$enable_loadso;
  17672. else $as_nop
  17673. enable_loadso=yes
  17674. fi
  17675. if test x$enable_loadso != xyes; then
  17676. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17677. else
  17678. SUMMARY_modules="${SUMMARY_modules} loadso"
  17679. fi
  17680. # Check whether --enable-cpuinfo was given.
  17681. if test ${enable_cpuinfo+y}
  17682. then :
  17683. enableval=$enable_cpuinfo;
  17684. else $as_nop
  17685. enable_cpuinfo=yes
  17686. fi
  17687. if test x$enable_cpuinfo != xyes; then
  17688. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17689. else
  17690. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17691. fi
  17692. # Check whether --enable-assembly was given.
  17693. if test ${enable_assembly+y}
  17694. then :
  17695. enableval=$enable_assembly;
  17696. else $as_nop
  17697. enable_assembly=yes
  17698. fi
  17699. if test x$enable_assembly = xyes; then
  17700. SUMMARY_modules="${SUMMARY_modules} assembly"
  17701. # Make sure that we don't generate floating point code that would
  17702. # cause illegal instruction exceptions on older processors
  17703. case "$host" in
  17704. *-*-darwin*)
  17705. # Don't need to worry about Apple hardware, it's all SSE capable
  17706. default_ssemath=yes
  17707. ;;
  17708. *64-*-*)
  17709. # x86 64-bit architectures all have SSE instructions
  17710. default_ssemath=yes
  17711. ;;
  17712. *)
  17713. default_ssemath=no
  17714. ;;
  17715. esac
  17716. # Check whether --enable-ssemath was given.
  17717. if test ${enable_ssemath+y}
  17718. then :
  17719. enableval=$enable_ssemath;
  17720. else $as_nop
  17721. enable_ssemath=$default_ssemath
  17722. fi
  17723. if test x$enable_ssemath = xno; then
  17724. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17725. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17726. fi
  17727. fi
  17728. # Check whether --enable-mmx was given.
  17729. if test ${enable_mmx+y}
  17730. then :
  17731. enableval=$enable_mmx;
  17732. else $as_nop
  17733. enable_mmx=yes
  17734. fi
  17735. if test x$enable_mmx = xyes; then
  17736. save_CFLAGS="$CFLAGS"
  17737. have_gcc_mmx=no
  17738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17739. printf %s "checking for GCC -mmmx option... " >&6; }
  17740. mmx_CFLAGS="-mmmx"
  17741. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17743. /* end confdefs.h. */
  17744. #ifdef __MINGW32__
  17745. #include <_mingw.h>
  17746. #ifdef __MINGW64_VERSION_MAJOR
  17747. #include <intrin.h>
  17748. #else
  17749. #include <mmintrin.h>
  17750. #endif
  17751. #else
  17752. #include <mmintrin.h>
  17753. #endif
  17754. #ifndef __MMX__
  17755. #error Assembler CPP flag not enabled
  17756. #endif
  17757. int
  17758. main (void)
  17759. {
  17760. ;
  17761. return 0;
  17762. }
  17763. _ACEOF
  17764. if ac_fn_c_try_compile "$LINENO"
  17765. then :
  17766. have_gcc_mmx=yes
  17767. fi
  17768. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17770. printf "%s\n" "$have_gcc_mmx" >&6; }
  17771. CFLAGS="$save_CFLAGS"
  17772. if test x$have_gcc_mmx = xyes; then
  17773. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17774. SUMMARY_math="${SUMMARY_math} mmx"
  17775. fi
  17776. fi
  17777. # Check whether --enable-3dnow was given.
  17778. if test ${enable_3dnow+y}
  17779. then :
  17780. enableval=$enable_3dnow;
  17781. else $as_nop
  17782. enable_3dnow=yes
  17783. fi
  17784. if test x$enable_3dnow = xyes; then
  17785. save_CFLAGS="$CFLAGS"
  17786. have_gcc_3dnow=no
  17787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17788. printf %s "checking for GCC -m3dnow option... " >&6; }
  17789. amd3dnow_CFLAGS="-m3dnow"
  17790. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17792. /* end confdefs.h. */
  17793. #include <mm3dnow.h>
  17794. #ifndef __3dNOW__
  17795. #error Assembler CPP flag not enabled
  17796. #endif
  17797. int
  17798. main (void)
  17799. {
  17800. void *p = 0;
  17801. _m_prefetch(p);
  17802. ;
  17803. return 0;
  17804. }
  17805. _ACEOF
  17806. if ac_fn_c_try_link "$LINENO"
  17807. then :
  17808. have_gcc_3dnow=yes
  17809. fi
  17810. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17811. conftest$ac_exeext conftest.$ac_ext
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17813. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17814. CFLAGS="$save_CFLAGS"
  17815. if test x$have_gcc_3dnow = xyes; then
  17816. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17817. SUMMARY_math="${SUMMARY_math} 3dnow"
  17818. fi
  17819. fi
  17820. # Check whether --enable-sse was given.
  17821. if test ${enable_sse+y}
  17822. then :
  17823. enableval=$enable_sse;
  17824. else $as_nop
  17825. enable_sse=yes
  17826. fi
  17827. if test x$enable_sse = xyes; then
  17828. save_CFLAGS="$CFLAGS"
  17829. have_gcc_sse=no
  17830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17831. printf %s "checking for GCC -msse option... " >&6; }
  17832. sse_CFLAGS="-msse"
  17833. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17835. /* end confdefs.h. */
  17836. #ifdef __MINGW32__
  17837. #include <_mingw.h>
  17838. #ifdef __MINGW64_VERSION_MAJOR
  17839. #include <intrin.h>
  17840. #else
  17841. #include <xmmintrin.h>
  17842. #endif
  17843. #else
  17844. #include <xmmintrin.h>
  17845. #endif
  17846. #ifndef __SSE__
  17847. #error Assembler CPP flag not enabled
  17848. #endif
  17849. int
  17850. main (void)
  17851. {
  17852. ;
  17853. return 0;
  17854. }
  17855. _ACEOF
  17856. if ac_fn_c_try_compile "$LINENO"
  17857. then :
  17858. have_gcc_sse=yes
  17859. fi
  17860. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17862. printf "%s\n" "$have_gcc_sse" >&6; }
  17863. CFLAGS="$save_CFLAGS"
  17864. if test x$have_gcc_sse = xyes; then
  17865. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17866. SUMMARY_math="${SUMMARY_math} sse"
  17867. fi
  17868. fi
  17869. # Check whether --enable-sse2 was given.
  17870. if test ${enable_sse2+y}
  17871. then :
  17872. enableval=$enable_sse2;
  17873. else $as_nop
  17874. enable_sse2=$default_ssemath
  17875. fi
  17876. if test x$enable_sse2 = xyes; then
  17877. save_CFLAGS="$CFLAGS"
  17878. have_gcc_sse2=no
  17879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17880. printf %s "checking for GCC -msse2 option... " >&6; }
  17881. sse2_CFLAGS="-msse2"
  17882. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17884. /* end confdefs.h. */
  17885. #ifdef __MINGW32__
  17886. #include <_mingw.h>
  17887. #ifdef __MINGW64_VERSION_MAJOR
  17888. #include <intrin.h>
  17889. #else
  17890. #include <emmintrin.h>
  17891. #endif
  17892. #else
  17893. #include <emmintrin.h>
  17894. #endif
  17895. #ifndef __SSE2__
  17896. #error Assembler CPP flag not enabled
  17897. #endif
  17898. int
  17899. main (void)
  17900. {
  17901. ;
  17902. return 0;
  17903. }
  17904. _ACEOF
  17905. if ac_fn_c_try_compile "$LINENO"
  17906. then :
  17907. have_gcc_sse2=yes
  17908. fi
  17909. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17911. printf "%s\n" "$have_gcc_sse2" >&6; }
  17912. CFLAGS="$save_CFLAGS"
  17913. if test x$have_gcc_sse2 = xyes; then
  17914. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17915. SUMMARY_math="${SUMMARY_math} sse2"
  17916. fi
  17917. fi
  17918. # Check whether --enable-sse3 was given.
  17919. if test ${enable_sse3+y}
  17920. then :
  17921. enableval=$enable_sse3;
  17922. else $as_nop
  17923. enable_sse3=$default_ssemath
  17924. fi
  17925. if test x$enable_sse3 = xyes; then
  17926. save_CFLAGS="$CFLAGS"
  17927. have_gcc_sse3=no
  17928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17929. printf %s "checking for GCC -msse3 option... " >&6; }
  17930. sse3_CFLAGS="-msse3"
  17931. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17933. /* end confdefs.h. */
  17934. #ifdef __MINGW32__
  17935. #include <_mingw.h>
  17936. #ifdef __MINGW64_VERSION_MAJOR
  17937. #include <intrin.h>
  17938. #else
  17939. #include <pmmintrin.h>
  17940. #endif
  17941. #else
  17942. #include <pmmintrin.h>
  17943. #endif
  17944. #ifndef __SSE2__
  17945. #error Assembler CPP flag not enabled
  17946. #endif
  17947. int
  17948. main (void)
  17949. {
  17950. ;
  17951. return 0;
  17952. }
  17953. _ACEOF
  17954. if ac_fn_c_try_compile "$LINENO"
  17955. then :
  17956. have_gcc_sse3=yes
  17957. fi
  17958. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17960. printf "%s\n" "$have_gcc_sse3" >&6; }
  17961. CFLAGS="$save_CFLAGS"
  17962. if test x$have_gcc_sse3 = xyes; then
  17963. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17964. SUMMARY_math="${SUMMARY_math} sse3"
  17965. fi
  17966. fi
  17967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17968. printf %s "checking for immintrin.h... " >&6; }
  17969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17970. /* end confdefs.h. */
  17971. #include <immintrin.h>
  17972. int
  17973. main (void)
  17974. {
  17975. ;
  17976. return 0;
  17977. }
  17978. _ACEOF
  17979. if ac_fn_c_try_compile "$LINENO"
  17980. then :
  17981. have_immintrin_h_hdr=yes
  17982. else $as_nop
  17983. have_immintrin_h_hdr=no
  17984. fi
  17985. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17987. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17988. if test x$have_immintrin_h_hdr = xyes; then
  17989. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17990. fi
  17991. # Check whether --enable-altivec was given.
  17992. if test ${enable_altivec+y}
  17993. then :
  17994. enableval=$enable_altivec;
  17995. else $as_nop
  17996. enable_altivec=yes
  17997. fi
  17998. if test x$enable_altivec = xyes; then
  17999. save_CFLAGS="$CFLAGS"
  18000. have_gcc_altivec=no
  18001. have_altivec_h_hdr=no
  18002. altivec_CFLAGS="-maltivec"
  18003. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18004. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  18005. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  18006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18007. /* end confdefs.h. */
  18008. #include <altivec.h>
  18009. vector unsigned int vzero() {
  18010. return vec_splat_u32(0);
  18011. }
  18012. int
  18013. main (void)
  18014. {
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_compile "$LINENO"
  18020. then :
  18021. have_gcc_altivec=yes
  18022. have_altivec_h_hdr=yes
  18023. fi
  18024. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18026. printf "%s\n" "$have_gcc_altivec" >&6; }
  18027. if test x$have_gcc_altivec = xno; then
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18029. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. vector unsigned int vzero() {
  18033. return vec_splat_u32(0);
  18034. }
  18035. int
  18036. main (void)
  18037. {
  18038. ;
  18039. return 0;
  18040. }
  18041. _ACEOF
  18042. if ac_fn_c_try_compile "$LINENO"
  18043. then :
  18044. have_gcc_altivec=yes
  18045. fi
  18046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18048. printf "%s\n" "$have_gcc_altivec" >&6; }
  18049. fi
  18050. if test x$have_gcc_altivec = xno; then
  18051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18052. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18053. altivec_CFLAGS="-faltivec"
  18054. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18056. /* end confdefs.h. */
  18057. #include <altivec.h>
  18058. vector unsigned int vzero() {
  18059. return vec_splat_u32(0);
  18060. }
  18061. int
  18062. main (void)
  18063. {
  18064. ;
  18065. return 0;
  18066. }
  18067. _ACEOF
  18068. if ac_fn_c_try_compile "$LINENO"
  18069. then :
  18070. have_gcc_altivec=yes
  18071. have_altivec_h_hdr=yes
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18075. printf "%s\n" "$have_gcc_altivec" >&6; }
  18076. fi
  18077. if test x$have_gcc_altivec = xno; then
  18078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18079. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18081. /* end confdefs.h. */
  18082. vector unsigned int vzero() {
  18083. return vec_splat_u32(0);
  18084. }
  18085. int
  18086. main (void)
  18087. {
  18088. ;
  18089. return 0;
  18090. }
  18091. _ACEOF
  18092. if ac_fn_c_try_compile "$LINENO"
  18093. then :
  18094. have_gcc_altivec=yes
  18095. fi
  18096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18098. printf "%s\n" "$have_gcc_altivec" >&6; }
  18099. fi
  18100. CFLAGS="$save_CFLAGS"
  18101. if test x$have_gcc_altivec = xyes; then
  18102. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18103. if test x$have_altivec_h_hdr = xyes; then
  18104. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18105. fi
  18106. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18107. SUMMARY_math="${SUMMARY_math} altivec"
  18108. fi
  18109. fi
  18110. fi
  18111. # Check whether --enable-lsx was given.
  18112. if test ${enable_lsx+y}
  18113. then :
  18114. enableval=$enable_lsx;
  18115. else $as_nop
  18116. enable_lsx=yes
  18117. fi
  18118. if test x$enable_lsx = xyes; then
  18119. save_CFLAGS="$CFLAGS"
  18120. have_gcc_lsx=no
  18121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18122. printf %s "checking for GCC -mlsx option... " >&6; }
  18123. lsx_CFLAGS="-mlsx"
  18124. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18125. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18126. /* end confdefs.h. */
  18127. #ifndef __loongarch_sx
  18128. #error Assembler CPP flag not enabled
  18129. #endif
  18130. int
  18131. main (void)
  18132. {
  18133. ;
  18134. return 0;
  18135. }
  18136. _ACEOF
  18137. if ac_fn_c_try_compile "$LINENO"
  18138. then :
  18139. have_gcc_lsx=yes
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18143. printf "%s\n" "$have_gcc_lsx" >&6; }
  18144. CFLAGS="$save_CFLAGS"
  18145. if test x$have_gcc_lsx = xyes; then
  18146. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18147. SUMMARY_math="${SUMMARY_math} lsx"
  18148. fi
  18149. fi
  18150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18151. printf %s "checking for lsxintrin.h... " >&6; }
  18152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18153. /* end confdefs.h. */
  18154. #include <lsxintrin.h>
  18155. int
  18156. main (void)
  18157. {
  18158. ;
  18159. return 0;
  18160. }
  18161. _ACEOF
  18162. if ac_fn_c_try_compile "$LINENO"
  18163. then :
  18164. have_lsxintrin_h_hdr=yes
  18165. else $as_nop
  18166. have_lsxintrin_h_hdr=no
  18167. fi
  18168. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18170. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18171. if test x$have_lsxintrin_h_hdr = xyes; then
  18172. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18173. fi
  18174. # Check whether --enable-lasx was given.
  18175. if test ${enable_lasx+y}
  18176. then :
  18177. enableval=$enable_lasx;
  18178. else $as_nop
  18179. enable_LASX=yes
  18180. fi
  18181. if test x$enable_LASX = xyes; then
  18182. save_CFLAGS="$CFLAGS"
  18183. have_gcc_lasx=no
  18184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18185. printf %s "checking for GCC -mlasx option... " >&6; }
  18186. lasx_CFLAGS="-mlasx"
  18187. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18189. /* end confdefs.h. */
  18190. #ifndef __loongarch_asx
  18191. #error Assembler CPP flag not enabled
  18192. #endif
  18193. int
  18194. main (void)
  18195. {
  18196. ;
  18197. return 0;
  18198. }
  18199. _ACEOF
  18200. if ac_fn_c_try_compile "$LINENO"
  18201. then :
  18202. have_gcc_lasx=yes
  18203. fi
  18204. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18206. printf "%s\n" "$have_gcc_lasx" >&6; }
  18207. CFLAGS="$save_CFLAGS"
  18208. if test x$have_gcc_lasx = xyes; then
  18209. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18210. SUMMARY_math="${SUMMARY_math} lasx"
  18211. fi
  18212. fi
  18213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18214. printf %s "checking for lasxintrin.h... " >&6; }
  18215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18216. /* end confdefs.h. */
  18217. #include <lasxintrin.h>
  18218. int
  18219. main (void)
  18220. {
  18221. ;
  18222. return 0;
  18223. }
  18224. _ACEOF
  18225. if ac_fn_c_try_compile "$LINENO"
  18226. then :
  18227. have_lasxintrin_h_hdr=yes
  18228. else $as_nop
  18229. have_lasxintrin_h_hdr=no
  18230. fi
  18231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18233. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18234. if test x$have_lasxintrin_h_hdr = xyes; then
  18235. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18236. fi
  18237. CheckOSS()
  18238. {
  18239. # Check whether --enable-oss was given.
  18240. if test ${enable_oss+y}
  18241. then :
  18242. enableval=$enable_oss;
  18243. else $as_nop
  18244. enable_oss=maybe
  18245. fi
  18246. if test x$enable_oss = xmaybe; then
  18247. enable_oss=yes
  18248. fi
  18249. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18251. printf %s "checking for OSS audio support... " >&6; }
  18252. have_oss=no
  18253. if test x$have_oss != xyes; then
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. #include <sys/soundcard.h>
  18257. int
  18258. main (void)
  18259. {
  18260. int arg = SNDCTL_DSP_SETFRAGMENT;
  18261. ;
  18262. return 0;
  18263. }
  18264. _ACEOF
  18265. if ac_fn_c_try_compile "$LINENO"
  18266. then :
  18267. have_oss=yes
  18268. fi
  18269. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18270. fi
  18271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18272. printf "%s\n" "$have_oss" >&6; }
  18273. if test x$have_oss = xyes; then
  18274. SUMMARY_audio="${SUMMARY_audio} oss"
  18275. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18276. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18277. have_audio=yes
  18278. # We may need to link with ossaudio emulation library
  18279. case "$host" in
  18280. *-*-netbsd*)
  18281. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18282. esac
  18283. fi
  18284. fi
  18285. }
  18286. CheckALSA()
  18287. {
  18288. # Check whether --enable-alsa was given.
  18289. if test ${enable_alsa+y}
  18290. then :
  18291. enableval=$enable_alsa;
  18292. else $as_nop
  18293. enable_alsa=yes
  18294. fi
  18295. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18296. alsa_save_CFLAGS="$CFLAGS"
  18297. alsa_save_LDFLAGS="$LDFLAGS"
  18298. alsa_save_LIBS="$LIBS"
  18299. alsa_found=yes
  18300. # Check whether --with-alsa-prefix was given.
  18301. if test ${with_alsa_prefix+y}
  18302. then :
  18303. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18304. else $as_nop
  18305. alsa_prefix=""
  18306. fi
  18307. # Check whether --with-alsa-inc-prefix was given.
  18308. if test ${with_alsa_inc_prefix+y}
  18309. then :
  18310. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18311. else $as_nop
  18312. alsa_inc_prefix=""
  18313. fi
  18314. # Check whether --enable-alsatest was given.
  18315. if test ${enable_alsatest+y}
  18316. then :
  18317. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18318. else $as_nop
  18319. enable_alsatest=yes
  18320. fi
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18322. printf %s "checking for ALSA CFLAGS... " >&6; }
  18323. if test "$alsa_inc_prefix" != "" ; then
  18324. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18325. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18326. fi
  18327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18328. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18330. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18331. if test "$alsa_prefix" != "" ; then
  18332. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18333. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18334. fi
  18335. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18336. LIBS=`echo $LIBS | sed 's/-lm//'`
  18337. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18338. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18339. LIBS=`echo $LIBS | sed 's/ //'`
  18340. LIBS="$ALSA_LIBS $LIBS"
  18341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18342. printf "%s\n" "$ALSA_LIBS" >&6; }
  18343. min_alsa_version=1.0.11
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18345. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18346. no_alsa=""
  18347. alsa_min_major_version=`echo $min_alsa_version | \
  18348. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18349. alsa_min_minor_version=`echo $min_alsa_version | \
  18350. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18351. alsa_min_micro_version=`echo $min_alsa_version | \
  18352. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18353. ac_ext=c
  18354. ac_cpp='$CPP $CPPFLAGS'
  18355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18359. /* end confdefs.h. */
  18360. #include <alsa/asoundlib.h>
  18361. int
  18362. main (void)
  18363. {
  18364. /* ensure backward compatibility */
  18365. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18366. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18367. #endif
  18368. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18369. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18370. #endif
  18371. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18372. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18373. #endif
  18374. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18375. exit(0);
  18376. # else
  18377. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18378. # error not present
  18379. # endif
  18380. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18381. exit(0);
  18382. # else
  18383. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18384. # error not present
  18385. # endif
  18386. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18387. # error not present
  18388. # endif
  18389. # endif
  18390. # endif
  18391. exit(0);
  18392. ;
  18393. return 0;
  18394. }
  18395. _ACEOF
  18396. if ac_fn_c_try_compile "$LINENO"
  18397. then :
  18398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18399. printf "%s\n" "found." >&6; }
  18400. else $as_nop
  18401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18402. printf "%s\n" "not present." >&6; }
  18403. alsa_found=no
  18404. fi
  18405. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18406. ac_ext=c
  18407. ac_cpp='$CPP $CPPFLAGS'
  18408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18411. if test "x$enable_alsatest" = "xyes"; then
  18412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18413. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18414. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18415. then :
  18416. printf %s "(cached) " >&6
  18417. else $as_nop
  18418. ac_check_lib_save_LIBS=$LIBS
  18419. LIBS="-lasound $LIBS"
  18420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18421. /* end confdefs.h. */
  18422. /* Override any GCC internal prototype to avoid an error.
  18423. Use char because int might match the return type of a GCC
  18424. builtin and then its argument prototype would still apply. */
  18425. char snd_ctl_open ();
  18426. int
  18427. main (void)
  18428. {
  18429. return snd_ctl_open ();
  18430. ;
  18431. return 0;
  18432. }
  18433. _ACEOF
  18434. if ac_fn_c_try_link "$LINENO"
  18435. then :
  18436. ac_cv_lib_asound_snd_ctl_open=yes
  18437. else $as_nop
  18438. ac_cv_lib_asound_snd_ctl_open=no
  18439. fi
  18440. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18441. conftest$ac_exeext conftest.$ac_ext
  18442. LIBS=$ac_check_lib_save_LIBS
  18443. fi
  18444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18445. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18446. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18447. then :
  18448. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18449. LIBS="-lasound $LIBS"
  18450. else $as_nop
  18451. alsa_found=no
  18452. fi
  18453. fi
  18454. if test "x$alsa_found" = "xyes" ; then
  18455. have_alsa=yes
  18456. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18457. LIBS=`echo $LIBS | sed 's/ //'`
  18458. LIBS="-lasound $LIBS"
  18459. fi
  18460. if test "x$alsa_found" = "xno" ; then
  18461. have_alsa=no
  18462. CFLAGS="$alsa_save_CFLAGS"
  18463. LDFLAGS="$alsa_save_LDFLAGS"
  18464. LIBS="$alsa_save_LIBS"
  18465. ALSA_CFLAGS=""
  18466. ALSA_LIBS=""
  18467. fi
  18468. # Restore all flags from before the ALSA detection runs
  18469. CFLAGS="$alsa_save_CFLAGS"
  18470. LDFLAGS="$alsa_save_LDFLAGS"
  18471. LIBS="$alsa_save_LIBS"
  18472. if test x$have_alsa = xyes; then
  18473. # Check whether --enable-alsa-shared was given.
  18474. if test ${enable_alsa_shared+y}
  18475. then :
  18476. enableval=$enable_alsa_shared;
  18477. else $as_nop
  18478. enable_alsa_shared=yes
  18479. fi
  18480. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18481. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18482. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18483. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18484. if test x$have_loadso != xyes && \
  18485. test x$enable_alsa_shared = xyes; then
  18486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18487. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18488. fi
  18489. if test x$have_loadso = xyes && \
  18490. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18491. echo "-- dynamic libasound -> $alsa_lib"
  18492. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18493. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18494. else
  18495. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18496. SUMMARY_audio="${SUMMARY_audio} alsa"
  18497. fi
  18498. have_audio=yes
  18499. fi
  18500. fi
  18501. }
  18502. CheckJACK()
  18503. {
  18504. # Check whether --enable-jack was given.
  18505. if test ${enable_jack+y}
  18506. then :
  18507. enableval=$enable_jack;
  18508. else $as_nop
  18509. enable_jack=yes
  18510. fi
  18511. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18512. pkg_failed=no
  18513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18514. printf %s "checking for jack >= 0.125... " >&6; }
  18515. if test -n "$JACK_CFLAGS"; then
  18516. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18517. elif test -n "$PKG_CONFIG"; then
  18518. if test -n "$PKG_CONFIG" && \
  18519. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18520. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18521. ac_status=$?
  18522. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18523. test $ac_status = 0; }; then
  18524. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18525. test "x$?" != "x0" && pkg_failed=yes
  18526. else
  18527. pkg_failed=yes
  18528. fi
  18529. else
  18530. pkg_failed=untried
  18531. fi
  18532. if test -n "$JACK_LIBS"; then
  18533. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18534. elif test -n "$PKG_CONFIG"; then
  18535. if test -n "$PKG_CONFIG" && \
  18536. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18537. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18538. ac_status=$?
  18539. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18540. test $ac_status = 0; }; then
  18541. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18542. test "x$?" != "x0" && pkg_failed=yes
  18543. else
  18544. pkg_failed=yes
  18545. fi
  18546. else
  18547. pkg_failed=untried
  18548. fi
  18549. if test $pkg_failed = yes; then
  18550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18551. printf "%s\n" "no" >&6; }
  18552. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18553. _pkg_short_errors_supported=yes
  18554. else
  18555. _pkg_short_errors_supported=no
  18556. fi
  18557. if test $_pkg_short_errors_supported = yes; then
  18558. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18559. else
  18560. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18561. fi
  18562. # Put the nasty error message in config.log where it belongs
  18563. echo "$JACK_PKG_ERRORS" >&5
  18564. audio_jack=no
  18565. elif test $pkg_failed = untried; then
  18566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18567. printf "%s\n" "no" >&6; }
  18568. audio_jack=no
  18569. else
  18570. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18571. JACK_LIBS=$pkg_cv_JACK_LIBS
  18572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18573. printf "%s\n" "yes" >&6; }
  18574. audio_jack=yes
  18575. fi
  18576. if test x$audio_jack = xyes; then
  18577. # Check whether --enable-jack-shared was given.
  18578. if test ${enable_jack_shared+y}
  18579. then :
  18580. enableval=$enable_jack_shared;
  18581. else $as_nop
  18582. enable_jack_shared=yes
  18583. fi
  18584. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18585. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18586. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18587. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18588. if test x$have_loadso != xyes && \
  18589. test x$enable_jack_shared = xyes; then
  18590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18591. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18592. fi
  18593. if test x$have_loadso = xyes && \
  18594. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18595. echo "-- dynamic libjack -> $jack_lib"
  18596. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18597. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18598. case "$host" in
  18599. # On Solaris, jack must be linked deferred explicitly
  18600. # to prevent undefined symbol failures.
  18601. *-*-solaris*)
  18602. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18603. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18604. esac
  18605. else
  18606. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18607. SUMMARY_audio="${SUMMARY_audio} jack"
  18608. fi
  18609. have_audio=yes
  18610. fi
  18611. fi
  18612. }
  18613. CheckPipewire()
  18614. {
  18615. # Check whether --enable-pipewire was given.
  18616. if test ${enable_pipewire+y}
  18617. then :
  18618. enableval=$enable_pipewire;
  18619. else $as_nop
  18620. enable_pipewire=yes
  18621. fi
  18622. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18623. pkg_failed=no
  18624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18625. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18626. if test -n "$PIPEWIRE_CFLAGS"; then
  18627. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18628. elif test -n "$PKG_CONFIG"; then
  18629. if test -n "$PKG_CONFIG" && \
  18630. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18631. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18632. ac_status=$?
  18633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18634. test $ac_status = 0; }; then
  18635. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18636. test "x$?" != "x0" && pkg_failed=yes
  18637. else
  18638. pkg_failed=yes
  18639. fi
  18640. else
  18641. pkg_failed=untried
  18642. fi
  18643. if test -n "$PIPEWIRE_LIBS"; then
  18644. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18645. elif test -n "$PKG_CONFIG"; then
  18646. if test -n "$PKG_CONFIG" && \
  18647. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18648. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18649. ac_status=$?
  18650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18651. test $ac_status = 0; }; then
  18652. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18653. test "x$?" != "x0" && pkg_failed=yes
  18654. else
  18655. pkg_failed=yes
  18656. fi
  18657. else
  18658. pkg_failed=untried
  18659. fi
  18660. if test $pkg_failed = yes; then
  18661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18662. printf "%s\n" "no" >&6; }
  18663. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18664. _pkg_short_errors_supported=yes
  18665. else
  18666. _pkg_short_errors_supported=no
  18667. fi
  18668. if test $_pkg_short_errors_supported = yes; then
  18669. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18670. else
  18671. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18672. fi
  18673. # Put the nasty error message in config.log where it belongs
  18674. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18675. audio_pipewire=no
  18676. elif test $pkg_failed = untried; then
  18677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18678. printf "%s\n" "no" >&6; }
  18679. audio_pipewire=no
  18680. else
  18681. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18682. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18684. printf "%s\n" "yes" >&6; }
  18685. audio_pipewire=yes
  18686. fi
  18687. if test x$audio_pipewire = xyes; then
  18688. # Check whether --enable-pipewire-shared was given.
  18689. if test ${enable_pipewire_shared+y}
  18690. then :
  18691. enableval=$enable_pipewire_shared;
  18692. else $as_nop
  18693. enable_pipewire_shared=yes
  18694. fi
  18695. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18696. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  18697. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  18698. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  18699. if test x$have_loadso != xyes && \
  18700. test x$enable_pipewire_shared = xyes; then
  18701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  18702. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  18703. fi
  18704. if test x$have_loadso = xyes && \
  18705. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  18706. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  18707. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  18708. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  18709. else
  18710. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  18711. SUMMARY_audio="${SUMMARY_audio} pipewire"
  18712. fi
  18713. have_audio=yes
  18714. fi
  18715. fi
  18716. }
  18717. CheckPulseAudio()
  18718. {
  18719. # Check whether --enable-pulseaudio was given.
  18720. if test ${enable_pulseaudio+y}
  18721. then :
  18722. enableval=$enable_pulseaudio;
  18723. else $as_nop
  18724. enable_pulseaudio=yes
  18725. fi
  18726. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  18727. pkg_failed=no
  18728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  18729. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  18730. if test -n "$PULSEAUDIO_CFLAGS"; then
  18731. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  18732. elif test -n "$PKG_CONFIG"; then
  18733. if test -n "$PKG_CONFIG" && \
  18734. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18735. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18736. ac_status=$?
  18737. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18738. test $ac_status = 0; }; then
  18739. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  18740. test "x$?" != "x0" && pkg_failed=yes
  18741. else
  18742. pkg_failed=yes
  18743. fi
  18744. else
  18745. pkg_failed=untried
  18746. fi
  18747. if test -n "$PULSEAUDIO_LIBS"; then
  18748. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  18749. elif test -n "$PKG_CONFIG"; then
  18750. if test -n "$PKG_CONFIG" && \
  18751. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  18752. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  18753. ac_status=$?
  18754. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18755. test $ac_status = 0; }; then
  18756. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  18757. test "x$?" != "x0" && pkg_failed=yes
  18758. else
  18759. pkg_failed=yes
  18760. fi
  18761. else
  18762. pkg_failed=untried
  18763. fi
  18764. if test $pkg_failed = yes; then
  18765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18766. printf "%s\n" "no" >&6; }
  18767. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18768. _pkg_short_errors_supported=yes
  18769. else
  18770. _pkg_short_errors_supported=no
  18771. fi
  18772. if test $_pkg_short_errors_supported = yes; then
  18773. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18774. else
  18775. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  18776. fi
  18777. # Put the nasty error message in config.log where it belongs
  18778. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  18779. audio_pulseaudio=no
  18780. elif test $pkg_failed = untried; then
  18781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18782. printf "%s\n" "no" >&6; }
  18783. audio_pulseaudio=no
  18784. else
  18785. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  18786. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  18787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18788. printf "%s\n" "yes" >&6; }
  18789. audio_pulseaudio=yes
  18790. fi
  18791. if test x$audio_pulseaudio = xyes; then
  18792. # Check whether --enable-pulseaudio-shared was given.
  18793. if test ${enable_pulseaudio_shared+y}
  18794. then :
  18795. enableval=$enable_pulseaudio_shared;
  18796. else $as_nop
  18797. enable_pulseaudio_shared=yes
  18798. fi
  18799. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18800. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  18801. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  18802. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  18803. if test x$have_loadso != xyes && \
  18804. test x$enable_pulseaudio_shared = xyes; then
  18805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  18806. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  18807. fi
  18808. if test x$have_loadso = xyes && \
  18809. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  18810. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  18811. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  18812. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  18813. case "$host" in
  18814. # On Solaris, pulseaudio must be linked deferred explicitly
  18815. # to prevent undefined symbol failures.
  18816. *-*-solaris*)
  18817. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  18818. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  18819. esac
  18820. else
  18821. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  18822. SUMMARY_audio="${SUMMARY_audio} pulse"
  18823. fi
  18824. have_audio=yes
  18825. fi
  18826. fi
  18827. }
  18828. CheckSNDIO()
  18829. {
  18830. # Check whether --enable-sndio was given.
  18831. if test ${enable_sndio+y}
  18832. then :
  18833. enableval=$enable_sndio;
  18834. else $as_nop
  18835. enable_sndio=yes
  18836. fi
  18837. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  18838. pkg_failed=no
  18839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  18840. printf %s "checking for sndio... " >&6; }
  18841. if test -n "$SNDIO_CFLAGS"; then
  18842. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  18843. elif test -n "$PKG_CONFIG"; then
  18844. if test -n "$PKG_CONFIG" && \
  18845. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18846. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18847. ac_status=$?
  18848. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18849. test $ac_status = 0; }; then
  18850. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  18851. test "x$?" != "x0" && pkg_failed=yes
  18852. else
  18853. pkg_failed=yes
  18854. fi
  18855. else
  18856. pkg_failed=untried
  18857. fi
  18858. if test -n "$SNDIO_LIBS"; then
  18859. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  18860. elif test -n "$PKG_CONFIG"; then
  18861. if test -n "$PKG_CONFIG" && \
  18862. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  18863. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  18864. ac_status=$?
  18865. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18866. test $ac_status = 0; }; then
  18867. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  18868. test "x$?" != "x0" && pkg_failed=yes
  18869. else
  18870. pkg_failed=yes
  18871. fi
  18872. else
  18873. pkg_failed=untried
  18874. fi
  18875. if test $pkg_failed = yes; then
  18876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18877. printf "%s\n" "no" >&6; }
  18878. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18879. _pkg_short_errors_supported=yes
  18880. else
  18881. _pkg_short_errors_supported=no
  18882. fi
  18883. if test $_pkg_short_errors_supported = yes; then
  18884. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  18885. else
  18886. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  18887. fi
  18888. # Put the nasty error message in config.log where it belongs
  18889. echo "$SNDIO_PKG_ERRORS" >&5
  18890. audio_sndio=no
  18891. elif test $pkg_failed = untried; then
  18892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18893. printf "%s\n" "no" >&6; }
  18894. audio_sndio=no
  18895. else
  18896. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  18897. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  18898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18899. printf "%s\n" "yes" >&6; }
  18900. audio_sndio=yes
  18901. fi
  18902. if test x$audio_sndio = xyes; then
  18903. # Check whether --enable-sndio-shared was given.
  18904. if test ${enable_sndio_shared+y}
  18905. then :
  18906. enableval=$enable_sndio_shared;
  18907. else $as_nop
  18908. enable_sndio_shared=yes
  18909. fi
  18910. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18911. if test x$have_loadso != xyes && \
  18912. test x$enable_sndio_shared = xyes; then
  18913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  18914. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  18915. fi
  18916. if test x$have_loadso = xyes && \
  18917. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  18918. echo "-- dynamic libsndio -> $sndio_lib"
  18919. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  18920. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  18921. else
  18922. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  18923. SUMMARY_audio="${SUMMARY_audio} sndio"
  18924. fi
  18925. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  18926. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  18927. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  18928. have_audio=yes
  18929. fi
  18930. fi
  18931. }
  18932. CheckDiskAudio()
  18933. {
  18934. # Check whether --enable-diskaudio was given.
  18935. if test ${enable_diskaudio+y}
  18936. then :
  18937. enableval=$enable_diskaudio;
  18938. else $as_nop
  18939. enable_diskaudio=yes
  18940. fi
  18941. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  18942. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  18943. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  18944. SUMMARY_audio="${SUMMARY_audio} disk"
  18945. have_audio=yes
  18946. fi
  18947. }
  18948. CheckDummyAudio()
  18949. {
  18950. # Check whether --enable-dummyaudio was given.
  18951. if test ${enable_dummyaudio+y}
  18952. then :
  18953. enableval=$enable_dummyaudio;
  18954. else $as_nop
  18955. enable_dummyaudio=yes
  18956. fi
  18957. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  18958. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  18959. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  18960. SUMMARY_audio="${SUMMARY_audio} dummy"
  18961. have_audio=yes
  18962. fi
  18963. }
  18964. CheckLibSampleRate()
  18965. {
  18966. # Check whether --enable-libsamplerate was given.
  18967. if test ${enable_libsamplerate+y}
  18968. then :
  18969. enableval=$enable_libsamplerate;
  18970. else $as_nop
  18971. enable_libsamplerate=yes
  18972. fi
  18973. if test x$enable_libsamplerate = xyes; then
  18974. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  18975. if test "x$ac_cv_header_samplerate_h" = xyes
  18976. then :
  18977. have_samplerate_h_hdr=yes
  18978. else $as_nop
  18979. have_samplerate_h_hdr=no
  18980. fi
  18981. if test x$have_samplerate_h_hdr = xyes; then
  18982. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  18983. # Check whether --enable-libsamplerate-shared was given.
  18984. if test ${enable_libsamplerate_shared+y}
  18985. then :
  18986. enableval=$enable_libsamplerate_shared;
  18987. else $as_nop
  18988. enable_libsamplerate_shared=yes
  18989. fi
  18990. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18991. if test x$have_loadso != xyes && \
  18992. test x$enable_libsamplerate_shared = xyes; then
  18993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  18994. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  18995. fi
  18996. if test x$have_loadso = xyes && \
  18997. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  18998. echo "-- dynamic libsamplerate -> $samplerate_lib"
  18999. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19000. else
  19001. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19002. fi
  19003. fi
  19004. fi
  19005. }
  19006. CheckARM()
  19007. {
  19008. # Check whether --enable-arm-simd was given.
  19009. if test ${enable_arm_simd+y}
  19010. then :
  19011. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19012. else $as_nop
  19013. enable_arm_simd=no
  19014. fi
  19015. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19016. save_CFLAGS="$CFLAGS"
  19017. have_arm_simd=no
  19018. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19019. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19020. printf %s "checking for ARM SIMD... " >&6; }
  19021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19022. /* end confdefs.h. */
  19023. .text
  19024. .arch armv6
  19025. .object_arch armv4
  19026. .arm
  19027. .altmacro
  19028. #ifndef __ARM_EABI__
  19029. #error EABI is required (to be sure that calling conventions are compatible)
  19030. #endif
  19031. pld [r0]
  19032. uqadd8 r0, r0, r0
  19033. _ACEOF
  19034. if ac_fn_c_try_compile "$LINENO"
  19035. then :
  19036. have_arm_simd=yes
  19037. fi
  19038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19040. printf "%s\n" "$have_arm_simd" >&6; }
  19041. CFLAGS="$save_CFLAGS"
  19042. if test x$have_arm_simd = xyes; then
  19043. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19044. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19045. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19046. fi
  19047. fi
  19048. }
  19049. CheckNEON()
  19050. {
  19051. # Check whether --enable-arm-neon was given.
  19052. if test ${enable_arm_neon+y}
  19053. then :
  19054. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19055. else $as_nop
  19056. enable_arm_neon=no
  19057. fi
  19058. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19059. save_CFLAGS="$CFLAGS"
  19060. have_arm_neon=no
  19061. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19063. printf %s "checking for ARM NEON... " >&6; }
  19064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19065. /* end confdefs.h. */
  19066. .text
  19067. .fpu neon
  19068. .arch armv7a
  19069. .object_arch armv4
  19070. .eabi_attribute 10, 0
  19071. .arm
  19072. .altmacro
  19073. #ifndef __ARM_EABI__
  19074. #error EABI is required (to be sure that calling conventions are compatible)
  19075. #endif
  19076. pld [r0]
  19077. vmovn.u16 d0, q0
  19078. _ACEOF
  19079. if ac_fn_c_try_compile "$LINENO"
  19080. then :
  19081. have_arm_neon=yes
  19082. fi
  19083. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19085. printf "%s\n" "$have_arm_neon" >&6; }
  19086. CFLAGS="$save_CFLAGS"
  19087. if test x$have_arm_neon = xyes; then
  19088. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19089. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19090. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19091. fi
  19092. fi
  19093. }
  19094. CheckObjectiveCARC()
  19095. {
  19096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19097. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19098. have_clang_objc_arc=no
  19099. save_CFLAGS="$CFLAGS"
  19100. CFLAGS="$save_CFLAGS -fobjc-arc"
  19101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19102. /* end confdefs.h. */
  19103. int x = 0;
  19104. int
  19105. main (void)
  19106. {
  19107. ;
  19108. return 0;
  19109. }
  19110. _ACEOF
  19111. if ac_fn_c_try_compile "$LINENO"
  19112. then :
  19113. have_clang_objc_arc=yes
  19114. fi
  19115. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19117. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19118. CFLAGS="$save_CFLAGS"
  19119. if test x$have_clang_objc_arc = xyes; then
  19120. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19121. fi
  19122. }
  19123. CheckGDwarf4()
  19124. {
  19125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19126. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19127. have_gcc_gdwarf4=no
  19128. save_CFLAGS="$CFLAGS"
  19129. CFLAGS="$save_CFLAGS -gdwarf-4"
  19130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19131. /* end confdefs.h. */
  19132. int x = 0;
  19133. int
  19134. main (void)
  19135. {
  19136. ;
  19137. return 0;
  19138. }
  19139. _ACEOF
  19140. if ac_fn_c_try_compile "$LINENO"
  19141. then :
  19142. have_gcc_gdwarf4=yes
  19143. fi
  19144. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19146. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19147. CFLAGS="$save_CFLAGS"
  19148. if test x$have_gcc_gdwarf4 = xyes; then
  19149. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19150. fi
  19151. }
  19152. CheckVisibilityHidden()
  19153. {
  19154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19155. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19156. have_gcc_fvisibility=no
  19157. visibility_CFLAGS="-fvisibility=hidden"
  19158. save_CFLAGS="$CFLAGS"
  19159. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19161. /* end confdefs.h. */
  19162. #if !defined(__GNUC__) || __GNUC__ < 4
  19163. #error SDL only uses visibility attributes in GCC 4 or newer
  19164. #endif
  19165. int
  19166. main (void)
  19167. {
  19168. ;
  19169. return 0;
  19170. }
  19171. _ACEOF
  19172. if ac_fn_c_try_compile "$LINENO"
  19173. then :
  19174. have_gcc_fvisibility=yes
  19175. fi
  19176. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19178. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19179. CFLAGS="$save_CFLAGS"
  19180. if test x$have_gcc_fvisibility = xyes; then
  19181. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19182. fi
  19183. }
  19184. CheckNoStrictAliasing()
  19185. {
  19186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19187. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19188. have_gcc_no_strict_aliasing=no
  19189. save_CFLAGS="$CFLAGS"
  19190. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19192. /* end confdefs.h. */
  19193. int x = 0;
  19194. int
  19195. main (void)
  19196. {
  19197. ;
  19198. return 0;
  19199. }
  19200. _ACEOF
  19201. if ac_fn_c_try_compile "$LINENO"
  19202. then :
  19203. have_gcc_no_strict_aliasing=yes
  19204. fi
  19205. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19207. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19208. CFLAGS="$save_CFLAGS"
  19209. if test x$have_gcc_no_strict_aliasing = xyes; then
  19210. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19211. fi
  19212. }
  19213. CheckStackBoundary()
  19214. {
  19215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19216. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19217. have_gcc_preferred_stack_boundary=no
  19218. save_CFLAGS="$CFLAGS"
  19219. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19221. /* end confdefs.h. */
  19222. int x = 0;
  19223. int
  19224. main (void)
  19225. {
  19226. ;
  19227. return 0;
  19228. }
  19229. _ACEOF
  19230. if ac_fn_c_try_compile "$LINENO"
  19231. then :
  19232. have_gcc_preferred_stack_boundary=yes
  19233. fi
  19234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19236. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19237. CFLAGS="$save_CFLAGS"
  19238. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19239. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19240. fi
  19241. }
  19242. CheckWerror()
  19243. {
  19244. # Check whether --enable-werror was given.
  19245. if test ${enable_werror+y}
  19246. then :
  19247. enableval=$enable_werror; enable_werror=$enableval
  19248. else $as_nop
  19249. enable_werror=no
  19250. fi
  19251. if test x$enable_werror = xyes; then
  19252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19253. printf %s "checking for GCC -Werror option... " >&6; }
  19254. have_gcc_werror=no
  19255. save_CFLAGS="$CFLAGS"
  19256. CFLAGS="$save_CFLAGS -Werror"
  19257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19258. /* end confdefs.h. */
  19259. int x = 0;
  19260. int
  19261. main (void)
  19262. {
  19263. ;
  19264. return 0;
  19265. }
  19266. _ACEOF
  19267. if ac_fn_c_try_compile "$LINENO"
  19268. then :
  19269. have_gcc_werror=yes
  19270. fi
  19271. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19273. printf "%s\n" "$have_gcc_werror" >&6; }
  19274. CFLAGS="$save_CFLAGS"
  19275. if test x$have_gcc_werror = xyes; then
  19276. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19277. fi
  19278. fi
  19279. }
  19280. CheckNoErrorDeprecatedDeclarationsWerror()
  19281. {
  19282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19283. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19284. have_gcc_no_werror_deprecated_declarations=no
  19285. save_CFLAGS="$CFLAGS"
  19286. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19288. /* end confdefs.h. */
  19289. int x = 0;
  19290. int
  19291. main (void)
  19292. {
  19293. ;
  19294. return 0;
  19295. }
  19296. _ACEOF
  19297. if ac_fn_c_try_compile "$LINENO"
  19298. then :
  19299. have_gcc_no_werror_deprecated_declarations=yes
  19300. fi
  19301. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19303. printf "%s\n" "$have_gcc_werror" >&6; }
  19304. CFLAGS="$save_CFLAGS"
  19305. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19306. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19307. fi
  19308. }
  19309. CheckDeclarationAfterStatement()
  19310. {
  19311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19312. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19313. have_gcc_declaration_after_statement=no
  19314. save_CFLAGS="$CFLAGS"
  19315. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19317. /* end confdefs.h. */
  19318. int x = 0;
  19319. int
  19320. main (void)
  19321. {
  19322. ;
  19323. return 0;
  19324. }
  19325. _ACEOF
  19326. if ac_fn_c_try_compile "$LINENO"
  19327. then :
  19328. have_gcc_declaration_after_statement=yes
  19329. fi
  19330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19332. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19333. CFLAGS="$save_CFLAGS"
  19334. if test x$have_gcc_declaration_after_statement = xyes; then
  19335. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19336. fi
  19337. }
  19338. CheckWarnAll()
  19339. {
  19340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19341. printf %s "checking for GCC -Wall option... " >&6; }
  19342. have_gcc_Wall=no
  19343. save_CFLAGS="$CFLAGS"
  19344. CFLAGS="$save_CFLAGS -Wall"
  19345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19346. /* end confdefs.h. */
  19347. int x = 0;
  19348. int
  19349. main (void)
  19350. {
  19351. ;
  19352. return 0;
  19353. }
  19354. _ACEOF
  19355. if ac_fn_c_try_compile "$LINENO"
  19356. then :
  19357. have_gcc_Wall=yes
  19358. fi
  19359. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19361. printf "%s\n" "$have_gcc_Wall" >&6; }
  19362. CFLAGS="$save_CFLAGS"
  19363. if test x$have_gcc_Wall = xyes; then
  19364. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19366. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19367. need_gcc_Wno_multichar=no
  19368. case "$host" in
  19369. *-*-haiku*)
  19370. need_gcc_Wno_multichar=yes
  19371. ;;
  19372. esac
  19373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19374. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19375. if test x$need_gcc_Wno_multichar = xyes; then
  19376. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19377. fi
  19378. fi
  19379. }
  19380. CheckWayland()
  19381. {
  19382. # Check whether --enable-video-wayland was given.
  19383. if test ${enable_video_wayland+y}
  19384. then :
  19385. enableval=$enable_video_wayland;
  19386. else $as_nop
  19387. enable_video_wayland=yes
  19388. fi
  19389. # Check whether --enable-video-wayland-qt-touch was given.
  19390. if test ${enable_video_wayland_qt_touch+y}
  19391. then :
  19392. enableval=$enable_video_wayland_qt_touch;
  19393. else $as_nop
  19394. enable_video_wayland_qt_touch=yes
  19395. fi
  19396. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19398. printf %s "checking for Wayland support... " >&6; }
  19399. video_wayland=no
  19400. if test x$video_opengl_egl = xyes && \
  19401. test x$video_opengles_v2 = xyes; then
  19402. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19403. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19404. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19405. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19406. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19407. then :
  19408. WAYLAND_SCANNER_CODE_MODE=private-code
  19409. else $as_nop
  19410. WAYLAND_SCANNER_CODE_MODE=code
  19411. fi
  19412. video_wayland=yes
  19413. fi
  19414. fi
  19415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19416. printf "%s\n" "$video_wayland" >&6; }
  19417. if test x$video_wayland = xyes; then
  19418. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19419. if test x$enable_video_wayland_qt_touch = xyes; then
  19420. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19421. fi
  19422. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  19423. SOURCES="$SOURCES $WAYLAND_SOURCES"
  19424. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  19425. # Check whether --enable-wayland-shared was given.
  19426. if test ${enable_wayland_shared+y}
  19427. then :
  19428. enableval=$enable_wayland_shared;
  19429. else $as_nop
  19430. enable_wayland_shared=maybe
  19431. fi
  19432. case "$host" in
  19433. *)
  19434. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19435. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19436. if test x$wayland_egl_lib = x; then
  19437. # This works in Ubuntu 13.10, maybe others
  19438. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19439. fi
  19440. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19441. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19442. ;;
  19443. esac
  19444. if test x$enable_wayland_shared = xmaybe; then
  19445. enable_wayland_shared=yes
  19446. fi
  19447. if test x$have_loadso != xyes && \
  19448. test x$enable_wayland_shared = xyes; then
  19449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  19450. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  19451. enable_wayland_shared=no
  19452. fi
  19453. if test x$have_loadso = xyes && \
  19454. test x$enable_wayland_shared = xyes && \
  19455. test x$wayland_client_lib != x && \
  19456. test x$wayland_egl_lib != x && \
  19457. test x$wayland_cursor_lib != x && \
  19458. test x$xkbcommon_lib != x; then
  19459. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  19460. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  19461. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  19462. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  19463. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  19464. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  19465. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  19466. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  19467. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  19468. else
  19469. enable_wayland_shared=no
  19470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  19471. SUMMARY_video="${SUMMARY_video} wayland"
  19472. fi
  19473. have_video=yes
  19474. # Check whether --enable-libdecor was given.
  19475. if test ${enable_libdecor+y}
  19476. then :
  19477. enableval=$enable_libdecor;
  19478. else $as_nop
  19479. enable_libdecor=yes
  19480. fi
  19481. if test x$enable_libdecor = xyes; then
  19482. pkg_failed=no
  19483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  19484. printf %s "checking for libdecor-0... " >&6; }
  19485. if test -n "$DECOR_CFLAGS"; then
  19486. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  19487. elif test -n "$PKG_CONFIG"; then
  19488. if test -n "$PKG_CONFIG" && \
  19489. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19490. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19491. ac_status=$?
  19492. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19493. test $ac_status = 0; }; then
  19494. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  19495. test "x$?" != "x0" && pkg_failed=yes
  19496. else
  19497. pkg_failed=yes
  19498. fi
  19499. else
  19500. pkg_failed=untried
  19501. fi
  19502. if test -n "$DECOR_LIBS"; then
  19503. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  19504. elif test -n "$PKG_CONFIG"; then
  19505. if test -n "$PKG_CONFIG" && \
  19506. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  19507. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  19508. ac_status=$?
  19509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19510. test $ac_status = 0; }; then
  19511. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  19512. test "x$?" != "x0" && pkg_failed=yes
  19513. else
  19514. pkg_failed=yes
  19515. fi
  19516. else
  19517. pkg_failed=untried
  19518. fi
  19519. if test $pkg_failed = yes; then
  19520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19521. printf "%s\n" "no" >&6; }
  19522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19523. _pkg_short_errors_supported=yes
  19524. else
  19525. _pkg_short_errors_supported=no
  19526. fi
  19527. if test $_pkg_short_errors_supported = yes; then
  19528. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  19529. else
  19530. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  19531. fi
  19532. # Put the nasty error message in config.log where it belongs
  19533. echo "$DECOR_PKG_ERRORS" >&5
  19534. video_libdecor=no
  19535. elif test $pkg_failed = untried; then
  19536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19537. printf "%s\n" "no" >&6; }
  19538. video_libdecor=no
  19539. else
  19540. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  19541. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  19542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19543. printf "%s\n" "yes" >&6; }
  19544. video_libdecor=yes
  19545. fi
  19546. if test x$video_libdecor = xyes; then
  19547. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  19548. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  19549. # Check whether --enable-libdecor-shared was given.
  19550. if test ${enable_libdecor_shared+y}
  19551. then :
  19552. enableval=$enable_libdecor_shared;
  19553. else $as_nop
  19554. enable_libdecor_shared=yes
  19555. fi
  19556. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19557. if test x$enable_wayland_shared != xyes; then
  19558. enable_libdecor_shared=no
  19559. fi
  19560. if test x$have_loadso != xyes && \
  19561. test x$enable_libdecor_shared = xyes; then
  19562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  19563. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  19564. fi
  19565. if test x$have_loadso = xyes && \
  19566. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  19567. echo "-- dynamic libdecor -> $decor_lib"
  19568. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  19569. else
  19570. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  19571. fi
  19572. fi
  19573. fi
  19574. fi
  19575. fi
  19576. }
  19577. CheckRPI()
  19578. {
  19579. # Check whether --enable-video-rpi was given.
  19580. if test ${enable_video_rpi+y}
  19581. then :
  19582. enableval=$enable_video_rpi;
  19583. else $as_nop
  19584. enable_video_rpi=yes
  19585. fi
  19586. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  19587. pkg_failed=no
  19588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  19589. printf %s "checking for bcm_host brcmegl... " >&6; }
  19590. if test -n "$RPI_CFLAGS"; then
  19591. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  19592. elif test -n "$PKG_CONFIG"; then
  19593. if test -n "$PKG_CONFIG" && \
  19594. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19595. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19596. ac_status=$?
  19597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19598. test $ac_status = 0; }; then
  19599. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  19600. test "x$?" != "x0" && pkg_failed=yes
  19601. else
  19602. pkg_failed=yes
  19603. fi
  19604. else
  19605. pkg_failed=untried
  19606. fi
  19607. if test -n "$RPI_LIBS"; then
  19608. pkg_cv_RPI_LIBS="$RPI_LIBS"
  19609. elif test -n "$PKG_CONFIG"; then
  19610. if test -n "$PKG_CONFIG" && \
  19611. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  19612. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  19613. ac_status=$?
  19614. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19615. test $ac_status = 0; }; then
  19616. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  19617. test "x$?" != "x0" && pkg_failed=yes
  19618. else
  19619. pkg_failed=yes
  19620. fi
  19621. else
  19622. pkg_failed=untried
  19623. fi
  19624. if test $pkg_failed = yes; then
  19625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19626. printf "%s\n" "no" >&6; }
  19627. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19628. _pkg_short_errors_supported=yes
  19629. else
  19630. _pkg_short_errors_supported=no
  19631. fi
  19632. if test $_pkg_short_errors_supported = yes; then
  19633. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19634. else
  19635. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  19636. fi
  19637. # Put the nasty error message in config.log where it belongs
  19638. echo "$RPI_PKG_ERRORS" >&5
  19639. video_rpi=no
  19640. elif test $pkg_failed = untried; then
  19641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19642. printf "%s\n" "no" >&6; }
  19643. video_rpi=no
  19644. else
  19645. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  19646. RPI_LIBS=$pkg_cv_RPI_LIBS
  19647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19648. printf "%s\n" "yes" >&6; }
  19649. video_rpi=yes
  19650. fi
  19651. if test x$video_rpi = xno; then
  19652. if test x$ARCH = xnetbsd; then
  19653. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  19654. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  19655. else
  19656. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  19657. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  19658. fi
  19659. fi
  19660. # Save the original compiler flags and libraries
  19661. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19662. # Add the Raspberry Pi compiler flags and libraries
  19663. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  19664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  19665. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  19666. have_video_rpi=no
  19667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19668. /* end confdefs.h. */
  19669. #include <bcm_host.h>
  19670. #include <EGL/eglplatform.h>
  19671. int
  19672. main (void)
  19673. {
  19674. EGL_DISPMANX_WINDOW_T window;
  19675. bcm_host_init();
  19676. ;
  19677. return 0;
  19678. }
  19679. _ACEOF
  19680. if ac_fn_c_try_link "$LINENO"
  19681. then :
  19682. have_video_rpi=yes
  19683. fi
  19684. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19685. conftest$ac_exeext conftest.$ac_ext
  19686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  19687. printf "%s\n" "$have_video_rpi" >&6; }
  19688. # Restore the compiler flags and libraries
  19689. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19690. if test x$have_video_rpi = xyes; then
  19691. CFLAGS="$CFLAGS $RPI_CFLAGS"
  19692. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  19693. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  19694. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  19695. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  19696. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  19697. SUMMARY_video="${SUMMARY_video} rpi"
  19698. have_video=yes
  19699. fi
  19700. fi
  19701. }
  19702. CheckX11()
  19703. {
  19704. # Check whether --enable-video-x11 was given.
  19705. if test ${enable_video_x11+y}
  19706. then :
  19707. enableval=$enable_video_x11;
  19708. else $as_nop
  19709. enable_video_x11=yes
  19710. case "$host" in
  19711. *-*-darwin*|*-ios-*)
  19712. enable_video_x11=no
  19713. ;;
  19714. esac
  19715. fi
  19716. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  19717. case "$host" in
  19718. *-*-darwin*)
  19719. # This isn't necessary for X11, but fixes GLX detection
  19720. if test "x$x_includes" = xNONE && \
  19721. test "x$x_libraries" = xNONE && \
  19722. test -d /opt/X11/include && \
  19723. test -d /opt/X11/lib; then
  19724. x_includes="/opt/X11/include"
  19725. x_libraries="/opt/X11/lib"
  19726. fi
  19727. ;;
  19728. esac
  19729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  19730. printf %s "checking for X... " >&6; }
  19731. # Check whether --with-x was given.
  19732. if test ${with_x+y}
  19733. then :
  19734. withval=$with_x;
  19735. fi
  19736. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  19737. if test "x$with_x" = xno; then
  19738. # The user explicitly disabled X.
  19739. have_x=disabled
  19740. else
  19741. case $x_includes,$x_libraries in #(
  19742. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  19743. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  19744. then :
  19745. printf %s "(cached) " >&6
  19746. else $as_nop
  19747. # One or both of the vars are not set, and there is no cached value.
  19748. ac_x_includes=no
  19749. ac_x_libraries=no
  19750. # Do we need to do anything special at all?
  19751. ac_save_LIBS=$LIBS
  19752. LIBS="-lX11 $LIBS"
  19753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19754. /* end confdefs.h. */
  19755. #include <X11/Xlib.h>
  19756. int
  19757. main (void)
  19758. {
  19759. XrmInitialize ()
  19760. ;
  19761. return 0;
  19762. }
  19763. _ACEOF
  19764. if ac_fn_c_try_link "$LINENO"
  19765. then :
  19766. # We can compile and link X programs with no special options.
  19767. ac_x_includes=
  19768. ac_x_libraries=
  19769. fi
  19770. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19771. conftest$ac_exeext conftest.$ac_ext
  19772. LIBS="$ac_save_LIBS"
  19773. # If that didn't work, only try xmkmf and file system searches
  19774. # for native compilation.
  19775. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  19776. then :
  19777. rm -f -r conftest.dir
  19778. if mkdir conftest.dir; then
  19779. cd conftest.dir
  19780. cat >Imakefile <<'_ACEOF'
  19781. incroot:
  19782. @echo incroot='${INCROOT}'
  19783. usrlibdir:
  19784. @echo usrlibdir='${USRLIBDIR}'
  19785. libdir:
  19786. @echo libdir='${LIBDIR}'
  19787. _ACEOF
  19788. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  19789. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  19790. for ac_var in incroot usrlibdir libdir; do
  19791. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  19792. done
  19793. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  19794. for ac_extension in a so sl dylib la dll; do
  19795. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  19796. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  19797. ac_im_usrlibdir=$ac_im_libdir; break
  19798. fi
  19799. done
  19800. # Screen out bogus values from the imake configuration. They are
  19801. # bogus both because they are the default anyway, and because
  19802. # using them would break gcc on systems where it needs fixed includes.
  19803. case $ac_im_incroot in
  19804. /usr/include) ac_x_includes= ;;
  19805. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  19806. esac
  19807. case $ac_im_usrlibdir in
  19808. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  19809. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  19810. esac
  19811. fi
  19812. cd ..
  19813. rm -f -r conftest.dir
  19814. fi
  19815. # Standard set of common directories for X headers.
  19816. # Check X11 before X11Rn because it is often a symlink to the current release.
  19817. ac_x_header_dirs='
  19818. /usr/X11/include
  19819. /usr/X11R7/include
  19820. /usr/X11R6/include
  19821. /usr/X11R5/include
  19822. /usr/X11R4/include
  19823. /usr/include/X11
  19824. /usr/include/X11R7
  19825. /usr/include/X11R6
  19826. /usr/include/X11R5
  19827. /usr/include/X11R4
  19828. /usr/local/X11/include
  19829. /usr/local/X11R7/include
  19830. /usr/local/X11R6/include
  19831. /usr/local/X11R5/include
  19832. /usr/local/X11R4/include
  19833. /usr/local/include/X11
  19834. /usr/local/include/X11R7
  19835. /usr/local/include/X11R6
  19836. /usr/local/include/X11R5
  19837. /usr/local/include/X11R4
  19838. /opt/X11/include
  19839. /usr/X386/include
  19840. /usr/x386/include
  19841. /usr/XFree86/include/X11
  19842. /usr/include
  19843. /usr/local/include
  19844. /usr/unsupported/include
  19845. /usr/athena/include
  19846. /usr/local/x11r5/include
  19847. /usr/lpp/Xamples/include
  19848. /usr/openwin/include
  19849. /usr/openwin/share/include'
  19850. if test "$ac_x_includes" = no; then
  19851. # Guess where to find include files, by looking for Xlib.h.
  19852. # First, try using that file with no special directory specified.
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. #include <X11/Xlib.h>
  19856. _ACEOF
  19857. if ac_fn_c_try_cpp "$LINENO"
  19858. then :
  19859. # We can compile using X headers with no special include directory.
  19860. ac_x_includes=
  19861. else $as_nop
  19862. for ac_dir in $ac_x_header_dirs; do
  19863. if test -r "$ac_dir/X11/Xlib.h"; then
  19864. ac_x_includes=$ac_dir
  19865. break
  19866. fi
  19867. done
  19868. fi
  19869. rm -f conftest.err conftest.i conftest.$ac_ext
  19870. fi # $ac_x_includes = no
  19871. if test "$ac_x_libraries" = no; then
  19872. # Check for the libraries.
  19873. # See if we find them without any special options.
  19874. # Don't add to $LIBS permanently.
  19875. ac_save_LIBS=$LIBS
  19876. LIBS="-lX11 $LIBS"
  19877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19878. /* end confdefs.h. */
  19879. #include <X11/Xlib.h>
  19880. int
  19881. main (void)
  19882. {
  19883. XrmInitialize ()
  19884. ;
  19885. return 0;
  19886. }
  19887. _ACEOF
  19888. if ac_fn_c_try_link "$LINENO"
  19889. then :
  19890. LIBS=$ac_save_LIBS
  19891. # We can link X programs with no special library path.
  19892. ac_x_libraries=
  19893. else $as_nop
  19894. LIBS=$ac_save_LIBS
  19895. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  19896. do
  19897. # Don't even attempt the hair of trying to link an X program!
  19898. for ac_extension in a so sl dylib la dll; do
  19899. if test -r "$ac_dir/libX11.$ac_extension"; then
  19900. ac_x_libraries=$ac_dir
  19901. break 2
  19902. fi
  19903. done
  19904. done
  19905. fi
  19906. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19907. conftest$ac_exeext conftest.$ac_ext
  19908. fi # $ac_x_libraries = no
  19909. fi
  19910. # Record the results.
  19911. case $ac_x_includes,$ac_x_libraries in #(
  19912. no,* | *,no | *\'*) :
  19913. # Didn't find X, or a directory has "'" in its name.
  19914. ac_cv_have_x="have_x=no" ;; #(
  19915. *) :
  19916. # Record where we found X for the cache.
  19917. ac_cv_have_x="have_x=yes\
  19918. ac_x_includes='$ac_x_includes'\
  19919. ac_x_libraries='$ac_x_libraries'" ;;
  19920. esac
  19921. fi
  19922. ;; #(
  19923. *) have_x=yes;;
  19924. esac
  19925. eval "$ac_cv_have_x"
  19926. fi # $with_x != no
  19927. if test "$have_x" != yes; then
  19928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  19929. printf "%s\n" "$have_x" >&6; }
  19930. no_x=yes
  19931. else
  19932. # If each of the values was on the command line, it overrides each guess.
  19933. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  19934. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  19935. # Update the cache value to reflect the command line values.
  19936. ac_cv_have_x="have_x=yes\
  19937. ac_x_includes='$x_includes'\
  19938. ac_x_libraries='$x_libraries'"
  19939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  19940. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  19941. fi
  19942. if test "$no_x" = yes; then
  19943. # Not all programs may use this symbol, but it does not hurt to define it.
  19944. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  19945. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  19946. else
  19947. if test -n "$x_includes"; then
  19948. X_CFLAGS="$X_CFLAGS -I$x_includes"
  19949. fi
  19950. # It would also be nice to do this for all -L options, not just this one.
  19951. if test -n "$x_libraries"; then
  19952. X_LIBS="$X_LIBS -L$x_libraries"
  19953. # For Solaris; some versions of Sun CC require a space after -R and
  19954. # others require no space. Words are not sufficient . . . .
  19955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  19956. printf %s "checking whether -R must be followed by a space... " >&6; }
  19957. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  19958. ac_xsave_c_werror_flag=$ac_c_werror_flag
  19959. ac_c_werror_flag=yes
  19960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19961. /* end confdefs.h. */
  19962. int
  19963. main (void)
  19964. {
  19965. ;
  19966. return 0;
  19967. }
  19968. _ACEOF
  19969. if ac_fn_c_try_link "$LINENO"
  19970. then :
  19971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19972. printf "%s\n" "no" >&6; }
  19973. X_LIBS="$X_LIBS -R$x_libraries"
  19974. else $as_nop
  19975. LIBS="$ac_xsave_LIBS -R $x_libraries"
  19976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19977. /* end confdefs.h. */
  19978. int
  19979. main (void)
  19980. {
  19981. ;
  19982. return 0;
  19983. }
  19984. _ACEOF
  19985. if ac_fn_c_try_link "$LINENO"
  19986. then :
  19987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19988. printf "%s\n" "yes" >&6; }
  19989. X_LIBS="$X_LIBS -R $x_libraries"
  19990. else $as_nop
  19991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  19992. printf "%s\n" "neither works" >&6; }
  19993. fi
  19994. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19995. conftest$ac_exeext conftest.$ac_ext
  19996. fi
  19997. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19998. conftest$ac_exeext conftest.$ac_ext
  19999. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20000. LIBS=$ac_xsave_LIBS
  20001. fi
  20002. # Check for system-dependent libraries X programs must link with.
  20003. # Do this before checking for the system-independent R6 libraries
  20004. # (-lICE), since we may need -lsocket or whatever for X linking.
  20005. if test "$ISC" = yes; then
  20006. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20007. else
  20008. # Martyn Johnson says this is needed for Ultrix, if the X
  20009. # libraries were built with DECnet support. And Karl Berry says
  20010. # the Alpha needs dnet_stub (dnet does not exist).
  20011. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20013. /* end confdefs.h. */
  20014. /* Override any GCC internal prototype to avoid an error.
  20015. Use char because int might match the return type of a GCC
  20016. builtin and then its argument prototype would still apply. */
  20017. char XOpenDisplay ();
  20018. int
  20019. main (void)
  20020. {
  20021. return XOpenDisplay ();
  20022. ;
  20023. return 0;
  20024. }
  20025. _ACEOF
  20026. if ac_fn_c_try_link "$LINENO"
  20027. then :
  20028. else $as_nop
  20029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20030. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20031. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20032. then :
  20033. printf %s "(cached) " >&6
  20034. else $as_nop
  20035. ac_check_lib_save_LIBS=$LIBS
  20036. LIBS="-ldnet $LIBS"
  20037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20038. /* end confdefs.h. */
  20039. /* Override any GCC internal prototype to avoid an error.
  20040. Use char because int might match the return type of a GCC
  20041. builtin and then its argument prototype would still apply. */
  20042. char dnet_ntoa ();
  20043. int
  20044. main (void)
  20045. {
  20046. return dnet_ntoa ();
  20047. ;
  20048. return 0;
  20049. }
  20050. _ACEOF
  20051. if ac_fn_c_try_link "$LINENO"
  20052. then :
  20053. ac_cv_lib_dnet_dnet_ntoa=yes
  20054. else $as_nop
  20055. ac_cv_lib_dnet_dnet_ntoa=no
  20056. fi
  20057. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20058. conftest$ac_exeext conftest.$ac_ext
  20059. LIBS=$ac_check_lib_save_LIBS
  20060. fi
  20061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20062. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20063. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20064. then :
  20065. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20066. fi
  20067. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20069. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20070. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20071. then :
  20072. printf %s "(cached) " >&6
  20073. else $as_nop
  20074. ac_check_lib_save_LIBS=$LIBS
  20075. LIBS="-ldnet_stub $LIBS"
  20076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20077. /* end confdefs.h. */
  20078. /* Override any GCC internal prototype to avoid an error.
  20079. Use char because int might match the return type of a GCC
  20080. builtin and then its argument prototype would still apply. */
  20081. char dnet_ntoa ();
  20082. int
  20083. main (void)
  20084. {
  20085. return dnet_ntoa ();
  20086. ;
  20087. return 0;
  20088. }
  20089. _ACEOF
  20090. if ac_fn_c_try_link "$LINENO"
  20091. then :
  20092. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20093. else $as_nop
  20094. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20095. fi
  20096. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20097. conftest$ac_exeext conftest.$ac_ext
  20098. LIBS=$ac_check_lib_save_LIBS
  20099. fi
  20100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20101. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20102. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20103. then :
  20104. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20105. fi
  20106. fi
  20107. fi
  20108. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20109. conftest$ac_exeext conftest.$ac_ext
  20110. LIBS="$ac_xsave_LIBS"
  20111. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20112. # to get the SysV transport functions.
  20113. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20114. # needs -lnsl.
  20115. # The nsl library prevents programs from opening the X display
  20116. # on Irix 5.2, according to T.E. Dickey.
  20117. # The functions gethostbyname, getservbyname, and inet_addr are
  20118. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20119. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20120. if test "x$ac_cv_func_gethostbyname" = xyes
  20121. then :
  20122. fi
  20123. if test $ac_cv_func_gethostbyname = no; then
  20124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20125. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20126. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20127. then :
  20128. printf %s "(cached) " >&6
  20129. else $as_nop
  20130. ac_check_lib_save_LIBS=$LIBS
  20131. LIBS="-lnsl $LIBS"
  20132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20133. /* end confdefs.h. */
  20134. /* Override any GCC internal prototype to avoid an error.
  20135. Use char because int might match the return type of a GCC
  20136. builtin and then its argument prototype would still apply. */
  20137. char gethostbyname ();
  20138. int
  20139. main (void)
  20140. {
  20141. return gethostbyname ();
  20142. ;
  20143. return 0;
  20144. }
  20145. _ACEOF
  20146. if ac_fn_c_try_link "$LINENO"
  20147. then :
  20148. ac_cv_lib_nsl_gethostbyname=yes
  20149. else $as_nop
  20150. ac_cv_lib_nsl_gethostbyname=no
  20151. fi
  20152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20153. conftest$ac_exeext conftest.$ac_ext
  20154. LIBS=$ac_check_lib_save_LIBS
  20155. fi
  20156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20157. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20158. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20159. then :
  20160. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20161. fi
  20162. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20164. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20165. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20166. then :
  20167. printf %s "(cached) " >&6
  20168. else $as_nop
  20169. ac_check_lib_save_LIBS=$LIBS
  20170. LIBS="-lbsd $LIBS"
  20171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20172. /* end confdefs.h. */
  20173. /* Override any GCC internal prototype to avoid an error.
  20174. Use char because int might match the return type of a GCC
  20175. builtin and then its argument prototype would still apply. */
  20176. char gethostbyname ();
  20177. int
  20178. main (void)
  20179. {
  20180. return gethostbyname ();
  20181. ;
  20182. return 0;
  20183. }
  20184. _ACEOF
  20185. if ac_fn_c_try_link "$LINENO"
  20186. then :
  20187. ac_cv_lib_bsd_gethostbyname=yes
  20188. else $as_nop
  20189. ac_cv_lib_bsd_gethostbyname=no
  20190. fi
  20191. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20192. conftest$ac_exeext conftest.$ac_ext
  20193. LIBS=$ac_check_lib_save_LIBS
  20194. fi
  20195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20196. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20197. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20198. then :
  20199. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20200. fi
  20201. fi
  20202. fi
  20203. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20204. # socket/setsockopt and other routines are undefined under SCO ODT
  20205. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20206. # on later versions), says Simon Leinen: it contains gethostby*
  20207. # variants that don't use the name server (or something). -lsocket
  20208. # must be given before -lnsl if both are needed. We assume that
  20209. # if connect needs -lnsl, so does gethostbyname.
  20210. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20211. if test "x$ac_cv_func_connect" = xyes
  20212. then :
  20213. fi
  20214. if test $ac_cv_func_connect = no; then
  20215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20216. printf %s "checking for connect in -lsocket... " >&6; }
  20217. if test ${ac_cv_lib_socket_connect+y}
  20218. then :
  20219. printf %s "(cached) " >&6
  20220. else $as_nop
  20221. ac_check_lib_save_LIBS=$LIBS
  20222. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20224. /* end confdefs.h. */
  20225. /* Override any GCC internal prototype to avoid an error.
  20226. Use char because int might match the return type of a GCC
  20227. builtin and then its argument prototype would still apply. */
  20228. char connect ();
  20229. int
  20230. main (void)
  20231. {
  20232. return connect ();
  20233. ;
  20234. return 0;
  20235. }
  20236. _ACEOF
  20237. if ac_fn_c_try_link "$LINENO"
  20238. then :
  20239. ac_cv_lib_socket_connect=yes
  20240. else $as_nop
  20241. ac_cv_lib_socket_connect=no
  20242. fi
  20243. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20244. conftest$ac_exeext conftest.$ac_ext
  20245. LIBS=$ac_check_lib_save_LIBS
  20246. fi
  20247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20248. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20249. if test "x$ac_cv_lib_socket_connect" = xyes
  20250. then :
  20251. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20252. fi
  20253. fi
  20254. # Guillermo Gomez says -lposix is necessary on A/UX.
  20255. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20256. if test "x$ac_cv_func_remove" = xyes
  20257. then :
  20258. fi
  20259. if test $ac_cv_func_remove = no; then
  20260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20261. printf %s "checking for remove in -lposix... " >&6; }
  20262. if test ${ac_cv_lib_posix_remove+y}
  20263. then :
  20264. printf %s "(cached) " >&6
  20265. else $as_nop
  20266. ac_check_lib_save_LIBS=$LIBS
  20267. LIBS="-lposix $LIBS"
  20268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20269. /* end confdefs.h. */
  20270. /* Override any GCC internal prototype to avoid an error.
  20271. Use char because int might match the return type of a GCC
  20272. builtin and then its argument prototype would still apply. */
  20273. char remove ();
  20274. int
  20275. main (void)
  20276. {
  20277. return remove ();
  20278. ;
  20279. return 0;
  20280. }
  20281. _ACEOF
  20282. if ac_fn_c_try_link "$LINENO"
  20283. then :
  20284. ac_cv_lib_posix_remove=yes
  20285. else $as_nop
  20286. ac_cv_lib_posix_remove=no
  20287. fi
  20288. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20289. conftest$ac_exeext conftest.$ac_ext
  20290. LIBS=$ac_check_lib_save_LIBS
  20291. fi
  20292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20293. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20294. if test "x$ac_cv_lib_posix_remove" = xyes
  20295. then :
  20296. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20297. fi
  20298. fi
  20299. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20300. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20301. if test "x$ac_cv_func_shmat" = xyes
  20302. then :
  20303. fi
  20304. if test $ac_cv_func_shmat = no; then
  20305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20306. printf %s "checking for shmat in -lipc... " >&6; }
  20307. if test ${ac_cv_lib_ipc_shmat+y}
  20308. then :
  20309. printf %s "(cached) " >&6
  20310. else $as_nop
  20311. ac_check_lib_save_LIBS=$LIBS
  20312. LIBS="-lipc $LIBS"
  20313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20314. /* end confdefs.h. */
  20315. /* Override any GCC internal prototype to avoid an error.
  20316. Use char because int might match the return type of a GCC
  20317. builtin and then its argument prototype would still apply. */
  20318. char shmat ();
  20319. int
  20320. main (void)
  20321. {
  20322. return shmat ();
  20323. ;
  20324. return 0;
  20325. }
  20326. _ACEOF
  20327. if ac_fn_c_try_link "$LINENO"
  20328. then :
  20329. ac_cv_lib_ipc_shmat=yes
  20330. else $as_nop
  20331. ac_cv_lib_ipc_shmat=no
  20332. fi
  20333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20334. conftest$ac_exeext conftest.$ac_ext
  20335. LIBS=$ac_check_lib_save_LIBS
  20336. fi
  20337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20338. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20339. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20340. then :
  20341. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20342. fi
  20343. fi
  20344. fi
  20345. # Check for libraries that X11R6 Xt/Xaw programs need.
  20346. ac_save_LDFLAGS=$LDFLAGS
  20347. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20348. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20349. # check for ICE first), but we must link in the order -lSM -lICE or
  20350. # we get undefined symbols. So assume we have SM if we have ICE.
  20351. # These have to be linked with before -lX11, unlike the other
  20352. # libraries we check for below, so use a different variable.
  20353. # John Interrante, Karl Berry
  20354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20355. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20356. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20357. then :
  20358. printf %s "(cached) " >&6
  20359. else $as_nop
  20360. ac_check_lib_save_LIBS=$LIBS
  20361. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20363. /* end confdefs.h. */
  20364. /* Override any GCC internal prototype to avoid an error.
  20365. Use char because int might match the return type of a GCC
  20366. builtin and then its argument prototype would still apply. */
  20367. char IceConnectionNumber ();
  20368. int
  20369. main (void)
  20370. {
  20371. return IceConnectionNumber ();
  20372. ;
  20373. return 0;
  20374. }
  20375. _ACEOF
  20376. if ac_fn_c_try_link "$LINENO"
  20377. then :
  20378. ac_cv_lib_ICE_IceConnectionNumber=yes
  20379. else $as_nop
  20380. ac_cv_lib_ICE_IceConnectionNumber=no
  20381. fi
  20382. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20383. conftest$ac_exeext conftest.$ac_ext
  20384. LIBS=$ac_check_lib_save_LIBS
  20385. fi
  20386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20387. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20388. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20389. then :
  20390. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  20391. fi
  20392. LDFLAGS=$ac_save_LDFLAGS
  20393. fi
  20394. if test x$have_x = xyes; then
  20395. # Check whether --enable-x11-shared was given.
  20396. if test ${enable_x11_shared+y}
  20397. then :
  20398. enableval=$enable_x11_shared;
  20399. else $as_nop
  20400. enable_x11_shared=maybe
  20401. fi
  20402. case "$host" in
  20403. *-*-darwin*)
  20404. # Apple now puts this in /opt/X11
  20405. x11_lib='/opt/X11/lib/libX11.6.dylib'
  20406. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  20407. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  20408. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  20409. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  20410. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  20411. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  20412. xss_lib='/opt/X11/lib/libXss.1.dylib'
  20413. ;;
  20414. *-*-openbsd*)
  20415. x11_lib='libX11.so'
  20416. x11ext_lib='libXext.so'
  20417. xcursor_lib='libXcursor.so'
  20418. xinput_lib='libXi.so'
  20419. xfixes_lib='libXfixes.so'
  20420. xrandr_lib='libXrandr.so'
  20421. xrender_lib='libXrender.so'
  20422. xss_lib='libXss.so'
  20423. ;;
  20424. *)
  20425. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20426. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20427. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20428. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20429. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20430. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20431. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20432. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  20433. ;;
  20434. esac
  20435. if test x$ac_cv_func_shmat != xyes; then
  20436. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  20437. fi
  20438. CFLAGS="$CFLAGS $X_CFLAGS"
  20439. LDFLAGS="$LDFLAGS $X_LIBS"
  20440. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  20441. #include <X11/Xproto.h>
  20442. "
  20443. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  20444. then :
  20445. have_xext_h_hdr=yes
  20446. else $as_nop
  20447. have_xext_h_hdr=no
  20448. fi
  20449. if test x$have_xext_h_hdr != xyes; then
  20450. as_fn_error $? "
  20451. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  20452. " "$LINENO" 5
  20453. fi
  20454. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  20455. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  20456. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  20457. # Needed so SDL applications can include SDL_syswm.h
  20458. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  20459. if test x$enable_x11_shared = xmaybe; then
  20460. enable_x11_shared=yes
  20461. fi
  20462. if test x$have_loadso != xyes && \
  20463. test x$enable_x11_shared = xyes; then
  20464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  20465. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  20466. enable_x11_shared=no
  20467. fi
  20468. if test x$have_loadso = xyes && \
  20469. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  20470. echo "-- dynamic libX11 -> $x11_lib"
  20471. echo "-- dynamic libX11ext -> $x11ext_lib"
  20472. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  20473. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  20474. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  20475. else
  20476. enable_x11_shared=no
  20477. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  20478. SUMMARY_video="${SUMMARY_video} x11"
  20479. fi
  20480. have_video=yes
  20481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  20482. printf %s "checking for XGenericEvent... " >&6; }
  20483. have_XGenericEvent=no
  20484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20485. /* end confdefs.h. */
  20486. #include <X11/Xlib.h>
  20487. int
  20488. main (void)
  20489. {
  20490. Display *display;
  20491. XEvent event;
  20492. XGenericEventCookie *cookie = &event.xcookie;
  20493. XNextEvent(display, &event);
  20494. XGetEventData(display, cookie);
  20495. XFreeEventData(display, cookie);
  20496. ;
  20497. return 0;
  20498. }
  20499. _ACEOF
  20500. if ac_fn_c_try_compile "$LINENO"
  20501. then :
  20502. have_XGenericEvent=yes
  20503. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  20504. fi
  20505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  20507. printf "%s\n" "$have_XGenericEvent" >&6; }
  20508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  20509. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  20510. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  20511. then :
  20512. printf %s "(cached) " >&6
  20513. else $as_nop
  20514. ac_check_lib_save_LIBS=$LIBS
  20515. LIBS="-lX11 $LIBS"
  20516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20517. /* end confdefs.h. */
  20518. /* Override any GCC internal prototype to avoid an error.
  20519. Use char because int might match the return type of a GCC
  20520. builtin and then its argument prototype would still apply. */
  20521. char XkbKeycodeToKeysym ();
  20522. int
  20523. main (void)
  20524. {
  20525. return XkbKeycodeToKeysym ();
  20526. ;
  20527. return 0;
  20528. }
  20529. _ACEOF
  20530. if ac_fn_c_try_link "$LINENO"
  20531. then :
  20532. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  20533. else $as_nop
  20534. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  20535. fi
  20536. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20537. conftest$ac_exeext conftest.$ac_ext
  20538. LIBS=$ac_check_lib_save_LIBS
  20539. fi
  20540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  20541. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  20542. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  20543. then :
  20544. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  20545. fi
  20546. # Check whether --enable-video-x11-xcursor was given.
  20547. if test ${enable_video_x11_xcursor+y}
  20548. then :
  20549. enableval=$enable_video_x11_xcursor;
  20550. else $as_nop
  20551. enable_video_x11_xcursor=yes
  20552. fi
  20553. if test x$enable_video_x11_xcursor = xyes; then
  20554. definitely_enable_video_x11_xcursor=no
  20555. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  20556. "
  20557. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  20558. then :
  20559. have_xcursor_h_hdr=yes
  20560. else $as_nop
  20561. have_xcursor_h_hdr=no
  20562. fi
  20563. if test x$have_xcursor_h_hdr = xyes; then
  20564. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  20565. echo "-- dynamic libXcursor -> $xcursor_lib"
  20566. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  20567. definitely_enable_video_x11_xcursor=yes
  20568. else
  20569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  20570. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  20571. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  20572. then :
  20573. printf %s "(cached) " >&6
  20574. else $as_nop
  20575. ac_check_lib_save_LIBS=$LIBS
  20576. LIBS="-lXcursor $LIBS"
  20577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20578. /* end confdefs.h. */
  20579. /* Override any GCC internal prototype to avoid an error.
  20580. Use char because int might match the return type of a GCC
  20581. builtin and then its argument prototype would still apply. */
  20582. char XcursorImageCreate ();
  20583. int
  20584. main (void)
  20585. {
  20586. return XcursorImageCreate ();
  20587. ;
  20588. return 0;
  20589. }
  20590. _ACEOF
  20591. if ac_fn_c_try_link "$LINENO"
  20592. then :
  20593. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  20594. else $as_nop
  20595. ac_cv_lib_Xcursor_XcursorImageCreate=no
  20596. fi
  20597. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20598. conftest$ac_exeext conftest.$ac_ext
  20599. LIBS=$ac_check_lib_save_LIBS
  20600. fi
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  20602. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  20603. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  20604. then :
  20605. have_xcursor_lib=yes
  20606. fi
  20607. if test x$have_xcursor_lib = xyes ; then
  20608. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  20609. definitely_enable_video_x11_xcursor=yes
  20610. fi
  20611. fi
  20612. fi
  20613. fi
  20614. if test x$definitely_enable_video_x11_xcursor = xyes; then
  20615. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  20616. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  20617. fi
  20618. # Check whether --enable-video-x11-xdbe was given.
  20619. if test ${enable_video_x11_xdbe+y}
  20620. then :
  20621. enableval=$enable_video_x11_xdbe;
  20622. else $as_nop
  20623. enable_video_x11_xdbe=yes
  20624. fi
  20625. if test x$enable_video_x11_xdbe = xyes; then
  20626. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  20627. "
  20628. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  20629. then :
  20630. have_dbe_h_hdr=yes
  20631. else $as_nop
  20632. have_dbe_h_hdr=no
  20633. fi
  20634. if test x$have_dbe_h_hdr = xyes; then
  20635. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  20636. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  20637. fi
  20638. fi
  20639. # Check whether --enable-video-x11-xinput was given.
  20640. if test ${enable_video_x11_xinput+y}
  20641. then :
  20642. enableval=$enable_video_x11_xinput;
  20643. else $as_nop
  20644. enable_video_x11_xinput=yes
  20645. fi
  20646. if test x$enable_video_x11_xinput = xyes; then
  20647. definitely_enable_video_x11_xinput=no
  20648. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  20649. "
  20650. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  20651. then :
  20652. have_xinput_h_hdr=yes
  20653. else $as_nop
  20654. have_xinput_h_hdr=no
  20655. fi
  20656. if test x$have_xinput_h_hdr = xyes; then
  20657. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  20658. echo "-- dynamic libXi -> $xinput_lib"
  20659. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  20660. definitely_enable_video_x11_xinput=yes
  20661. else
  20662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  20663. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  20664. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  20665. then :
  20666. printf %s "(cached) " >&6
  20667. else $as_nop
  20668. ac_check_lib_save_LIBS=$LIBS
  20669. LIBS="-lXi $LIBS"
  20670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20671. /* end confdefs.h. */
  20672. /* Override any GCC internal prototype to avoid an error.
  20673. Use char because int might match the return type of a GCC
  20674. builtin and then its argument prototype would still apply. */
  20675. char XOpenDevice ();
  20676. int
  20677. main (void)
  20678. {
  20679. return XOpenDevice ();
  20680. ;
  20681. return 0;
  20682. }
  20683. _ACEOF
  20684. if ac_fn_c_try_link "$LINENO"
  20685. then :
  20686. ac_cv_lib_Xi_XOpenDevice=yes
  20687. else $as_nop
  20688. ac_cv_lib_Xi_XOpenDevice=no
  20689. fi
  20690. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20691. conftest$ac_exeext conftest.$ac_ext
  20692. LIBS=$ac_check_lib_save_LIBS
  20693. fi
  20694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  20695. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  20696. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  20697. then :
  20698. have_xinput_lib=yes
  20699. fi
  20700. if test x$have_xinput_lib = xyes ; then
  20701. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  20702. definitely_enable_video_x11_xinput=yes
  20703. fi
  20704. fi
  20705. fi
  20706. fi
  20707. if test x$definitely_enable_video_x11_xinput = xyes; then
  20708. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  20709. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  20711. printf %s "checking for xinput2 multitouch... " >&6; }
  20712. have_xinput2_multitouch=no
  20713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20714. /* end confdefs.h. */
  20715. #include <X11/Xlib.h>
  20716. #include <X11/Xproto.h>
  20717. #include <X11/extensions/XInput2.h>
  20718. int
  20719. main (void)
  20720. {
  20721. int event_type = XI_TouchBegin;
  20722. XITouchClassInfo *t;
  20723. ;
  20724. return 0;
  20725. }
  20726. _ACEOF
  20727. if ac_fn_c_try_compile "$LINENO"
  20728. then :
  20729. have_xinput2_multitouch=yes
  20730. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  20731. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  20732. fi
  20733. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  20735. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  20736. fi
  20737. # Check whether --enable-video-x11-xfixes was given.
  20738. if test ${enable_video_x11_xfixes+y}
  20739. then :
  20740. enableval=$enable_video_x11_xfixes;
  20741. else $as_nop
  20742. enable_video_x11_xfixes=yes
  20743. fi
  20744. if test x$enable_video_x11_xfixes = xyes; then
  20745. definitely_enable_video_x11_xfixes=no
  20746. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  20747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  20748. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  20749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20750. /* end confdefs.h. */
  20751. #include <X11/Xlib.h>
  20752. #include <X11/Xproto.h>
  20753. #include <X11/extensions/XInput2.h>
  20754. #include <X11/extensions/Xfixes.h>
  20755. int
  20756. main (void)
  20757. {
  20758. BarrierEventID b;
  20759. ;
  20760. return 0;
  20761. }
  20762. _ACEOF
  20763. if ac_fn_c_try_compile "$LINENO"
  20764. then :
  20765. have_xfixes_h_hdr=yes
  20766. else $as_nop
  20767. have_xfixes_h_hdr=no
  20768. fi
  20769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  20771. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  20772. if test x$have_xfixes_h_hdr = xyes; then
  20773. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  20774. echo "-- dynamic libXfixes -> $xfixes_lib"
  20775. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  20776. definitely_enable_video_x11_xfixes=yes
  20777. else
  20778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  20779. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  20780. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  20781. then :
  20782. printf %s "(cached) " >&6
  20783. else $as_nop
  20784. ac_check_lib_save_LIBS=$LIBS
  20785. LIBS="-lXfixes $LIBS"
  20786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20787. /* end confdefs.h. */
  20788. /* Override any GCC internal prototype to avoid an error.
  20789. Use char because int might match the return type of a GCC
  20790. builtin and then its argument prototype would still apply. */
  20791. char XFixesCreatePointerBarrier ();
  20792. int
  20793. main (void)
  20794. {
  20795. return XFixesCreatePointerBarrier ();
  20796. ;
  20797. return 0;
  20798. }
  20799. _ACEOF
  20800. if ac_fn_c_try_link "$LINENO"
  20801. then :
  20802. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  20803. else $as_nop
  20804. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  20805. fi
  20806. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20807. conftest$ac_exeext conftest.$ac_ext
  20808. LIBS=$ac_check_lib_save_LIBS
  20809. fi
  20810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  20811. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  20812. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  20813. then :
  20814. have_xfixes_lib=yes
  20815. fi
  20816. if test x$have_xfixes_lib = xyes ; then
  20817. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  20818. definitely_enable_video_x11_xfixes=yes
  20819. fi
  20820. fi
  20821. fi
  20822. fi
  20823. if test x$definitely_enable_video_x11_xfixes = xyes; then
  20824. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  20825. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  20826. fi
  20827. # Check whether --enable-video-x11-xrandr was given.
  20828. if test ${enable_video_x11_xrandr+y}
  20829. then :
  20830. enableval=$enable_video_x11_xrandr;
  20831. else $as_nop
  20832. enable_video_x11_xrandr=yes
  20833. fi
  20834. if test x$enable_video_x11_xrandr = xyes; then
  20835. definitely_enable_video_x11_xrandr=no
  20836. have_xrandr_h_hdr=no
  20837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20838. /* end confdefs.h. */
  20839. #include <X11/Xlib.h>
  20840. #include <X11/extensions/Xrandr.h>
  20841. int
  20842. main (void)
  20843. {
  20844. XRRScreenResources *res = NULL;
  20845. ;
  20846. return 0;
  20847. }
  20848. _ACEOF
  20849. if ac_fn_c_try_compile "$LINENO"
  20850. then :
  20851. have_xrandr_h_hdr=yes
  20852. fi
  20853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20854. if test x$have_xrandr_h_hdr = xyes; then
  20855. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  20856. echo "-- dynamic libXrandr -> $xrandr_lib"
  20857. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  20858. definitely_enable_video_x11_xrandr=yes
  20859. else
  20860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  20861. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  20862. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  20863. then :
  20864. printf %s "(cached) " >&6
  20865. else $as_nop
  20866. ac_check_lib_save_LIBS=$LIBS
  20867. LIBS="-lXrandr $LIBS"
  20868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20869. /* end confdefs.h. */
  20870. /* Override any GCC internal prototype to avoid an error.
  20871. Use char because int might match the return type of a GCC
  20872. builtin and then its argument prototype would still apply. */
  20873. char XRRQueryExtension ();
  20874. int
  20875. main (void)
  20876. {
  20877. return XRRQueryExtension ();
  20878. ;
  20879. return 0;
  20880. }
  20881. _ACEOF
  20882. if ac_fn_c_try_link "$LINENO"
  20883. then :
  20884. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  20885. else $as_nop
  20886. ac_cv_lib_Xrandr_XRRQueryExtension=no
  20887. fi
  20888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20889. conftest$ac_exeext conftest.$ac_ext
  20890. LIBS=$ac_check_lib_save_LIBS
  20891. fi
  20892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  20893. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  20894. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  20895. then :
  20896. have_xrandr_lib=yes
  20897. fi
  20898. if test x$have_xrandr_lib = xyes ; then
  20899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  20900. definitely_enable_video_x11_xrandr=yes
  20901. fi
  20902. fi
  20903. fi
  20904. fi
  20905. if test x$definitely_enable_video_x11_xrandr = xyes; then
  20906. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  20907. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  20908. fi
  20909. # Check whether --enable-video-x11-scrnsaver was given.
  20910. if test ${enable_video_x11_scrnsaver+y}
  20911. then :
  20912. enableval=$enable_video_x11_scrnsaver;
  20913. else $as_nop
  20914. enable_video_x11_scrnsaver=yes
  20915. fi
  20916. if test x$enable_video_x11_scrnsaver = xyes; then
  20917. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  20918. "
  20919. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  20920. then :
  20921. have_scrnsaver_h_hdr=yes
  20922. else $as_nop
  20923. have_scrnsaver_h_hdr=no
  20924. fi
  20925. if test x$have_scrnsaver_h_hdr = xyes; then
  20926. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  20927. echo "-- dynamic libXss -> $xss_lib"
  20928. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  20929. definitely_enable_video_x11_scrnsaver=yes
  20930. else
  20931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  20932. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  20933. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  20934. then :
  20935. printf %s "(cached) " >&6
  20936. else $as_nop
  20937. ac_check_lib_save_LIBS=$LIBS
  20938. LIBS="-lXss $LIBS"
  20939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20940. /* end confdefs.h. */
  20941. /* Override any GCC internal prototype to avoid an error.
  20942. Use char because int might match the return type of a GCC
  20943. builtin and then its argument prototype would still apply. */
  20944. char XScreenSaverSuspend ();
  20945. int
  20946. main (void)
  20947. {
  20948. return XScreenSaverSuspend ();
  20949. ;
  20950. return 0;
  20951. }
  20952. _ACEOF
  20953. if ac_fn_c_try_link "$LINENO"
  20954. then :
  20955. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  20956. else $as_nop
  20957. ac_cv_lib_Xss_XScreenSaverSuspend=no
  20958. fi
  20959. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20960. conftest$ac_exeext conftest.$ac_ext
  20961. LIBS=$ac_check_lib_save_LIBS
  20962. fi
  20963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  20964. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  20965. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  20966. then :
  20967. have_xss_lib=yes
  20968. fi
  20969. if test x$have_xss_lib = xyes ; then
  20970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  20971. definitely_enable_video_x11_scrnsaver=yes
  20972. fi
  20973. fi
  20974. fi
  20975. fi
  20976. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  20977. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  20978. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  20979. fi
  20980. # Check whether --enable-video-x11-xshape was given.
  20981. if test ${enable_video_x11_xshape+y}
  20982. then :
  20983. enableval=$enable_video_x11_xshape;
  20984. else $as_nop
  20985. enable_video_x11_xshape=yes
  20986. fi
  20987. if test x$enable_video_x11_xshape = xyes; then
  20988. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  20989. "
  20990. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  20991. then :
  20992. have_shape_h_hdr=yes
  20993. else $as_nop
  20994. have_shape_h_hdr=no
  20995. fi
  20996. if test x$have_shape_h_hdr = xyes; then
  20997. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  20998. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  20999. fi
  21000. fi
  21001. fi
  21002. fi
  21003. if test x$have_x != xyes; then
  21004. # Prevent Mesa from including X11 headers
  21005. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21006. fi
  21007. }
  21008. CheckVivanteVideo()
  21009. {
  21010. # Check whether --enable-video-vivante was given.
  21011. if test ${enable_video_vivante+y}
  21012. then :
  21013. enableval=$enable_video_vivante;
  21014. else $as_nop
  21015. enable_video_vivante=yes
  21016. fi
  21017. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21019. printf %s "checking for Vivante VDK API... " >&6; }
  21020. have_vivante_vdk=no
  21021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21022. /* end confdefs.h. */
  21023. #define LINUX
  21024. #define EGL_API_FB
  21025. #include <gc_vdk.h>
  21026. int
  21027. main (void)
  21028. {
  21029. ;
  21030. return 0;
  21031. }
  21032. _ACEOF
  21033. if ac_fn_c_try_compile "$LINENO"
  21034. then :
  21035. have_vivante_vdk=yes
  21036. fi
  21037. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21039. printf "%s\n" "$have_vivante_vdk" >&6; }
  21040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21041. printf %s "checking for Vivante FB API... " >&6; }
  21042. have_vivante_egl=no
  21043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21044. /* end confdefs.h. */
  21045. #define LINUX
  21046. #define EGL_API_FB
  21047. #include <EGL/eglvivante.h>
  21048. int
  21049. main (void)
  21050. {
  21051. ;
  21052. return 0;
  21053. }
  21054. _ACEOF
  21055. if ac_fn_c_try_compile "$LINENO"
  21056. then :
  21057. have_vivante_egl=yes
  21058. fi
  21059. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21061. printf "%s\n" "$have_vivante_egl" >&6; }
  21062. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21063. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21064. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21065. if test x$have_vivante_vdk = xyes; then
  21066. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21068. fi
  21069. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21070. SUMMARY_video="${SUMMARY_video} vivante"
  21071. have_video=yes
  21072. fi
  21073. fi
  21074. }
  21075. CheckHaikuVideo()
  21076. {
  21077. if test x$enable_video = xyes; then
  21078. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21079. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21080. have_video=yes
  21081. SUMMARY_video="${SUMMARY_video} haiku"
  21082. fi
  21083. }
  21084. CheckCOCOA()
  21085. {
  21086. # Check whether --enable-video-cocoa was given.
  21087. if test ${enable_video_cocoa+y}
  21088. then :
  21089. enableval=$enable_video_cocoa;
  21090. else $as_nop
  21091. enable_video_cocoa=yes
  21092. fi
  21093. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21094. save_CFLAGS="$CFLAGS"
  21095. CFLAGS="$CFLAGS -x objective-c"
  21096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21097. printf %s "checking for Cocoa framework... " >&6; }
  21098. have_cocoa=no
  21099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21100. /* end confdefs.h. */
  21101. #import <Cocoa/Cocoa.h>
  21102. int
  21103. main (void)
  21104. {
  21105. ;
  21106. return 0;
  21107. }
  21108. _ACEOF
  21109. if ac_fn_c_try_compile "$LINENO"
  21110. then :
  21111. have_cocoa=yes
  21112. fi
  21113. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21115. printf "%s\n" "$have_cocoa" >&6; }
  21116. CFLAGS="$save_CFLAGS"
  21117. if test x$have_cocoa = xyes; then
  21118. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21119. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21120. SUMMARY_video="${SUMMARY_video} cocoa"
  21121. have_video=yes
  21122. fi
  21123. fi
  21124. }
  21125. CheckMETAL()
  21126. {
  21127. # Check whether --enable-video-metal was given.
  21128. if test ${enable_video_metal+y}
  21129. then :
  21130. enableval=$enable_video_metal;
  21131. else $as_nop
  21132. enable_video_metal=yes
  21133. fi
  21134. # Check whether --enable-render-metal was given.
  21135. if test ${enable_render_metal+y}
  21136. then :
  21137. enableval=$enable_render_metal;
  21138. else $as_nop
  21139. enable_render_metal=yes
  21140. fi
  21141. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21142. save_CFLAGS="$CFLAGS"
  21143. CFLAGS="$CFLAGS -x objective-c"
  21144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21145. printf %s "checking for Metal framework... " >&6; }
  21146. have_metal=no
  21147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21148. /* end confdefs.h. */
  21149. #import <Cocoa/Cocoa.h>
  21150. #import <Metal/Metal.h>
  21151. #import <QuartzCore/CAMetalLayer.h>
  21152. #if TARGET_CPU_X86
  21153. #error Metal doesn't work on this configuration
  21154. #endif
  21155. int
  21156. main (void)
  21157. {
  21158. ;
  21159. return 0;
  21160. }
  21161. _ACEOF
  21162. if ac_fn_c_try_compile "$LINENO"
  21163. then :
  21164. have_metal=yes
  21165. fi
  21166. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21167. CFLAGS="$save_CFLAGS"
  21168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21169. printf "%s\n" "$have_metal" >&6; }
  21170. if test x$have_metal = xyes; then
  21171. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21172. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21173. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21174. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21175. fi
  21176. SUMMARY_video="${SUMMARY_video} metal"
  21177. else
  21178. enable_video_metal=no
  21179. enable_render_metal=no
  21180. fi
  21181. fi
  21182. }
  21183. CheckKMSDRM()
  21184. {
  21185. # Check whether --enable-video-kmsdrm was given.
  21186. if test ${enable_video_kmsdrm+y}
  21187. then :
  21188. enableval=$enable_video_kmsdrm;
  21189. else $as_nop
  21190. enable_video_kmsdrm=yes
  21191. fi
  21192. if test x$enable_video = xyes && \
  21193. test x$enable_video_kmsdrm = xyes && \
  21194. test x$video_opengl_egl = xyes; then
  21195. video_kmsdrm=no
  21196. pkg_failed=no
  21197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21198. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21199. if test -n "$LIBDRM_CFLAGS"; then
  21200. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21201. elif test -n "$PKG_CONFIG"; then
  21202. if test -n "$PKG_CONFIG" && \
  21203. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21204. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21205. ac_status=$?
  21206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21207. test $ac_status = 0; }; then
  21208. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21209. test "x$?" != "x0" && pkg_failed=yes
  21210. else
  21211. pkg_failed=yes
  21212. fi
  21213. else
  21214. pkg_failed=untried
  21215. fi
  21216. if test -n "$LIBDRM_LIBS"; then
  21217. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21218. elif test -n "$PKG_CONFIG"; then
  21219. if test -n "$PKG_CONFIG" && \
  21220. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21221. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21222. ac_status=$?
  21223. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21224. test $ac_status = 0; }; then
  21225. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21226. test "x$?" != "x0" && pkg_failed=yes
  21227. else
  21228. pkg_failed=yes
  21229. fi
  21230. else
  21231. pkg_failed=untried
  21232. fi
  21233. if test $pkg_failed = yes; then
  21234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21235. printf "%s\n" "no" >&6; }
  21236. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21237. _pkg_short_errors_supported=yes
  21238. else
  21239. _pkg_short_errors_supported=no
  21240. fi
  21241. if test $_pkg_short_errors_supported = yes; then
  21242. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21243. else
  21244. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21245. fi
  21246. # Put the nasty error message in config.log where it belongs
  21247. echo "$LIBDRM_PKG_ERRORS" >&5
  21248. libdrm_avail=no
  21249. elif test $pkg_failed = untried; then
  21250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21251. printf "%s\n" "no" >&6; }
  21252. libdrm_avail=no
  21253. else
  21254. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21255. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21257. printf "%s\n" "yes" >&6; }
  21258. libdrm_avail=yes
  21259. fi
  21260. pkg_failed=no
  21261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21262. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21263. if test -n "$LIBGBM_CFLAGS"; then
  21264. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21265. elif test -n "$PKG_CONFIG"; then
  21266. if test -n "$PKG_CONFIG" && \
  21267. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21268. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21269. ac_status=$?
  21270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21271. test $ac_status = 0; }; then
  21272. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  21273. test "x$?" != "x0" && pkg_failed=yes
  21274. else
  21275. pkg_failed=yes
  21276. fi
  21277. else
  21278. pkg_failed=untried
  21279. fi
  21280. if test -n "$LIBGBM_LIBS"; then
  21281. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  21282. elif test -n "$PKG_CONFIG"; then
  21283. if test -n "$PKG_CONFIG" && \
  21284. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  21285. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  21286. ac_status=$?
  21287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21288. test $ac_status = 0; }; then
  21289. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  21290. test "x$?" != "x0" && pkg_failed=yes
  21291. else
  21292. pkg_failed=yes
  21293. fi
  21294. else
  21295. pkg_failed=untried
  21296. fi
  21297. if test $pkg_failed = yes; then
  21298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21299. printf "%s\n" "no" >&6; }
  21300. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21301. _pkg_short_errors_supported=yes
  21302. else
  21303. _pkg_short_errors_supported=no
  21304. fi
  21305. if test $_pkg_short_errors_supported = yes; then
  21306. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21307. else
  21308. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  21309. fi
  21310. # Put the nasty error message in config.log where it belongs
  21311. echo "$LIBGBM_PKG_ERRORS" >&5
  21312. libgbm_avail=no
  21313. elif test $pkg_failed = untried; then
  21314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21315. printf "%s\n" "no" >&6; }
  21316. libgbm_avail=no
  21317. else
  21318. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  21319. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  21320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21321. printf "%s\n" "yes" >&6; }
  21322. libgbm_avail=yes
  21323. fi
  21324. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  21325. video_kmsdrm=yes
  21326. fi
  21327. if test x$video_kmsdrm = xyes; then
  21328. # Check whether --enable-kmsdrm-shared was given.
  21329. if test ${enable_kmsdrm_shared+y}
  21330. then :
  21331. enableval=$enable_kmsdrm_shared;
  21332. else $as_nop
  21333. enable_kmsdrm_shared=yes
  21334. fi
  21335. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  21336. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  21337. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  21338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  21339. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  21340. kmsdrm_shared=no
  21341. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  21342. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  21343. if test x$have_loadso != xyes && \
  21344. test x$enable_kmsdrm_shared = xyes; then
  21345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  21346. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  21347. fi
  21348. if test x$have_loadso = xyes && \
  21349. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  21350. kmsdrm_shared=yes
  21351. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  21352. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  21353. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  21354. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  21355. else
  21356. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  21357. SUMMARY_video="${SUMMARY_video} kmsdrm"
  21358. fi
  21359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  21360. printf "%s\n" "$kmsdrm_shared" >&6; }
  21361. if test x$kmsdrm_shared = xyes; then
  21362. echo "-- dynamic libdrm -> $drm_lib"
  21363. echo "-- dynamic libgbm -> $gbm_lib"
  21364. fi
  21365. have_video=yes
  21366. fi
  21367. fi
  21368. }
  21369. CheckDummyVideo()
  21370. {
  21371. # Check whether --enable-video-dummy was given.
  21372. if test ${enable_video_dummy+y}
  21373. then :
  21374. enableval=$enable_video_dummy;
  21375. else $as_nop
  21376. enable_video_dummy=yes
  21377. fi
  21378. if test x$enable_video_dummy = xyes; then
  21379. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  21380. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  21381. have_video=yes
  21382. SUMMARY_video="${SUMMARY_video} dummy"
  21383. fi
  21384. }
  21385. CheckOffscreenVideo()
  21386. {
  21387. # Check whether --enable-video-offscreen was given.
  21388. if test ${enable_video_offscreen+y}
  21389. then :
  21390. enableval=$enable_video_offscreen;
  21391. else $as_nop
  21392. enable_video_offscreen=yes
  21393. fi
  21394. if test x$enable_video = xyes && \
  21395. test x$enable_video_offscreen = xyes && \
  21396. test x$video_opengl_egl = xyes; then
  21397. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  21398. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  21399. have_video=yes
  21400. SUMMARY_video="${SUMMARY_video} offscreen"
  21401. fi
  21402. }
  21403. # Check whether --enable-video-opengl was given.
  21404. if test ${enable_video_opengl+y}
  21405. then :
  21406. enableval=$enable_video_opengl;
  21407. else $as_nop
  21408. enable_video_opengl=yes
  21409. fi
  21410. CheckGLX()
  21411. {
  21412. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  21414. printf %s "checking for GLX support... " >&6; }
  21415. video_opengl_glx=no
  21416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21417. /* end confdefs.h. */
  21418. #include <GL/glx.h>
  21419. int
  21420. main (void)
  21421. {
  21422. ;
  21423. return 0;
  21424. }
  21425. _ACEOF
  21426. if ac_fn_c_try_compile "$LINENO"
  21427. then :
  21428. video_opengl_glx=yes
  21429. fi
  21430. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  21432. printf "%s\n" "$video_opengl_glx" >&6; }
  21433. if test x$video_opengl_glx = xyes; then
  21434. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21435. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  21436. fi
  21437. fi
  21438. }
  21439. # Check whether --enable-video-opengles was given.
  21440. if test ${enable_video_opengles+y}
  21441. then :
  21442. enableval=$enable_video_opengles;
  21443. else $as_nop
  21444. enable_video_opengles=yes
  21445. fi
  21446. # Check whether --enable-video-opengles1 was given.
  21447. if test ${enable_video_opengles1+y}
  21448. then :
  21449. enableval=$enable_video_opengles1;
  21450. else $as_nop
  21451. enable_video_opengles1=yes
  21452. fi
  21453. # Check whether --enable-video-opengles2 was given.
  21454. if test ${enable_video_opengles2+y}
  21455. then :
  21456. enableval=$enable_video_opengles2;
  21457. else $as_nop
  21458. enable_video_opengles2=yes
  21459. fi
  21460. CheckEGL()
  21461. {
  21462. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21464. printf %s "checking for EGL support... " >&6; }
  21465. video_opengl_egl=no
  21466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21467. /* end confdefs.h. */
  21468. #define LINUX
  21469. #define EGL_API_FB
  21470. #define MESA_EGL_NO_X11_HEADERS
  21471. #define EGL_NO_X11
  21472. #include <EGL/egl.h>
  21473. #include <EGL/eglext.h>
  21474. int
  21475. main (void)
  21476. {
  21477. ;
  21478. return 0;
  21479. }
  21480. _ACEOF
  21481. if ac_fn_c_try_compile "$LINENO"
  21482. then :
  21483. video_opengl_egl=yes
  21484. fi
  21485. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21487. printf "%s\n" "$video_opengl_egl" >&6; }
  21488. if test x$video_opengl_egl = xyes; then
  21489. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21490. fi
  21491. fi
  21492. }
  21493. CheckOpenGL()
  21494. {
  21495. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  21497. printf %s "checking for OpenGL headers... " >&6; }
  21498. video_opengl=no
  21499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21500. /* end confdefs.h. */
  21501. #include <GL/gl.h>
  21502. #include <GL/glext.h>
  21503. int
  21504. main (void)
  21505. {
  21506. ;
  21507. return 0;
  21508. }
  21509. _ACEOF
  21510. if ac_fn_c_try_compile "$LINENO"
  21511. then :
  21512. video_opengl=yes
  21513. fi
  21514. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  21516. printf "%s\n" "$video_opengl" >&6; }
  21517. if test x$video_opengl = xyes; then
  21518. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21519. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21520. SUMMARY_video="${SUMMARY_video} opengl"
  21521. fi
  21522. fi
  21523. }
  21524. CheckOpenGLES()
  21525. {
  21526. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21527. if test x$enable_video_opengles1 = xyes; then
  21528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  21529. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  21530. video_opengles_v1=no
  21531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21532. /* end confdefs.h. */
  21533. #include <GLES/gl.h>
  21534. #include <GLES/glext.h>
  21535. int
  21536. main (void)
  21537. {
  21538. ;
  21539. return 0;
  21540. }
  21541. _ACEOF
  21542. if ac_fn_c_try_compile "$LINENO"
  21543. then :
  21544. video_opengles_v1=yes
  21545. fi
  21546. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  21548. printf "%s\n" "$video_opengles_v1" >&6; }
  21549. if test x$video_opengles_v1 = xyes; then
  21550. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21551. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21552. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21553. fi
  21554. fi
  21555. if test x$enable_video_opengles2 = xyes; then
  21556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21557. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21558. video_opengles_v2=no
  21559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21560. /* end confdefs.h. */
  21561. #include <GLES2/gl2.h>
  21562. #include <GLES2/gl2ext.h>
  21563. int
  21564. main (void)
  21565. {
  21566. ;
  21567. return 0;
  21568. }
  21569. _ACEOF
  21570. if ac_fn_c_try_compile "$LINENO"
  21571. then :
  21572. video_opengles_v2=yes
  21573. fi
  21574. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21576. printf "%s\n" "$video_opengles_v2" >&6; }
  21577. if test x$video_opengles_v2 = xyes; then
  21578. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21579. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21580. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21581. fi
  21582. fi
  21583. fi
  21584. }
  21585. CheckWINDOWSGL()
  21586. {
  21587. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21588. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21589. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  21590. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21591. SUMMARY_video="${SUMMARY_video} opengl"
  21592. fi
  21593. }
  21594. CheckWINDOWSGLES()
  21595. {
  21596. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21598. printf %s "checking for EGL support... " >&6; }
  21599. video_opengl_egl=no
  21600. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21601. /* end confdefs.h. */
  21602. #include <EGL/egl.h>
  21603. int
  21604. main (void)
  21605. {
  21606. ;
  21607. return 0;
  21608. }
  21609. _ACEOF
  21610. if ac_fn_c_try_compile "$LINENO"
  21611. then :
  21612. video_opengl_egl=yes
  21613. fi
  21614. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21616. printf "%s\n" "$video_opengl_egl" >&6; }
  21617. if test x$video_opengl_egl = xyes; then
  21618. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21619. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21620. SUMMARY_video="${SUMMARY_video} opengl_es1"
  21621. fi
  21622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21623. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21624. video_opengles_v2=no
  21625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21626. /* end confdefs.h. */
  21627. #include <GLES2/gl2.h>
  21628. #include <GLES2/gl2ext.h>
  21629. int
  21630. main (void)
  21631. {
  21632. ;
  21633. return 0;
  21634. }
  21635. _ACEOF
  21636. if ac_fn_c_try_compile "$LINENO"
  21637. then :
  21638. video_opengles_v2=yes
  21639. fi
  21640. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21642. printf "%s\n" "$video_opengles_v2" >&6; }
  21643. if test x$video_opengles_v2 = xyes; then
  21644. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21645. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21646. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21647. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21648. fi
  21649. fi
  21650. }
  21651. CheckHaikuGL()
  21652. {
  21653. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21654. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21655. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  21656. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  21658. SUMMARY_video="${SUMMARY_video} opengl"
  21659. fi
  21660. }
  21661. CheckMacGL()
  21662. {
  21663. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  21664. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  21665. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  21666. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  21667. SUMMARY_video="${SUMMARY_video} opengl"
  21668. fi
  21669. }
  21670. CheckMacGLES()
  21671. {
  21672. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21673. video_opengl_egl=yes
  21674. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21675. video_opengles_v2=yes
  21676. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21677. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21678. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21679. fi
  21680. }
  21681. CheckEmscriptenGLES()
  21682. {
  21683. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  21684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  21685. printf %s "checking for EGL support... " >&6; }
  21686. video_opengl_egl=no
  21687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21688. /* end confdefs.h. */
  21689. #include <EGL/egl.h>
  21690. int
  21691. main (void)
  21692. {
  21693. ;
  21694. return 0;
  21695. }
  21696. _ACEOF
  21697. if ac_fn_c_try_compile "$LINENO"
  21698. then :
  21699. video_opengl_egl=yes
  21700. fi
  21701. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  21703. printf "%s\n" "$video_opengl_egl" >&6; }
  21704. if test x$video_opengl_egl = xyes; then
  21705. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  21706. fi
  21707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  21708. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  21709. video_opengles_v2=no
  21710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21711. /* end confdefs.h. */
  21712. #include <GLES2/gl2.h>
  21713. #include <GLES2/gl2ext.h>
  21714. int
  21715. main (void)
  21716. {
  21717. ;
  21718. return 0;
  21719. }
  21720. _ACEOF
  21721. if ac_fn_c_try_compile "$LINENO"
  21722. then :
  21723. video_opengles_v2=yes
  21724. fi
  21725. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  21727. printf "%s\n" "$video_opengles_v2" >&6; }
  21728. if test x$video_opengles_v2 = xyes; then
  21729. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21730. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21731. SUMMARY_video="${SUMMARY_video} opengl_es2"
  21732. fi
  21733. fi
  21734. }
  21735. # Check whether --enable-video-vulkan was given.
  21736. if test ${enable_video_vulkan+y}
  21737. then :
  21738. enableval=$enable_video_vulkan;
  21739. else $as_nop
  21740. enable_video_vulkan=yes
  21741. fi
  21742. CheckVulkan()
  21743. {
  21744. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  21745. case "$host" in
  21746. *-*-android*)
  21747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21748. /* end confdefs.h. */
  21749. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  21750. #error Vulkan doesn't work on this configuration
  21751. #endif
  21752. int
  21753. main (void)
  21754. {
  21755. ;
  21756. return 0;
  21757. }
  21758. _ACEOF
  21759. if ac_fn_c_try_compile "$LINENO"
  21760. then :
  21761. else $as_nop
  21762. enable_video_vulkan=no
  21763. fi
  21764. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21765. ;;
  21766. *-*-darwin*)
  21767. save_CFLAGS="$CFLAGS"
  21768. CFLAGS="$CFLAGS -x objective-c"
  21769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21770. /* end confdefs.h. */
  21771. #include <Cocoa/Cocoa.h>
  21772. #include <Metal/Metal.h>
  21773. #include <QuartzCore/CAMetalLayer.h>
  21774. #if TARGET_CPU_X86
  21775. #error Vulkan doesn't work on this configuration
  21776. #endif
  21777. int
  21778. main (void)
  21779. {
  21780. ;
  21781. return 0;
  21782. }
  21783. _ACEOF
  21784. if ac_fn_c_try_compile "$LINENO"
  21785. then :
  21786. else $as_nop
  21787. enable_video_vulkan=no
  21788. fi
  21789. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21790. CFLAGS="$save_CFLAGS"
  21791. ;;
  21792. *)
  21793. ;;
  21794. esac
  21795. if test x$enable_video_vulkan = xno; then
  21796. # For reasons I am totally unable to see, I get an undefined macro error if
  21797. # I put this in the AC_TRY_COMPILE.
  21798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  21799. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  21800. fi
  21801. fi
  21802. if test x$have_loadso != xyes; then
  21803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  21804. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  21805. enable_video_vulkan=no
  21806. fi
  21807. if test x$enable_video_vulkan = xyes; then
  21808. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  21809. SUMMARY_video="${SUMMARY_video} vulkan"
  21810. fi
  21811. }
  21812. CheckInputEvents()
  21813. {
  21814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  21815. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  21816. use_input_events=no
  21817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21818. /* end confdefs.h. */
  21819. #include <linux/input.h>
  21820. int
  21821. main (void)
  21822. {
  21823. #ifndef EVIOCGNAME
  21824. #error EVIOCGNAME() ioctl not available
  21825. #endif
  21826. ;
  21827. return 0;
  21828. }
  21829. _ACEOF
  21830. if ac_fn_c_try_compile "$LINENO"
  21831. then :
  21832. use_input_events=yes
  21833. fi
  21834. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  21836. printf "%s\n" "$use_input_events" >&6; }
  21837. if test x$use_input_events = xyes; then
  21838. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  21839. SUMMARY_input="${SUMMARY_input} linuxev"
  21840. fi
  21841. }
  21842. CheckInputKD()
  21843. {
  21844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  21845. printf %s "checking for Linux kd.h... " >&6; }
  21846. use_input_kd=no
  21847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21848. /* end confdefs.h. */
  21849. #include <linux/kd.h>
  21850. #include <linux/keyboard.h>
  21851. #include <sys/ioctl.h>
  21852. int
  21853. main (void)
  21854. {
  21855. struct kbentry kbe;
  21856. kbe.kb_table = KG_CTRL;
  21857. ioctl(0, KDGKBENT, &kbe);
  21858. ;
  21859. return 0;
  21860. }
  21861. _ACEOF
  21862. if ac_fn_c_try_compile "$LINENO"
  21863. then :
  21864. use_input_kd=yes
  21865. fi
  21866. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  21868. printf "%s\n" "$use_input_kd" >&6; }
  21869. if test x$use_input_kd = xyes; then
  21870. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  21871. SUMMARY_input="${SUMMARY_input} linuxkd"
  21872. fi
  21873. }
  21874. CheckInputKBIO()
  21875. {
  21876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  21877. printf %s "checking for FreeBSD kbio.h... " >&6; }
  21878. use_input_kbio=no
  21879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21880. /* end confdefs.h. */
  21881. #include <sys/kbio.h>
  21882. #include <sys/ioctl.h>
  21883. int
  21884. main (void)
  21885. {
  21886. accentmap_t accTable;
  21887. ioctl(0, KDENABIO, 1);
  21888. ;
  21889. return 0;
  21890. }
  21891. _ACEOF
  21892. if ac_fn_c_try_compile "$LINENO"
  21893. then :
  21894. use_input_kbio=yes
  21895. fi
  21896. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  21898. printf "%s\n" "$use_input_kbio" >&6; }
  21899. if test x$use_input_kbio = xyes; then
  21900. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  21901. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  21902. fi
  21903. }
  21904. CheckInputWSCONS()
  21905. {
  21906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  21907. printf %s "checking for OpenBSD wscons... " >&6; }
  21908. use_input_wscons=no
  21909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21910. /* end confdefs.h. */
  21911. #include <sys/time.h>
  21912. #include <dev/wscons/wsconsio.h>
  21913. #include <dev/wscons/wsksymdef.h>
  21914. #include <dev/wscons/wsksymvar.h>
  21915. #include <sys/ioctl.h>
  21916. int
  21917. main (void)
  21918. {
  21919. struct wskbd_map_data data;
  21920. ioctl(0, WSKBDIO_GETMAP, &data);
  21921. ;
  21922. return 0;
  21923. }
  21924. _ACEOF
  21925. if ac_fn_c_try_compile "$LINENO"
  21926. then :
  21927. use_input_wscons=yes
  21928. fi
  21929. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  21931. printf "%s\n" "$use_input_wscons" >&6; }
  21932. if test x$use_input_wscons = xyes; then
  21933. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  21934. SUMMARY_input="${SUMMARY_input} wscons"
  21935. fi
  21936. }
  21937. CheckLibUDev()
  21938. {
  21939. # Check whether --enable-libudev was given.
  21940. if test ${enable_libudev+y}
  21941. then :
  21942. enableval=$enable_libudev;
  21943. else $as_nop
  21944. enable_libudev=yes
  21945. fi
  21946. if test x$enable_libudev = xyes; then
  21947. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  21948. if test "x$ac_cv_header_libudev_h" = xyes
  21949. then :
  21950. have_libudev_h_hdr=yes
  21951. else $as_nop
  21952. have_libudev_h_hdr=no
  21953. fi
  21954. if test x$have_libudev_h_hdr = xyes; then
  21955. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  21956. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  21957. if test x$udev_lib != x; then
  21958. echo "-- dynamic udev -> $udev_lib"
  21959. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  21960. fi
  21961. fi
  21962. fi
  21963. }
  21964. CheckDBus()
  21965. {
  21966. # Check whether --enable-dbus was given.
  21967. if test ${enable_dbus+y}
  21968. then :
  21969. enableval=$enable_dbus;
  21970. else $as_nop
  21971. enable_dbus=yes
  21972. fi
  21973. if test x$enable_dbus = xyes; then
  21974. pkg_failed=no
  21975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  21976. printf %s "checking for dbus-1... " >&6; }
  21977. if test -n "$DBUS_CFLAGS"; then
  21978. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  21979. elif test -n "$PKG_CONFIG"; then
  21980. if test -n "$PKG_CONFIG" && \
  21981. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21982. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  21983. ac_status=$?
  21984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21985. test $ac_status = 0; }; then
  21986. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  21987. test "x$?" != "x0" && pkg_failed=yes
  21988. else
  21989. pkg_failed=yes
  21990. fi
  21991. else
  21992. pkg_failed=untried
  21993. fi
  21994. if test -n "$DBUS_LIBS"; then
  21995. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  21996. elif test -n "$PKG_CONFIG"; then
  21997. if test -n "$PKG_CONFIG" && \
  21998. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  21999. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22000. ac_status=$?
  22001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22002. test $ac_status = 0; }; then
  22003. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22004. test "x$?" != "x0" && pkg_failed=yes
  22005. else
  22006. pkg_failed=yes
  22007. fi
  22008. else
  22009. pkg_failed=untried
  22010. fi
  22011. if test $pkg_failed = yes; then
  22012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22013. printf "%s\n" "no" >&6; }
  22014. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22015. _pkg_short_errors_supported=yes
  22016. else
  22017. _pkg_short_errors_supported=no
  22018. fi
  22019. if test $_pkg_short_errors_supported = yes; then
  22020. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22021. else
  22022. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22023. fi
  22024. # Put the nasty error message in config.log where it belongs
  22025. echo "$DBUS_PKG_ERRORS" >&5
  22026. have_dbus=no
  22027. elif test $pkg_failed = untried; then
  22028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22029. printf "%s\n" "no" >&6; }
  22030. have_dbus=no
  22031. else
  22032. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22033. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22035. printf "%s\n" "yes" >&6; }
  22036. have_dbus=yes
  22037. fi
  22038. save_CPPFLAGS="$CPPFLAGS"
  22039. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22040. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22041. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22042. then :
  22043. have_dbus_dbus_h_hdr=yes
  22044. else $as_nop
  22045. have_dbus_dbus_h_hdr=no
  22046. fi
  22047. CPPFLAGS="$save_CPPFLAGS"
  22048. if test x$have_dbus_dbus_h_hdr = xyes; then
  22049. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22050. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22051. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22052. fi
  22053. fi
  22054. }
  22055. CheckIME()
  22056. {
  22057. # Check whether --enable-ime was given.
  22058. if test ${enable_ime+y}
  22059. then :
  22060. enableval=$enable_ime;
  22061. else $as_nop
  22062. enable_ime=yes
  22063. fi
  22064. if test x$enable_ime = xyes; then
  22065. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22066. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22067. fi
  22068. }
  22069. CheckInotify()
  22070. {
  22071. save_LIBS="$LIBS"
  22072. case "$host" in
  22073. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22074. ;;
  22075. esac
  22076. for ac_header in sys/inotify.h
  22077. do :
  22078. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22079. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22080. then :
  22081. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22082. have_inotify_inotify_h_hdr=yes
  22083. fi
  22084. done
  22085. for ac_func in inotify_init
  22086. do :
  22087. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22088. if test "x$ac_cv_func_inotify_init" = xyes
  22089. then :
  22090. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22091. have_inotify=yes
  22092. fi
  22093. done
  22094. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22095. if test "x$ac_cv_func_inotify_init1" = xyes
  22096. then :
  22097. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22098. fi
  22099. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22100. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22101. case "$host" in
  22102. *-*-freebsd*|*-*-dragonfly*)
  22103. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22104. ;;
  22105. esac
  22106. fi
  22107. LIBS="$save_LIBS"
  22108. }
  22109. CheckIBus()
  22110. {
  22111. # Check whether --enable-ibus was given.
  22112. if test ${enable_ibus+y}
  22113. then :
  22114. enableval=$enable_ibus;
  22115. else $as_nop
  22116. enable_ibus=yes
  22117. fi
  22118. if test x$enable_ibus = xyes; then
  22119. pkg_failed=no
  22120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22121. printf %s "checking for ibus-1.0... " >&6; }
  22122. if test -n "$IBUS_CFLAGS"; then
  22123. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22124. elif test -n "$PKG_CONFIG"; then
  22125. if test -n "$PKG_CONFIG" && \
  22126. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22127. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22128. ac_status=$?
  22129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22130. test $ac_status = 0; }; then
  22131. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22132. test "x$?" != "x0" && pkg_failed=yes
  22133. else
  22134. pkg_failed=yes
  22135. fi
  22136. else
  22137. pkg_failed=untried
  22138. fi
  22139. if test -n "$IBUS_LIBS"; then
  22140. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22141. elif test -n "$PKG_CONFIG"; then
  22142. if test -n "$PKG_CONFIG" && \
  22143. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22144. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22145. ac_status=$?
  22146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22147. test $ac_status = 0; }; then
  22148. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22149. test "x$?" != "x0" && pkg_failed=yes
  22150. else
  22151. pkg_failed=yes
  22152. fi
  22153. else
  22154. pkg_failed=untried
  22155. fi
  22156. if test $pkg_failed = yes; then
  22157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22158. printf "%s\n" "no" >&6; }
  22159. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22160. _pkg_short_errors_supported=yes
  22161. else
  22162. _pkg_short_errors_supported=no
  22163. fi
  22164. if test $_pkg_short_errors_supported = yes; then
  22165. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22166. else
  22167. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22168. fi
  22169. # Put the nasty error message in config.log where it belongs
  22170. echo "$IBUS_PKG_ERRORS" >&5
  22171. have_ibus=no
  22172. elif test $pkg_failed = untried; then
  22173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22174. printf "%s\n" "no" >&6; }
  22175. have_ibus=no
  22176. else
  22177. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22178. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22180. printf "%s\n" "yes" >&6; }
  22181. have_ibus=yes
  22182. fi
  22183. save_CPPFLAGS="$CPPFLAGS"
  22184. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22185. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22186. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22187. then :
  22188. have_ibus_ibus_h_hdr=yes
  22189. else $as_nop
  22190. have_ibus_ibus_h_hdr=no
  22191. fi
  22192. CPPFLAGS="$save_CPPFLAGS"
  22193. if test x$have_ibus_ibus_h_hdr = xyes; then
  22194. if test x$enable_ime != xyes; then
  22195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22196. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22197. have_ibus_ibus_h_hdr=no
  22198. elif test x$enable_dbus != xyes; then
  22199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22200. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22201. have_ibus_ibus_h_hdr=no
  22202. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22204. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22205. have_ibus_ibus_h_hdr=no
  22206. else
  22207. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22208. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22209. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22210. fi
  22211. fi
  22212. fi
  22213. }
  22214. CheckFcitx()
  22215. {
  22216. # Check whether --enable-fcitx was given.
  22217. if test ${enable_fcitx+y}
  22218. then :
  22219. enableval=$enable_fcitx;
  22220. else $as_nop
  22221. enable_fcitx=yes
  22222. fi
  22223. if test x$enable_fcitx = xyes; then
  22224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22225. printf %s "checking for fcitx support... " >&6; }
  22226. have_fcitx=no
  22227. if test x$enable_ime != xyes; then
  22228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22229. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22230. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22232. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22233. else
  22234. have_fcitx=yes
  22235. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22236. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22237. fi
  22238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22239. printf "%s\n" "$have_fcitx" >&6; }
  22240. fi
  22241. }
  22242. CheckJoystickMFI()
  22243. {
  22244. # Check whether --enable-joystick-mfi was given.
  22245. if test ${enable_joystick_mfi+y}
  22246. then :
  22247. enableval=$enable_joystick_mfi;
  22248. else $as_nop
  22249. enable_joystick_mfi=yes
  22250. fi
  22251. if test x$enable_joystick_mfi = xyes; then
  22252. save_CFLAGS="$CFLAGS"
  22253. save_LDFLAGS="$LDFLAGS"
  22254. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  22255. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  22257. printf %s "checking for GameController framework... " >&6; }
  22258. enable_joystick_mfi=no
  22259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22260. /* end confdefs.h. */
  22261. #include <AvailabilityMacros.h>
  22262. #include <TargetConditionals.h>
  22263. #import <Foundation/Foundation.h>
  22264. #import <CoreHaptics/CoreHaptics.h>
  22265. #import <GameController/GameController.h>
  22266. int
  22267. main (void)
  22268. {
  22269. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  22270. #error GameController framework doesn't work on this configuration
  22271. #endif
  22272. #if TARGET_CPU_X86
  22273. #error GameController framework doesn't work on this configuration
  22274. #endif
  22275. ;
  22276. return 0;
  22277. }
  22278. _ACEOF
  22279. if ac_fn_c_try_link "$LINENO"
  22280. then :
  22281. enable_joystick_mfi=yes
  22282. fi
  22283. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22284. conftest$ac_exeext conftest.$ac_ext
  22285. CFLAGS="$save_CFLAGS"
  22286. LDFLAGS="$save_LDFLAGS"
  22287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  22288. printf "%s\n" "$enable_joystick_mfi" >&6; }
  22289. if test x$enable_joystick_mfi = xyes; then
  22290. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  22291. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  22292. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  22293. fi
  22294. fi
  22295. }
  22296. CheckPTHREAD()
  22297. {
  22298. case "$host" in
  22299. *-*-emscripten*)
  22300. enable_pthreads_default=no
  22301. ;;
  22302. *)
  22303. enable_pthreads_default=yes
  22304. ;;
  22305. esac
  22306. # Check whether --enable-pthreads was given.
  22307. if test ${enable_pthreads+y}
  22308. then :
  22309. enableval=$enable_pthreads;
  22310. else $as_nop
  22311. enable_pthreads=maybe
  22312. fi
  22313. # Check whether --enable-pthread-sem was given.
  22314. if test ${enable_pthread_sem+y}
  22315. then :
  22316. enableval=$enable_pthread_sem;
  22317. else $as_nop
  22318. enable_pthread_sem=maybe
  22319. fi
  22320. if test x$enable_pthreads = xmaybe; then
  22321. enable_pthreads=$enable_pthreads_default
  22322. fi
  22323. if test x$enable_pthread_sem = xmaybe; then
  22324. enable_pthread_sem=$enable_pthreads
  22325. fi
  22326. case "$host" in
  22327. *-*-android*)
  22328. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22329. pthread_lib=""
  22330. ;;
  22331. *-*-linux*|*-*-uclinux*)
  22332. pthread_cflags="-D_REENTRANT"
  22333. pthread_lib="-lpthread"
  22334. ;;
  22335. *-*-bsdi*)
  22336. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22337. pthread_lib=""
  22338. ;;
  22339. *-*-darwin*)
  22340. pthread_cflags="-D_THREAD_SAFE"
  22341. # causes Carbon.p complaints?
  22342. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22343. ;;
  22344. *-*-freebsd*|*-*-dragonfly*)
  22345. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22346. pthread_lib="-pthread"
  22347. ;;
  22348. *-*-netbsd*)
  22349. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  22350. pthread_lib="-lpthread"
  22351. ;;
  22352. *-*-openbsd*)
  22353. pthread_cflags="-D_REENTRANT"
  22354. pthread_lib="-lpthread"
  22355. ;;
  22356. *-*-solaris2.9)
  22357. # From Solaris 9+, posix4's preferred name is rt.
  22358. pthread_cflags="-D_REENTRANT"
  22359. pthread_lib="-lpthread -lrt"
  22360. ;;
  22361. *-*-solaris2.10)
  22362. # Solaris 10+ merged pthread into libc.
  22363. pthread_cflags="-D_REENTRANT"
  22364. pthread_lib="-lrt"
  22365. ;;
  22366. *-*-solaris*)
  22367. # Solaris 11+ merged rt into libc.
  22368. pthread_cflags="-D_REENTRANT"
  22369. pthread_lib=""
  22370. ;;
  22371. *-*-sysv5*)
  22372. pthread_cflags="-D_REENTRANT -Kthread"
  22373. pthread_lib=""
  22374. ;;
  22375. *-*-aix*)
  22376. pthread_cflags="-D_REENTRANT -mthreads"
  22377. pthread_lib="-lpthread"
  22378. ;;
  22379. *-*-hpux11*)
  22380. pthread_cflags="-D_REENTRANT"
  22381. pthread_lib="-L/usr/lib -lpthread"
  22382. ;;
  22383. *-*-haiku*)
  22384. pthread_cflags="-D_REENTRANT"
  22385. pthread_lib=""
  22386. ;;
  22387. *-*-emscripten*)
  22388. pthread_cflags="-D_REENTRANT -pthread"
  22389. pthread_lib="-pthread"
  22390. ;;
  22391. *)
  22392. pthread_cflags="-D_REENTRANT"
  22393. pthread_lib="-lpthread"
  22394. ;;
  22395. esac
  22396. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  22397. # Save the original compiler flags and libraries
  22398. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22399. # Add the pthread compiler flags and libraries
  22400. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22401. # Check to see if we have pthread support on this system
  22402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  22403. printf %s "checking for pthreads... " >&6; }
  22404. use_pthreads=no
  22405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22406. /* end confdefs.h. */
  22407. #include <pthread.h>
  22408. int
  22409. main (void)
  22410. {
  22411. pthread_attr_t type;
  22412. pthread_attr_init(&type);
  22413. ;
  22414. return 0;
  22415. }
  22416. _ACEOF
  22417. if ac_fn_c_try_link "$LINENO"
  22418. then :
  22419. use_pthreads=yes
  22420. fi
  22421. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22422. conftest$ac_exeext conftest.$ac_ext
  22423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  22424. printf "%s\n" "$use_pthreads" >&6; }
  22425. # Restore the compiler flags and libraries
  22426. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22427. # Do futher testing if we have pthread support...
  22428. if test x$use_pthreads = xyes; then
  22429. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  22430. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  22431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  22432. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  22433. # Save the original compiler flags and libraries
  22434. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  22435. # Add the pthread compiler flags and libraries
  22436. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  22437. # Check to see if recursive mutexes are available
  22438. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  22439. printf %s "checking for recursive mutexes... " >&6; }
  22440. has_recursive_mutexes=no
  22441. if test x$has_recursive_mutexes = xno; then
  22442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22443. /* end confdefs.h. */
  22444. #define _GNU_SOURCE 1
  22445. #include <pthread.h>
  22446. int
  22447. main (void)
  22448. {
  22449. pthread_mutexattr_t attr;
  22450. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  22451. ;
  22452. return 0;
  22453. }
  22454. _ACEOF
  22455. if ac_fn_c_try_link "$LINENO"
  22456. then :
  22457. has_recursive_mutexes=yes
  22458. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  22459. fi
  22460. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22461. conftest$ac_exeext conftest.$ac_ext
  22462. fi
  22463. if test x$has_recursive_mutexes = xno; then
  22464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22465. /* end confdefs.h. */
  22466. #define _GNU_SOURCE 1
  22467. #include <pthread.h>
  22468. int
  22469. main (void)
  22470. {
  22471. pthread_mutexattr_t attr;
  22472. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  22473. ;
  22474. return 0;
  22475. }
  22476. _ACEOF
  22477. if ac_fn_c_try_link "$LINENO"
  22478. then :
  22479. has_recursive_mutexes=yes
  22480. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  22481. fi
  22482. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22483. conftest$ac_exeext conftest.$ac_ext
  22484. fi
  22485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  22486. printf "%s\n" "$has_recursive_mutexes" >&6; }
  22487. # Check to see if pthread semaphore support is missing
  22488. if test x$enable_pthread_sem = xyes; then
  22489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  22490. printf %s "checking for pthread semaphores... " >&6; }
  22491. have_pthread_sem=no
  22492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22493. /* end confdefs.h. */
  22494. #include <pthread.h>
  22495. #include <semaphore.h>
  22496. int
  22497. main (void)
  22498. {
  22499. ;
  22500. return 0;
  22501. }
  22502. _ACEOF
  22503. if ac_fn_c_try_compile "$LINENO"
  22504. then :
  22505. have_pthread_sem=yes
  22506. fi
  22507. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  22509. printf "%s\n" "$have_pthread_sem" >&6; }
  22510. fi
  22511. if test x$have_pthread_sem = xyes; then
  22512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  22513. printf %s "checking for sem_timedwait... " >&6; }
  22514. have_sem_timedwait=no
  22515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22516. /* end confdefs.h. */
  22517. #include <pthread.h>
  22518. #include <semaphore.h>
  22519. int
  22520. main (void)
  22521. {
  22522. sem_timedwait(NULL, NULL);
  22523. ;
  22524. return 0;
  22525. }
  22526. _ACEOF
  22527. if ac_fn_c_try_link "$LINENO"
  22528. then :
  22529. have_sem_timedwait=yes
  22530. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  22531. fi
  22532. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22533. conftest$ac_exeext conftest.$ac_ext
  22534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  22535. printf "%s\n" "$have_sem_timedwait" >&6; }
  22536. fi
  22537. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  22538. "
  22539. if test "x$ac_cv_header_pthread_np_h" = xyes
  22540. then :
  22541. have_pthread_np_h=yes
  22542. else $as_nop
  22543. have_pthread_np_h=no
  22544. fi
  22545. if test x$have_pthread_np_h = xyes; then
  22546. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  22547. fi
  22548. # Check to see if pthread naming is available
  22549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  22550. printf %s "checking for pthread_setname_np... " >&6; }
  22551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22552. /* end confdefs.h. */
  22553. /* Override any GCC internal prototype to avoid an error.
  22554. Use char because int might match the return type of a GCC
  22555. builtin and then its argument prototype would still apply. */
  22556. char pthread_setname_np ();
  22557. int
  22558. main (void)
  22559. {
  22560. return pthread_setname_np ();
  22561. ;
  22562. return 0;
  22563. }
  22564. _ACEOF
  22565. if ac_fn_c_try_link "$LINENO"
  22566. then :
  22567. has_pthread_setname_np=yes
  22568. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  22569. else $as_nop
  22570. has_pthread_setname_np=no
  22571. fi
  22572. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22573. conftest$ac_exeext conftest.$ac_ext
  22574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  22575. printf "%s\n" "$has_pthread_setname_np" >&6; }
  22576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  22577. printf %s "checking for pthread_set_name_np... " >&6; }
  22578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22579. /* end confdefs.h. */
  22580. /* Override any GCC internal prototype to avoid an error.
  22581. Use char because int might match the return type of a GCC
  22582. builtin and then its argument prototype would still apply. */
  22583. char pthread_set_name_np ();
  22584. int
  22585. main (void)
  22586. {
  22587. return pthread_set_name_np ();
  22588. ;
  22589. return 0;
  22590. }
  22591. _ACEOF
  22592. if ac_fn_c_try_link "$LINENO"
  22593. then :
  22594. has_pthread_set_name_np=yes
  22595. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  22596. else $as_nop
  22597. has_pthread_set_name_np=no
  22598. fi
  22599. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22600. conftest$ac_exeext conftest.$ac_ext
  22601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  22602. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  22603. # Restore the compiler flags and libraries
  22604. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  22605. # Basic thread creation functions
  22606. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  22607. # Semaphores
  22608. # We can fake these with mutexes and condition variables if necessary
  22609. if test x$have_pthread_sem = xyes; then
  22610. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  22611. else
  22612. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  22613. fi
  22614. # Mutexes
  22615. # We can fake these with semaphores if necessary
  22616. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  22617. # Condition variables
  22618. # We can fake these with semaphores and mutexes if necessary
  22619. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  22620. # Thread local storage
  22621. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  22622. have_threads=yes
  22623. fi
  22624. fi
  22625. }
  22626. CheckWINDOWS()
  22627. {
  22628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  22629. printf %s "checking Windows compiler... " >&6; }
  22630. have_win32_gcc=no
  22631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22632. /* end confdefs.h. */
  22633. #include <windows.h>
  22634. int
  22635. main (void)
  22636. {
  22637. ;
  22638. return 0;
  22639. }
  22640. _ACEOF
  22641. if ac_fn_c_try_compile "$LINENO"
  22642. then :
  22643. have_win32_gcc=yes
  22644. fi
  22645. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  22647. printf "%s\n" "$have_win32_gcc" >&6; }
  22648. if test x$have_win32_gcc != xyes; then
  22649. as_fn_error $? "
  22650. *** Your compiler ($CC) does not produce Windows executables!
  22651. " "$LINENO" 5
  22652. fi
  22653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  22654. printf %s "checking Windows CE... " >&6; }
  22655. have_wince=no
  22656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22657. /* end confdefs.h. */
  22658. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  22659. #error This is not Windows CE
  22660. #endif
  22661. int
  22662. main (void)
  22663. {
  22664. ;
  22665. return 0;
  22666. }
  22667. _ACEOF
  22668. if ac_fn_c_try_compile "$LINENO"
  22669. then :
  22670. have_wince=yes
  22671. as_fn_error $? "
  22672. *** Sorry, Windows CE is no longer supported.
  22673. " "$LINENO" 5
  22674. fi
  22675. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  22677. printf "%s\n" "$have_wince" >&6; }
  22678. # This fixes Windows stack alignment with newer GCC
  22679. CheckStackBoundary
  22680. # headers needed elsewhere
  22681. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  22682. if test "x$ac_cv_header_tpcshrd_h" = xyes
  22683. then :
  22684. have_tpcshrd_h=yes
  22685. fi
  22686. if test x$have_tpcshrd_h = xyes; then
  22687. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  22688. fi
  22689. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  22690. if test "x$ac_cv_header_roapi_h" = xyes
  22691. then :
  22692. have_roapi_h=yes
  22693. fi
  22694. if test x$have_roapi_h = xyes; then
  22695. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  22696. fi
  22697. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  22698. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  22699. then :
  22700. have_shellscalingapi_h=yes
  22701. fi
  22702. if test x$shellscalingapi_h = xyes; then
  22703. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  22704. fi
  22705. }
  22706. CheckDIRECTX()
  22707. {
  22708. # Check whether --enable-directx was given.
  22709. if test ${enable_directx+y}
  22710. then :
  22711. enableval=$enable_directx;
  22712. else $as_nop
  22713. enable_directx=yes
  22714. fi
  22715. if test x$enable_directx = xyes; then
  22716. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  22717. if test "x$ac_cv_header_d3d9_h" = xyes
  22718. then :
  22719. have_d3d=yes
  22720. fi
  22721. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  22722. if test "x$ac_cv_header_d3d11_1_h" = xyes
  22723. then :
  22724. have_d3d11=yes
  22725. fi
  22726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  22727. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  22728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22729. /* end confdefs.h. */
  22730. #include <winsdkver.h>
  22731. #include <sdkddkver.h>
  22732. #include <d3d12.h>
  22733. ID3D12Device1 *device;
  22734. #if WDK_NTDDI_VERSION <= 0x0A000008
  22735. asdf
  22736. #endif
  22737. int
  22738. main (void)
  22739. {
  22740. ;
  22741. return 0;
  22742. }
  22743. _ACEOF
  22744. if ac_fn_c_try_compile "$LINENO"
  22745. then :
  22746. have_d3d12=yes
  22747. else $as_nop
  22748. have_d3d12=no
  22749. fi
  22750. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  22752. printf "%s\n" "$have_d3d12" >&6; }
  22753. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  22754. if test "x$ac_cv_header_ddraw_h" = xyes
  22755. then :
  22756. have_ddraw=yes
  22757. fi
  22758. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  22759. if test "x$ac_cv_header_dsound_h" = xyes
  22760. then :
  22761. have_dsound=yes
  22762. fi
  22763. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  22764. if test "x$ac_cv_header_dinput_h" = xyes
  22765. then :
  22766. have_dinput=yes
  22767. fi
  22768. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  22769. if test "x$ac_cv_header_dxgi_h" = xyes
  22770. then :
  22771. have_dxgi=yes
  22772. fi
  22773. if test x$have_ddraw = xyes; then
  22774. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  22775. fi
  22776. if test x$have_dinput = xyes; then
  22777. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  22778. fi
  22779. if test x$have_dsound = xyes; then
  22780. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  22781. fi
  22782. if test x$have_dxgi = xyes; then
  22783. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  22784. fi
  22785. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  22786. # FIXME: ...so force it off for now.
  22787. case "$host" in
  22788. *-*-cygwin*)
  22789. have_dinput=false
  22790. ;;
  22791. esac
  22792. fi
  22793. # Check whether --enable-xinput was given.
  22794. if test ${enable_xinput+y}
  22795. then :
  22796. enableval=$enable_xinput;
  22797. else $as_nop
  22798. enable_xinput=yes
  22799. fi
  22800. if test x$enable_xinput = xyes; then
  22801. have_xinput_gamepadex=no
  22802. have_xinput_stateex=no
  22803. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  22804. if test "x$ac_cv_header_xinput_h" = xyes
  22805. then :
  22806. have_xinput=yes
  22807. fi
  22808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  22809. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  22810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22811. /* end confdefs.h. */
  22812. #include <windows.h>
  22813. #include <xinput.h>
  22814. XINPUT_GAMEPAD_EX x1;
  22815. int
  22816. main (void)
  22817. {
  22818. ;
  22819. return 0;
  22820. }
  22821. _ACEOF
  22822. if ac_fn_c_try_compile "$LINENO"
  22823. then :
  22824. have_xinput_gamepadex=yes
  22825. fi
  22826. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  22828. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  22829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  22830. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  22831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22832. /* end confdefs.h. */
  22833. #include <windows.h>
  22834. #include <xinput.h>
  22835. XINPUT_STATE_EX s1;
  22836. int
  22837. main (void)
  22838. {
  22839. ;
  22840. return 0;
  22841. }
  22842. _ACEOF
  22843. if ac_fn_c_try_compile "$LINENO"
  22844. then :
  22845. have_xinput_stateex=yes
  22846. fi
  22847. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  22849. printf "%s\n" "$have_xinput_stateex" >&6; }
  22850. if test x$have_xinput = xyes; then
  22851. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  22852. fi
  22853. if test x$have_xinput_gamepadex = xyes; then
  22854. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  22855. fi
  22856. if test x$have_xinput_stateex = xyes; then
  22857. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  22858. fi
  22859. fi
  22860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  22861. printf %s "checking for windows.gaming.input.h... " >&6; }
  22862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22863. /* end confdefs.h. */
  22864. #define COBJMACROS
  22865. #include <windows.gaming.input.h>
  22866. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  22867. int
  22868. main (void)
  22869. {
  22870. ;
  22871. return 0;
  22872. }
  22873. _ACEOF
  22874. if ac_fn_c_try_compile "$LINENO"
  22875. then :
  22876. have_wgi=yes
  22877. else $as_nop
  22878. have_wgi=no
  22879. fi
  22880. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  22882. printf "%s\n" "$have_wgi" >&6; }
  22883. if test x$have_wgi = xyes; then
  22884. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  22885. fi
  22886. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  22887. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  22888. then :
  22889. have_wasapi=yes
  22890. fi
  22891. if test x$have_wasapi = xyes; then
  22892. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  22893. fi
  22894. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  22895. if test "x$ac_cv_header_audioclient_h" = xyes
  22896. then :
  22897. else $as_nop
  22898. have_wasapi=no
  22899. fi
  22900. if test x$have_wasapi = xyes; then
  22901. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  22902. fi
  22903. # Check whether --enable-wasapi was given.
  22904. if test ${enable_wasapi+y}
  22905. then :
  22906. enableval=$enable_wasapi;
  22907. else $as_nop
  22908. enable_wasapi=yes
  22909. fi
  22910. }
  22911. CheckDLOPEN()
  22912. {
  22913. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  22914. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  22915. if test "x$ac_cv_header_dlfcn_h" = xyes
  22916. then :
  22917. have_dlfcn_h=yes
  22918. else $as_nop
  22919. have_dlfcn_h=no
  22920. fi
  22921. have_dlopen=no
  22922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  22923. printf %s "checking for dlopen in -lc... " >&6; }
  22924. if test ${ac_cv_lib_c_dlopen+y}
  22925. then :
  22926. printf %s "(cached) " >&6
  22927. else $as_nop
  22928. ac_check_lib_save_LIBS=$LIBS
  22929. LIBS="-lc $LIBS"
  22930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22931. /* end confdefs.h. */
  22932. /* Override any GCC internal prototype to avoid an error.
  22933. Use char because int might match the return type of a GCC
  22934. builtin and then its argument prototype would still apply. */
  22935. char dlopen ();
  22936. int
  22937. main (void)
  22938. {
  22939. return dlopen ();
  22940. ;
  22941. return 0;
  22942. }
  22943. _ACEOF
  22944. if ac_fn_c_try_link "$LINENO"
  22945. then :
  22946. ac_cv_lib_c_dlopen=yes
  22947. else $as_nop
  22948. ac_cv_lib_c_dlopen=no
  22949. fi
  22950. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22951. conftest$ac_exeext conftest.$ac_ext
  22952. LIBS=$ac_check_lib_save_LIBS
  22953. fi
  22954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  22955. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  22956. if test "x$ac_cv_lib_c_dlopen" = xyes
  22957. then :
  22958. have_dlopen=yes
  22959. else $as_nop
  22960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  22961. printf %s "checking for dlopen in -ldl... " >&6; }
  22962. if test ${ac_cv_lib_dl_dlopen+y}
  22963. then :
  22964. printf %s "(cached) " >&6
  22965. else $as_nop
  22966. ac_check_lib_save_LIBS=$LIBS
  22967. LIBS="-ldl $LIBS"
  22968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22969. /* end confdefs.h. */
  22970. /* Override any GCC internal prototype to avoid an error.
  22971. Use char because int might match the return type of a GCC
  22972. builtin and then its argument prototype would still apply. */
  22973. char dlopen ();
  22974. int
  22975. main (void)
  22976. {
  22977. return dlopen ();
  22978. ;
  22979. return 0;
  22980. }
  22981. _ACEOF
  22982. if ac_fn_c_try_link "$LINENO"
  22983. then :
  22984. ac_cv_lib_dl_dlopen=yes
  22985. else $as_nop
  22986. ac_cv_lib_dl_dlopen=no
  22987. fi
  22988. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22989. conftest$ac_exeext conftest.$ac_ext
  22990. LIBS=$ac_check_lib_save_LIBS
  22991. fi
  22992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  22993. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  22994. if test "x$ac_cv_lib_dl_dlopen" = xyes
  22995. then :
  22996. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  22997. fi
  22998. fi
  22999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23000. printf %s "checking for dlopen... " >&6; }
  23001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23002. printf "%s\n" "$have_dlopen" >&6; }
  23003. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23004. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23005. if test x$enable_loadso = xyes; then
  23006. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23007. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23008. have_loadso=yes
  23009. fi
  23010. fi
  23011. }
  23012. CheckO_CLOEXEC()
  23013. {
  23014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23015. printf %s "checking for O_CLOEXEC... " >&6; }
  23016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23017. /* end confdefs.h. */
  23018. #include <fcntl.h>
  23019. int flag = O_CLOEXEC;
  23020. int
  23021. main (void)
  23022. {
  23023. ;
  23024. return 0;
  23025. }
  23026. _ACEOF
  23027. if ac_fn_c_try_compile "$LINENO"
  23028. then :
  23029. have_o_cloexec=yes
  23030. else $as_nop
  23031. have_o_cloexec=no
  23032. fi
  23033. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23035. printf "%s\n" "$have_o_cloexec" >&6; }
  23036. if test $have_o_cloexec = yes; then
  23037. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23038. fi
  23039. }
  23040. CheckUSBHID()
  23041. {
  23042. case "$host" in
  23043. *-*-*bsd*|*-*-dragonfly*)
  23044. if test x$enable_joystick = xyes; then
  23045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23046. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23047. if test ${ac_cv_lib_usbhid_hid_init+y}
  23048. then :
  23049. printf %s "(cached) " >&6
  23050. else $as_nop
  23051. ac_check_lib_save_LIBS=$LIBS
  23052. LIBS="-lusbhid $LIBS"
  23053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23054. /* end confdefs.h. */
  23055. /* Override any GCC internal prototype to avoid an error.
  23056. Use char because int might match the return type of a GCC
  23057. builtin and then its argument prototype would still apply. */
  23058. char hid_init ();
  23059. int
  23060. main (void)
  23061. {
  23062. return hid_init ();
  23063. ;
  23064. return 0;
  23065. }
  23066. _ACEOF
  23067. if ac_fn_c_try_link "$LINENO"
  23068. then :
  23069. ac_cv_lib_usbhid_hid_init=yes
  23070. else $as_nop
  23071. ac_cv_lib_usbhid_hid_init=no
  23072. fi
  23073. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23074. conftest$ac_exeext conftest.$ac_ext
  23075. LIBS=$ac_check_lib_save_LIBS
  23076. fi
  23077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23078. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23079. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23080. then :
  23081. have_libusbhid=yes
  23082. fi
  23083. if test x$have_libusbhid = xyes; then
  23084. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23085. if test "x$ac_cv_header_usbhid_h" = xyes
  23086. then :
  23087. USB_CFLAGS="-DHAVE_USBHID_H"
  23088. fi
  23089. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23090. if test "x$ac_cv_header_libusbhid_h" = xyes
  23091. then :
  23092. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23093. fi
  23094. USB_LIBS="$USB_LIBS -lusbhid"
  23095. else
  23096. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23097. if test "x$ac_cv_header_usb_h" = xyes
  23098. then :
  23099. USB_CFLAGS="-DHAVE_USB_H"
  23100. fi
  23101. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23102. if test "x$ac_cv_header_libusb_h" = xyes
  23103. then :
  23104. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23105. fi
  23106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23107. printf %s "checking for hid_init in -lusb... " >&6; }
  23108. if test ${ac_cv_lib_usb_hid_init+y}
  23109. then :
  23110. printf %s "(cached) " >&6
  23111. else $as_nop
  23112. ac_check_lib_save_LIBS=$LIBS
  23113. LIBS="-lusb $LIBS"
  23114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23115. /* end confdefs.h. */
  23116. /* Override any GCC internal prototype to avoid an error.
  23117. Use char because int might match the return type of a GCC
  23118. builtin and then its argument prototype would still apply. */
  23119. char hid_init ();
  23120. int
  23121. main (void)
  23122. {
  23123. return hid_init ();
  23124. ;
  23125. return 0;
  23126. }
  23127. _ACEOF
  23128. if ac_fn_c_try_link "$LINENO"
  23129. then :
  23130. ac_cv_lib_usb_hid_init=yes
  23131. else $as_nop
  23132. ac_cv_lib_usb_hid_init=no
  23133. fi
  23134. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23135. conftest$ac_exeext conftest.$ac_ext
  23136. LIBS=$ac_check_lib_save_LIBS
  23137. fi
  23138. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23139. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23140. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23141. then :
  23142. USB_LIBS="$USB_LIBS -lusb"
  23143. fi
  23144. fi
  23145. save_CFLAGS="$CFLAGS"
  23146. CFLAGS="$CFLAGS $USB_CFLAGS"
  23147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23148. printf %s "checking for usbhid... " >&6; }
  23149. have_usbhid=no
  23150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23151. /* end confdefs.h. */
  23152. #include <sys/types.h>
  23153. #if defined(HAVE_USB_H)
  23154. #include <usb.h>
  23155. #endif
  23156. #ifdef __DragonFly__
  23157. # include <bus/u4b/usb.h>
  23158. # include <bus/u4b/usbhid.h>
  23159. #else
  23160. # include <dev/usb/usb.h>
  23161. # include <dev/usb/usbhid.h>
  23162. #endif
  23163. #if defined(HAVE_USBHID_H)
  23164. #include <usbhid.h>
  23165. #elif defined(HAVE_LIBUSB_H)
  23166. #include <libusb.h>
  23167. #elif defined(HAVE_LIBUSBHID_H)
  23168. #include <libusbhid.h>
  23169. #endif
  23170. int
  23171. main (void)
  23172. {
  23173. struct report_desc *repdesc;
  23174. struct usb_ctl_report *repbuf;
  23175. hid_kind_t hidkind;
  23176. ;
  23177. return 0;
  23178. }
  23179. _ACEOF
  23180. if ac_fn_c_try_compile "$LINENO"
  23181. then :
  23182. have_usbhid=yes
  23183. fi
  23184. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23186. printf "%s\n" "$have_usbhid" >&6; }
  23187. if test x$have_usbhid = xyes; then
  23188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23189. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23190. have_usbhid_ucr_data=no
  23191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23192. /* end confdefs.h. */
  23193. #include <sys/types.h>
  23194. #if defined(HAVE_USB_H)
  23195. #include <usb.h>
  23196. #endif
  23197. #ifdef __DragonFly__
  23198. # include <bus/u4b/usb.h>
  23199. # include <bus/u4b/usbhid.h>
  23200. #else
  23201. # include <dev/usb/usb.h>
  23202. # include <dev/usb/usbhid.h>
  23203. #endif
  23204. #if defined(HAVE_USBHID_H)
  23205. #include <usbhid.h>
  23206. #elif defined(HAVE_LIBUSB_H)
  23207. #include <libusb.h>
  23208. #elif defined(HAVE_LIBUSBHID_H)
  23209. #include <libusbhid.h>
  23210. #endif
  23211. int
  23212. main (void)
  23213. {
  23214. struct usb_ctl_report buf;
  23215. if (buf.ucr_data) { }
  23216. ;
  23217. return 0;
  23218. }
  23219. _ACEOF
  23220. if ac_fn_c_try_compile "$LINENO"
  23221. then :
  23222. have_usbhid_ucr_data=yes
  23223. fi
  23224. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23225. if test x$have_usbhid_ucr_data = xyes; then
  23226. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  23227. fi
  23228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  23229. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  23230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  23231. printf %s "checking for new usbhid API... " >&6; }
  23232. have_usbhid_new=no
  23233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23234. /* end confdefs.h. */
  23235. #include <sys/types.h>
  23236. #if defined(HAVE_USB_H)
  23237. #include <usb.h>
  23238. #endif
  23239. #ifdef __DragonFly__
  23240. #include <bus/u4b/usb.h>
  23241. #include <bus/u4b/usbhid.h>
  23242. #else
  23243. #include <dev/usb/usb.h>
  23244. #include <dev/usb/usbhid.h>
  23245. #endif
  23246. #if defined(HAVE_USBHID_H)
  23247. #include <usbhid.h>
  23248. #elif defined(HAVE_LIBUSB_H)
  23249. #include <libusb.h>
  23250. #elif defined(HAVE_LIBUSBHID_H)
  23251. #include <libusbhid.h>
  23252. #endif
  23253. int
  23254. main (void)
  23255. {
  23256. report_desc_t d;
  23257. hid_start_parse(d, 1, 1);
  23258. ;
  23259. return 0;
  23260. }
  23261. _ACEOF
  23262. if ac_fn_c_try_compile "$LINENO"
  23263. then :
  23264. have_usbhid_new=yes
  23265. fi
  23266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23267. if test x$have_usbhid_new = xyes; then
  23268. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  23269. fi
  23270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  23271. printf "%s\n" "$have_usbhid_new" >&6; }
  23272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  23273. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  23274. have_machine_joystick=no
  23275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23276. /* end confdefs.h. */
  23277. #include <machine/joystick.h>
  23278. int
  23279. main (void)
  23280. {
  23281. struct joystick t;
  23282. ;
  23283. return 0;
  23284. }
  23285. _ACEOF
  23286. if ac_fn_c_try_compile "$LINENO"
  23287. then :
  23288. have_machine_joystick=yes
  23289. fi
  23290. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23291. if test x$have_machine_joystick = xyes; then
  23292. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  23293. fi
  23294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  23295. printf "%s\n" "$have_machine_joystick" >&6; }
  23296. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  23297. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  23298. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  23299. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  23300. have_joystick=yes
  23301. fi
  23302. CFLAGS="$save_CFLAGS"
  23303. fi
  23304. ;;
  23305. esac
  23306. }
  23307. CheckHIDAPI()
  23308. {
  23309. # Check whether --enable-hidapi-joystick was given.
  23310. if test ${enable_hidapi_joystick+y}
  23311. then :
  23312. enableval=$enable_hidapi_joystick;
  23313. else $as_nop
  23314. enable_hidapi_joystick=yes
  23315. fi
  23316. # Check whether --enable-hidapi-libusb was given.
  23317. if test ${enable_hidapi_libusb+y}
  23318. then :
  23319. enableval=$enable_hidapi_libusb;
  23320. else $as_nop
  23321. enable_hidapi_libusb=maybe
  23322. fi
  23323. if test x$enable_hidapi = xyes; then
  23324. case "$host" in
  23325. # libusb does not support iOS
  23326. *-ios-* )
  23327. enable_hidapi_libusb=no
  23328. ;;
  23329. # On the other hand, *BSD specifically uses libusb only
  23330. *-*-*bsd* )
  23331. enable_hidapi_libusb=yes
  23332. require_hidapi_libusb=yes
  23333. ;;
  23334. esac
  23335. hidapi_support=yes
  23336. if test x$enable_hidapi_libusb = xyes; then
  23337. pkg_failed=no
  23338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  23339. printf %s "checking for libusb-1.0... " >&6; }
  23340. if test -n "$LIBUSB_CFLAGS"; then
  23341. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  23342. elif test -n "$PKG_CONFIG"; then
  23343. if test -n "$PKG_CONFIG" && \
  23344. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23345. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23346. ac_status=$?
  23347. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23348. test $ac_status = 0; }; then
  23349. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  23350. test "x$?" != "x0" && pkg_failed=yes
  23351. else
  23352. pkg_failed=yes
  23353. fi
  23354. else
  23355. pkg_failed=untried
  23356. fi
  23357. if test -n "$LIBUSB_LIBS"; then
  23358. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  23359. elif test -n "$PKG_CONFIG"; then
  23360. if test -n "$PKG_CONFIG" && \
  23361. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  23362. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  23363. ac_status=$?
  23364. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23365. test $ac_status = 0; }; then
  23366. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  23367. test "x$?" != "x0" && pkg_failed=yes
  23368. else
  23369. pkg_failed=yes
  23370. fi
  23371. else
  23372. pkg_failed=untried
  23373. fi
  23374. if test $pkg_failed = yes; then
  23375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23376. printf "%s\n" "no" >&6; }
  23377. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23378. _pkg_short_errors_supported=yes
  23379. else
  23380. _pkg_short_errors_supported=no
  23381. fi
  23382. if test $_pkg_short_errors_supported = yes; then
  23383. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23384. else
  23385. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  23386. fi
  23387. # Put the nasty error message in config.log where it belongs
  23388. echo "$LIBUSB_PKG_ERRORS" >&5
  23389. have_libusb=no
  23390. elif test $pkg_failed = untried; then
  23391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23392. printf "%s\n" "no" >&6; }
  23393. have_libusb=no
  23394. else
  23395. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  23396. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  23397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23398. printf "%s\n" "yes" >&6; }
  23399. have_libusb=yes
  23400. fi
  23401. save_CPPFLAGS="$CPPFLAGS"
  23402. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  23403. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23404. if test "x$ac_cv_header_libusb_h" = xyes
  23405. then :
  23406. have_libusb_h=yes
  23407. else $as_nop
  23408. have_libusb_h=no
  23409. fi
  23410. CPPFLAGS="$save_CPPFLAGS"
  23411. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  23412. hidapi_support=no
  23413. fi
  23414. fi
  23415. if test x$hidapi_support = xyes; then
  23416. if test x$have_libusb_h = xyes; then
  23417. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  23418. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  23419. if test x$require_hidapi_libusb = xyes; then
  23420. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  23421. else
  23422. if test x$have_loadso != xyes; then
  23423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  23424. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  23425. fi
  23426. # libusb is loaded dynamically, so don't add it to LDFLAGS
  23427. libusb_lib=""
  23428. case "$host" in
  23429. *-*-darwin* )
  23430. libusb_lib="libusb-1.0.0.dylib"
  23431. ;;
  23432. *-*-cygwin* | *-*-mingw* )
  23433. libusb_lib="libusb-1.0.dll"
  23434. ;;
  23435. esac
  23436. if test x$libusb_lib = x; then
  23437. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  23438. fi
  23439. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  23440. fi
  23441. fi
  23442. fi
  23443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  23444. printf %s "checking for hidapi joystick support... " >&6; }
  23445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  23446. printf "%s\n" "$hidapi_support" >&6; }
  23447. fi
  23448. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  23449. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  23450. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  23451. fi
  23452. }
  23453. CheckClockGettime()
  23454. {
  23455. # Check whether --enable-clock_gettime was given.
  23456. if test ${enable_clock_gettime+y}
  23457. then :
  23458. enableval=$enable_clock_gettime;
  23459. else $as_nop
  23460. enable_clock_gettime=yes
  23461. fi
  23462. if test x$enable_clock_gettime = xyes; then
  23463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  23464. printf %s "checking for clock_gettime in -lrt... " >&6; }
  23465. if test ${ac_cv_lib_rt_clock_gettime+y}
  23466. then :
  23467. printf %s "(cached) " >&6
  23468. else $as_nop
  23469. ac_check_lib_save_LIBS=$LIBS
  23470. LIBS="-lrt $LIBS"
  23471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23472. /* end confdefs.h. */
  23473. /* Override any GCC internal prototype to avoid an error.
  23474. Use char because int might match the return type of a GCC
  23475. builtin and then its argument prototype would still apply. */
  23476. char clock_gettime ();
  23477. int
  23478. main (void)
  23479. {
  23480. return clock_gettime ();
  23481. ;
  23482. return 0;
  23483. }
  23484. _ACEOF
  23485. if ac_fn_c_try_link "$LINENO"
  23486. then :
  23487. ac_cv_lib_rt_clock_gettime=yes
  23488. else $as_nop
  23489. ac_cv_lib_rt_clock_gettime=no
  23490. fi
  23491. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23492. conftest$ac_exeext conftest.$ac_ext
  23493. LIBS=$ac_check_lib_save_LIBS
  23494. fi
  23495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  23496. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  23497. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  23498. then :
  23499. have_clock_gettime=yes
  23500. fi
  23501. if test x$have_clock_gettime = xyes; then
  23502. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23503. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  23504. else
  23505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  23506. printf %s "checking for clock_gettime in -lc... " >&6; }
  23507. if test ${ac_cv_lib_c_clock_gettime+y}
  23508. then :
  23509. printf %s "(cached) " >&6
  23510. else $as_nop
  23511. ac_check_lib_save_LIBS=$LIBS
  23512. LIBS="-lc $LIBS"
  23513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23514. /* end confdefs.h. */
  23515. /* Override any GCC internal prototype to avoid an error.
  23516. Use char because int might match the return type of a GCC
  23517. builtin and then its argument prototype would still apply. */
  23518. char clock_gettime ();
  23519. int
  23520. main (void)
  23521. {
  23522. return clock_gettime ();
  23523. ;
  23524. return 0;
  23525. }
  23526. _ACEOF
  23527. if ac_fn_c_try_link "$LINENO"
  23528. then :
  23529. ac_cv_lib_c_clock_gettime=yes
  23530. else $as_nop
  23531. ac_cv_lib_c_clock_gettime=no
  23532. fi
  23533. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23534. conftest$ac_exeext conftest.$ac_ext
  23535. LIBS=$ac_check_lib_save_LIBS
  23536. fi
  23537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  23538. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  23539. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  23540. then :
  23541. have_clock_gettime=yes
  23542. fi
  23543. if test x$have_clock_gettime = xyes; then
  23544. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  23545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  23546. fi
  23547. fi
  23548. fi
  23549. }
  23550. CheckLinuxVersion()
  23551. {
  23552. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  23553. if test "x$ac_cv_header_linux_version_h" = xyes
  23554. then :
  23555. have_linux_version_h=yes
  23556. fi
  23557. if test x$have_linux_version_h = xyes; then
  23558. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  23559. fi
  23560. }
  23561. CheckRPATH()
  23562. {
  23563. # Check whether --enable-rpath was given.
  23564. if test ${enable_rpath+y}
  23565. then :
  23566. enableval=$enable_rpath;
  23567. else $as_nop
  23568. enable_rpath=yes
  23569. fi
  23570. }
  23571. CheckEventSignals()
  23572. {
  23573. # Check whether --enable-backgrounding-signal was given.
  23574. if test ${enable_backgrounding_signal+y}
  23575. then :
  23576. enableval=$enable_backgrounding_signal;
  23577. else $as_nop
  23578. enable_backgrounding_signal=no
  23579. fi
  23580. if test x$enable_backgrounding_signal != xno; then
  23581. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  23582. fi
  23583. # Check whether --enable-foregrounding-signal was given.
  23584. if test ${enable_foregrounding_signal+y}
  23585. then :
  23586. enableval=$enable_foregrounding_signal;
  23587. else $as_nop
  23588. enable_foregrounding_signal=no
  23589. fi
  23590. if test x$enable_foregrounding_signal != xno; then
  23591. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  23592. fi
  23593. }
  23594. CheckVirtualJoystick()
  23595. {
  23596. # Check whether --enable-joystick-virtual was given.
  23597. if test ${enable_joystick_virtual+y}
  23598. then :
  23599. enableval=$enable_joystick_virtual;
  23600. else $as_nop
  23601. enable_joystick_virtual=yes
  23602. fi
  23603. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  23604. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  23605. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  23606. have_joystick_virtual=yes
  23607. fi
  23608. }
  23609. CheckWarnAll
  23610. CheckNoStrictAliasing
  23611. CheckEventSignals
  23612. have_locale=no
  23613. case "$host" in
  23614. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*)
  23615. case "$host" in
  23616. *-*-android*)
  23617. # Android
  23618. ARCH=android
  23619. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  23620. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  23621. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  23622. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  23623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  23624. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  23625. if test x$enable_video = xyes; then
  23626. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  23627. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  23628. SUMMARY_video="${SUMMARY_video} android"
  23629. have_video=yes
  23630. fi
  23631. ;;
  23632. *-*-linux*) ARCH=linux ;;
  23633. *-*-uclinux*) ARCH=linux ;;
  23634. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  23635. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  23636. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  23637. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  23638. *-*-bsdi*) ARCH=bsdi ;;
  23639. *-*-freebsd*) ARCH=freebsd ;;
  23640. *-*-dragonfly*) ARCH=freebsd ;;
  23641. *-*-netbsd*) ARCH=netbsd ;;
  23642. *-*-openbsd*) ARCH=openbsd ;;
  23643. *-*-sysv5*) ARCH=sysv5 ;;
  23644. *-*-solaris*) ARCH=solaris ;;
  23645. *-*-hpux*) ARCH=hpux ;;
  23646. *-*-aix*) ARCH=aix ;;
  23647. *-*-minix*) ARCH=minix ;;
  23648. esac
  23649. CheckVisibilityHidden
  23650. CheckWerror
  23651. CheckDeclarationAfterStatement
  23652. CheckDummyVideo
  23653. CheckDiskAudio
  23654. CheckDummyAudio
  23655. CheckDLOPEN
  23656. CheckARM
  23657. CheckNEON
  23658. CheckO_CLOEXEC
  23659. CheckOSS
  23660. CheckALSA
  23661. CheckPipewire
  23662. CheckPulseAudio
  23663. CheckJACK
  23664. CheckSNDIO
  23665. CheckLibSampleRate
  23666. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  23667. CheckRPI
  23668. CheckX11
  23669. # Need to check for EGL first because Offscreen, KMSDRM and Wayland depend on it.
  23670. CheckEGL
  23671. CheckOffscreenVideo
  23672. CheckKMSDRM
  23673. CheckGLX
  23674. CheckOpenGL
  23675. CheckOpenGLES
  23676. CheckVulkan
  23677. CheckWayland
  23678. CheckInputEvents
  23679. CheckLibUDev
  23680. CheckDBus
  23681. CheckIME
  23682. CheckInotify
  23683. CheckIBus
  23684. CheckFcitx
  23685. case $ARCH in
  23686. linux)
  23687. CheckInputKD
  23688. ;;
  23689. freebsd)
  23690. CheckInputKBIO
  23691. ;;
  23692. openbsd|netbsd)
  23693. CheckInputWSCONS
  23694. ;;
  23695. esac
  23696. CheckUSBHID
  23697. CheckHIDAPI
  23698. CheckPTHREAD
  23699. CheckClockGettime
  23700. CheckLinuxVersion
  23701. CheckRPATH
  23702. CheckVivanteVideo
  23703. # Set up files for the misc library
  23704. if test x$enable_misc = xyes; then
  23705. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  23706. have_misc=yes
  23707. fi
  23708. # Set up files for the locale library
  23709. if test x$enable_locale = xyes; then
  23710. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  23711. have_locale=yes
  23712. fi
  23713. # Set up files for the audio library
  23714. if test x$enable_audio = xyes; then
  23715. case $ARCH in
  23716. netbsd) # Don't use this on OpenBSD, it's busted.
  23717. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  23718. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  23719. SUMMARY_audio="${SUMMARY_audio} netbsd"
  23720. have_audio=yes
  23721. ;;
  23722. android)
  23723. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  23724. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  23725. SUMMARY_audio="${SUMMARY_audio} android"
  23726. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  23727. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  23728. SUMMARY_audio="${SUMMARY_audio} openslES"
  23729. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  23730. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  23731. SUMMARY_audio="${SUMMARY_audio} aaudio"
  23732. have_audio=yes
  23733. ;;
  23734. esac
  23735. fi
  23736. # Set up files for the joystick library
  23737. if test x$enable_joystick = xyes; then
  23738. case $ARCH in
  23739. linux)
  23740. if test "x$ac_cv_header_linux_input_h" = xyes; then
  23741. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23742. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23743. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23744. have_joystick=yes
  23745. fi
  23746. ;;
  23747. freebsd)
  23748. if test x$use_input_events = xyes -a x$ac_cv_header_linux_input_h = xyes; then
  23749. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  23750. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  23751. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23752. have_joystick=yes
  23753. fi
  23754. ;;
  23755. android)
  23756. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  23757. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  23758. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  23759. have_joystick=yes
  23760. ;;
  23761. esac
  23762. fi
  23763. # Set up files for the haptic library
  23764. if test x$enable_haptic = xyes; then
  23765. case $ARCH in
  23766. linux|freebsd)
  23767. if test x$use_input_events = xyes; then
  23768. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  23769. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  23770. have_haptic=yes
  23771. fi
  23772. ;;
  23773. android)
  23774. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  23775. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  23776. have_haptic=yes
  23777. ;;
  23778. esac
  23779. fi
  23780. # Set up files for the sensor library
  23781. if test x$enable_sensor = xyes; then
  23782. case $ARCH in
  23783. android)
  23784. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  23785. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  23786. have_sensor=yes
  23787. ;;
  23788. esac
  23789. fi
  23790. # Set up files for the power library
  23791. if test x$enable_power = xyes; then
  23792. case $ARCH in
  23793. linux)
  23794. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  23795. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  23796. have_power=yes
  23797. ;;
  23798. android)
  23799. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  23800. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  23801. have_power=yes
  23802. ;;
  23803. esac
  23804. fi
  23805. # Set up files for the filesystem library
  23806. if test x$enable_filesystem = xyes; then
  23807. case $ARCH in
  23808. android)
  23809. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  23810. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  23811. have_filesystem=yes
  23812. ;;
  23813. *)
  23814. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  23815. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  23816. have_filesystem=yes
  23817. ;;
  23818. esac
  23819. fi
  23820. # Set up files for the timer library
  23821. if test x$enable_timers = xyes; then
  23822. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  23823. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  23824. have_timers=yes
  23825. fi
  23826. # Set up files for udev hotplugging support
  23827. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  23828. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  23829. fi
  23830. # Set up files for evdev input
  23831. if test x$use_input_events = xyes; then
  23832. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  23833. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  23834. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  23835. fi
  23836. # Set up files for wscons input
  23837. if test x$use_input_wscons = xyes; then
  23838. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  23839. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  23840. fi
  23841. # Set up other core UNIX files
  23842. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  23843. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  23844. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  23845. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  23846. ;;
  23847. *-*-cygwin* | *-*-mingw*)
  23848. ARCH=win32
  23849. if test "$build" != "$host"; then # cross-compiling
  23850. # Default cross-compile location
  23851. ac_default_prefix=/usr/local/cross-tools/$host
  23852. else
  23853. # Look for the location of the tools and install there
  23854. if test "$BUILD_PREFIX" != ""; then
  23855. ac_default_prefix=$BUILD_PREFIX
  23856. fi
  23857. fi
  23858. if test x$enable_loadso = xyes; then
  23859. have_loadso=yes
  23860. fi
  23861. CheckGDwarf4
  23862. CheckWerror
  23863. CheckDeclarationAfterStatement
  23864. CheckDummyVideo
  23865. CheckDiskAudio
  23866. CheckDummyAudio
  23867. CheckWINDOWS
  23868. CheckWINDOWSGL
  23869. CheckWINDOWSGLES
  23870. CheckOffscreenVideo
  23871. CheckVulkan
  23872. CheckDIRECTX
  23873. CheckHIDAPI
  23874. # Set up the core platform files
  23875. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  23876. # Set up files for the misc library
  23877. if test x$enable_misc = xyes; then
  23878. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  23879. have_misc=yes
  23880. fi
  23881. # Use the Windows locale APIs.
  23882. if test x$enable_locale = xyes; then
  23883. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  23884. have_locale=yes
  23885. fi
  23886. # Set up files for the video library
  23887. if test x$enable_video = xyes; then
  23888. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  23889. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  23890. have_video=yes
  23891. # Check whether --enable-render-d3d was given.
  23892. if test ${enable_render_d3d+y}
  23893. then :
  23894. enableval=$enable_render_d3d;
  23895. else $as_nop
  23896. enable_render_d3d=yes
  23897. fi
  23898. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  23899. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  23900. SUMMARY_video="${SUMMARY_video} d3d9"
  23901. fi
  23902. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  23903. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  23904. SUMMARY_video="${SUMMARY_video} d3d11"
  23905. fi
  23906. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  23907. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  23908. SUMMARY_video="${SUMMARY_video} d3d12"
  23909. fi
  23910. fi
  23911. # Set up files for the audio library
  23912. if test x$enable_audio = xyes; then
  23913. if test x$have_dsound = xyes; then
  23914. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  23915. SUMMARY_audio="${SUMMARY_audio} directsound"
  23916. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  23917. fi
  23918. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  23919. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  23920. SUMMARY_audio="${SUMMARY_audio} wasapi"
  23921. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  23922. fi
  23923. have_audio=yes
  23924. fi
  23925. # Set up files for the joystick library
  23926. if test x$enable_joystick = xyes; then
  23927. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  23928. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  23929. if test x$have_xinput = xyes; then
  23930. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  23931. fi
  23932. if test x$have_wgi = xyes; then
  23933. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  23934. fi
  23935. if test x$have_dinput = xyes; then
  23936. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  23937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  23938. fi
  23939. fi
  23940. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  23941. have_joystick=yes
  23942. fi
  23943. if test x$enable_haptic = xyes; then
  23944. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  23945. if test x$have_xinput = xyes; then
  23946. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  23947. fi
  23948. if test x$have_dinput = xyes; then
  23949. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  23950. fi
  23951. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  23952. have_haptic=yes
  23953. fi
  23954. fi
  23955. # Set up files for the sensor library
  23956. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  23957. if test "x$ac_cv_header_sensorsapi_h" = xyes
  23958. then :
  23959. have_winsensors=yes
  23960. else $as_nop
  23961. have_winsensors=no
  23962. fi
  23963. if test x$have_winsensors = xyes; then
  23964. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  23965. fi
  23966. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  23967. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  23968. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  23969. have_sensor=yes
  23970. fi
  23971. # Set up files for the power library
  23972. if test x$enable_power = xyes; then
  23973. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  23974. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  23975. have_power=yes
  23976. fi
  23977. # Set up files for the filesystem library
  23978. if test x$enable_filesystem = xyes; then
  23979. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  23980. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  23981. have_filesystem=yes
  23982. fi
  23983. # Set up files for the thread library
  23984. if test x$enable_threads = xyes; then
  23985. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  23986. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  23987. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  23988. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  23989. have_threads=yes
  23990. fi
  23991. # Set up files for the timer library
  23992. if test x$enable_timers = xyes; then
  23993. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  23994. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  23995. have_timers=yes
  23996. fi
  23997. # Set up files for the shared object loading library
  23998. if test x$enable_loadso = xyes; then
  23999. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24000. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24001. fi
  24002. # Set up the system libraries we need
  24003. if test -f /lib/w32api/libuuid.a; then
  24004. LIBUUID=/lib/w32api/libuuid.a
  24005. else
  24006. LIBUUID=-luuid
  24007. fi
  24008. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24009. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24010. # The Windows platform requires special setup
  24011. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24012. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24013. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24014. SDL_LIBS="-lSDL3main $SDL_LIBS -mwindows"
  24015. # Check to see if this is a mingw or cygwin build
  24016. have_mingw32=
  24017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24018. printf %s "checking for main in -lmingw32... " >&6; }
  24019. if test ${ac_cv_lib_mingw32_main+y}
  24020. then :
  24021. printf %s "(cached) " >&6
  24022. else $as_nop
  24023. ac_check_lib_save_LIBS=$LIBS
  24024. LIBS="-lmingw32 $LIBS"
  24025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24026. /* end confdefs.h. */
  24027. int
  24028. main (void)
  24029. {
  24030. return main ();
  24031. ;
  24032. return 0;
  24033. }
  24034. _ACEOF
  24035. if ac_fn_c_try_link "$LINENO"
  24036. then :
  24037. ac_cv_lib_mingw32_main=yes
  24038. else $as_nop
  24039. ac_cv_lib_mingw32_main=no
  24040. fi
  24041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24042. conftest$ac_exeext conftest.$ac_ext
  24043. LIBS=$ac_check_lib_save_LIBS
  24044. fi
  24045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24046. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24047. if test "x$ac_cv_lib_mingw32_main" = xyes
  24048. then :
  24049. have_mingw32=yes
  24050. fi
  24051. if test x$have_mingw32 = xyes; then
  24052. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24053. else
  24054. SDL_LIBS="-lcygwin $SDL_LIBS"
  24055. fi
  24056. ;;
  24057. *-*-beos*)
  24058. as_fn_error $? "
  24059. *** BeOS support has been removed as of SDL 2.0.2.
  24060. " "$LINENO" 5
  24061. ;;
  24062. *-*-haiku*)
  24063. ARCH=haiku
  24064. ac_default_prefix=/boot/system
  24065. CheckDummyVideo
  24066. CheckDiskAudio
  24067. CheckDummyAudio
  24068. CheckDLOPEN
  24069. CheckO_CLOEXEC
  24070. CheckHaikuVideo
  24071. CheckHaikuGL
  24072. CheckPTHREAD
  24073. # Set up files for the audio library
  24074. if test x$enable_audio = xyes; then
  24075. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24076. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24077. SUMMARY_audio="${SUMMARY_audio} haiku"
  24078. have_audio=yes
  24079. fi
  24080. # Set up files for the joystick library
  24081. if test x$enable_joystick = xyes; then
  24082. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24083. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24084. have_joystick=yes
  24085. fi
  24086. # Set up files for the timer library
  24087. if test x$enable_timers = xyes; then
  24088. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24089. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24090. have_timers=yes
  24091. fi
  24092. # Set up files for the system power library
  24093. if test x$enable_power = xyes; then
  24094. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24095. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24096. have_power=yes
  24097. fi
  24098. # Set up files for the system filesystem library
  24099. if test x$enable_filesystem = xyes; then
  24100. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24101. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24102. have_filesystem=yes
  24103. fi
  24104. # Set up files for the misc library
  24105. if test x$enable_misc = xyes; then
  24106. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24107. have_misc=yes
  24108. fi
  24109. # Set up files for the locale library
  24110. if test x$enable_locale = xyes; then
  24111. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24112. have_locale=yes
  24113. fi
  24114. # The Haiku platform requires special setup.
  24115. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24117. ;;
  24118. *-ios-*)
  24119. ARCH=ios
  24120. CheckVisibilityHidden
  24121. CheckWerror
  24122. CheckNoErrorDeprecatedDeclarationsWerror
  24123. CheckDeclarationAfterStatement
  24124. CheckDummyVideo
  24125. CheckDiskAudio
  24126. CheckDummyAudio
  24127. CheckDLOPEN
  24128. CheckO_CLOEXEC
  24129. CheckMETAL
  24130. CheckVulkan
  24131. CheckPTHREAD
  24132. # Set up files for the misc library
  24133. if test x$enable_misc = xyes; then
  24134. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24135. have_misc=yes
  24136. fi
  24137. # Set up files for the locale library
  24138. if test x$enable_locale = xyes; then
  24139. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24140. have_locale=yes
  24141. fi
  24142. # Set up files for the audio library
  24143. if test x$enable_audio = xyes; then
  24144. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24145. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24146. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24147. have_audio=yes
  24148. fi
  24149. # Set up files for the joystick library
  24150. if test x$enable_joystick = xyes; then
  24151. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24152. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24153. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24154. have_joystick=yes
  24155. else
  24156. # Need this code for accelerometer as joystick support
  24157. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24158. fi
  24159. # Set up files for the haptic library
  24160. #if test x$enable_haptic = xyes; then
  24161. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24162. # have_haptic=yes
  24163. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24164. #fi
  24165. # Set up files for the sensor library
  24166. if test x$enable_sensor = xyes; then
  24167. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24168. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24169. have_sensor=yes
  24170. fi
  24171. # Set up files for the power library
  24172. if test x$enable_power = xyes; then
  24173. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24174. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24175. have_power=yes
  24176. fi
  24177. # Set up files for the filesystem library
  24178. if test x$enable_filesystem = xyes; then
  24179. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24180. have_filesystem=yes
  24181. fi
  24182. # Set up additional files for the file library
  24183. if test x$enable_file = xyes; then
  24184. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24185. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24186. fi
  24187. # Set up files for the timer library
  24188. if test x$enable_timers = xyes; then
  24189. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24190. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24191. have_timers=yes
  24192. fi
  24193. # Set up other core UNIX files
  24194. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24195. # The iOS platform requires special setup.
  24196. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  24197. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  24198. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  24199. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  24200. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  24201. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  24202. SUMMARY_video="${SUMMARY_video} uikit"
  24203. have_video=yes
  24204. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  24205. if test x$enable_system_iconv = xyes; then
  24206. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  24207. fi
  24208. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24209. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  24210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  24211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  24212. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  24213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreHaptics"
  24214. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  24215. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  24216. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  24217. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  24218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  24219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  24220. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24221. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  24222. fi
  24223. ;;
  24224. *-*-darwin* )
  24225. # This could be either full "Mac OS X", or plain "Darwin" which is
  24226. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  24227. # Next line is broken, and a few files below require Mac OS X (full)
  24228. ARCH=macosx
  24229. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  24230. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  24231. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  24232. CheckObjectiveCARC
  24233. CheckVisibilityHidden
  24234. CheckWerror
  24235. CheckNoErrorDeprecatedDeclarationsWerror
  24236. CheckDeclarationAfterStatement
  24237. CheckDummyVideo
  24238. CheckDiskAudio
  24239. CheckDummyAudio
  24240. CheckDLOPEN
  24241. CheckO_CLOEXEC
  24242. CheckCOCOA
  24243. CheckMETAL
  24244. CheckX11
  24245. CheckMacGL
  24246. CheckMacGLES
  24247. CheckGLX
  24248. CheckOpenGL
  24249. CheckOffscreenVideo
  24250. CheckVulkan
  24251. CheckPTHREAD
  24252. CheckHIDAPI
  24253. # Set up files for the misc library
  24254. if test x$enable_misc = xyes; then
  24255. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  24256. have_misc=yes
  24257. fi
  24258. # Set up files for the locale library
  24259. if test x$enable_locale = xyes; then
  24260. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24261. have_locale=yes
  24262. fi
  24263. # Set up files for the audio library
  24264. if test x$enable_audio = xyes; then
  24265. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24266. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  24268. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24269. have_audio=yes
  24270. fi
  24271. # Set up files for the joystick library
  24272. if test x$enable_joystick = xyes; then
  24273. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  24274. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  24275. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24276. CheckJoystickMFI
  24277. have_joystick=yes
  24278. fi
  24279. # Set up files for the haptic library
  24280. if test x$enable_haptic = xyes; then
  24281. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  24282. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24283. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24284. have_haptic=yes
  24285. fi
  24286. # Set up files for the power library
  24287. if test x$enable_power = xyes; then
  24288. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  24289. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  24290. have_power=yes
  24291. fi
  24292. # Set up files for the filesystem library
  24293. if test x$enable_filesystem = xyes; then
  24294. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24295. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24296. have_filesystem=yes
  24297. fi
  24298. # Set up files for the timer library
  24299. if test x$enable_timers = xyes; then
  24300. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24301. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24302. have_timers=yes
  24303. fi
  24304. # Set up additional files for the file library
  24305. if test x$enable_file = xyes; then
  24306. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24307. fi
  24308. # Set up other core UNIX files
  24309. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24310. # The Mac OS X platform requires special setup.
  24311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  24312. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  24313. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  24314. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  24315. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  24316. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  24317. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  24318. fi
  24319. ;;
  24320. *-*-emscripten* )
  24321. if test x$enable_video = xyes; then
  24322. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24323. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  24324. have_video=yes
  24325. SUMMARY_video="${SUMMARY_video} emscripten"
  24326. fi
  24327. if test x$enable_audio = xyes; then
  24328. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  24329. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  24330. have_audio=yes
  24331. SUMMARY_audio="${SUMMARY_audio} emscripten"
  24332. fi
  24333. CheckVisibilityHidden
  24334. CheckWerror
  24335. CheckDeclarationAfterStatement
  24336. CheckDummyVideo
  24337. CheckDiskAudio
  24338. CheckDummyAudio
  24339. CheckPTHREAD
  24340. CheckDLOPEN
  24341. CheckClockGettime
  24342. CheckEmscriptenGLES
  24343. CheckOffscreenVideo
  24344. # Set up files for the misc library
  24345. if test x$enable_misc = xyes; then
  24346. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  24347. have_misc=yes
  24348. fi
  24349. # Set up files for the power library
  24350. if test x$enable_power = xyes; then
  24351. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  24352. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  24353. have_power=yes
  24354. fi
  24355. # Set up files for the joystick library
  24356. if test x$enable_joystick = xyes; then
  24357. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  24358. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  24359. have_joystick=yes
  24360. fi
  24361. # Set up files for the filesystem library
  24362. if test x$enable_filesystem = xyes; then
  24363. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  24364. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  24365. have_filesystem=yes
  24366. fi
  24367. # Set up files for the timer library
  24368. if test x$enable_timers = xyes; then
  24369. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24370. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24371. have_timers=yes
  24372. fi
  24373. # Set up files for the locale library
  24374. if test x$enable_locale = xyes; then
  24375. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  24376. have_locale=yes
  24377. fi
  24378. ;;
  24379. *-*-riscos*)
  24380. ARCH=riscos
  24381. CheckVisibilityHidden
  24382. CheckWerror
  24383. CheckDeclarationAfterStatement
  24384. CheckDummyVideo
  24385. CheckDiskAudio
  24386. CheckDummyAudio
  24387. CheckDLOPEN
  24388. CheckO_CLOEXEC
  24389. CheckOSS
  24390. CheckPTHREAD
  24391. CheckClockGettime
  24392. # Set up files for the misc library
  24393. if test x$enable_misc = xyes; then
  24394. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  24395. have_misc=yes
  24396. fi
  24397. # Set up files for the video library
  24398. if test x$enable_video = xyes; then
  24399. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  24400. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  24401. have_video=yes
  24402. SUMMARY_video="${SUMMARY_video} riscos"
  24403. fi
  24404. # Set up files for the filesystem library
  24405. if test x$enable_filesystem = xyes; then
  24406. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  24407. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  24408. have_filesystem=yes
  24409. fi
  24410. # Set up files for the timer library
  24411. if test x$enable_timers = xyes; then
  24412. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24413. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24414. have_timers=yes
  24415. fi
  24416. ;;
  24417. *)
  24418. as_fn_error $? "
  24419. *** Unsupported host: Please add to configure.ac
  24420. " "$LINENO" 5
  24421. ;;
  24422. esac
  24423. CheckVirtualJoystick
  24424. # Check whether to install sdl3-config
  24425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl3-config" >&5
  24426. printf %s "checking whether to install sdl3-config... " >&6; }
  24427. # Check whether --enable-sdl3-config was given.
  24428. if test ${enable_sdl3_config+y}
  24429. then :
  24430. enableval=$enable_sdl3_config; case "${enableval}" in
  24431. yes) enable_sdl3_config="TRUE" ;;
  24432. no) enable_sdl3_config="FALSE" ;;
  24433. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl3-config" "$LINENO" 5 ;;
  24434. esac
  24435. else $as_nop
  24436. enable_sdl3_config="TRUE"
  24437. fi
  24438. if test "$enable_sdl3_config" = "TRUE"; then
  24439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24440. printf "%s\n" "yes" >&6; }
  24441. else
  24442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24443. printf "%s\n" "no" >&6; }
  24444. fi
  24445. INSTALL_SDL3_CONFIG=$enable_sdl3_config
  24446. # Check whether --enable-vendor-info was given.
  24447. if test ${enable_vendor_info+y}
  24448. then :
  24449. enableval=$enable_vendor_info; enable_vendor_info="$enableval"
  24450. else $as_nop
  24451. enable_vendor_info=
  24452. fi
  24453. if test "$enable_vendor_info" = no
  24454. then :
  24455. enable_vendor_info=
  24456. fi
  24457. SDL_VENDOR_INFO=$enable_vendor_info
  24458. # Verify that we have all the platform specific files we need
  24459. if test x$have_audio != xyes; then
  24460. if test x$enable_audio = xyes; then
  24461. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  24462. fi
  24463. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  24464. fi
  24465. if test x$have_video != xyes; then
  24466. if test x$enable_video = xyes; then
  24467. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  24468. fi
  24469. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  24470. fi
  24471. if test x$have_misc != xyes; then
  24472. if test x$enable_misc = xyes; then
  24473. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  24474. fi
  24475. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  24476. fi
  24477. if test x$have_locale != xyes; then
  24478. if test x$enable_locale = xyes; then
  24479. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  24480. fi
  24481. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  24482. fi
  24483. if test x$have_joystick != xyes; then
  24484. if test x$enable_joystick = xyes; then
  24485. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  24486. fi
  24487. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  24488. fi
  24489. if test x$have_haptic != xyes; then
  24490. if test x$enable_haptic = xyes; then
  24491. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  24492. fi
  24493. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  24494. fi
  24495. if test x$have_sensor != xyes; then
  24496. if test x$enable_sensor = xyes; then
  24497. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  24498. fi
  24499. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  24500. fi
  24501. if test x$have_threads != xyes; then
  24502. if test x$enable_threads = xyes; then
  24503. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  24504. fi
  24505. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  24506. fi
  24507. if test x$have_timers != xyes; then
  24508. if test x$enable_timers = xyes; then
  24509. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  24510. fi
  24511. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  24512. fi
  24513. if test x$have_filesystem != xyes; then
  24514. if test x$enable_filesystem = xyes; then
  24515. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  24516. fi
  24517. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  24518. fi
  24519. if test x$have_loadso != xyes; then
  24520. if test x$enable_loadso = xyes; then
  24521. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  24522. fi
  24523. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  24524. fi
  24525. if test x$SDLMAIN_SOURCES = x; then
  24526. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  24527. fi
  24528. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  24529. if test x$video_wayland = xyes; then
  24530. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  24531. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  24532. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  24533. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  24534. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  24535. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  24536. echo ;\
  24537. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24538. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24539. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  24540. echo ;\
  24541. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  24542. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  24543. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  24544. echo ;\
  24545. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  24546. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  24547. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  24548. done ;\
  24549. echo ;\
  24550. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  24551. fi
  24552. OBJECTS=`echo $SOURCES`
  24553. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  24554. for EXT in asm cc m c S; do
  24555. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  24556. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  24557. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  24558. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24559. done
  24560. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24561. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  24562. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  24563. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  24564. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  24565. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  24566. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  24567. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  24568. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  24569. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24570. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24571. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24572. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24573. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  24574. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  24575. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  24576. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  24577. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  24578. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  24579. # Set runtime shared library paths as needed
  24580. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  24581. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  24582. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  24583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  24584. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  24585. have_enable_new_dtags=no
  24586. save_LDFLAGS="$LDFLAGS"
  24587. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  24588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24589. /* end confdefs.h. */
  24590. int
  24591. main (void)
  24592. {
  24593. ;
  24594. return 0;
  24595. }
  24596. _ACEOF
  24597. if ac_fn_c_try_link "$LINENO"
  24598. then :
  24599. have_enable_new_dtags=yes
  24600. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  24601. fi
  24602. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24603. conftest$ac_exeext conftest.$ac_ext
  24604. LDFLAGS="$save_LDFLAGS"
  24605. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  24606. printf "%s\n" "$have_enable_new_dtags" >&6; }
  24607. fi
  24608. if test $ARCH = solaris; then
  24609. SDL_RLD_FLAGS="-R\${libdir}"
  24610. fi
  24611. else
  24612. SDL_RLD_FLAGS=""
  24613. fi
  24614. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  24615. pkg_cmakedir='$libdir/cmake/SDL3'
  24616. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  24617. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  24618. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  24619. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  24620. _lcl_receval="$_lcl_from"
  24621. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24622. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24623. _lcl_receval_old=''
  24624. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24625. _lcl_receval_old="$_lcl_receval"
  24626. eval _lcl_receval="\"$_lcl_receval\""
  24627. done
  24628. echo "$_lcl_receval")`
  24629. _lcl_receval="$_lcl_to"
  24630. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  24631. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  24632. _lcl_receval_old=''
  24633. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  24634. _lcl_receval_old="$_lcl_receval"
  24635. eval _lcl_receval="\"$_lcl_receval\""
  24636. done
  24637. echo "$_lcl_receval")`
  24638. _lcl_notation="$_lcl_from$_lcl_to"
  24639. case ":$_lcl_from:" in
  24640. # change empty paths to '.'
  24641. ::) _lcl_from='.' ;;
  24642. # strip trailing slashes
  24643. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  24644. :*:) ;;
  24645. esac
  24646. # squeeze repeated slashes
  24647. case '/' in
  24648. # if the path contains any backslashes, turn slashes into backslashes
  24649. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24650. # if the path contains slashes, also turn backslashes into slashes
  24651. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24652. esac
  24653. case ":$_lcl_to:" in
  24654. # change empty paths to '.'
  24655. ::) _lcl_to='.' ;;
  24656. # strip trailing slashes
  24657. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  24658. :*:) ;;
  24659. esac
  24660. # squeeze repeated slashes
  24661. case '/' in
  24662. # if the path contains any backslashes, turn slashes into backslashes
  24663. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24664. # if the path contains slashes, also turn backslashes into slashes
  24665. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24666. esac
  24667. _lcl_common_prefix=''
  24668. _lcl_second_prefix_match=''
  24669. while test "$_lcl_second_prefix_match" != 0; do
  24670. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  24671. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  24672. if test "$_lcl_second_prefix_match" != 0; then
  24673. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  24674. _lcl_common_prefix="$_lcl_first_prefix"
  24675. else
  24676. _lcl_second_prefix_match=0
  24677. fi
  24678. fi
  24679. done
  24680. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  24681. _lcl_first_rel=''
  24682. _lcl_tmp='xxx'
  24683. while test "$_lcl_tmp" != ''; do
  24684. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  24685. if test "$_lcl_first_suffix" != ''; then
  24686. _lcl_first_suffix="$_lcl_tmp"
  24687. _lcl_first_rel="../$_lcl_first_rel"
  24688. fi
  24689. done
  24690. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  24691. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  24692. case ":$_lcl_result_tmp:" in
  24693. # change empty paths to '.'
  24694. ::) _lcl_result_tmp='.' ;;
  24695. # strip trailing slashes
  24696. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  24697. :*:) ;;
  24698. esac
  24699. # squeeze repeated slashes
  24700. case "$_lcl_notation" in
  24701. # if the path contains any backslashes, turn slashes into backslashes
  24702. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  24703. # if the path contains slashes, also turn backslashes into slashes
  24704. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  24705. esac
  24706. eval $_lcl_result_var='$_lcl_result_tmp'
  24707. done
  24708. if test x$enable_shared = xyes; then
  24709. PKGCONFIG_LIBS_PRIV="
  24710. Libs.private:"
  24711. ENABLE_SHARED_TRUE=
  24712. ENABLE_SHARED_FALSE="#"
  24713. else
  24714. PKGCONFIG_LIBS_PRIV=
  24715. ENABLE_SHARED_TRUE="#"
  24716. ENABLE_SHARED_FALSE=
  24717. fi
  24718. if test x$enable_static = xyes; then
  24719. ENABLE_STATIC_TRUE=
  24720. ENABLE_STATIC_FALSE="#"
  24721. else
  24722. ENABLE_STATIC_TRUE="#"
  24723. ENABLE_STATIC_FALSE=
  24724. fi
  24725. cat >Makefile.rules <<__EOF__
  24726. # Build rules for objects
  24727. -include \$(OBJECTS:.lo=.d)
  24728. # Special dependency for SDL.c, since it depends on SDL_revision.h
  24729. $srcdir/src/SDL.c: update-revision
  24730. $DEPENDS
  24731. $VERSION_DEPENDS
  24732. $SDLMAIN_DEPENDS
  24733. $SDLTEST_DEPENDS
  24734. $WAYLAND_PROTOCOLS_DEPENDS
  24735. __EOF__
  24736. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl3-config sdl3-config.cmake sdl3-config-version.cmake SDL3.spec sdl3.pc"
  24737. ac_config_commands="$ac_config_commands sdl3_config"
  24738. SUMMARY="SDL3 Configure Summary:\n"
  24739. if test x$enable_shared = xyes; then
  24740. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  24741. fi
  24742. if test x$enable_static = xyes; then
  24743. SUMMARY="${SUMMARY}Building Static Libraries\n"
  24744. fi
  24745. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  24746. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  24747. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  24748. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  24749. if test x$have_x = xyes; then
  24750. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  24751. fi
  24752. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  24753. if test x$have_joystick_virtual = xyes; then
  24754. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  24755. else
  24756. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  24757. fi
  24758. if test x$have_samplerate_h_hdr = xyes; then
  24759. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  24760. else
  24761. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  24762. fi
  24763. if test x$have_libudev_h_hdr = xyes; then
  24764. SUMMARY="${SUMMARY}Using libudev : YES\n"
  24765. else
  24766. SUMMARY="${SUMMARY}Using libudev : NO\n"
  24767. fi
  24768. if test x$have_dbus_dbus_h_hdr = xyes; then
  24769. SUMMARY="${SUMMARY}Using dbus : YES\n"
  24770. else
  24771. SUMMARY="${SUMMARY}Using dbus : NO\n"
  24772. fi
  24773. if test x$enable_ime = xyes; then
  24774. SUMMARY="${SUMMARY}Using ime : YES\n"
  24775. else
  24776. SUMMARY="${SUMMARY}Using ime : NO\n"
  24777. fi
  24778. if test x$have_ibus_ibus_h_hdr = xyes; then
  24779. SUMMARY="${SUMMARY}Using ibus : YES\n"
  24780. else
  24781. SUMMARY="${SUMMARY}Using ibus : NO\n"
  24782. fi
  24783. if test x$have_fcitx = xyes; then
  24784. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  24785. else
  24786. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  24787. fi
  24788. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  24789. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  24790. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24791. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24792. SUMMARY="${SUMMARY}configure script with:\n"
  24793. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  24794. fi
  24795. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  24796. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  24797. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  24798. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  24799. SUMMARY="${SUMMARY}configure script with:\n"
  24800. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  24801. fi
  24802. ac_config_commands="$ac_config_commands summary"
  24803. cat >confcache <<\_ACEOF
  24804. # This file is a shell script that caches the results of configure
  24805. # tests run on this system so they can be shared between configure
  24806. # scripts and configure runs, see configure's option --config-cache.
  24807. # It is not useful on other systems. If it contains results you don't
  24808. # want to keep, you may remove or edit it.
  24809. #
  24810. # config.status only pays attention to the cache file if you give it
  24811. # the --recheck option to rerun configure.
  24812. #
  24813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  24814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  24815. # following values.
  24816. _ACEOF
  24817. # The following way of writing the cache mishandles newlines in values,
  24818. # but we know of no workaround that is simple, portable, and efficient.
  24819. # So, we kill variables containing newlines.
  24820. # Ultrix sh set writes to stderr and can't be redirected directly,
  24821. # and sets the high bit in the cache file unless we assign to the vars.
  24822. (
  24823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  24824. eval ac_val=\$$ac_var
  24825. case $ac_val in #(
  24826. *${as_nl}*)
  24827. case $ac_var in #(
  24828. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  24829. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  24830. esac
  24831. case $ac_var in #(
  24832. _ | IFS | as_nl) ;; #(
  24833. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  24834. *) { eval $ac_var=; unset $ac_var;} ;;
  24835. esac ;;
  24836. esac
  24837. done
  24838. (set) 2>&1 |
  24839. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  24840. *${as_nl}ac_space=\ *)
  24841. # `set' does not quote correctly, so add quotes: double-quote
  24842. # substitution turns \\\\ into \\, and sed turns \\ into \.
  24843. sed -n \
  24844. "s/'/'\\\\''/g;
  24845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  24846. ;; #(
  24847. *)
  24848. # `set' quotes correctly as required by POSIX, so do not add quotes.
  24849. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  24850. ;;
  24851. esac |
  24852. sort
  24853. ) |
  24854. sed '
  24855. /^ac_cv_env_/b end
  24856. t clear
  24857. :clear
  24858. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  24859. t end
  24860. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  24861. :end' >>confcache
  24862. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  24863. if test -w "$cache_file"; then
  24864. if test "x$cache_file" != "x/dev/null"; then
  24865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  24866. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  24867. if test ! -f "$cache_file" || test -h "$cache_file"; then
  24868. cat confcache >"$cache_file"
  24869. else
  24870. case $cache_file in #(
  24871. */* | ?:*)
  24872. mv -f confcache "$cache_file"$$ &&
  24873. mv -f "$cache_file"$$ "$cache_file" ;; #(
  24874. *)
  24875. mv -f confcache "$cache_file" ;;
  24876. esac
  24877. fi
  24878. fi
  24879. else
  24880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  24881. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  24882. fi
  24883. fi
  24884. rm -f confcache
  24885. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  24886. # Let make expand exec_prefix.
  24887. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  24888. DEFS=-DHAVE_CONFIG_H
  24889. ac_libobjs=
  24890. ac_ltlibobjs=
  24891. U=
  24892. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  24893. # 1. Remove the extension, and $U if already installed.
  24894. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  24895. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  24896. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  24897. # will be set to the directory where LIBOBJS objects are built.
  24898. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  24899. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  24900. done
  24901. LIBOBJS=$ac_libobjs
  24902. LTLIBOBJS=$ac_ltlibobjs
  24903. : "${CONFIG_STATUS=./config.status}"
  24904. ac_write_fail=0
  24905. ac_clean_files_save=$ac_clean_files
  24906. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  24907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  24908. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  24909. as_write_fail=0
  24910. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  24911. #! $SHELL
  24912. # Generated by $as_me.
  24913. # Run this file to recreate the current configuration.
  24914. # Compiler output produced by configure, useful for debugging
  24915. # configure, is in config.log if it exists.
  24916. debug=false
  24917. ac_cs_recheck=false
  24918. ac_cs_silent=false
  24919. SHELL=\${CONFIG_SHELL-$SHELL}
  24920. export SHELL
  24921. _ASEOF
  24922. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  24923. ## -------------------- ##
  24924. ## M4sh Initialization. ##
  24925. ## -------------------- ##
  24926. # Be more Bourne compatible
  24927. DUALCASE=1; export DUALCASE # for MKS sh
  24928. as_nop=:
  24929. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  24930. then :
  24931. emulate sh
  24932. NULLCMD=:
  24933. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24934. # is contrary to our usage. Disable this feature.
  24935. alias -g '${1+"$@"}'='"$@"'
  24936. setopt NO_GLOB_SUBST
  24937. else $as_nop
  24938. case `(set -o) 2>/dev/null` in #(
  24939. *posix*) :
  24940. set -o posix ;; #(
  24941. *) :
  24942. ;;
  24943. esac
  24944. fi
  24945. # Reset variables that may have inherited troublesome values from
  24946. # the environment.
  24947. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  24948. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  24949. # side effect of setting IFS to empty, thus disabling word splitting.)
  24950. # Quoting is to prevent editors from complaining about space-tab.
  24951. as_nl='
  24952. '
  24953. export as_nl
  24954. IFS=" "" $as_nl"
  24955. PS1='$ '
  24956. PS2='> '
  24957. PS4='+ '
  24958. # Ensure predictable behavior from utilities with locale-dependent output.
  24959. LC_ALL=C
  24960. export LC_ALL
  24961. LANGUAGE=C
  24962. export LANGUAGE
  24963. # We cannot yet rely on "unset" to work, but we need these variables
  24964. # to be unset--not just set to an empty or harmless value--now, to
  24965. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  24966. # also avoids known problems related to "unset" and subshell syntax
  24967. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  24968. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  24969. do eval test \${$as_var+y} \
  24970. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  24971. done
  24972. # Ensure that fds 0, 1, and 2 are open.
  24973. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  24974. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  24975. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  24976. # The user is always right.
  24977. if ${PATH_SEPARATOR+false} :; then
  24978. PATH_SEPARATOR=:
  24979. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  24980. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  24981. PATH_SEPARATOR=';'
  24982. }
  24983. fi
  24984. # Find who we are. Look in the path if we contain no directory separator.
  24985. as_myself=
  24986. case $0 in #((
  24987. *[\\/]* ) as_myself=$0 ;;
  24988. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24989. for as_dir in $PATH
  24990. do
  24991. IFS=$as_save_IFS
  24992. case $as_dir in #(((
  24993. '') as_dir=./ ;;
  24994. */) ;;
  24995. *) as_dir=$as_dir/ ;;
  24996. esac
  24997. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  24998. done
  24999. IFS=$as_save_IFS
  25000. ;;
  25001. esac
  25002. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25003. # in which case we are not to be found in the path.
  25004. if test "x$as_myself" = x; then
  25005. as_myself=$0
  25006. fi
  25007. if test ! -f "$as_myself"; then
  25008. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25009. exit 1
  25010. fi
  25011. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25012. # ----------------------------------------
  25013. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25014. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25015. # script with STATUS, using 1 if that was 0.
  25016. as_fn_error ()
  25017. {
  25018. as_status=$1; test $as_status -eq 0 && as_status=1
  25019. if test "$4"; then
  25020. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25022. fi
  25023. printf "%s\n" "$as_me: error: $2" >&2
  25024. as_fn_exit $as_status
  25025. } # as_fn_error
  25026. # as_fn_set_status STATUS
  25027. # -----------------------
  25028. # Set $? to STATUS, without forking.
  25029. as_fn_set_status ()
  25030. {
  25031. return $1
  25032. } # as_fn_set_status
  25033. # as_fn_exit STATUS
  25034. # -----------------
  25035. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25036. as_fn_exit ()
  25037. {
  25038. set +e
  25039. as_fn_set_status $1
  25040. exit $1
  25041. } # as_fn_exit
  25042. # as_fn_unset VAR
  25043. # ---------------
  25044. # Portably unset VAR.
  25045. as_fn_unset ()
  25046. {
  25047. { eval $1=; unset $1;}
  25048. }
  25049. as_unset=as_fn_unset
  25050. # as_fn_append VAR VALUE
  25051. # ----------------------
  25052. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25053. # advantage of any shell optimizations that allow amortized linear growth over
  25054. # repeated appends, instead of the typical quadratic growth present in naive
  25055. # implementations.
  25056. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25057. then :
  25058. eval 'as_fn_append ()
  25059. {
  25060. eval $1+=\$2
  25061. }'
  25062. else $as_nop
  25063. as_fn_append ()
  25064. {
  25065. eval $1=\$$1\$2
  25066. }
  25067. fi # as_fn_append
  25068. # as_fn_arith ARG...
  25069. # ------------------
  25070. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25071. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25072. # must be portable across $(()) and expr.
  25073. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25074. then :
  25075. eval 'as_fn_arith ()
  25076. {
  25077. as_val=$(( $* ))
  25078. }'
  25079. else $as_nop
  25080. as_fn_arith ()
  25081. {
  25082. as_val=`expr "$@" || test $? -eq 1`
  25083. }
  25084. fi # as_fn_arith
  25085. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25086. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25087. as_expr=expr
  25088. else
  25089. as_expr=false
  25090. fi
  25091. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25092. as_basename=basename
  25093. else
  25094. as_basename=false
  25095. fi
  25096. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25097. as_dirname=dirname
  25098. else
  25099. as_dirname=false
  25100. fi
  25101. as_me=`$as_basename -- "$0" ||
  25102. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25103. X"$0" : 'X\(//\)$' \| \
  25104. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25105. printf "%s\n" X/"$0" |
  25106. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25107. s//\1/
  25108. q
  25109. }
  25110. /^X\/\(\/\/\)$/{
  25111. s//\1/
  25112. q
  25113. }
  25114. /^X\/\(\/\).*/{
  25115. s//\1/
  25116. q
  25117. }
  25118. s/.*/./; q'`
  25119. # Avoid depending upon Character Ranges.
  25120. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25121. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25122. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25123. as_cr_digits='0123456789'
  25124. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25125. # Determine whether it's possible to make 'echo' print without a newline.
  25126. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  25127. # for compatibility with existing Makefiles.
  25128. ECHO_C= ECHO_N= ECHO_T=
  25129. case `echo -n x` in #(((((
  25130. -n*)
  25131. case `echo 'xy\c'` in
  25132. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25133. xy) ECHO_C='\c';;
  25134. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25135. ECHO_T=' ';;
  25136. esac;;
  25137. *)
  25138. ECHO_N='-n';;
  25139. esac
  25140. # For backward compatibility with old third-party macros, we provide
  25141. # the shell variables $as_echo and $as_echo_n. New code should use
  25142. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  25143. as_echo='printf %s\n'
  25144. as_echo_n='printf %s'
  25145. rm -f conf$$ conf$$.exe conf$$.file
  25146. if test -d conf$$.dir; then
  25147. rm -f conf$$.dir/conf$$.file
  25148. else
  25149. rm -f conf$$.dir
  25150. mkdir conf$$.dir 2>/dev/null
  25151. fi
  25152. if (echo >conf$$.file) 2>/dev/null; then
  25153. if ln -s conf$$.file conf$$ 2>/dev/null; then
  25154. as_ln_s='ln -s'
  25155. # ... but there are two gotchas:
  25156. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25157. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25158. # In both cases, we have to default to `cp -pR'.
  25159. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25160. as_ln_s='cp -pR'
  25161. elif ln conf$$.file conf$$ 2>/dev/null; then
  25162. as_ln_s=ln
  25163. else
  25164. as_ln_s='cp -pR'
  25165. fi
  25166. else
  25167. as_ln_s='cp -pR'
  25168. fi
  25169. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25170. rmdir conf$$.dir 2>/dev/null
  25171. # as_fn_mkdir_p
  25172. # -------------
  25173. # Create "$as_dir" as a directory, including parents if necessary.
  25174. as_fn_mkdir_p ()
  25175. {
  25176. case $as_dir in #(
  25177. -*) as_dir=./$as_dir;;
  25178. esac
  25179. test -d "$as_dir" || eval $as_mkdir_p || {
  25180. as_dirs=
  25181. while :; do
  25182. case $as_dir in #(
  25183. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25184. *) as_qdir=$as_dir;;
  25185. esac
  25186. as_dirs="'$as_qdir' $as_dirs"
  25187. as_dir=`$as_dirname -- "$as_dir" ||
  25188. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25189. X"$as_dir" : 'X\(//\)[^/]' \| \
  25190. X"$as_dir" : 'X\(//\)$' \| \
  25191. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25192. printf "%s\n" X"$as_dir" |
  25193. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25194. s//\1/
  25195. q
  25196. }
  25197. /^X\(\/\/\)[^/].*/{
  25198. s//\1/
  25199. q
  25200. }
  25201. /^X\(\/\/\)$/{
  25202. s//\1/
  25203. q
  25204. }
  25205. /^X\(\/\).*/{
  25206. s//\1/
  25207. q
  25208. }
  25209. s/.*/./; q'`
  25210. test -d "$as_dir" && break
  25211. done
  25212. test -z "$as_dirs" || eval "mkdir $as_dirs"
  25213. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25214. } # as_fn_mkdir_p
  25215. if mkdir -p . 2>/dev/null; then
  25216. as_mkdir_p='mkdir -p "$as_dir"'
  25217. else
  25218. test -d ./-p && rmdir ./-p
  25219. as_mkdir_p=false
  25220. fi
  25221. # as_fn_executable_p FILE
  25222. # -----------------------
  25223. # Test if FILE is an executable regular file.
  25224. as_fn_executable_p ()
  25225. {
  25226. test -f "$1" && test -x "$1"
  25227. } # as_fn_executable_p
  25228. as_test_x='test -x'
  25229. as_executable_p=as_fn_executable_p
  25230. # Sed expression to map a string onto a valid CPP name.
  25231. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25232. # Sed expression to map a string onto a valid variable name.
  25233. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25234. exec 6>&1
  25235. ## ----------------------------------- ##
  25236. ## Main body of $CONFIG_STATUS script. ##
  25237. ## ----------------------------------- ##
  25238. _ASEOF
  25239. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25241. # Save the log message, to keep $0 and so on meaningful, and to
  25242. # report actual input values of CONFIG_FILES etc. instead of their
  25243. # values after options handling.
  25244. ac_log="
  25245. This file was extended by $as_me, which was
  25246. generated by GNU Autoconf 2.71. Invocation command line was
  25247. CONFIG_FILES = $CONFIG_FILES
  25248. CONFIG_HEADERS = $CONFIG_HEADERS
  25249. CONFIG_LINKS = $CONFIG_LINKS
  25250. CONFIG_COMMANDS = $CONFIG_COMMANDS
  25251. $ $0 $@
  25252. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25253. "
  25254. _ACEOF
  25255. case $ac_config_files in *"
  25256. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  25257. esac
  25258. case $ac_config_headers in *"
  25259. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  25260. esac
  25261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25262. # Files that config.status was made for.
  25263. config_files="$ac_config_files"
  25264. config_headers="$ac_config_headers"
  25265. config_commands="$ac_config_commands"
  25266. _ACEOF
  25267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25268. ac_cs_usage="\
  25269. \`$as_me' instantiates files and other configuration actions
  25270. from templates according to the current configuration. Unless the files
  25271. and actions are specified as TAGs, all are instantiated by default.
  25272. Usage: $0 [OPTION]... [TAG]...
  25273. -h, --help print this help, then exit
  25274. -V, --version print version number and configuration settings, then exit
  25275. --config print configuration, then exit
  25276. -q, --quiet, --silent
  25277. do not print progress messages
  25278. -d, --debug don't remove temporary files
  25279. --recheck update $as_me by reconfiguring in the same conditions
  25280. --file=FILE[:TEMPLATE]
  25281. instantiate the configuration file FILE
  25282. --header=FILE[:TEMPLATE]
  25283. instantiate the configuration header FILE
  25284. Configuration files:
  25285. $config_files
  25286. Configuration headers:
  25287. $config_headers
  25288. Configuration commands:
  25289. $config_commands
  25290. Report bugs to the package provider."
  25291. _ACEOF
  25292. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  25293. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  25294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25295. ac_cs_config='$ac_cs_config_escaped'
  25296. ac_cs_version="\\
  25297. config.status
  25298. configured by $0, generated by GNU Autoconf 2.71,
  25299. with options \\"\$ac_cs_config\\"
  25300. Copyright (C) 2021 Free Software Foundation, Inc.
  25301. This config.status script is free software; the Free Software Foundation
  25302. gives unlimited permission to copy, distribute and modify it."
  25303. ac_pwd='$ac_pwd'
  25304. srcdir='$srcdir'
  25305. INSTALL='$INSTALL'
  25306. AWK='$AWK'
  25307. test -n "\$AWK" || AWK=awk
  25308. _ACEOF
  25309. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25310. # The default lists apply if the user does not specify any file.
  25311. ac_need_defaults=:
  25312. while test $# != 0
  25313. do
  25314. case $1 in
  25315. --*=?*)
  25316. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25317. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  25318. ac_shift=:
  25319. ;;
  25320. --*=)
  25321. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  25322. ac_optarg=
  25323. ac_shift=:
  25324. ;;
  25325. *)
  25326. ac_option=$1
  25327. ac_optarg=$2
  25328. ac_shift=shift
  25329. ;;
  25330. esac
  25331. case $ac_option in
  25332. # Handling of the options.
  25333. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  25334. ac_cs_recheck=: ;;
  25335. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  25336. printf "%s\n" "$ac_cs_version"; exit ;;
  25337. --config | --confi | --conf | --con | --co | --c )
  25338. printf "%s\n" "$ac_cs_config"; exit ;;
  25339. --debug | --debu | --deb | --de | --d | -d )
  25340. debug=: ;;
  25341. --file | --fil | --fi | --f )
  25342. $ac_shift
  25343. case $ac_optarg in
  25344. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25345. '') as_fn_error $? "missing file argument" ;;
  25346. esac
  25347. as_fn_append CONFIG_FILES " '$ac_optarg'"
  25348. ac_need_defaults=false;;
  25349. --header | --heade | --head | --hea )
  25350. $ac_shift
  25351. case $ac_optarg in
  25352. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  25353. esac
  25354. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  25355. ac_need_defaults=false;;
  25356. --he | --h)
  25357. # Conflict between --help and --header
  25358. as_fn_error $? "ambiguous option: \`$1'
  25359. Try \`$0 --help' for more information.";;
  25360. --help | --hel | -h )
  25361. printf "%s\n" "$ac_cs_usage"; exit ;;
  25362. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  25363. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  25364. ac_cs_silent=: ;;
  25365. # This is an error.
  25366. -*) as_fn_error $? "unrecognized option: \`$1'
  25367. Try \`$0 --help' for more information." ;;
  25368. *) as_fn_append ac_config_targets " $1"
  25369. ac_need_defaults=false ;;
  25370. esac
  25371. shift
  25372. done
  25373. ac_configure_extra_args=
  25374. if $ac_cs_silent; then
  25375. exec 6>/dev/null
  25376. ac_configure_extra_args="$ac_configure_extra_args --silent"
  25377. fi
  25378. _ACEOF
  25379. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25380. if \$ac_cs_recheck; then
  25381. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  25382. shift
  25383. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  25384. CONFIG_SHELL='$SHELL'
  25385. export CONFIG_SHELL
  25386. exec "\$@"
  25387. fi
  25388. _ACEOF
  25389. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25390. exec 5>>config.log
  25391. {
  25392. echo
  25393. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  25394. ## Running $as_me. ##
  25395. _ASBOX
  25396. printf "%s\n" "$ac_log"
  25397. } >&5
  25398. _ACEOF
  25399. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25400. #
  25401. # INIT-COMMANDS
  25402. #
  25403. # The HP-UX ksh and POSIX shell print the target directory to stdout
  25404. # if CDPATH is set.
  25405. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25406. sed_quote_subst='$sed_quote_subst'
  25407. double_quote_subst='$double_quote_subst'
  25408. delay_variable_subst='$delay_variable_subst'
  25409. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  25410. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  25411. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  25412. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  25413. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  25414. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  25415. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  25416. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  25417. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  25418. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  25419. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  25420. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  25421. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  25422. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  25423. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  25424. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  25425. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  25426. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  25427. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  25428. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  25429. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  25430. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  25431. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  25432. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  25433. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  25434. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  25435. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  25436. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  25437. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  25438. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  25439. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  25440. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  25441. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  25442. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  25443. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  25444. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  25445. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  25446. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  25447. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  25448. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  25449. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  25450. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  25451. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  25452. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  25453. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  25454. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  25455. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  25456. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25457. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25458. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  25459. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  25460. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  25461. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  25462. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  25463. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  25464. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  25465. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  25466. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  25467. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  25468. 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"`'
  25469. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  25470. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  25471. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  25472. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  25473. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  25474. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  25475. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  25476. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  25477. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  25478. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  25479. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  25480. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  25481. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  25482. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  25483. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  25484. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  25485. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  25486. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  25487. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  25488. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  25489. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25490. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  25491. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  25492. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  25493. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  25494. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  25495. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  25496. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  25497. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  25498. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25499. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  25500. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  25501. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  25502. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25503. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  25504. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  25505. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  25506. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  25507. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  25508. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  25509. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25510. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  25511. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  25512. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  25513. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  25514. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  25515. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  25516. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  25517. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  25518. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  25519. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  25520. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  25521. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  25522. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  25523. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  25524. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  25525. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  25526. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  25527. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  25528. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  25529. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  25530. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  25531. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  25532. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  25533. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  25534. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  25535. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  25536. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  25537. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  25538. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  25539. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  25540. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  25541. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  25542. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  25543. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  25544. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  25545. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  25546. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  25547. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  25548. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  25549. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  25550. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  25551. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  25552. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  25553. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  25554. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25555. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25556. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25557. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25558. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25559. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  25560. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  25561. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  25562. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  25563. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  25564. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25565. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  25566. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  25567. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  25568. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  25569. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  25570. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  25571. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  25572. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  25573. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  25574. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  25575. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  25576. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  25577. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25578. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25579. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25580. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25581. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  25582. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  25583. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25584. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25585. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25586. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25587. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25588. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25589. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25590. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25591. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25592. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25593. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25594. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25595. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  25596. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  25597. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25598. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25599. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  25600. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  25601. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  25602. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25603. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  25604. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  25605. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  25606. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  25607. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  25608. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  25609. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  25610. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  25611. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  25612. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  25613. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  25614. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  25615. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  25616. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  25617. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  25618. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  25619. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  25620. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  25621. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25622. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25623. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25624. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25625. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  25626. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  25627. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25628. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25629. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  25630. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  25631. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  25632. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  25633. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  25634. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  25635. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  25636. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  25637. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25638. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25639. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  25640. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  25641. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  25642. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  25643. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  25644. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  25645. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  25646. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  25647. LTCC='$LTCC'
  25648. LTCFLAGS='$LTCFLAGS'
  25649. compiler='$compiler_DEFAULT'
  25650. # A function that is used when there is no print builtin or printf.
  25651. func_fallback_echo ()
  25652. {
  25653. eval 'cat <<_LTECHO_EOF
  25654. \$1
  25655. _LTECHO_EOF'
  25656. }
  25657. # Quote evaled strings.
  25658. for var in AS \
  25659. DLLTOOL \
  25660. OBJDUMP \
  25661. SHELL \
  25662. ECHO \
  25663. PATH_SEPARATOR \
  25664. SED \
  25665. GREP \
  25666. EGREP \
  25667. FGREP \
  25668. LD \
  25669. NM \
  25670. LN_S \
  25671. lt_SP2NL \
  25672. lt_NL2SP \
  25673. reload_flag \
  25674. deplibs_check_method \
  25675. file_magic_cmd \
  25676. file_magic_glob \
  25677. want_nocaseglob \
  25678. sharedlib_from_linklib_cmd \
  25679. AR \
  25680. AR_FLAGS \
  25681. archiver_list_spec \
  25682. STRIP \
  25683. RANLIB \
  25684. CC \
  25685. CFLAGS \
  25686. compiler \
  25687. lt_cv_sys_global_symbol_pipe \
  25688. lt_cv_sys_global_symbol_to_cdecl \
  25689. lt_cv_sys_global_symbol_to_import \
  25690. lt_cv_sys_global_symbol_to_c_name_address \
  25691. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  25692. lt_cv_nm_interface \
  25693. nm_file_list_spec \
  25694. lt_cv_truncate_bin \
  25695. lt_prog_compiler_no_builtin_flag \
  25696. lt_prog_compiler_pic \
  25697. lt_prog_compiler_wl \
  25698. lt_prog_compiler_static \
  25699. lt_cv_prog_compiler_c_o \
  25700. need_locks \
  25701. MANIFEST_TOOL \
  25702. DSYMUTIL \
  25703. NMEDIT \
  25704. LIPO \
  25705. OTOOL \
  25706. OTOOL64 \
  25707. shrext_cmds \
  25708. export_dynamic_flag_spec \
  25709. whole_archive_flag_spec \
  25710. compiler_needs_object \
  25711. with_gnu_ld \
  25712. allow_undefined_flag \
  25713. no_undefined_flag \
  25714. hardcode_libdir_flag_spec \
  25715. hardcode_libdir_separator \
  25716. exclude_expsyms \
  25717. include_expsyms \
  25718. file_list_spec \
  25719. variables_saved_for_relink \
  25720. libname_spec \
  25721. library_names_spec \
  25722. soname_spec \
  25723. install_override_mode \
  25724. finish_eval \
  25725. old_striplib \
  25726. striplib \
  25727. compiler_lib_search_dirs \
  25728. predep_objects \
  25729. postdep_objects \
  25730. predeps \
  25731. postdeps \
  25732. compiler_lib_search_path \
  25733. LD_RC \
  25734. LD_CXX \
  25735. reload_flag_RC \
  25736. reload_flag_CXX \
  25737. compiler_RC \
  25738. compiler_CXX \
  25739. lt_prog_compiler_no_builtin_flag_RC \
  25740. lt_prog_compiler_no_builtin_flag_CXX \
  25741. lt_prog_compiler_pic_RC \
  25742. lt_prog_compiler_pic_CXX \
  25743. lt_prog_compiler_wl_RC \
  25744. lt_prog_compiler_wl_CXX \
  25745. lt_prog_compiler_static_RC \
  25746. lt_prog_compiler_static_CXX \
  25747. lt_cv_prog_compiler_c_o_RC \
  25748. lt_cv_prog_compiler_c_o_CXX \
  25749. export_dynamic_flag_spec_RC \
  25750. export_dynamic_flag_spec_CXX \
  25751. whole_archive_flag_spec_RC \
  25752. whole_archive_flag_spec_CXX \
  25753. compiler_needs_object_RC \
  25754. compiler_needs_object_CXX \
  25755. with_gnu_ld_RC \
  25756. with_gnu_ld_CXX \
  25757. allow_undefined_flag_RC \
  25758. allow_undefined_flag_CXX \
  25759. no_undefined_flag_RC \
  25760. no_undefined_flag_CXX \
  25761. hardcode_libdir_flag_spec_RC \
  25762. hardcode_libdir_flag_spec_CXX \
  25763. hardcode_libdir_separator_RC \
  25764. hardcode_libdir_separator_CXX \
  25765. exclude_expsyms_RC \
  25766. exclude_expsyms_CXX \
  25767. include_expsyms_RC \
  25768. include_expsyms_CXX \
  25769. file_list_spec_RC \
  25770. file_list_spec_CXX \
  25771. compiler_lib_search_dirs_RC \
  25772. compiler_lib_search_dirs_CXX \
  25773. predep_objects_RC \
  25774. predep_objects_CXX \
  25775. postdep_objects_RC \
  25776. postdep_objects_CXX \
  25777. predeps_RC \
  25778. predeps_CXX \
  25779. postdeps_RC \
  25780. postdeps_CXX \
  25781. compiler_lib_search_path_RC \
  25782. compiler_lib_search_path_CXX; do
  25783. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25784. *[\\\\\\\`\\"\\\$]*)
  25785. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25786. ;;
  25787. *)
  25788. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25789. ;;
  25790. esac
  25791. done
  25792. # Double-quote double-evaled strings.
  25793. for var in reload_cmds \
  25794. old_postinstall_cmds \
  25795. old_postuninstall_cmds \
  25796. old_archive_cmds \
  25797. extract_expsyms_cmds \
  25798. old_archive_from_new_cmds \
  25799. old_archive_from_expsyms_cmds \
  25800. archive_cmds \
  25801. archive_expsym_cmds \
  25802. module_cmds \
  25803. module_expsym_cmds \
  25804. export_symbols_cmds \
  25805. prelink_cmds \
  25806. postlink_cmds \
  25807. postinstall_cmds \
  25808. postuninstall_cmds \
  25809. finish_cmds \
  25810. sys_lib_search_path_spec \
  25811. configure_time_dlsearch_path \
  25812. configure_time_lt_sys_library_path \
  25813. reload_cmds_RC \
  25814. reload_cmds_CXX \
  25815. old_archive_cmds_RC \
  25816. old_archive_cmds_CXX \
  25817. old_archive_from_new_cmds_RC \
  25818. old_archive_from_new_cmds_CXX \
  25819. old_archive_from_expsyms_cmds_RC \
  25820. old_archive_from_expsyms_cmds_CXX \
  25821. archive_cmds_RC \
  25822. archive_cmds_CXX \
  25823. archive_expsym_cmds_RC \
  25824. archive_expsym_cmds_CXX \
  25825. module_cmds_RC \
  25826. module_cmds_CXX \
  25827. module_expsym_cmds_RC \
  25828. module_expsym_cmds_CXX \
  25829. export_symbols_cmds_RC \
  25830. export_symbols_cmds_CXX \
  25831. prelink_cmds_RC \
  25832. prelink_cmds_CXX \
  25833. postlink_cmds_RC \
  25834. postlink_cmds_CXX; do
  25835. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  25836. *[\\\\\\\`\\"\\\$]*)
  25837. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  25838. ;;
  25839. *)
  25840. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  25841. ;;
  25842. esac
  25843. done
  25844. ac_aux_dir='$ac_aux_dir'
  25845. # See if we are running on zsh, and set the options that allow our
  25846. # commands through without removal of \ escapes INIT.
  25847. if test -n "\${ZSH_VERSION+set}"; then
  25848. setopt NO_GLOB_SUBST
  25849. fi
  25850. PACKAGE='$PACKAGE'
  25851. VERSION='$VERSION'
  25852. RM='$RM'
  25853. ofile='$ofile'
  25854. SUMMARY="$SUMMARY"
  25855. _ACEOF
  25856. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25857. # Handling of arguments.
  25858. for ac_config_target in $ac_config_targets
  25859. do
  25860. case $ac_config_target in
  25861. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  25862. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  25863. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  25864. "sdl3-config") CONFIG_FILES="$CONFIG_FILES sdl3-config" ;;
  25865. "sdl3-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config.cmake" ;;
  25866. "sdl3-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl3-config-version.cmake" ;;
  25867. "SDL3.spec") CONFIG_FILES="$CONFIG_FILES SDL3.spec" ;;
  25868. "sdl3.pc") CONFIG_FILES="$CONFIG_FILES sdl3.pc" ;;
  25869. "sdl3_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl3_config" ;;
  25870. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  25871. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  25872. esac
  25873. done
  25874. # If the user did not use the arguments to specify the items to instantiate,
  25875. # then the envvar interface is used. Set only those that are not.
  25876. # We use the long form for the default assignment because of an extremely
  25877. # bizarre bug on SunOS 4.1.3.
  25878. if $ac_need_defaults; then
  25879. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  25880. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  25881. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  25882. fi
  25883. # Have a temporary directory for convenience. Make it in the build tree
  25884. # simply because there is no reason against having it here, and in addition,
  25885. # creating and moving files from /tmp can sometimes cause problems.
  25886. # Hook for its removal unless debugging.
  25887. # Note that there is a small window in which the directory will not be cleaned:
  25888. # after its creation but before its name has been assigned to `$tmp'.
  25889. $debug ||
  25890. {
  25891. tmp= ac_tmp=
  25892. trap 'exit_status=$?
  25893. : "${ac_tmp:=$tmp}"
  25894. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  25895. ' 0
  25896. trap 'as_fn_exit 1' 1 2 13 15
  25897. }
  25898. # Create a (secure) tmp directory for tmp files.
  25899. {
  25900. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  25901. test -d "$tmp"
  25902. } ||
  25903. {
  25904. tmp=./conf$$-$RANDOM
  25905. (umask 077 && mkdir "$tmp")
  25906. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  25907. ac_tmp=$tmp
  25908. # Set up the scripts for CONFIG_FILES section.
  25909. # No need to generate them if there are no CONFIG_FILES.
  25910. # This happens for instance with `./config.status config.h'.
  25911. if test -n "$CONFIG_FILES"; then
  25912. ac_cr=`echo X | tr X '\015'`
  25913. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  25914. # But we know of no other shell where ac_cr would be empty at this
  25915. # point, so we can use a bashism as a fallback.
  25916. if test "x$ac_cr" = x; then
  25917. eval ac_cr=\$\'\\r\'
  25918. fi
  25919. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  25920. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  25921. ac_cs_awk_cr='\\r'
  25922. else
  25923. ac_cs_awk_cr=$ac_cr
  25924. fi
  25925. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  25926. _ACEOF
  25927. {
  25928. echo "cat >conf$$subs.awk <<_ACEOF" &&
  25929. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  25930. echo "_ACEOF"
  25931. } >conf$$subs.sh ||
  25932. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25933. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  25934. ac_delim='%!_!# '
  25935. for ac_last_try in false false false false false :; do
  25936. . ./conf$$subs.sh ||
  25937. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25938. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  25939. if test $ac_delim_n = $ac_delim_num; then
  25940. break
  25941. elif $ac_last_try; then
  25942. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  25943. else
  25944. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  25945. fi
  25946. done
  25947. rm -f conf$$subs.sh
  25948. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25949. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  25950. _ACEOF
  25951. sed -n '
  25952. h
  25953. s/^/S["/; s/!.*/"]=/
  25954. p
  25955. g
  25956. s/^[^!]*!//
  25957. :repl
  25958. t repl
  25959. s/'"$ac_delim"'$//
  25960. t delim
  25961. :nl
  25962. h
  25963. s/\(.\{148\}\)..*/\1/
  25964. t more1
  25965. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  25966. p
  25967. n
  25968. b repl
  25969. :more1
  25970. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25971. p
  25972. g
  25973. s/.\{148\}//
  25974. t nl
  25975. :delim
  25976. h
  25977. s/\(.\{148\}\)..*/\1/
  25978. t more2
  25979. s/["\\]/\\&/g; s/^/"/; s/$/"/
  25980. p
  25981. b
  25982. :more2
  25983. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  25984. p
  25985. g
  25986. s/.\{148\}//
  25987. t delim
  25988. ' <conf$$subs.awk | sed '
  25989. /^[^""]/{
  25990. N
  25991. s/\n//
  25992. }
  25993. ' >>$CONFIG_STATUS || ac_write_fail=1
  25994. rm -f conf$$subs.awk
  25995. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  25996. _ACAWK
  25997. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  25998. for (key in S) S_is_set[key] = 1
  25999. FS = ""
  26000. }
  26001. {
  26002. line = $ 0
  26003. nfields = split(line, field, "@")
  26004. substed = 0
  26005. len = length(field[1])
  26006. for (i = 2; i < nfields; i++) {
  26007. key = field[i]
  26008. keylen = length(key)
  26009. if (S_is_set[key]) {
  26010. value = S[key]
  26011. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26012. len += length(value) + length(field[++i])
  26013. substed = 1
  26014. } else
  26015. len += 1 + keylen
  26016. }
  26017. print line
  26018. }
  26019. _ACAWK
  26020. _ACEOF
  26021. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26022. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26023. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26024. else
  26025. cat
  26026. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26027. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26028. _ACEOF
  26029. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26030. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26031. # trailing colons and then remove the whole line if VPATH becomes empty
  26032. # (actually we leave an empty line to preserve line numbers).
  26033. if test "x$srcdir" = x.; then
  26034. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26035. h
  26036. s///
  26037. s/^/:/
  26038. s/[ ]*$/:/
  26039. s/:\$(srcdir):/:/g
  26040. s/:\${srcdir}:/:/g
  26041. s/:@srcdir@:/:/g
  26042. s/^:*//
  26043. s/:*$//
  26044. x
  26045. s/\(=[ ]*\).*/\1/
  26046. G
  26047. s/\n//
  26048. s/^[^=]*=[ ]*$//
  26049. }'
  26050. fi
  26051. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26052. fi # test -n "$CONFIG_FILES"
  26053. # Set up the scripts for CONFIG_HEADERS section.
  26054. # No need to generate them if there are no CONFIG_HEADERS.
  26055. # This happens for instance with `./config.status Makefile'.
  26056. if test -n "$CONFIG_HEADERS"; then
  26057. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26058. BEGIN {
  26059. _ACEOF
  26060. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26061. # here-document in config.status, that substitutes the proper values into
  26062. # config.h.in to produce config.h.
  26063. # Create a delimiter string that does not exist in confdefs.h, to ease
  26064. # handling of long lines.
  26065. ac_delim='%!_!# '
  26066. for ac_last_try in false false :; do
  26067. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26068. if test -z "$ac_tt"; then
  26069. break
  26070. elif $ac_last_try; then
  26071. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26072. else
  26073. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26074. fi
  26075. done
  26076. # For the awk script, D is an array of macro values keyed by name,
  26077. # likewise P contains macro parameters if any. Preserve backslash
  26078. # newline sequences.
  26079. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26080. sed -n '
  26081. s/.\{148\}/&'"$ac_delim"'/g
  26082. t rset
  26083. :rset
  26084. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26085. t def
  26086. d
  26087. :def
  26088. s/\\$//
  26089. t bsnl
  26090. s/["\\]/\\&/g
  26091. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26092. D["\1"]=" \3"/p
  26093. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26094. d
  26095. :bsnl
  26096. s/["\\]/\\&/g
  26097. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26098. D["\1"]=" \3\\\\\\n"\\/p
  26099. t cont
  26100. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26101. t cont
  26102. d
  26103. :cont
  26104. n
  26105. s/.\{148\}/&'"$ac_delim"'/g
  26106. t clear
  26107. :clear
  26108. s/\\$//
  26109. t bsnlc
  26110. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  26111. d
  26112. :bsnlc
  26113. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  26114. b cont
  26115. ' <confdefs.h | sed '
  26116. s/'"$ac_delim"'/"\\\
  26117. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  26118. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26119. for (key in D) D_is_set[key] = 1
  26120. FS = ""
  26121. }
  26122. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  26123. line = \$ 0
  26124. split(line, arg, " ")
  26125. if (arg[1] == "#") {
  26126. defundef = arg[2]
  26127. mac1 = arg[3]
  26128. } else {
  26129. defundef = substr(arg[1], 2)
  26130. mac1 = arg[2]
  26131. }
  26132. split(mac1, mac2, "(") #)
  26133. macro = mac2[1]
  26134. prefix = substr(line, 1, index(line, defundef) - 1)
  26135. if (D_is_set[macro]) {
  26136. # Preserve the white space surrounding the "#".
  26137. print prefix "define", macro P[macro] D[macro]
  26138. next
  26139. } else {
  26140. # Replace #undef with comments. This is necessary, for example,
  26141. # in the case of _POSIX_SOURCE, which is predefined and required
  26142. # on some systems where configure will not decide to define it.
  26143. if (defundef == "undef") {
  26144. print "/*", prefix defundef, macro, "*/"
  26145. next
  26146. }
  26147. }
  26148. }
  26149. { print }
  26150. _ACAWK
  26151. _ACEOF
  26152. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26153. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  26154. fi # test -n "$CONFIG_HEADERS"
  26155. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  26156. shift
  26157. for ac_tag
  26158. do
  26159. case $ac_tag in
  26160. :[FHLC]) ac_mode=$ac_tag; continue;;
  26161. esac
  26162. case $ac_mode$ac_tag in
  26163. :[FHL]*:*);;
  26164. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26165. :[FH]-) ac_tag=-:-;;
  26166. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26167. esac
  26168. ac_save_IFS=$IFS
  26169. IFS=:
  26170. set x $ac_tag
  26171. IFS=$ac_save_IFS
  26172. shift
  26173. ac_file=$1
  26174. shift
  26175. case $ac_mode in
  26176. :L) ac_source=$1;;
  26177. :[FH])
  26178. ac_file_inputs=
  26179. for ac_f
  26180. do
  26181. case $ac_f in
  26182. -) ac_f="$ac_tmp/stdin";;
  26183. *) # Look for the file first in the build tree, then in the source tree
  26184. # (if the path is not absolute). The absolute path cannot be DOS-style,
  26185. # because $ac_f cannot contain `:'.
  26186. test -f "$ac_f" ||
  26187. case $ac_f in
  26188. [\\/$]*) false;;
  26189. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26190. esac ||
  26191. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26192. esac
  26193. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26194. as_fn_append ac_file_inputs " '$ac_f'"
  26195. done
  26196. # Let's still pretend it is `configure' which instantiates (i.e., don't
  26197. # use $as_me), people would be surprised to read:
  26198. # /* config.h. Generated by config.status. */
  26199. configure_input='Generated from '`
  26200. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26201. `' by configure.'
  26202. if test x"$ac_file" != x-; then
  26203. configure_input="$ac_file. $configure_input"
  26204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26205. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  26206. fi
  26207. # Neutralize special characters interpreted by sed in replacement strings.
  26208. case $configure_input in #(
  26209. *\&* | *\|* | *\\* )
  26210. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  26211. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26212. *) ac_sed_conf_input=$configure_input;;
  26213. esac
  26214. case $ac_tag in
  26215. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26216. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26217. esac
  26218. ;;
  26219. esac
  26220. ac_dir=`$as_dirname -- "$ac_file" ||
  26221. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26222. X"$ac_file" : 'X\(//\)[^/]' \| \
  26223. X"$ac_file" : 'X\(//\)$' \| \
  26224. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26225. printf "%s\n" X"$ac_file" |
  26226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26227. s//\1/
  26228. q
  26229. }
  26230. /^X\(\/\/\)[^/].*/{
  26231. s//\1/
  26232. q
  26233. }
  26234. /^X\(\/\/\)$/{
  26235. s//\1/
  26236. q
  26237. }
  26238. /^X\(\/\).*/{
  26239. s//\1/
  26240. q
  26241. }
  26242. s/.*/./; q'`
  26243. as_dir="$ac_dir"; as_fn_mkdir_p
  26244. ac_builddir=.
  26245. case "$ac_dir" in
  26246. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26247. *)
  26248. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  26249. # A ".." for each directory in $ac_dir_suffix.
  26250. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26251. case $ac_top_builddir_sub in
  26252. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26253. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26254. esac ;;
  26255. esac
  26256. ac_abs_top_builddir=$ac_pwd
  26257. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26258. # for backward compatibility:
  26259. ac_top_builddir=$ac_top_build_prefix
  26260. case $srcdir in
  26261. .) # We are building in place.
  26262. ac_srcdir=.
  26263. ac_top_srcdir=$ac_top_builddir_sub
  26264. ac_abs_top_srcdir=$ac_pwd ;;
  26265. [\\/]* | ?:[\\/]* ) # Absolute name.
  26266. ac_srcdir=$srcdir$ac_dir_suffix;
  26267. ac_top_srcdir=$srcdir
  26268. ac_abs_top_srcdir=$srcdir ;;
  26269. *) # Relative name.
  26270. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26271. ac_top_srcdir=$ac_top_build_prefix$srcdir
  26272. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26273. esac
  26274. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26275. case $ac_mode in
  26276. :F)
  26277. #
  26278. # CONFIG_FILE
  26279. #
  26280. case $INSTALL in
  26281. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26282. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26283. esac
  26284. _ACEOF
  26285. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26286. # If the template does not know about datarootdir, expand it.
  26287. # FIXME: This hack should be removed a few years after 2.60.
  26288. ac_datarootdir_hack=; ac_datarootdir_seen=
  26289. ac_sed_dataroot='
  26290. /datarootdir/ {
  26291. p
  26292. q
  26293. }
  26294. /@datadir@/p
  26295. /@docdir@/p
  26296. /@infodir@/p
  26297. /@localedir@/p
  26298. /@mandir@/p'
  26299. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  26300. *datarootdir*) ac_datarootdir_seen=yes;;
  26301. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  26303. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  26304. _ACEOF
  26305. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26306. ac_datarootdir_hack='
  26307. s&@datadir@&$datadir&g
  26308. s&@docdir@&$docdir&g
  26309. s&@infodir@&$infodir&g
  26310. s&@localedir@&$localedir&g
  26311. s&@mandir@&$mandir&g
  26312. s&\\\${datarootdir}&$datarootdir&g' ;;
  26313. esac
  26314. _ACEOF
  26315. # Neutralize VPATH when `$srcdir' = `.'.
  26316. # Shell code in configure.ac might set extrasub.
  26317. # FIXME: do we really want to maintain this feature?
  26318. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26319. ac_sed_extra="$ac_vpsub
  26320. $extrasub
  26321. _ACEOF
  26322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26323. :t
  26324. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26325. s|@configure_input@|$ac_sed_conf_input|;t t
  26326. s&@top_builddir@&$ac_top_builddir_sub&;t t
  26327. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  26328. s&@srcdir@&$ac_srcdir&;t t
  26329. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  26330. s&@top_srcdir@&$ac_top_srcdir&;t t
  26331. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  26332. s&@builddir@&$ac_builddir&;t t
  26333. s&@abs_builddir@&$ac_abs_builddir&;t t
  26334. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  26335. s&@INSTALL@&$ac_INSTALL&;t t
  26336. $ac_datarootdir_hack
  26337. "
  26338. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  26339. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26340. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  26341. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  26342. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  26343. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  26344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26345. which seems to be undefined. Please make sure it is defined" >&5
  26346. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  26347. which seems to be undefined. Please make sure it is defined" >&2;}
  26348. rm -f "$ac_tmp/stdin"
  26349. case $ac_file in
  26350. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  26351. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  26352. esac \
  26353. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26354. ;;
  26355. :H)
  26356. #
  26357. # CONFIG_HEADER
  26358. #
  26359. if test x"$ac_file" != x-; then
  26360. {
  26361. printf "%s\n" "/* $configure_input */" >&1 \
  26362. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  26363. } >"$ac_tmp/config.h" \
  26364. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26365. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  26366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  26367. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  26368. else
  26369. rm -f "$ac_file"
  26370. mv "$ac_tmp/config.h" "$ac_file" \
  26371. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  26372. fi
  26373. else
  26374. printf "%s\n" "/* $configure_input */" >&1 \
  26375. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  26376. || as_fn_error $? "could not create -" "$LINENO" 5
  26377. fi
  26378. ;;
  26379. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  26380. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  26381. ;;
  26382. esac
  26383. case $ac_file$ac_mode in
  26384. "libtool":C)
  26385. # See if we are running on zsh, and set the options that allow our
  26386. # commands through without removal of \ escapes.
  26387. if test -n "${ZSH_VERSION+set}"; then
  26388. setopt NO_GLOB_SUBST
  26389. fi
  26390. cfgfile=${ofile}T
  26391. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  26392. $RM "$cfgfile"
  26393. cat <<_LT_EOF >> "$cfgfile"
  26394. #! $SHELL
  26395. # Generated automatically by $as_me ($PACKAGE) $VERSION
  26396. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26397. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26398. # Provide generalized library-building support services.
  26399. # Written by Gordon Matzigkeit, 1996
  26400. # Copyright (C) 2014 Free Software Foundation, Inc.
  26401. # This is free software; see the source for copying conditions. There is NO
  26402. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  26403. # GNU Libtool is free software; you can redistribute it and/or modify
  26404. # it under the terms of the GNU General Public License as published by
  26405. # the Free Software Foundation; either version 2 of of the License, or
  26406. # (at your option) any later version.
  26407. #
  26408. # As a special exception to the GNU General Public License, if you
  26409. # distribute this file as part of a program or library that is built
  26410. # using GNU Libtool, you may include this file under the same
  26411. # distribution terms that you use for the rest of that program.
  26412. #
  26413. # GNU Libtool is distributed in the hope that it will be useful, but
  26414. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26415. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26416. # GNU General Public License for more details.
  26417. #
  26418. # You should have received a copy of the GNU General Public License
  26419. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  26420. # The names of the tagged configurations supported by this script.
  26421. available_tags='RC CXX '
  26422. # Configured defaults for sys_lib_dlsearch_path munging.
  26423. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  26424. # ### BEGIN LIBTOOL CONFIG
  26425. # Which release of libtool.m4 was used?
  26426. macro_version=$macro_version
  26427. macro_revision=$macro_revision
  26428. # Assembler program.
  26429. AS=$lt_AS
  26430. # DLL creation program.
  26431. DLLTOOL=$lt_DLLTOOL
  26432. # Object dumper program.
  26433. OBJDUMP=$lt_OBJDUMP
  26434. # Whether or not to build shared libraries.
  26435. build_libtool_libs=$enable_shared
  26436. # Whether or not to build static libraries.
  26437. build_old_libs=$enable_static
  26438. # What type of objects to build.
  26439. pic_mode=$pic_mode
  26440. # Whether or not to optimize for fast installation.
  26441. fast_install=$enable_fast_install
  26442. # Shared archive member basename,for filename based shared library versioning on AIX.
  26443. shared_archive_member_spec=$shared_archive_member_spec
  26444. # Shell to use when invoking shell scripts.
  26445. SHELL=$lt_SHELL
  26446. # An echo program that protects backslashes.
  26447. ECHO=$lt_ECHO
  26448. # The PATH separator for the build system.
  26449. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  26450. # The host system.
  26451. host_alias=$host_alias
  26452. host=$host
  26453. host_os=$host_os
  26454. # The build system.
  26455. build_alias=$build_alias
  26456. build=$build
  26457. build_os=$build_os
  26458. # A sed program that does not truncate output.
  26459. SED=$lt_SED
  26460. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26461. Xsed="\$SED -e 1s/^X//"
  26462. # A grep program that handles long lines.
  26463. GREP=$lt_GREP
  26464. # An ERE matcher.
  26465. EGREP=$lt_EGREP
  26466. # A literal string matcher.
  26467. FGREP=$lt_FGREP
  26468. # A BSD- or MS-compatible name lister.
  26469. NM=$lt_NM
  26470. # Whether we need soft or hard links.
  26471. LN_S=$lt_LN_S
  26472. # What is the maximum length of a command?
  26473. max_cmd_len=$max_cmd_len
  26474. # Object file suffix (normally "o").
  26475. objext=$ac_objext
  26476. # Executable file suffix (normally "").
  26477. exeext=$exeext
  26478. # whether the shell understands "unset".
  26479. lt_unset=$lt_unset
  26480. # turn spaces into newlines.
  26481. SP2NL=$lt_lt_SP2NL
  26482. # turn newlines into spaces.
  26483. NL2SP=$lt_lt_NL2SP
  26484. # convert \$build file names to \$host format.
  26485. to_host_file_cmd=$lt_cv_to_host_file_cmd
  26486. # convert \$build files to toolchain format.
  26487. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  26488. # Method to check whether dependent libraries are shared objects.
  26489. deplibs_check_method=$lt_deplibs_check_method
  26490. # Command to use when deplibs_check_method = "file_magic".
  26491. file_magic_cmd=$lt_file_magic_cmd
  26492. # How to find potential files when deplibs_check_method = "file_magic".
  26493. file_magic_glob=$lt_file_magic_glob
  26494. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  26495. want_nocaseglob=$lt_want_nocaseglob
  26496. # Command to associate shared and link libraries.
  26497. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  26498. # The archiver.
  26499. AR=$lt_AR
  26500. # Flags to create an archive.
  26501. AR_FLAGS=$lt_AR_FLAGS
  26502. # How to feed a file listing to the archiver.
  26503. archiver_list_spec=$lt_archiver_list_spec
  26504. # A symbol stripping program.
  26505. STRIP=$lt_STRIP
  26506. # Commands used to install an old-style archive.
  26507. RANLIB=$lt_RANLIB
  26508. old_postinstall_cmds=$lt_old_postinstall_cmds
  26509. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26510. # Whether to use a lock for old archive extraction.
  26511. lock_old_archive_extraction=$lock_old_archive_extraction
  26512. # A C compiler.
  26513. LTCC=$lt_CC
  26514. # LTCC compiler flags.
  26515. LTCFLAGS=$lt_CFLAGS
  26516. # Take the output of nm and produce a listing of raw symbols and C names.
  26517. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26518. # Transform the output of nm in a proper C declaration.
  26519. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26520. # Transform the output of nm into a list of symbols to manually relocate.
  26521. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  26522. # Transform the output of nm in a C name address pair.
  26523. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26524. # Transform the output of nm in a C name address pair when lib prefix is needed.
  26525. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  26526. # The name lister interface.
  26527. nm_interface=$lt_lt_cv_nm_interface
  26528. # Specify filename containing input files for \$NM.
  26529. nm_file_list_spec=$lt_nm_file_list_spec
  26530. # The root where to search for dependent libraries,and where our libraries should be installed.
  26531. lt_sysroot=$lt_sysroot
  26532. # Command to truncate a binary pipe.
  26533. lt_truncate_bin=$lt_lt_cv_truncate_bin
  26534. # The name of the directory that contains temporary libtool files.
  26535. objdir=$objdir
  26536. # Used to examine libraries when file_magic_cmd begins with "file".
  26537. MAGIC_CMD=$MAGIC_CMD
  26538. # Must we lock files when doing compilation?
  26539. need_locks=$lt_need_locks
  26540. # Manifest tool.
  26541. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  26542. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  26543. DSYMUTIL=$lt_DSYMUTIL
  26544. # Tool to change global to local symbols on Mac OS X.
  26545. NMEDIT=$lt_NMEDIT
  26546. # Tool to manipulate fat objects and archives on Mac OS X.
  26547. LIPO=$lt_LIPO
  26548. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  26549. OTOOL=$lt_OTOOL
  26550. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  26551. OTOOL64=$lt_OTOOL64
  26552. # Old archive suffix (normally "a").
  26553. libext=$libext
  26554. # Shared library suffix (normally ".so").
  26555. shrext_cmds=$lt_shrext_cmds
  26556. # The commands to extract the exported symbol list from a shared archive.
  26557. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26558. # Variables whose values should be saved in libtool wrapper scripts and
  26559. # restored at link time.
  26560. variables_saved_for_relink=$lt_variables_saved_for_relink
  26561. # Do we need the "lib" prefix for modules?
  26562. need_lib_prefix=$need_lib_prefix
  26563. # Do we need a version for libraries?
  26564. need_version=$need_version
  26565. # Library versioning type.
  26566. version_type=$version_type
  26567. # Shared library runtime path variable.
  26568. runpath_var=$runpath_var
  26569. # Shared library path variable.
  26570. shlibpath_var=$shlibpath_var
  26571. # Is shlibpath searched before the hard-coded library search path?
  26572. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26573. # Format of library name prefix.
  26574. libname_spec=$lt_libname_spec
  26575. # List of archive names. First name is the real one, the rest are links.
  26576. # The last name is the one that the linker finds with -lNAME
  26577. library_names_spec=$lt_library_names_spec
  26578. # The coded name of the library, if different from the real name.
  26579. soname_spec=$lt_soname_spec
  26580. # Permission mode override for installation of shared libraries.
  26581. install_override_mode=$lt_install_override_mode
  26582. # Command to use after installation of a shared archive.
  26583. postinstall_cmds=$lt_postinstall_cmds
  26584. # Command to use after uninstallation of a shared archive.
  26585. postuninstall_cmds=$lt_postuninstall_cmds
  26586. # Commands used to finish a libtool library installation in a directory.
  26587. finish_cmds=$lt_finish_cmds
  26588. # As "finish_cmds", except a single script fragment to be evaled but
  26589. # not shown.
  26590. finish_eval=$lt_finish_eval
  26591. # Whether we should hardcode library paths into libraries.
  26592. hardcode_into_libs=$hardcode_into_libs
  26593. # Compile-time system search path for libraries.
  26594. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26595. # Detected run-time system search path for libraries.
  26596. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  26597. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  26598. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  26599. # Whether dlopen is supported.
  26600. dlopen_support=$enable_dlopen
  26601. # Whether dlopen of programs is supported.
  26602. dlopen_self=$enable_dlopen_self
  26603. # Whether dlopen of statically linked programs is supported.
  26604. dlopen_self_static=$enable_dlopen_self_static
  26605. # Commands to strip libraries.
  26606. old_striplib=$lt_old_striplib
  26607. striplib=$lt_striplib
  26608. # The linker used to build libraries.
  26609. LD=$lt_LD
  26610. # How to create reloadable object files.
  26611. reload_flag=$lt_reload_flag
  26612. reload_cmds=$lt_reload_cmds
  26613. # Commands used to build an old-style archive.
  26614. old_archive_cmds=$lt_old_archive_cmds
  26615. # A language specific compiler.
  26616. CC=$lt_compiler
  26617. # Is the compiler the GNU compiler?
  26618. with_gcc=$GCC
  26619. # Compiler flag to turn off builtin functions.
  26620. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26621. # Additional compiler flags for building library objects.
  26622. pic_flag=$lt_lt_prog_compiler_pic
  26623. # How to pass a linker flag through the compiler.
  26624. wl=$lt_lt_prog_compiler_wl
  26625. # Compiler flag to prevent dynamic linking.
  26626. link_static_flag=$lt_lt_prog_compiler_static
  26627. # Does compiler simultaneously support -c and -o options?
  26628. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26629. # Whether or not to add -lc for building shared libraries.
  26630. build_libtool_need_lc=$archive_cmds_need_lc
  26631. # Whether or not to disallow shared libs when runtime libs are static.
  26632. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26633. # Compiler flag to allow reflexive dlopens.
  26634. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26635. # Compiler flag to generate shared objects directly from archives.
  26636. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26637. # Whether the compiler copes with passing no objects directly.
  26638. compiler_needs_object=$lt_compiler_needs_object
  26639. # Create an old-style archive from a shared archive.
  26640. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26641. # Create a temporary old-style archive to link instead of a shared archive.
  26642. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26643. # Commands used to build a shared archive.
  26644. archive_cmds=$lt_archive_cmds
  26645. archive_expsym_cmds=$lt_archive_expsym_cmds
  26646. # Commands used to build a loadable module if different from building
  26647. # a shared archive.
  26648. module_cmds=$lt_module_cmds
  26649. module_expsym_cmds=$lt_module_expsym_cmds
  26650. # Whether we are building with GNU ld or not.
  26651. with_gnu_ld=$lt_with_gnu_ld
  26652. # Flag that allows shared libraries with undefined symbols to be built.
  26653. allow_undefined_flag=$lt_allow_undefined_flag
  26654. # Flag that enforces no undefined symbols.
  26655. no_undefined_flag=$lt_no_undefined_flag
  26656. # Flag to hardcode \$libdir into a binary during linking.
  26657. # This must work even if \$libdir does not exist
  26658. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26659. # Whether we need a single "-rpath" flag with a separated argument.
  26660. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26661. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26662. # DIR into the resulting binary.
  26663. hardcode_direct=$hardcode_direct
  26664. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26665. # DIR into the resulting binary and the resulting library dependency is
  26666. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26667. # library is relocated.
  26668. hardcode_direct_absolute=$hardcode_direct_absolute
  26669. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26670. # into the resulting binary.
  26671. hardcode_minus_L=$hardcode_minus_L
  26672. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26673. # into the resulting binary.
  26674. hardcode_shlibpath_var=$hardcode_shlibpath_var
  26675. # Set to "yes" if building a shared library automatically hardcodes DIR
  26676. # into the library and all subsequent libraries and executables linked
  26677. # against it.
  26678. hardcode_automatic=$hardcode_automatic
  26679. # Set to yes if linker adds runtime paths of dependent libraries
  26680. # to runtime path list.
  26681. inherit_rpath=$inherit_rpath
  26682. # Whether libtool must link a program against all its dependency libraries.
  26683. link_all_deplibs=$link_all_deplibs
  26684. # Set to "yes" if exported symbols are required.
  26685. always_export_symbols=$always_export_symbols
  26686. # The commands to list exported symbols.
  26687. export_symbols_cmds=$lt_export_symbols_cmds
  26688. # Symbols that should not be listed in the preloaded symbols.
  26689. exclude_expsyms=$lt_exclude_expsyms
  26690. # Symbols that must always be exported.
  26691. include_expsyms=$lt_include_expsyms
  26692. # Commands necessary for linking programs (against libraries) with templates.
  26693. prelink_cmds=$lt_prelink_cmds
  26694. # Commands necessary for finishing linking programs.
  26695. postlink_cmds=$lt_postlink_cmds
  26696. # Specify filename containing input files.
  26697. file_list_spec=$lt_file_list_spec
  26698. # How to hardcode a shared library path into an executable.
  26699. hardcode_action=$hardcode_action
  26700. # The directories searched by this compiler when creating a shared library.
  26701. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  26702. # Dependencies to place before and after the objects being linked to
  26703. # create a shared library.
  26704. predep_objects=$lt_predep_objects
  26705. postdep_objects=$lt_postdep_objects
  26706. predeps=$lt_predeps
  26707. postdeps=$lt_postdeps
  26708. # The library search path used internally by the compiler when linking
  26709. # a shared library.
  26710. compiler_lib_search_path=$lt_compiler_lib_search_path
  26711. # ### END LIBTOOL CONFIG
  26712. _LT_EOF
  26713. cat <<'_LT_EOF' >> "$cfgfile"
  26714. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  26715. # func_munge_path_list VARIABLE PATH
  26716. # -----------------------------------
  26717. # VARIABLE is name of variable containing _space_ separated list of
  26718. # directories to be munged by the contents of PATH, which is string
  26719. # having a format:
  26720. # "DIR[:DIR]:"
  26721. # string "DIR[ DIR]" will be prepended to VARIABLE
  26722. # ":DIR[:DIR]"
  26723. # string "DIR[ DIR]" will be appended to VARIABLE
  26724. # "DIRP[:DIRP]::[DIRA:]DIRA"
  26725. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  26726. # "DIRA[ DIRA]" will be appended to VARIABLE
  26727. # "DIR[:DIR]"
  26728. # VARIABLE will be replaced by "DIR[ DIR]"
  26729. func_munge_path_list ()
  26730. {
  26731. case x$2 in
  26732. x)
  26733. ;;
  26734. *:)
  26735. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  26736. ;;
  26737. x:*)
  26738. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  26739. ;;
  26740. *::*)
  26741. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  26742. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  26743. ;;
  26744. *)
  26745. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  26746. ;;
  26747. esac
  26748. }
  26749. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  26750. func_cc_basename ()
  26751. {
  26752. for cc_temp in $*""; do
  26753. case $cc_temp in
  26754. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26755. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26756. \-*) ;;
  26757. *) break;;
  26758. esac
  26759. done
  26760. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  26761. }
  26762. # ### END FUNCTIONS SHARED WITH CONFIGURE
  26763. _LT_EOF
  26764. case $host_os in
  26765. aix3*)
  26766. cat <<\_LT_EOF >> "$cfgfile"
  26767. # AIX sometimes has problems with the GCC collect2 program. For some
  26768. # reason, if we set the COLLECT_NAMES environment variable, the problems
  26769. # vanish in a puff of smoke.
  26770. if test set != "${COLLECT_NAMES+set}"; then
  26771. COLLECT_NAMES=
  26772. export COLLECT_NAMES
  26773. fi
  26774. _LT_EOF
  26775. ;;
  26776. esac
  26777. ltmain=$ac_aux_dir/ltmain.sh
  26778. # We use sed instead of cat because bash on DJGPP gets confused if
  26779. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26780. # text mode, it properly converts lines to CR/LF. This bash problem
  26781. # is reportedly fixed, but why not run on old versions too?
  26782. sed '$q' "$ltmain" >> "$cfgfile" \
  26783. || (rm -f "$cfgfile"; exit 1)
  26784. mv -f "$cfgfile" "$ofile" ||
  26785. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26786. chmod +x "$ofile"
  26787. cat <<_LT_EOF >> "$ofile"
  26788. # ### BEGIN LIBTOOL TAG CONFIG: RC
  26789. # The linker used to build libraries.
  26790. LD=$lt_LD_RC
  26791. # How to create reloadable object files.
  26792. reload_flag=$lt_reload_flag_RC
  26793. reload_cmds=$lt_reload_cmds_RC
  26794. # Commands used to build an old-style archive.
  26795. old_archive_cmds=$lt_old_archive_cmds_RC
  26796. # A language specific compiler.
  26797. CC=$lt_compiler_RC
  26798. # Is the compiler the GNU compiler?
  26799. with_gcc=$GCC_RC
  26800. # Compiler flag to turn off builtin functions.
  26801. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  26802. # Additional compiler flags for building library objects.
  26803. pic_flag=$lt_lt_prog_compiler_pic_RC
  26804. # How to pass a linker flag through the compiler.
  26805. wl=$lt_lt_prog_compiler_wl_RC
  26806. # Compiler flag to prevent dynamic linking.
  26807. link_static_flag=$lt_lt_prog_compiler_static_RC
  26808. # Does compiler simultaneously support -c and -o options?
  26809. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  26810. # Whether or not to add -lc for building shared libraries.
  26811. build_libtool_need_lc=$archive_cmds_need_lc_RC
  26812. # Whether or not to disallow shared libs when runtime libs are static.
  26813. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  26814. # Compiler flag to allow reflexive dlopens.
  26815. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  26816. # Compiler flag to generate shared objects directly from archives.
  26817. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  26818. # Whether the compiler copes with passing no objects directly.
  26819. compiler_needs_object=$lt_compiler_needs_object_RC
  26820. # Create an old-style archive from a shared archive.
  26821. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  26822. # Create a temporary old-style archive to link instead of a shared archive.
  26823. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  26824. # Commands used to build a shared archive.
  26825. archive_cmds=$lt_archive_cmds_RC
  26826. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  26827. # Commands used to build a loadable module if different from building
  26828. # a shared archive.
  26829. module_cmds=$lt_module_cmds_RC
  26830. module_expsym_cmds=$lt_module_expsym_cmds_RC
  26831. # Whether we are building with GNU ld or not.
  26832. with_gnu_ld=$lt_with_gnu_ld_RC
  26833. # Flag that allows shared libraries with undefined symbols to be built.
  26834. allow_undefined_flag=$lt_allow_undefined_flag_RC
  26835. # Flag that enforces no undefined symbols.
  26836. no_undefined_flag=$lt_no_undefined_flag_RC
  26837. # Flag to hardcode \$libdir into a binary during linking.
  26838. # This must work even if \$libdir does not exist
  26839. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  26840. # Whether we need a single "-rpath" flag with a separated argument.
  26841. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  26842. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26843. # DIR into the resulting binary.
  26844. hardcode_direct=$hardcode_direct_RC
  26845. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26846. # DIR into the resulting binary and the resulting library dependency is
  26847. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26848. # library is relocated.
  26849. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  26850. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26851. # into the resulting binary.
  26852. hardcode_minus_L=$hardcode_minus_L_RC
  26853. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26854. # into the resulting binary.
  26855. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  26856. # Set to "yes" if building a shared library automatically hardcodes DIR
  26857. # into the library and all subsequent libraries and executables linked
  26858. # against it.
  26859. hardcode_automatic=$hardcode_automatic_RC
  26860. # Set to yes if linker adds runtime paths of dependent libraries
  26861. # to runtime path list.
  26862. inherit_rpath=$inherit_rpath_RC
  26863. # Whether libtool must link a program against all its dependency libraries.
  26864. link_all_deplibs=$link_all_deplibs_RC
  26865. # Set to "yes" if exported symbols are required.
  26866. always_export_symbols=$always_export_symbols_RC
  26867. # The commands to list exported symbols.
  26868. export_symbols_cmds=$lt_export_symbols_cmds_RC
  26869. # Symbols that should not be listed in the preloaded symbols.
  26870. exclude_expsyms=$lt_exclude_expsyms_RC
  26871. # Symbols that must always be exported.
  26872. include_expsyms=$lt_include_expsyms_RC
  26873. # Commands necessary for linking programs (against libraries) with templates.
  26874. prelink_cmds=$lt_prelink_cmds_RC
  26875. # Commands necessary for finishing linking programs.
  26876. postlink_cmds=$lt_postlink_cmds_RC
  26877. # Specify filename containing input files.
  26878. file_list_spec=$lt_file_list_spec_RC
  26879. # How to hardcode a shared library path into an executable.
  26880. hardcode_action=$hardcode_action_RC
  26881. # The directories searched by this compiler when creating a shared library.
  26882. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  26883. # Dependencies to place before and after the objects being linked to
  26884. # create a shared library.
  26885. predep_objects=$lt_predep_objects_RC
  26886. postdep_objects=$lt_postdep_objects_RC
  26887. predeps=$lt_predeps_RC
  26888. postdeps=$lt_postdeps_RC
  26889. # The library search path used internally by the compiler when linking
  26890. # a shared library.
  26891. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  26892. # ### END LIBTOOL TAG CONFIG: RC
  26893. _LT_EOF
  26894. cat <<_LT_EOF >> "$ofile"
  26895. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  26896. # The linker used to build libraries.
  26897. LD=$lt_LD_CXX
  26898. # How to create reloadable object files.
  26899. reload_flag=$lt_reload_flag_CXX
  26900. reload_cmds=$lt_reload_cmds_CXX
  26901. # Commands used to build an old-style archive.
  26902. old_archive_cmds=$lt_old_archive_cmds_CXX
  26903. # A language specific compiler.
  26904. CC=$lt_compiler_CXX
  26905. # Is the compiler the GNU compiler?
  26906. with_gcc=$GCC_CXX
  26907. # Compiler flag to turn off builtin functions.
  26908. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  26909. # Additional compiler flags for building library objects.
  26910. pic_flag=$lt_lt_prog_compiler_pic_CXX
  26911. # How to pass a linker flag through the compiler.
  26912. wl=$lt_lt_prog_compiler_wl_CXX
  26913. # Compiler flag to prevent dynamic linking.
  26914. link_static_flag=$lt_lt_prog_compiler_static_CXX
  26915. # Does compiler simultaneously support -c and -o options?
  26916. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  26917. # Whether or not to add -lc for building shared libraries.
  26918. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  26919. # Whether or not to disallow shared libs when runtime libs are static.
  26920. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  26921. # Compiler flag to allow reflexive dlopens.
  26922. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  26923. # Compiler flag to generate shared objects directly from archives.
  26924. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  26925. # Whether the compiler copes with passing no objects directly.
  26926. compiler_needs_object=$lt_compiler_needs_object_CXX
  26927. # Create an old-style archive from a shared archive.
  26928. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  26929. # Create a temporary old-style archive to link instead of a shared archive.
  26930. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  26931. # Commands used to build a shared archive.
  26932. archive_cmds=$lt_archive_cmds_CXX
  26933. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  26934. # Commands used to build a loadable module if different from building
  26935. # a shared archive.
  26936. module_cmds=$lt_module_cmds_CXX
  26937. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26938. # Whether we are building with GNU ld or not.
  26939. with_gnu_ld=$lt_with_gnu_ld_CXX
  26940. # Flag that allows shared libraries with undefined symbols to be built.
  26941. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26942. # Flag that enforces no undefined symbols.
  26943. no_undefined_flag=$lt_no_undefined_flag_CXX
  26944. # Flag to hardcode \$libdir into a binary during linking.
  26945. # This must work even if \$libdir does not exist
  26946. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26947. # Whether we need a single "-rpath" flag with a separated argument.
  26948. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26949. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26950. # DIR into the resulting binary.
  26951. hardcode_direct=$hardcode_direct_CXX
  26952. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  26953. # DIR into the resulting binary and the resulting library dependency is
  26954. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  26955. # library is relocated.
  26956. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  26957. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  26958. # into the resulting binary.
  26959. hardcode_minus_L=$hardcode_minus_L_CXX
  26960. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  26961. # into the resulting binary.
  26962. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26963. # Set to "yes" if building a shared library automatically hardcodes DIR
  26964. # into the library and all subsequent libraries and executables linked
  26965. # against it.
  26966. hardcode_automatic=$hardcode_automatic_CXX
  26967. # Set to yes if linker adds runtime paths of dependent libraries
  26968. # to runtime path list.
  26969. inherit_rpath=$inherit_rpath_CXX
  26970. # Whether libtool must link a program against all its dependency libraries.
  26971. link_all_deplibs=$link_all_deplibs_CXX
  26972. # Set to "yes" if exported symbols are required.
  26973. always_export_symbols=$always_export_symbols_CXX
  26974. # The commands to list exported symbols.
  26975. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26976. # Symbols that should not be listed in the preloaded symbols.
  26977. exclude_expsyms=$lt_exclude_expsyms_CXX
  26978. # Symbols that must always be exported.
  26979. include_expsyms=$lt_include_expsyms_CXX
  26980. # Commands necessary for linking programs (against libraries) with templates.
  26981. prelink_cmds=$lt_prelink_cmds_CXX
  26982. # Commands necessary for finishing linking programs.
  26983. postlink_cmds=$lt_postlink_cmds_CXX
  26984. # Specify filename containing input files.
  26985. file_list_spec=$lt_file_list_spec_CXX
  26986. # How to hardcode a shared library path into an executable.
  26987. hardcode_action=$hardcode_action_CXX
  26988. # The directories searched by this compiler when creating a shared library.
  26989. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  26990. # Dependencies to place before and after the objects being linked to
  26991. # create a shared library.
  26992. predep_objects=$lt_predep_objects_CXX
  26993. postdep_objects=$lt_postdep_objects_CXX
  26994. predeps=$lt_predeps_CXX
  26995. postdeps=$lt_postdeps_CXX
  26996. # The library search path used internally by the compiler when linking
  26997. # a shared library.
  26998. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26999. # ### END LIBTOOL TAG CONFIG: CXX
  27000. _LT_EOF
  27001. ;;
  27002. "sdl3_config":C) chmod a+x sdl3-config ;;
  27003. "summary":C) printf "$SUMMARY" ;;
  27004. esac
  27005. done # for ac_tag
  27006. as_fn_exit 0
  27007. _ACEOF
  27008. ac_clean_files=$ac_clean_files_save
  27009. test $ac_write_fail = 0 ||
  27010. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27011. # configure is writing to config.log, and then calls config.status.
  27012. # config.status does its own redirection, appending to config.log.
  27013. # Unfortunately, on DOS this fails, as config.log is still kept open
  27014. # by configure, so config.status won't be able to write to it; its
  27015. # output is simply discarded. So we exec the FD to /dev/null,
  27016. # effectively closing config.log, so it can be properly (re)opened and
  27017. # appended to by config.status. When coming back to configure, we
  27018. # need to make the FD available again.
  27019. if test "$no_create" != yes; then
  27020. ac_cs_success=:
  27021. ac_config_status_args=
  27022. test "$silent" = yes &&
  27023. ac_config_status_args="$ac_config_status_args --quiet"
  27024. exec 5>/dev/null
  27025. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27026. exec 5>>config.log
  27027. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27028. # would make configure fail if this is the last instruction.
  27029. $ac_cs_success || as_fn_exit 1
  27030. fi
  27031. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27033. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27034. fi