configure 953 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476
  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. INSTALL_SDL2_CONFIG
  627. LIBUSB_LIBS
  628. LIBUSB_CFLAGS
  629. IBUS_LIBS
  630. IBUS_CFLAGS
  631. DBUS_LIBS
  632. DBUS_CFLAGS
  633. LIBGBM_LIBS
  634. LIBGBM_CFLAGS
  635. LIBDRM_LIBS
  636. LIBDRM_CFLAGS
  637. DIRECTFB_LIBS
  638. DIRECTFB_CFLAGS
  639. X_EXTRA_LIBS
  640. X_LIBS
  641. X_PRE_LIBS
  642. X_CFLAGS
  643. XMKMF
  644. RPI_LIBS
  645. RPI_CFLAGS
  646. DECOR_LIBS
  647. DECOR_CFLAGS
  648. FUSIONSOUND_LIBS
  649. FUSIONSOUND_CFLAGS
  650. SNDIO_LIBS
  651. SNDIO_CFLAGS
  652. ARTSCONFIG
  653. PULSEAUDIO_LIBS
  654. PULSEAUDIO_CFLAGS
  655. PIPEWIRE_LIBS
  656. PIPEWIRE_CFLAGS
  657. ESD_CONFIG
  658. ESD_LIBS
  659. ESD_CFLAGS
  660. JACK_LIBS
  661. JACK_CFLAGS
  662. ALSA_LIBS
  663. ALSA_CFLAGS
  664. ALLOCA
  665. CPP
  666. LIBTOOLLINKERTAG
  667. LINKER
  668. SORT
  669. PKG_CONFIG_LIBDIR
  670. PKG_CONFIG_PATH
  671. PKG_CONFIG
  672. SET_MAKE
  673. INSTALL_DATA
  674. INSTALL_SCRIPT
  675. INSTALL_PROGRAM
  676. CXXCPP
  677. ac_ct_CXX
  678. CXXFLAGS
  679. CXX
  680. LT_AGE
  681. LT_REVISION
  682. LT_CURRENT
  683. LT_RELEASE
  684. RC
  685. LT_SYS_LIBRARY_PATH
  686. OTOOL64
  687. OTOOL
  688. LIPO
  689. NMEDIT
  690. DSYMUTIL
  691. MANIFEST_TOOL
  692. AWK
  693. RANLIB
  694. STRIP
  695. ac_ct_AR
  696. AR
  697. LN_S
  698. NM
  699. ac_ct_DUMPBIN
  700. DUMPBIN
  701. LD
  702. FGREP
  703. EGREP
  704. GREP
  705. SED
  706. OBJEXT
  707. EXEEXT
  708. ac_ct_CC
  709. CPPFLAGS
  710. LDFLAGS
  711. CFLAGS
  712. CC
  713. host_os
  714. host_vendor
  715. host_cpu
  716. host
  717. build_os
  718. build_vendor
  719. build_cpu
  720. build
  721. LIBTOOL
  722. OBJDUMP
  723. DLLTOOL
  724. AS
  725. SDL_VERSION
  726. SDL_BINARY_AGE
  727. SDL_INTERFACE_AGE
  728. SDL_MICRO_VERSION
  729. SDL_MINOR_VERSION
  730. SDL_MAJOR_VERSION
  731. target_alias
  732. host_alias
  733. build_alias
  734. LIBS
  735. ECHO_T
  736. ECHO_N
  737. ECHO_C
  738. DEFS
  739. mandir
  740. localedir
  741. libdir
  742. psdir
  743. pdfdir
  744. dvidir
  745. htmldir
  746. infodir
  747. docdir
  748. oldincludedir
  749. includedir
  750. runstatedir
  751. localstatedir
  752. sharedstatedir
  753. sysconfdir
  754. datadir
  755. datarootdir
  756. libexecdir
  757. sbindir
  758. bindir
  759. program_transform_name
  760. prefix
  761. exec_prefix
  762. PACKAGE_URL
  763. PACKAGE_BUGREPORT
  764. PACKAGE_STRING
  765. PACKAGE_VERSION
  766. PACKAGE_TARNAME
  767. PACKAGE_NAME
  768. PATH_SEPARATOR
  769. SHELL'
  770. ac_subst_files=''
  771. ac_user_opts='
  772. enable_option_checking
  773. enable_shared
  774. enable_static
  775. with_pic
  776. enable_fast_install
  777. with_aix_soname
  778. with_gnu_ld
  779. with_sysroot
  780. enable_libtool_lock
  781. enable_largefile
  782. enable_assertions
  783. enable_dependency_tracking
  784. enable_libc
  785. enable_system_iconv
  786. enable_gcc_atomics
  787. enable_atomic
  788. enable_audio
  789. enable_video
  790. enable_render
  791. enable_events
  792. enable_joystick
  793. enable_haptic
  794. enable_hidapi
  795. enable_sensor
  796. enable_power
  797. enable_filesystem
  798. enable_timers
  799. enable_file
  800. enable_misc
  801. enable_locale
  802. enable_loadso
  803. enable_cpuinfo
  804. enable_assembly
  805. enable_ssemath
  806. enable_mmx
  807. enable_3dnow
  808. enable_sse
  809. enable_sse2
  810. enable_sse3
  811. enable_altivec
  812. enable_lsx
  813. enable_lasx
  814. enable_oss
  815. enable_alsa
  816. with_alsa_prefix
  817. with_alsa_inc_prefix
  818. enable_alsatest
  819. enable_alsa_shared
  820. enable_jack
  821. enable_jack_shared
  822. enable_esd
  823. with_esd_prefix
  824. with_esd_exec_prefix
  825. enable_esdtest
  826. enable_esd_shared
  827. enable_pipewire
  828. enable_pipewire_shared
  829. enable_pulseaudio
  830. enable_pulseaudio_shared
  831. enable_arts
  832. enable_arts_shared
  833. enable_nas
  834. enable_nas_shared
  835. enable_sndio
  836. enable_sndio_shared
  837. enable_fusionsound
  838. enable_fusionsound_shared
  839. enable_diskaudio
  840. enable_dummyaudio
  841. enable_libsamplerate
  842. enable_libsamplerate_shared
  843. enable_arm_simd
  844. enable_arm_neon
  845. enable_video_wayland
  846. enable_video_wayland_qt_touch
  847. enable_wayland_shared
  848. enable_libdecor
  849. enable_libdecor_shared
  850. enable_video_rpi
  851. enable_video_x11
  852. with_x
  853. enable_x11_shared
  854. enable_video_x11_xcursor
  855. enable_video_x11_xdbe
  856. enable_video_x11_xinput
  857. enable_video_x11_xfixes
  858. enable_video_x11_xrandr
  859. enable_video_x11_scrnsaver
  860. enable_video_x11_xshape
  861. enable_video_vivante
  862. enable_video_cocoa
  863. enable_video_metal
  864. enable_render_metal
  865. enable_video_directfb
  866. enable_directfb_shared
  867. enable_video_kmsdrm
  868. enable_kmsdrm_shared
  869. enable_video_dummy
  870. enable_video_offscreen
  871. enable_video_opengl
  872. enable_video_opengles
  873. enable_video_opengles1
  874. enable_video_opengles2
  875. enable_video_vulkan
  876. enable_libudev
  877. enable_dbus
  878. enable_ime
  879. enable_ibus
  880. enable_fcitx
  881. enable_joystick_mfi
  882. enable_pthreads
  883. enable_pthread_sem
  884. enable_directx
  885. enable_xinput
  886. enable_wasapi
  887. enable_hidapi_joystick
  888. enable_hidapi_libusb
  889. enable_clock_gettime
  890. enable_rpath
  891. enable_backgrounding_signal
  892. enable_foregrounding_signal
  893. enable_joystick_virtual
  894. enable_render_d3d
  895. enable_sdl2_config
  896. '
  897. ac_precious_vars='build_alias
  898. host_alias
  899. target_alias
  900. CC
  901. CFLAGS
  902. LDFLAGS
  903. LIBS
  904. CPPFLAGS
  905. LT_SYS_LIBRARY_PATH
  906. CXX
  907. CXXFLAGS
  908. CCC
  909. CXXCPP
  910. PKG_CONFIG
  911. PKG_CONFIG_PATH
  912. PKG_CONFIG_LIBDIR
  913. CPP
  914. JACK_CFLAGS
  915. JACK_LIBS
  916. ESD_CFLAGS
  917. ESD_LIBS
  918. PIPEWIRE_CFLAGS
  919. PIPEWIRE_LIBS
  920. PULSEAUDIO_CFLAGS
  921. PULSEAUDIO_LIBS
  922. SNDIO_CFLAGS
  923. SNDIO_LIBS
  924. FUSIONSOUND_CFLAGS
  925. FUSIONSOUND_LIBS
  926. DECOR_CFLAGS
  927. DECOR_LIBS
  928. RPI_CFLAGS
  929. RPI_LIBS
  930. XMKMF
  931. DIRECTFB_CFLAGS
  932. DIRECTFB_LIBS
  933. LIBDRM_CFLAGS
  934. LIBDRM_LIBS
  935. LIBGBM_CFLAGS
  936. LIBGBM_LIBS
  937. DBUS_CFLAGS
  938. DBUS_LIBS
  939. IBUS_CFLAGS
  940. IBUS_LIBS
  941. LIBUSB_CFLAGS
  942. LIBUSB_LIBS'
  943. # Initialize some variables set by options.
  944. ac_init_help=
  945. ac_init_version=false
  946. ac_unrecognized_opts=
  947. ac_unrecognized_sep=
  948. # The variables have the same names as the options, with
  949. # dashes changed to underlines.
  950. cache_file=/dev/null
  951. exec_prefix=NONE
  952. no_create=
  953. no_recursion=
  954. prefix=NONE
  955. program_prefix=NONE
  956. program_suffix=NONE
  957. program_transform_name=s,x,x,
  958. silent=
  959. site=
  960. srcdir=
  961. verbose=
  962. x_includes=NONE
  963. x_libraries=NONE
  964. # Installation directory options.
  965. # These are left unexpanded so users can "make install exec_prefix=/foo"
  966. # and all the variables that are supposed to be based on exec_prefix
  967. # by default will actually change.
  968. # Use braces instead of parens because sh, perl, etc. also accept them.
  969. # (The list follows the same order as the GNU Coding Standards.)
  970. bindir='${exec_prefix}/bin'
  971. sbindir='${exec_prefix}/sbin'
  972. libexecdir='${exec_prefix}/libexec'
  973. datarootdir='${prefix}/share'
  974. datadir='${datarootdir}'
  975. sysconfdir='${prefix}/etc'
  976. sharedstatedir='${prefix}/com'
  977. localstatedir='${prefix}/var'
  978. runstatedir='${localstatedir}/run'
  979. includedir='${prefix}/include'
  980. oldincludedir='/usr/include'
  981. docdir='${datarootdir}/doc/${PACKAGE}'
  982. infodir='${datarootdir}/info'
  983. htmldir='${docdir}'
  984. dvidir='${docdir}'
  985. pdfdir='${docdir}'
  986. psdir='${docdir}'
  987. libdir='${exec_prefix}/lib'
  988. localedir='${datarootdir}/locale'
  989. mandir='${datarootdir}/man'
  990. ac_prev=
  991. ac_dashdash=
  992. for ac_option
  993. do
  994. # If the previous option needs an argument, assign it.
  995. if test -n "$ac_prev"; then
  996. eval $ac_prev=\$ac_option
  997. ac_prev=
  998. continue
  999. fi
  1000. case $ac_option in
  1001. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1002. *=) ac_optarg= ;;
  1003. *) ac_optarg=yes ;;
  1004. esac
  1005. case $ac_dashdash$ac_option in
  1006. --)
  1007. ac_dashdash=yes ;;
  1008. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1009. ac_prev=bindir ;;
  1010. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1011. bindir=$ac_optarg ;;
  1012. -build | --build | --buil | --bui | --bu)
  1013. ac_prev=build_alias ;;
  1014. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1015. build_alias=$ac_optarg ;;
  1016. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1017. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1018. ac_prev=cache_file ;;
  1019. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1020. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1021. cache_file=$ac_optarg ;;
  1022. --config-cache | -C)
  1023. cache_file=config.cache ;;
  1024. -datadir | --datadir | --datadi | --datad)
  1025. ac_prev=datadir ;;
  1026. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1027. datadir=$ac_optarg ;;
  1028. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1029. | --dataroo | --dataro | --datar)
  1030. ac_prev=datarootdir ;;
  1031. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1032. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1033. datarootdir=$ac_optarg ;;
  1034. -disable-* | --disable-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "enable_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval enable_$ac_useropt=no ;;
  1049. -docdir | --docdir | --docdi | --doc | --do)
  1050. ac_prev=docdir ;;
  1051. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1052. docdir=$ac_optarg ;;
  1053. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1054. ac_prev=dvidir ;;
  1055. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1056. dvidir=$ac_optarg ;;
  1057. -enable-* | --enable-*)
  1058. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1059. # Reject names that are not valid shell variable names.
  1060. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1061. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1062. ac_useropt_orig=$ac_useropt
  1063. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1064. case $ac_user_opts in
  1065. *"
  1066. "enable_$ac_useropt"
  1067. "*) ;;
  1068. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1069. ac_unrecognized_sep=', ';;
  1070. esac
  1071. eval enable_$ac_useropt=\$ac_optarg ;;
  1072. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1073. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1074. | --exec | --exe | --ex)
  1075. ac_prev=exec_prefix ;;
  1076. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1077. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1078. | --exec=* | --exe=* | --ex=*)
  1079. exec_prefix=$ac_optarg ;;
  1080. -gas | --gas | --ga | --g)
  1081. # Obsolete; use --with-gas.
  1082. with_gas=yes ;;
  1083. -help | --help | --hel | --he | -h)
  1084. ac_init_help=long ;;
  1085. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1086. ac_init_help=recursive ;;
  1087. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1088. ac_init_help=short ;;
  1089. -host | --host | --hos | --ho)
  1090. ac_prev=host_alias ;;
  1091. -host=* | --host=* | --hos=* | --ho=*)
  1092. host_alias=$ac_optarg ;;
  1093. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1094. ac_prev=htmldir ;;
  1095. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1096. | --ht=*)
  1097. htmldir=$ac_optarg ;;
  1098. -includedir | --includedir | --includedi | --included | --include \
  1099. | --includ | --inclu | --incl | --inc)
  1100. ac_prev=includedir ;;
  1101. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1102. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1103. includedir=$ac_optarg ;;
  1104. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1105. ac_prev=infodir ;;
  1106. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1107. infodir=$ac_optarg ;;
  1108. -libdir | --libdir | --libdi | --libd)
  1109. ac_prev=libdir ;;
  1110. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1111. libdir=$ac_optarg ;;
  1112. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1113. | --libexe | --libex | --libe)
  1114. ac_prev=libexecdir ;;
  1115. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1116. | --libexe=* | --libex=* | --libe=*)
  1117. libexecdir=$ac_optarg ;;
  1118. -localedir | --localedir | --localedi | --localed | --locale)
  1119. ac_prev=localedir ;;
  1120. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1121. localedir=$ac_optarg ;;
  1122. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1123. | --localstate | --localstat | --localsta | --localst | --locals)
  1124. ac_prev=localstatedir ;;
  1125. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1126. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1127. localstatedir=$ac_optarg ;;
  1128. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1129. ac_prev=mandir ;;
  1130. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1131. mandir=$ac_optarg ;;
  1132. -nfp | --nfp | --nf)
  1133. # Obsolete; use --without-fp.
  1134. with_fp=no ;;
  1135. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1136. | --no-cr | --no-c | -n)
  1137. no_create=yes ;;
  1138. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1139. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1140. no_recursion=yes ;;
  1141. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1142. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1143. | --oldin | --oldi | --old | --ol | --o)
  1144. ac_prev=oldincludedir ;;
  1145. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1146. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1147. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1148. oldincludedir=$ac_optarg ;;
  1149. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1150. ac_prev=prefix ;;
  1151. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1152. prefix=$ac_optarg ;;
  1153. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1154. | --program-pre | --program-pr | --program-p)
  1155. ac_prev=program_prefix ;;
  1156. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1157. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1158. program_prefix=$ac_optarg ;;
  1159. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1160. | --program-suf | --program-su | --program-s)
  1161. ac_prev=program_suffix ;;
  1162. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1163. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1164. program_suffix=$ac_optarg ;;
  1165. -program-transform-name | --program-transform-name \
  1166. | --program-transform-nam | --program-transform-na \
  1167. | --program-transform-n | --program-transform- \
  1168. | --program-transform | --program-transfor \
  1169. | --program-transfo | --program-transf \
  1170. | --program-trans | --program-tran \
  1171. | --progr-tra | --program-tr | --program-t)
  1172. ac_prev=program_transform_name ;;
  1173. -program-transform-name=* | --program-transform-name=* \
  1174. | --program-transform-nam=* | --program-transform-na=* \
  1175. | --program-transform-n=* | --program-transform-=* \
  1176. | --program-transform=* | --program-transfor=* \
  1177. | --program-transfo=* | --program-transf=* \
  1178. | --program-trans=* | --program-tran=* \
  1179. | --progr-tra=* | --program-tr=* | --program-t=*)
  1180. program_transform_name=$ac_optarg ;;
  1181. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1182. ac_prev=pdfdir ;;
  1183. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1184. pdfdir=$ac_optarg ;;
  1185. -psdir | --psdir | --psdi | --psd | --ps)
  1186. ac_prev=psdir ;;
  1187. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1188. psdir=$ac_optarg ;;
  1189. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1190. | -silent | --silent | --silen | --sile | --sil)
  1191. silent=yes ;;
  1192. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1193. | --runstate | --runstat | --runsta | --runst | --runs \
  1194. | --run | --ru | --r)
  1195. ac_prev=runstatedir ;;
  1196. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1197. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1198. | --run=* | --ru=* | --r=*)
  1199. runstatedir=$ac_optarg ;;
  1200. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1201. ac_prev=sbindir ;;
  1202. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1203. | --sbi=* | --sb=*)
  1204. sbindir=$ac_optarg ;;
  1205. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1206. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1207. | --sharedst | --shareds | --shared | --share | --shar \
  1208. | --sha | --sh)
  1209. ac_prev=sharedstatedir ;;
  1210. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1211. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1212. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1213. | --sha=* | --sh=*)
  1214. sharedstatedir=$ac_optarg ;;
  1215. -site | --site | --sit)
  1216. ac_prev=site ;;
  1217. -site=* | --site=* | --sit=*)
  1218. site=$ac_optarg ;;
  1219. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1220. ac_prev=srcdir ;;
  1221. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1222. srcdir=$ac_optarg ;;
  1223. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1224. | --syscon | --sysco | --sysc | --sys | --sy)
  1225. ac_prev=sysconfdir ;;
  1226. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1227. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1228. sysconfdir=$ac_optarg ;;
  1229. -target | --target | --targe | --targ | --tar | --ta | --t)
  1230. ac_prev=target_alias ;;
  1231. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1232. target_alias=$ac_optarg ;;
  1233. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1234. verbose=yes ;;
  1235. -version | --version | --versio | --versi | --vers | -V)
  1236. ac_init_version=: ;;
  1237. -with-* | --with-*)
  1238. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1239. # Reject names that are not valid shell variable names.
  1240. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1241. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1242. ac_useropt_orig=$ac_useropt
  1243. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1244. case $ac_user_opts in
  1245. *"
  1246. "with_$ac_useropt"
  1247. "*) ;;
  1248. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1249. ac_unrecognized_sep=', ';;
  1250. esac
  1251. eval with_$ac_useropt=\$ac_optarg ;;
  1252. -without-* | --without-*)
  1253. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1254. # Reject names that are not valid shell variable names.
  1255. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1256. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1257. ac_useropt_orig=$ac_useropt
  1258. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1259. case $ac_user_opts in
  1260. *"
  1261. "with_$ac_useropt"
  1262. "*) ;;
  1263. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1264. ac_unrecognized_sep=', ';;
  1265. esac
  1266. eval with_$ac_useropt=no ;;
  1267. --x)
  1268. # Obsolete; use --with-x.
  1269. with_x=yes ;;
  1270. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1271. | --x-incl | --x-inc | --x-in | --x-i)
  1272. ac_prev=x_includes ;;
  1273. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1274. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1275. x_includes=$ac_optarg ;;
  1276. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1277. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1278. ac_prev=x_libraries ;;
  1279. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1280. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1281. x_libraries=$ac_optarg ;;
  1282. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1283. Try \`$0 --help' for more information"
  1284. ;;
  1285. *=*)
  1286. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1287. # Reject names that are not valid shell variable names.
  1288. case $ac_envvar in #(
  1289. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1290. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1291. esac
  1292. eval $ac_envvar=\$ac_optarg
  1293. export $ac_envvar ;;
  1294. *)
  1295. # FIXME: should be removed in autoconf 3.0.
  1296. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1297. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1298. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1299. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1300. ;;
  1301. esac
  1302. done
  1303. if test -n "$ac_prev"; then
  1304. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1305. as_fn_error $? "missing argument to $ac_option"
  1306. fi
  1307. if test -n "$ac_unrecognized_opts"; then
  1308. case $enable_option_checking in
  1309. no) ;;
  1310. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1311. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1312. esac
  1313. fi
  1314. # Check all directory arguments for consistency.
  1315. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1316. datadir sysconfdir sharedstatedir localstatedir includedir \
  1317. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1318. libdir localedir mandir runstatedir
  1319. do
  1320. eval ac_val=\$$ac_var
  1321. # Remove trailing slashes.
  1322. case $ac_val in
  1323. */ )
  1324. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1325. eval $ac_var=\$ac_val;;
  1326. esac
  1327. # Be sure to have absolute directory names.
  1328. case $ac_val in
  1329. [\\/$]* | ?:[\\/]* ) continue;;
  1330. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1331. esac
  1332. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1333. done
  1334. # There might be people who depend on the old broken behavior: `$host'
  1335. # used to hold the argument of --host etc.
  1336. # FIXME: To remove some day.
  1337. build=$build_alias
  1338. host=$host_alias
  1339. target=$target_alias
  1340. # FIXME: To remove some day.
  1341. if test "x$host_alias" != x; then
  1342. if test "x$build_alias" = x; then
  1343. cross_compiling=maybe
  1344. elif test "x$build_alias" != "x$host_alias"; then
  1345. cross_compiling=yes
  1346. fi
  1347. fi
  1348. ac_tool_prefix=
  1349. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1350. test "$silent" = yes && exec 6>/dev/null
  1351. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1352. ac_ls_di=`ls -di .` &&
  1353. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1354. as_fn_error $? "working directory cannot be determined"
  1355. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1356. as_fn_error $? "pwd does not report name of working directory"
  1357. # Find the source files, if location was not specified.
  1358. if test -z "$srcdir"; then
  1359. ac_srcdir_defaulted=yes
  1360. # Try the directory containing this script, then the parent directory.
  1361. ac_confdir=`$as_dirname -- "$as_myself" ||
  1362. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1363. X"$as_myself" : 'X\(//\)[^/]' \| \
  1364. X"$as_myself" : 'X\(//\)$' \| \
  1365. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1366. printf "%s\n" X"$as_myself" |
  1367. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1368. s//\1/
  1369. q
  1370. }
  1371. /^X\(\/\/\)[^/].*/{
  1372. s//\1/
  1373. q
  1374. }
  1375. /^X\(\/\/\)$/{
  1376. s//\1/
  1377. q
  1378. }
  1379. /^X\(\/\).*/{
  1380. s//\1/
  1381. q
  1382. }
  1383. s/.*/./; q'`
  1384. srcdir=$ac_confdir
  1385. if test ! -r "$srcdir/$ac_unique_file"; then
  1386. srcdir=..
  1387. fi
  1388. else
  1389. ac_srcdir_defaulted=no
  1390. fi
  1391. if test ! -r "$srcdir/$ac_unique_file"; then
  1392. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1393. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1394. fi
  1395. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1396. ac_abs_confdir=`(
  1397. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1398. pwd)`
  1399. # When building in place, set srcdir=.
  1400. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1401. srcdir=.
  1402. fi
  1403. # Remove unnecessary trailing slashes from srcdir.
  1404. # Double slashes in file names in object file debugging info
  1405. # mess up M-x gdb in Emacs.
  1406. case $srcdir in
  1407. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1408. esac
  1409. for ac_var in $ac_precious_vars; do
  1410. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1411. eval ac_env_${ac_var}_value=\$${ac_var}
  1412. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1413. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1414. done
  1415. #
  1416. # Report the --help message.
  1417. #
  1418. if test "$ac_init_help" = "long"; then
  1419. # Omit some internal or obsolete options to make the list less imposing.
  1420. # This message is too long to be a string in the A/UX 3.1 sh.
  1421. cat <<_ACEOF
  1422. \`configure' configures this package to adapt to many kinds of systems.
  1423. Usage: $0 [OPTION]... [VAR=VALUE]...
  1424. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1425. VAR=VALUE. See below for descriptions of some of the useful variables.
  1426. Defaults for the options are specified in brackets.
  1427. Configuration:
  1428. -h, --help display this help and exit
  1429. --help=short display options specific to this package
  1430. --help=recursive display the short help of all the included packages
  1431. -V, --version display version information and exit
  1432. -q, --quiet, --silent do not print \`checking ...' messages
  1433. --cache-file=FILE cache test results in FILE [disabled]
  1434. -C, --config-cache alias for \`--cache-file=config.cache'
  1435. -n, --no-create do not create output files
  1436. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1437. Installation directories:
  1438. --prefix=PREFIX install architecture-independent files in PREFIX
  1439. [$ac_default_prefix]
  1440. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1441. [PREFIX]
  1442. By default, \`make install' will install all the files in
  1443. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1444. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1445. for instance \`--prefix=\$HOME'.
  1446. For better control, use the options below.
  1447. Fine tuning of the installation directories:
  1448. --bindir=DIR user executables [EPREFIX/bin]
  1449. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1450. --libexecdir=DIR program executables [EPREFIX/libexec]
  1451. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1452. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1453. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1454. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1455. --libdir=DIR object code libraries [EPREFIX/lib]
  1456. --includedir=DIR C header files [PREFIX/include]
  1457. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1458. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1459. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1460. --infodir=DIR info documentation [DATAROOTDIR/info]
  1461. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1462. --mandir=DIR man documentation [DATAROOTDIR/man]
  1463. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1464. --htmldir=DIR html documentation [DOCDIR]
  1465. --dvidir=DIR dvi documentation [DOCDIR]
  1466. --pdfdir=DIR pdf documentation [DOCDIR]
  1467. --psdir=DIR ps documentation [DOCDIR]
  1468. _ACEOF
  1469. cat <<\_ACEOF
  1470. X features:
  1471. --x-includes=DIR X include files are in DIR
  1472. --x-libraries=DIR X library files are in DIR
  1473. System types:
  1474. --build=BUILD configure for building on BUILD [guessed]
  1475. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1476. _ACEOF
  1477. fi
  1478. if test -n "$ac_init_help"; then
  1479. cat <<\_ACEOF
  1480. Optional Features:
  1481. --disable-option-checking ignore unrecognized --enable/--with options
  1482. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1483. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1484. --enable-shared[=PKGS] build shared libraries [default=yes]
  1485. --enable-static[=PKGS] build static libraries [default=yes]
  1486. --enable-fast-install[=PKGS]
  1487. optimize for fast installation [default=yes]
  1488. --disable-libtool-lock avoid locking (might break parallel builds)
  1489. --disable-largefile omit support for large files
  1490. --enable-assertions Enable internal sanity checks
  1491. (auto/disabled/release/enabled/paranoid)
  1492. [default=auto]
  1493. --enable-dependency-tracking
  1494. Use gcc -MMD -MT dependency tracking [default=yes]
  1495. --enable-libc Use the system C library [default=yes]
  1496. --enable-system-iconv Use iconv() from system-installed libraries
  1497. [default=yes]
  1498. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1499. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1500. --enable-audio Enable the audio subsystem [default=yes]
  1501. --enable-video Enable the video subsystem [default=yes]
  1502. --enable-render Enable the render subsystem [default=yes]
  1503. --enable-events Enable the events subsystem [default=yes]
  1504. --enable-joystick Enable the joystick subsystem [default=yes]
  1505. --enable-haptic Enable the haptic (force feedback) subsystem
  1506. [default=yes]
  1507. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1508. --enable-sensor Enable the sensor subsystem [default=yes]
  1509. --enable-power Enable the power subsystem [default=yes]
  1510. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1511. --enable-timers Enable the timer subsystem [default=yes]
  1512. --enable-file Enable the file subsystem [default=yes]
  1513. --enable-misc Enable the misc subsystem [default=yes]
  1514. --enable-locale Enable the locale subsystem [default=yes]
  1515. --enable-loadso Enable the shared object loading subsystem
  1516. [default=yes]
  1517. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1518. --enable-assembly Enable assembly routines [default=yes]
  1519. --enable-ssemath Allow GCC to use SSE floating point math
  1520. [default=maybe]
  1521. --enable-mmx use MMX assembly routines [default=yes]
  1522. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1523. --enable-sse use SSE assembly routines [default=yes]
  1524. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1525. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1526. --enable-altivec use Altivec assembly routines [default=yes]
  1527. --enable-lsx use LSX assembly routines [default=yes]
  1528. --enable-lasx use LASX assembly routines [default=yes]
  1529. --enable-oss support the OSS audio API [default=maybe]
  1530. --enable-alsa support the ALSA audio API [default=yes]
  1531. --disable-alsatest Do not try to compile and run a test Alsa program
  1532. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1533. --enable-jack use JACK audio [default=yes]
  1534. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1535. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1536. --disable-esdtest Do not try to compile and run a test ESD program
  1537. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1538. --enable-pipewire use Pipewire audio [default=yes]
  1539. --enable-pipewire-shared
  1540. dynamically load Pipewire support [default=yes]
  1541. --enable-pulseaudio use PulseAudio [default=yes]
  1542. --enable-pulseaudio-shared
  1543. dynamically load PulseAudio support [default=yes]
  1544. --enable-arts support the Analog Real Time Synthesizer
  1545. [default=yes]
  1546. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1547. --enable-nas support the NAS audio API [default=yes]
  1548. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1549. --enable-sndio support the sndio audio API [default=yes]
  1550. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1551. --enable-fusionsound use FusionSound audio driver [default=no]
  1552. --enable-fusionsound-shared
  1553. dynamically load fusionsound audio support
  1554. [default=yes]
  1555. --enable-diskaudio support the disk writer audio driver [default=yes]
  1556. --enable-dummyaudio support the dummy audio driver [default=yes]
  1557. --enable-libsamplerate use libsamplerate for audio rate conversion
  1558. [default=yes]
  1559. --enable-libsamplerate-shared
  1560. dynamically load libsamplerate [default=yes]
  1561. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1562. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1563. --enable-video-wayland use Wayland video driver [default=yes]
  1564. --enable-video-wayland-qt-touch
  1565. QtWayland server support for Wayland video driver
  1566. [default=yes]
  1567. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1568. --enable-libdecor use libdecor for Wayland client-side decorations
  1569. [default=yes]
  1570. --enable-libdecor-shared
  1571. dynamically load libdecor [default=yes]
  1572. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1573. --enable-video-x11 use X11 video driver [default=maybe]
  1574. --enable-x11-shared dynamically load X11 support [default=maybe]
  1575. --enable-video-x11-xcursor
  1576. enable X11 Xcursor support [default=yes]
  1577. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1578. --enable-video-x11-xinput
  1579. enable X11 XInput extension for manymouse, tablets,
  1580. etc [default=yes]
  1581. --enable-video-x11-xfixes
  1582. enable X11 Xfixes support [default=yes]
  1583. --enable-video-x11-xrandr
  1584. enable X11 Xrandr extension for fullscreen
  1585. [default=yes]
  1586. --enable-video-x11-scrnsaver
  1587. enable X11 screensaver extension [default=yes]
  1588. --enable-video-x11-xshape
  1589. enable X11 XShape support [default=yes]
  1590. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1591. --enable-video-cocoa use Cocoa video driver [default=yes]
  1592. --enable-video-metal include Metal support [default=yes]
  1593. --enable-render-metal enable the Metal render driver [default=yes]
  1594. --enable-video-directfb use DirectFB video driver [default=no]
  1595. --enable-directfb-shared
  1596. dynamically load directfb support [default=yes]
  1597. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1598. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1599. --enable-video-dummy use dummy video driver [default=yes]
  1600. --enable-video-offscreen
  1601. use offscreen video driver [default=yes]
  1602. --enable-video-opengl include OpenGL support [default=yes]
  1603. --enable-video-opengles include OpenGL ES support [default=yes]
  1604. --enable-video-opengles1
  1605. include OpenGL ES 1.1 support [default=yes]
  1606. --enable-video-opengles2
  1607. include OpenGL ES 2.0 support [default=yes]
  1608. --enable-video-vulkan include Vulkan support [default=yes]
  1609. --enable-libudev enable libudev support [default=yes]
  1610. --enable-dbus enable D-Bus support [default=yes]
  1611. --enable-ime enable IME support [default=yes]
  1612. --enable-ibus enable IBus support [default=yes]
  1613. --enable-fcitx enable fcitx support [default=yes]
  1614. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1615. --enable-pthreads use POSIX threads for multi-threading
  1616. [default=maybe]
  1617. --enable-pthread-sem use pthread semaphores [default=maybe]
  1618. --enable-directx use DirectX for Windows audio/video [default=yes]
  1619. --enable-xinput use Xinput for Windows [default=yes]
  1620. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1621. --enable-hidapi-joystick
  1622. use HIDAPI for low level joystick drivers
  1623. [default=yes]
  1624. --enable-hidapi-libusb use libusb for low level joystick drivers
  1625. [default=maybe]
  1626. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1627. UNIX [default=yes]
  1628. --enable-rpath use an rpath when linking SDL [default=yes]
  1629. --enable-backgrounding-signal
  1630. number to use for magic backgrounding signal or 'no'
  1631. [default=no]
  1632. --enable-foregrounding-signal
  1633. number to use for magic foregrounding signal or 'no'
  1634. [default=no]
  1635. --enable-joystick-virtual
  1636. enable virtual joystick APIs [default=yes]
  1637. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1638. --enable-sdl2-config Install sdl2-config [default=yes]
  1639. Optional Packages:
  1640. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1641. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1642. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1643. both]
  1644. --with-aix-soname=aix|svr4|both
  1645. shared library versioning (aka "SONAME") variant to
  1646. provide on AIX, [default=aix].
  1647. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1648. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1649. compiler's sysroot if not specified).
  1650. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1651. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1652. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1653. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1654. --with-x use the X Window System
  1655. Some influential environment variables:
  1656. CC C compiler command
  1657. CFLAGS C compiler flags
  1658. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1659. nonstandard directory <lib dir>
  1660. LIBS libraries to pass to the linker, e.g. -l<library>
  1661. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1662. you have headers in a nonstandard directory <include dir>
  1663. LT_SYS_LIBRARY_PATH
  1664. User-defined run-time library search path.
  1665. CXX C++ compiler command
  1666. CXXFLAGS C++ compiler flags
  1667. CXXCPP C++ preprocessor
  1668. PKG_CONFIG path to pkg-config utility
  1669. PKG_CONFIG_PATH
  1670. directories to add to pkg-config's search path
  1671. PKG_CONFIG_LIBDIR
  1672. path overriding pkg-config's built-in search path
  1673. CPP C preprocessor
  1674. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1675. JACK_LIBS linker flags for JACK, overriding pkg-config
  1676. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1677. ESD_LIBS linker flags for ESD, overriding pkg-config
  1678. PIPEWIRE_CFLAGS
  1679. C compiler flags for PIPEWIRE, overriding pkg-config
  1680. PIPEWIRE_LIBS
  1681. linker flags for PIPEWIRE, overriding pkg-config
  1682. PULSEAUDIO_CFLAGS
  1683. C compiler flags for PULSEAUDIO, overriding pkg-config
  1684. PULSEAUDIO_LIBS
  1685. linker flags for PULSEAUDIO, overriding pkg-config
  1686. SNDIO_CFLAGS
  1687. C compiler flags for SNDIO, overriding pkg-config
  1688. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1689. FUSIONSOUND_CFLAGS
  1690. C compiler flags for FUSIONSOUND, overriding pkg-config
  1691. FUSIONSOUND_LIBS
  1692. linker flags for FUSIONSOUND, overriding pkg-config
  1693. DECOR_CFLAGS
  1694. C compiler flags for DECOR, overriding pkg-config
  1695. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1696. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1697. RPI_LIBS linker flags for RPI, overriding pkg-config
  1698. XMKMF Path to xmkmf, Makefile generator for X Window System
  1699. DIRECTFB_CFLAGS
  1700. C compiler flags for DIRECTFB, overriding pkg-config
  1701. DIRECTFB_LIBS
  1702. linker flags for DIRECTFB, overriding pkg-config
  1703. LIBDRM_CFLAGS
  1704. C compiler flags for LIBDRM, overriding pkg-config
  1705. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1706. LIBGBM_CFLAGS
  1707. C compiler flags for LIBGBM, overriding pkg-config
  1708. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1709. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1710. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1711. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1712. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1713. LIBUSB_CFLAGS
  1714. C compiler flags for LIBUSB, overriding pkg-config
  1715. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1716. Use these variables to override the choices made by `configure' or to help
  1717. it to find libraries and programs with nonstandard names/locations.
  1718. Report bugs to the package provider.
  1719. _ACEOF
  1720. ac_status=$?
  1721. fi
  1722. if test "$ac_init_help" = "recursive"; then
  1723. # If there are subdirs, report their specific --help.
  1724. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1725. test -d "$ac_dir" ||
  1726. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1727. continue
  1728. ac_builddir=.
  1729. case "$ac_dir" in
  1730. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1731. *)
  1732. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1733. # A ".." for each directory in $ac_dir_suffix.
  1734. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1735. case $ac_top_builddir_sub in
  1736. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1737. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1738. esac ;;
  1739. esac
  1740. ac_abs_top_builddir=$ac_pwd
  1741. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1742. # for backward compatibility:
  1743. ac_top_builddir=$ac_top_build_prefix
  1744. case $srcdir in
  1745. .) # We are building in place.
  1746. ac_srcdir=.
  1747. ac_top_srcdir=$ac_top_builddir_sub
  1748. ac_abs_top_srcdir=$ac_pwd ;;
  1749. [\\/]* | ?:[\\/]* ) # Absolute name.
  1750. ac_srcdir=$srcdir$ac_dir_suffix;
  1751. ac_top_srcdir=$srcdir
  1752. ac_abs_top_srcdir=$srcdir ;;
  1753. *) # Relative name.
  1754. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1755. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1756. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1757. esac
  1758. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1759. cd "$ac_dir" || { ac_status=$?; continue; }
  1760. # Check for configure.gnu first; this name is used for a wrapper for
  1761. # Metaconfig's "Configure" on case-insensitive file systems.
  1762. if test -f "$ac_srcdir/configure.gnu"; then
  1763. echo &&
  1764. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1765. elif test -f "$ac_srcdir/configure"; then
  1766. echo &&
  1767. $SHELL "$ac_srcdir/configure" --help=recursive
  1768. else
  1769. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1770. fi || ac_status=$?
  1771. cd "$ac_pwd" || { ac_status=$?; break; }
  1772. done
  1773. fi
  1774. test -n "$ac_init_help" && exit $ac_status
  1775. if $ac_init_version; then
  1776. cat <<\_ACEOF
  1777. configure
  1778. generated by GNU Autoconf 2.71
  1779. Copyright (C) 2021 Free Software Foundation, Inc.
  1780. This configure script is free software; the Free Software Foundation
  1781. gives unlimited permission to copy, distribute and modify it.
  1782. _ACEOF
  1783. exit
  1784. fi
  1785. ## ------------------------ ##
  1786. ## Autoconf initialization. ##
  1787. ## ------------------------ ##
  1788. # ac_fn_c_try_compile LINENO
  1789. # --------------------------
  1790. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1791. ac_fn_c_try_compile ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. rm -f conftest.$ac_objext conftest.beam
  1795. if { { ac_try="$ac_compile"
  1796. case "(($ac_try" in
  1797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1798. *) ac_try_echo=$ac_try;;
  1799. esac
  1800. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1801. printf "%s\n" "$ac_try_echo"; } >&5
  1802. (eval "$ac_compile") 2>conftest.err
  1803. ac_status=$?
  1804. if test -s conftest.err; then
  1805. grep -v '^ *+' conftest.err >conftest.er1
  1806. cat conftest.er1 >&5
  1807. mv -f conftest.er1 conftest.err
  1808. fi
  1809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1810. test $ac_status = 0; } && {
  1811. test -z "$ac_c_werror_flag" ||
  1812. test ! -s conftest.err
  1813. } && test -s conftest.$ac_objext
  1814. then :
  1815. ac_retval=0
  1816. else $as_nop
  1817. printf "%s\n" "$as_me: failed program was:" >&5
  1818. sed 's/^/| /' conftest.$ac_ext >&5
  1819. ac_retval=1
  1820. fi
  1821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1822. as_fn_set_status $ac_retval
  1823. } # ac_fn_c_try_compile
  1824. # ac_fn_c_try_link LINENO
  1825. # -----------------------
  1826. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1827. ac_fn_c_try_link ()
  1828. {
  1829. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1830. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1831. if { { ac_try="$ac_link"
  1832. case "(($ac_try" in
  1833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1834. *) ac_try_echo=$ac_try;;
  1835. esac
  1836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1837. printf "%s\n" "$ac_try_echo"; } >&5
  1838. (eval "$ac_link") 2>conftest.err
  1839. ac_status=$?
  1840. if test -s conftest.err; then
  1841. grep -v '^ *+' conftest.err >conftest.er1
  1842. cat conftest.er1 >&5
  1843. mv -f conftest.er1 conftest.err
  1844. fi
  1845. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1846. test $ac_status = 0; } && {
  1847. test -z "$ac_c_werror_flag" ||
  1848. test ! -s conftest.err
  1849. } && test -s conftest$ac_exeext && {
  1850. test "$cross_compiling" = yes ||
  1851. test -x conftest$ac_exeext
  1852. }
  1853. then :
  1854. ac_retval=0
  1855. else $as_nop
  1856. printf "%s\n" "$as_me: failed program was:" >&5
  1857. sed 's/^/| /' conftest.$ac_ext >&5
  1858. ac_retval=1
  1859. fi
  1860. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1861. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1862. # interfere with the next link command; also delete a directory that is
  1863. # left behind by Apple's compiler. We do this before executing the actions.
  1864. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_c_try_link
  1868. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1869. # -------------------------------------------------------
  1870. # Tests whether HEADER exists and can be compiled using the include files in
  1871. # INCLUDES, setting the cache variable VAR accordingly.
  1872. ac_fn_c_check_header_compile ()
  1873. {
  1874. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1876. printf %s "checking for $2... " >&6; }
  1877. if eval test \${$3+y}
  1878. then :
  1879. printf %s "(cached) " >&6
  1880. else $as_nop
  1881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1882. /* end confdefs.h. */
  1883. $4
  1884. #include <$2>
  1885. _ACEOF
  1886. if ac_fn_c_try_compile "$LINENO"
  1887. then :
  1888. eval "$3=yes"
  1889. else $as_nop
  1890. eval "$3=no"
  1891. fi
  1892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1893. fi
  1894. eval ac_res=\$$3
  1895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1896. printf "%s\n" "$ac_res" >&6; }
  1897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1898. } # ac_fn_c_check_header_compile
  1899. # ac_fn_c_check_func LINENO FUNC VAR
  1900. # ----------------------------------
  1901. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1902. ac_fn_c_check_func ()
  1903. {
  1904. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1906. printf %s "checking for $2... " >&6; }
  1907. if eval test \${$3+y}
  1908. then :
  1909. printf %s "(cached) " >&6
  1910. else $as_nop
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1914. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1915. #define $2 innocuous_$2
  1916. /* System header to define __stub macros and hopefully few prototypes,
  1917. which can conflict with char $2 (); below. */
  1918. #include <limits.h>
  1919. #undef $2
  1920. /* Override any GCC internal prototype to avoid an error.
  1921. Use char because int might match the return type of a GCC
  1922. builtin and then its argument prototype would still apply. */
  1923. #ifdef __cplusplus
  1924. extern "C"
  1925. #endif
  1926. char $2 ();
  1927. /* The GNU C library defines this for functions which it implements
  1928. to always fail with ENOSYS. Some functions are actually named
  1929. something starting with __ and the normal name is an alias. */
  1930. #if defined __stub_$2 || defined __stub___$2
  1931. choke me
  1932. #endif
  1933. int
  1934. main (void)
  1935. {
  1936. return $2 ();
  1937. ;
  1938. return 0;
  1939. }
  1940. _ACEOF
  1941. if ac_fn_c_try_link "$LINENO"
  1942. then :
  1943. eval "$3=yes"
  1944. else $as_nop
  1945. eval "$3=no"
  1946. fi
  1947. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1948. conftest$ac_exeext conftest.$ac_ext
  1949. fi
  1950. eval ac_res=\$$3
  1951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1952. printf "%s\n" "$ac_res" >&6; }
  1953. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1954. } # ac_fn_c_check_func
  1955. # ac_fn_cxx_try_compile LINENO
  1956. # ----------------------------
  1957. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1958. ac_fn_cxx_try_compile ()
  1959. {
  1960. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1961. rm -f conftest.$ac_objext conftest.beam
  1962. if { { ac_try="$ac_compile"
  1963. case "(($ac_try" in
  1964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1965. *) ac_try_echo=$ac_try;;
  1966. esac
  1967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1968. printf "%s\n" "$ac_try_echo"; } >&5
  1969. (eval "$ac_compile") 2>conftest.err
  1970. ac_status=$?
  1971. if test -s conftest.err; then
  1972. grep -v '^ *+' conftest.err >conftest.er1
  1973. cat conftest.er1 >&5
  1974. mv -f conftest.er1 conftest.err
  1975. fi
  1976. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1977. test $ac_status = 0; } && {
  1978. test -z "$ac_cxx_werror_flag" ||
  1979. test ! -s conftest.err
  1980. } && test -s conftest.$ac_objext
  1981. then :
  1982. ac_retval=0
  1983. else $as_nop
  1984. printf "%s\n" "$as_me: failed program was:" >&5
  1985. sed 's/^/| /' conftest.$ac_ext >&5
  1986. ac_retval=1
  1987. fi
  1988. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1989. as_fn_set_status $ac_retval
  1990. } # ac_fn_cxx_try_compile
  1991. # ac_fn_cxx_try_cpp LINENO
  1992. # ------------------------
  1993. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1994. ac_fn_cxx_try_cpp ()
  1995. {
  1996. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1997. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1998. case "(($ac_try" in
  1999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2000. *) ac_try_echo=$ac_try;;
  2001. esac
  2002. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2003. printf "%s\n" "$ac_try_echo"; } >&5
  2004. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2005. ac_status=$?
  2006. if test -s conftest.err; then
  2007. grep -v '^ *+' conftest.err >conftest.er1
  2008. cat conftest.er1 >&5
  2009. mv -f conftest.er1 conftest.err
  2010. fi
  2011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2012. test $ac_status = 0; } > conftest.i && {
  2013. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2014. test ! -s conftest.err
  2015. }
  2016. then :
  2017. ac_retval=0
  2018. else $as_nop
  2019. printf "%s\n" "$as_me: failed program was:" >&5
  2020. sed 's/^/| /' conftest.$ac_ext >&5
  2021. ac_retval=1
  2022. fi
  2023. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2024. as_fn_set_status $ac_retval
  2025. } # ac_fn_cxx_try_cpp
  2026. # ac_fn_cxx_try_link LINENO
  2027. # -------------------------
  2028. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2029. ac_fn_cxx_try_link ()
  2030. {
  2031. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2032. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2033. if { { ac_try="$ac_link"
  2034. case "(($ac_try" in
  2035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2036. *) ac_try_echo=$ac_try;;
  2037. esac
  2038. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2039. printf "%s\n" "$ac_try_echo"; } >&5
  2040. (eval "$ac_link") 2>conftest.err
  2041. ac_status=$?
  2042. if test -s conftest.err; then
  2043. grep -v '^ *+' conftest.err >conftest.er1
  2044. cat conftest.er1 >&5
  2045. mv -f conftest.er1 conftest.err
  2046. fi
  2047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2048. test $ac_status = 0; } && {
  2049. test -z "$ac_cxx_werror_flag" ||
  2050. test ! -s conftest.err
  2051. } && test -s conftest$ac_exeext && {
  2052. test "$cross_compiling" = yes ||
  2053. test -x conftest$ac_exeext
  2054. }
  2055. then :
  2056. ac_retval=0
  2057. else $as_nop
  2058. printf "%s\n" "$as_me: failed program was:" >&5
  2059. sed 's/^/| /' conftest.$ac_ext >&5
  2060. ac_retval=1
  2061. fi
  2062. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2063. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2064. # interfere with the next link command; also delete a directory that is
  2065. # left behind by Apple's compiler. We do this before executing the actions.
  2066. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2067. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2068. as_fn_set_status $ac_retval
  2069. } # ac_fn_cxx_try_link
  2070. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2071. # -------------------------------------------
  2072. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2073. # variable VAR accordingly.
  2074. ac_fn_c_check_type ()
  2075. {
  2076. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2078. printf %s "checking for $2... " >&6; }
  2079. if eval test \${$3+y}
  2080. then :
  2081. printf %s "(cached) " >&6
  2082. else $as_nop
  2083. eval "$3=no"
  2084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2085. /* end confdefs.h. */
  2086. $4
  2087. int
  2088. main (void)
  2089. {
  2090. if (sizeof ($2))
  2091. return 0;
  2092. ;
  2093. return 0;
  2094. }
  2095. _ACEOF
  2096. if ac_fn_c_try_compile "$LINENO"
  2097. then :
  2098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2099. /* end confdefs.h. */
  2100. $4
  2101. int
  2102. main (void)
  2103. {
  2104. if (sizeof (($2)))
  2105. return 0;
  2106. ;
  2107. return 0;
  2108. }
  2109. _ACEOF
  2110. if ac_fn_c_try_compile "$LINENO"
  2111. then :
  2112. else $as_nop
  2113. eval "$3=yes"
  2114. fi
  2115. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2116. fi
  2117. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2118. fi
  2119. eval ac_res=\$$3
  2120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2121. printf "%s\n" "$ac_res" >&6; }
  2122. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2123. } # ac_fn_c_check_type
  2124. # ac_fn_c_try_cpp LINENO
  2125. # ----------------------
  2126. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2127. ac_fn_c_try_cpp ()
  2128. {
  2129. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2130. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2131. case "(($ac_try" in
  2132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2133. *) ac_try_echo=$ac_try;;
  2134. esac
  2135. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2136. printf "%s\n" "$ac_try_echo"; } >&5
  2137. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2138. ac_status=$?
  2139. if test -s conftest.err; then
  2140. grep -v '^ *+' conftest.err >conftest.er1
  2141. cat conftest.er1 >&5
  2142. mv -f conftest.er1 conftest.err
  2143. fi
  2144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2145. test $ac_status = 0; } > conftest.i && {
  2146. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2147. test ! -s conftest.err
  2148. }
  2149. then :
  2150. ac_retval=0
  2151. else $as_nop
  2152. printf "%s\n" "$as_me: failed program was:" >&5
  2153. sed 's/^/| /' conftest.$ac_ext >&5
  2154. ac_retval=1
  2155. fi
  2156. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2157. as_fn_set_status $ac_retval
  2158. } # ac_fn_c_try_cpp
  2159. # ac_fn_c_try_run LINENO
  2160. # ----------------------
  2161. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2162. # executables *can* be run.
  2163. ac_fn_c_try_run ()
  2164. {
  2165. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2166. if { { ac_try="$ac_link"
  2167. case "(($ac_try" in
  2168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2169. *) ac_try_echo=$ac_try;;
  2170. esac
  2171. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2172. printf "%s\n" "$ac_try_echo"; } >&5
  2173. (eval "$ac_link") 2>&5
  2174. ac_status=$?
  2175. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2176. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2177. { { case "(($ac_try" in
  2178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2179. *) ac_try_echo=$ac_try;;
  2180. esac
  2181. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2182. printf "%s\n" "$ac_try_echo"; } >&5
  2183. (eval "$ac_try") 2>&5
  2184. ac_status=$?
  2185. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2186. test $ac_status = 0; }; }
  2187. then :
  2188. ac_retval=0
  2189. else $as_nop
  2190. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2191. printf "%s\n" "$as_me: failed program was:" >&5
  2192. sed 's/^/| /' conftest.$ac_ext >&5
  2193. ac_retval=$ac_status
  2194. fi
  2195. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2196. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2197. as_fn_set_status $ac_retval
  2198. } # ac_fn_c_try_run
  2199. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2200. # ----------------------------------------------------
  2201. # Tries to find if the field MEMBER exists in type AGGR, after including
  2202. # INCLUDES, setting cache variable VAR accordingly.
  2203. ac_fn_c_check_member ()
  2204. {
  2205. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2207. printf %s "checking for $2.$3... " >&6; }
  2208. if eval test \${$4+y}
  2209. then :
  2210. printf %s "(cached) " >&6
  2211. else $as_nop
  2212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2213. /* end confdefs.h. */
  2214. $5
  2215. int
  2216. main (void)
  2217. {
  2218. static $2 ac_aggr;
  2219. if (ac_aggr.$3)
  2220. return 0;
  2221. ;
  2222. return 0;
  2223. }
  2224. _ACEOF
  2225. if ac_fn_c_try_compile "$LINENO"
  2226. then :
  2227. eval "$4=yes"
  2228. else $as_nop
  2229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2230. /* end confdefs.h. */
  2231. $5
  2232. int
  2233. main (void)
  2234. {
  2235. static $2 ac_aggr;
  2236. if (sizeof ac_aggr.$3)
  2237. return 0;
  2238. ;
  2239. return 0;
  2240. }
  2241. _ACEOF
  2242. if ac_fn_c_try_compile "$LINENO"
  2243. then :
  2244. eval "$4=yes"
  2245. else $as_nop
  2246. eval "$4=no"
  2247. fi
  2248. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2249. fi
  2250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2251. fi
  2252. eval ac_res=\$$4
  2253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2254. printf "%s\n" "$ac_res" >&6; }
  2255. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2256. } # ac_fn_c_check_member
  2257. ac_configure_args_raw=
  2258. for ac_arg
  2259. do
  2260. case $ac_arg in
  2261. *\'*)
  2262. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2263. esac
  2264. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2265. done
  2266. case $ac_configure_args_raw in
  2267. *$as_nl*)
  2268. ac_safe_unquote= ;;
  2269. *)
  2270. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2271. ac_unsafe_a="$ac_unsafe_z#~"
  2272. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2273. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2274. esac
  2275. cat >config.log <<_ACEOF
  2276. This file contains any messages produced by compilers while
  2277. running configure, to aid debugging if configure makes a mistake.
  2278. It was created by $as_me, which was
  2279. generated by GNU Autoconf 2.71. Invocation command line was
  2280. $ $0$ac_configure_args_raw
  2281. _ACEOF
  2282. exec 5>>config.log
  2283. {
  2284. cat <<_ASUNAME
  2285. ## --------- ##
  2286. ## Platform. ##
  2287. ## --------- ##
  2288. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2289. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2290. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2291. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2292. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2293. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2294. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2295. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2296. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2297. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2298. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2299. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2300. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2301. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2302. _ASUNAME
  2303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2304. for as_dir in $PATH
  2305. do
  2306. IFS=$as_save_IFS
  2307. case $as_dir in #(((
  2308. '') as_dir=./ ;;
  2309. */) ;;
  2310. *) as_dir=$as_dir/ ;;
  2311. esac
  2312. printf "%s\n" "PATH: $as_dir"
  2313. done
  2314. IFS=$as_save_IFS
  2315. } >&5
  2316. cat >&5 <<_ACEOF
  2317. ## ----------- ##
  2318. ## Core tests. ##
  2319. ## ----------- ##
  2320. _ACEOF
  2321. # Keep a trace of the command line.
  2322. # Strip out --no-create and --no-recursion so they do not pile up.
  2323. # Strip out --silent because we don't want to record it for future runs.
  2324. # Also quote any args containing shell meta-characters.
  2325. # Make two passes to allow for proper duplicate-argument suppression.
  2326. ac_configure_args=
  2327. ac_configure_args0=
  2328. ac_configure_args1=
  2329. ac_must_keep_next=false
  2330. for ac_pass in 1 2
  2331. do
  2332. for ac_arg
  2333. do
  2334. case $ac_arg in
  2335. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2336. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2337. | -silent | --silent | --silen | --sile | --sil)
  2338. continue ;;
  2339. *\'*)
  2340. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2341. esac
  2342. case $ac_pass in
  2343. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2344. 2)
  2345. as_fn_append ac_configure_args1 " '$ac_arg'"
  2346. if test $ac_must_keep_next = true; then
  2347. ac_must_keep_next=false # Got value, back to normal.
  2348. else
  2349. case $ac_arg in
  2350. *=* | --config-cache | -C | -disable-* | --disable-* \
  2351. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2352. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2353. | -with-* | --with-* | -without-* | --without-* | --x)
  2354. case "$ac_configure_args0 " in
  2355. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2356. esac
  2357. ;;
  2358. -* ) ac_must_keep_next=true ;;
  2359. esac
  2360. fi
  2361. as_fn_append ac_configure_args " '$ac_arg'"
  2362. ;;
  2363. esac
  2364. done
  2365. done
  2366. { ac_configure_args0=; unset ac_configure_args0;}
  2367. { ac_configure_args1=; unset ac_configure_args1;}
  2368. # When interrupted or exit'd, cleanup temporary files, and complete
  2369. # config.log. We remove comments because anyway the quotes in there
  2370. # would cause problems or look ugly.
  2371. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2372. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2373. trap 'exit_status=$?
  2374. # Sanitize IFS.
  2375. IFS=" "" $as_nl"
  2376. # Save into config.log some information that might help in debugging.
  2377. {
  2378. echo
  2379. printf "%s\n" "## ---------------- ##
  2380. ## Cache variables. ##
  2381. ## ---------------- ##"
  2382. echo
  2383. # The following way of writing the cache mishandles newlines in values,
  2384. (
  2385. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2386. eval ac_val=\$$ac_var
  2387. case $ac_val in #(
  2388. *${as_nl}*)
  2389. case $ac_var in #(
  2390. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2391. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2392. esac
  2393. case $ac_var in #(
  2394. _ | IFS | as_nl) ;; #(
  2395. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2396. *) { eval $ac_var=; unset $ac_var;} ;;
  2397. esac ;;
  2398. esac
  2399. done
  2400. (set) 2>&1 |
  2401. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2402. *${as_nl}ac_space=\ *)
  2403. sed -n \
  2404. "s/'\''/'\''\\\\'\'''\''/g;
  2405. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2406. ;; #(
  2407. *)
  2408. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2409. ;;
  2410. esac |
  2411. sort
  2412. )
  2413. echo
  2414. printf "%s\n" "## ----------------- ##
  2415. ## Output variables. ##
  2416. ## ----------------- ##"
  2417. echo
  2418. for ac_var in $ac_subst_vars
  2419. do
  2420. eval ac_val=\$$ac_var
  2421. case $ac_val in
  2422. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2423. esac
  2424. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2425. done | sort
  2426. echo
  2427. if test -n "$ac_subst_files"; then
  2428. printf "%s\n" "## ------------------- ##
  2429. ## File substitutions. ##
  2430. ## ------------------- ##"
  2431. echo
  2432. for ac_var in $ac_subst_files
  2433. do
  2434. eval ac_val=\$$ac_var
  2435. case $ac_val in
  2436. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2437. esac
  2438. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2439. done | sort
  2440. echo
  2441. fi
  2442. if test -s confdefs.h; then
  2443. printf "%s\n" "## ----------- ##
  2444. ## confdefs.h. ##
  2445. ## ----------- ##"
  2446. echo
  2447. cat confdefs.h
  2448. echo
  2449. fi
  2450. test "$ac_signal" != 0 &&
  2451. printf "%s\n" "$as_me: caught signal $ac_signal"
  2452. printf "%s\n" "$as_me: exit $exit_status"
  2453. } >&5
  2454. rm -f core *.core core.conftest.* &&
  2455. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2456. exit $exit_status
  2457. ' 0
  2458. for ac_signal in 1 2 13 15; do
  2459. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2460. done
  2461. ac_signal=0
  2462. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2463. rm -f -r conftest* confdefs.h
  2464. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2465. # Predefined preprocessor variables.
  2466. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2467. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2468. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2469. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2470. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2471. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2472. # Let the site file select an alternate cache file if it wants to.
  2473. # Prefer an explicitly selected file to automatically selected ones.
  2474. if test -n "$CONFIG_SITE"; then
  2475. ac_site_files="$CONFIG_SITE"
  2476. elif test "x$prefix" != xNONE; then
  2477. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2478. else
  2479. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2480. fi
  2481. for ac_site_file in $ac_site_files
  2482. do
  2483. case $ac_site_file in #(
  2484. */*) :
  2485. ;; #(
  2486. *) :
  2487. ac_site_file=./$ac_site_file ;;
  2488. esac
  2489. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2491. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2492. sed 's/^/| /' "$ac_site_file" >&5
  2493. . "$ac_site_file" \
  2494. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2495. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2496. as_fn_error $? "failed to load site script $ac_site_file
  2497. See \`config.log' for more details" "$LINENO" 5; }
  2498. fi
  2499. done
  2500. if test -r "$cache_file"; then
  2501. # Some versions of bash will fail to source /dev/null (special files
  2502. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2503. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2505. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2506. case $cache_file in
  2507. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2508. *) . "./$cache_file";;
  2509. esac
  2510. fi
  2511. else
  2512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2513. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2514. >$cache_file
  2515. fi
  2516. # Test code for whether the C compiler supports C89 (global declarations)
  2517. ac_c_conftest_c89_globals='
  2518. /* Does the compiler advertise C89 conformance?
  2519. Do not test the value of __STDC__, because some compilers set it to 0
  2520. while being otherwise adequately conformant. */
  2521. #if !defined __STDC__
  2522. # error "Compiler does not advertise C89 conformance"
  2523. #endif
  2524. #include <stddef.h>
  2525. #include <stdarg.h>
  2526. struct stat;
  2527. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2528. struct buf { int x; };
  2529. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2530. static char *e (p, i)
  2531. char **p;
  2532. int i;
  2533. {
  2534. return p[i];
  2535. }
  2536. static char *f (char * (*g) (char **, int), char **p, ...)
  2537. {
  2538. char *s;
  2539. va_list v;
  2540. va_start (v,p);
  2541. s = g (p, va_arg (v,int));
  2542. va_end (v);
  2543. return s;
  2544. }
  2545. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2546. function prototypes and stuff, but not \xHH hex character constants.
  2547. These do not provoke an error unfortunately, instead are silently treated
  2548. as an "x". The following induces an error, until -std is added to get
  2549. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2550. array size at least. It is necessary to write \x00 == 0 to get something
  2551. that is true only with -std. */
  2552. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2553. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2554. inside strings and character constants. */
  2555. #define FOO(x) '\''x'\''
  2556. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2557. int test (int i, double x);
  2558. struct s1 {int (*f) (int a);};
  2559. struct s2 {int (*f) (double a);};
  2560. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2561. int, int);'
  2562. # Test code for whether the C compiler supports C89 (body of main).
  2563. ac_c_conftest_c89_main='
  2564. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2565. '
  2566. # Test code for whether the C compiler supports C99 (global declarations)
  2567. ac_c_conftest_c99_globals='
  2568. // Does the compiler advertise C99 conformance?
  2569. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2570. # error "Compiler does not advertise C99 conformance"
  2571. #endif
  2572. #include <stdbool.h>
  2573. extern int puts (const char *);
  2574. extern int printf (const char *, ...);
  2575. extern int dprintf (int, const char *, ...);
  2576. extern void *malloc (size_t);
  2577. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2578. // dprintf is used instead of fprintf to avoid needing to declare
  2579. // FILE and stderr.
  2580. #define debug(...) dprintf (2, __VA_ARGS__)
  2581. #define showlist(...) puts (#__VA_ARGS__)
  2582. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2583. static void
  2584. test_varargs_macros (void)
  2585. {
  2586. int x = 1234;
  2587. int y = 5678;
  2588. debug ("Flag");
  2589. debug ("X = %d\n", x);
  2590. showlist (The first, second, and third items.);
  2591. report (x>y, "x is %d but y is %d", x, y);
  2592. }
  2593. // Check long long types.
  2594. #define BIG64 18446744073709551615ull
  2595. #define BIG32 4294967295ul
  2596. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2597. #if !BIG_OK
  2598. #error "your preprocessor is broken"
  2599. #endif
  2600. #if BIG_OK
  2601. #else
  2602. #error "your preprocessor is broken"
  2603. #endif
  2604. static long long int bignum = -9223372036854775807LL;
  2605. static unsigned long long int ubignum = BIG64;
  2606. struct incomplete_array
  2607. {
  2608. int datasize;
  2609. double data[];
  2610. };
  2611. struct named_init {
  2612. int number;
  2613. const wchar_t *name;
  2614. double average;
  2615. };
  2616. typedef const char *ccp;
  2617. static inline int
  2618. test_restrict (ccp restrict text)
  2619. {
  2620. // See if C++-style comments work.
  2621. // Iterate through items via the restricted pointer.
  2622. // Also check for declarations in for loops.
  2623. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2624. continue;
  2625. return 0;
  2626. }
  2627. // Check varargs and va_copy.
  2628. static bool
  2629. test_varargs (const char *format, ...)
  2630. {
  2631. va_list args;
  2632. va_start (args, format);
  2633. va_list args_copy;
  2634. va_copy (args_copy, args);
  2635. const char *str = "";
  2636. int number = 0;
  2637. float fnumber = 0;
  2638. while (*format)
  2639. {
  2640. switch (*format++)
  2641. {
  2642. case '\''s'\'': // string
  2643. str = va_arg (args_copy, const char *);
  2644. break;
  2645. case '\''d'\'': // int
  2646. number = va_arg (args_copy, int);
  2647. break;
  2648. case '\''f'\'': // float
  2649. fnumber = va_arg (args_copy, double);
  2650. break;
  2651. default:
  2652. break;
  2653. }
  2654. }
  2655. va_end (args_copy);
  2656. va_end (args);
  2657. return *str && number && fnumber;
  2658. }
  2659. '
  2660. # Test code for whether the C compiler supports C99 (body of main).
  2661. ac_c_conftest_c99_main='
  2662. // Check bool.
  2663. _Bool success = false;
  2664. success |= (argc != 0);
  2665. // Check restrict.
  2666. if (test_restrict ("String literal") == 0)
  2667. success = true;
  2668. char *restrict newvar = "Another string";
  2669. // Check varargs.
  2670. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2671. test_varargs_macros ();
  2672. // Check flexible array members.
  2673. struct incomplete_array *ia =
  2674. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2675. ia->datasize = 10;
  2676. for (int i = 0; i < ia->datasize; ++i)
  2677. ia->data[i] = i * 1.234;
  2678. // Check named initializers.
  2679. struct named_init ni = {
  2680. .number = 34,
  2681. .name = L"Test wide string",
  2682. .average = 543.34343,
  2683. };
  2684. ni.number = 58;
  2685. int dynamic_array[ni.number];
  2686. dynamic_array[0] = argv[0][0];
  2687. dynamic_array[ni.number - 1] = 543;
  2688. // work around unused variable warnings
  2689. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2690. || dynamic_array[ni.number - 1] != 543);
  2691. '
  2692. # Test code for whether the C compiler supports C11 (global declarations)
  2693. ac_c_conftest_c11_globals='
  2694. // Does the compiler advertise C11 conformance?
  2695. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2696. # error "Compiler does not advertise C11 conformance"
  2697. #endif
  2698. // Check _Alignas.
  2699. char _Alignas (double) aligned_as_double;
  2700. char _Alignas (0) no_special_alignment;
  2701. extern char aligned_as_int;
  2702. char _Alignas (0) _Alignas (int) aligned_as_int;
  2703. // Check _Alignof.
  2704. enum
  2705. {
  2706. int_alignment = _Alignof (int),
  2707. int_array_alignment = _Alignof (int[100]),
  2708. char_alignment = _Alignof (char)
  2709. };
  2710. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2711. // Check _Noreturn.
  2712. int _Noreturn does_not_return (void) { for (;;) continue; }
  2713. // Check _Static_assert.
  2714. struct test_static_assert
  2715. {
  2716. int x;
  2717. _Static_assert (sizeof (int) <= sizeof (long int),
  2718. "_Static_assert does not work in struct");
  2719. long int y;
  2720. };
  2721. // Check UTF-8 literals.
  2722. #define u8 syntax error!
  2723. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2724. // Check duplicate typedefs.
  2725. typedef long *long_ptr;
  2726. typedef long int *long_ptr;
  2727. typedef long_ptr long_ptr;
  2728. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2729. struct anonymous
  2730. {
  2731. union {
  2732. struct { int i; int j; };
  2733. struct { int k; long int l; } w;
  2734. };
  2735. int m;
  2736. } v1;
  2737. '
  2738. # Test code for whether the C compiler supports C11 (body of main).
  2739. ac_c_conftest_c11_main='
  2740. _Static_assert ((offsetof (struct anonymous, i)
  2741. == offsetof (struct anonymous, w.k)),
  2742. "Anonymous union alignment botch");
  2743. v1.i = 2;
  2744. v1.w.k = 5;
  2745. ok |= v1.i != 5;
  2746. '
  2747. # Test code for whether the C compiler supports C11 (complete).
  2748. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2749. ${ac_c_conftest_c99_globals}
  2750. ${ac_c_conftest_c11_globals}
  2751. int
  2752. main (int argc, char **argv)
  2753. {
  2754. int ok = 0;
  2755. ${ac_c_conftest_c89_main}
  2756. ${ac_c_conftest_c99_main}
  2757. ${ac_c_conftest_c11_main}
  2758. return ok;
  2759. }
  2760. "
  2761. # Test code for whether the C compiler supports C99 (complete).
  2762. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2763. ${ac_c_conftest_c99_globals}
  2764. int
  2765. main (int argc, char **argv)
  2766. {
  2767. int ok = 0;
  2768. ${ac_c_conftest_c89_main}
  2769. ${ac_c_conftest_c99_main}
  2770. return ok;
  2771. }
  2772. "
  2773. # Test code for whether the C compiler supports C89 (complete).
  2774. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2775. int
  2776. main (int argc, char **argv)
  2777. {
  2778. int ok = 0;
  2779. ${ac_c_conftest_c89_main}
  2780. return ok;
  2781. }
  2782. "
  2783. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2784. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2785. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2786. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2787. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2788. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2789. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2790. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2791. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2792. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2793. ac_cxx_conftest_cxx98_globals='
  2794. // Does the compiler advertise C++98 conformance?
  2795. #if !defined __cplusplus || __cplusplus < 199711L
  2796. # error "Compiler does not advertise C++98 conformance"
  2797. #endif
  2798. // These inclusions are to reject old compilers that
  2799. // lack the unsuffixed header files.
  2800. #include <cstdlib>
  2801. #include <exception>
  2802. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2803. extern void assert (int);
  2804. namespace std {
  2805. extern int strcmp (const char *, const char *);
  2806. }
  2807. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2808. using std::exception;
  2809. using std::strcmp;
  2810. namespace {
  2811. void test_exception_syntax()
  2812. {
  2813. try {
  2814. throw "test";
  2815. } catch (const char *s) {
  2816. // Extra parentheses suppress a warning when building autoconf itself,
  2817. // due to lint rules shared with more typical C programs.
  2818. assert (!(strcmp) (s, "test"));
  2819. }
  2820. }
  2821. template <typename T> struct test_template
  2822. {
  2823. T const val;
  2824. explicit test_template(T t) : val(t) {}
  2825. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2826. };
  2827. } // anonymous namespace
  2828. '
  2829. # Test code for whether the C++ compiler supports C++98 (body of main)
  2830. ac_cxx_conftest_cxx98_main='
  2831. assert (argc);
  2832. assert (! argv[0]);
  2833. {
  2834. test_exception_syntax ();
  2835. test_template<double> tt (2.0);
  2836. assert (tt.add (4) == 6.0);
  2837. assert (true && !false);
  2838. }
  2839. '
  2840. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2841. ac_cxx_conftest_cxx11_globals='
  2842. // Does the compiler advertise C++ 2011 conformance?
  2843. #if !defined __cplusplus || __cplusplus < 201103L
  2844. # error "Compiler does not advertise C++11 conformance"
  2845. #endif
  2846. namespace cxx11test
  2847. {
  2848. constexpr int get_val() { return 20; }
  2849. struct testinit
  2850. {
  2851. int i;
  2852. double d;
  2853. };
  2854. class delegate
  2855. {
  2856. public:
  2857. delegate(int n) : n(n) {}
  2858. delegate(): delegate(2354) {}
  2859. virtual int getval() { return this->n; };
  2860. protected:
  2861. int n;
  2862. };
  2863. class overridden : public delegate
  2864. {
  2865. public:
  2866. overridden(int n): delegate(n) {}
  2867. virtual int getval() override final { return this->n * 2; }
  2868. };
  2869. class nocopy
  2870. {
  2871. public:
  2872. nocopy(int i): i(i) {}
  2873. nocopy() = default;
  2874. nocopy(const nocopy&) = delete;
  2875. nocopy & operator=(const nocopy&) = delete;
  2876. private:
  2877. int i;
  2878. };
  2879. // for testing lambda expressions
  2880. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2881. {
  2882. return f(v);
  2883. }
  2884. // for testing variadic templates and trailing return types
  2885. template <typename V> auto sum(V first) -> V
  2886. {
  2887. return first;
  2888. }
  2889. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2890. {
  2891. return first + sum(rest...);
  2892. }
  2893. }
  2894. '
  2895. # Test code for whether the C++ compiler supports C++11 (body of main)
  2896. ac_cxx_conftest_cxx11_main='
  2897. {
  2898. // Test auto and decltype
  2899. auto a1 = 6538;
  2900. auto a2 = 48573953.4;
  2901. auto a3 = "String literal";
  2902. int total = 0;
  2903. for (auto i = a3; *i; ++i) { total += *i; }
  2904. decltype(a2) a4 = 34895.034;
  2905. }
  2906. {
  2907. // Test constexpr
  2908. short sa[cxx11test::get_val()] = { 0 };
  2909. }
  2910. {
  2911. // Test initializer lists
  2912. cxx11test::testinit il = { 4323, 435234.23544 };
  2913. }
  2914. {
  2915. // Test range-based for
  2916. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2917. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2918. for (auto &x : array) { x += 23; }
  2919. }
  2920. {
  2921. // Test lambda expressions
  2922. using cxx11test::eval;
  2923. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2924. double d = 2.0;
  2925. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2926. assert (d == 5.0);
  2927. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2928. assert (d == 5.0);
  2929. }
  2930. {
  2931. // Test use of variadic templates
  2932. using cxx11test::sum;
  2933. auto a = sum(1);
  2934. auto b = sum(1, 2);
  2935. auto c = sum(1.0, 2.0, 3.0);
  2936. }
  2937. {
  2938. // Test constructor delegation
  2939. cxx11test::delegate d1;
  2940. cxx11test::delegate d2();
  2941. cxx11test::delegate d3(45);
  2942. }
  2943. {
  2944. // Test override and final
  2945. cxx11test::overridden o1(55464);
  2946. }
  2947. {
  2948. // Test nullptr
  2949. char *c = nullptr;
  2950. }
  2951. {
  2952. // Test template brackets
  2953. test_template<::test_template<int>> v(test_template<int>(12));
  2954. }
  2955. {
  2956. // Unicode literals
  2957. char const *utf8 = u8"UTF-8 string \u2500";
  2958. char16_t const *utf16 = u"UTF-8 string \u2500";
  2959. char32_t const *utf32 = U"UTF-32 string \u2500";
  2960. }
  2961. '
  2962. # Test code for whether the C compiler supports C++11 (complete).
  2963. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2964. ${ac_cxx_conftest_cxx11_globals}
  2965. int
  2966. main (int argc, char **argv)
  2967. {
  2968. int ok = 0;
  2969. ${ac_cxx_conftest_cxx98_main}
  2970. ${ac_cxx_conftest_cxx11_main}
  2971. return ok;
  2972. }
  2973. "
  2974. # Test code for whether the C compiler supports C++98 (complete).
  2975. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2976. int
  2977. main (int argc, char **argv)
  2978. {
  2979. int ok = 0;
  2980. ${ac_cxx_conftest_cxx98_main}
  2981. return ok;
  2982. }
  2983. "
  2984. # Auxiliary files required by this configure script.
  2985. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2986. # Locations in which to look for auxiliary files.
  2987. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2988. # Search for a directory containing all of the required auxiliary files,
  2989. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2990. # If we don't find one directory that contains all the files we need,
  2991. # we report the set of missing files from the *first* directory in
  2992. # $ac_aux_dir_candidates and give up.
  2993. ac_missing_aux_files=""
  2994. ac_first_candidate=:
  2995. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2997. as_found=false
  2998. for as_dir in $ac_aux_dir_candidates
  2999. do
  3000. IFS=$as_save_IFS
  3001. case $as_dir in #(((
  3002. '') as_dir=./ ;;
  3003. */) ;;
  3004. *) as_dir=$as_dir/ ;;
  3005. esac
  3006. as_found=:
  3007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3008. ac_aux_dir_found=yes
  3009. ac_install_sh=
  3010. for ac_aux in $ac_aux_files
  3011. do
  3012. # As a special case, if "install-sh" is required, that requirement
  3013. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3014. # and $ac_install_sh is set appropriately for whichever one is found.
  3015. if test x"$ac_aux" = x"install-sh"
  3016. then
  3017. if test -f "${as_dir}install-sh"; then
  3018. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3019. ac_install_sh="${as_dir}install-sh -c"
  3020. elif test -f "${as_dir}install.sh"; then
  3021. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3022. ac_install_sh="${as_dir}install.sh -c"
  3023. elif test -f "${as_dir}shtool"; then
  3024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3025. ac_install_sh="${as_dir}shtool install -c"
  3026. else
  3027. ac_aux_dir_found=no
  3028. if $ac_first_candidate; then
  3029. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3030. else
  3031. break
  3032. fi
  3033. fi
  3034. else
  3035. if test -f "${as_dir}${ac_aux}"; then
  3036. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3037. else
  3038. ac_aux_dir_found=no
  3039. if $ac_first_candidate; then
  3040. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3041. else
  3042. break
  3043. fi
  3044. fi
  3045. fi
  3046. done
  3047. if test "$ac_aux_dir_found" = yes; then
  3048. ac_aux_dir="$as_dir"
  3049. break
  3050. fi
  3051. ac_first_candidate=false
  3052. as_found=false
  3053. done
  3054. IFS=$as_save_IFS
  3055. if $as_found
  3056. then :
  3057. else $as_nop
  3058. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3059. fi
  3060. # These three variables are undocumented and unsupported,
  3061. # and are intended to be withdrawn in a future Autoconf release.
  3062. # They can cause serious problems if a builder's source tree is in a directory
  3063. # whose full name contains unusual characters.
  3064. if test -f "${ac_aux_dir}config.guess"; then
  3065. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3066. fi
  3067. if test -f "${ac_aux_dir}config.sub"; then
  3068. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3069. fi
  3070. if test -f "$ac_aux_dir/configure"; then
  3071. ac_configure="$SHELL ${ac_aux_dir}configure"
  3072. fi
  3073. # Check that the precious variables saved in the cache have kept the same
  3074. # value.
  3075. ac_cache_corrupted=false
  3076. for ac_var in $ac_precious_vars; do
  3077. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3078. eval ac_new_set=\$ac_env_${ac_var}_set
  3079. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3080. eval ac_new_val=\$ac_env_${ac_var}_value
  3081. case $ac_old_set,$ac_new_set in
  3082. set,)
  3083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3084. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3085. ac_cache_corrupted=: ;;
  3086. ,set)
  3087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3088. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3089. ac_cache_corrupted=: ;;
  3090. ,);;
  3091. *)
  3092. if test "x$ac_old_val" != "x$ac_new_val"; then
  3093. # differences in whitespace do not lead to failure.
  3094. ac_old_val_w=`echo x $ac_old_val`
  3095. ac_new_val_w=`echo x $ac_new_val`
  3096. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3098. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3099. ac_cache_corrupted=:
  3100. else
  3101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3102. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3103. eval $ac_var=\$ac_old_val
  3104. fi
  3105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3106. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3108. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3109. fi;;
  3110. esac
  3111. # Pass precious variables to config.status.
  3112. if test "$ac_new_set" = set; then
  3113. case $ac_new_val in
  3114. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3115. *) ac_arg=$ac_var=$ac_new_val ;;
  3116. esac
  3117. case " $ac_configure_args " in
  3118. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3119. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3120. esac
  3121. fi
  3122. done
  3123. if $ac_cache_corrupted; then
  3124. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3127. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3128. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3129. and start over" "$LINENO" 5
  3130. fi
  3131. ## -------------------- ##
  3132. ## Main body of script. ##
  3133. ## -------------------- ##
  3134. ac_ext=c
  3135. ac_cpp='$CPP $CPPFLAGS'
  3136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3139. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3140. orig_CFLAGS="$CFLAGS"
  3141. # See docs/release_checklist.md
  3142. SDL_MAJOR_VERSION=2
  3143. SDL_MINOR_VERSION=25
  3144. SDL_MICRO_VERSION=0
  3145. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3146. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3147. case "$SDL_MINOR_VERSION" in #(
  3148. *[02468]) :
  3149. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3150. *) :
  3151. SDL_INTERFACE_AGE=0 ;; #(
  3152. *) :
  3153. ;;
  3154. esac
  3155. # libtool versioning
  3156. case `pwd` in
  3157. *\ * | *\ *)
  3158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3159. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3160. esac
  3161. macro_version='2.4.6'
  3162. macro_revision='2.4.6'
  3163. ltmain=$ac_aux_dir/ltmain.sh
  3164. # Make sure we can run config.sub.
  3165. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3166. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3168. printf %s "checking build system type... " >&6; }
  3169. if test ${ac_cv_build+y}
  3170. then :
  3171. printf %s "(cached) " >&6
  3172. else $as_nop
  3173. ac_build_alias=$build_alias
  3174. test "x$ac_build_alias" = x &&
  3175. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3176. test "x$ac_build_alias" = x &&
  3177. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3178. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3179. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3180. fi
  3181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3182. printf "%s\n" "$ac_cv_build" >&6; }
  3183. case $ac_cv_build in
  3184. *-*-*) ;;
  3185. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3186. esac
  3187. build=$ac_cv_build
  3188. ac_save_IFS=$IFS; IFS='-'
  3189. set x $ac_cv_build
  3190. shift
  3191. build_cpu=$1
  3192. build_vendor=$2
  3193. shift; shift
  3194. # Remember, the first character of IFS is used to create $*,
  3195. # except with old shells:
  3196. build_os=$*
  3197. IFS=$ac_save_IFS
  3198. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3200. printf %s "checking host system type... " >&6; }
  3201. if test ${ac_cv_host+y}
  3202. then :
  3203. printf %s "(cached) " >&6
  3204. else $as_nop
  3205. if test "x$host_alias" = x; then
  3206. ac_cv_host=$ac_cv_build
  3207. else
  3208. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3209. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3210. fi
  3211. fi
  3212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3213. printf "%s\n" "$ac_cv_host" >&6; }
  3214. case $ac_cv_host in
  3215. *-*-*) ;;
  3216. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3217. esac
  3218. host=$ac_cv_host
  3219. ac_save_IFS=$IFS; IFS='-'
  3220. set x $ac_cv_host
  3221. shift
  3222. host_cpu=$1
  3223. host_vendor=$2
  3224. shift; shift
  3225. # Remember, the first character of IFS is used to create $*,
  3226. # except with old shells:
  3227. host_os=$*
  3228. IFS=$ac_save_IFS
  3229. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3230. # Backslashify metacharacters that are still active within
  3231. # double-quoted strings.
  3232. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3233. # Same as above, but do not quote variable references.
  3234. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3235. # Sed substitution to delay expansion of an escaped shell variable in a
  3236. # double_quote_subst'ed string.
  3237. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3238. # Sed substitution to delay expansion of an escaped single quote.
  3239. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3240. # Sed substitution to avoid accidental globbing in evaled expressions
  3241. no_glob_subst='s/\*/\\\*/g'
  3242. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3243. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3244. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3246. printf %s "checking how to print strings... " >&6; }
  3247. # Test print first, because it will be a builtin if present.
  3248. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3249. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3250. ECHO='print -r --'
  3251. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3252. ECHO='printf %s\n'
  3253. else
  3254. # Use this function as a fallback that always works.
  3255. func_fallback_echo ()
  3256. {
  3257. eval 'cat <<_LTECHO_EOF
  3258. $1
  3259. _LTECHO_EOF'
  3260. }
  3261. ECHO='func_fallback_echo'
  3262. fi
  3263. # func_echo_all arg...
  3264. # Invoke $ECHO with all args, space-separated.
  3265. func_echo_all ()
  3266. {
  3267. $ECHO ""
  3268. }
  3269. case $ECHO in
  3270. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3271. printf "%s\n" "printf" >&6; } ;;
  3272. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3273. printf "%s\n" "print -r" >&6; } ;;
  3274. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3275. printf "%s\n" "cat" >&6; } ;;
  3276. esac
  3277. ac_ext=c
  3278. ac_cpp='$CPP $CPPFLAGS'
  3279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3282. if test -n "$ac_tool_prefix"; then
  3283. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3284. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3286. printf %s "checking for $ac_word... " >&6; }
  3287. if test ${ac_cv_prog_CC+y}
  3288. then :
  3289. printf %s "(cached) " >&6
  3290. else $as_nop
  3291. if test -n "$CC"; then
  3292. ac_cv_prog_CC="$CC" # Let the user override the test.
  3293. else
  3294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3295. for as_dir in $PATH
  3296. do
  3297. IFS=$as_save_IFS
  3298. case $as_dir in #(((
  3299. '') as_dir=./ ;;
  3300. */) ;;
  3301. *) as_dir=$as_dir/ ;;
  3302. esac
  3303. for ac_exec_ext in '' $ac_executable_extensions; do
  3304. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3305. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3307. break 2
  3308. fi
  3309. done
  3310. done
  3311. IFS=$as_save_IFS
  3312. fi
  3313. fi
  3314. CC=$ac_cv_prog_CC
  3315. if test -n "$CC"; then
  3316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3317. printf "%s\n" "$CC" >&6; }
  3318. else
  3319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3320. printf "%s\n" "no" >&6; }
  3321. fi
  3322. fi
  3323. if test -z "$ac_cv_prog_CC"; then
  3324. ac_ct_CC=$CC
  3325. # Extract the first word of "gcc", so it can be a program name with args.
  3326. set dummy gcc; ac_word=$2
  3327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3328. printf %s "checking for $ac_word... " >&6; }
  3329. if test ${ac_cv_prog_ac_ct_CC+y}
  3330. then :
  3331. printf %s "(cached) " >&6
  3332. else $as_nop
  3333. if test -n "$ac_ct_CC"; then
  3334. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3335. else
  3336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3337. for as_dir in $PATH
  3338. do
  3339. IFS=$as_save_IFS
  3340. case $as_dir in #(((
  3341. '') as_dir=./ ;;
  3342. */) ;;
  3343. *) as_dir=$as_dir/ ;;
  3344. esac
  3345. for ac_exec_ext in '' $ac_executable_extensions; do
  3346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3347. ac_cv_prog_ac_ct_CC="gcc"
  3348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3349. break 2
  3350. fi
  3351. done
  3352. done
  3353. IFS=$as_save_IFS
  3354. fi
  3355. fi
  3356. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3357. if test -n "$ac_ct_CC"; then
  3358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3359. printf "%s\n" "$ac_ct_CC" >&6; }
  3360. else
  3361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3362. printf "%s\n" "no" >&6; }
  3363. fi
  3364. if test "x$ac_ct_CC" = x; then
  3365. CC=""
  3366. else
  3367. case $cross_compiling:$ac_tool_warned in
  3368. yes:)
  3369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3370. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3371. ac_tool_warned=yes ;;
  3372. esac
  3373. CC=$ac_ct_CC
  3374. fi
  3375. else
  3376. CC="$ac_cv_prog_CC"
  3377. fi
  3378. if test -z "$CC"; then
  3379. if test -n "$ac_tool_prefix"; then
  3380. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3381. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3383. printf %s "checking for $ac_word... " >&6; }
  3384. if test ${ac_cv_prog_CC+y}
  3385. then :
  3386. printf %s "(cached) " >&6
  3387. else $as_nop
  3388. if test -n "$CC"; then
  3389. ac_cv_prog_CC="$CC" # Let the user override the test.
  3390. else
  3391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3392. for as_dir in $PATH
  3393. do
  3394. IFS=$as_save_IFS
  3395. case $as_dir in #(((
  3396. '') as_dir=./ ;;
  3397. */) ;;
  3398. *) as_dir=$as_dir/ ;;
  3399. esac
  3400. for ac_exec_ext in '' $ac_executable_extensions; do
  3401. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3402. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3403. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3404. break 2
  3405. fi
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. fi
  3410. fi
  3411. CC=$ac_cv_prog_CC
  3412. if test -n "$CC"; then
  3413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3414. printf "%s\n" "$CC" >&6; }
  3415. else
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. printf "%s\n" "no" >&6; }
  3418. fi
  3419. fi
  3420. fi
  3421. if test -z "$CC"; then
  3422. # Extract the first word of "cc", so it can be a program name with args.
  3423. set dummy cc; ac_word=$2
  3424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3425. printf %s "checking for $ac_word... " >&6; }
  3426. if test ${ac_cv_prog_CC+y}
  3427. then :
  3428. printf %s "(cached) " >&6
  3429. else $as_nop
  3430. if test -n "$CC"; then
  3431. ac_cv_prog_CC="$CC" # Let the user override the test.
  3432. else
  3433. ac_prog_rejected=no
  3434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3435. for as_dir in $PATH
  3436. do
  3437. IFS=$as_save_IFS
  3438. case $as_dir in #(((
  3439. '') as_dir=./ ;;
  3440. */) ;;
  3441. *) as_dir=$as_dir/ ;;
  3442. esac
  3443. for ac_exec_ext in '' $ac_executable_extensions; do
  3444. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3445. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3446. ac_prog_rejected=yes
  3447. continue
  3448. fi
  3449. ac_cv_prog_CC="cc"
  3450. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3451. break 2
  3452. fi
  3453. done
  3454. done
  3455. IFS=$as_save_IFS
  3456. if test $ac_prog_rejected = yes; then
  3457. # We found a bogon in the path, so make sure we never use it.
  3458. set dummy $ac_cv_prog_CC
  3459. shift
  3460. if test $# != 0; then
  3461. # We chose a different compiler from the bogus one.
  3462. # However, it has the same basename, so the bogon will be chosen
  3463. # first if we set CC to just the basename; use the full file name.
  3464. shift
  3465. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3466. fi
  3467. fi
  3468. fi
  3469. fi
  3470. CC=$ac_cv_prog_CC
  3471. if test -n "$CC"; then
  3472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3473. printf "%s\n" "$CC" >&6; }
  3474. else
  3475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3476. printf "%s\n" "no" >&6; }
  3477. fi
  3478. fi
  3479. if test -z "$CC"; then
  3480. if test -n "$ac_tool_prefix"; then
  3481. for ac_prog in cl.exe
  3482. do
  3483. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3484. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3486. printf %s "checking for $ac_word... " >&6; }
  3487. if test ${ac_cv_prog_CC+y}
  3488. then :
  3489. printf %s "(cached) " >&6
  3490. else $as_nop
  3491. if test -n "$CC"; then
  3492. ac_cv_prog_CC="$CC" # Let the user override the test.
  3493. else
  3494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3495. for as_dir in $PATH
  3496. do
  3497. IFS=$as_save_IFS
  3498. case $as_dir in #(((
  3499. '') as_dir=./ ;;
  3500. */) ;;
  3501. *) as_dir=$as_dir/ ;;
  3502. esac
  3503. for ac_exec_ext in '' $ac_executable_extensions; do
  3504. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3505. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3506. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3507. break 2
  3508. fi
  3509. done
  3510. done
  3511. IFS=$as_save_IFS
  3512. fi
  3513. fi
  3514. CC=$ac_cv_prog_CC
  3515. if test -n "$CC"; then
  3516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3517. printf "%s\n" "$CC" >&6; }
  3518. else
  3519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3520. printf "%s\n" "no" >&6; }
  3521. fi
  3522. test -n "$CC" && break
  3523. done
  3524. fi
  3525. if test -z "$CC"; then
  3526. ac_ct_CC=$CC
  3527. for ac_prog in cl.exe
  3528. do
  3529. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3530. set dummy $ac_prog; ac_word=$2
  3531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3532. printf %s "checking for $ac_word... " >&6; }
  3533. if test ${ac_cv_prog_ac_ct_CC+y}
  3534. then :
  3535. printf %s "(cached) " >&6
  3536. else $as_nop
  3537. if test -n "$ac_ct_CC"; then
  3538. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3539. else
  3540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3541. for as_dir in $PATH
  3542. do
  3543. IFS=$as_save_IFS
  3544. case $as_dir in #(((
  3545. '') as_dir=./ ;;
  3546. */) ;;
  3547. *) as_dir=$as_dir/ ;;
  3548. esac
  3549. for ac_exec_ext in '' $ac_executable_extensions; do
  3550. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3551. ac_cv_prog_ac_ct_CC="$ac_prog"
  3552. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3553. break 2
  3554. fi
  3555. done
  3556. done
  3557. IFS=$as_save_IFS
  3558. fi
  3559. fi
  3560. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3561. if test -n "$ac_ct_CC"; then
  3562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3563. printf "%s\n" "$ac_ct_CC" >&6; }
  3564. else
  3565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3566. printf "%s\n" "no" >&6; }
  3567. fi
  3568. test -n "$ac_ct_CC" && break
  3569. done
  3570. if test "x$ac_ct_CC" = x; then
  3571. CC=""
  3572. else
  3573. case $cross_compiling:$ac_tool_warned in
  3574. yes:)
  3575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3576. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3577. ac_tool_warned=yes ;;
  3578. esac
  3579. CC=$ac_ct_CC
  3580. fi
  3581. fi
  3582. fi
  3583. if test -z "$CC"; then
  3584. if test -n "$ac_tool_prefix"; then
  3585. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3586. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3588. printf %s "checking for $ac_word... " >&6; }
  3589. if test ${ac_cv_prog_CC+y}
  3590. then :
  3591. printf %s "(cached) " >&6
  3592. else $as_nop
  3593. if test -n "$CC"; then
  3594. ac_cv_prog_CC="$CC" # Let the user override the test.
  3595. else
  3596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3597. for as_dir in $PATH
  3598. do
  3599. IFS=$as_save_IFS
  3600. case $as_dir in #(((
  3601. '') as_dir=./ ;;
  3602. */) ;;
  3603. *) as_dir=$as_dir/ ;;
  3604. esac
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3607. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3608. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3609. break 2
  3610. fi
  3611. done
  3612. done
  3613. IFS=$as_save_IFS
  3614. fi
  3615. fi
  3616. CC=$ac_cv_prog_CC
  3617. if test -n "$CC"; then
  3618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3619. printf "%s\n" "$CC" >&6; }
  3620. else
  3621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3622. printf "%s\n" "no" >&6; }
  3623. fi
  3624. fi
  3625. if test -z "$ac_cv_prog_CC"; then
  3626. ac_ct_CC=$CC
  3627. # Extract the first word of "clang", so it can be a program name with args.
  3628. set dummy clang; ac_word=$2
  3629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3630. printf %s "checking for $ac_word... " >&6; }
  3631. if test ${ac_cv_prog_ac_ct_CC+y}
  3632. then :
  3633. printf %s "(cached) " >&6
  3634. else $as_nop
  3635. if test -n "$ac_ct_CC"; then
  3636. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. case $as_dir in #(((
  3643. '') as_dir=./ ;;
  3644. */) ;;
  3645. *) as_dir=$as_dir/ ;;
  3646. esac
  3647. for ac_exec_ext in '' $ac_executable_extensions; do
  3648. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3649. ac_cv_prog_ac_ct_CC="clang"
  3650. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3651. break 2
  3652. fi
  3653. done
  3654. done
  3655. IFS=$as_save_IFS
  3656. fi
  3657. fi
  3658. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3659. if test -n "$ac_ct_CC"; then
  3660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3661. printf "%s\n" "$ac_ct_CC" >&6; }
  3662. else
  3663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3664. printf "%s\n" "no" >&6; }
  3665. fi
  3666. if test "x$ac_ct_CC" = x; then
  3667. CC=""
  3668. else
  3669. case $cross_compiling:$ac_tool_warned in
  3670. yes:)
  3671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3672. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3673. ac_tool_warned=yes ;;
  3674. esac
  3675. CC=$ac_ct_CC
  3676. fi
  3677. else
  3678. CC="$ac_cv_prog_CC"
  3679. fi
  3680. fi
  3681. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3682. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3683. as_fn_error $? "no acceptable C compiler found in \$PATH
  3684. See \`config.log' for more details" "$LINENO" 5; }
  3685. # Provide some information about the compiler.
  3686. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3687. set X $ac_compile
  3688. ac_compiler=$2
  3689. for ac_option in --version -v -V -qversion -version; do
  3690. { { ac_try="$ac_compiler $ac_option >&5"
  3691. case "(($ac_try" in
  3692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3693. *) ac_try_echo=$ac_try;;
  3694. esac
  3695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3696. printf "%s\n" "$ac_try_echo"; } >&5
  3697. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3698. ac_status=$?
  3699. if test -s conftest.err; then
  3700. sed '10a\
  3701. ... rest of stderr output deleted ...
  3702. 10q' conftest.err >conftest.er1
  3703. cat conftest.er1 >&5
  3704. fi
  3705. rm -f conftest.er1 conftest.err
  3706. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3707. test $ac_status = 0; }
  3708. done
  3709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3710. /* end confdefs.h. */
  3711. int
  3712. main (void)
  3713. {
  3714. ;
  3715. return 0;
  3716. }
  3717. _ACEOF
  3718. ac_clean_files_save=$ac_clean_files
  3719. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3720. # Try to create an executable without -o first, disregard a.out.
  3721. # It will help us diagnose broken compilers, and finding out an intuition
  3722. # of exeext.
  3723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3724. printf %s "checking whether the C compiler works... " >&6; }
  3725. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3726. # The possible output files:
  3727. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3728. ac_rmfiles=
  3729. for ac_file in $ac_files
  3730. do
  3731. case $ac_file in
  3732. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3733. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3734. esac
  3735. done
  3736. rm -f $ac_rmfiles
  3737. if { { ac_try="$ac_link_default"
  3738. case "(($ac_try" in
  3739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3740. *) ac_try_echo=$ac_try;;
  3741. esac
  3742. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3743. printf "%s\n" "$ac_try_echo"; } >&5
  3744. (eval "$ac_link_default") 2>&5
  3745. ac_status=$?
  3746. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3747. test $ac_status = 0; }
  3748. then :
  3749. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3750. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3751. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3752. # so that the user can short-circuit this test for compilers unknown to
  3753. # Autoconf.
  3754. for ac_file in $ac_files ''
  3755. do
  3756. test -f "$ac_file" || continue
  3757. case $ac_file in
  3758. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3759. ;;
  3760. [ab].out )
  3761. # We found the default executable, but exeext='' is most
  3762. # certainly right.
  3763. break;;
  3764. *.* )
  3765. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3766. then :; else
  3767. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3768. fi
  3769. # We set ac_cv_exeext here because the later test for it is not
  3770. # safe: cross compilers may not add the suffix if given an `-o'
  3771. # argument, so we may need to know it at that point already.
  3772. # Even if this section looks crufty: it has the advantage of
  3773. # actually working.
  3774. break;;
  3775. * )
  3776. break;;
  3777. esac
  3778. done
  3779. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3780. else $as_nop
  3781. ac_file=''
  3782. fi
  3783. if test -z "$ac_file"
  3784. then :
  3785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3786. printf "%s\n" "no" >&6; }
  3787. printf "%s\n" "$as_me: failed program was:" >&5
  3788. sed 's/^/| /' conftest.$ac_ext >&5
  3789. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3790. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3791. as_fn_error 77 "C compiler cannot create executables
  3792. See \`config.log' for more details" "$LINENO" 5; }
  3793. else $as_nop
  3794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3795. printf "%s\n" "yes" >&6; }
  3796. fi
  3797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3798. printf %s "checking for C compiler default output file name... " >&6; }
  3799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3800. printf "%s\n" "$ac_file" >&6; }
  3801. ac_exeext=$ac_cv_exeext
  3802. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3803. ac_clean_files=$ac_clean_files_save
  3804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3805. printf %s "checking for suffix of executables... " >&6; }
  3806. if { { ac_try="$ac_link"
  3807. case "(($ac_try" in
  3808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3809. *) ac_try_echo=$ac_try;;
  3810. esac
  3811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3812. printf "%s\n" "$ac_try_echo"; } >&5
  3813. (eval "$ac_link") 2>&5
  3814. ac_status=$?
  3815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3816. test $ac_status = 0; }
  3817. then :
  3818. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3819. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3820. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3821. # `rm'.
  3822. for ac_file in conftest.exe conftest conftest.*; do
  3823. test -f "$ac_file" || continue
  3824. case $ac_file in
  3825. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3826. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3827. break;;
  3828. * ) break;;
  3829. esac
  3830. done
  3831. else $as_nop
  3832. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3833. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3834. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3835. See \`config.log' for more details" "$LINENO" 5; }
  3836. fi
  3837. rm -f conftest conftest$ac_cv_exeext
  3838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3839. printf "%s\n" "$ac_cv_exeext" >&6; }
  3840. rm -f conftest.$ac_ext
  3841. EXEEXT=$ac_cv_exeext
  3842. ac_exeext=$EXEEXT
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845. #include <stdio.h>
  3846. int
  3847. main (void)
  3848. {
  3849. FILE *f = fopen ("conftest.out", "w");
  3850. return ferror (f) || fclose (f) != 0;
  3851. ;
  3852. return 0;
  3853. }
  3854. _ACEOF
  3855. ac_clean_files="$ac_clean_files conftest.out"
  3856. # Check that the compiler produces executables we can run. If not, either
  3857. # the compiler is broken, or we cross compile.
  3858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3859. printf %s "checking whether we are cross compiling... " >&6; }
  3860. if test "$cross_compiling" != yes; then
  3861. { { ac_try="$ac_link"
  3862. case "(($ac_try" in
  3863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3864. *) ac_try_echo=$ac_try;;
  3865. esac
  3866. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3867. printf "%s\n" "$ac_try_echo"; } >&5
  3868. (eval "$ac_link") 2>&5
  3869. ac_status=$?
  3870. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3871. test $ac_status = 0; }
  3872. if { ac_try='./conftest$ac_cv_exeext'
  3873. { { case "(($ac_try" in
  3874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3875. *) ac_try_echo=$ac_try;;
  3876. esac
  3877. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3878. printf "%s\n" "$ac_try_echo"; } >&5
  3879. (eval "$ac_try") 2>&5
  3880. ac_status=$?
  3881. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3882. test $ac_status = 0; }; }; then
  3883. cross_compiling=no
  3884. else
  3885. if test "$cross_compiling" = maybe; then
  3886. cross_compiling=yes
  3887. else
  3888. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3889. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3890. as_fn_error 77 "cannot run C compiled programs.
  3891. If you meant to cross compile, use \`--host'.
  3892. See \`config.log' for more details" "$LINENO" 5; }
  3893. fi
  3894. fi
  3895. fi
  3896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3897. printf "%s\n" "$cross_compiling" >&6; }
  3898. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3899. ac_clean_files=$ac_clean_files_save
  3900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3901. printf %s "checking for suffix of object files... " >&6; }
  3902. if test ${ac_cv_objext+y}
  3903. then :
  3904. printf %s "(cached) " >&6
  3905. else $as_nop
  3906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3907. /* end confdefs.h. */
  3908. int
  3909. main (void)
  3910. {
  3911. ;
  3912. return 0;
  3913. }
  3914. _ACEOF
  3915. rm -f conftest.o conftest.obj
  3916. if { { ac_try="$ac_compile"
  3917. case "(($ac_try" in
  3918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3919. *) ac_try_echo=$ac_try;;
  3920. esac
  3921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3922. printf "%s\n" "$ac_try_echo"; } >&5
  3923. (eval "$ac_compile") 2>&5
  3924. ac_status=$?
  3925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3926. test $ac_status = 0; }
  3927. then :
  3928. for ac_file in conftest.o conftest.obj conftest.*; do
  3929. test -f "$ac_file" || continue;
  3930. case $ac_file in
  3931. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3932. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3933. break;;
  3934. esac
  3935. done
  3936. else $as_nop
  3937. printf "%s\n" "$as_me: failed program was:" >&5
  3938. sed 's/^/| /' conftest.$ac_ext >&5
  3939. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3940. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3941. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3942. See \`config.log' for more details" "$LINENO" 5; }
  3943. fi
  3944. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3945. fi
  3946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3947. printf "%s\n" "$ac_cv_objext" >&6; }
  3948. OBJEXT=$ac_cv_objext
  3949. ac_objext=$OBJEXT
  3950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3951. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3952. if test ${ac_cv_c_compiler_gnu+y}
  3953. then :
  3954. printf %s "(cached) " >&6
  3955. else $as_nop
  3956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3957. /* end confdefs.h. */
  3958. int
  3959. main (void)
  3960. {
  3961. #ifndef __GNUC__
  3962. choke me
  3963. #endif
  3964. ;
  3965. return 0;
  3966. }
  3967. _ACEOF
  3968. if ac_fn_c_try_compile "$LINENO"
  3969. then :
  3970. ac_compiler_gnu=yes
  3971. else $as_nop
  3972. ac_compiler_gnu=no
  3973. fi
  3974. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3975. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3976. fi
  3977. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3978. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3979. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3980. if test $ac_compiler_gnu = yes; then
  3981. GCC=yes
  3982. else
  3983. GCC=
  3984. fi
  3985. ac_test_CFLAGS=${CFLAGS+y}
  3986. ac_save_CFLAGS=$CFLAGS
  3987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3988. printf %s "checking whether $CC accepts -g... " >&6; }
  3989. if test ${ac_cv_prog_cc_g+y}
  3990. then :
  3991. printf %s "(cached) " >&6
  3992. else $as_nop
  3993. ac_save_c_werror_flag=$ac_c_werror_flag
  3994. ac_c_werror_flag=yes
  3995. ac_cv_prog_cc_g=no
  3996. CFLAGS="-g"
  3997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3998. /* end confdefs.h. */
  3999. int
  4000. main (void)
  4001. {
  4002. ;
  4003. return 0;
  4004. }
  4005. _ACEOF
  4006. if ac_fn_c_try_compile "$LINENO"
  4007. then :
  4008. ac_cv_prog_cc_g=yes
  4009. else $as_nop
  4010. CFLAGS=""
  4011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4012. /* end confdefs.h. */
  4013. int
  4014. main (void)
  4015. {
  4016. ;
  4017. return 0;
  4018. }
  4019. _ACEOF
  4020. if ac_fn_c_try_compile "$LINENO"
  4021. then :
  4022. else $as_nop
  4023. ac_c_werror_flag=$ac_save_c_werror_flag
  4024. CFLAGS="-g"
  4025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4026. /* end confdefs.h. */
  4027. int
  4028. main (void)
  4029. {
  4030. ;
  4031. return 0;
  4032. }
  4033. _ACEOF
  4034. if ac_fn_c_try_compile "$LINENO"
  4035. then :
  4036. ac_cv_prog_cc_g=yes
  4037. fi
  4038. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4039. fi
  4040. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4041. fi
  4042. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4043. ac_c_werror_flag=$ac_save_c_werror_flag
  4044. fi
  4045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4046. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4047. if test $ac_test_CFLAGS; then
  4048. CFLAGS=$ac_save_CFLAGS
  4049. elif test $ac_cv_prog_cc_g = yes; then
  4050. if test "$GCC" = yes; then
  4051. CFLAGS="-g -O2"
  4052. else
  4053. CFLAGS="-g"
  4054. fi
  4055. else
  4056. if test "$GCC" = yes; then
  4057. CFLAGS="-O2"
  4058. else
  4059. CFLAGS=
  4060. fi
  4061. fi
  4062. ac_prog_cc_stdc=no
  4063. if test x$ac_prog_cc_stdc = xno
  4064. then :
  4065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4066. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4067. if test ${ac_cv_prog_cc_c11+y}
  4068. then :
  4069. printf %s "(cached) " >&6
  4070. else $as_nop
  4071. ac_cv_prog_cc_c11=no
  4072. ac_save_CC=$CC
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. $ac_c_conftest_c11_program
  4076. _ACEOF
  4077. for ac_arg in '' -std=gnu11
  4078. do
  4079. CC="$ac_save_CC $ac_arg"
  4080. if ac_fn_c_try_compile "$LINENO"
  4081. then :
  4082. ac_cv_prog_cc_c11=$ac_arg
  4083. fi
  4084. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4085. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4086. done
  4087. rm -f conftest.$ac_ext
  4088. CC=$ac_save_CC
  4089. fi
  4090. if test "x$ac_cv_prog_cc_c11" = xno
  4091. then :
  4092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4093. printf "%s\n" "unsupported" >&6; }
  4094. else $as_nop
  4095. if test "x$ac_cv_prog_cc_c11" = x
  4096. then :
  4097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4098. printf "%s\n" "none needed" >&6; }
  4099. else $as_nop
  4100. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4101. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4102. CC="$CC $ac_cv_prog_cc_c11"
  4103. fi
  4104. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4105. ac_prog_cc_stdc=c11
  4106. fi
  4107. fi
  4108. if test x$ac_prog_cc_stdc = xno
  4109. then :
  4110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4111. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4112. if test ${ac_cv_prog_cc_c99+y}
  4113. then :
  4114. printf %s "(cached) " >&6
  4115. else $as_nop
  4116. ac_cv_prog_cc_c99=no
  4117. ac_save_CC=$CC
  4118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4119. /* end confdefs.h. */
  4120. $ac_c_conftest_c99_program
  4121. _ACEOF
  4122. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4123. do
  4124. CC="$ac_save_CC $ac_arg"
  4125. if ac_fn_c_try_compile "$LINENO"
  4126. then :
  4127. ac_cv_prog_cc_c99=$ac_arg
  4128. fi
  4129. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4130. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4131. done
  4132. rm -f conftest.$ac_ext
  4133. CC=$ac_save_CC
  4134. fi
  4135. if test "x$ac_cv_prog_cc_c99" = xno
  4136. then :
  4137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4138. printf "%s\n" "unsupported" >&6; }
  4139. else $as_nop
  4140. if test "x$ac_cv_prog_cc_c99" = x
  4141. then :
  4142. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4143. printf "%s\n" "none needed" >&6; }
  4144. else $as_nop
  4145. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4146. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4147. CC="$CC $ac_cv_prog_cc_c99"
  4148. fi
  4149. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4150. ac_prog_cc_stdc=c99
  4151. fi
  4152. fi
  4153. if test x$ac_prog_cc_stdc = xno
  4154. then :
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4156. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4157. if test ${ac_cv_prog_cc_c89+y}
  4158. then :
  4159. printf %s "(cached) " >&6
  4160. else $as_nop
  4161. ac_cv_prog_cc_c89=no
  4162. ac_save_CC=$CC
  4163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4164. /* end confdefs.h. */
  4165. $ac_c_conftest_c89_program
  4166. _ACEOF
  4167. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4168. do
  4169. CC="$ac_save_CC $ac_arg"
  4170. if ac_fn_c_try_compile "$LINENO"
  4171. then :
  4172. ac_cv_prog_cc_c89=$ac_arg
  4173. fi
  4174. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4175. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4176. done
  4177. rm -f conftest.$ac_ext
  4178. CC=$ac_save_CC
  4179. fi
  4180. if test "x$ac_cv_prog_cc_c89" = xno
  4181. then :
  4182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4183. printf "%s\n" "unsupported" >&6; }
  4184. else $as_nop
  4185. if test "x$ac_cv_prog_cc_c89" = x
  4186. then :
  4187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4188. printf "%s\n" "none needed" >&6; }
  4189. else $as_nop
  4190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4191. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4192. CC="$CC $ac_cv_prog_cc_c89"
  4193. fi
  4194. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4195. ac_prog_cc_stdc=c89
  4196. fi
  4197. fi
  4198. ac_ext=c
  4199. ac_cpp='$CPP $CPPFLAGS'
  4200. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4201. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4202. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4204. printf %s "checking for a sed that does not truncate output... " >&6; }
  4205. if test ${ac_cv_path_SED+y}
  4206. then :
  4207. printf %s "(cached) " >&6
  4208. else $as_nop
  4209. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4210. for ac_i in 1 2 3 4 5 6 7; do
  4211. ac_script="$ac_script$as_nl$ac_script"
  4212. done
  4213. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4214. { ac_script=; unset ac_script;}
  4215. if test -z "$SED"; then
  4216. ac_path_SED_found=false
  4217. # Loop through the user's path and test for each of PROGNAME-LIST
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. case $as_dir in #(((
  4223. '') as_dir=./ ;;
  4224. */) ;;
  4225. *) as_dir=$as_dir/ ;;
  4226. esac
  4227. for ac_prog in sed gsed
  4228. do
  4229. for ac_exec_ext in '' $ac_executable_extensions; do
  4230. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4231. as_fn_executable_p "$ac_path_SED" || continue
  4232. # Check for GNU ac_path_SED and select it if it is found.
  4233. # Check for GNU $ac_path_SED
  4234. case `"$ac_path_SED" --version 2>&1` in
  4235. *GNU*)
  4236. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4237. *)
  4238. ac_count=0
  4239. printf %s 0123456789 >"conftest.in"
  4240. while :
  4241. do
  4242. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4243. mv "conftest.tmp" "conftest.in"
  4244. cp "conftest.in" "conftest.nl"
  4245. printf "%s\n" '' >> "conftest.nl"
  4246. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4247. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4248. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4249. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4250. # Best one so far, save it but keep looking for a better one
  4251. ac_cv_path_SED="$ac_path_SED"
  4252. ac_path_SED_max=$ac_count
  4253. fi
  4254. # 10*(2^10) chars as input seems more than enough
  4255. test $ac_count -gt 10 && break
  4256. done
  4257. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4258. esac
  4259. $ac_path_SED_found && break 3
  4260. done
  4261. done
  4262. done
  4263. IFS=$as_save_IFS
  4264. if test -z "$ac_cv_path_SED"; then
  4265. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4266. fi
  4267. else
  4268. ac_cv_path_SED=$SED
  4269. fi
  4270. fi
  4271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4272. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4273. SED="$ac_cv_path_SED"
  4274. rm -f conftest.sed
  4275. test -z "$SED" && SED=sed
  4276. Xsed="$SED -e 1s/^X//"
  4277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4278. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4279. if test ${ac_cv_path_GREP+y}
  4280. then :
  4281. printf %s "(cached) " >&6
  4282. else $as_nop
  4283. if test -z "$GREP"; then
  4284. ac_path_GREP_found=false
  4285. # Loop through the user's path and test for each of PROGNAME-LIST
  4286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4287. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4288. do
  4289. IFS=$as_save_IFS
  4290. case $as_dir in #(((
  4291. '') as_dir=./ ;;
  4292. */) ;;
  4293. *) as_dir=$as_dir/ ;;
  4294. esac
  4295. for ac_prog in grep ggrep
  4296. do
  4297. for ac_exec_ext in '' $ac_executable_extensions; do
  4298. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4299. as_fn_executable_p "$ac_path_GREP" || continue
  4300. # Check for GNU ac_path_GREP and select it if it is found.
  4301. # Check for GNU $ac_path_GREP
  4302. case `"$ac_path_GREP" --version 2>&1` in
  4303. *GNU*)
  4304. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4305. *)
  4306. ac_count=0
  4307. printf %s 0123456789 >"conftest.in"
  4308. while :
  4309. do
  4310. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4311. mv "conftest.tmp" "conftest.in"
  4312. cp "conftest.in" "conftest.nl"
  4313. printf "%s\n" 'GREP' >> "conftest.nl"
  4314. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4315. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4316. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4317. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4318. # Best one so far, save it but keep looking for a better one
  4319. ac_cv_path_GREP="$ac_path_GREP"
  4320. ac_path_GREP_max=$ac_count
  4321. fi
  4322. # 10*(2^10) chars as input seems more than enough
  4323. test $ac_count -gt 10 && break
  4324. done
  4325. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4326. esac
  4327. $ac_path_GREP_found && break 3
  4328. done
  4329. done
  4330. done
  4331. IFS=$as_save_IFS
  4332. if test -z "$ac_cv_path_GREP"; then
  4333. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4334. fi
  4335. else
  4336. ac_cv_path_GREP=$GREP
  4337. fi
  4338. fi
  4339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4340. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4341. GREP="$ac_cv_path_GREP"
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4343. printf %s "checking for egrep... " >&6; }
  4344. if test ${ac_cv_path_EGREP+y}
  4345. then :
  4346. printf %s "(cached) " >&6
  4347. else $as_nop
  4348. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4349. then ac_cv_path_EGREP="$GREP -E"
  4350. else
  4351. if test -z "$EGREP"; then
  4352. ac_path_EGREP_found=false
  4353. # Loop through the user's path and test for each of PROGNAME-LIST
  4354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4355. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4356. do
  4357. IFS=$as_save_IFS
  4358. case $as_dir in #(((
  4359. '') as_dir=./ ;;
  4360. */) ;;
  4361. *) as_dir=$as_dir/ ;;
  4362. esac
  4363. for ac_prog in egrep
  4364. do
  4365. for ac_exec_ext in '' $ac_executable_extensions; do
  4366. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4367. as_fn_executable_p "$ac_path_EGREP" || continue
  4368. # Check for GNU ac_path_EGREP and select it if it is found.
  4369. # Check for GNU $ac_path_EGREP
  4370. case `"$ac_path_EGREP" --version 2>&1` in
  4371. *GNU*)
  4372. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4373. *)
  4374. ac_count=0
  4375. printf %s 0123456789 >"conftest.in"
  4376. while :
  4377. do
  4378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4379. mv "conftest.tmp" "conftest.in"
  4380. cp "conftest.in" "conftest.nl"
  4381. printf "%s\n" 'EGREP' >> "conftest.nl"
  4382. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4385. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4386. # Best one so far, save it but keep looking for a better one
  4387. ac_cv_path_EGREP="$ac_path_EGREP"
  4388. ac_path_EGREP_max=$ac_count
  4389. fi
  4390. # 10*(2^10) chars as input seems more than enough
  4391. test $ac_count -gt 10 && break
  4392. done
  4393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4394. esac
  4395. $ac_path_EGREP_found && break 3
  4396. done
  4397. done
  4398. done
  4399. IFS=$as_save_IFS
  4400. if test -z "$ac_cv_path_EGREP"; then
  4401. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4402. fi
  4403. else
  4404. ac_cv_path_EGREP=$EGREP
  4405. fi
  4406. fi
  4407. fi
  4408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4409. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4410. EGREP="$ac_cv_path_EGREP"
  4411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4412. printf %s "checking for fgrep... " >&6; }
  4413. if test ${ac_cv_path_FGREP+y}
  4414. then :
  4415. printf %s "(cached) " >&6
  4416. else $as_nop
  4417. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4418. then ac_cv_path_FGREP="$GREP -F"
  4419. else
  4420. if test -z "$FGREP"; then
  4421. ac_path_FGREP_found=false
  4422. # Loop through the user's path and test for each of PROGNAME-LIST
  4423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4424. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4425. do
  4426. IFS=$as_save_IFS
  4427. case $as_dir in #(((
  4428. '') as_dir=./ ;;
  4429. */) ;;
  4430. *) as_dir=$as_dir/ ;;
  4431. esac
  4432. for ac_prog in fgrep
  4433. do
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4436. as_fn_executable_p "$ac_path_FGREP" || continue
  4437. # Check for GNU ac_path_FGREP and select it if it is found.
  4438. # Check for GNU $ac_path_FGREP
  4439. case `"$ac_path_FGREP" --version 2>&1` in
  4440. *GNU*)
  4441. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4442. *)
  4443. ac_count=0
  4444. printf %s 0123456789 >"conftest.in"
  4445. while :
  4446. do
  4447. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4448. mv "conftest.tmp" "conftest.in"
  4449. cp "conftest.in" "conftest.nl"
  4450. printf "%s\n" 'FGREP' >> "conftest.nl"
  4451. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4452. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4453. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4454. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4455. # Best one so far, save it but keep looking for a better one
  4456. ac_cv_path_FGREP="$ac_path_FGREP"
  4457. ac_path_FGREP_max=$ac_count
  4458. fi
  4459. # 10*(2^10) chars as input seems more than enough
  4460. test $ac_count -gt 10 && break
  4461. done
  4462. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4463. esac
  4464. $ac_path_FGREP_found && break 3
  4465. done
  4466. done
  4467. done
  4468. IFS=$as_save_IFS
  4469. if test -z "$ac_cv_path_FGREP"; then
  4470. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4471. fi
  4472. else
  4473. ac_cv_path_FGREP=$FGREP
  4474. fi
  4475. fi
  4476. fi
  4477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4478. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4479. FGREP="$ac_cv_path_FGREP"
  4480. test -z "$GREP" && GREP=grep
  4481. # Check whether --with-gnu-ld was given.
  4482. if test ${with_gnu_ld+y}
  4483. then :
  4484. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4485. else $as_nop
  4486. with_gnu_ld=no
  4487. fi
  4488. ac_prog=ld
  4489. if test yes = "$GCC"; then
  4490. # Check if gcc -print-prog-name=ld gives a path.
  4491. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4492. printf %s "checking for ld used by $CC... " >&6; }
  4493. case $host in
  4494. *-*-mingw*)
  4495. # gcc leaves a trailing carriage return, which upsets mingw
  4496. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4497. *)
  4498. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4499. esac
  4500. case $ac_prog in
  4501. # Accept absolute paths.
  4502. [\\/]* | ?:[\\/]*)
  4503. re_direlt='/[^/][^/]*/\.\./'
  4504. # Canonicalize the pathname of ld
  4505. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4506. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4507. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4508. done
  4509. test -z "$LD" && LD=$ac_prog
  4510. ;;
  4511. "")
  4512. # If it fails, then pretend we aren't using GCC.
  4513. ac_prog=ld
  4514. ;;
  4515. *)
  4516. # If it is relative, then search for the first ld in PATH.
  4517. with_gnu_ld=unknown
  4518. ;;
  4519. esac
  4520. elif test yes = "$with_gnu_ld"; then
  4521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4522. printf %s "checking for GNU ld... " >&6; }
  4523. else
  4524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4525. printf %s "checking for non-GNU ld... " >&6; }
  4526. fi
  4527. if test ${lt_cv_path_LD+y}
  4528. then :
  4529. printf %s "(cached) " >&6
  4530. else $as_nop
  4531. if test -z "$LD"; then
  4532. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4533. for ac_dir in $PATH; do
  4534. IFS=$lt_save_ifs
  4535. test -z "$ac_dir" && ac_dir=.
  4536. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4537. lt_cv_path_LD=$ac_dir/$ac_prog
  4538. # Check to see if the program is GNU ld. I'd rather use --version,
  4539. # but apparently some variants of GNU ld only accept -v.
  4540. # Break only if it was the GNU/non-GNU ld that we prefer.
  4541. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4542. *GNU* | *'with BFD'*)
  4543. test no != "$with_gnu_ld" && break
  4544. ;;
  4545. *)
  4546. test yes != "$with_gnu_ld" && break
  4547. ;;
  4548. esac
  4549. fi
  4550. done
  4551. IFS=$lt_save_ifs
  4552. else
  4553. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4554. fi
  4555. fi
  4556. LD=$lt_cv_path_LD
  4557. if test -n "$LD"; then
  4558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4559. printf "%s\n" "$LD" >&6; }
  4560. else
  4561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4562. printf "%s\n" "no" >&6; }
  4563. fi
  4564. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4566. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4567. if test ${lt_cv_prog_gnu_ld+y}
  4568. then :
  4569. printf %s "(cached) " >&6
  4570. else $as_nop
  4571. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4572. case `$LD -v 2>&1 </dev/null` in
  4573. *GNU* | *'with BFD'*)
  4574. lt_cv_prog_gnu_ld=yes
  4575. ;;
  4576. *)
  4577. lt_cv_prog_gnu_ld=no
  4578. ;;
  4579. esac
  4580. fi
  4581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4582. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4583. with_gnu_ld=$lt_cv_prog_gnu_ld
  4584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4585. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4586. if test ${lt_cv_path_NM+y}
  4587. then :
  4588. printf %s "(cached) " >&6
  4589. else $as_nop
  4590. if test -n "$NM"; then
  4591. # Let the user override the test.
  4592. lt_cv_path_NM=$NM
  4593. else
  4594. lt_nm_to_check=${ac_tool_prefix}nm
  4595. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4596. lt_nm_to_check="$lt_nm_to_check nm"
  4597. fi
  4598. for lt_tmp_nm in $lt_nm_to_check; do
  4599. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4600. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4601. IFS=$lt_save_ifs
  4602. test -z "$ac_dir" && ac_dir=.
  4603. tmp_nm=$ac_dir/$lt_tmp_nm
  4604. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4605. # Check to see if the nm accepts a BSD-compat flag.
  4606. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4607. # nm: unknown option "B" ignored
  4608. # Tru64's nm complains that /dev/null is an invalid object file
  4609. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4610. case $build_os in
  4611. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4612. *) lt_bad_file=/dev/null ;;
  4613. esac
  4614. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4615. *$lt_bad_file* | *'Invalid file or object type'*)
  4616. lt_cv_path_NM="$tmp_nm -B"
  4617. break 2
  4618. ;;
  4619. *)
  4620. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4621. */dev/null*)
  4622. lt_cv_path_NM="$tmp_nm -p"
  4623. break 2
  4624. ;;
  4625. *)
  4626. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4627. continue # so that we can try to find one that supports BSD flags
  4628. ;;
  4629. esac
  4630. ;;
  4631. esac
  4632. fi
  4633. done
  4634. IFS=$lt_save_ifs
  4635. done
  4636. : ${lt_cv_path_NM=no}
  4637. fi
  4638. fi
  4639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4640. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4641. if test no != "$lt_cv_path_NM"; then
  4642. NM=$lt_cv_path_NM
  4643. else
  4644. # Didn't find any BSD compatible name lister, look for dumpbin.
  4645. if test -n "$DUMPBIN"; then :
  4646. # Let the user override the test.
  4647. else
  4648. if test -n "$ac_tool_prefix"; then
  4649. for ac_prog in dumpbin "link -dump"
  4650. do
  4651. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4652. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4654. printf %s "checking for $ac_word... " >&6; }
  4655. if test ${ac_cv_prog_DUMPBIN+y}
  4656. then :
  4657. printf %s "(cached) " >&6
  4658. else $as_nop
  4659. if test -n "$DUMPBIN"; then
  4660. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4661. else
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH
  4664. do
  4665. IFS=$as_save_IFS
  4666. case $as_dir in #(((
  4667. '') as_dir=./ ;;
  4668. */) ;;
  4669. *) as_dir=$as_dir/ ;;
  4670. esac
  4671. for ac_exec_ext in '' $ac_executable_extensions; do
  4672. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4673. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4675. break 2
  4676. fi
  4677. done
  4678. done
  4679. IFS=$as_save_IFS
  4680. fi
  4681. fi
  4682. DUMPBIN=$ac_cv_prog_DUMPBIN
  4683. if test -n "$DUMPBIN"; then
  4684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4685. printf "%s\n" "$DUMPBIN" >&6; }
  4686. else
  4687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4688. printf "%s\n" "no" >&6; }
  4689. fi
  4690. test -n "$DUMPBIN" && break
  4691. done
  4692. fi
  4693. if test -z "$DUMPBIN"; then
  4694. ac_ct_DUMPBIN=$DUMPBIN
  4695. for ac_prog in dumpbin "link -dump"
  4696. do
  4697. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4698. set dummy $ac_prog; ac_word=$2
  4699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4700. printf %s "checking for $ac_word... " >&6; }
  4701. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4702. then :
  4703. printf %s "(cached) " >&6
  4704. else $as_nop
  4705. if test -n "$ac_ct_DUMPBIN"; then
  4706. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4707. else
  4708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4709. for as_dir in $PATH
  4710. do
  4711. IFS=$as_save_IFS
  4712. case $as_dir in #(((
  4713. '') as_dir=./ ;;
  4714. */) ;;
  4715. *) as_dir=$as_dir/ ;;
  4716. esac
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4719. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. done
  4725. IFS=$as_save_IFS
  4726. fi
  4727. fi
  4728. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4729. if test -n "$ac_ct_DUMPBIN"; then
  4730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4731. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4732. else
  4733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4734. printf "%s\n" "no" >&6; }
  4735. fi
  4736. test -n "$ac_ct_DUMPBIN" && break
  4737. done
  4738. if test "x$ac_ct_DUMPBIN" = x; then
  4739. DUMPBIN=":"
  4740. else
  4741. case $cross_compiling:$ac_tool_warned in
  4742. yes:)
  4743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4744. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4745. ac_tool_warned=yes ;;
  4746. esac
  4747. DUMPBIN=$ac_ct_DUMPBIN
  4748. fi
  4749. fi
  4750. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4751. *COFF*)
  4752. DUMPBIN="$DUMPBIN -symbols -headers"
  4753. ;;
  4754. *)
  4755. DUMPBIN=:
  4756. ;;
  4757. esac
  4758. fi
  4759. if test : != "$DUMPBIN"; then
  4760. NM=$DUMPBIN
  4761. fi
  4762. fi
  4763. test -z "$NM" && NM=nm
  4764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4765. printf %s "checking the name lister ($NM) interface... " >&6; }
  4766. if test ${lt_cv_nm_interface+y}
  4767. then :
  4768. printf %s "(cached) " >&6
  4769. else $as_nop
  4770. lt_cv_nm_interface="BSD nm"
  4771. echo "int some_variable = 0;" > conftest.$ac_ext
  4772. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4773. (eval "$ac_compile" 2>conftest.err)
  4774. cat conftest.err >&5
  4775. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4776. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4777. cat conftest.err >&5
  4778. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4779. cat conftest.out >&5
  4780. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4781. lt_cv_nm_interface="MS dumpbin"
  4782. fi
  4783. rm -f conftest*
  4784. fi
  4785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4786. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4788. printf %s "checking whether ln -s works... " >&6; }
  4789. LN_S=$as_ln_s
  4790. if test "$LN_S" = "ln -s"; then
  4791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4792. printf "%s\n" "yes" >&6; }
  4793. else
  4794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4795. printf "%s\n" "no, using $LN_S" >&6; }
  4796. fi
  4797. # find the maximum length of command line arguments
  4798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4799. printf %s "checking the maximum length of command line arguments... " >&6; }
  4800. if test ${lt_cv_sys_max_cmd_len+y}
  4801. then :
  4802. printf %s "(cached) " >&6
  4803. else $as_nop
  4804. i=0
  4805. teststring=ABCD
  4806. case $build_os in
  4807. msdosdjgpp*)
  4808. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4809. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4810. # during glob expansion). Even if it were fixed, the result of this
  4811. # check would be larger than it should be.
  4812. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4813. ;;
  4814. gnu*)
  4815. # Under GNU Hurd, this test is not required because there is
  4816. # no limit to the length of command line arguments.
  4817. # Libtool will interpret -1 as no limit whatsoever
  4818. lt_cv_sys_max_cmd_len=-1;
  4819. ;;
  4820. cygwin* | mingw* | cegcc*)
  4821. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4822. # about 5 minutes as the teststring grows exponentially.
  4823. # Worse, since 9x/ME are not pre-emptively multitasking,
  4824. # you end up with a "frozen" computer, even though with patience
  4825. # the test eventually succeeds (with a max line length of 256k).
  4826. # Instead, let's just punt: use the minimum linelength reported by
  4827. # all of the supported platforms: 8192 (on NT/2K/XP).
  4828. lt_cv_sys_max_cmd_len=8192;
  4829. ;;
  4830. mint*)
  4831. # On MiNT this can take a long time and run out of memory.
  4832. lt_cv_sys_max_cmd_len=8192;
  4833. ;;
  4834. amigaos*)
  4835. # On AmigaOS with pdksh, this test takes hours, literally.
  4836. # So we just punt and use a minimum line length of 8192.
  4837. lt_cv_sys_max_cmd_len=8192;
  4838. ;;
  4839. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4840. # This has been around since 386BSD, at least. Likely further.
  4841. if test -x /sbin/sysctl; then
  4842. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4843. elif test -x /usr/sbin/sysctl; then
  4844. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4845. else
  4846. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4847. fi
  4848. # And add a safety zone
  4849. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4850. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4851. ;;
  4852. interix*)
  4853. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4854. lt_cv_sys_max_cmd_len=196608
  4855. ;;
  4856. os2*)
  4857. # The test takes a long time on OS/2.
  4858. lt_cv_sys_max_cmd_len=8192
  4859. ;;
  4860. osf*)
  4861. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4862. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4863. # nice to cause kernel panics so lets avoid the loop below.
  4864. # First set a reasonable default.
  4865. lt_cv_sys_max_cmd_len=16384
  4866. #
  4867. if test -x /sbin/sysconfig; then
  4868. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4869. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4870. esac
  4871. fi
  4872. ;;
  4873. sco3.2v5*)
  4874. lt_cv_sys_max_cmd_len=102400
  4875. ;;
  4876. sysv5* | sco5v6* | sysv4.2uw2*)
  4877. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4878. if test -n "$kargmax"; then
  4879. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4880. else
  4881. lt_cv_sys_max_cmd_len=32768
  4882. fi
  4883. ;;
  4884. *)
  4885. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4886. if test -n "$lt_cv_sys_max_cmd_len" && \
  4887. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4888. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4889. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4890. else
  4891. # Make teststring a little bigger before we do anything with it.
  4892. # a 1K string should be a reasonable start.
  4893. for i in 1 2 3 4 5 6 7 8; do
  4894. teststring=$teststring$teststring
  4895. done
  4896. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4897. # If test is not a shell built-in, we'll probably end up computing a
  4898. # maximum length that is only half of the actual maximum length, but
  4899. # we can't tell.
  4900. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4901. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4902. test 17 != "$i" # 1/2 MB should be enough
  4903. do
  4904. i=`expr $i + 1`
  4905. teststring=$teststring$teststring
  4906. done
  4907. # Only check the string length outside the loop.
  4908. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4909. teststring=
  4910. # Add a significant safety factor because C++ compilers can tack on
  4911. # massive amounts of additional arguments before passing them to the
  4912. # linker. It appears as though 1/2 is a usable value.
  4913. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4914. fi
  4915. ;;
  4916. esac
  4917. fi
  4918. if test -n "$lt_cv_sys_max_cmd_len"; then
  4919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4920. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4921. else
  4922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4923. printf "%s\n" "none" >&6; }
  4924. fi
  4925. max_cmd_len=$lt_cv_sys_max_cmd_len
  4926. : ${CP="cp -f"}
  4927. : ${MV="mv -f"}
  4928. : ${RM="rm -f"}
  4929. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4930. lt_unset=unset
  4931. else
  4932. lt_unset=false
  4933. fi
  4934. # test EBCDIC or ASCII
  4935. case `echo X|tr X '\101'` in
  4936. A) # ASCII based system
  4937. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4938. lt_SP2NL='tr \040 \012'
  4939. lt_NL2SP='tr \015\012 \040\040'
  4940. ;;
  4941. *) # EBCDIC based system
  4942. lt_SP2NL='tr \100 \n'
  4943. lt_NL2SP='tr \r\n \100\100'
  4944. ;;
  4945. esac
  4946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4947. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4948. if test ${lt_cv_to_host_file_cmd+y}
  4949. then :
  4950. printf %s "(cached) " >&6
  4951. else $as_nop
  4952. case $host in
  4953. *-*-mingw* )
  4954. case $build in
  4955. *-*-mingw* ) # actually msys
  4956. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4957. ;;
  4958. *-*-cygwin* )
  4959. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4960. ;;
  4961. * ) # otherwise, assume *nix
  4962. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4963. ;;
  4964. esac
  4965. ;;
  4966. *-*-cygwin* )
  4967. case $build in
  4968. *-*-mingw* ) # actually msys
  4969. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4970. ;;
  4971. *-*-cygwin* )
  4972. lt_cv_to_host_file_cmd=func_convert_file_noop
  4973. ;;
  4974. * ) # otherwise, assume *nix
  4975. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4976. ;;
  4977. esac
  4978. ;;
  4979. * ) # unhandled hosts (and "normal" native builds)
  4980. lt_cv_to_host_file_cmd=func_convert_file_noop
  4981. ;;
  4982. esac
  4983. fi
  4984. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4986. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4988. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4989. if test ${lt_cv_to_tool_file_cmd+y}
  4990. then :
  4991. printf %s "(cached) " >&6
  4992. else $as_nop
  4993. #assume ordinary cross tools, or native build.
  4994. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4995. case $host in
  4996. *-*-mingw* )
  4997. case $build in
  4998. *-*-mingw* ) # actually msys
  4999. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5000. ;;
  5001. esac
  5002. ;;
  5003. esac
  5004. fi
  5005. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5007. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5009. printf %s "checking for $LD option to reload object files... " >&6; }
  5010. if test ${lt_cv_ld_reload_flag+y}
  5011. then :
  5012. printf %s "(cached) " >&6
  5013. else $as_nop
  5014. lt_cv_ld_reload_flag='-r'
  5015. fi
  5016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5017. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5018. reload_flag=$lt_cv_ld_reload_flag
  5019. case $reload_flag in
  5020. "" | " "*) ;;
  5021. *) reload_flag=" $reload_flag" ;;
  5022. esac
  5023. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5024. case $host_os in
  5025. cygwin* | mingw* | pw32* | cegcc*)
  5026. if test yes != "$GCC"; then
  5027. reload_cmds=false
  5028. fi
  5029. ;;
  5030. darwin*)
  5031. if test yes = "$GCC"; then
  5032. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5033. else
  5034. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5035. fi
  5036. ;;
  5037. esac
  5038. if test -n "$ac_tool_prefix"; then
  5039. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5040. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5042. printf %s "checking for $ac_word... " >&6; }
  5043. if test ${ac_cv_prog_OBJDUMP+y}
  5044. then :
  5045. printf %s "(cached) " >&6
  5046. else $as_nop
  5047. if test -n "$OBJDUMP"; then
  5048. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5049. else
  5050. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5051. for as_dir in $PATH
  5052. do
  5053. IFS=$as_save_IFS
  5054. case $as_dir in #(((
  5055. '') as_dir=./ ;;
  5056. */) ;;
  5057. *) as_dir=$as_dir/ ;;
  5058. esac
  5059. for ac_exec_ext in '' $ac_executable_extensions; do
  5060. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5061. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5063. break 2
  5064. fi
  5065. done
  5066. done
  5067. IFS=$as_save_IFS
  5068. fi
  5069. fi
  5070. OBJDUMP=$ac_cv_prog_OBJDUMP
  5071. if test -n "$OBJDUMP"; then
  5072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5073. printf "%s\n" "$OBJDUMP" >&6; }
  5074. else
  5075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5076. printf "%s\n" "no" >&6; }
  5077. fi
  5078. fi
  5079. if test -z "$ac_cv_prog_OBJDUMP"; then
  5080. ac_ct_OBJDUMP=$OBJDUMP
  5081. # Extract the first word of "objdump", so it can be a program name with args.
  5082. set dummy objdump; ac_word=$2
  5083. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5084. printf %s "checking for $ac_word... " >&6; }
  5085. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5086. then :
  5087. printf %s "(cached) " >&6
  5088. else $as_nop
  5089. if test -n "$ac_ct_OBJDUMP"; then
  5090. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5091. else
  5092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5093. for as_dir in $PATH
  5094. do
  5095. IFS=$as_save_IFS
  5096. case $as_dir in #(((
  5097. '') as_dir=./ ;;
  5098. */) ;;
  5099. *) as_dir=$as_dir/ ;;
  5100. esac
  5101. for ac_exec_ext in '' $ac_executable_extensions; do
  5102. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5103. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5104. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5105. break 2
  5106. fi
  5107. done
  5108. done
  5109. IFS=$as_save_IFS
  5110. fi
  5111. fi
  5112. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5113. if test -n "$ac_ct_OBJDUMP"; then
  5114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5115. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5116. else
  5117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5118. printf "%s\n" "no" >&6; }
  5119. fi
  5120. if test "x$ac_ct_OBJDUMP" = x; then
  5121. OBJDUMP="false"
  5122. else
  5123. case $cross_compiling:$ac_tool_warned in
  5124. yes:)
  5125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5126. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5127. ac_tool_warned=yes ;;
  5128. esac
  5129. OBJDUMP=$ac_ct_OBJDUMP
  5130. fi
  5131. else
  5132. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5133. fi
  5134. test -z "$OBJDUMP" && OBJDUMP=objdump
  5135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5136. printf %s "checking how to recognize dependent libraries... " >&6; }
  5137. if test ${lt_cv_deplibs_check_method+y}
  5138. then :
  5139. printf %s "(cached) " >&6
  5140. else $as_nop
  5141. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5142. lt_cv_file_magic_test_file=
  5143. lt_cv_deplibs_check_method='unknown'
  5144. # Need to set the preceding variable on all platforms that support
  5145. # interlibrary dependencies.
  5146. # 'none' -- dependencies not supported.
  5147. # 'unknown' -- same as none, but documents that we really don't know.
  5148. # 'pass_all' -- all dependencies passed with no checks.
  5149. # 'test_compile' -- check by making test program.
  5150. # 'file_magic [[regex]]' -- check by looking for files in library path
  5151. # that responds to the $file_magic_cmd with a given extended regex.
  5152. # If you have 'file' or equivalent on your system and you're not sure
  5153. # whether 'pass_all' will *always* work, you probably want this one.
  5154. case $host_os in
  5155. aix[4-9]*)
  5156. lt_cv_deplibs_check_method=pass_all
  5157. ;;
  5158. beos*)
  5159. lt_cv_deplibs_check_method=pass_all
  5160. ;;
  5161. bsdi[45]*)
  5162. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5163. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5164. lt_cv_file_magic_test_file=/shlib/libc.so
  5165. ;;
  5166. cygwin*)
  5167. # func_win32_libid is a shell function defined in ltmain.sh
  5168. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5169. lt_cv_file_magic_cmd='func_win32_libid'
  5170. lt_cv_deplibs_check_method=pass_all # SDL customization
  5171. ;;
  5172. mingw* | pw32*)
  5173. # Base MSYS/MinGW do not provide the 'file' command needed by
  5174. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5175. # unless we find 'file', for example because we are cross-compiling.
  5176. if ( file / ) >/dev/null 2>&1; then
  5177. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5178. lt_cv_file_magic_cmd='func_win32_libid'
  5179. else
  5180. # Keep this pattern in sync with the one in func_win32_libid.
  5181. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5182. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5183. fi
  5184. lt_cv_deplibs_check_method=pass_all # SDL customization
  5185. ;;
  5186. cegcc*)
  5187. # use the weaker test based on 'objdump'. See mingw*.
  5188. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5189. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5190. ;;
  5191. darwin* | rhapsody*)
  5192. lt_cv_deplibs_check_method=pass_all
  5193. ;;
  5194. freebsd* | dragonfly* | midnightbsd*)
  5195. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5196. case $host_cpu in
  5197. i*86 )
  5198. # Not sure whether the presence of OpenBSD here was a mistake.
  5199. # Let's accept both of them until this is cleared up.
  5200. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5201. lt_cv_file_magic_cmd=/usr/bin/file
  5202. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5203. ;;
  5204. esac
  5205. else
  5206. lt_cv_deplibs_check_method=pass_all
  5207. fi
  5208. ;;
  5209. haiku*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. hpux10.20* | hpux11*)
  5213. lt_cv_file_magic_cmd=/usr/bin/file
  5214. case $host_cpu in
  5215. ia64*)
  5216. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5217. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5218. ;;
  5219. hppa*64*)
  5220. 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]'
  5221. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5222. ;;
  5223. *)
  5224. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5225. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5226. ;;
  5227. esac
  5228. ;;
  5229. interix[3-9]*)
  5230. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5231. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5232. ;;
  5233. irix5* | irix6* | nonstopux*)
  5234. case $LD in
  5235. *-32|*"-32 ") libmagic=32-bit;;
  5236. *-n32|*"-n32 ") libmagic=N32;;
  5237. *-64|*"-64 ") libmagic=64-bit;;
  5238. *) libmagic=never-match;;
  5239. esac
  5240. lt_cv_deplibs_check_method=pass_all
  5241. ;;
  5242. # This must be glibc/ELF.
  5243. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246. netbsd*)
  5247. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5248. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5249. else
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5251. fi
  5252. ;;
  5253. newos6*)
  5254. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5255. lt_cv_file_magic_cmd=/usr/bin/file
  5256. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5257. ;;
  5258. *nto* | *qnx*)
  5259. lt_cv_deplibs_check_method=pass_all
  5260. ;;
  5261. openbsd* | bitrig*)
  5262. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5263. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5264. else
  5265. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5266. fi
  5267. ;;
  5268. osf3* | osf4* | osf5*)
  5269. lt_cv_deplibs_check_method=pass_all
  5270. ;;
  5271. rdos*)
  5272. lt_cv_deplibs_check_method=pass_all
  5273. ;;
  5274. solaris*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280. sysv4 | sysv4.3*)
  5281. case $host_vendor in
  5282. motorola)
  5283. 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]'
  5284. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5285. ;;
  5286. ncr)
  5287. lt_cv_deplibs_check_method=pass_all
  5288. ;;
  5289. sequent)
  5290. lt_cv_file_magic_cmd='/bin/file'
  5291. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5292. ;;
  5293. sni)
  5294. lt_cv_file_magic_cmd='/bin/file'
  5295. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5296. lt_cv_file_magic_test_file=/lib/libc.so
  5297. ;;
  5298. siemens)
  5299. lt_cv_deplibs_check_method=pass_all
  5300. ;;
  5301. pc)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. esac
  5305. ;;
  5306. tpf*)
  5307. lt_cv_deplibs_check_method=pass_all
  5308. ;;
  5309. os2*)
  5310. lt_cv_deplibs_check_method=pass_all
  5311. ;;
  5312. esac
  5313. fi
  5314. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5315. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5316. file_magic_glob=
  5317. want_nocaseglob=no
  5318. if test "$build" = "$host"; then
  5319. case $host_os in
  5320. mingw* | pw32*)
  5321. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5322. want_nocaseglob=yes
  5323. else
  5324. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5325. fi
  5326. ;;
  5327. esac
  5328. fi
  5329. file_magic_cmd=$lt_cv_file_magic_cmd
  5330. deplibs_check_method=$lt_cv_deplibs_check_method
  5331. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5332. if test -n "$ac_tool_prefix"; then
  5333. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5334. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5336. printf %s "checking for $ac_word... " >&6; }
  5337. if test ${ac_cv_prog_DLLTOOL+y}
  5338. then :
  5339. printf %s "(cached) " >&6
  5340. else $as_nop
  5341. if test -n "$DLLTOOL"; then
  5342. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5343. else
  5344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5345. for as_dir in $PATH
  5346. do
  5347. IFS=$as_save_IFS
  5348. case $as_dir in #(((
  5349. '') as_dir=./ ;;
  5350. */) ;;
  5351. *) as_dir=$as_dir/ ;;
  5352. esac
  5353. for ac_exec_ext in '' $ac_executable_extensions; do
  5354. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5355. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5356. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5357. break 2
  5358. fi
  5359. done
  5360. done
  5361. IFS=$as_save_IFS
  5362. fi
  5363. fi
  5364. DLLTOOL=$ac_cv_prog_DLLTOOL
  5365. if test -n "$DLLTOOL"; then
  5366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5367. printf "%s\n" "$DLLTOOL" >&6; }
  5368. else
  5369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5370. printf "%s\n" "no" >&6; }
  5371. fi
  5372. fi
  5373. if test -z "$ac_cv_prog_DLLTOOL"; then
  5374. ac_ct_DLLTOOL=$DLLTOOL
  5375. # Extract the first word of "dlltool", so it can be a program name with args.
  5376. set dummy dlltool; ac_word=$2
  5377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5378. printf %s "checking for $ac_word... " >&6; }
  5379. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5380. then :
  5381. printf %s "(cached) " >&6
  5382. else $as_nop
  5383. if test -n "$ac_ct_DLLTOOL"; then
  5384. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5385. else
  5386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5387. for as_dir in $PATH
  5388. do
  5389. IFS=$as_save_IFS
  5390. case $as_dir in #(((
  5391. '') as_dir=./ ;;
  5392. */) ;;
  5393. *) as_dir=$as_dir/ ;;
  5394. esac
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5397. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5398. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5407. if test -n "$ac_ct_DLLTOOL"; then
  5408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5409. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5410. else
  5411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. printf "%s\n" "no" >&6; }
  5413. fi
  5414. if test "x$ac_ct_DLLTOOL" = x; then
  5415. DLLTOOL="false"
  5416. else
  5417. case $cross_compiling:$ac_tool_warned in
  5418. yes:)
  5419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5420. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5421. ac_tool_warned=yes ;;
  5422. esac
  5423. DLLTOOL=$ac_ct_DLLTOOL
  5424. fi
  5425. else
  5426. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5427. fi
  5428. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5430. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5431. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5432. then :
  5433. printf %s "(cached) " >&6
  5434. else $as_nop
  5435. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5436. case $host_os in
  5437. cygwin* | mingw* | pw32* | cegcc*)
  5438. # two different shell functions defined in ltmain.sh;
  5439. # decide which one to use based on capabilities of $DLLTOOL
  5440. case `$DLLTOOL --help 2>&1` in
  5441. *--identify-strict*)
  5442. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5443. ;;
  5444. *)
  5445. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5446. ;;
  5447. esac
  5448. ;;
  5449. *)
  5450. # fallback: assume linklib IS sharedlib
  5451. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5452. ;;
  5453. esac
  5454. fi
  5455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5456. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5457. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5458. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5459. if test -n "$ac_tool_prefix"; then
  5460. for ac_prog in ar
  5461. do
  5462. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5463. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5465. printf %s "checking for $ac_word... " >&6; }
  5466. if test ${ac_cv_prog_AR+y}
  5467. then :
  5468. printf %s "(cached) " >&6
  5469. else $as_nop
  5470. if test -n "$AR"; then
  5471. ac_cv_prog_AR="$AR" # Let the user override the test.
  5472. else
  5473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5474. for as_dir in $PATH
  5475. do
  5476. IFS=$as_save_IFS
  5477. case $as_dir in #(((
  5478. '') as_dir=./ ;;
  5479. */) ;;
  5480. *) as_dir=$as_dir/ ;;
  5481. esac
  5482. for ac_exec_ext in '' $ac_executable_extensions; do
  5483. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5484. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5485. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5486. break 2
  5487. fi
  5488. done
  5489. done
  5490. IFS=$as_save_IFS
  5491. fi
  5492. fi
  5493. AR=$ac_cv_prog_AR
  5494. if test -n "$AR"; then
  5495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5496. printf "%s\n" "$AR" >&6; }
  5497. else
  5498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5499. printf "%s\n" "no" >&6; }
  5500. fi
  5501. test -n "$AR" && break
  5502. done
  5503. fi
  5504. if test -z "$AR"; then
  5505. ac_ct_AR=$AR
  5506. for ac_prog in ar
  5507. do
  5508. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5509. set dummy $ac_prog; ac_word=$2
  5510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5511. printf %s "checking for $ac_word... " >&6; }
  5512. if test ${ac_cv_prog_ac_ct_AR+y}
  5513. then :
  5514. printf %s "(cached) " >&6
  5515. else $as_nop
  5516. if test -n "$ac_ct_AR"; then
  5517. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5518. else
  5519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5520. for as_dir in $PATH
  5521. do
  5522. IFS=$as_save_IFS
  5523. case $as_dir in #(((
  5524. '') as_dir=./ ;;
  5525. */) ;;
  5526. *) as_dir=$as_dir/ ;;
  5527. esac
  5528. for ac_exec_ext in '' $ac_executable_extensions; do
  5529. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5530. ac_cv_prog_ac_ct_AR="$ac_prog"
  5531. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5532. break 2
  5533. fi
  5534. done
  5535. done
  5536. IFS=$as_save_IFS
  5537. fi
  5538. fi
  5539. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5540. if test -n "$ac_ct_AR"; then
  5541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5542. printf "%s\n" "$ac_ct_AR" >&6; }
  5543. else
  5544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5545. printf "%s\n" "no" >&6; }
  5546. fi
  5547. test -n "$ac_ct_AR" && break
  5548. done
  5549. if test "x$ac_ct_AR" = x; then
  5550. AR="false"
  5551. else
  5552. case $cross_compiling:$ac_tool_warned in
  5553. yes:)
  5554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5555. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5556. ac_tool_warned=yes ;;
  5557. esac
  5558. AR=$ac_ct_AR
  5559. fi
  5560. fi
  5561. : ${AR=ar}
  5562. : ${AR_FLAGS=cru}
  5563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5564. printf %s "checking for archiver @FILE support... " >&6; }
  5565. if test ${lt_cv_ar_at_file+y}
  5566. then :
  5567. printf %s "(cached) " >&6
  5568. else $as_nop
  5569. lt_cv_ar_at_file=no
  5570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5571. /* end confdefs.h. */
  5572. int
  5573. main (void)
  5574. {
  5575. ;
  5576. return 0;
  5577. }
  5578. _ACEOF
  5579. if ac_fn_c_try_compile "$LINENO"
  5580. then :
  5581. echo conftest.$ac_objext > conftest.lst
  5582. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5583. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5584. (eval $lt_ar_try) 2>&5
  5585. ac_status=$?
  5586. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5587. test $ac_status = 0; }
  5588. if test 0 -eq "$ac_status"; then
  5589. # Ensure the archiver fails upon bogus file names.
  5590. rm -f conftest.$ac_objext libconftest.a
  5591. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5592. (eval $lt_ar_try) 2>&5
  5593. ac_status=$?
  5594. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5595. test $ac_status = 0; }
  5596. if test 0 -ne "$ac_status"; then
  5597. lt_cv_ar_at_file=@
  5598. fi
  5599. fi
  5600. rm -f conftest.* libconftest.a
  5601. fi
  5602. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5603. fi
  5604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5605. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5606. if test no = "$lt_cv_ar_at_file"; then
  5607. archiver_list_spec=
  5608. else
  5609. archiver_list_spec=$lt_cv_ar_at_file
  5610. fi
  5611. if test -n "$ac_tool_prefix"; then
  5612. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5613. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5615. printf %s "checking for $ac_word... " >&6; }
  5616. if test ${ac_cv_prog_STRIP+y}
  5617. then :
  5618. printf %s "(cached) " >&6
  5619. else $as_nop
  5620. if test -n "$STRIP"; then
  5621. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5622. else
  5623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5624. for as_dir in $PATH
  5625. do
  5626. IFS=$as_save_IFS
  5627. case $as_dir in #(((
  5628. '') as_dir=./ ;;
  5629. */) ;;
  5630. *) as_dir=$as_dir/ ;;
  5631. esac
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5634. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. STRIP=$ac_cv_prog_STRIP
  5644. if test -n "$STRIP"; then
  5645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5646. printf "%s\n" "$STRIP" >&6; }
  5647. else
  5648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. printf "%s\n" "no" >&6; }
  5650. fi
  5651. fi
  5652. if test -z "$ac_cv_prog_STRIP"; then
  5653. ac_ct_STRIP=$STRIP
  5654. # Extract the first word of "strip", so it can be a program name with args.
  5655. set dummy strip; ac_word=$2
  5656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5657. printf %s "checking for $ac_word... " >&6; }
  5658. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5659. then :
  5660. printf %s "(cached) " >&6
  5661. else $as_nop
  5662. if test -n "$ac_ct_STRIP"; then
  5663. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5664. else
  5665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5666. for as_dir in $PATH
  5667. do
  5668. IFS=$as_save_IFS
  5669. case $as_dir in #(((
  5670. '') as_dir=./ ;;
  5671. */) ;;
  5672. *) as_dir=$as_dir/ ;;
  5673. esac
  5674. for ac_exec_ext in '' $ac_executable_extensions; do
  5675. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5676. ac_cv_prog_ac_ct_STRIP="strip"
  5677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5678. break 2
  5679. fi
  5680. done
  5681. done
  5682. IFS=$as_save_IFS
  5683. fi
  5684. fi
  5685. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5686. if test -n "$ac_ct_STRIP"; then
  5687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5688. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5689. else
  5690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5691. printf "%s\n" "no" >&6; }
  5692. fi
  5693. if test "x$ac_ct_STRIP" = x; then
  5694. STRIP=":"
  5695. else
  5696. case $cross_compiling:$ac_tool_warned in
  5697. yes:)
  5698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5699. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5700. ac_tool_warned=yes ;;
  5701. esac
  5702. STRIP=$ac_ct_STRIP
  5703. fi
  5704. else
  5705. STRIP="$ac_cv_prog_STRIP"
  5706. fi
  5707. test -z "$STRIP" && STRIP=:
  5708. if test -n "$ac_tool_prefix"; then
  5709. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5710. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5711. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. printf %s "checking for $ac_word... " >&6; }
  5713. if test ${ac_cv_prog_RANLIB+y}
  5714. then :
  5715. printf %s "(cached) " >&6
  5716. else $as_nop
  5717. if test -n "$RANLIB"; then
  5718. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5719. else
  5720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5721. for as_dir in $PATH
  5722. do
  5723. IFS=$as_save_IFS
  5724. case $as_dir in #(((
  5725. '') as_dir=./ ;;
  5726. */) ;;
  5727. *) as_dir=$as_dir/ ;;
  5728. esac
  5729. for ac_exec_ext in '' $ac_executable_extensions; do
  5730. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5731. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5732. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5733. break 2
  5734. fi
  5735. done
  5736. done
  5737. IFS=$as_save_IFS
  5738. fi
  5739. fi
  5740. RANLIB=$ac_cv_prog_RANLIB
  5741. if test -n "$RANLIB"; then
  5742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5743. printf "%s\n" "$RANLIB" >&6; }
  5744. else
  5745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5746. printf "%s\n" "no" >&6; }
  5747. fi
  5748. fi
  5749. if test -z "$ac_cv_prog_RANLIB"; then
  5750. ac_ct_RANLIB=$RANLIB
  5751. # Extract the first word of "ranlib", so it can be a program name with args.
  5752. set dummy ranlib; ac_word=$2
  5753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5754. printf %s "checking for $ac_word... " >&6; }
  5755. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5756. then :
  5757. printf %s "(cached) " >&6
  5758. else $as_nop
  5759. if test -n "$ac_ct_RANLIB"; then
  5760. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5761. else
  5762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5763. for as_dir in $PATH
  5764. do
  5765. IFS=$as_save_IFS
  5766. case $as_dir in #(((
  5767. '') as_dir=./ ;;
  5768. */) ;;
  5769. *) as_dir=$as_dir/ ;;
  5770. esac
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5774. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5783. if test -n "$ac_ct_RANLIB"; then
  5784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5785. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5786. else
  5787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. printf "%s\n" "no" >&6; }
  5789. fi
  5790. if test "x$ac_ct_RANLIB" = x; then
  5791. RANLIB=":"
  5792. else
  5793. case $cross_compiling:$ac_tool_warned in
  5794. yes:)
  5795. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5796. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5797. ac_tool_warned=yes ;;
  5798. esac
  5799. RANLIB=$ac_ct_RANLIB
  5800. fi
  5801. else
  5802. RANLIB="$ac_cv_prog_RANLIB"
  5803. fi
  5804. test -z "$RANLIB" && RANLIB=:
  5805. # Determine commands to create old-style static archives.
  5806. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5807. old_postinstall_cmds='chmod 644 $oldlib'
  5808. old_postuninstall_cmds=
  5809. if test -n "$RANLIB"; then
  5810. case $host_os in
  5811. bitrig* | openbsd*)
  5812. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5813. ;;
  5814. *)
  5815. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5816. ;;
  5817. esac
  5818. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5819. fi
  5820. case $host_os in
  5821. darwin*)
  5822. lock_old_archive_extraction=yes ;;
  5823. *)
  5824. lock_old_archive_extraction=no ;;
  5825. esac
  5826. for ac_prog in gawk mawk nawk awk
  5827. do
  5828. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5829. set dummy $ac_prog; ac_word=$2
  5830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5831. printf %s "checking for $ac_word... " >&6; }
  5832. if test ${ac_cv_prog_AWK+y}
  5833. then :
  5834. printf %s "(cached) " >&6
  5835. else $as_nop
  5836. if test -n "$AWK"; then
  5837. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. case $as_dir in #(((
  5844. '') as_dir=./ ;;
  5845. */) ;;
  5846. *) as_dir=$as_dir/ ;;
  5847. esac
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5850. ac_cv_prog_AWK="$ac_prog"
  5851. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. AWK=$ac_cv_prog_AWK
  5860. if test -n "$AWK"; then
  5861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5862. printf "%s\n" "$AWK" >&6; }
  5863. else
  5864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5865. printf "%s\n" "no" >&6; }
  5866. fi
  5867. test -n "$AWK" && break
  5868. done
  5869. # If no C compiler was specified, use CC.
  5870. LTCC=${LTCC-"$CC"}
  5871. # If no C compiler flags were specified, use CFLAGS.
  5872. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5873. # Allow CC to be a program name with arguments.
  5874. compiler=$CC
  5875. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5877. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5878. if test ${lt_cv_sys_global_symbol_pipe+y}
  5879. then :
  5880. printf %s "(cached) " >&6
  5881. else $as_nop
  5882. # These are sane defaults that work on at least a few old systems.
  5883. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5884. # Character class describing NM global symbol codes.
  5885. symcode='[BCDEGRST]'
  5886. # Regexp to match symbols that can be accessed directly from C.
  5887. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5888. # Define system-specific variables.
  5889. case $host_os in
  5890. aix*)
  5891. symcode='[BCDT]'
  5892. ;;
  5893. cygwin* | mingw* | pw32* | cegcc*)
  5894. symcode='[ABCDGISTW]'
  5895. ;;
  5896. hpux*)
  5897. if test ia64 = "$host_cpu"; then
  5898. symcode='[ABCDEGRST]'
  5899. fi
  5900. ;;
  5901. irix* | nonstopux*)
  5902. symcode='[BCDEGRST]'
  5903. ;;
  5904. osf*)
  5905. symcode='[BCDEGQRST]'
  5906. ;;
  5907. solaris*)
  5908. symcode='[BCDRT]'
  5909. ;;
  5910. sco3.2v5*)
  5911. symcode='[DT]'
  5912. ;;
  5913. sysv4.2uw2*)
  5914. symcode='[DT]'
  5915. ;;
  5916. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5917. symcode='[ABDT]'
  5918. ;;
  5919. sysv4)
  5920. symcode='[DFNSTU]'
  5921. ;;
  5922. esac
  5923. # If we're using GNU nm, then use its standard symbol codes.
  5924. case `$NM -V 2>&1` in
  5925. *GNU* | *'with BFD'*)
  5926. symcode='[ABCDGIRSTW]' ;;
  5927. esac
  5928. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5929. # Gets list of data symbols to import.
  5930. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5931. # Adjust the below global symbol transforms to fixup imported variables.
  5932. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5933. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5934. lt_c_name_lib_hook="\
  5935. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5936. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5937. else
  5938. # Disable hooks by default.
  5939. lt_cv_sys_global_symbol_to_import=
  5940. lt_cdecl_hook=
  5941. lt_c_name_hook=
  5942. lt_c_name_lib_hook=
  5943. fi
  5944. # Transform an extracted symbol line into a proper C declaration.
  5945. # Some systems (esp. on ia64) link data and code symbols differently,
  5946. # so use this general approach.
  5947. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5948. $lt_cdecl_hook\
  5949. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5950. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5951. # Transform an extracted symbol line into symbol name and symbol address
  5952. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5953. $lt_c_name_hook\
  5954. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5955. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5956. # Transform an extracted symbol line into symbol name with lib prefix and
  5957. # symbol address.
  5958. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5959. $lt_c_name_lib_hook\
  5960. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5961. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5962. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5963. # Handle CRLF in mingw tool chain
  5964. opt_cr=
  5965. case $build_os in
  5966. mingw*)
  5967. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5968. ;;
  5969. esac
  5970. # Try without a prefix underscore, then with it.
  5971. for ac_symprfx in "" "_"; do
  5972. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5973. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5974. # Write the raw and C identifiers.
  5975. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5976. # Fake it for dumpbin and say T for any non-static function,
  5977. # D for any global variable and I for any imported variable.
  5978. # Also find C++ and __fastcall symbols from MSVC++,
  5979. # which start with @ or ?.
  5980. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5981. " {last_section=section; section=\$ 3};"\
  5982. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5983. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5984. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5985. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5986. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5987. " \$ 0!~/External *\|/{next};"\
  5988. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5989. " {if(hide[section]) next};"\
  5990. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5991. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5992. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5993. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5994. " ' prfx=^$ac_symprfx"
  5995. else
  5996. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5997. fi
  5998. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5999. # Check to see that the pipe works correctly.
  6000. pipe_works=no
  6001. rm -f conftest*
  6002. cat > conftest.$ac_ext <<_LT_EOF
  6003. #ifdef __cplusplus
  6004. extern "C" {
  6005. #endif
  6006. char nm_test_var;
  6007. void nm_test_func(void);
  6008. void nm_test_func(void){}
  6009. #ifdef __cplusplus
  6010. }
  6011. #endif
  6012. int main(){nm_test_var='a';nm_test_func();return(0);}
  6013. _LT_EOF
  6014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6015. (eval $ac_compile) 2>&5
  6016. ac_status=$?
  6017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6018. test $ac_status = 0; }; then
  6019. # Now try to grab the symbols.
  6020. nlist=conftest.nm
  6021. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6022. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6023. ac_status=$?
  6024. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6025. test $ac_status = 0; } && test -s "$nlist"; then
  6026. # Try sorting and uniquifying the output.
  6027. if sort "$nlist" | uniq > "$nlist"T; then
  6028. mv -f "$nlist"T "$nlist"
  6029. else
  6030. rm -f "$nlist"T
  6031. fi
  6032. # Make sure that we snagged all the symbols we need.
  6033. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6034. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6035. cat <<_LT_EOF > conftest.$ac_ext
  6036. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6037. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6038. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6039. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6040. # define LT_DLSYM_CONST
  6041. #elif defined __osf__
  6042. /* This system does not cope well with relocations in const data. */
  6043. # define LT_DLSYM_CONST
  6044. #else
  6045. # define LT_DLSYM_CONST const
  6046. #endif
  6047. #ifdef __cplusplus
  6048. extern "C" {
  6049. #endif
  6050. _LT_EOF
  6051. # Now generate the symbol file.
  6052. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6053. cat <<_LT_EOF >> conftest.$ac_ext
  6054. /* The mapping between symbol names and symbols. */
  6055. LT_DLSYM_CONST struct {
  6056. const char *name;
  6057. void *address;
  6058. }
  6059. lt__PROGRAM__LTX_preloaded_symbols[] =
  6060. {
  6061. { "@PROGRAM@", (void *) 0 },
  6062. _LT_EOF
  6063. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6064. cat <<\_LT_EOF >> conftest.$ac_ext
  6065. {0, (void *) 0}
  6066. };
  6067. /* This works around a problem in FreeBSD linker */
  6068. #ifdef FREEBSD_WORKAROUND
  6069. static const void *lt_preloaded_setup() {
  6070. return lt__PROGRAM__LTX_preloaded_symbols;
  6071. }
  6072. #endif
  6073. #ifdef __cplusplus
  6074. }
  6075. #endif
  6076. _LT_EOF
  6077. # Now try linking the two files.
  6078. mv conftest.$ac_objext conftstm.$ac_objext
  6079. lt_globsym_save_LIBS=$LIBS
  6080. lt_globsym_save_CFLAGS=$CFLAGS
  6081. LIBS=conftstm.$ac_objext
  6082. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6084. (eval $ac_link) 2>&5
  6085. ac_status=$?
  6086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6087. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6088. pipe_works=yes
  6089. fi
  6090. LIBS=$lt_globsym_save_LIBS
  6091. CFLAGS=$lt_globsym_save_CFLAGS
  6092. else
  6093. echo "cannot find nm_test_func in $nlist" >&5
  6094. fi
  6095. else
  6096. echo "cannot find nm_test_var in $nlist" >&5
  6097. fi
  6098. else
  6099. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6100. fi
  6101. else
  6102. echo "$progname: failed program was:" >&5
  6103. cat conftest.$ac_ext >&5
  6104. fi
  6105. rm -rf conftest* conftst*
  6106. # Do not use the global_symbol_pipe unless it works.
  6107. if test yes = "$pipe_works"; then
  6108. break
  6109. else
  6110. lt_cv_sys_global_symbol_pipe=
  6111. fi
  6112. done
  6113. fi
  6114. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6115. lt_cv_sys_global_symbol_to_cdecl=
  6116. fi
  6117. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6119. printf "%s\n" "failed" >&6; }
  6120. else
  6121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6122. printf "%s\n" "ok" >&6; }
  6123. fi
  6124. # Response file support.
  6125. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6126. nm_file_list_spec='@'
  6127. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6128. nm_file_list_spec='@'
  6129. fi
  6130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6131. printf %s "checking for sysroot... " >&6; }
  6132. # Check whether --with-sysroot was given.
  6133. if test ${with_sysroot+y}
  6134. then :
  6135. withval=$with_sysroot;
  6136. else $as_nop
  6137. with_sysroot=no
  6138. fi
  6139. lt_sysroot=
  6140. case $with_sysroot in #(
  6141. yes)
  6142. if test yes = "$GCC"; then
  6143. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6144. fi
  6145. ;; #(
  6146. /*)
  6147. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6148. ;; #(
  6149. no|'')
  6150. ;; #(
  6151. *)
  6152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6153. printf "%s\n" "$with_sysroot" >&6; }
  6154. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6155. ;;
  6156. esac
  6157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6158. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6160. printf %s "checking for a working dd... " >&6; }
  6161. if test ${ac_cv_path_lt_DD+y}
  6162. then :
  6163. printf %s "(cached) " >&6
  6164. else $as_nop
  6165. printf 0123456789abcdef0123456789abcdef >conftest.i
  6166. cat conftest.i conftest.i >conftest2.i
  6167. : ${lt_DD:=$DD}
  6168. if test -z "$lt_DD"; then
  6169. ac_path_lt_DD_found=false
  6170. # Loop through the user's path and test for each of PROGNAME-LIST
  6171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6172. for as_dir in $PATH
  6173. do
  6174. IFS=$as_save_IFS
  6175. case $as_dir in #(((
  6176. '') as_dir=./ ;;
  6177. */) ;;
  6178. *) as_dir=$as_dir/ ;;
  6179. esac
  6180. for ac_prog in dd
  6181. do
  6182. for ac_exec_ext in '' $ac_executable_extensions; do
  6183. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6184. as_fn_executable_p "$ac_path_lt_DD" || continue
  6185. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6186. cmp -s conftest.i conftest.out \
  6187. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6188. fi
  6189. $ac_path_lt_DD_found && break 3
  6190. done
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. if test -z "$ac_cv_path_lt_DD"; then
  6195. :
  6196. fi
  6197. else
  6198. ac_cv_path_lt_DD=$lt_DD
  6199. fi
  6200. rm -f conftest.i conftest2.i conftest.out
  6201. fi
  6202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6203. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6205. printf %s "checking how to truncate binary pipes... " >&6; }
  6206. if test ${lt_cv_truncate_bin+y}
  6207. then :
  6208. printf %s "(cached) " >&6
  6209. else $as_nop
  6210. printf 0123456789abcdef0123456789abcdef >conftest.i
  6211. cat conftest.i conftest.i >conftest2.i
  6212. lt_cv_truncate_bin=
  6213. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6214. cmp -s conftest.i conftest.out \
  6215. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6216. fi
  6217. rm -f conftest.i conftest2.i conftest.out
  6218. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6219. fi
  6220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6221. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6222. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6223. func_cc_basename ()
  6224. {
  6225. for cc_temp in $*""; do
  6226. case $cc_temp in
  6227. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6228. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6229. \-*) ;;
  6230. *) break;;
  6231. esac
  6232. done
  6233. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6234. }
  6235. # Check whether --enable-libtool-lock was given.
  6236. if test ${enable_libtool_lock+y}
  6237. then :
  6238. enableval=$enable_libtool_lock;
  6239. fi
  6240. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6241. # Some flags need to be propagated to the compiler or linker for good
  6242. # libtool support.
  6243. case $host in
  6244. ia64-*-hpux*)
  6245. # Find out what ABI is being produced by ac_compile, and set mode
  6246. # options accordingly.
  6247. echo 'int i;' > conftest.$ac_ext
  6248. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6249. (eval $ac_compile) 2>&5
  6250. ac_status=$?
  6251. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6252. test $ac_status = 0; }; then
  6253. case `/usr/bin/file conftest.$ac_objext` in
  6254. *ELF-32*)
  6255. HPUX_IA64_MODE=32
  6256. ;;
  6257. *ELF-64*)
  6258. HPUX_IA64_MODE=64
  6259. ;;
  6260. esac
  6261. fi
  6262. rm -rf conftest*
  6263. ;;
  6264. *-*-irix6*)
  6265. # Find out what ABI is being produced by ac_compile, and set linker
  6266. # options accordingly.
  6267. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6269. (eval $ac_compile) 2>&5
  6270. ac_status=$?
  6271. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6272. test $ac_status = 0; }; then
  6273. if test yes = "$lt_cv_prog_gnu_ld"; then
  6274. case `/usr/bin/file conftest.$ac_objext` in
  6275. *32-bit*)
  6276. LD="${LD-ld} -melf32bsmip"
  6277. ;;
  6278. *N32*)
  6279. LD="${LD-ld} -melf32bmipn32"
  6280. ;;
  6281. *64-bit*)
  6282. LD="${LD-ld} -melf64bmip"
  6283. ;;
  6284. esac
  6285. else
  6286. case `/usr/bin/file conftest.$ac_objext` in
  6287. *32-bit*)
  6288. LD="${LD-ld} -32"
  6289. ;;
  6290. *N32*)
  6291. LD="${LD-ld} -n32"
  6292. ;;
  6293. *64-bit*)
  6294. LD="${LD-ld} -64"
  6295. ;;
  6296. esac
  6297. fi
  6298. fi
  6299. rm -rf conftest*
  6300. ;;
  6301. mips64*-*linux*)
  6302. # Find out what ABI is being produced by ac_compile, and set linker
  6303. # options accordingly.
  6304. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6305. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6306. (eval $ac_compile) 2>&5
  6307. ac_status=$?
  6308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6309. test $ac_status = 0; }; then
  6310. emul=elf
  6311. case `/usr/bin/file conftest.$ac_objext` in
  6312. *32-bit*)
  6313. emul="${emul}32"
  6314. ;;
  6315. *64-bit*)
  6316. emul="${emul}64"
  6317. ;;
  6318. esac
  6319. case `/usr/bin/file conftest.$ac_objext` in
  6320. *MSB*)
  6321. emul="${emul}btsmip"
  6322. ;;
  6323. *LSB*)
  6324. emul="${emul}ltsmip"
  6325. ;;
  6326. esac
  6327. case `/usr/bin/file conftest.$ac_objext` in
  6328. *N32*)
  6329. emul="${emul}n32"
  6330. ;;
  6331. esac
  6332. LD="${LD-ld} -m $emul"
  6333. fi
  6334. rm -rf conftest*
  6335. ;;
  6336. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6337. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6338. # Find out what ABI is being produced by ac_compile, and set linker
  6339. # options accordingly. Note that the listed cases only cover the
  6340. # situations where additional linker options are needed (such as when
  6341. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6342. # vice versa); the common cases where no linker options are needed do
  6343. # not appear in the list.
  6344. echo 'int i;' > conftest.$ac_ext
  6345. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6346. (eval $ac_compile) 2>&5
  6347. ac_status=$?
  6348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6349. test $ac_status = 0; }; then
  6350. case `/usr/bin/file conftest.o` in
  6351. *32-bit*)
  6352. case $host in
  6353. x86_64-*kfreebsd*-gnu)
  6354. LD="${LD-ld} -m elf_i386_fbsd"
  6355. ;;
  6356. x86_64-*linux*)
  6357. case `/usr/bin/file conftest.o` in
  6358. *x86-64*)
  6359. LD="${LD-ld} -m elf32_x86_64"
  6360. ;;
  6361. *)
  6362. LD="${LD-ld} -m elf_i386"
  6363. ;;
  6364. esac
  6365. ;;
  6366. powerpc64le-*linux*)
  6367. LD="${LD-ld} -m elf32lppclinux"
  6368. ;;
  6369. powerpc64-*linux*)
  6370. LD="${LD-ld} -m elf32ppclinux"
  6371. ;;
  6372. s390x-*linux*)
  6373. LD="${LD-ld} -m elf_s390"
  6374. ;;
  6375. sparc64-*linux*)
  6376. LD="${LD-ld} -m elf32_sparc"
  6377. ;;
  6378. esac
  6379. ;;
  6380. *64-bit*)
  6381. case $host in
  6382. x86_64-*kfreebsd*-gnu)
  6383. LD="${LD-ld} -m elf_x86_64_fbsd"
  6384. ;;
  6385. x86_64-*linux*)
  6386. LD="${LD-ld} -m elf_x86_64"
  6387. ;;
  6388. powerpcle-*linux*|powerpc64le-*linux*)
  6389. LD="${LD-ld} -m elf64lppc"
  6390. ;;
  6391. powerpc-*linux*|powerpc64-*linux*)
  6392. LD="${LD-ld} -m elf64ppc"
  6393. ;;
  6394. s390*-*linux*|s390*-*tpf*)
  6395. LD="${LD-ld} -m elf64_s390"
  6396. ;;
  6397. sparc*-*linux*)
  6398. LD="${LD-ld} -m elf64_sparc"
  6399. ;;
  6400. esac
  6401. ;;
  6402. esac
  6403. fi
  6404. rm -rf conftest*
  6405. ;;
  6406. *-*-sco3.2v5*)
  6407. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6408. SAVE_CFLAGS=$CFLAGS
  6409. CFLAGS="$CFLAGS -belf"
  6410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6411. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6412. if test ${lt_cv_cc_needs_belf+y}
  6413. then :
  6414. printf %s "(cached) " >&6
  6415. else $as_nop
  6416. ac_ext=c
  6417. ac_cpp='$CPP $CPPFLAGS'
  6418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6422. /* end confdefs.h. */
  6423. int
  6424. main (void)
  6425. {
  6426. ;
  6427. return 0;
  6428. }
  6429. _ACEOF
  6430. if ac_fn_c_try_link "$LINENO"
  6431. then :
  6432. lt_cv_cc_needs_belf=yes
  6433. else $as_nop
  6434. lt_cv_cc_needs_belf=no
  6435. fi
  6436. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6437. conftest$ac_exeext conftest.$ac_ext
  6438. ac_ext=c
  6439. ac_cpp='$CPP $CPPFLAGS'
  6440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6443. fi
  6444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6445. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6446. if test yes != "$lt_cv_cc_needs_belf"; then
  6447. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6448. CFLAGS=$SAVE_CFLAGS
  6449. fi
  6450. ;;
  6451. *-*solaris*)
  6452. # Find out what ABI is being produced by ac_compile, and set linker
  6453. # options accordingly.
  6454. echo 'int i;' > conftest.$ac_ext
  6455. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6456. (eval $ac_compile) 2>&5
  6457. ac_status=$?
  6458. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6459. test $ac_status = 0; }; then
  6460. case `/usr/bin/file conftest.o` in
  6461. *64-bit*)
  6462. case $lt_cv_prog_gnu_ld in
  6463. yes*)
  6464. case $host in
  6465. i?86-*-solaris*|x86_64-*-solaris*)
  6466. LD="${LD-ld} -m elf_x86_64"
  6467. ;;
  6468. sparc*-*-solaris*)
  6469. LD="${LD-ld} -m elf64_sparc"
  6470. ;;
  6471. esac
  6472. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6473. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6474. LD=${LD-ld}_sol2
  6475. fi
  6476. ;;
  6477. *)
  6478. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6479. LD="${LD-ld} -64"
  6480. fi
  6481. ;;
  6482. esac
  6483. ;;
  6484. esac
  6485. fi
  6486. rm -rf conftest*
  6487. ;;
  6488. esac
  6489. need_locks=$enable_libtool_lock
  6490. if test -n "$ac_tool_prefix"; then
  6491. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6492. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6494. printf %s "checking for $ac_word... " >&6; }
  6495. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6496. then :
  6497. printf %s "(cached) " >&6
  6498. else $as_nop
  6499. if test -n "$MANIFEST_TOOL"; then
  6500. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. case $as_dir in #(((
  6507. '') as_dir=./ ;;
  6508. */) ;;
  6509. *) as_dir=$as_dir/ ;;
  6510. esac
  6511. for ac_exec_ext in '' $ac_executable_extensions; do
  6512. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6513. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6514. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6515. break 2
  6516. fi
  6517. done
  6518. done
  6519. IFS=$as_save_IFS
  6520. fi
  6521. fi
  6522. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6523. if test -n "$MANIFEST_TOOL"; then
  6524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6525. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6526. else
  6527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6528. printf "%s\n" "no" >&6; }
  6529. fi
  6530. fi
  6531. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6532. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6533. # Extract the first word of "mt", so it can be a program name with args.
  6534. set dummy mt; ac_word=$2
  6535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6536. printf %s "checking for $ac_word... " >&6; }
  6537. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6538. then :
  6539. printf %s "(cached) " >&6
  6540. else $as_nop
  6541. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6542. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6543. else
  6544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6545. for as_dir in $PATH
  6546. do
  6547. IFS=$as_save_IFS
  6548. case $as_dir in #(((
  6549. '') as_dir=./ ;;
  6550. */) ;;
  6551. *) as_dir=$as_dir/ ;;
  6552. esac
  6553. for ac_exec_ext in '' $ac_executable_extensions; do
  6554. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6555. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6556. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6557. break 2
  6558. fi
  6559. done
  6560. done
  6561. IFS=$as_save_IFS
  6562. fi
  6563. fi
  6564. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6565. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6567. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6568. else
  6569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6570. printf "%s\n" "no" >&6; }
  6571. fi
  6572. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6573. MANIFEST_TOOL=":"
  6574. else
  6575. case $cross_compiling:$ac_tool_warned in
  6576. yes:)
  6577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6578. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6579. ac_tool_warned=yes ;;
  6580. esac
  6581. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6582. fi
  6583. else
  6584. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6585. fi
  6586. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6588. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6589. if test ${lt_cv_path_mainfest_tool+y}
  6590. then :
  6591. printf %s "(cached) " >&6
  6592. else $as_nop
  6593. lt_cv_path_mainfest_tool=no
  6594. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6595. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6596. cat conftest.err >&5
  6597. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6598. lt_cv_path_mainfest_tool=yes
  6599. fi
  6600. rm -f conftest*
  6601. fi
  6602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6603. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6604. if test yes != "$lt_cv_path_mainfest_tool"; then
  6605. MANIFEST_TOOL=:
  6606. fi
  6607. case $host_os in
  6608. rhapsody* | darwin*)
  6609. if test -n "$ac_tool_prefix"; then
  6610. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6611. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6613. printf %s "checking for $ac_word... " >&6; }
  6614. if test ${ac_cv_prog_DSYMUTIL+y}
  6615. then :
  6616. printf %s "(cached) " >&6
  6617. else $as_nop
  6618. if test -n "$DSYMUTIL"; then
  6619. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6620. else
  6621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6622. for as_dir in $PATH
  6623. do
  6624. IFS=$as_save_IFS
  6625. case $as_dir in #(((
  6626. '') as_dir=./ ;;
  6627. */) ;;
  6628. *) as_dir=$as_dir/ ;;
  6629. esac
  6630. for ac_exec_ext in '' $ac_executable_extensions; do
  6631. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6632. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6633. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6634. break 2
  6635. fi
  6636. done
  6637. done
  6638. IFS=$as_save_IFS
  6639. fi
  6640. fi
  6641. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6642. if test -n "$DSYMUTIL"; then
  6643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6644. printf "%s\n" "$DSYMUTIL" >&6; }
  6645. else
  6646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6647. printf "%s\n" "no" >&6; }
  6648. fi
  6649. fi
  6650. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6651. ac_ct_DSYMUTIL=$DSYMUTIL
  6652. # Extract the first word of "dsymutil", so it can be a program name with args.
  6653. set dummy dsymutil; ac_word=$2
  6654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6655. printf %s "checking for $ac_word... " >&6; }
  6656. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6657. then :
  6658. printf %s "(cached) " >&6
  6659. else $as_nop
  6660. if test -n "$ac_ct_DSYMUTIL"; then
  6661. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6662. else
  6663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. for as_dir in $PATH
  6665. do
  6666. IFS=$as_save_IFS
  6667. case $as_dir in #(((
  6668. '') as_dir=./ ;;
  6669. */) ;;
  6670. *) as_dir=$as_dir/ ;;
  6671. esac
  6672. for ac_exec_ext in '' $ac_executable_extensions; do
  6673. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6674. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6676. break 2
  6677. fi
  6678. done
  6679. done
  6680. IFS=$as_save_IFS
  6681. fi
  6682. fi
  6683. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6684. if test -n "$ac_ct_DSYMUTIL"; then
  6685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6686. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6687. else
  6688. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6689. printf "%s\n" "no" >&6; }
  6690. fi
  6691. if test "x$ac_ct_DSYMUTIL" = x; then
  6692. DSYMUTIL=":"
  6693. else
  6694. case $cross_compiling:$ac_tool_warned in
  6695. yes:)
  6696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6697. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6698. ac_tool_warned=yes ;;
  6699. esac
  6700. DSYMUTIL=$ac_ct_DSYMUTIL
  6701. fi
  6702. else
  6703. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6704. fi
  6705. if test -n "$ac_tool_prefix"; then
  6706. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6707. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6708. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6709. printf %s "checking for $ac_word... " >&6; }
  6710. if test ${ac_cv_prog_NMEDIT+y}
  6711. then :
  6712. printf %s "(cached) " >&6
  6713. else $as_nop
  6714. if test -n "$NMEDIT"; then
  6715. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6716. else
  6717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6718. for as_dir in $PATH
  6719. do
  6720. IFS=$as_save_IFS
  6721. case $as_dir in #(((
  6722. '') as_dir=./ ;;
  6723. */) ;;
  6724. *) as_dir=$as_dir/ ;;
  6725. esac
  6726. for ac_exec_ext in '' $ac_executable_extensions; do
  6727. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6728. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6729. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6730. break 2
  6731. fi
  6732. done
  6733. done
  6734. IFS=$as_save_IFS
  6735. fi
  6736. fi
  6737. NMEDIT=$ac_cv_prog_NMEDIT
  6738. if test -n "$NMEDIT"; then
  6739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6740. printf "%s\n" "$NMEDIT" >&6; }
  6741. else
  6742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6743. printf "%s\n" "no" >&6; }
  6744. fi
  6745. fi
  6746. if test -z "$ac_cv_prog_NMEDIT"; then
  6747. ac_ct_NMEDIT=$NMEDIT
  6748. # Extract the first word of "nmedit", so it can be a program name with args.
  6749. set dummy nmedit; ac_word=$2
  6750. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6751. printf %s "checking for $ac_word... " >&6; }
  6752. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6753. then :
  6754. printf %s "(cached) " >&6
  6755. else $as_nop
  6756. if test -n "$ac_ct_NMEDIT"; then
  6757. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6758. else
  6759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6760. for as_dir in $PATH
  6761. do
  6762. IFS=$as_save_IFS
  6763. case $as_dir in #(((
  6764. '') as_dir=./ ;;
  6765. */) ;;
  6766. *) as_dir=$as_dir/ ;;
  6767. esac
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6770. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6771. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6772. break 2
  6773. fi
  6774. done
  6775. done
  6776. IFS=$as_save_IFS
  6777. fi
  6778. fi
  6779. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6780. if test -n "$ac_ct_NMEDIT"; then
  6781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6782. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6783. else
  6784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. printf "%s\n" "no" >&6; }
  6786. fi
  6787. if test "x$ac_ct_NMEDIT" = x; then
  6788. NMEDIT=":"
  6789. else
  6790. case $cross_compiling:$ac_tool_warned in
  6791. yes:)
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6793. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6794. ac_tool_warned=yes ;;
  6795. esac
  6796. NMEDIT=$ac_ct_NMEDIT
  6797. fi
  6798. else
  6799. NMEDIT="$ac_cv_prog_NMEDIT"
  6800. fi
  6801. if test -n "$ac_tool_prefix"; then
  6802. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6803. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6805. printf %s "checking for $ac_word... " >&6; }
  6806. if test ${ac_cv_prog_LIPO+y}
  6807. then :
  6808. printf %s "(cached) " >&6
  6809. else $as_nop
  6810. if test -n "$LIPO"; then
  6811. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6812. else
  6813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6814. for as_dir in $PATH
  6815. do
  6816. IFS=$as_save_IFS
  6817. case $as_dir in #(((
  6818. '') as_dir=./ ;;
  6819. */) ;;
  6820. *) as_dir=$as_dir/ ;;
  6821. esac
  6822. for ac_exec_ext in '' $ac_executable_extensions; do
  6823. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6824. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6825. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6826. break 2
  6827. fi
  6828. done
  6829. done
  6830. IFS=$as_save_IFS
  6831. fi
  6832. fi
  6833. LIPO=$ac_cv_prog_LIPO
  6834. if test -n "$LIPO"; then
  6835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6836. printf "%s\n" "$LIPO" >&6; }
  6837. else
  6838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6839. printf "%s\n" "no" >&6; }
  6840. fi
  6841. fi
  6842. if test -z "$ac_cv_prog_LIPO"; then
  6843. ac_ct_LIPO=$LIPO
  6844. # Extract the first word of "lipo", so it can be a program name with args.
  6845. set dummy lipo; ac_word=$2
  6846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6847. printf %s "checking for $ac_word... " >&6; }
  6848. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6849. then :
  6850. printf %s "(cached) " >&6
  6851. else $as_nop
  6852. if test -n "$ac_ct_LIPO"; then
  6853. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6854. else
  6855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6856. for as_dir in $PATH
  6857. do
  6858. IFS=$as_save_IFS
  6859. case $as_dir in #(((
  6860. '') as_dir=./ ;;
  6861. */) ;;
  6862. *) as_dir=$as_dir/ ;;
  6863. esac
  6864. for ac_exec_ext in '' $ac_executable_extensions; do
  6865. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6866. ac_cv_prog_ac_ct_LIPO="lipo"
  6867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6868. break 2
  6869. fi
  6870. done
  6871. done
  6872. IFS=$as_save_IFS
  6873. fi
  6874. fi
  6875. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6876. if test -n "$ac_ct_LIPO"; then
  6877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6878. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6879. else
  6880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. printf "%s\n" "no" >&6; }
  6882. fi
  6883. if test "x$ac_ct_LIPO" = x; then
  6884. LIPO=":"
  6885. else
  6886. case $cross_compiling:$ac_tool_warned in
  6887. yes:)
  6888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6889. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6890. ac_tool_warned=yes ;;
  6891. esac
  6892. LIPO=$ac_ct_LIPO
  6893. fi
  6894. else
  6895. LIPO="$ac_cv_prog_LIPO"
  6896. fi
  6897. if test -n "$ac_tool_prefix"; then
  6898. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6899. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6901. printf %s "checking for $ac_word... " >&6; }
  6902. if test ${ac_cv_prog_OTOOL+y}
  6903. then :
  6904. printf %s "(cached) " >&6
  6905. else $as_nop
  6906. if test -n "$OTOOL"; then
  6907. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6908. else
  6909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6910. for as_dir in $PATH
  6911. do
  6912. IFS=$as_save_IFS
  6913. case $as_dir in #(((
  6914. '') as_dir=./ ;;
  6915. */) ;;
  6916. *) as_dir=$as_dir/ ;;
  6917. esac
  6918. for ac_exec_ext in '' $ac_executable_extensions; do
  6919. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6920. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6921. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6922. break 2
  6923. fi
  6924. done
  6925. done
  6926. IFS=$as_save_IFS
  6927. fi
  6928. fi
  6929. OTOOL=$ac_cv_prog_OTOOL
  6930. if test -n "$OTOOL"; then
  6931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6932. printf "%s\n" "$OTOOL" >&6; }
  6933. else
  6934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6935. printf "%s\n" "no" >&6; }
  6936. fi
  6937. fi
  6938. if test -z "$ac_cv_prog_OTOOL"; then
  6939. ac_ct_OTOOL=$OTOOL
  6940. # Extract the first word of "otool", so it can be a program name with args.
  6941. set dummy otool; ac_word=$2
  6942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6943. printf %s "checking for $ac_word... " >&6; }
  6944. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6945. then :
  6946. printf %s "(cached) " >&6
  6947. else $as_nop
  6948. if test -n "$ac_ct_OTOOL"; then
  6949. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6950. else
  6951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6952. for as_dir in $PATH
  6953. do
  6954. IFS=$as_save_IFS
  6955. case $as_dir in #(((
  6956. '') as_dir=./ ;;
  6957. */) ;;
  6958. *) as_dir=$as_dir/ ;;
  6959. esac
  6960. for ac_exec_ext in '' $ac_executable_extensions; do
  6961. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6962. ac_cv_prog_ac_ct_OTOOL="otool"
  6963. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6964. break 2
  6965. fi
  6966. done
  6967. done
  6968. IFS=$as_save_IFS
  6969. fi
  6970. fi
  6971. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6972. if test -n "$ac_ct_OTOOL"; then
  6973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6974. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6975. else
  6976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6977. printf "%s\n" "no" >&6; }
  6978. fi
  6979. if test "x$ac_ct_OTOOL" = x; then
  6980. OTOOL=":"
  6981. else
  6982. case $cross_compiling:$ac_tool_warned in
  6983. yes:)
  6984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6985. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6986. ac_tool_warned=yes ;;
  6987. esac
  6988. OTOOL=$ac_ct_OTOOL
  6989. fi
  6990. else
  6991. OTOOL="$ac_cv_prog_OTOOL"
  6992. fi
  6993. if test -n "$ac_tool_prefix"; then
  6994. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6995. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6997. printf %s "checking for $ac_word... " >&6; }
  6998. if test ${ac_cv_prog_OTOOL64+y}
  6999. then :
  7000. printf %s "(cached) " >&6
  7001. else $as_nop
  7002. if test -n "$OTOOL64"; then
  7003. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7004. else
  7005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7006. for as_dir in $PATH
  7007. do
  7008. IFS=$as_save_IFS
  7009. case $as_dir in #(((
  7010. '') as_dir=./ ;;
  7011. */) ;;
  7012. *) as_dir=$as_dir/ ;;
  7013. esac
  7014. for ac_exec_ext in '' $ac_executable_extensions; do
  7015. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7016. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7018. break 2
  7019. fi
  7020. done
  7021. done
  7022. IFS=$as_save_IFS
  7023. fi
  7024. fi
  7025. OTOOL64=$ac_cv_prog_OTOOL64
  7026. if test -n "$OTOOL64"; then
  7027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7028. printf "%s\n" "$OTOOL64" >&6; }
  7029. else
  7030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7031. printf "%s\n" "no" >&6; }
  7032. fi
  7033. fi
  7034. if test -z "$ac_cv_prog_OTOOL64"; then
  7035. ac_ct_OTOOL64=$OTOOL64
  7036. # Extract the first word of "otool64", so it can be a program name with args.
  7037. set dummy otool64; ac_word=$2
  7038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7039. printf %s "checking for $ac_word... " >&6; }
  7040. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7041. then :
  7042. printf %s "(cached) " >&6
  7043. else $as_nop
  7044. if test -n "$ac_ct_OTOOL64"; then
  7045. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7046. else
  7047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7048. for as_dir in $PATH
  7049. do
  7050. IFS=$as_save_IFS
  7051. case $as_dir in #(((
  7052. '') as_dir=./ ;;
  7053. */) ;;
  7054. *) as_dir=$as_dir/ ;;
  7055. esac
  7056. for ac_exec_ext in '' $ac_executable_extensions; do
  7057. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7058. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7059. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7060. break 2
  7061. fi
  7062. done
  7063. done
  7064. IFS=$as_save_IFS
  7065. fi
  7066. fi
  7067. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7068. if test -n "$ac_ct_OTOOL64"; then
  7069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7070. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7071. else
  7072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7073. printf "%s\n" "no" >&6; }
  7074. fi
  7075. if test "x$ac_ct_OTOOL64" = x; then
  7076. OTOOL64=":"
  7077. else
  7078. case $cross_compiling:$ac_tool_warned in
  7079. yes:)
  7080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7081. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7082. ac_tool_warned=yes ;;
  7083. esac
  7084. OTOOL64=$ac_ct_OTOOL64
  7085. fi
  7086. else
  7087. OTOOL64="$ac_cv_prog_OTOOL64"
  7088. fi
  7089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7090. printf %s "checking for -single_module linker flag... " >&6; }
  7091. if test ${lt_cv_apple_cc_single_mod+y}
  7092. then :
  7093. printf %s "(cached) " >&6
  7094. else $as_nop
  7095. lt_cv_apple_cc_single_mod=no
  7096. if test -z "$LT_MULTI_MODULE"; then
  7097. # By default we will add the -single_module flag. You can override
  7098. # by either setting the environment variable LT_MULTI_MODULE
  7099. # non-empty at configure time, or by adding -multi_module to the
  7100. # link flags.
  7101. rm -rf libconftest.dylib*
  7102. echo "int foo(void){return 1;}" > conftest.c
  7103. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7104. -dynamiclib -Wl,-single_module conftest.c" >&5
  7105. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7106. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7107. _lt_result=$?
  7108. # If there is a non-empty error log, and "single_module"
  7109. # appears in it, assume the flag caused a linker warning
  7110. if test -s conftest.err && $GREP single_module conftest.err; then
  7111. cat conftest.err >&5
  7112. # Otherwise, if the output was created with a 0 exit code from
  7113. # the compiler, it worked.
  7114. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7115. lt_cv_apple_cc_single_mod=yes
  7116. else
  7117. cat conftest.err >&5
  7118. fi
  7119. rm -rf libconftest.dylib*
  7120. rm -f conftest.*
  7121. fi
  7122. fi
  7123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7124. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7126. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7127. if test ${lt_cv_ld_exported_symbols_list+y}
  7128. then :
  7129. printf %s "(cached) " >&6
  7130. else $as_nop
  7131. lt_cv_ld_exported_symbols_list=no
  7132. save_LDFLAGS=$LDFLAGS
  7133. echo "_main" > conftest.sym
  7134. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7136. /* end confdefs.h. */
  7137. int
  7138. main (void)
  7139. {
  7140. ;
  7141. return 0;
  7142. }
  7143. _ACEOF
  7144. if ac_fn_c_try_link "$LINENO"
  7145. then :
  7146. lt_cv_ld_exported_symbols_list=yes
  7147. else $as_nop
  7148. lt_cv_ld_exported_symbols_list=no
  7149. fi
  7150. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7151. conftest$ac_exeext conftest.$ac_ext
  7152. LDFLAGS=$save_LDFLAGS
  7153. fi
  7154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7155. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7157. printf %s "checking for -force_load linker flag... " >&6; }
  7158. if test ${lt_cv_ld_force_load+y}
  7159. then :
  7160. printf %s "(cached) " >&6
  7161. else $as_nop
  7162. lt_cv_ld_force_load=no
  7163. cat > conftest.c << _LT_EOF
  7164. int forced_loaded() { return 2;}
  7165. _LT_EOF
  7166. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7167. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7168. echo "$AR cru libconftest.a conftest.o" >&5
  7169. $AR cru libconftest.a conftest.o 2>&5
  7170. echo "$RANLIB libconftest.a" >&5
  7171. $RANLIB libconftest.a 2>&5
  7172. cat > conftest.c << _LT_EOF
  7173. int main() { return 0;}
  7174. _LT_EOF
  7175. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7176. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7177. _lt_result=$?
  7178. if test -s conftest.err && $GREP force_load conftest.err; then
  7179. cat conftest.err >&5
  7180. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7181. lt_cv_ld_force_load=yes
  7182. else
  7183. cat conftest.err >&5
  7184. fi
  7185. rm -f conftest.err libconftest.a conftest conftest.c
  7186. rm -rf conftest.dSYM
  7187. fi
  7188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7189. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7190. case $host_os in
  7191. rhapsody* | darwin1.[012])
  7192. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7193. darwin1.*)
  7194. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7195. darwin*)
  7196. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7197. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7198. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7199. *)
  7200. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7201. esac
  7202. ;;
  7203. esac
  7204. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7205. _lt_dar_single_mod='$single_module'
  7206. fi
  7207. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7208. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7209. else
  7210. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7211. fi
  7212. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7213. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7214. else
  7215. _lt_dsymutil=
  7216. fi
  7217. ;;
  7218. esac
  7219. # func_munge_path_list VARIABLE PATH
  7220. # -----------------------------------
  7221. # VARIABLE is name of variable containing _space_ separated list of
  7222. # directories to be munged by the contents of PATH, which is string
  7223. # having a format:
  7224. # "DIR[:DIR]:"
  7225. # string "DIR[ DIR]" will be prepended to VARIABLE
  7226. # ":DIR[:DIR]"
  7227. # string "DIR[ DIR]" will be appended to VARIABLE
  7228. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7229. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7230. # "DIRA[ DIRA]" will be appended to VARIABLE
  7231. # "DIR[:DIR]"
  7232. # VARIABLE will be replaced by "DIR[ DIR]"
  7233. func_munge_path_list ()
  7234. {
  7235. case x$2 in
  7236. x)
  7237. ;;
  7238. *:)
  7239. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7240. ;;
  7241. x:*)
  7242. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7243. ;;
  7244. *::*)
  7245. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7246. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7247. ;;
  7248. *)
  7249. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7250. ;;
  7251. esac
  7252. }
  7253. ac_header= ac_cache=
  7254. for ac_item in $ac_header_c_list
  7255. do
  7256. if test $ac_cache; then
  7257. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7258. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7259. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7260. fi
  7261. ac_header= ac_cache=
  7262. elif test $ac_header; then
  7263. ac_cache=$ac_item
  7264. else
  7265. ac_header=$ac_item
  7266. fi
  7267. done
  7268. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7269. then :
  7270. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7271. fi
  7272. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7273. "
  7274. if test "x$ac_cv_header_dlfcn_h" = xyes
  7275. then :
  7276. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7277. fi
  7278. # Set options
  7279. enable_win32_dll=yes
  7280. case $host in
  7281. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7282. if test -n "$ac_tool_prefix"; then
  7283. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7284. set dummy ${ac_tool_prefix}as; ac_word=$2
  7285. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7286. printf %s "checking for $ac_word... " >&6; }
  7287. if test ${ac_cv_prog_AS+y}
  7288. then :
  7289. printf %s "(cached) " >&6
  7290. else $as_nop
  7291. if test -n "$AS"; then
  7292. ac_cv_prog_AS="$AS" # Let the user override the test.
  7293. else
  7294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7295. for as_dir in $PATH
  7296. do
  7297. IFS=$as_save_IFS
  7298. case $as_dir in #(((
  7299. '') as_dir=./ ;;
  7300. */) ;;
  7301. *) as_dir=$as_dir/ ;;
  7302. esac
  7303. for ac_exec_ext in '' $ac_executable_extensions; do
  7304. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7305. ac_cv_prog_AS="${ac_tool_prefix}as"
  7306. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7307. break 2
  7308. fi
  7309. done
  7310. done
  7311. IFS=$as_save_IFS
  7312. fi
  7313. fi
  7314. AS=$ac_cv_prog_AS
  7315. if test -n "$AS"; then
  7316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7317. printf "%s\n" "$AS" >&6; }
  7318. else
  7319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7320. printf "%s\n" "no" >&6; }
  7321. fi
  7322. fi
  7323. if test -z "$ac_cv_prog_AS"; then
  7324. ac_ct_AS=$AS
  7325. # Extract the first word of "as", so it can be a program name with args.
  7326. set dummy as; ac_word=$2
  7327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7328. printf %s "checking for $ac_word... " >&6; }
  7329. if test ${ac_cv_prog_ac_ct_AS+y}
  7330. then :
  7331. printf %s "(cached) " >&6
  7332. else $as_nop
  7333. if test -n "$ac_ct_AS"; then
  7334. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7335. else
  7336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339. IFS=$as_save_IFS
  7340. case $as_dir in #(((
  7341. '') as_dir=./ ;;
  7342. */) ;;
  7343. *) as_dir=$as_dir/ ;;
  7344. esac
  7345. for ac_exec_ext in '' $ac_executable_extensions; do
  7346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7347. ac_cv_prog_ac_ct_AS="as"
  7348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7349. break 2
  7350. fi
  7351. done
  7352. done
  7353. IFS=$as_save_IFS
  7354. fi
  7355. fi
  7356. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7357. if test -n "$ac_ct_AS"; then
  7358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7359. printf "%s\n" "$ac_ct_AS" >&6; }
  7360. else
  7361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7362. printf "%s\n" "no" >&6; }
  7363. fi
  7364. if test "x$ac_ct_AS" = x; then
  7365. AS="false"
  7366. else
  7367. case $cross_compiling:$ac_tool_warned in
  7368. yes:)
  7369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7370. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7371. ac_tool_warned=yes ;;
  7372. esac
  7373. AS=$ac_ct_AS
  7374. fi
  7375. else
  7376. AS="$ac_cv_prog_AS"
  7377. fi
  7378. if test -n "$ac_tool_prefix"; then
  7379. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7380. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7382. printf %s "checking for $ac_word... " >&6; }
  7383. if test ${ac_cv_prog_DLLTOOL+y}
  7384. then :
  7385. printf %s "(cached) " >&6
  7386. else $as_nop
  7387. if test -n "$DLLTOOL"; then
  7388. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7389. else
  7390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7391. for as_dir in $PATH
  7392. do
  7393. IFS=$as_save_IFS
  7394. case $as_dir in #(((
  7395. '') as_dir=./ ;;
  7396. */) ;;
  7397. *) as_dir=$as_dir/ ;;
  7398. esac
  7399. for ac_exec_ext in '' $ac_executable_extensions; do
  7400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7401. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7403. break 2
  7404. fi
  7405. done
  7406. done
  7407. IFS=$as_save_IFS
  7408. fi
  7409. fi
  7410. DLLTOOL=$ac_cv_prog_DLLTOOL
  7411. if test -n "$DLLTOOL"; then
  7412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7413. printf "%s\n" "$DLLTOOL" >&6; }
  7414. else
  7415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7416. printf "%s\n" "no" >&6; }
  7417. fi
  7418. fi
  7419. if test -z "$ac_cv_prog_DLLTOOL"; then
  7420. ac_ct_DLLTOOL=$DLLTOOL
  7421. # Extract the first word of "dlltool", so it can be a program name with args.
  7422. set dummy dlltool; ac_word=$2
  7423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7424. printf %s "checking for $ac_word... " >&6; }
  7425. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7426. then :
  7427. printf %s "(cached) " >&6
  7428. else $as_nop
  7429. if test -n "$ac_ct_DLLTOOL"; then
  7430. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7431. else
  7432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7433. for as_dir in $PATH
  7434. do
  7435. IFS=$as_save_IFS
  7436. case $as_dir in #(((
  7437. '') as_dir=./ ;;
  7438. */) ;;
  7439. *) as_dir=$as_dir/ ;;
  7440. esac
  7441. for ac_exec_ext in '' $ac_executable_extensions; do
  7442. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7443. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7444. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7445. break 2
  7446. fi
  7447. done
  7448. done
  7449. IFS=$as_save_IFS
  7450. fi
  7451. fi
  7452. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7453. if test -n "$ac_ct_DLLTOOL"; then
  7454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7455. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7456. else
  7457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7458. printf "%s\n" "no" >&6; }
  7459. fi
  7460. if test "x$ac_ct_DLLTOOL" = x; then
  7461. DLLTOOL="false"
  7462. else
  7463. case $cross_compiling:$ac_tool_warned in
  7464. yes:)
  7465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7466. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7467. ac_tool_warned=yes ;;
  7468. esac
  7469. DLLTOOL=$ac_ct_DLLTOOL
  7470. fi
  7471. else
  7472. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7473. fi
  7474. if test -n "$ac_tool_prefix"; then
  7475. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7476. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7478. printf %s "checking for $ac_word... " >&6; }
  7479. if test ${ac_cv_prog_OBJDUMP+y}
  7480. then :
  7481. printf %s "(cached) " >&6
  7482. else $as_nop
  7483. if test -n "$OBJDUMP"; then
  7484. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7485. else
  7486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7487. for as_dir in $PATH
  7488. do
  7489. IFS=$as_save_IFS
  7490. case $as_dir in #(((
  7491. '') as_dir=./ ;;
  7492. */) ;;
  7493. *) as_dir=$as_dir/ ;;
  7494. esac
  7495. for ac_exec_ext in '' $ac_executable_extensions; do
  7496. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7497. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7498. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7499. break 2
  7500. fi
  7501. done
  7502. done
  7503. IFS=$as_save_IFS
  7504. fi
  7505. fi
  7506. OBJDUMP=$ac_cv_prog_OBJDUMP
  7507. if test -n "$OBJDUMP"; then
  7508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7509. printf "%s\n" "$OBJDUMP" >&6; }
  7510. else
  7511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7512. printf "%s\n" "no" >&6; }
  7513. fi
  7514. fi
  7515. if test -z "$ac_cv_prog_OBJDUMP"; then
  7516. ac_ct_OBJDUMP=$OBJDUMP
  7517. # Extract the first word of "objdump", so it can be a program name with args.
  7518. set dummy objdump; ac_word=$2
  7519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7520. printf %s "checking for $ac_word... " >&6; }
  7521. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7522. then :
  7523. printf %s "(cached) " >&6
  7524. else $as_nop
  7525. if test -n "$ac_ct_OBJDUMP"; then
  7526. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7527. else
  7528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7529. for as_dir in $PATH
  7530. do
  7531. IFS=$as_save_IFS
  7532. case $as_dir in #(((
  7533. '') as_dir=./ ;;
  7534. */) ;;
  7535. *) as_dir=$as_dir/ ;;
  7536. esac
  7537. for ac_exec_ext in '' $ac_executable_extensions; do
  7538. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7539. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7541. break 2
  7542. fi
  7543. done
  7544. done
  7545. IFS=$as_save_IFS
  7546. fi
  7547. fi
  7548. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7549. if test -n "$ac_ct_OBJDUMP"; then
  7550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7551. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7552. else
  7553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7554. printf "%s\n" "no" >&6; }
  7555. fi
  7556. if test "x$ac_ct_OBJDUMP" = x; then
  7557. OBJDUMP="false"
  7558. else
  7559. case $cross_compiling:$ac_tool_warned in
  7560. yes:)
  7561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7562. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7563. ac_tool_warned=yes ;;
  7564. esac
  7565. OBJDUMP=$ac_ct_OBJDUMP
  7566. fi
  7567. else
  7568. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7569. fi
  7570. ;;
  7571. esac
  7572. test -z "$AS" && AS=as
  7573. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7574. test -z "$OBJDUMP" && OBJDUMP=objdump
  7575. enable_dlopen=no
  7576. # Check whether --enable-shared was given.
  7577. if test ${enable_shared+y}
  7578. then :
  7579. enableval=$enable_shared; p=${PACKAGE-default}
  7580. case $enableval in
  7581. yes) enable_shared=yes ;;
  7582. no) enable_shared=no ;;
  7583. *)
  7584. enable_shared=no
  7585. # Look at the argument we got. We use all the common list separators.
  7586. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7587. for pkg in $enableval; do
  7588. IFS=$lt_save_ifs
  7589. if test "X$pkg" = "X$p"; then
  7590. enable_shared=yes
  7591. fi
  7592. done
  7593. IFS=$lt_save_ifs
  7594. ;;
  7595. esac
  7596. else $as_nop
  7597. enable_shared=yes
  7598. fi
  7599. # Check whether --enable-static was given.
  7600. if test ${enable_static+y}
  7601. then :
  7602. enableval=$enable_static; p=${PACKAGE-default}
  7603. case $enableval in
  7604. yes) enable_static=yes ;;
  7605. no) enable_static=no ;;
  7606. *)
  7607. enable_static=no
  7608. # Look at the argument we got. We use all the common list separators.
  7609. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7610. for pkg in $enableval; do
  7611. IFS=$lt_save_ifs
  7612. if test "X$pkg" = "X$p"; then
  7613. enable_static=yes
  7614. fi
  7615. done
  7616. IFS=$lt_save_ifs
  7617. ;;
  7618. esac
  7619. else $as_nop
  7620. enable_static=yes
  7621. fi
  7622. # Check whether --with-pic was given.
  7623. if test ${with_pic+y}
  7624. then :
  7625. withval=$with_pic; lt_p=${PACKAGE-default}
  7626. case $withval in
  7627. yes|no) pic_mode=$withval ;;
  7628. *)
  7629. pic_mode=default
  7630. # Look at the argument we got. We use all the common list separators.
  7631. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7632. for lt_pkg in $withval; do
  7633. IFS=$lt_save_ifs
  7634. if test "X$lt_pkg" = "X$lt_p"; then
  7635. pic_mode=yes
  7636. fi
  7637. done
  7638. IFS=$lt_save_ifs
  7639. ;;
  7640. esac
  7641. else $as_nop
  7642. pic_mode=default
  7643. fi
  7644. # Check whether --enable-fast-install was given.
  7645. if test ${enable_fast_install+y}
  7646. then :
  7647. enableval=$enable_fast_install; p=${PACKAGE-default}
  7648. case $enableval in
  7649. yes) enable_fast_install=yes ;;
  7650. no) enable_fast_install=no ;;
  7651. *)
  7652. enable_fast_install=no
  7653. # Look at the argument we got. We use all the common list separators.
  7654. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7655. for pkg in $enableval; do
  7656. IFS=$lt_save_ifs
  7657. if test "X$pkg" = "X$p"; then
  7658. enable_fast_install=yes
  7659. fi
  7660. done
  7661. IFS=$lt_save_ifs
  7662. ;;
  7663. esac
  7664. else $as_nop
  7665. enable_fast_install=yes
  7666. fi
  7667. shared_archive_member_spec=
  7668. case $host,$enable_shared in
  7669. power*-*-aix[5-9]*,yes)
  7670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7671. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7672. # Check whether --with-aix-soname was given.
  7673. if test ${with_aix_soname+y}
  7674. then :
  7675. withval=$with_aix_soname; case $withval in
  7676. aix|svr4|both)
  7677. ;;
  7678. *)
  7679. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7680. ;;
  7681. esac
  7682. lt_cv_with_aix_soname=$with_aix_soname
  7683. else $as_nop
  7684. if test ${lt_cv_with_aix_soname+y}
  7685. then :
  7686. printf %s "(cached) " >&6
  7687. else $as_nop
  7688. lt_cv_with_aix_soname=aix
  7689. fi
  7690. with_aix_soname=$lt_cv_with_aix_soname
  7691. fi
  7692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7693. printf "%s\n" "$with_aix_soname" >&6; }
  7694. if test aix != "$with_aix_soname"; then
  7695. # For the AIX way of multilib, we name the shared archive member
  7696. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7697. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7698. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7699. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7700. if test 64 = "${OBJECT_MODE-32}"; then
  7701. shared_archive_member_spec=shr_64
  7702. else
  7703. shared_archive_member_spec=shr
  7704. fi
  7705. fi
  7706. ;;
  7707. *)
  7708. with_aix_soname=aix
  7709. ;;
  7710. esac
  7711. # This can be used to rebuild libtool when needed
  7712. LIBTOOL_DEPS=$ltmain
  7713. # Always use our own libtool.
  7714. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7715. test -z "$LN_S" && LN_S="ln -s"
  7716. if test -n "${ZSH_VERSION+set}"; then
  7717. setopt NO_GLOB_SUBST
  7718. fi
  7719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7720. printf %s "checking for objdir... " >&6; }
  7721. if test ${lt_cv_objdir+y}
  7722. then :
  7723. printf %s "(cached) " >&6
  7724. else $as_nop
  7725. rm -f .libs 2>/dev/null
  7726. mkdir .libs 2>/dev/null
  7727. if test -d .libs; then
  7728. lt_cv_objdir=.libs
  7729. else
  7730. # MS-DOS does not allow filenames that begin with a dot.
  7731. lt_cv_objdir=_libs
  7732. fi
  7733. rmdir .libs 2>/dev/null
  7734. fi
  7735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7736. printf "%s\n" "$lt_cv_objdir" >&6; }
  7737. objdir=$lt_cv_objdir
  7738. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7739. case $host_os in
  7740. aix3*)
  7741. # AIX sometimes has problems with the GCC collect2 program. For some
  7742. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7743. # vanish in a puff of smoke.
  7744. if test set != "${COLLECT_NAMES+set}"; then
  7745. COLLECT_NAMES=
  7746. export COLLECT_NAMES
  7747. fi
  7748. ;;
  7749. esac
  7750. # Global variables:
  7751. ofile=libtool
  7752. can_build_shared=yes
  7753. # All known linkers require a '.a' archive for static linking (except MSVC,
  7754. # which needs '.lib').
  7755. libext=a
  7756. with_gnu_ld=$lt_cv_prog_gnu_ld
  7757. old_CC=$CC
  7758. old_CFLAGS=$CFLAGS
  7759. # Set sane defaults for various variables
  7760. test -z "$CC" && CC=cc
  7761. test -z "$LTCC" && LTCC=$CC
  7762. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7763. test -z "$LD" && LD=ld
  7764. test -z "$ac_objext" && ac_objext=o
  7765. func_cc_basename $compiler
  7766. cc_basename=$func_cc_basename_result
  7767. # Only perform the check for file, if the check method requires it
  7768. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7769. case $deplibs_check_method in
  7770. file_magic*)
  7771. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7773. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7774. if test ${lt_cv_path_MAGIC_CMD+y}
  7775. then :
  7776. printf %s "(cached) " >&6
  7777. else $as_nop
  7778. case $MAGIC_CMD in
  7779. [\\/*] | ?:[\\/]*)
  7780. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7781. ;;
  7782. *)
  7783. lt_save_MAGIC_CMD=$MAGIC_CMD
  7784. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7785. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7786. for ac_dir in $ac_dummy; do
  7787. IFS=$lt_save_ifs
  7788. test -z "$ac_dir" && ac_dir=.
  7789. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7790. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7791. if test -n "$file_magic_test_file"; then
  7792. case $deplibs_check_method in
  7793. "file_magic "*)
  7794. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7795. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7796. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7797. $EGREP "$file_magic_regex" > /dev/null; then
  7798. :
  7799. else
  7800. cat <<_LT_EOF 1>&2
  7801. *** Warning: the command libtool uses to detect shared libraries,
  7802. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7803. *** The result is that libtool may fail to recognize shared libraries
  7804. *** as such. This will affect the creation of libtool libraries that
  7805. *** depend on shared libraries, but programs linked with such libtool
  7806. *** libraries will work regardless of this problem. Nevertheless, you
  7807. *** may want to report the problem to your system manager and/or to
  7808. *** bug-libtool@gnu.org
  7809. _LT_EOF
  7810. fi ;;
  7811. esac
  7812. fi
  7813. break
  7814. fi
  7815. done
  7816. IFS=$lt_save_ifs
  7817. MAGIC_CMD=$lt_save_MAGIC_CMD
  7818. ;;
  7819. esac
  7820. fi
  7821. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7822. if test -n "$MAGIC_CMD"; then
  7823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7824. printf "%s\n" "$MAGIC_CMD" >&6; }
  7825. else
  7826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7827. printf "%s\n" "no" >&6; }
  7828. fi
  7829. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7830. if test -n "$ac_tool_prefix"; then
  7831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7832. printf %s "checking for file... " >&6; }
  7833. if test ${lt_cv_path_MAGIC_CMD+y}
  7834. then :
  7835. printf %s "(cached) " >&6
  7836. else $as_nop
  7837. case $MAGIC_CMD in
  7838. [\\/*] | ?:[\\/]*)
  7839. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7840. ;;
  7841. *)
  7842. lt_save_MAGIC_CMD=$MAGIC_CMD
  7843. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7844. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7845. for ac_dir in $ac_dummy; do
  7846. IFS=$lt_save_ifs
  7847. test -z "$ac_dir" && ac_dir=.
  7848. if test -f "$ac_dir/file"; then
  7849. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7850. if test -n "$file_magic_test_file"; then
  7851. case $deplibs_check_method in
  7852. "file_magic "*)
  7853. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7854. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7855. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7856. $EGREP "$file_magic_regex" > /dev/null; then
  7857. :
  7858. else
  7859. cat <<_LT_EOF 1>&2
  7860. *** Warning: the command libtool uses to detect shared libraries,
  7861. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7862. *** The result is that libtool may fail to recognize shared libraries
  7863. *** as such. This will affect the creation of libtool libraries that
  7864. *** depend on shared libraries, but programs linked with such libtool
  7865. *** libraries will work regardless of this problem. Nevertheless, you
  7866. *** may want to report the problem to your system manager and/or to
  7867. *** bug-libtool@gnu.org
  7868. _LT_EOF
  7869. fi ;;
  7870. esac
  7871. fi
  7872. break
  7873. fi
  7874. done
  7875. IFS=$lt_save_ifs
  7876. MAGIC_CMD=$lt_save_MAGIC_CMD
  7877. ;;
  7878. esac
  7879. fi
  7880. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7881. if test -n "$MAGIC_CMD"; then
  7882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7883. printf "%s\n" "$MAGIC_CMD" >&6; }
  7884. else
  7885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7886. printf "%s\n" "no" >&6; }
  7887. fi
  7888. else
  7889. MAGIC_CMD=:
  7890. fi
  7891. fi
  7892. fi
  7893. ;;
  7894. esac
  7895. # Use C for the default configuration in the libtool script
  7896. lt_save_CC=$CC
  7897. ac_ext=c
  7898. ac_cpp='$CPP $CPPFLAGS'
  7899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7902. # Source file extension for C test sources.
  7903. ac_ext=c
  7904. # Object file extension for compiled C test sources.
  7905. objext=o
  7906. objext=$objext
  7907. # Code to be used in simple compile tests
  7908. lt_simple_compile_test_code="int some_variable = 0;"
  7909. # Code to be used in simple link tests
  7910. lt_simple_link_test_code='int main(){return(0);}'
  7911. # If no C compiler was specified, use CC.
  7912. LTCC=${LTCC-"$CC"}
  7913. # If no C compiler flags were specified, use CFLAGS.
  7914. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7915. # Allow CC to be a program name with arguments.
  7916. compiler=$CC
  7917. # Save the default compiler, since it gets overwritten when the other
  7918. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7919. compiler_DEFAULT=$CC
  7920. # save warnings/boilerplate of simple test code
  7921. ac_outfile=conftest.$ac_objext
  7922. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7923. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7924. _lt_compiler_boilerplate=`cat conftest.err`
  7925. $RM conftest*
  7926. ac_outfile=conftest.$ac_objext
  7927. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7928. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7929. _lt_linker_boilerplate=`cat conftest.err`
  7930. $RM -r conftest*
  7931. ## CAVEAT EMPTOR:
  7932. ## There is no encapsulation within the following macros, do not change
  7933. ## the running order or otherwise move them around unless you know exactly
  7934. ## what you are doing...
  7935. if test -n "$compiler"; then
  7936. lt_prog_compiler_no_builtin_flag=
  7937. if test yes = "$GCC"; then
  7938. case $cc_basename in
  7939. nvcc*)
  7940. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7941. *)
  7942. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7943. esac
  7944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7945. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7946. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7947. then :
  7948. printf %s "(cached) " >&6
  7949. else $as_nop
  7950. lt_cv_prog_compiler_rtti_exceptions=no
  7951. ac_outfile=conftest.$ac_objext
  7952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7953. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7954. # Insert the option either (1) after the last *FLAGS variable, or
  7955. # (2) before a word containing "conftest.", or (3) at the end.
  7956. # Note that $ac_compile itself does not contain backslashes and begins
  7957. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7958. # The option is referenced via a variable to avoid confusing sed.
  7959. lt_compile=`echo "$ac_compile" | $SED \
  7960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7962. -e 's:$: $lt_compiler_flag:'`
  7963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7964. (eval "$lt_compile" 2>conftest.err)
  7965. ac_status=$?
  7966. cat conftest.err >&5
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. if (exit $ac_status) && test -s "$ac_outfile"; then
  7969. # The compiler can only warn and ignore the option if not recognized
  7970. # So say no if there are warnings other than the usual output.
  7971. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7972. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7973. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7974. lt_cv_prog_compiler_rtti_exceptions=yes
  7975. fi
  7976. fi
  7977. $RM conftest*
  7978. fi
  7979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7980. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7981. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7982. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7983. else
  7984. :
  7985. fi
  7986. fi
  7987. lt_prog_compiler_wl=
  7988. lt_prog_compiler_pic=
  7989. lt_prog_compiler_static=
  7990. if test yes = "$GCC"; then
  7991. lt_prog_compiler_wl='-Wl,'
  7992. lt_prog_compiler_static='-static'
  7993. case $host_os in
  7994. aix*)
  7995. # All AIX code is PIC.
  7996. if test ia64 = "$host_cpu"; then
  7997. # AIX 5 now supports IA64 processor
  7998. lt_prog_compiler_static='-Bstatic'
  7999. fi
  8000. lt_prog_compiler_pic='-fPIC'
  8001. ;;
  8002. amigaos*)
  8003. case $host_cpu in
  8004. powerpc)
  8005. # see comment about AmigaOS4 .so support
  8006. lt_prog_compiler_pic='-fPIC'
  8007. ;;
  8008. m68k)
  8009. # FIXME: we need at least 68020 code to build shared libraries, but
  8010. # adding the '-m68020' flag to GCC prevents building anything better,
  8011. # like '-m68040'.
  8012. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8013. ;;
  8014. esac
  8015. ;;
  8016. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8017. # PIC is the default for these OSes.
  8018. ;;
  8019. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8020. # This hack is so that the source file can tell whether it is being
  8021. # built for inclusion in a dll (and should export symbols for example).
  8022. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8023. # (--disable-auto-import) libraries
  8024. lt_prog_compiler_pic='-DDLL_EXPORT'
  8025. case $host_os in
  8026. os2*)
  8027. lt_prog_compiler_static='$wl-static'
  8028. ;;
  8029. esac
  8030. ;;
  8031. darwin* | rhapsody*)
  8032. # PIC is the default on this platform
  8033. # Common symbols not allowed in MH_DYLIB files
  8034. lt_prog_compiler_pic='-fno-common'
  8035. ;;
  8036. haiku*)
  8037. # PIC is the default for Haiku.
  8038. # The "-static" flag exists, but is broken.
  8039. lt_prog_compiler_static=
  8040. ;;
  8041. hpux*)
  8042. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8043. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8044. # sets the default TLS model and affects inlining.
  8045. case $host_cpu in
  8046. hppa*64*)
  8047. # +Z the default
  8048. ;;
  8049. *)
  8050. lt_prog_compiler_pic='-fPIC'
  8051. ;;
  8052. esac
  8053. ;;
  8054. interix[3-9]*)
  8055. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8056. # Instead, we relocate shared libraries at runtime.
  8057. ;;
  8058. msdosdjgpp*)
  8059. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8060. # on systems that don't support them.
  8061. lt_prog_compiler_can_build_shared=no
  8062. enable_shared=no
  8063. ;;
  8064. *nto* | *qnx*)
  8065. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8066. # it will coredump.
  8067. lt_prog_compiler_pic='-fPIC -shared'
  8068. ;;
  8069. sysv4*MP*)
  8070. if test -d /usr/nec; then
  8071. lt_prog_compiler_pic=-Kconform_pic
  8072. fi
  8073. ;;
  8074. *)
  8075. lt_prog_compiler_pic='-fPIC'
  8076. ;;
  8077. esac
  8078. case $cc_basename in
  8079. nvcc*) # Cuda Compiler Driver 2.2
  8080. lt_prog_compiler_wl='-Xlinker '
  8081. if test -n "$lt_prog_compiler_pic"; then
  8082. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8083. fi
  8084. ;;
  8085. esac
  8086. else
  8087. # PORTME Check for flag to pass linker flags through the system compiler.
  8088. case $host_os in
  8089. aix*)
  8090. lt_prog_compiler_wl='-Wl,'
  8091. if test ia64 = "$host_cpu"; then
  8092. # AIX 5 now supports IA64 processor
  8093. lt_prog_compiler_static='-Bstatic'
  8094. else
  8095. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8096. fi
  8097. ;;
  8098. darwin* | rhapsody*)
  8099. # PIC is the default on this platform
  8100. # Common symbols not allowed in MH_DYLIB files
  8101. lt_prog_compiler_pic='-fno-common'
  8102. case $cc_basename in
  8103. nagfor*)
  8104. # NAG Fortran compiler
  8105. lt_prog_compiler_wl='-Wl,-Wl,,'
  8106. lt_prog_compiler_pic='-PIC'
  8107. lt_prog_compiler_static='-Bstatic'
  8108. ;;
  8109. esac
  8110. ;;
  8111. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8112. # This hack is so that the source file can tell whether it is being
  8113. # built for inclusion in a dll (and should export symbols for example).
  8114. lt_prog_compiler_pic='-DDLL_EXPORT'
  8115. case $host_os in
  8116. os2*)
  8117. lt_prog_compiler_static='$wl-static'
  8118. ;;
  8119. esac
  8120. ;;
  8121. hpux9* | hpux10* | hpux11*)
  8122. lt_prog_compiler_wl='-Wl,'
  8123. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8124. # not for PA HP-UX.
  8125. case $host_cpu in
  8126. hppa*64*|ia64*)
  8127. # +Z the default
  8128. ;;
  8129. *)
  8130. lt_prog_compiler_pic='+Z'
  8131. ;;
  8132. esac
  8133. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8134. lt_prog_compiler_static='$wl-a ${wl}archive'
  8135. ;;
  8136. irix5* | irix6* | nonstopux*)
  8137. lt_prog_compiler_wl='-Wl,'
  8138. # PIC (with -KPIC) is the default.
  8139. lt_prog_compiler_static='-non_shared'
  8140. ;;
  8141. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8142. case $cc_basename in
  8143. # old Intel for x86_64, which still supported -KPIC.
  8144. ecc*)
  8145. lt_prog_compiler_wl='-Wl,'
  8146. lt_prog_compiler_pic='-KPIC'
  8147. lt_prog_compiler_static='-static'
  8148. ;;
  8149. # icc used to be incompatible with GCC.
  8150. # ICC 10 doesn't accept -KPIC any more.
  8151. icc* | ifort*)
  8152. lt_prog_compiler_wl='-Wl,'
  8153. lt_prog_compiler_pic='-fPIC'
  8154. lt_prog_compiler_static='-static'
  8155. ;;
  8156. # Lahey Fortran 8.1.
  8157. lf95*)
  8158. lt_prog_compiler_wl='-Wl,'
  8159. lt_prog_compiler_pic='--shared'
  8160. lt_prog_compiler_static='--static'
  8161. ;;
  8162. nagfor*)
  8163. # NAG Fortran compiler
  8164. lt_prog_compiler_wl='-Wl,-Wl,,'
  8165. lt_prog_compiler_pic='-PIC'
  8166. lt_prog_compiler_static='-Bstatic'
  8167. ;;
  8168. tcc*)
  8169. # Fabrice Bellard et al's Tiny C Compiler
  8170. lt_prog_compiler_wl='-Wl,'
  8171. lt_prog_compiler_pic='-fPIC'
  8172. lt_prog_compiler_static='-static'
  8173. ;;
  8174. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8175. # Portland Group compilers (*not* the Pentium gcc compiler,
  8176. # which looks to be a dead project)
  8177. lt_prog_compiler_wl='-Wl,'
  8178. lt_prog_compiler_pic='-fpic'
  8179. lt_prog_compiler_static='-Bstatic'
  8180. ;;
  8181. ccc*)
  8182. lt_prog_compiler_wl='-Wl,'
  8183. # All Alpha code is PIC.
  8184. lt_prog_compiler_static='-non_shared'
  8185. ;;
  8186. xl* | bgxl* | bgf* | mpixl*)
  8187. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8188. lt_prog_compiler_wl='-Wl,'
  8189. lt_prog_compiler_pic='-qpic'
  8190. lt_prog_compiler_static='-qstaticlink'
  8191. ;;
  8192. *)
  8193. case `$CC -V 2>&1 | sed 5q` in
  8194. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8195. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8196. lt_prog_compiler_pic='-KPIC'
  8197. lt_prog_compiler_static='-Bstatic'
  8198. lt_prog_compiler_wl=''
  8199. ;;
  8200. *Sun\ F* | *Sun*Fortran*)
  8201. lt_prog_compiler_pic='-KPIC'
  8202. lt_prog_compiler_static='-Bstatic'
  8203. lt_prog_compiler_wl='-Qoption ld '
  8204. ;;
  8205. *Sun\ C*)
  8206. # Sun C 5.9
  8207. lt_prog_compiler_pic='-KPIC'
  8208. lt_prog_compiler_static='-Bstatic'
  8209. lt_prog_compiler_wl='-Wl,'
  8210. ;;
  8211. *Intel*\ [CF]*Compiler*)
  8212. lt_prog_compiler_wl='-Wl,'
  8213. lt_prog_compiler_pic='-fPIC'
  8214. lt_prog_compiler_static='-static'
  8215. ;;
  8216. *Portland\ Group*)
  8217. lt_prog_compiler_wl='-Wl,'
  8218. lt_prog_compiler_pic='-fpic'
  8219. lt_prog_compiler_static='-Bstatic'
  8220. ;;
  8221. esac
  8222. ;;
  8223. esac
  8224. ;;
  8225. newsos6)
  8226. lt_prog_compiler_pic='-KPIC'
  8227. lt_prog_compiler_static='-Bstatic'
  8228. ;;
  8229. *nto* | *qnx*)
  8230. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8231. # it will coredump.
  8232. lt_prog_compiler_pic='-fPIC -shared'
  8233. ;;
  8234. osf3* | osf4* | osf5*)
  8235. lt_prog_compiler_wl='-Wl,'
  8236. # All OSF/1 code is PIC.
  8237. lt_prog_compiler_static='-non_shared'
  8238. ;;
  8239. rdos*)
  8240. lt_prog_compiler_static='-non_shared'
  8241. ;;
  8242. solaris*)
  8243. lt_prog_compiler_pic='-KPIC'
  8244. lt_prog_compiler_static='-Bstatic'
  8245. case $cc_basename in
  8246. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8247. lt_prog_compiler_wl='-Qoption ld ';;
  8248. *)
  8249. lt_prog_compiler_wl='-Wl,';;
  8250. esac
  8251. ;;
  8252. sunos4*)
  8253. lt_prog_compiler_wl='-Qoption ld '
  8254. lt_prog_compiler_pic='-PIC'
  8255. lt_prog_compiler_static='-Bstatic'
  8256. ;;
  8257. sysv4 | sysv4.2uw2* | sysv4.3*)
  8258. lt_prog_compiler_wl='-Wl,'
  8259. lt_prog_compiler_pic='-KPIC'
  8260. lt_prog_compiler_static='-Bstatic'
  8261. ;;
  8262. sysv4*MP*)
  8263. if test -d /usr/nec; then
  8264. lt_prog_compiler_pic='-Kconform_pic'
  8265. lt_prog_compiler_static='-Bstatic'
  8266. fi
  8267. ;;
  8268. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8269. lt_prog_compiler_wl='-Wl,'
  8270. lt_prog_compiler_pic='-KPIC'
  8271. lt_prog_compiler_static='-Bstatic'
  8272. ;;
  8273. unicos*)
  8274. lt_prog_compiler_wl='-Wl,'
  8275. lt_prog_compiler_can_build_shared=no
  8276. ;;
  8277. uts4*)
  8278. lt_prog_compiler_pic='-pic'
  8279. lt_prog_compiler_static='-Bstatic'
  8280. ;;
  8281. *)
  8282. lt_prog_compiler_can_build_shared=no
  8283. ;;
  8284. esac
  8285. fi
  8286. case $host_os in
  8287. # For platforms that do not support PIC, -DPIC is meaningless:
  8288. *djgpp*)
  8289. lt_prog_compiler_pic=
  8290. ;;
  8291. *)
  8292. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8293. ;;
  8294. esac
  8295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8296. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8297. if test ${lt_cv_prog_compiler_pic+y}
  8298. then :
  8299. printf %s "(cached) " >&6
  8300. else $as_nop
  8301. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8302. fi
  8303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8304. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8305. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8306. #
  8307. # Check to make sure the PIC flag actually works.
  8308. #
  8309. if test -n "$lt_prog_compiler_pic"; then
  8310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8311. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8312. if test ${lt_cv_prog_compiler_pic_works+y}
  8313. then :
  8314. printf %s "(cached) " >&6
  8315. else $as_nop
  8316. lt_cv_prog_compiler_pic_works=no
  8317. ac_outfile=conftest.$ac_objext
  8318. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8319. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8320. # Insert the option either (1) after the last *FLAGS variable, or
  8321. # (2) before a word containing "conftest.", or (3) at the end.
  8322. # Note that $ac_compile itself does not contain backslashes and begins
  8323. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8324. # The option is referenced via a variable to avoid confusing sed.
  8325. lt_compile=`echo "$ac_compile" | $SED \
  8326. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8327. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8328. -e 's:$: $lt_compiler_flag:'`
  8329. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8330. (eval "$lt_compile" 2>conftest.err)
  8331. ac_status=$?
  8332. cat conftest.err >&5
  8333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8334. if (exit $ac_status) && test -s "$ac_outfile"; then
  8335. # The compiler can only warn and ignore the option if not recognized
  8336. # So say no if there are warnings other than the usual output.
  8337. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8338. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8339. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8340. lt_cv_prog_compiler_pic_works=yes
  8341. fi
  8342. fi
  8343. $RM conftest*
  8344. fi
  8345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8346. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8347. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8348. case $lt_prog_compiler_pic in
  8349. "" | " "*) ;;
  8350. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8351. esac
  8352. else
  8353. lt_prog_compiler_pic=
  8354. lt_prog_compiler_can_build_shared=no
  8355. fi
  8356. fi
  8357. #
  8358. # Check to make sure the static flag actually works.
  8359. #
  8360. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8362. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8363. if test ${lt_cv_prog_compiler_static_works+y}
  8364. then :
  8365. printf %s "(cached) " >&6
  8366. else $as_nop
  8367. lt_cv_prog_compiler_static_works=no
  8368. save_LDFLAGS=$LDFLAGS
  8369. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8370. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8371. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8372. # The linker can only warn and ignore the option if not recognized
  8373. # So say no if there are warnings
  8374. if test -s conftest.err; then
  8375. # Append any errors to the config.log.
  8376. cat conftest.err 1>&5
  8377. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8378. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8379. if diff conftest.exp conftest.er2 >/dev/null; then
  8380. lt_cv_prog_compiler_static_works=yes
  8381. fi
  8382. else
  8383. lt_cv_prog_compiler_static_works=yes
  8384. fi
  8385. fi
  8386. $RM -r conftest*
  8387. LDFLAGS=$save_LDFLAGS
  8388. fi
  8389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8390. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8391. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8392. :
  8393. else
  8394. lt_prog_compiler_static=
  8395. fi
  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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8445. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8446. if test ${lt_cv_prog_compiler_c_o+y}
  8447. then :
  8448. printf %s "(cached) " >&6
  8449. else $as_nop
  8450. lt_cv_prog_compiler_c_o=no
  8451. $RM -r conftest 2>/dev/null
  8452. mkdir conftest
  8453. cd conftest
  8454. mkdir out
  8455. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8456. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8457. # Insert the option either (1) after the last *FLAGS variable, or
  8458. # (2) before a word containing "conftest.", or (3) at the end.
  8459. # Note that $ac_compile itself does not contain backslashes and begins
  8460. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8461. lt_compile=`echo "$ac_compile" | $SED \
  8462. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8463. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8464. -e 's:$: $lt_compiler_flag:'`
  8465. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8466. (eval "$lt_compile" 2>out/conftest.err)
  8467. ac_status=$?
  8468. cat out/conftest.err >&5
  8469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8470. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8471. then
  8472. # The compiler can only warn and ignore the option if not recognized
  8473. # So say no if there are warnings
  8474. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8475. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8476. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8477. lt_cv_prog_compiler_c_o=yes
  8478. fi
  8479. fi
  8480. chmod u+w . 2>&5
  8481. $RM conftest*
  8482. # SGI C++ compiler will create directory out/ii_files/ for
  8483. # template instantiation
  8484. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8485. $RM out/* && rmdir out
  8486. cd ..
  8487. $RM -r conftest
  8488. $RM conftest*
  8489. fi
  8490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8491. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8492. hard_links=nottested
  8493. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8494. # do not overwrite the value of need_locks provided by the user
  8495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8496. printf %s "checking if we can lock with hard links... " >&6; }
  8497. hard_links=yes
  8498. $RM conftest*
  8499. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8500. touch conftest.a
  8501. ln conftest.a conftest.b 2>&5 || hard_links=no
  8502. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8504. printf "%s\n" "$hard_links" >&6; }
  8505. if test no = "$hard_links"; then
  8506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8507. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8508. need_locks=warn
  8509. fi
  8510. else
  8511. need_locks=no
  8512. fi
  8513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8514. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8515. runpath_var=
  8516. allow_undefined_flag=
  8517. always_export_symbols=no
  8518. archive_cmds=
  8519. archive_expsym_cmds=
  8520. compiler_needs_object=no
  8521. enable_shared_with_static_runtimes=no
  8522. export_dynamic_flag_spec=
  8523. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8524. hardcode_automatic=no
  8525. hardcode_direct=no
  8526. hardcode_direct_absolute=no
  8527. hardcode_libdir_flag_spec=
  8528. hardcode_libdir_separator=
  8529. hardcode_minus_L=no
  8530. hardcode_shlibpath_var=unsupported
  8531. inherit_rpath=no
  8532. link_all_deplibs=unknown
  8533. module_cmds=
  8534. module_expsym_cmds=
  8535. old_archive_from_new_cmds=
  8536. old_archive_from_expsyms_cmds=
  8537. thread_safe_flag_spec=
  8538. whole_archive_flag_spec=
  8539. # include_expsyms should be a list of space-separated symbols to be *always*
  8540. # included in the symbol list
  8541. include_expsyms=
  8542. # exclude_expsyms can be an extended regexp of symbols to exclude
  8543. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8544. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8545. # as well as any symbol that contains 'd'.
  8546. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8547. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8548. # platforms (ab)use it in PIC code, but their linkers get confused if
  8549. # the symbol is explicitly referenced. Since portable code cannot
  8550. # rely on this symbol name, it's probably fine to never include it in
  8551. # preloaded symbol tables.
  8552. # Exclude shared library initialization/finalization symbols.
  8553. extract_expsyms_cmds=
  8554. case $host_os in
  8555. cygwin* | mingw* | pw32* | cegcc*)
  8556. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8557. # When not using gcc, we currently assume that we are using
  8558. # Microsoft Visual C++.
  8559. if test yes != "$GCC"; then
  8560. with_gnu_ld=no
  8561. fi
  8562. ;;
  8563. interix*)
  8564. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8565. with_gnu_ld=yes
  8566. ;;
  8567. openbsd* | bitrig*)
  8568. with_gnu_ld=no
  8569. ;;
  8570. esac
  8571. ld_shlibs=yes
  8572. # On some targets, GNU ld is compatible enough with the native linker
  8573. # that we're better off using the native interface for both.
  8574. lt_use_gnu_ld_interface=no
  8575. if test yes = "$with_gnu_ld"; then
  8576. case $host_os in
  8577. aix*)
  8578. # The AIX port of GNU ld has always aspired to compatibility
  8579. # with the native linker. However, as the warning in the GNU ld
  8580. # block says, versions before 2.19.5* couldn't really create working
  8581. # shared libraries, regardless of the interface used.
  8582. case `$LD -v 2>&1` in
  8583. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8584. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8585. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8586. *)
  8587. lt_use_gnu_ld_interface=yes
  8588. ;;
  8589. esac
  8590. ;;
  8591. *)
  8592. lt_use_gnu_ld_interface=yes
  8593. ;;
  8594. esac
  8595. fi
  8596. if test yes = "$lt_use_gnu_ld_interface"; then
  8597. # If archive_cmds runs LD, not CC, wlarc should be empty
  8598. wlarc='$wl'
  8599. # Set some defaults for GNU ld with shared library support. These
  8600. # are reset later if shared libraries are not supported. Putting them
  8601. # here allows them to be overridden if necessary.
  8602. runpath_var=LD_RUN_PATH
  8603. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8604. export_dynamic_flag_spec='$wl--export-dynamic'
  8605. # ancient GNU ld didn't support --whole-archive et. al.
  8606. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8607. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8608. else
  8609. whole_archive_flag_spec=
  8610. fi
  8611. supports_anon_versioning=no
  8612. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8613. *GNU\ gold*) supports_anon_versioning=yes ;;
  8614. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8615. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8616. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8617. *\ 2.11.*) ;; # other 2.11 versions
  8618. *) supports_anon_versioning=yes ;;
  8619. esac
  8620. # See if GNU ld supports shared libraries.
  8621. case $host_os in
  8622. aix[3-9]*)
  8623. # On AIX/PPC, the GNU linker is very broken
  8624. if test ia64 != "$host_cpu"; then
  8625. ld_shlibs=no
  8626. cat <<_LT_EOF 1>&2
  8627. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8628. *** to be unable to reliably create shared libraries on AIX.
  8629. *** Therefore, libtool is disabling shared libraries support. If you
  8630. *** really care for shared libraries, you may want to install binutils
  8631. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8632. *** You will then need to restart the configuration process.
  8633. _LT_EOF
  8634. fi
  8635. ;;
  8636. amigaos*)
  8637. case $host_cpu in
  8638. powerpc)
  8639. # see comment about AmigaOS4 .so support
  8640. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8641. archive_expsym_cmds=''
  8642. ;;
  8643. m68k)
  8644. 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)'
  8645. hardcode_libdir_flag_spec='-L$libdir'
  8646. hardcode_minus_L=yes
  8647. ;;
  8648. esac
  8649. ;;
  8650. beos*)
  8651. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8652. allow_undefined_flag=unsupported
  8653. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8654. # support --undefined. This deserves some investigation. FIXME
  8655. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8656. else
  8657. ld_shlibs=no
  8658. fi
  8659. ;;
  8660. cygwin* | mingw* | pw32* | cegcc*)
  8661. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8662. # as there is no search path for DLLs.
  8663. hardcode_libdir_flag_spec='-L$libdir'
  8664. export_dynamic_flag_spec='$wl--export-all-symbols'
  8665. allow_undefined_flag=unsupported
  8666. always_export_symbols=no
  8667. enable_shared_with_static_runtimes=yes
  8668. 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'
  8669. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8670. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8671. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8672. # If the export-symbols file already is a .def file, use it as
  8673. # is; otherwise, prepend EXPORTS...
  8674. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8675. cp $export_symbols $output_objdir/$soname.def;
  8676. else
  8677. echo EXPORTS > $output_objdir/$soname.def;
  8678. cat $export_symbols >> $output_objdir/$soname.def;
  8679. fi~
  8680. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8681. else
  8682. ld_shlibs=no
  8683. fi
  8684. ;;
  8685. haiku*)
  8686. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8687. link_all_deplibs=yes
  8688. ;;
  8689. os2*)
  8690. hardcode_libdir_flag_spec='-L$libdir'
  8691. hardcode_minus_L=yes
  8692. allow_undefined_flag=unsupported
  8693. shrext_cmds=.dll
  8694. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8695. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8696. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8697. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8698. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8699. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8700. emximp -o $lib $output_objdir/$libname.def'
  8701. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8702. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8703. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8704. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8705. prefix_cmds="$SED"~
  8706. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8707. prefix_cmds="$prefix_cmds -e 1d";
  8708. fi~
  8709. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8710. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8711. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8712. emximp -o $lib $output_objdir/$libname.def'
  8713. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8714. enable_shared_with_static_runtimes=yes
  8715. file_list_spec='@'
  8716. ;;
  8717. interix[3-9]*)
  8718. hardcode_direct=no
  8719. hardcode_shlibpath_var=no
  8720. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8721. export_dynamic_flag_spec='$wl-E'
  8722. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8723. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8724. # default) and relocated if they conflict, which is a slow very memory
  8725. # consuming and fragmenting process. To avoid this, we pick a random,
  8726. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8727. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8728. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8729. 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'
  8730. ;;
  8731. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8732. tmp_diet=no
  8733. if test linux-dietlibc = "$host_os"; then
  8734. case $cc_basename in
  8735. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8736. esac
  8737. fi
  8738. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8739. && test no = "$tmp_diet"
  8740. then
  8741. tmp_addflag=' $pic_flag'
  8742. tmp_sharedflag='-shared'
  8743. case $cc_basename,$host_cpu in
  8744. pgcc*) # Portland Group C compiler
  8745. 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'
  8746. tmp_addflag=' $pic_flag'
  8747. ;;
  8748. pgf77* | pgf90* | pgf95* | pgfortran*)
  8749. # Portland Group f77 and f90 compilers
  8750. 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'
  8751. tmp_addflag=' $pic_flag -Mnomain' ;;
  8752. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8753. tmp_addflag=' -i_dynamic' ;;
  8754. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8755. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8756. ifc* | ifort*) # Intel Fortran compiler
  8757. tmp_addflag=' -nofor_main' ;;
  8758. lf95*) # Lahey Fortran 8.1
  8759. whole_archive_flag_spec=
  8760. tmp_sharedflag='--shared' ;;
  8761. nagfor*) # NAGFOR 5.3
  8762. tmp_sharedflag='-Wl,-shared' ;;
  8763. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8764. tmp_sharedflag='-qmkshrobj'
  8765. tmp_addflag= ;;
  8766. nvcc*) # Cuda Compiler Driver 2.2
  8767. 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'
  8768. compiler_needs_object=yes
  8769. ;;
  8770. esac
  8771. case `$CC -V 2>&1 | sed 5q` in
  8772. *Sun\ C*) # Sun C 5.9
  8773. 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'
  8774. compiler_needs_object=yes
  8775. tmp_sharedflag='-G' ;;
  8776. *Sun\ F*) # Sun Fortran 8.3
  8777. tmp_sharedflag='-G' ;;
  8778. esac
  8779. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8780. if test yes = "$supports_anon_versioning"; then
  8781. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8782. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8783. echo "local: *; };" >> $output_objdir/$libname.ver~
  8784. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8785. fi
  8786. case $cc_basename in
  8787. tcc*)
  8788. export_dynamic_flag_spec='-rdynamic'
  8789. ;;
  8790. xlf* | bgf* | bgxlf* | mpixlf*)
  8791. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8792. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8793. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8794. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8795. if test yes = "$supports_anon_versioning"; then
  8796. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8797. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8798. echo "local: *; };" >> $output_objdir/$libname.ver~
  8799. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8800. fi
  8801. ;;
  8802. esac
  8803. else
  8804. ld_shlibs=no
  8805. fi
  8806. ;;
  8807. netbsd*)
  8808. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8809. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8810. wlarc=
  8811. else
  8812. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8813. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8814. fi
  8815. ;;
  8816. solaris*)
  8817. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8818. ld_shlibs=no
  8819. cat <<_LT_EOF 1>&2
  8820. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8821. *** create shared libraries on Solaris systems. Therefore, libtool
  8822. *** is disabling shared libraries support. We urge you to upgrade GNU
  8823. *** binutils to release 2.9.1 or newer. Another option is to modify
  8824. *** your PATH or compiler configuration so that the native linker is
  8825. *** used, and then restart.
  8826. _LT_EOF
  8827. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8828. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8829. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8830. else
  8831. ld_shlibs=no
  8832. fi
  8833. ;;
  8834. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8835. case `$LD -v 2>&1` in
  8836. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8837. ld_shlibs=no
  8838. cat <<_LT_EOF 1>&2
  8839. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8840. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8841. *** is disabling shared libraries support. We urge you to upgrade GNU
  8842. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8843. *** your PATH or compiler configuration so that the native linker is
  8844. *** used, and then restart.
  8845. _LT_EOF
  8846. ;;
  8847. *)
  8848. # For security reasons, it is highly recommended that you always
  8849. # use absolute paths for naming shared libraries, and exclude the
  8850. # DT_RUNPATH tag from executables and libraries. But doing so
  8851. # requires that you compile everything twice, which is a pain.
  8852. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8853. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8855. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8856. else
  8857. ld_shlibs=no
  8858. fi
  8859. ;;
  8860. esac
  8861. ;;
  8862. sunos4*)
  8863. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8864. wlarc=
  8865. hardcode_direct=yes
  8866. hardcode_shlibpath_var=no
  8867. ;;
  8868. *)
  8869. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8870. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8871. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8872. else
  8873. ld_shlibs=no
  8874. fi
  8875. ;;
  8876. esac
  8877. if test no = "$ld_shlibs"; then
  8878. runpath_var=
  8879. hardcode_libdir_flag_spec=
  8880. export_dynamic_flag_spec=
  8881. whole_archive_flag_spec=
  8882. fi
  8883. else
  8884. # PORTME fill in a description of your system's linker (not GNU ld)
  8885. case $host_os in
  8886. aix3*)
  8887. allow_undefined_flag=unsupported
  8888. always_export_symbols=yes
  8889. 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'
  8890. # Note: this linker hardcodes the directories in LIBPATH if there
  8891. # are no directories specified by -L.
  8892. hardcode_minus_L=yes
  8893. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8894. # Neither direct hardcoding nor static linking is supported with a
  8895. # broken collect2.
  8896. hardcode_direct=unsupported
  8897. fi
  8898. ;;
  8899. aix[4-9]*)
  8900. if test ia64 = "$host_cpu"; then
  8901. # On IA64, the linker does run time linking by default, so we don't
  8902. # have to do anything special.
  8903. aix_use_runtimelinking=no
  8904. exp_sym_flag='-Bexport'
  8905. no_entry_flag=
  8906. else
  8907. # If we're using GNU nm, then we don't want the "-C" option.
  8908. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8909. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8910. # weak defined symbols like other global defined symbols, whereas
  8911. # GNU nm marks them as "W".
  8912. # While the 'weak' keyword is ignored in the Export File, we need
  8913. # it in the Import File for the 'aix-soname' feature, so we have
  8914. # to replace the "-B" option with "-P" for AIX nm.
  8915. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8916. 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'
  8917. else
  8918. 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'
  8919. fi
  8920. aix_use_runtimelinking=no
  8921. # Test if we are trying to use run time linking or normal
  8922. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8923. # have runtime linking enabled, and use it for executables.
  8924. # For shared libraries, we enable/disable runtime linking
  8925. # depending on the kind of the shared library created -
  8926. # when "with_aix_soname,aix_use_runtimelinking" is:
  8927. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8928. # "aix,yes" lib.so shared, rtl:yes, for executables
  8929. # lib.a static archive
  8930. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8931. # lib.a(lib.so.V) shared, rtl:no, for executables
  8932. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8933. # lib.a(lib.so.V) shared, rtl:no
  8934. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8935. # lib.a static archive
  8936. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8937. for ld_flag in $LDFLAGS; do
  8938. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8939. aix_use_runtimelinking=yes
  8940. break
  8941. fi
  8942. done
  8943. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8944. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8945. # so we don't have lib.a shared libs to link our executables.
  8946. # We have to force runtime linking in this case.
  8947. aix_use_runtimelinking=yes
  8948. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8949. fi
  8950. ;;
  8951. esac
  8952. exp_sym_flag='-bexport'
  8953. no_entry_flag='-bnoentry'
  8954. fi
  8955. # When large executables or shared objects are built, AIX ld can
  8956. # have problems creating the table of contents. If linking a library
  8957. # or program results in "error TOC overflow" add -mminimal-toc to
  8958. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8959. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8960. archive_cmds=''
  8961. hardcode_direct=yes
  8962. hardcode_direct_absolute=yes
  8963. hardcode_libdir_separator=':'
  8964. link_all_deplibs=yes
  8965. file_list_spec='$wl-f,'
  8966. case $with_aix_soname,$aix_use_runtimelinking in
  8967. aix,*) ;; # traditional, no import file
  8968. svr4,* | *,yes) # use import file
  8969. # The Import File defines what to hardcode.
  8970. hardcode_direct=no
  8971. hardcode_direct_absolute=no
  8972. ;;
  8973. esac
  8974. if test yes = "$GCC"; then
  8975. case $host_os in aix4.[012]|aix4.[012].*)
  8976. # We only want to do this on AIX 4.2 and lower, the check
  8977. # below for broken collect2 doesn't work under 4.3+
  8978. collect2name=`$CC -print-prog-name=collect2`
  8979. if test -f "$collect2name" &&
  8980. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8981. then
  8982. # We have reworked collect2
  8983. :
  8984. else
  8985. # We have old collect2
  8986. hardcode_direct=unsupported
  8987. # It fails to find uninstalled libraries when the uninstalled
  8988. # path is not listed in the libpath. Setting hardcode_minus_L
  8989. # to unsupported forces relinking
  8990. hardcode_minus_L=yes
  8991. hardcode_libdir_flag_spec='-L$libdir'
  8992. hardcode_libdir_separator=
  8993. fi
  8994. ;;
  8995. esac
  8996. shared_flag='-shared'
  8997. if test yes = "$aix_use_runtimelinking"; then
  8998. shared_flag="$shared_flag "'$wl-G'
  8999. fi
  9000. # Need to ensure runtime linking is disabled for the traditional
  9001. # shared library, or the linker may eventually find shared libraries
  9002. # /with/ Import File - we do not want to mix them.
  9003. shared_flag_aix='-shared'
  9004. shared_flag_svr4='-shared $wl-G'
  9005. else
  9006. # not using gcc
  9007. if test ia64 = "$host_cpu"; then
  9008. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9009. # chokes on -Wl,-G. The following line is correct:
  9010. shared_flag='-G'
  9011. else
  9012. if test yes = "$aix_use_runtimelinking"; then
  9013. shared_flag='$wl-G'
  9014. else
  9015. shared_flag='$wl-bM:SRE'
  9016. fi
  9017. shared_flag_aix='$wl-bM:SRE'
  9018. shared_flag_svr4='$wl-G'
  9019. fi
  9020. fi
  9021. export_dynamic_flag_spec='$wl-bexpall'
  9022. # It seems that -bexpall does not export symbols beginning with
  9023. # underscore (_), so it is better to generate a list of symbols to export.
  9024. always_export_symbols=yes
  9025. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9026. # Warning - without using the other runtime loading flags (-brtl),
  9027. # -berok will link without error, but may produce a broken library.
  9028. allow_undefined_flag='-berok'
  9029. # Determine the default libpath from the value encoded in an
  9030. # empty executable.
  9031. if test set = "${lt_cv_aix_libpath+set}"; then
  9032. aix_libpath=$lt_cv_aix_libpath
  9033. else
  9034. if test ${lt_cv_aix_libpath_+y}
  9035. then :
  9036. printf %s "(cached) " >&6
  9037. else $as_nop
  9038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9039. /* end confdefs.h. */
  9040. int
  9041. main (void)
  9042. {
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. if ac_fn_c_try_link "$LINENO"
  9048. then :
  9049. lt_aix_libpath_sed='
  9050. /Import File Strings/,/^$/ {
  9051. /^0/ {
  9052. s/^0 *\([^ ]*\) *$/\1/
  9053. p
  9054. }
  9055. }'
  9056. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9057. # Check for a 64-bit object if we didn't find anything.
  9058. if test -z "$lt_cv_aix_libpath_"; then
  9059. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9060. fi
  9061. fi
  9062. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9063. conftest$ac_exeext conftest.$ac_ext
  9064. if test -z "$lt_cv_aix_libpath_"; then
  9065. lt_cv_aix_libpath_=/usr/lib:/lib
  9066. fi
  9067. fi
  9068. aix_libpath=$lt_cv_aix_libpath_
  9069. fi
  9070. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9071. 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
  9072. else
  9073. if test ia64 = "$host_cpu"; then
  9074. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9075. allow_undefined_flag="-z nodefs"
  9076. 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"
  9077. else
  9078. # Determine the default libpath from the value encoded in an
  9079. # empty executable.
  9080. if test set = "${lt_cv_aix_libpath+set}"; then
  9081. aix_libpath=$lt_cv_aix_libpath
  9082. else
  9083. if test ${lt_cv_aix_libpath_+y}
  9084. then :
  9085. printf %s "(cached) " >&6
  9086. else $as_nop
  9087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9088. /* end confdefs.h. */
  9089. int
  9090. main (void)
  9091. {
  9092. ;
  9093. return 0;
  9094. }
  9095. _ACEOF
  9096. if ac_fn_c_try_link "$LINENO"
  9097. then :
  9098. lt_aix_libpath_sed='
  9099. /Import File Strings/,/^$/ {
  9100. /^0/ {
  9101. s/^0 *\([^ ]*\) *$/\1/
  9102. p
  9103. }
  9104. }'
  9105. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9106. # Check for a 64-bit object if we didn't find anything.
  9107. if test -z "$lt_cv_aix_libpath_"; then
  9108. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9109. fi
  9110. fi
  9111. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9112. conftest$ac_exeext conftest.$ac_ext
  9113. if test -z "$lt_cv_aix_libpath_"; then
  9114. lt_cv_aix_libpath_=/usr/lib:/lib
  9115. fi
  9116. fi
  9117. aix_libpath=$lt_cv_aix_libpath_
  9118. fi
  9119. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9120. # Warning - without using the other run time loading flags,
  9121. # -berok will link without error, but may produce a broken library.
  9122. no_undefined_flag=' $wl-bernotok'
  9123. allow_undefined_flag=' $wl-berok'
  9124. if test yes = "$with_gnu_ld"; then
  9125. # We only use this code for GNU lds that support --whole-archive.
  9126. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9127. else
  9128. # Exported symbols can be pulled into shared objects from archives
  9129. whole_archive_flag_spec='$convenience'
  9130. fi
  9131. archive_cmds_need_lc=yes
  9132. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9133. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9134. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9135. if test svr4 != "$with_aix_soname"; then
  9136. # This is similar to how AIX traditionally builds its shared libraries.
  9137. 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'
  9138. fi
  9139. if test aix != "$with_aix_soname"; then
  9140. 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'
  9141. else
  9142. # used by -dlpreopen to get the symbols
  9143. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9144. fi
  9145. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9146. fi
  9147. fi
  9148. ;;
  9149. amigaos*)
  9150. case $host_cpu in
  9151. powerpc)
  9152. # see comment about AmigaOS4 .so support
  9153. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9154. archive_expsym_cmds=''
  9155. ;;
  9156. m68k)
  9157. 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)'
  9158. hardcode_libdir_flag_spec='-L$libdir'
  9159. hardcode_minus_L=yes
  9160. ;;
  9161. esac
  9162. ;;
  9163. bsdi[45]*)
  9164. export_dynamic_flag_spec=-rdynamic
  9165. ;;
  9166. cygwin* | mingw* | pw32* | cegcc*)
  9167. # When not using gcc, we currently assume that we are using
  9168. # Microsoft Visual C++.
  9169. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9170. # no search path for DLLs.
  9171. case $cc_basename in
  9172. cl*)
  9173. # Native MSVC
  9174. hardcode_libdir_flag_spec=' '
  9175. allow_undefined_flag=unsupported
  9176. always_export_symbols=yes
  9177. file_list_spec='@'
  9178. # Tell ltmain to make .lib files, not .a files.
  9179. libext=lib
  9180. # Tell ltmain to make .dll files, not .so files.
  9181. shrext_cmds=.dll
  9182. # FIXME: Setting linknames here is a bad hack.
  9183. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9184. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9185. cp "$export_symbols" "$output_objdir/$soname.def";
  9186. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9187. else
  9188. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9189. fi~
  9190. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9191. linknames='
  9192. # The linker will not automatically build a static lib if we build a DLL.
  9193. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9194. enable_shared_with_static_runtimes=yes
  9195. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9196. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9197. # Don't use ranlib
  9198. old_postinstall_cmds='chmod 644 $oldlib'
  9199. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9200. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9201. case $lt_outputfile in
  9202. *.exe|*.EXE) ;;
  9203. *)
  9204. lt_outputfile=$lt_outputfile.exe
  9205. lt_tool_outputfile=$lt_tool_outputfile.exe
  9206. ;;
  9207. esac~
  9208. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9209. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9210. $RM "$lt_outputfile.manifest";
  9211. fi'
  9212. ;;
  9213. *)
  9214. # Assume MSVC wrapper
  9215. hardcode_libdir_flag_spec=' '
  9216. allow_undefined_flag=unsupported
  9217. # Tell ltmain to make .lib files, not .a files.
  9218. libext=lib
  9219. # Tell ltmain to make .dll files, not .so files.
  9220. shrext_cmds=.dll
  9221. # FIXME: Setting linknames here is a bad hack.
  9222. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9223. # The linker will automatically build a .lib file if we build a DLL.
  9224. old_archive_from_new_cmds='true'
  9225. # FIXME: Should let the user specify the lib program.
  9226. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9227. enable_shared_with_static_runtimes=yes
  9228. ;;
  9229. esac
  9230. ;;
  9231. darwin* | rhapsody*)
  9232. archive_cmds_need_lc=no
  9233. hardcode_direct=no
  9234. hardcode_automatic=yes
  9235. hardcode_shlibpath_var=unsupported
  9236. if test yes = "$lt_cv_ld_force_load"; then
  9237. 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\"`'
  9238. else
  9239. whole_archive_flag_spec=''
  9240. fi
  9241. link_all_deplibs=yes
  9242. allow_undefined_flag=$_lt_dar_allow_undefined
  9243. case $cc_basename in
  9244. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9245. *) _lt_dar_can_shared=$GCC ;;
  9246. esac
  9247. if test yes = "$_lt_dar_can_shared"; then
  9248. output_verbose_link_cmd=func_echo_all
  9249. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9250. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9251. 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"
  9252. 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"
  9253. else
  9254. ld_shlibs=no
  9255. fi
  9256. ;;
  9257. dgux*)
  9258. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9259. hardcode_libdir_flag_spec='-L$libdir'
  9260. hardcode_shlibpath_var=no
  9261. ;;
  9262. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9263. # support. Future versions do this automatically, but an explicit c++rt0.o
  9264. # does not break anything, and helps significantly (at the cost of a little
  9265. # extra space).
  9266. freebsd2.2*)
  9267. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9268. hardcode_libdir_flag_spec='-R$libdir'
  9269. hardcode_direct=yes
  9270. hardcode_shlibpath_var=no
  9271. ;;
  9272. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9273. freebsd2.*)
  9274. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9275. hardcode_direct=yes
  9276. hardcode_minus_L=yes
  9277. hardcode_shlibpath_var=no
  9278. ;;
  9279. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9280. freebsd* | dragonfly* | midnightbsd*)
  9281. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9282. hardcode_libdir_flag_spec='-R$libdir'
  9283. hardcode_direct=yes
  9284. hardcode_shlibpath_var=no
  9285. ;;
  9286. hpux9*)
  9287. if test yes = "$GCC"; then
  9288. 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'
  9289. else
  9290. 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'
  9291. fi
  9292. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9293. hardcode_libdir_separator=:
  9294. hardcode_direct=yes
  9295. # hardcode_minus_L: Not really in the search PATH,
  9296. # but as the default location of the library.
  9297. hardcode_minus_L=yes
  9298. export_dynamic_flag_spec='$wl-E'
  9299. ;;
  9300. hpux10*)
  9301. if test yes,no = "$GCC,$with_gnu_ld"; then
  9302. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9303. else
  9304. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9305. fi
  9306. if test no = "$with_gnu_ld"; then
  9307. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9308. hardcode_libdir_separator=:
  9309. hardcode_direct=yes
  9310. hardcode_direct_absolute=yes
  9311. export_dynamic_flag_spec='$wl-E'
  9312. # hardcode_minus_L: Not really in the search PATH,
  9313. # but as the default location of the library.
  9314. hardcode_minus_L=yes
  9315. fi
  9316. ;;
  9317. hpux11*)
  9318. if test yes,no = "$GCC,$with_gnu_ld"; then
  9319. case $host_cpu in
  9320. hppa*64*)
  9321. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. ;;
  9323. ia64*)
  9324. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9325. ;;
  9326. *)
  9327. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9328. ;;
  9329. esac
  9330. else
  9331. case $host_cpu in
  9332. hppa*64*)
  9333. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9334. ;;
  9335. ia64*)
  9336. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9337. ;;
  9338. *)
  9339. # Older versions of the 11.00 compiler do not understand -b yet
  9340. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9342. printf %s "checking if $CC understands -b... " >&6; }
  9343. if test ${lt_cv_prog_compiler__b+y}
  9344. then :
  9345. printf %s "(cached) " >&6
  9346. else $as_nop
  9347. lt_cv_prog_compiler__b=no
  9348. save_LDFLAGS=$LDFLAGS
  9349. LDFLAGS="$LDFLAGS -b"
  9350. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9351. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9352. # The linker can only warn and ignore the option if not recognized
  9353. # So say no if there are warnings
  9354. if test -s conftest.err; then
  9355. # Append any errors to the config.log.
  9356. cat conftest.err 1>&5
  9357. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9358. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9359. if diff conftest.exp conftest.er2 >/dev/null; then
  9360. lt_cv_prog_compiler__b=yes
  9361. fi
  9362. else
  9363. lt_cv_prog_compiler__b=yes
  9364. fi
  9365. fi
  9366. $RM -r conftest*
  9367. LDFLAGS=$save_LDFLAGS
  9368. fi
  9369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9370. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9371. if test yes = "$lt_cv_prog_compiler__b"; then
  9372. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9373. else
  9374. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9375. fi
  9376. ;;
  9377. esac
  9378. fi
  9379. if test no = "$with_gnu_ld"; then
  9380. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9381. hardcode_libdir_separator=:
  9382. case $host_cpu in
  9383. hppa*64*|ia64*)
  9384. hardcode_direct=no
  9385. hardcode_shlibpath_var=no
  9386. ;;
  9387. *)
  9388. hardcode_direct=yes
  9389. hardcode_direct_absolute=yes
  9390. export_dynamic_flag_spec='$wl-E'
  9391. # hardcode_minus_L: Not really in the search PATH,
  9392. # but as the default location of the library.
  9393. hardcode_minus_L=yes
  9394. ;;
  9395. esac
  9396. fi
  9397. ;;
  9398. irix5* | irix6* | nonstopux*)
  9399. if test yes = "$GCC"; then
  9400. 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'
  9401. # Try to use the -exported_symbol ld option, if it does not
  9402. # work, assume that -exports_file does not work either and
  9403. # implicitly export all symbols.
  9404. # This should be the same for all languages, so no per-tag cache variable.
  9405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9406. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9407. if test ${lt_cv_irix_exported_symbol+y}
  9408. then :
  9409. printf %s "(cached) " >&6
  9410. else $as_nop
  9411. save_LDFLAGS=$LDFLAGS
  9412. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9414. /* end confdefs.h. */
  9415. int foo (void) { return 0; }
  9416. _ACEOF
  9417. if ac_fn_c_try_link "$LINENO"
  9418. then :
  9419. lt_cv_irix_exported_symbol=yes
  9420. else $as_nop
  9421. lt_cv_irix_exported_symbol=no
  9422. fi
  9423. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9424. conftest$ac_exeext conftest.$ac_ext
  9425. LDFLAGS=$save_LDFLAGS
  9426. fi
  9427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9428. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9429. if test yes = "$lt_cv_irix_exported_symbol"; then
  9430. 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'
  9431. fi
  9432. else
  9433. 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'
  9434. 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'
  9435. fi
  9436. archive_cmds_need_lc='no'
  9437. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9438. hardcode_libdir_separator=:
  9439. inherit_rpath=yes
  9440. link_all_deplibs=yes
  9441. ;;
  9442. linux*)
  9443. case $cc_basename in
  9444. tcc*)
  9445. # Fabrice Bellard et al's Tiny C Compiler
  9446. ld_shlibs=yes
  9447. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9448. ;;
  9449. esac
  9450. ;;
  9451. netbsd*)
  9452. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9453. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9454. else
  9455. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9456. fi
  9457. hardcode_libdir_flag_spec='-R$libdir'
  9458. hardcode_direct=yes
  9459. hardcode_shlibpath_var=no
  9460. ;;
  9461. newsos6)
  9462. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9463. hardcode_direct=yes
  9464. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9465. hardcode_libdir_separator=:
  9466. hardcode_shlibpath_var=no
  9467. ;;
  9468. *nto* | *qnx*)
  9469. ;;
  9470. openbsd* | bitrig*)
  9471. if test -f /usr/libexec/ld.so; then
  9472. hardcode_direct=yes
  9473. hardcode_shlibpath_var=no
  9474. hardcode_direct_absolute=yes
  9475. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9476. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9477. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9478. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9479. export_dynamic_flag_spec='$wl-E'
  9480. else
  9481. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9482. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9483. fi
  9484. else
  9485. ld_shlibs=no
  9486. fi
  9487. ;;
  9488. os2*)
  9489. hardcode_libdir_flag_spec='-L$libdir'
  9490. hardcode_minus_L=yes
  9491. allow_undefined_flag=unsupported
  9492. shrext_cmds=.dll
  9493. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9494. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9495. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9496. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9497. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9498. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9499. emximp -o $lib $output_objdir/$libname.def'
  9500. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9501. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9502. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9503. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9504. prefix_cmds="$SED"~
  9505. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9506. prefix_cmds="$prefix_cmds -e 1d";
  9507. fi~
  9508. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9509. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9510. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9511. emximp -o $lib $output_objdir/$libname.def'
  9512. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9513. enable_shared_with_static_runtimes=yes
  9514. file_list_spec='@'
  9515. ;;
  9516. osf3*)
  9517. if test yes = "$GCC"; then
  9518. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9519. 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'
  9520. else
  9521. allow_undefined_flag=' -expect_unresolved \*'
  9522. 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'
  9523. fi
  9524. archive_cmds_need_lc='no'
  9525. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9526. hardcode_libdir_separator=:
  9527. ;;
  9528. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9529. if test yes = "$GCC"; then
  9530. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9531. 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'
  9532. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9533. else
  9534. allow_undefined_flag=' -expect_unresolved \*'
  9535. 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'
  9536. 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~
  9537. $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'
  9538. # Both c and cxx compiler support -rpath directly
  9539. hardcode_libdir_flag_spec='-rpath $libdir'
  9540. fi
  9541. archive_cmds_need_lc='no'
  9542. hardcode_libdir_separator=:
  9543. ;;
  9544. solaris*)
  9545. no_undefined_flag=' -z defs'
  9546. if test yes = "$GCC"; then
  9547. wlarc='$wl'
  9548. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9549. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9550. $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'
  9551. else
  9552. case `$CC -V 2>&1` in
  9553. *"Compilers 5.0"*)
  9554. wlarc=''
  9555. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9556. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9557. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9558. ;;
  9559. *)
  9560. wlarc='$wl'
  9561. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9562. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9563. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9564. ;;
  9565. esac
  9566. fi
  9567. hardcode_libdir_flag_spec='-R$libdir'
  9568. hardcode_shlibpath_var=no
  9569. case $host_os in
  9570. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9571. *)
  9572. # The compiler driver will combine and reorder linker options,
  9573. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9574. # but is careful enough not to reorder.
  9575. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9576. if test yes = "$GCC"; then
  9577. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9578. else
  9579. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9580. fi
  9581. ;;
  9582. esac
  9583. link_all_deplibs=yes
  9584. ;;
  9585. sunos4*)
  9586. if test sequent = "$host_vendor"; then
  9587. # Use $CC to link under sequent, because it throws in some extra .o
  9588. # files that make .init and .fini sections work.
  9589. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9590. else
  9591. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9592. fi
  9593. hardcode_libdir_flag_spec='-L$libdir'
  9594. hardcode_direct=yes
  9595. hardcode_minus_L=yes
  9596. hardcode_shlibpath_var=no
  9597. ;;
  9598. sysv4)
  9599. case $host_vendor in
  9600. sni)
  9601. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9602. hardcode_direct=yes # is this really true???
  9603. ;;
  9604. siemens)
  9605. ## LD is ld it makes a PLAMLIB
  9606. ## CC just makes a GrossModule.
  9607. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9608. reload_cmds='$CC -r -o $output$reload_objs'
  9609. hardcode_direct=no
  9610. ;;
  9611. motorola)
  9612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9613. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9614. ;;
  9615. esac
  9616. runpath_var='LD_RUN_PATH'
  9617. hardcode_shlibpath_var=no
  9618. ;;
  9619. sysv4.3*)
  9620. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9621. hardcode_shlibpath_var=no
  9622. export_dynamic_flag_spec='-Bexport'
  9623. ;;
  9624. sysv4*MP*)
  9625. if test -d /usr/nec; then
  9626. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9627. hardcode_shlibpath_var=no
  9628. runpath_var=LD_RUN_PATH
  9629. hardcode_runpath_var=yes
  9630. ld_shlibs=yes
  9631. fi
  9632. ;;
  9633. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9634. no_undefined_flag='$wl-z,text'
  9635. archive_cmds_need_lc=no
  9636. hardcode_shlibpath_var=no
  9637. runpath_var='LD_RUN_PATH'
  9638. if test yes = "$GCC"; then
  9639. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9640. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9641. else
  9642. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9643. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9644. fi
  9645. ;;
  9646. sysv5* | sco3.2v5* | sco5v6*)
  9647. # Note: We CANNOT use -z defs as we might desire, because we do not
  9648. # link with -lc, and that would cause any symbols used from libc to
  9649. # always be unresolved, which means just about no library would
  9650. # ever link correctly. If we're not using GNU ld we use -z text
  9651. # though, which does catch some bad symbols but isn't as heavy-handed
  9652. # as -z defs.
  9653. no_undefined_flag='$wl-z,text'
  9654. allow_undefined_flag='$wl-z,nodefs'
  9655. archive_cmds_need_lc=no
  9656. hardcode_shlibpath_var=no
  9657. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9658. hardcode_libdir_separator=':'
  9659. link_all_deplibs=yes
  9660. export_dynamic_flag_spec='$wl-Bexport'
  9661. runpath_var='LD_RUN_PATH'
  9662. if test yes = "$GCC"; then
  9663. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9664. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9665. else
  9666. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9667. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9668. fi
  9669. ;;
  9670. uts4*)
  9671. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9672. hardcode_libdir_flag_spec='-L$libdir'
  9673. hardcode_shlibpath_var=no
  9674. ;;
  9675. *)
  9676. ld_shlibs=no
  9677. ;;
  9678. esac
  9679. if test sni = "$host_vendor"; then
  9680. case $host in
  9681. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9682. export_dynamic_flag_spec='$wl-Blargedynsym'
  9683. ;;
  9684. esac
  9685. fi
  9686. fi
  9687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9688. printf "%s\n" "$ld_shlibs" >&6; }
  9689. test no = "$ld_shlibs" && can_build_shared=no
  9690. with_gnu_ld=$with_gnu_ld
  9691. #
  9692. # Do we need to explicitly link libc?
  9693. #
  9694. case "x$archive_cmds_need_lc" in
  9695. x|xyes)
  9696. # Assume -lc should be added
  9697. archive_cmds_need_lc=yes
  9698. if test yes,yes = "$GCC,$enable_shared"; then
  9699. case $archive_cmds in
  9700. *'~'*)
  9701. # FIXME: we may have to deal with multi-command sequences.
  9702. ;;
  9703. '$CC '*)
  9704. # Test whether the compiler implicitly links with -lc since on some
  9705. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9706. # to ld, don't add -lc before -lgcc.
  9707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9708. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9709. if test ${lt_cv_archive_cmds_need_lc+y}
  9710. then :
  9711. printf %s "(cached) " >&6
  9712. else $as_nop
  9713. $RM conftest*
  9714. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9715. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9716. (eval $ac_compile) 2>&5
  9717. ac_status=$?
  9718. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9719. test $ac_status = 0; } 2>conftest.err; then
  9720. soname=conftest
  9721. lib=conftest
  9722. libobjs=conftest.$ac_objext
  9723. deplibs=
  9724. wl=$lt_prog_compiler_wl
  9725. pic_flag=$lt_prog_compiler_pic
  9726. compiler_flags=-v
  9727. linker_flags=-v
  9728. verstring=
  9729. output_objdir=.
  9730. libname=conftest
  9731. lt_save_allow_undefined_flag=$allow_undefined_flag
  9732. allow_undefined_flag=
  9733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9734. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9735. ac_status=$?
  9736. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9737. test $ac_status = 0; }
  9738. then
  9739. lt_cv_archive_cmds_need_lc=no
  9740. else
  9741. lt_cv_archive_cmds_need_lc=yes
  9742. fi
  9743. allow_undefined_flag=$lt_save_allow_undefined_flag
  9744. else
  9745. cat conftest.err 1>&5
  9746. fi
  9747. $RM conftest*
  9748. fi
  9749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9750. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9751. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9752. ;;
  9753. esac
  9754. fi
  9755. ;;
  9756. esac
  9757. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9758. printf %s "checking dynamic linker characteristics... " >&6; }
  9759. if test yes = "$GCC"; then
  9760. case $host_os in
  9761. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9762. *) lt_awk_arg='/^libraries:/' ;;
  9763. esac
  9764. case $host_os in
  9765. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9766. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9767. esac
  9768. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9769. case $lt_search_path_spec in
  9770. *\;*)
  9771. # if the path contains ";" then we assume it to be the separator
  9772. # otherwise default to the standard path separator (i.e. ":") - it is
  9773. # assumed that no part of a normal pathname contains ";" but that should
  9774. # okay in the real world where ";" in dirpaths is itself problematic.
  9775. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9776. ;;
  9777. *)
  9778. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9779. ;;
  9780. esac
  9781. # Ok, now we have the path, separated by spaces, we can step through it
  9782. # and add multilib dir if necessary...
  9783. lt_tmp_lt_search_path_spec=
  9784. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9785. # ...but if some path component already ends with the multilib dir we assume
  9786. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9787. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9788. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9789. lt_multi_os_dir=
  9790. ;;
  9791. esac
  9792. for lt_sys_path in $lt_search_path_spec; do
  9793. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9794. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9795. elif test -n "$lt_multi_os_dir"; then
  9796. test -d "$lt_sys_path" && \
  9797. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9798. fi
  9799. done
  9800. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9801. BEGIN {RS = " "; FS = "/|\n";} {
  9802. lt_foo = "";
  9803. lt_count = 0;
  9804. for (lt_i = NF; lt_i > 0; lt_i--) {
  9805. if ($lt_i != "" && $lt_i != ".") {
  9806. if ($lt_i == "..") {
  9807. lt_count++;
  9808. } else {
  9809. if (lt_count == 0) {
  9810. lt_foo = "/" $lt_i lt_foo;
  9811. } else {
  9812. lt_count--;
  9813. }
  9814. }
  9815. }
  9816. }
  9817. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9818. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9819. }'`
  9820. # AWK program above erroneously prepends '/' to C:/dos/paths
  9821. # for these hosts.
  9822. case $host_os in
  9823. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9824. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9825. esac
  9826. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9827. else
  9828. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9829. fi
  9830. library_names_spec=
  9831. libname_spec='lib$name'
  9832. soname_spec=
  9833. shrext_cmds=.so
  9834. postinstall_cmds=
  9835. postuninstall_cmds=
  9836. finish_cmds=
  9837. finish_eval=
  9838. shlibpath_var=
  9839. shlibpath_overrides_runpath=unknown
  9840. version_type=none
  9841. dynamic_linker="$host_os ld.so"
  9842. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9843. need_lib_prefix=unknown
  9844. hardcode_into_libs=no
  9845. # when you set need_version to no, make sure it does not cause -set_version
  9846. # flags to be left without arguments
  9847. need_version=unknown
  9848. case $host_os in
  9849. aix3*)
  9850. version_type=linux # correct to gnu/linux during the next big refactor
  9851. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9852. shlibpath_var=LIBPATH
  9853. # AIX 3 has no versioning support, so we append a major version to the name.
  9854. soname_spec='$libname$release$shared_ext$major'
  9855. ;;
  9856. aix[4-9]*)
  9857. version_type=linux # correct to gnu/linux during the next big refactor
  9858. need_lib_prefix=no
  9859. need_version=no
  9860. hardcode_into_libs=yes
  9861. if test ia64 = "$host_cpu"; then
  9862. # AIX 5 supports IA64
  9863. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9864. shlibpath_var=LD_LIBRARY_PATH
  9865. else
  9866. # With GCC up to 2.95.x, collect2 would create an import file
  9867. # for dependence libraries. The import file would start with
  9868. # the line '#! .'. This would cause the generated library to
  9869. # depend on '.', always an invalid library. This was fixed in
  9870. # development snapshots of GCC prior to 3.0.
  9871. case $host_os in
  9872. aix4 | aix4.[01] | aix4.[01].*)
  9873. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9874. echo ' yes '
  9875. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9876. :
  9877. else
  9878. can_build_shared=no
  9879. fi
  9880. ;;
  9881. esac
  9882. # Using Import Files as archive members, it is possible to support
  9883. # filename-based versioning of shared library archives on AIX. While
  9884. # this would work for both with and without runtime linking, it will
  9885. # prevent static linking of such archives. So we do filename-based
  9886. # shared library versioning with .so extension only, which is used
  9887. # when both runtime linking and shared linking is enabled.
  9888. # Unfortunately, runtime linking may impact performance, so we do
  9889. # not want this to be the default eventually. Also, we use the
  9890. # versioned .so libs for executables only if there is the -brtl
  9891. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9892. # To allow for filename-based versioning support, we need to create
  9893. # libNAME.so.V as an archive file, containing:
  9894. # *) an Import File, referring to the versioned filename of the
  9895. # archive as well as the shared archive member, telling the
  9896. # bitwidth (32 or 64) of that shared object, and providing the
  9897. # list of exported symbols of that shared object, eventually
  9898. # decorated with the 'weak' keyword
  9899. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9900. # it being seen by the linker.
  9901. # At run time we better use the real file rather than another symlink,
  9902. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9903. case $with_aix_soname,$aix_use_runtimelinking in
  9904. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9905. # soname into executable. Probably we can add versioning support to
  9906. # collect2, so additional links can be useful in future.
  9907. aix,yes) # traditional libtool
  9908. dynamic_linker='AIX unversionable lib.so'
  9909. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9910. # instead of lib<name>.a to let people know that these are not
  9911. # typical AIX shared libraries.
  9912. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9913. ;;
  9914. aix,no) # traditional AIX only
  9915. dynamic_linker='AIX lib.a(lib.so.V)'
  9916. # We preserve .a as extension for shared libraries through AIX4.2
  9917. # and later when we are not doing run time linking.
  9918. library_names_spec='$libname$release.a $libname.a'
  9919. soname_spec='$libname$release$shared_ext$major'
  9920. ;;
  9921. svr4,*) # full svr4 only
  9922. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9923. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9924. # We do not specify a path in Import Files, so LIBPATH fires.
  9925. shlibpath_overrides_runpath=yes
  9926. ;;
  9927. *,yes) # both, prefer svr4
  9928. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9929. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9930. # unpreferred sharedlib libNAME.a needs extra handling
  9931. 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"'
  9932. 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"'
  9933. # We do not specify a path in Import Files, so LIBPATH fires.
  9934. shlibpath_overrides_runpath=yes
  9935. ;;
  9936. *,no) # both, prefer aix
  9937. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9938. library_names_spec='$libname$release.a $libname.a'
  9939. soname_spec='$libname$release$shared_ext$major'
  9940. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9941. 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)'
  9942. 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"'
  9943. ;;
  9944. esac
  9945. shlibpath_var=LIBPATH
  9946. fi
  9947. ;;
  9948. amigaos*)
  9949. case $host_cpu in
  9950. powerpc)
  9951. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9952. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9953. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9954. ;;
  9955. m68k)
  9956. library_names_spec='$libname.ixlibrary $libname.a'
  9957. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9958. 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'
  9959. ;;
  9960. esac
  9961. ;;
  9962. beos*)
  9963. library_names_spec='$libname$shared_ext'
  9964. dynamic_linker="$host_os ld.so"
  9965. shlibpath_var=LIBRARY_PATH
  9966. ;;
  9967. bsdi[45]*)
  9968. version_type=linux # correct to gnu/linux during the next big refactor
  9969. need_version=no
  9970. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9971. soname_spec='$libname$release$shared_ext$major'
  9972. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9973. shlibpath_var=LD_LIBRARY_PATH
  9974. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9975. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9976. # the default ld.so.conf also contains /usr/contrib/lib and
  9977. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9978. # libtool to hard-code these into programs
  9979. ;;
  9980. cygwin* | mingw* | pw32* | cegcc*)
  9981. version_type=windows
  9982. shrext_cmds=.dll
  9983. need_version=no
  9984. need_lib_prefix=no
  9985. case $GCC,$cc_basename in
  9986. yes,*)
  9987. # gcc
  9988. library_names_spec='$libname.dll.a'
  9989. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9990. postinstall_cmds='base_file=`basename \$file`~
  9991. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9992. dldir=$destdir/`dirname \$dlpath`~
  9993. test -d \$dldir || mkdir -p \$dldir~
  9994. $install_prog $dir/$dlname \$dldir/$dlname~
  9995. chmod a+x \$dldir/$dlname~
  9996. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9997. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9998. fi'
  9999. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10000. dlpath=$dir/\$dldll~
  10001. $RM \$dlpath'
  10002. shlibpath_overrides_runpath=yes
  10003. case $host_os in
  10004. cygwin*)
  10005. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10006. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10007. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10008. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10009. ;;
  10010. mingw* | cegcc*)
  10011. # MinGW DLLs use traditional 'lib' prefix
  10012. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10013. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10014. ;;
  10015. pw32*)
  10016. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10017. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10018. ;;
  10019. esac
  10020. dynamic_linker='Win32 ld.exe'
  10021. ;;
  10022. *,cl*)
  10023. # Native MSVC
  10024. libname_spec='$name'
  10025. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10026. library_names_spec='$libname.dll.lib'
  10027. case $build_os in
  10028. mingw*)
  10029. sys_lib_search_path_spec=
  10030. lt_save_ifs=$IFS
  10031. IFS=';'
  10032. for lt_path in $LIB
  10033. do
  10034. IFS=$lt_save_ifs
  10035. # Let DOS variable expansion print the short 8.3 style file name.
  10036. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10037. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10038. done
  10039. IFS=$lt_save_ifs
  10040. # Convert to MSYS style.
  10041. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10042. ;;
  10043. cygwin*)
  10044. # Convert to unix form, then to dos form, then back to unix form
  10045. # but this time dos style (no spaces!) so that the unix form looks
  10046. # like /cygdrive/c/PROGRA~1:/cygdr...
  10047. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10048. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10049. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10050. ;;
  10051. *)
  10052. sys_lib_search_path_spec=$LIB
  10053. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10054. # It is most probably a Windows format PATH.
  10055. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10056. else
  10057. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10058. fi
  10059. # FIXME: find the short name or the path components, as spaces are
  10060. # common. (e.g. "Program Files" -> "PROGRA~1")
  10061. ;;
  10062. esac
  10063. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10064. postinstall_cmds='base_file=`basename \$file`~
  10065. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10066. dldir=$destdir/`dirname \$dlpath`~
  10067. test -d \$dldir || mkdir -p \$dldir~
  10068. $install_prog $dir/$dlname \$dldir/$dlname'
  10069. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10070. dlpath=$dir/\$dldll~
  10071. $RM \$dlpath'
  10072. shlibpath_overrides_runpath=yes
  10073. dynamic_linker='Win32 link.exe'
  10074. ;;
  10075. *)
  10076. # Assume MSVC wrapper
  10077. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10078. dynamic_linker='Win32 ld.exe'
  10079. ;;
  10080. esac
  10081. # FIXME: first we should search . and the directory the executable is in
  10082. shlibpath_var=PATH
  10083. ;;
  10084. darwin* | rhapsody*)
  10085. dynamic_linker="$host_os dyld"
  10086. version_type=darwin
  10087. need_lib_prefix=no
  10088. need_version=no
  10089. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10090. soname_spec='$libname$release$major$shared_ext'
  10091. shlibpath_overrides_runpath=yes
  10092. shlibpath_var=DYLD_LIBRARY_PATH
  10093. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10094. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10095. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10096. ;;
  10097. dgux*)
  10098. version_type=linux # correct to gnu/linux during the next big refactor
  10099. need_lib_prefix=no
  10100. need_version=no
  10101. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10102. soname_spec='$libname$release$shared_ext$major'
  10103. shlibpath_var=LD_LIBRARY_PATH
  10104. ;;
  10105. freebsd* | dragonfly* | midnightbsd*)
  10106. # DragonFly does not have aout. When/if they implement a new
  10107. # versioning mechanism, adjust this.
  10108. if test -x /usr/bin/objformat; then
  10109. objformat=`/usr/bin/objformat`
  10110. else
  10111. case $host_os in
  10112. freebsd[23].*) objformat=aout ;;
  10113. *) objformat=elf ;;
  10114. esac
  10115. fi
  10116. version_type=freebsd-$objformat
  10117. case $version_type in
  10118. freebsd-elf*)
  10119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10120. soname_spec='$libname$release$shared_ext$major'
  10121. need_version=no
  10122. need_lib_prefix=no
  10123. ;;
  10124. freebsd-*)
  10125. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10126. need_version=yes
  10127. ;;
  10128. esac
  10129. shlibpath_var=LD_LIBRARY_PATH
  10130. case $host_os in
  10131. freebsd2.*)
  10132. shlibpath_overrides_runpath=yes
  10133. ;;
  10134. freebsd3.[01]* | freebsdelf3.[01]*)
  10135. shlibpath_overrides_runpath=yes
  10136. hardcode_into_libs=yes
  10137. ;;
  10138. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10139. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10140. shlibpath_overrides_runpath=no
  10141. hardcode_into_libs=yes
  10142. ;;
  10143. *) # from 4.6 on, and DragonFly
  10144. shlibpath_overrides_runpath=yes
  10145. hardcode_into_libs=yes
  10146. ;;
  10147. esac
  10148. ;;
  10149. haiku*)
  10150. version_type=linux # correct to gnu/linux during the next big refactor
  10151. need_lib_prefix=no
  10152. need_version=no
  10153. dynamic_linker="$host_os runtime_loader"
  10154. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10155. soname_spec='$libname$release$shared_ext$major'
  10156. shlibpath_var=LIBRARY_PATH
  10157. shlibpath_overrides_runpath=no
  10158. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10159. hardcode_into_libs=yes
  10160. ;;
  10161. hpux9* | hpux10* | hpux11*)
  10162. # Give a soname corresponding to the major version so that dld.sl refuses to
  10163. # link against other versions.
  10164. version_type=sunos
  10165. need_lib_prefix=no
  10166. need_version=no
  10167. case $host_cpu in
  10168. ia64*)
  10169. shrext_cmds='.so'
  10170. hardcode_into_libs=yes
  10171. dynamic_linker="$host_os dld.so"
  10172. shlibpath_var=LD_LIBRARY_PATH
  10173. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10175. soname_spec='$libname$release$shared_ext$major'
  10176. if test 32 = "$HPUX_IA64_MODE"; then
  10177. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10178. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10179. else
  10180. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10181. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10182. fi
  10183. ;;
  10184. hppa*64*)
  10185. shrext_cmds='.sl'
  10186. hardcode_into_libs=yes
  10187. dynamic_linker="$host_os dld.sl"
  10188. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10189. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10190. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10191. soname_spec='$libname$release$shared_ext$major'
  10192. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10193. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10194. ;;
  10195. *)
  10196. shrext_cmds='.sl'
  10197. dynamic_linker="$host_os dld.sl"
  10198. shlibpath_var=SHLIB_PATH
  10199. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10200. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10201. soname_spec='$libname$release$shared_ext$major'
  10202. ;;
  10203. esac
  10204. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10205. postinstall_cmds='chmod 555 $lib'
  10206. # or fails outright, so override atomically:
  10207. install_override_mode=555
  10208. ;;
  10209. interix[3-9]*)
  10210. version_type=linux # correct to gnu/linux during the next big refactor
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10214. soname_spec='$libname$release$shared_ext$major'
  10215. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. shlibpath_overrides_runpath=no
  10218. hardcode_into_libs=yes
  10219. ;;
  10220. irix5* | irix6* | nonstopux*)
  10221. case $host_os in
  10222. nonstopux*) version_type=nonstopux ;;
  10223. *)
  10224. if test yes = "$lt_cv_prog_gnu_ld"; then
  10225. version_type=linux # correct to gnu/linux during the next big refactor
  10226. else
  10227. version_type=irix
  10228. fi ;;
  10229. esac
  10230. need_lib_prefix=no
  10231. need_version=no
  10232. soname_spec='$libname$release$shared_ext$major'
  10233. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10234. case $host_os in
  10235. irix5* | nonstopux*)
  10236. libsuff= shlibsuff=
  10237. ;;
  10238. *)
  10239. case $LD in # libtool.m4 will add one of these switches to LD
  10240. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10241. libsuff= shlibsuff= libmagic=32-bit;;
  10242. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10243. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10244. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10245. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10246. *) libsuff= shlibsuff= libmagic=never-match;;
  10247. esac
  10248. ;;
  10249. esac
  10250. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10251. shlibpath_overrides_runpath=no
  10252. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10253. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10254. hardcode_into_libs=yes
  10255. ;;
  10256. # No shared lib support for Linux oldld, aout, or coff.
  10257. linux*oldld* | linux*aout* | linux*coff*)
  10258. dynamic_linker=no
  10259. ;;
  10260. linux*android*)
  10261. version_type=none # Android doesn't support versioned libraries.
  10262. need_lib_prefix=no
  10263. need_version=no
  10264. library_names_spec='$libname$release$shared_ext'
  10265. soname_spec='$libname$release$shared_ext'
  10266. finish_cmds=
  10267. shlibpath_var=LD_LIBRARY_PATH
  10268. shlibpath_overrides_runpath=yes
  10269. # This implies no fast_install, which is unacceptable.
  10270. # Some rework will be needed to allow for fast_install
  10271. # before this can be enabled.
  10272. hardcode_into_libs=yes
  10273. dynamic_linker='Android linker'
  10274. # Don't embed -rpath directories since the linker doesn't support them.
  10275. hardcode_libdir_flag_spec='-L$libdir'
  10276. ;;
  10277. # This must be glibc/ELF.
  10278. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10279. version_type=linux # correct to gnu/linux during the next big refactor
  10280. need_lib_prefix=no
  10281. need_version=no
  10282. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10283. soname_spec='$libname$release$shared_ext$major'
  10284. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10285. shlibpath_var=LD_LIBRARY_PATH
  10286. shlibpath_overrides_runpath=no
  10287. # Some binutils ld are patched to set DT_RUNPATH
  10288. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10289. then :
  10290. printf %s "(cached) " >&6
  10291. else $as_nop
  10292. lt_cv_shlibpath_overrides_runpath=no
  10293. save_LDFLAGS=$LDFLAGS
  10294. save_libdir=$libdir
  10295. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10296. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10298. /* end confdefs.h. */
  10299. int
  10300. main (void)
  10301. {
  10302. ;
  10303. return 0;
  10304. }
  10305. _ACEOF
  10306. if ac_fn_c_try_link "$LINENO"
  10307. then :
  10308. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10309. then :
  10310. lt_cv_shlibpath_overrides_runpath=yes
  10311. fi
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LDFLAGS=$save_LDFLAGS
  10316. libdir=$save_libdir
  10317. fi
  10318. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10319. # This implies no fast_install, which is unacceptable.
  10320. # Some rework will be needed to allow for fast_install
  10321. # before this can be enabled.
  10322. hardcode_into_libs=yes
  10323. # Add ABI-specific directories to the system library path.
  10324. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10325. # Ideally, we could use ldconfig to report *all* directores which are
  10326. # searched for libraries, however this is still not possible. Aside from not
  10327. # being certain /sbin/ldconfig is available, command
  10328. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10329. # even though it is searched at run-time. Try to do the best guess by
  10330. # appending ld.so.conf contents (and includes) to the search path.
  10331. if test -f /etc/ld.so.conf; then
  10332. 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' ' '`
  10333. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10334. fi
  10335. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10336. # powerpc, because MkLinux only supported shared libraries with the
  10337. # GNU dynamic linker. Since this was broken with cross compilers,
  10338. # most powerpc-linux boxes support dynamic linking these days and
  10339. # people can always --disable-shared, the test was removed, and we
  10340. # assume the GNU/Linux dynamic linker is in use.
  10341. dynamic_linker='GNU/Linux ld.so'
  10342. ;;
  10343. netbsd*)
  10344. version_type=sunos
  10345. need_lib_prefix=no
  10346. need_version=no
  10347. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10348. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10349. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10350. dynamic_linker='NetBSD (a.out) ld.so'
  10351. else
  10352. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10353. soname_spec='$libname$release$shared_ext$major'
  10354. dynamic_linker='NetBSD ld.elf_so'
  10355. fi
  10356. shlibpath_var=LD_LIBRARY_PATH
  10357. shlibpath_overrides_runpath=yes
  10358. hardcode_into_libs=yes
  10359. ;;
  10360. newsos6)
  10361. version_type=linux # correct to gnu/linux during the next big refactor
  10362. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10363. shlibpath_var=LD_LIBRARY_PATH
  10364. shlibpath_overrides_runpath=yes
  10365. ;;
  10366. *nto* | *qnx*)
  10367. version_type=qnx
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10371. soname_spec='$libname$release$shared_ext$major'
  10372. shlibpath_var=LD_LIBRARY_PATH
  10373. shlibpath_overrides_runpath=no
  10374. hardcode_into_libs=yes
  10375. dynamic_linker='ldqnx.so'
  10376. ;;
  10377. openbsd* | bitrig*)
  10378. version_type=sunos
  10379. sys_lib_dlsearch_path_spec=/usr/lib
  10380. need_lib_prefix=no
  10381. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10382. need_version=no
  10383. else
  10384. need_version=yes
  10385. fi
  10386. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10387. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10388. shlibpath_var=LD_LIBRARY_PATH
  10389. shlibpath_overrides_runpath=yes
  10390. ;;
  10391. os2*)
  10392. libname_spec='$name'
  10393. shrext_cmds=.dll
  10394. need_lib_prefix=no
  10395. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10396. # SDL customization: removed versioning support.
  10397. # version_type=windows
  10398. # need_version=no
  10399. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10400. # v=$($ECHO $release$versuffix | tr -d .-);
  10401. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10402. # $ECHO $n$v`$shared_ext'
  10403. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10404. library_names_spec='${libname}_dll.$libext'
  10405. dynamic_linker='OS/2 ld.exe'
  10406. shlibpath_var=BEGINLIBPATH
  10407. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10408. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10409. postinstall_cmds='base_file=`basename \$file`~
  10410. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10411. dldir=$destdir/`dirname \$dlpath`~
  10412. test -d \$dldir || mkdir -p \$dldir~
  10413. $install_prog $dir/$dlname \$dldir/$dlname~
  10414. chmod a+x \$dldir/$dlname~
  10415. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10416. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10417. fi'
  10418. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10419. dlpath=$dir/\$dldll~
  10420. $RM \$dlpath'
  10421. ;;
  10422. osf3* | osf4* | osf5*)
  10423. version_type=osf
  10424. need_lib_prefix=no
  10425. need_version=no
  10426. soname_spec='$libname$release$shared_ext$major'
  10427. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10428. shlibpath_var=LD_LIBRARY_PATH
  10429. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10430. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10431. ;;
  10432. rdos*)
  10433. dynamic_linker=no
  10434. ;;
  10435. solaris*)
  10436. version_type=linux # correct to gnu/linux during the next big refactor
  10437. need_lib_prefix=no
  10438. need_version=no
  10439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10440. soname_spec='$libname$release$shared_ext$major'
  10441. shlibpath_var=LD_LIBRARY_PATH
  10442. shlibpath_overrides_runpath=yes
  10443. hardcode_into_libs=yes
  10444. # ldd complains unless libraries are executable
  10445. postinstall_cmds='chmod +x $lib'
  10446. ;;
  10447. sunos4*)
  10448. version_type=sunos
  10449. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10450. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10451. shlibpath_var=LD_LIBRARY_PATH
  10452. shlibpath_overrides_runpath=yes
  10453. if test yes = "$with_gnu_ld"; then
  10454. need_lib_prefix=no
  10455. fi
  10456. need_version=yes
  10457. ;;
  10458. sysv4 | sysv4.3*)
  10459. version_type=linux # correct to gnu/linux during the next big refactor
  10460. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10461. soname_spec='$libname$release$shared_ext$major'
  10462. shlibpath_var=LD_LIBRARY_PATH
  10463. case $host_vendor in
  10464. sni)
  10465. shlibpath_overrides_runpath=no
  10466. need_lib_prefix=no
  10467. runpath_var=LD_RUN_PATH
  10468. ;;
  10469. siemens)
  10470. need_lib_prefix=no
  10471. ;;
  10472. motorola)
  10473. need_lib_prefix=no
  10474. need_version=no
  10475. shlibpath_overrides_runpath=no
  10476. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10477. ;;
  10478. esac
  10479. ;;
  10480. sysv4*MP*)
  10481. if test -d /usr/nec; then
  10482. version_type=linux # correct to gnu/linux during the next big refactor
  10483. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10484. soname_spec='$libname$shared_ext.$major'
  10485. shlibpath_var=LD_LIBRARY_PATH
  10486. fi
  10487. ;;
  10488. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10489. version_type=sco
  10490. need_lib_prefix=no
  10491. need_version=no
  10492. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10493. soname_spec='$libname$release$shared_ext$major'
  10494. shlibpath_var=LD_LIBRARY_PATH
  10495. shlibpath_overrides_runpath=yes
  10496. hardcode_into_libs=yes
  10497. if test yes = "$with_gnu_ld"; then
  10498. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10499. else
  10500. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10501. case $host_os in
  10502. sco3.2v5*)
  10503. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10504. ;;
  10505. esac
  10506. fi
  10507. sys_lib_dlsearch_path_spec='/usr/lib'
  10508. ;;
  10509. tpf*)
  10510. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10511. version_type=linux # correct to gnu/linux during the next big refactor
  10512. need_lib_prefix=no
  10513. need_version=no
  10514. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10515. shlibpath_var=LD_LIBRARY_PATH
  10516. shlibpath_overrides_runpath=no
  10517. hardcode_into_libs=yes
  10518. ;;
  10519. uts4*)
  10520. version_type=linux # correct to gnu/linux during the next big refactor
  10521. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10522. soname_spec='$libname$release$shared_ext$major'
  10523. shlibpath_var=LD_LIBRARY_PATH
  10524. ;;
  10525. *)
  10526. dynamic_linker=no
  10527. ;;
  10528. esac
  10529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10530. printf "%s\n" "$dynamic_linker" >&6; }
  10531. test no = "$dynamic_linker" && can_build_shared=no
  10532. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10533. if test yes = "$GCC"; then
  10534. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10535. fi
  10536. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10537. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10538. fi
  10539. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10540. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10541. fi
  10542. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10543. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10544. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10545. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10546. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10547. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10549. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10550. hardcode_action=
  10551. if test -n "$hardcode_libdir_flag_spec" ||
  10552. test -n "$runpath_var" ||
  10553. test yes = "$hardcode_automatic"; then
  10554. # We can hardcode non-existent directories.
  10555. if test no != "$hardcode_direct" &&
  10556. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10557. # have to relink, otherwise we might link with an installed library
  10558. # when we should be linking with a yet-to-be-installed one
  10559. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10560. test no != "$hardcode_minus_L"; then
  10561. # Linking always hardcodes the temporary library directory.
  10562. hardcode_action=relink
  10563. else
  10564. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10565. hardcode_action=immediate
  10566. fi
  10567. else
  10568. # We cannot hardcode anything, or else we can only hardcode existing
  10569. # directories.
  10570. hardcode_action=unsupported
  10571. fi
  10572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10573. printf "%s\n" "$hardcode_action" >&6; }
  10574. if test relink = "$hardcode_action" ||
  10575. test yes = "$inherit_rpath"; then
  10576. # Fast installation is not supported
  10577. enable_fast_install=no
  10578. elif test yes = "$shlibpath_overrides_runpath" ||
  10579. test no = "$enable_shared"; then
  10580. # Fast installation is not necessary
  10581. enable_fast_install=needless
  10582. fi
  10583. if test yes != "$enable_dlopen"; then
  10584. enable_dlopen=unknown
  10585. enable_dlopen_self=unknown
  10586. enable_dlopen_self_static=unknown
  10587. else
  10588. lt_cv_dlopen=no
  10589. lt_cv_dlopen_libs=
  10590. case $host_os in
  10591. beos*)
  10592. lt_cv_dlopen=load_add_on
  10593. lt_cv_dlopen_libs=
  10594. lt_cv_dlopen_self=yes
  10595. ;;
  10596. mingw* | pw32* | cegcc*)
  10597. lt_cv_dlopen=LoadLibrary
  10598. lt_cv_dlopen_libs=
  10599. ;;
  10600. cygwin*)
  10601. lt_cv_dlopen=dlopen
  10602. lt_cv_dlopen_libs=
  10603. ;;
  10604. darwin*)
  10605. # if libdl is installed we need to link against it
  10606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10607. printf %s "checking for dlopen in -ldl... " >&6; }
  10608. if test ${ac_cv_lib_dl_dlopen+y}
  10609. then :
  10610. printf %s "(cached) " >&6
  10611. else $as_nop
  10612. ac_check_lib_save_LIBS=$LIBS
  10613. LIBS="-ldl $LIBS"
  10614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10615. /* end confdefs.h. */
  10616. /* Override any GCC internal prototype to avoid an error.
  10617. Use char because int might match the return type of a GCC
  10618. builtin and then its argument prototype would still apply. */
  10619. char dlopen ();
  10620. int
  10621. main (void)
  10622. {
  10623. return dlopen ();
  10624. ;
  10625. return 0;
  10626. }
  10627. _ACEOF
  10628. if ac_fn_c_try_link "$LINENO"
  10629. then :
  10630. ac_cv_lib_dl_dlopen=yes
  10631. else $as_nop
  10632. ac_cv_lib_dl_dlopen=no
  10633. fi
  10634. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10635. conftest$ac_exeext conftest.$ac_ext
  10636. LIBS=$ac_check_lib_save_LIBS
  10637. fi
  10638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10639. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10640. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10641. then :
  10642. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10643. else $as_nop
  10644. lt_cv_dlopen=dyld
  10645. lt_cv_dlopen_libs=
  10646. lt_cv_dlopen_self=yes
  10647. fi
  10648. ;;
  10649. tpf*)
  10650. # Don't try to run any link tests for TPF. We know it's impossible
  10651. # because TPF is a cross-compiler, and we know how we open DSOs.
  10652. lt_cv_dlopen=dlopen
  10653. lt_cv_dlopen_libs=
  10654. lt_cv_dlopen_self=no
  10655. ;;
  10656. *)
  10657. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10658. if test "x$ac_cv_func_shl_load" = xyes
  10659. then :
  10660. lt_cv_dlopen=shl_load
  10661. else $as_nop
  10662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10663. printf %s "checking for shl_load in -ldld... " >&6; }
  10664. if test ${ac_cv_lib_dld_shl_load+y}
  10665. then :
  10666. printf %s "(cached) " >&6
  10667. else $as_nop
  10668. ac_check_lib_save_LIBS=$LIBS
  10669. LIBS="-ldld $LIBS"
  10670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10671. /* end confdefs.h. */
  10672. /* Override any GCC internal prototype to avoid an error.
  10673. Use char because int might match the return type of a GCC
  10674. builtin and then its argument prototype would still apply. */
  10675. char shl_load ();
  10676. int
  10677. main (void)
  10678. {
  10679. return shl_load ();
  10680. ;
  10681. return 0;
  10682. }
  10683. _ACEOF
  10684. if ac_fn_c_try_link "$LINENO"
  10685. then :
  10686. ac_cv_lib_dld_shl_load=yes
  10687. else $as_nop
  10688. ac_cv_lib_dld_shl_load=no
  10689. fi
  10690. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10691. conftest$ac_exeext conftest.$ac_ext
  10692. LIBS=$ac_check_lib_save_LIBS
  10693. fi
  10694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10695. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10696. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10697. then :
  10698. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10699. else $as_nop
  10700. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10701. if test "x$ac_cv_func_dlopen" = xyes
  10702. then :
  10703. lt_cv_dlopen=dlopen
  10704. else $as_nop
  10705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10706. printf %s "checking for dlopen in -ldl... " >&6; }
  10707. if test ${ac_cv_lib_dl_dlopen+y}
  10708. then :
  10709. printf %s "(cached) " >&6
  10710. else $as_nop
  10711. ac_check_lib_save_LIBS=$LIBS
  10712. LIBS="-ldl $LIBS"
  10713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10714. /* end confdefs.h. */
  10715. /* Override any GCC internal prototype to avoid an error.
  10716. Use char because int might match the return type of a GCC
  10717. builtin and then its argument prototype would still apply. */
  10718. char dlopen ();
  10719. int
  10720. main (void)
  10721. {
  10722. return dlopen ();
  10723. ;
  10724. return 0;
  10725. }
  10726. _ACEOF
  10727. if ac_fn_c_try_link "$LINENO"
  10728. then :
  10729. ac_cv_lib_dl_dlopen=yes
  10730. else $as_nop
  10731. ac_cv_lib_dl_dlopen=no
  10732. fi
  10733. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10734. conftest$ac_exeext conftest.$ac_ext
  10735. LIBS=$ac_check_lib_save_LIBS
  10736. fi
  10737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10738. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10739. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10740. then :
  10741. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10742. else $as_nop
  10743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10744. printf %s "checking for dlopen in -lsvld... " >&6; }
  10745. if test ${ac_cv_lib_svld_dlopen+y}
  10746. then :
  10747. printf %s "(cached) " >&6
  10748. else $as_nop
  10749. ac_check_lib_save_LIBS=$LIBS
  10750. LIBS="-lsvld $LIBS"
  10751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10752. /* end confdefs.h. */
  10753. /* Override any GCC internal prototype to avoid an error.
  10754. Use char because int might match the return type of a GCC
  10755. builtin and then its argument prototype would still apply. */
  10756. char dlopen ();
  10757. int
  10758. main (void)
  10759. {
  10760. return dlopen ();
  10761. ;
  10762. return 0;
  10763. }
  10764. _ACEOF
  10765. if ac_fn_c_try_link "$LINENO"
  10766. then :
  10767. ac_cv_lib_svld_dlopen=yes
  10768. else $as_nop
  10769. ac_cv_lib_svld_dlopen=no
  10770. fi
  10771. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10772. conftest$ac_exeext conftest.$ac_ext
  10773. LIBS=$ac_check_lib_save_LIBS
  10774. fi
  10775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10776. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10777. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10778. then :
  10779. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10780. else $as_nop
  10781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10782. printf %s "checking for dld_link in -ldld... " >&6; }
  10783. if test ${ac_cv_lib_dld_dld_link+y}
  10784. then :
  10785. printf %s "(cached) " >&6
  10786. else $as_nop
  10787. ac_check_lib_save_LIBS=$LIBS
  10788. LIBS="-ldld $LIBS"
  10789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10790. /* end confdefs.h. */
  10791. /* Override any GCC internal prototype to avoid an error.
  10792. Use char because int might match the return type of a GCC
  10793. builtin and then its argument prototype would still apply. */
  10794. char dld_link ();
  10795. int
  10796. main (void)
  10797. {
  10798. return dld_link ();
  10799. ;
  10800. return 0;
  10801. }
  10802. _ACEOF
  10803. if ac_fn_c_try_link "$LINENO"
  10804. then :
  10805. ac_cv_lib_dld_dld_link=yes
  10806. else $as_nop
  10807. ac_cv_lib_dld_dld_link=no
  10808. fi
  10809. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10810. conftest$ac_exeext conftest.$ac_ext
  10811. LIBS=$ac_check_lib_save_LIBS
  10812. fi
  10813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10814. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10815. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10816. then :
  10817. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10818. fi
  10819. fi
  10820. fi
  10821. fi
  10822. fi
  10823. fi
  10824. ;;
  10825. esac
  10826. if test no = "$lt_cv_dlopen"; then
  10827. enable_dlopen=no
  10828. else
  10829. enable_dlopen=yes
  10830. fi
  10831. case $lt_cv_dlopen in
  10832. dlopen)
  10833. save_CPPFLAGS=$CPPFLAGS
  10834. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10835. save_LDFLAGS=$LDFLAGS
  10836. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10837. save_LIBS=$LIBS
  10838. LIBS="$lt_cv_dlopen_libs $LIBS"
  10839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10840. printf %s "checking whether a program can dlopen itself... " >&6; }
  10841. if test ${lt_cv_dlopen_self+y}
  10842. then :
  10843. printf %s "(cached) " >&6
  10844. else $as_nop
  10845. if test yes = "$cross_compiling"; then :
  10846. lt_cv_dlopen_self=cross
  10847. else
  10848. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10849. lt_status=$lt_dlunknown
  10850. cat > conftest.$ac_ext <<_LT_EOF
  10851. #line $LINENO "configure"
  10852. #include "confdefs.h"
  10853. #if HAVE_DLFCN_H
  10854. #include <dlfcn.h>
  10855. #endif
  10856. #include <stdio.h>
  10857. #ifdef RTLD_GLOBAL
  10858. # define LT_DLGLOBAL RTLD_GLOBAL
  10859. #else
  10860. # ifdef DL_GLOBAL
  10861. # define LT_DLGLOBAL DL_GLOBAL
  10862. # else
  10863. # define LT_DLGLOBAL 0
  10864. # endif
  10865. #endif
  10866. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10867. find out it does not work in some platform. */
  10868. #ifndef LT_DLLAZY_OR_NOW
  10869. # ifdef RTLD_LAZY
  10870. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10871. # else
  10872. # ifdef DL_LAZY
  10873. # define LT_DLLAZY_OR_NOW DL_LAZY
  10874. # else
  10875. # ifdef RTLD_NOW
  10876. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10877. # else
  10878. # ifdef DL_NOW
  10879. # define LT_DLLAZY_OR_NOW DL_NOW
  10880. # else
  10881. # define LT_DLLAZY_OR_NOW 0
  10882. # endif
  10883. # endif
  10884. # endif
  10885. # endif
  10886. #endif
  10887. /* When -fvisibility=hidden is used, assume the code has been annotated
  10888. correspondingly for the symbols needed. */
  10889. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10890. int fnord () __attribute__((visibility("default")));
  10891. #endif
  10892. int fnord () { return 42; }
  10893. int main ()
  10894. {
  10895. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10896. int status = $lt_dlunknown;
  10897. if (self)
  10898. {
  10899. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10900. else
  10901. {
  10902. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10903. else puts (dlerror ());
  10904. }
  10905. /* dlclose (self); */
  10906. }
  10907. else
  10908. puts (dlerror ());
  10909. return status;
  10910. }
  10911. _LT_EOF
  10912. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10913. (eval $ac_link) 2>&5
  10914. ac_status=$?
  10915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10916. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10917. (./conftest; exit; ) >&5 2>/dev/null
  10918. lt_status=$?
  10919. case x$lt_status in
  10920. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10921. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10922. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10923. esac
  10924. else :
  10925. # compilation failed
  10926. lt_cv_dlopen_self=no
  10927. fi
  10928. fi
  10929. rm -fr conftest*
  10930. fi
  10931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10932. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10933. if test yes = "$lt_cv_dlopen_self"; then
  10934. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10936. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10937. if test ${lt_cv_dlopen_self_static+y}
  10938. then :
  10939. printf %s "(cached) " >&6
  10940. else $as_nop
  10941. if test yes = "$cross_compiling"; then :
  10942. lt_cv_dlopen_self_static=cross
  10943. else
  10944. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10945. lt_status=$lt_dlunknown
  10946. cat > conftest.$ac_ext <<_LT_EOF
  10947. #line $LINENO "configure"
  10948. #include "confdefs.h"
  10949. #if HAVE_DLFCN_H
  10950. #include <dlfcn.h>
  10951. #endif
  10952. #include <stdio.h>
  10953. #ifdef RTLD_GLOBAL
  10954. # define LT_DLGLOBAL RTLD_GLOBAL
  10955. #else
  10956. # ifdef DL_GLOBAL
  10957. # define LT_DLGLOBAL DL_GLOBAL
  10958. # else
  10959. # define LT_DLGLOBAL 0
  10960. # endif
  10961. #endif
  10962. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10963. find out it does not work in some platform. */
  10964. #ifndef LT_DLLAZY_OR_NOW
  10965. # ifdef RTLD_LAZY
  10966. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10967. # else
  10968. # ifdef DL_LAZY
  10969. # define LT_DLLAZY_OR_NOW DL_LAZY
  10970. # else
  10971. # ifdef RTLD_NOW
  10972. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10973. # else
  10974. # ifdef DL_NOW
  10975. # define LT_DLLAZY_OR_NOW DL_NOW
  10976. # else
  10977. # define LT_DLLAZY_OR_NOW 0
  10978. # endif
  10979. # endif
  10980. # endif
  10981. # endif
  10982. #endif
  10983. /* When -fvisibility=hidden is used, assume the code has been annotated
  10984. correspondingly for the symbols needed. */
  10985. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10986. int fnord () __attribute__((visibility("default")));
  10987. #endif
  10988. int fnord () { return 42; }
  10989. int main ()
  10990. {
  10991. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10992. int status = $lt_dlunknown;
  10993. if (self)
  10994. {
  10995. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10996. else
  10997. {
  10998. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10999. else puts (dlerror ());
  11000. }
  11001. /* dlclose (self); */
  11002. }
  11003. else
  11004. puts (dlerror ());
  11005. return status;
  11006. }
  11007. _LT_EOF
  11008. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11009. (eval $ac_link) 2>&5
  11010. ac_status=$?
  11011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11012. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11013. (./conftest; exit; ) >&5 2>/dev/null
  11014. lt_status=$?
  11015. case x$lt_status in
  11016. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11017. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11018. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11019. esac
  11020. else :
  11021. # compilation failed
  11022. lt_cv_dlopen_self_static=no
  11023. fi
  11024. fi
  11025. rm -fr conftest*
  11026. fi
  11027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11028. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11029. fi
  11030. CPPFLAGS=$save_CPPFLAGS
  11031. LDFLAGS=$save_LDFLAGS
  11032. LIBS=$save_LIBS
  11033. ;;
  11034. esac
  11035. case $lt_cv_dlopen_self in
  11036. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11037. *) enable_dlopen_self=unknown ;;
  11038. esac
  11039. case $lt_cv_dlopen_self_static in
  11040. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11041. *) enable_dlopen_self_static=unknown ;;
  11042. esac
  11043. fi
  11044. striplib=
  11045. old_striplib=
  11046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11047. printf %s "checking whether stripping libraries is possible... " >&6; }
  11048. if test -z "$STRIP"; then
  11049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11050. printf "%s\n" "no" >&6; }
  11051. else
  11052. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11053. old_striplib="$STRIP --strip-debug"
  11054. striplib="$STRIP --strip-unneeded"
  11055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11056. printf "%s\n" "yes" >&6; }
  11057. else
  11058. case $host_os in
  11059. darwin*)
  11060. # FIXME - insert some real tests, host_os isn't really good enough
  11061. striplib="$STRIP -x"
  11062. old_striplib="$STRIP -S"
  11063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11064. printf "%s\n" "yes" >&6; }
  11065. ;;
  11066. freebsd*)
  11067. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11068. old_striplib="$STRIP --strip-debug"
  11069. striplib="$STRIP --strip-unneeded"
  11070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11071. printf "%s\n" "yes" >&6; }
  11072. else
  11073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11074. printf "%s\n" "no" >&6; }
  11075. fi
  11076. ;;
  11077. *)
  11078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11079. printf "%s\n" "no" >&6; }
  11080. ;;
  11081. esac
  11082. fi
  11083. fi
  11084. # Report what library types will actually be built
  11085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11086. printf %s "checking if libtool supports shared libraries... " >&6; }
  11087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11088. printf "%s\n" "$can_build_shared" >&6; }
  11089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11090. printf %s "checking whether to build shared libraries... " >&6; }
  11091. test no = "$can_build_shared" && enable_shared=no
  11092. # On AIX, shared libraries and static libraries use the same namespace, and
  11093. # are all built from PIC.
  11094. case $host_os in
  11095. aix3*)
  11096. test yes = "$enable_shared" && enable_static=no
  11097. if test -n "$RANLIB"; then
  11098. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11099. postinstall_cmds='$RANLIB $lib'
  11100. fi
  11101. ;;
  11102. aix[4-9]*)
  11103. if test ia64 != "$host_cpu"; then
  11104. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11105. yes,aix,yes) ;; # shared object as lib.so file only
  11106. yes,svr4,*) ;; # shared object as lib.so archive member only
  11107. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11108. esac
  11109. fi
  11110. ;;
  11111. esac
  11112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11113. printf "%s\n" "$enable_shared" >&6; }
  11114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11115. printf %s "checking whether to build static libraries... " >&6; }
  11116. # Make sure either enable_shared or enable_static is yes.
  11117. test yes = "$enable_shared" || enable_static=yes
  11118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11119. printf "%s\n" "$enable_static" >&6; }
  11120. fi
  11121. ac_ext=c
  11122. ac_cpp='$CPP $CPPFLAGS'
  11123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11126. CC=$lt_save_CC
  11127. ac_config_commands="$ac_config_commands libtool"
  11128. # Only expand once:
  11129. if test -n "$ac_tool_prefix"; then
  11130. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11131. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11133. printf %s "checking for $ac_word... " >&6; }
  11134. if test ${ac_cv_prog_RC+y}
  11135. then :
  11136. printf %s "(cached) " >&6
  11137. else $as_nop
  11138. if test -n "$RC"; then
  11139. ac_cv_prog_RC="$RC" # Let the user override the test.
  11140. else
  11141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11142. for as_dir in $PATH
  11143. do
  11144. IFS=$as_save_IFS
  11145. case $as_dir in #(((
  11146. '') as_dir=./ ;;
  11147. */) ;;
  11148. *) as_dir=$as_dir/ ;;
  11149. esac
  11150. for ac_exec_ext in '' $ac_executable_extensions; do
  11151. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11152. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11153. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11154. break 2
  11155. fi
  11156. done
  11157. done
  11158. IFS=$as_save_IFS
  11159. fi
  11160. fi
  11161. RC=$ac_cv_prog_RC
  11162. if test -n "$RC"; then
  11163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11164. printf "%s\n" "$RC" >&6; }
  11165. else
  11166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11167. printf "%s\n" "no" >&6; }
  11168. fi
  11169. fi
  11170. if test -z "$ac_cv_prog_RC"; then
  11171. ac_ct_RC=$RC
  11172. # Extract the first word of "windres", so it can be a program name with args.
  11173. set dummy windres; ac_word=$2
  11174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11175. printf %s "checking for $ac_word... " >&6; }
  11176. if test ${ac_cv_prog_ac_ct_RC+y}
  11177. then :
  11178. printf %s "(cached) " >&6
  11179. else $as_nop
  11180. if test -n "$ac_ct_RC"; then
  11181. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11182. else
  11183. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11184. for as_dir in $PATH
  11185. do
  11186. IFS=$as_save_IFS
  11187. case $as_dir in #(((
  11188. '') as_dir=./ ;;
  11189. */) ;;
  11190. *) as_dir=$as_dir/ ;;
  11191. esac
  11192. for ac_exec_ext in '' $ac_executable_extensions; do
  11193. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11194. ac_cv_prog_ac_ct_RC="windres"
  11195. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11196. break 2
  11197. fi
  11198. done
  11199. done
  11200. IFS=$as_save_IFS
  11201. fi
  11202. fi
  11203. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11204. if test -n "$ac_ct_RC"; then
  11205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11206. printf "%s\n" "$ac_ct_RC" >&6; }
  11207. else
  11208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11209. printf "%s\n" "no" >&6; }
  11210. fi
  11211. if test "x$ac_ct_RC" = x; then
  11212. RC=""
  11213. else
  11214. case $cross_compiling:$ac_tool_warned in
  11215. yes:)
  11216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11217. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11218. ac_tool_warned=yes ;;
  11219. esac
  11220. RC=$ac_ct_RC
  11221. fi
  11222. else
  11223. RC="$ac_cv_prog_RC"
  11224. fi
  11225. # Source file extension for RC test sources.
  11226. ac_ext=rc
  11227. # Object file extension for compiled RC test sources.
  11228. objext=o
  11229. objext_RC=$objext
  11230. # Code to be used in simple compile tests
  11231. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11232. # Code to be used in simple link tests
  11233. lt_simple_link_test_code=$lt_simple_compile_test_code
  11234. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11235. # If no C compiler was specified, use CC.
  11236. LTCC=${LTCC-"$CC"}
  11237. # If no C compiler flags were specified, use CFLAGS.
  11238. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11239. # Allow CC to be a program name with arguments.
  11240. compiler=$CC
  11241. # save warnings/boilerplate of simple test code
  11242. ac_outfile=conftest.$ac_objext
  11243. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11244. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11245. _lt_compiler_boilerplate=`cat conftest.err`
  11246. $RM conftest*
  11247. ac_outfile=conftest.$ac_objext
  11248. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11249. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11250. _lt_linker_boilerplate=`cat conftest.err`
  11251. $RM -r conftest*
  11252. # Allow CC to be a program name with arguments.
  11253. lt_save_CC=$CC
  11254. lt_save_CFLAGS=$CFLAGS
  11255. lt_save_GCC=$GCC
  11256. GCC=
  11257. CC=${RC-"windres"}
  11258. CFLAGS=
  11259. compiler=$CC
  11260. compiler_RC=$CC
  11261. func_cc_basename $compiler
  11262. cc_basename=$func_cc_basename_result
  11263. lt_cv_prog_compiler_c_o_RC=yes
  11264. if test -n "$compiler"; then
  11265. :
  11266. fi
  11267. GCC=$lt_save_GCC
  11268. ac_ext=c
  11269. ac_cpp='$CPP $CPPFLAGS'
  11270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11273. CC=$lt_save_CC
  11274. CFLAGS=$lt_save_CFLAGS
  11275. # For historical reasons, the library name redundantly includes the major
  11276. # version twice: libSDL2-2.0.so.0.
  11277. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11278. LT_RELEASE=2.0
  11279. # Increment this if there is an incompatible change - but if that happens,
  11280. # we should rename the library from SDL2 to SDL3, at which point this would
  11281. # reset to 0 anyway.
  11282. LT_MAJOR=0
  11283. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11284. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11285. LT_REVISION=$SDL_INTERFACE_AGE
  11286. for ac_prog in gawk mawk nawk awk
  11287. do
  11288. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11289. set dummy $ac_prog; ac_word=$2
  11290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11291. printf %s "checking for $ac_word... " >&6; }
  11292. if test ${ac_cv_prog_AWK+y}
  11293. then :
  11294. printf %s "(cached) " >&6
  11295. else $as_nop
  11296. if test -n "$AWK"; then
  11297. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11298. else
  11299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11300. for as_dir in $PATH
  11301. do
  11302. IFS=$as_save_IFS
  11303. case $as_dir in #(((
  11304. '') as_dir=./ ;;
  11305. */) ;;
  11306. *) as_dir=$as_dir/ ;;
  11307. esac
  11308. for ac_exec_ext in '' $ac_executable_extensions; do
  11309. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11310. ac_cv_prog_AWK="$ac_prog"
  11311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11312. break 2
  11313. fi
  11314. done
  11315. done
  11316. IFS=$as_save_IFS
  11317. fi
  11318. fi
  11319. AWK=$ac_cv_prog_AWK
  11320. if test -n "$AWK"; then
  11321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11322. printf "%s\n" "$AWK" >&6; }
  11323. else
  11324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11325. printf "%s\n" "no" >&6; }
  11326. fi
  11327. test -n "$AWK" && break
  11328. done
  11329. ac_ext=c
  11330. ac_cpp='$CPP $CPPFLAGS'
  11331. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11332. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11333. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11334. if test -n "$ac_tool_prefix"; then
  11335. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11336. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11338. printf %s "checking for $ac_word... " >&6; }
  11339. if test ${ac_cv_prog_CC+y}
  11340. then :
  11341. printf %s "(cached) " >&6
  11342. else $as_nop
  11343. if test -n "$CC"; then
  11344. ac_cv_prog_CC="$CC" # Let the user override the test.
  11345. else
  11346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11347. for as_dir in $PATH
  11348. do
  11349. IFS=$as_save_IFS
  11350. case $as_dir in #(((
  11351. '') as_dir=./ ;;
  11352. */) ;;
  11353. *) as_dir=$as_dir/ ;;
  11354. esac
  11355. for ac_exec_ext in '' $ac_executable_extensions; do
  11356. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11357. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11359. break 2
  11360. fi
  11361. done
  11362. done
  11363. IFS=$as_save_IFS
  11364. fi
  11365. fi
  11366. CC=$ac_cv_prog_CC
  11367. if test -n "$CC"; then
  11368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11369. printf "%s\n" "$CC" >&6; }
  11370. else
  11371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11372. printf "%s\n" "no" >&6; }
  11373. fi
  11374. fi
  11375. if test -z "$ac_cv_prog_CC"; then
  11376. ac_ct_CC=$CC
  11377. # Extract the first word of "gcc", so it can be a program name with args.
  11378. set dummy gcc; ac_word=$2
  11379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11380. printf %s "checking for $ac_word... " >&6; }
  11381. if test ${ac_cv_prog_ac_ct_CC+y}
  11382. then :
  11383. printf %s "(cached) " >&6
  11384. else $as_nop
  11385. if test -n "$ac_ct_CC"; then
  11386. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11387. else
  11388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11389. for as_dir in $PATH
  11390. do
  11391. IFS=$as_save_IFS
  11392. case $as_dir in #(((
  11393. '') as_dir=./ ;;
  11394. */) ;;
  11395. *) as_dir=$as_dir/ ;;
  11396. esac
  11397. for ac_exec_ext in '' $ac_executable_extensions; do
  11398. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11399. ac_cv_prog_ac_ct_CC="gcc"
  11400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11401. break 2
  11402. fi
  11403. done
  11404. done
  11405. IFS=$as_save_IFS
  11406. fi
  11407. fi
  11408. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11409. if test -n "$ac_ct_CC"; then
  11410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11411. printf "%s\n" "$ac_ct_CC" >&6; }
  11412. else
  11413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11414. printf "%s\n" "no" >&6; }
  11415. fi
  11416. if test "x$ac_ct_CC" = x; then
  11417. CC=""
  11418. else
  11419. case $cross_compiling:$ac_tool_warned in
  11420. yes:)
  11421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11422. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11423. ac_tool_warned=yes ;;
  11424. esac
  11425. CC=$ac_ct_CC
  11426. fi
  11427. else
  11428. CC="$ac_cv_prog_CC"
  11429. fi
  11430. if test -z "$CC"; then
  11431. if test -n "$ac_tool_prefix"; then
  11432. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11433. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11435. printf %s "checking for $ac_word... " >&6; }
  11436. if test ${ac_cv_prog_CC+y}
  11437. then :
  11438. printf %s "(cached) " >&6
  11439. else $as_nop
  11440. if test -n "$CC"; then
  11441. ac_cv_prog_CC="$CC" # Let the user override the test.
  11442. else
  11443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11444. for as_dir in $PATH
  11445. do
  11446. IFS=$as_save_IFS
  11447. case $as_dir in #(((
  11448. '') as_dir=./ ;;
  11449. */) ;;
  11450. *) as_dir=$as_dir/ ;;
  11451. esac
  11452. for ac_exec_ext in '' $ac_executable_extensions; do
  11453. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11454. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11455. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11456. break 2
  11457. fi
  11458. done
  11459. done
  11460. IFS=$as_save_IFS
  11461. fi
  11462. fi
  11463. CC=$ac_cv_prog_CC
  11464. if test -n "$CC"; then
  11465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11466. printf "%s\n" "$CC" >&6; }
  11467. else
  11468. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11469. printf "%s\n" "no" >&6; }
  11470. fi
  11471. fi
  11472. fi
  11473. if test -z "$CC"; then
  11474. # Extract the first word of "cc", so it can be a program name with args.
  11475. set dummy cc; ac_word=$2
  11476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11477. printf %s "checking for $ac_word... " >&6; }
  11478. if test ${ac_cv_prog_CC+y}
  11479. then :
  11480. printf %s "(cached) " >&6
  11481. else $as_nop
  11482. if test -n "$CC"; then
  11483. ac_cv_prog_CC="$CC" # Let the user override the test.
  11484. else
  11485. ac_prog_rejected=no
  11486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11487. for as_dir in $PATH
  11488. do
  11489. IFS=$as_save_IFS
  11490. case $as_dir in #(((
  11491. '') as_dir=./ ;;
  11492. */) ;;
  11493. *) as_dir=$as_dir/ ;;
  11494. esac
  11495. for ac_exec_ext in '' $ac_executable_extensions; do
  11496. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11497. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11498. ac_prog_rejected=yes
  11499. continue
  11500. fi
  11501. ac_cv_prog_CC="cc"
  11502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11503. break 2
  11504. fi
  11505. done
  11506. done
  11507. IFS=$as_save_IFS
  11508. if test $ac_prog_rejected = yes; then
  11509. # We found a bogon in the path, so make sure we never use it.
  11510. set dummy $ac_cv_prog_CC
  11511. shift
  11512. if test $# != 0; then
  11513. # We chose a different compiler from the bogus one.
  11514. # However, it has the same basename, so the bogon will be chosen
  11515. # first if we set CC to just the basename; use the full file name.
  11516. shift
  11517. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11518. fi
  11519. fi
  11520. fi
  11521. fi
  11522. CC=$ac_cv_prog_CC
  11523. if test -n "$CC"; then
  11524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11525. printf "%s\n" "$CC" >&6; }
  11526. else
  11527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11528. printf "%s\n" "no" >&6; }
  11529. fi
  11530. fi
  11531. if test -z "$CC"; then
  11532. if test -n "$ac_tool_prefix"; then
  11533. for ac_prog in cl.exe
  11534. do
  11535. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11536. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11538. printf %s "checking for $ac_word... " >&6; }
  11539. if test ${ac_cv_prog_CC+y}
  11540. then :
  11541. printf %s "(cached) " >&6
  11542. else $as_nop
  11543. if test -n "$CC"; then
  11544. ac_cv_prog_CC="$CC" # Let the user override the test.
  11545. else
  11546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11547. for as_dir in $PATH
  11548. do
  11549. IFS=$as_save_IFS
  11550. case $as_dir in #(((
  11551. '') as_dir=./ ;;
  11552. */) ;;
  11553. *) as_dir=$as_dir/ ;;
  11554. esac
  11555. for ac_exec_ext in '' $ac_executable_extensions; do
  11556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11557. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11559. break 2
  11560. fi
  11561. done
  11562. done
  11563. IFS=$as_save_IFS
  11564. fi
  11565. fi
  11566. CC=$ac_cv_prog_CC
  11567. if test -n "$CC"; then
  11568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11569. printf "%s\n" "$CC" >&6; }
  11570. else
  11571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11572. printf "%s\n" "no" >&6; }
  11573. fi
  11574. test -n "$CC" && break
  11575. done
  11576. fi
  11577. if test -z "$CC"; then
  11578. ac_ct_CC=$CC
  11579. for ac_prog in cl.exe
  11580. do
  11581. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11582. set dummy $ac_prog; ac_word=$2
  11583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11584. printf %s "checking for $ac_word... " >&6; }
  11585. if test ${ac_cv_prog_ac_ct_CC+y}
  11586. then :
  11587. printf %s "(cached) " >&6
  11588. else $as_nop
  11589. if test -n "$ac_ct_CC"; then
  11590. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11591. else
  11592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11593. for as_dir in $PATH
  11594. do
  11595. IFS=$as_save_IFS
  11596. case $as_dir in #(((
  11597. '') as_dir=./ ;;
  11598. */) ;;
  11599. *) as_dir=$as_dir/ ;;
  11600. esac
  11601. for ac_exec_ext in '' $ac_executable_extensions; do
  11602. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11603. ac_cv_prog_ac_ct_CC="$ac_prog"
  11604. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11605. break 2
  11606. fi
  11607. done
  11608. done
  11609. IFS=$as_save_IFS
  11610. fi
  11611. fi
  11612. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11613. if test -n "$ac_ct_CC"; then
  11614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11615. printf "%s\n" "$ac_ct_CC" >&6; }
  11616. else
  11617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11618. printf "%s\n" "no" >&6; }
  11619. fi
  11620. test -n "$ac_ct_CC" && break
  11621. done
  11622. if test "x$ac_ct_CC" = x; then
  11623. CC=""
  11624. else
  11625. case $cross_compiling:$ac_tool_warned in
  11626. yes:)
  11627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11628. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11629. ac_tool_warned=yes ;;
  11630. esac
  11631. CC=$ac_ct_CC
  11632. fi
  11633. fi
  11634. fi
  11635. if test -z "$CC"; then
  11636. if test -n "$ac_tool_prefix"; then
  11637. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11638. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11640. printf %s "checking for $ac_word... " >&6; }
  11641. if test ${ac_cv_prog_CC+y}
  11642. then :
  11643. printf %s "(cached) " >&6
  11644. else $as_nop
  11645. if test -n "$CC"; then
  11646. ac_cv_prog_CC="$CC" # Let the user override the test.
  11647. else
  11648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11649. for as_dir in $PATH
  11650. do
  11651. IFS=$as_save_IFS
  11652. case $as_dir in #(((
  11653. '') as_dir=./ ;;
  11654. */) ;;
  11655. *) as_dir=$as_dir/ ;;
  11656. esac
  11657. for ac_exec_ext in '' $ac_executable_extensions; do
  11658. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11659. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11660. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11661. break 2
  11662. fi
  11663. done
  11664. done
  11665. IFS=$as_save_IFS
  11666. fi
  11667. fi
  11668. CC=$ac_cv_prog_CC
  11669. if test -n "$CC"; then
  11670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11671. printf "%s\n" "$CC" >&6; }
  11672. else
  11673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11674. printf "%s\n" "no" >&6; }
  11675. fi
  11676. fi
  11677. if test -z "$ac_cv_prog_CC"; then
  11678. ac_ct_CC=$CC
  11679. # Extract the first word of "clang", so it can be a program name with args.
  11680. set dummy clang; ac_word=$2
  11681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11682. printf %s "checking for $ac_word... " >&6; }
  11683. if test ${ac_cv_prog_ac_ct_CC+y}
  11684. then :
  11685. printf %s "(cached) " >&6
  11686. else $as_nop
  11687. if test -n "$ac_ct_CC"; then
  11688. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11689. else
  11690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11691. for as_dir in $PATH
  11692. do
  11693. IFS=$as_save_IFS
  11694. case $as_dir in #(((
  11695. '') as_dir=./ ;;
  11696. */) ;;
  11697. *) as_dir=$as_dir/ ;;
  11698. esac
  11699. for ac_exec_ext in '' $ac_executable_extensions; do
  11700. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11701. ac_cv_prog_ac_ct_CC="clang"
  11702. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11703. break 2
  11704. fi
  11705. done
  11706. done
  11707. IFS=$as_save_IFS
  11708. fi
  11709. fi
  11710. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11711. if test -n "$ac_ct_CC"; then
  11712. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11713. printf "%s\n" "$ac_ct_CC" >&6; }
  11714. else
  11715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11716. printf "%s\n" "no" >&6; }
  11717. fi
  11718. if test "x$ac_ct_CC" = x; then
  11719. CC=""
  11720. else
  11721. case $cross_compiling:$ac_tool_warned in
  11722. yes:)
  11723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11724. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11725. ac_tool_warned=yes ;;
  11726. esac
  11727. CC=$ac_ct_CC
  11728. fi
  11729. else
  11730. CC="$ac_cv_prog_CC"
  11731. fi
  11732. fi
  11733. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11734. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11735. as_fn_error $? "no acceptable C compiler found in \$PATH
  11736. See \`config.log' for more details" "$LINENO" 5; }
  11737. # Provide some information about the compiler.
  11738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11739. set X $ac_compile
  11740. ac_compiler=$2
  11741. for ac_option in --version -v -V -qversion -version; do
  11742. { { ac_try="$ac_compiler $ac_option >&5"
  11743. case "(($ac_try" in
  11744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11745. *) ac_try_echo=$ac_try;;
  11746. esac
  11747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11748. printf "%s\n" "$ac_try_echo"; } >&5
  11749. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11750. ac_status=$?
  11751. if test -s conftest.err; then
  11752. sed '10a\
  11753. ... rest of stderr output deleted ...
  11754. 10q' conftest.err >conftest.er1
  11755. cat conftest.er1 >&5
  11756. fi
  11757. rm -f conftest.er1 conftest.err
  11758. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11759. test $ac_status = 0; }
  11760. done
  11761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11762. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11763. if test ${ac_cv_c_compiler_gnu+y}
  11764. then :
  11765. printf %s "(cached) " >&6
  11766. else $as_nop
  11767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11768. /* end confdefs.h. */
  11769. int
  11770. main (void)
  11771. {
  11772. #ifndef __GNUC__
  11773. choke me
  11774. #endif
  11775. ;
  11776. return 0;
  11777. }
  11778. _ACEOF
  11779. if ac_fn_c_try_compile "$LINENO"
  11780. then :
  11781. ac_compiler_gnu=yes
  11782. else $as_nop
  11783. ac_compiler_gnu=no
  11784. fi
  11785. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11786. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11787. fi
  11788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11789. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11791. if test $ac_compiler_gnu = yes; then
  11792. GCC=yes
  11793. else
  11794. GCC=
  11795. fi
  11796. ac_test_CFLAGS=${CFLAGS+y}
  11797. ac_save_CFLAGS=$CFLAGS
  11798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11799. printf %s "checking whether $CC accepts -g... " >&6; }
  11800. if test ${ac_cv_prog_cc_g+y}
  11801. then :
  11802. printf %s "(cached) " >&6
  11803. else $as_nop
  11804. ac_save_c_werror_flag=$ac_c_werror_flag
  11805. ac_c_werror_flag=yes
  11806. ac_cv_prog_cc_g=no
  11807. CFLAGS="-g"
  11808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11809. /* end confdefs.h. */
  11810. int
  11811. main (void)
  11812. {
  11813. ;
  11814. return 0;
  11815. }
  11816. _ACEOF
  11817. if ac_fn_c_try_compile "$LINENO"
  11818. then :
  11819. ac_cv_prog_cc_g=yes
  11820. else $as_nop
  11821. CFLAGS=""
  11822. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11823. /* end confdefs.h. */
  11824. int
  11825. main (void)
  11826. {
  11827. ;
  11828. return 0;
  11829. }
  11830. _ACEOF
  11831. if ac_fn_c_try_compile "$LINENO"
  11832. then :
  11833. else $as_nop
  11834. ac_c_werror_flag=$ac_save_c_werror_flag
  11835. CFLAGS="-g"
  11836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11837. /* end confdefs.h. */
  11838. int
  11839. main (void)
  11840. {
  11841. ;
  11842. return 0;
  11843. }
  11844. _ACEOF
  11845. if ac_fn_c_try_compile "$LINENO"
  11846. then :
  11847. ac_cv_prog_cc_g=yes
  11848. fi
  11849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11850. fi
  11851. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11852. fi
  11853. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11854. ac_c_werror_flag=$ac_save_c_werror_flag
  11855. fi
  11856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11857. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11858. if test $ac_test_CFLAGS; then
  11859. CFLAGS=$ac_save_CFLAGS
  11860. elif test $ac_cv_prog_cc_g = yes; then
  11861. if test "$GCC" = yes; then
  11862. CFLAGS="-g -O2"
  11863. else
  11864. CFLAGS="-g"
  11865. fi
  11866. else
  11867. if test "$GCC" = yes; then
  11868. CFLAGS="-O2"
  11869. else
  11870. CFLAGS=
  11871. fi
  11872. fi
  11873. ac_prog_cc_stdc=no
  11874. if test x$ac_prog_cc_stdc = xno
  11875. then :
  11876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11877. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11878. if test ${ac_cv_prog_cc_c11+y}
  11879. then :
  11880. printf %s "(cached) " >&6
  11881. else $as_nop
  11882. ac_cv_prog_cc_c11=no
  11883. ac_save_CC=$CC
  11884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11885. /* end confdefs.h. */
  11886. $ac_c_conftest_c11_program
  11887. _ACEOF
  11888. for ac_arg in '' -std=gnu11
  11889. do
  11890. CC="$ac_save_CC $ac_arg"
  11891. if ac_fn_c_try_compile "$LINENO"
  11892. then :
  11893. ac_cv_prog_cc_c11=$ac_arg
  11894. fi
  11895. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11896. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11897. done
  11898. rm -f conftest.$ac_ext
  11899. CC=$ac_save_CC
  11900. fi
  11901. if test "x$ac_cv_prog_cc_c11" = xno
  11902. then :
  11903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11904. printf "%s\n" "unsupported" >&6; }
  11905. else $as_nop
  11906. if test "x$ac_cv_prog_cc_c11" = x
  11907. then :
  11908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11909. printf "%s\n" "none needed" >&6; }
  11910. else $as_nop
  11911. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11912. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11913. CC="$CC $ac_cv_prog_cc_c11"
  11914. fi
  11915. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11916. ac_prog_cc_stdc=c11
  11917. fi
  11918. fi
  11919. if test x$ac_prog_cc_stdc = xno
  11920. then :
  11921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11922. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11923. if test ${ac_cv_prog_cc_c99+y}
  11924. then :
  11925. printf %s "(cached) " >&6
  11926. else $as_nop
  11927. ac_cv_prog_cc_c99=no
  11928. ac_save_CC=$CC
  11929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11930. /* end confdefs.h. */
  11931. $ac_c_conftest_c99_program
  11932. _ACEOF
  11933. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11934. do
  11935. CC="$ac_save_CC $ac_arg"
  11936. if ac_fn_c_try_compile "$LINENO"
  11937. then :
  11938. ac_cv_prog_cc_c99=$ac_arg
  11939. fi
  11940. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11941. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11942. done
  11943. rm -f conftest.$ac_ext
  11944. CC=$ac_save_CC
  11945. fi
  11946. if test "x$ac_cv_prog_cc_c99" = xno
  11947. then :
  11948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11949. printf "%s\n" "unsupported" >&6; }
  11950. else $as_nop
  11951. if test "x$ac_cv_prog_cc_c99" = x
  11952. then :
  11953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11954. printf "%s\n" "none needed" >&6; }
  11955. else $as_nop
  11956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11957. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11958. CC="$CC $ac_cv_prog_cc_c99"
  11959. fi
  11960. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11961. ac_prog_cc_stdc=c99
  11962. fi
  11963. fi
  11964. if test x$ac_prog_cc_stdc = xno
  11965. then :
  11966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11967. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11968. if test ${ac_cv_prog_cc_c89+y}
  11969. then :
  11970. printf %s "(cached) " >&6
  11971. else $as_nop
  11972. ac_cv_prog_cc_c89=no
  11973. ac_save_CC=$CC
  11974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11975. /* end confdefs.h. */
  11976. $ac_c_conftest_c89_program
  11977. _ACEOF
  11978. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11979. do
  11980. CC="$ac_save_CC $ac_arg"
  11981. if ac_fn_c_try_compile "$LINENO"
  11982. then :
  11983. ac_cv_prog_cc_c89=$ac_arg
  11984. fi
  11985. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11986. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11987. done
  11988. rm -f conftest.$ac_ext
  11989. CC=$ac_save_CC
  11990. fi
  11991. if test "x$ac_cv_prog_cc_c89" = xno
  11992. then :
  11993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11994. printf "%s\n" "unsupported" >&6; }
  11995. else $as_nop
  11996. if test "x$ac_cv_prog_cc_c89" = x
  11997. then :
  11998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11999. printf "%s\n" "none needed" >&6; }
  12000. else $as_nop
  12001. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12002. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12003. CC="$CC $ac_cv_prog_cc_c89"
  12004. fi
  12005. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12006. ac_prog_cc_stdc=c89
  12007. fi
  12008. fi
  12009. ac_ext=c
  12010. ac_cpp='$CPP $CPPFLAGS'
  12011. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12012. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12013. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12014. ac_ext=cpp
  12015. ac_cpp='$CXXCPP $CPPFLAGS'
  12016. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12017. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12018. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12019. if test -z "$CXX"; then
  12020. if test -n "$CCC"; then
  12021. CXX=$CCC
  12022. else
  12023. if test -n "$ac_tool_prefix"; then
  12024. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12025. do
  12026. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12027. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12029. printf %s "checking for $ac_word... " >&6; }
  12030. if test ${ac_cv_prog_CXX+y}
  12031. then :
  12032. printf %s "(cached) " >&6
  12033. else $as_nop
  12034. if test -n "$CXX"; then
  12035. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12036. else
  12037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12038. for as_dir in $PATH
  12039. do
  12040. IFS=$as_save_IFS
  12041. case $as_dir in #(((
  12042. '') as_dir=./ ;;
  12043. */) ;;
  12044. *) as_dir=$as_dir/ ;;
  12045. esac
  12046. for ac_exec_ext in '' $ac_executable_extensions; do
  12047. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12048. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12050. break 2
  12051. fi
  12052. done
  12053. done
  12054. IFS=$as_save_IFS
  12055. fi
  12056. fi
  12057. CXX=$ac_cv_prog_CXX
  12058. if test -n "$CXX"; then
  12059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12060. printf "%s\n" "$CXX" >&6; }
  12061. else
  12062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12063. printf "%s\n" "no" >&6; }
  12064. fi
  12065. test -n "$CXX" && break
  12066. done
  12067. fi
  12068. if test -z "$CXX"; then
  12069. ac_ct_CXX=$CXX
  12070. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12071. do
  12072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12073. set dummy $ac_prog; ac_word=$2
  12074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12075. printf %s "checking for $ac_word... " >&6; }
  12076. if test ${ac_cv_prog_ac_ct_CXX+y}
  12077. then :
  12078. printf %s "(cached) " >&6
  12079. else $as_nop
  12080. if test -n "$ac_ct_CXX"; then
  12081. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12082. else
  12083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12084. for as_dir in $PATH
  12085. do
  12086. IFS=$as_save_IFS
  12087. case $as_dir in #(((
  12088. '') as_dir=./ ;;
  12089. */) ;;
  12090. *) as_dir=$as_dir/ ;;
  12091. esac
  12092. for ac_exec_ext in '' $ac_executable_extensions; do
  12093. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12094. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12095. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12096. break 2
  12097. fi
  12098. done
  12099. done
  12100. IFS=$as_save_IFS
  12101. fi
  12102. fi
  12103. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12104. if test -n "$ac_ct_CXX"; then
  12105. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12106. printf "%s\n" "$ac_ct_CXX" >&6; }
  12107. else
  12108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12109. printf "%s\n" "no" >&6; }
  12110. fi
  12111. test -n "$ac_ct_CXX" && break
  12112. done
  12113. if test "x$ac_ct_CXX" = x; then
  12114. CXX="g++"
  12115. else
  12116. case $cross_compiling:$ac_tool_warned in
  12117. yes:)
  12118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12119. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12120. ac_tool_warned=yes ;;
  12121. esac
  12122. CXX=$ac_ct_CXX
  12123. fi
  12124. fi
  12125. fi
  12126. fi
  12127. # Provide some information about the compiler.
  12128. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12129. set X $ac_compile
  12130. ac_compiler=$2
  12131. for ac_option in --version -v -V -qversion; do
  12132. { { ac_try="$ac_compiler $ac_option >&5"
  12133. case "(($ac_try" in
  12134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12135. *) ac_try_echo=$ac_try;;
  12136. esac
  12137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12138. printf "%s\n" "$ac_try_echo"; } >&5
  12139. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12140. ac_status=$?
  12141. if test -s conftest.err; then
  12142. sed '10a\
  12143. ... rest of stderr output deleted ...
  12144. 10q' conftest.err >conftest.er1
  12145. cat conftest.er1 >&5
  12146. fi
  12147. rm -f conftest.er1 conftest.err
  12148. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12149. test $ac_status = 0; }
  12150. done
  12151. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12152. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12153. if test ${ac_cv_cxx_compiler_gnu+y}
  12154. then :
  12155. printf %s "(cached) " >&6
  12156. else $as_nop
  12157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12158. /* end confdefs.h. */
  12159. int
  12160. main (void)
  12161. {
  12162. #ifndef __GNUC__
  12163. choke me
  12164. #endif
  12165. ;
  12166. return 0;
  12167. }
  12168. _ACEOF
  12169. if ac_fn_cxx_try_compile "$LINENO"
  12170. then :
  12171. ac_compiler_gnu=yes
  12172. else $as_nop
  12173. ac_compiler_gnu=no
  12174. fi
  12175. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12176. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12177. fi
  12178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12179. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12180. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12181. if test $ac_compiler_gnu = yes; then
  12182. GXX=yes
  12183. else
  12184. GXX=
  12185. fi
  12186. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12187. ac_save_CXXFLAGS=$CXXFLAGS
  12188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12189. printf %s "checking whether $CXX accepts -g... " >&6; }
  12190. if test ${ac_cv_prog_cxx_g+y}
  12191. then :
  12192. printf %s "(cached) " >&6
  12193. else $as_nop
  12194. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12195. ac_cxx_werror_flag=yes
  12196. ac_cv_prog_cxx_g=no
  12197. CXXFLAGS="-g"
  12198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12199. /* end confdefs.h. */
  12200. int
  12201. main (void)
  12202. {
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if ac_fn_cxx_try_compile "$LINENO"
  12208. then :
  12209. ac_cv_prog_cxx_g=yes
  12210. else $as_nop
  12211. CXXFLAGS=""
  12212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12213. /* end confdefs.h. */
  12214. int
  12215. main (void)
  12216. {
  12217. ;
  12218. return 0;
  12219. }
  12220. _ACEOF
  12221. if ac_fn_cxx_try_compile "$LINENO"
  12222. then :
  12223. else $as_nop
  12224. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12225. CXXFLAGS="-g"
  12226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12227. /* end confdefs.h. */
  12228. int
  12229. main (void)
  12230. {
  12231. ;
  12232. return 0;
  12233. }
  12234. _ACEOF
  12235. if ac_fn_cxx_try_compile "$LINENO"
  12236. then :
  12237. ac_cv_prog_cxx_g=yes
  12238. fi
  12239. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12240. fi
  12241. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12242. fi
  12243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12244. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12245. fi
  12246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12247. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12248. if test $ac_test_CXXFLAGS; then
  12249. CXXFLAGS=$ac_save_CXXFLAGS
  12250. elif test $ac_cv_prog_cxx_g = yes; then
  12251. if test "$GXX" = yes; then
  12252. CXXFLAGS="-g -O2"
  12253. else
  12254. CXXFLAGS="-g"
  12255. fi
  12256. else
  12257. if test "$GXX" = yes; then
  12258. CXXFLAGS="-O2"
  12259. else
  12260. CXXFLAGS=
  12261. fi
  12262. fi
  12263. ac_prog_cxx_stdcxx=no
  12264. if test x$ac_prog_cxx_stdcxx = xno
  12265. then :
  12266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12267. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12268. if test ${ac_cv_prog_cxx_11+y}
  12269. then :
  12270. printf %s "(cached) " >&6
  12271. else $as_nop
  12272. ac_cv_prog_cxx_11=no
  12273. ac_save_CXX=$CXX
  12274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12275. /* end confdefs.h. */
  12276. $ac_cxx_conftest_cxx11_program
  12277. _ACEOF
  12278. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12279. do
  12280. CXX="$ac_save_CXX $ac_arg"
  12281. if ac_fn_cxx_try_compile "$LINENO"
  12282. then :
  12283. ac_cv_prog_cxx_cxx11=$ac_arg
  12284. fi
  12285. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12286. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12287. done
  12288. rm -f conftest.$ac_ext
  12289. CXX=$ac_save_CXX
  12290. fi
  12291. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12292. then :
  12293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12294. printf "%s\n" "unsupported" >&6; }
  12295. else $as_nop
  12296. if test "x$ac_cv_prog_cxx_cxx11" = x
  12297. then :
  12298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12299. printf "%s\n" "none needed" >&6; }
  12300. else $as_nop
  12301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12302. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12303. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12304. fi
  12305. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12306. ac_prog_cxx_stdcxx=cxx11
  12307. fi
  12308. fi
  12309. if test x$ac_prog_cxx_stdcxx = xno
  12310. then :
  12311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12312. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12313. if test ${ac_cv_prog_cxx_98+y}
  12314. then :
  12315. printf %s "(cached) " >&6
  12316. else $as_nop
  12317. ac_cv_prog_cxx_98=no
  12318. ac_save_CXX=$CXX
  12319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12320. /* end confdefs.h. */
  12321. $ac_cxx_conftest_cxx98_program
  12322. _ACEOF
  12323. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12324. do
  12325. CXX="$ac_save_CXX $ac_arg"
  12326. if ac_fn_cxx_try_compile "$LINENO"
  12327. then :
  12328. ac_cv_prog_cxx_cxx98=$ac_arg
  12329. fi
  12330. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12331. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12332. done
  12333. rm -f conftest.$ac_ext
  12334. CXX=$ac_save_CXX
  12335. fi
  12336. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12337. then :
  12338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12339. printf "%s\n" "unsupported" >&6; }
  12340. else $as_nop
  12341. if test "x$ac_cv_prog_cxx_cxx98" = x
  12342. then :
  12343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12344. printf "%s\n" "none needed" >&6; }
  12345. else $as_nop
  12346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12347. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12348. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12349. fi
  12350. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12351. ac_prog_cxx_stdcxx=cxx98
  12352. fi
  12353. fi
  12354. ac_ext=c
  12355. ac_cpp='$CPP $CPPFLAGS'
  12356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12359. func_stripname_cnf ()
  12360. {
  12361. case $2 in
  12362. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12363. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12364. esac
  12365. } # func_stripname_cnf
  12366. if test -n "$CXX" && ( test no != "$CXX" &&
  12367. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12368. (test g++ != "$CXX"))); then
  12369. ac_ext=cpp
  12370. ac_cpp='$CXXCPP $CPPFLAGS'
  12371. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12372. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12373. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12375. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12376. if test -z "$CXXCPP"; then
  12377. if test ${ac_cv_prog_CXXCPP+y}
  12378. then :
  12379. printf %s "(cached) " >&6
  12380. else $as_nop
  12381. # Double quotes because $CXX needs to be expanded
  12382. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12383. do
  12384. ac_preproc_ok=false
  12385. for ac_cxx_preproc_warn_flag in '' yes
  12386. do
  12387. # Use a header file that comes with gcc, so configuring glibc
  12388. # with a fresh cross-compiler works.
  12389. # On the NeXT, cc -E runs the code through the compiler's parser,
  12390. # not just through cpp. "Syntax error" is here to catch this case.
  12391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12392. /* end confdefs.h. */
  12393. #include <limits.h>
  12394. Syntax error
  12395. _ACEOF
  12396. if ac_fn_cxx_try_cpp "$LINENO"
  12397. then :
  12398. else $as_nop
  12399. # Broken: fails on valid input.
  12400. continue
  12401. fi
  12402. rm -f conftest.err conftest.i conftest.$ac_ext
  12403. # OK, works on sane cases. Now check whether nonexistent headers
  12404. # can be detected and how.
  12405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12406. /* end confdefs.h. */
  12407. #include <ac_nonexistent.h>
  12408. _ACEOF
  12409. if ac_fn_cxx_try_cpp "$LINENO"
  12410. then :
  12411. # Broken: success on invalid input.
  12412. continue
  12413. else $as_nop
  12414. # Passes both tests.
  12415. ac_preproc_ok=:
  12416. break
  12417. fi
  12418. rm -f conftest.err conftest.i conftest.$ac_ext
  12419. done
  12420. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12421. rm -f conftest.i conftest.err conftest.$ac_ext
  12422. if $ac_preproc_ok
  12423. then :
  12424. break
  12425. fi
  12426. done
  12427. ac_cv_prog_CXXCPP=$CXXCPP
  12428. fi
  12429. CXXCPP=$ac_cv_prog_CXXCPP
  12430. else
  12431. ac_cv_prog_CXXCPP=$CXXCPP
  12432. fi
  12433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12434. printf "%s\n" "$CXXCPP" >&6; }
  12435. ac_preproc_ok=false
  12436. for ac_cxx_preproc_warn_flag in '' yes
  12437. do
  12438. # Use a header file that comes with gcc, so configuring glibc
  12439. # with a fresh cross-compiler works.
  12440. # On the NeXT, cc -E runs the code through the compiler's parser,
  12441. # not just through cpp. "Syntax error" is here to catch this case.
  12442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12443. /* end confdefs.h. */
  12444. #include <limits.h>
  12445. Syntax error
  12446. _ACEOF
  12447. if ac_fn_cxx_try_cpp "$LINENO"
  12448. then :
  12449. else $as_nop
  12450. # Broken: fails on valid input.
  12451. continue
  12452. fi
  12453. rm -f conftest.err conftest.i conftest.$ac_ext
  12454. # OK, works on sane cases. Now check whether nonexistent headers
  12455. # can be detected and how.
  12456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12457. /* end confdefs.h. */
  12458. #include <ac_nonexistent.h>
  12459. _ACEOF
  12460. if ac_fn_cxx_try_cpp "$LINENO"
  12461. then :
  12462. # Broken: success on invalid input.
  12463. continue
  12464. else $as_nop
  12465. # Passes both tests.
  12466. ac_preproc_ok=:
  12467. break
  12468. fi
  12469. rm -f conftest.err conftest.i conftest.$ac_ext
  12470. done
  12471. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12472. rm -f conftest.i conftest.err conftest.$ac_ext
  12473. if $ac_preproc_ok
  12474. then :
  12475. else $as_nop
  12476. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12477. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12478. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12479. See \`config.log' for more details" "$LINENO" 5; }
  12480. fi
  12481. ac_ext=c
  12482. ac_cpp='$CPP $CPPFLAGS'
  12483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12486. else
  12487. _lt_caught_CXX_error=yes
  12488. fi
  12489. ac_ext=cpp
  12490. ac_cpp='$CXXCPP $CPPFLAGS'
  12491. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12492. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12493. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12494. archive_cmds_need_lc_CXX=no
  12495. allow_undefined_flag_CXX=
  12496. always_export_symbols_CXX=no
  12497. archive_expsym_cmds_CXX=
  12498. compiler_needs_object_CXX=no
  12499. export_dynamic_flag_spec_CXX=
  12500. hardcode_direct_CXX=no
  12501. hardcode_direct_absolute_CXX=no
  12502. hardcode_libdir_flag_spec_CXX=
  12503. hardcode_libdir_separator_CXX=
  12504. hardcode_minus_L_CXX=no
  12505. hardcode_shlibpath_var_CXX=unsupported
  12506. hardcode_automatic_CXX=no
  12507. inherit_rpath_CXX=no
  12508. module_cmds_CXX=
  12509. module_expsym_cmds_CXX=
  12510. link_all_deplibs_CXX=unknown
  12511. old_archive_cmds_CXX=$old_archive_cmds
  12512. reload_flag_CXX=$reload_flag
  12513. reload_cmds_CXX=$reload_cmds
  12514. no_undefined_flag_CXX=
  12515. whole_archive_flag_spec_CXX=
  12516. enable_shared_with_static_runtimes_CXX=no
  12517. # Source file extension for C++ test sources.
  12518. ac_ext=cpp
  12519. # Object file extension for compiled C++ test sources.
  12520. objext=o
  12521. objext_CXX=$objext
  12522. # No sense in running all these tests if we already determined that
  12523. # the CXX compiler isn't working. Some variables (like enable_shared)
  12524. # are currently assumed to apply to all compilers on this platform,
  12525. # and will be corrupted by setting them based on a non-working compiler.
  12526. if test yes != "$_lt_caught_CXX_error"; then
  12527. # Code to be used in simple compile tests
  12528. lt_simple_compile_test_code="int some_variable = 0;"
  12529. # Code to be used in simple link tests
  12530. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12531. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12532. # If no C compiler was specified, use CC.
  12533. LTCC=${LTCC-"$CC"}
  12534. # If no C compiler flags were specified, use CFLAGS.
  12535. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12536. # Allow CC to be a program name with arguments.
  12537. compiler=$CC
  12538. # save warnings/boilerplate of simple test code
  12539. ac_outfile=conftest.$ac_objext
  12540. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12541. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12542. _lt_compiler_boilerplate=`cat conftest.err`
  12543. $RM conftest*
  12544. ac_outfile=conftest.$ac_objext
  12545. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12546. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12547. _lt_linker_boilerplate=`cat conftest.err`
  12548. $RM -r conftest*
  12549. # Allow CC to be a program name with arguments.
  12550. lt_save_CC=$CC
  12551. lt_save_CFLAGS=$CFLAGS
  12552. lt_save_LD=$LD
  12553. lt_save_GCC=$GCC
  12554. GCC=$GXX
  12555. lt_save_with_gnu_ld=$with_gnu_ld
  12556. lt_save_path_LD=$lt_cv_path_LD
  12557. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12558. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12559. else
  12560. $as_unset lt_cv_prog_gnu_ld
  12561. fi
  12562. if test -n "${lt_cv_path_LDCXX+set}"; then
  12563. lt_cv_path_LD=$lt_cv_path_LDCXX
  12564. else
  12565. $as_unset lt_cv_path_LD
  12566. fi
  12567. test -z "${LDCXX+set}" || LD=$LDCXX
  12568. CC=${CXX-"c++"}
  12569. CFLAGS=$CXXFLAGS
  12570. compiler=$CC
  12571. compiler_CXX=$CC
  12572. func_cc_basename $compiler
  12573. cc_basename=$func_cc_basename_result
  12574. if test -n "$compiler"; then
  12575. # We don't want -fno-exception when compiling C++ code, so set the
  12576. # no_builtin_flag separately
  12577. if test yes = "$GXX"; then
  12578. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12579. else
  12580. lt_prog_compiler_no_builtin_flag_CXX=
  12581. fi
  12582. if test yes = "$GXX"; then
  12583. # Set up default GNU C++ configuration
  12584. # Check whether --with-gnu-ld was given.
  12585. if test ${with_gnu_ld+y}
  12586. then :
  12587. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12588. else $as_nop
  12589. with_gnu_ld=no
  12590. fi
  12591. ac_prog=ld
  12592. if test yes = "$GCC"; then
  12593. # Check if gcc -print-prog-name=ld gives a path.
  12594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12595. printf %s "checking for ld used by $CC... " >&6; }
  12596. case $host in
  12597. *-*-mingw*)
  12598. # gcc leaves a trailing carriage return, which upsets mingw
  12599. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12600. *)
  12601. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12602. esac
  12603. case $ac_prog in
  12604. # Accept absolute paths.
  12605. [\\/]* | ?:[\\/]*)
  12606. re_direlt='/[^/][^/]*/\.\./'
  12607. # Canonicalize the pathname of ld
  12608. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12609. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12610. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12611. done
  12612. test -z "$LD" && LD=$ac_prog
  12613. ;;
  12614. "")
  12615. # If it fails, then pretend we aren't using GCC.
  12616. ac_prog=ld
  12617. ;;
  12618. *)
  12619. # If it is relative, then search for the first ld in PATH.
  12620. with_gnu_ld=unknown
  12621. ;;
  12622. esac
  12623. elif test yes = "$with_gnu_ld"; then
  12624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12625. printf %s "checking for GNU ld... " >&6; }
  12626. else
  12627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12628. printf %s "checking for non-GNU ld... " >&6; }
  12629. fi
  12630. if test ${lt_cv_path_LD+y}
  12631. then :
  12632. printf %s "(cached) " >&6
  12633. else $as_nop
  12634. if test -z "$LD"; then
  12635. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12636. for ac_dir in $PATH; do
  12637. IFS=$lt_save_ifs
  12638. test -z "$ac_dir" && ac_dir=.
  12639. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12640. lt_cv_path_LD=$ac_dir/$ac_prog
  12641. # Check to see if the program is GNU ld. I'd rather use --version,
  12642. # but apparently some variants of GNU ld only accept -v.
  12643. # Break only if it was the GNU/non-GNU ld that we prefer.
  12644. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12645. *GNU* | *'with BFD'*)
  12646. test no != "$with_gnu_ld" && break
  12647. ;;
  12648. *)
  12649. test yes != "$with_gnu_ld" && break
  12650. ;;
  12651. esac
  12652. fi
  12653. done
  12654. IFS=$lt_save_ifs
  12655. else
  12656. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12657. fi
  12658. fi
  12659. LD=$lt_cv_path_LD
  12660. if test -n "$LD"; then
  12661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12662. printf "%s\n" "$LD" >&6; }
  12663. else
  12664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12665. printf "%s\n" "no" >&6; }
  12666. fi
  12667. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12669. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12670. if test ${lt_cv_prog_gnu_ld+y}
  12671. then :
  12672. printf %s "(cached) " >&6
  12673. else $as_nop
  12674. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12675. case `$LD -v 2>&1 </dev/null` in
  12676. *GNU* | *'with BFD'*)
  12677. lt_cv_prog_gnu_ld=yes
  12678. ;;
  12679. *)
  12680. lt_cv_prog_gnu_ld=no
  12681. ;;
  12682. esac
  12683. fi
  12684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12685. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12686. with_gnu_ld=$lt_cv_prog_gnu_ld
  12687. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12688. # archiving commands below assume that GNU ld is being used.
  12689. if test yes = "$with_gnu_ld"; then
  12690. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12691. 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'
  12692. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12693. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12694. # If archive_cmds runs LD, not CC, wlarc should be empty
  12695. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12696. # investigate it a little bit more. (MM)
  12697. wlarc='$wl'
  12698. # ancient GNU ld didn't support --whole-archive et. al.
  12699. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12700. $GREP 'no-whole-archive' > /dev/null; then
  12701. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12702. else
  12703. whole_archive_flag_spec_CXX=
  12704. fi
  12705. else
  12706. with_gnu_ld=no
  12707. wlarc=
  12708. # A generic and very simple default shared library creation
  12709. # command for GNU C++ for the case where it uses the native
  12710. # linker, instead of GNU ld. If possible, this setting should
  12711. # overridden to take advantage of the native linker features on
  12712. # the platform it is being used on.
  12713. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12714. fi
  12715. # Commands to make compiler produce verbose output that lists
  12716. # what "hidden" libraries, object files and flags are used when
  12717. # linking a shared library.
  12718. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12719. else
  12720. GXX=no
  12721. with_gnu_ld=no
  12722. wlarc=
  12723. fi
  12724. # PORTME: fill in a description of your system's C++ link characteristics
  12725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12726. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12727. ld_shlibs_CXX=yes
  12728. case $host_os in
  12729. aix3*)
  12730. # FIXME: insert proper C++ library support
  12731. ld_shlibs_CXX=no
  12732. ;;
  12733. aix[4-9]*)
  12734. if test ia64 = "$host_cpu"; then
  12735. # On IA64, the linker does run time linking by default, so we don't
  12736. # have to do anything special.
  12737. aix_use_runtimelinking=no
  12738. exp_sym_flag='-Bexport'
  12739. no_entry_flag=
  12740. else
  12741. aix_use_runtimelinking=no
  12742. # Test if we are trying to use run time linking or normal
  12743. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12744. # have runtime linking enabled, and use it for executables.
  12745. # For shared libraries, we enable/disable runtime linking
  12746. # depending on the kind of the shared library created -
  12747. # when "with_aix_soname,aix_use_runtimelinking" is:
  12748. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12749. # "aix,yes" lib.so shared, rtl:yes, for executables
  12750. # lib.a static archive
  12751. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12752. # lib.a(lib.so.V) shared, rtl:no, for executables
  12753. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12754. # lib.a(lib.so.V) shared, rtl:no
  12755. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12756. # lib.a static archive
  12757. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12758. for ld_flag in $LDFLAGS; do
  12759. case $ld_flag in
  12760. *-brtl*)
  12761. aix_use_runtimelinking=yes
  12762. break
  12763. ;;
  12764. esac
  12765. done
  12766. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12767. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12768. # so we don't have lib.a shared libs to link our executables.
  12769. # We have to force runtime linking in this case.
  12770. aix_use_runtimelinking=yes
  12771. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12772. fi
  12773. ;;
  12774. esac
  12775. exp_sym_flag='-bexport'
  12776. no_entry_flag='-bnoentry'
  12777. fi
  12778. # When large executables or shared objects are built, AIX ld can
  12779. # have problems creating the table of contents. If linking a library
  12780. # or program results in "error TOC overflow" add -mminimal-toc to
  12781. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12782. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12783. archive_cmds_CXX=''
  12784. hardcode_direct_CXX=yes
  12785. hardcode_direct_absolute_CXX=yes
  12786. hardcode_libdir_separator_CXX=':'
  12787. link_all_deplibs_CXX=yes
  12788. file_list_spec_CXX='$wl-f,'
  12789. case $with_aix_soname,$aix_use_runtimelinking in
  12790. aix,*) ;; # no import file
  12791. svr4,* | *,yes) # use import file
  12792. # The Import File defines what to hardcode.
  12793. hardcode_direct_CXX=no
  12794. hardcode_direct_absolute_CXX=no
  12795. ;;
  12796. esac
  12797. if test yes = "$GXX"; then
  12798. case $host_os in aix4.[012]|aix4.[012].*)
  12799. # We only want to do this on AIX 4.2 and lower, the check
  12800. # below for broken collect2 doesn't work under 4.3+
  12801. collect2name=`$CC -print-prog-name=collect2`
  12802. if test -f "$collect2name" &&
  12803. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12804. then
  12805. # We have reworked collect2
  12806. :
  12807. else
  12808. # We have old collect2
  12809. hardcode_direct_CXX=unsupported
  12810. # It fails to find uninstalled libraries when the uninstalled
  12811. # path is not listed in the libpath. Setting hardcode_minus_L
  12812. # to unsupported forces relinking
  12813. hardcode_minus_L_CXX=yes
  12814. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12815. hardcode_libdir_separator_CXX=
  12816. fi
  12817. esac
  12818. shared_flag='-shared'
  12819. if test yes = "$aix_use_runtimelinking"; then
  12820. shared_flag=$shared_flag' $wl-G'
  12821. fi
  12822. # Need to ensure runtime linking is disabled for the traditional
  12823. # shared library, or the linker may eventually find shared libraries
  12824. # /with/ Import File - we do not want to mix them.
  12825. shared_flag_aix='-shared'
  12826. shared_flag_svr4='-shared $wl-G'
  12827. else
  12828. # not using gcc
  12829. if test ia64 = "$host_cpu"; then
  12830. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12831. # chokes on -Wl,-G. The following line is correct:
  12832. shared_flag='-G'
  12833. else
  12834. if test yes = "$aix_use_runtimelinking"; then
  12835. shared_flag='$wl-G'
  12836. else
  12837. shared_flag='$wl-bM:SRE'
  12838. fi
  12839. shared_flag_aix='$wl-bM:SRE'
  12840. shared_flag_svr4='$wl-G'
  12841. fi
  12842. fi
  12843. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12844. # It seems that -bexpall does not export symbols beginning with
  12845. # underscore (_), so it is better to generate a list of symbols to
  12846. # export.
  12847. always_export_symbols_CXX=yes
  12848. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12849. # Warning - without using the other runtime loading flags (-brtl),
  12850. # -berok will link without error, but may produce a broken library.
  12851. # The "-G" linker flag allows undefined symbols.
  12852. no_undefined_flag_CXX='-bernotok'
  12853. # Determine the default libpath from the value encoded in an empty
  12854. # executable.
  12855. if test set = "${lt_cv_aix_libpath+set}"; then
  12856. aix_libpath=$lt_cv_aix_libpath
  12857. else
  12858. if test ${lt_cv_aix_libpath__CXX+y}
  12859. then :
  12860. printf %s "(cached) " >&6
  12861. else $as_nop
  12862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12863. /* end confdefs.h. */
  12864. int
  12865. main (void)
  12866. {
  12867. ;
  12868. return 0;
  12869. }
  12870. _ACEOF
  12871. if ac_fn_cxx_try_link "$LINENO"
  12872. then :
  12873. lt_aix_libpath_sed='
  12874. /Import File Strings/,/^$/ {
  12875. /^0/ {
  12876. s/^0 *\([^ ]*\) *$/\1/
  12877. p
  12878. }
  12879. }'
  12880. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12881. # Check for a 64-bit object if we didn't find anything.
  12882. if test -z "$lt_cv_aix_libpath__CXX"; then
  12883. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12884. fi
  12885. fi
  12886. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12887. conftest$ac_exeext conftest.$ac_ext
  12888. if test -z "$lt_cv_aix_libpath__CXX"; then
  12889. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12890. fi
  12891. fi
  12892. aix_libpath=$lt_cv_aix_libpath__CXX
  12893. fi
  12894. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12895. 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
  12896. else
  12897. if test ia64 = "$host_cpu"; then
  12898. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12899. allow_undefined_flag_CXX="-z nodefs"
  12900. 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"
  12901. else
  12902. # Determine the default libpath from the value encoded in an
  12903. # empty executable.
  12904. if test set = "${lt_cv_aix_libpath+set}"; then
  12905. aix_libpath=$lt_cv_aix_libpath
  12906. else
  12907. if test ${lt_cv_aix_libpath__CXX+y}
  12908. then :
  12909. printf %s "(cached) " >&6
  12910. else $as_nop
  12911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12912. /* end confdefs.h. */
  12913. int
  12914. main (void)
  12915. {
  12916. ;
  12917. return 0;
  12918. }
  12919. _ACEOF
  12920. if ac_fn_cxx_try_link "$LINENO"
  12921. then :
  12922. lt_aix_libpath_sed='
  12923. /Import File Strings/,/^$/ {
  12924. /^0/ {
  12925. s/^0 *\([^ ]*\) *$/\1/
  12926. p
  12927. }
  12928. }'
  12929. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12930. # Check for a 64-bit object if we didn't find anything.
  12931. if test -z "$lt_cv_aix_libpath__CXX"; then
  12932. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12933. fi
  12934. fi
  12935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12936. conftest$ac_exeext conftest.$ac_ext
  12937. if test -z "$lt_cv_aix_libpath__CXX"; then
  12938. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12939. fi
  12940. fi
  12941. aix_libpath=$lt_cv_aix_libpath__CXX
  12942. fi
  12943. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12944. # Warning - without using the other run time loading flags,
  12945. # -berok will link without error, but may produce a broken library.
  12946. no_undefined_flag_CXX=' $wl-bernotok'
  12947. allow_undefined_flag_CXX=' $wl-berok'
  12948. if test yes = "$with_gnu_ld"; then
  12949. # We only use this code for GNU lds that support --whole-archive.
  12950. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12951. else
  12952. # Exported symbols can be pulled into shared objects from archives
  12953. whole_archive_flag_spec_CXX='$convenience'
  12954. fi
  12955. archive_cmds_need_lc_CXX=yes
  12956. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12957. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12958. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12959. if test svr4 != "$with_aix_soname"; then
  12960. # This is similar to how AIX traditionally builds its shared
  12961. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12962. 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'
  12963. fi
  12964. if test aix != "$with_aix_soname"; then
  12965. 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'
  12966. else
  12967. # used by -dlpreopen to get the symbols
  12968. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12969. fi
  12970. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12971. fi
  12972. fi
  12973. ;;
  12974. beos*)
  12975. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12976. allow_undefined_flag_CXX=unsupported
  12977. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12978. # support --undefined. This deserves some investigation. FIXME
  12979. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12980. else
  12981. ld_shlibs_CXX=no
  12982. fi
  12983. ;;
  12984. chorus*)
  12985. case $cc_basename in
  12986. *)
  12987. # FIXME: insert proper C++ library support
  12988. ld_shlibs_CXX=no
  12989. ;;
  12990. esac
  12991. ;;
  12992. cygwin* | mingw* | pw32* | cegcc*)
  12993. case $GXX,$cc_basename in
  12994. ,cl* | no,cl*)
  12995. # Native MSVC
  12996. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12997. # no search path for DLLs.
  12998. hardcode_libdir_flag_spec_CXX=' '
  12999. allow_undefined_flag_CXX=unsupported
  13000. always_export_symbols_CXX=yes
  13001. file_list_spec_CXX='@'
  13002. # Tell ltmain to make .lib files, not .a files.
  13003. libext=lib
  13004. # Tell ltmain to make .dll files, not .so files.
  13005. shrext_cmds=.dll
  13006. # FIXME: Setting linknames here is a bad hack.
  13007. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13008. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13009. cp "$export_symbols" "$output_objdir/$soname.def";
  13010. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13011. else
  13012. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13013. fi~
  13014. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13015. linknames='
  13016. # The linker will not automatically build a static lib if we build a DLL.
  13017. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13018. enable_shared_with_static_runtimes_CXX=yes
  13019. # Don't use ranlib
  13020. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13021. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13022. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13023. case $lt_outputfile in
  13024. *.exe|*.EXE) ;;
  13025. *)
  13026. lt_outputfile=$lt_outputfile.exe
  13027. lt_tool_outputfile=$lt_tool_outputfile.exe
  13028. ;;
  13029. esac~
  13030. func_to_tool_file "$lt_outputfile"~
  13031. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13032. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13033. $RM "$lt_outputfile.manifest";
  13034. fi'
  13035. ;;
  13036. *)
  13037. # g++
  13038. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13039. # as there is no search path for DLLs.
  13040. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13041. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13042. allow_undefined_flag_CXX=unsupported
  13043. always_export_symbols_CXX=no
  13044. enable_shared_with_static_runtimes_CXX=yes
  13045. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13046. 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'
  13047. # If the export-symbols file already is a .def file, use it as
  13048. # is; otherwise, prepend EXPORTS...
  13049. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13050. cp $export_symbols $output_objdir/$soname.def;
  13051. else
  13052. echo EXPORTS > $output_objdir/$soname.def;
  13053. cat $export_symbols >> $output_objdir/$soname.def;
  13054. fi~
  13055. $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'
  13056. else
  13057. ld_shlibs_CXX=no
  13058. fi
  13059. ;;
  13060. esac
  13061. ;;
  13062. darwin* | rhapsody*)
  13063. archive_cmds_need_lc_CXX=no
  13064. hardcode_direct_CXX=no
  13065. hardcode_automatic_CXX=yes
  13066. hardcode_shlibpath_var_CXX=unsupported
  13067. if test yes = "$lt_cv_ld_force_load"; then
  13068. 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\"`'
  13069. else
  13070. whole_archive_flag_spec_CXX=''
  13071. fi
  13072. link_all_deplibs_CXX=yes
  13073. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13074. case $cc_basename in
  13075. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13076. *) _lt_dar_can_shared=$GCC ;;
  13077. esac
  13078. if test yes = "$_lt_dar_can_shared"; then
  13079. output_verbose_link_cmd=func_echo_all
  13080. 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"
  13081. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13082. 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"
  13083. 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"
  13084. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13085. 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"
  13086. 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"
  13087. fi
  13088. else
  13089. ld_shlibs_CXX=no
  13090. fi
  13091. ;;
  13092. os2*)
  13093. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13094. hardcode_minus_L_CXX=yes
  13095. allow_undefined_flag_CXX=unsupported
  13096. shrext_cmds=.dll
  13097. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13098. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13099. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13100. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13101. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13102. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13103. emximp -o $lib $output_objdir/$libname.def'
  13104. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13105. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13106. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13107. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13108. prefix_cmds="$SED"~
  13109. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13110. prefix_cmds="$prefix_cmds -e 1d";
  13111. fi~
  13112. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13113. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13114. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13115. emximp -o $lib $output_objdir/$libname.def'
  13116. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13117. enable_shared_with_static_runtimes_CXX=yes
  13118. file_list_spec_CXX='@'
  13119. ;;
  13120. dgux*)
  13121. case $cc_basename in
  13122. ec++*)
  13123. # FIXME: insert proper C++ library support
  13124. ld_shlibs_CXX=no
  13125. ;;
  13126. ghcx*)
  13127. # Green Hills C++ Compiler
  13128. # FIXME: insert proper C++ library support
  13129. ld_shlibs_CXX=no
  13130. ;;
  13131. *)
  13132. # FIXME: insert proper C++ library support
  13133. ld_shlibs_CXX=no
  13134. ;;
  13135. esac
  13136. ;;
  13137. freebsd2.*)
  13138. # C++ shared libraries reported to be fairly broken before
  13139. # switch to ELF
  13140. ld_shlibs_CXX=no
  13141. ;;
  13142. freebsd-elf*)
  13143. archive_cmds_need_lc_CXX=no
  13144. ;;
  13145. freebsd* | dragonfly* | midnightbsd*)
  13146. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13147. # conventions
  13148. ld_shlibs_CXX=yes
  13149. ;;
  13150. haiku*)
  13151. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13152. link_all_deplibs_CXX=yes
  13153. ;;
  13154. hpux9*)
  13155. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13156. hardcode_libdir_separator_CXX=:
  13157. export_dynamic_flag_spec_CXX='$wl-E'
  13158. hardcode_direct_CXX=yes
  13159. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13160. # but as the default
  13161. # location of the library.
  13162. case $cc_basename in
  13163. CC*)
  13164. # FIXME: insert proper C++ library support
  13165. ld_shlibs_CXX=no
  13166. ;;
  13167. aCC*)
  13168. 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'
  13169. # Commands to make compiler produce verbose output that lists
  13170. # what "hidden" libraries, object files and flags are used when
  13171. # linking a shared library.
  13172. #
  13173. # There doesn't appear to be a way to prevent this compiler from
  13174. # explicitly linking system object files so we need to strip them
  13175. # from the output so that they don't get included in the library
  13176. # dependencies.
  13177. 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"'
  13178. ;;
  13179. *)
  13180. if test yes = "$GXX"; then
  13181. 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'
  13182. else
  13183. # FIXME: insert proper C++ library support
  13184. ld_shlibs_CXX=no
  13185. fi
  13186. ;;
  13187. esac
  13188. ;;
  13189. hpux10*|hpux11*)
  13190. if test no = "$with_gnu_ld"; then
  13191. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13192. hardcode_libdir_separator_CXX=:
  13193. case $host_cpu in
  13194. hppa*64*|ia64*)
  13195. ;;
  13196. *)
  13197. export_dynamic_flag_spec_CXX='$wl-E'
  13198. ;;
  13199. esac
  13200. fi
  13201. case $host_cpu in
  13202. hppa*64*|ia64*)
  13203. hardcode_direct_CXX=no
  13204. hardcode_shlibpath_var_CXX=no
  13205. ;;
  13206. *)
  13207. hardcode_direct_CXX=yes
  13208. hardcode_direct_absolute_CXX=yes
  13209. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13210. # but as the default
  13211. # location of the library.
  13212. ;;
  13213. esac
  13214. case $cc_basename in
  13215. CC*)
  13216. # FIXME: insert proper C++ library support
  13217. ld_shlibs_CXX=no
  13218. ;;
  13219. aCC*)
  13220. case $host_cpu in
  13221. hppa*64*)
  13222. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13223. ;;
  13224. ia64*)
  13225. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13226. ;;
  13227. *)
  13228. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13229. ;;
  13230. esac
  13231. # Commands to make compiler produce verbose output that lists
  13232. # what "hidden" libraries, object files and flags are used when
  13233. # linking a shared library.
  13234. #
  13235. # There doesn't appear to be a way to prevent this compiler from
  13236. # explicitly linking system object files so we need to strip them
  13237. # from the output so that they don't get included in the library
  13238. # dependencies.
  13239. 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"'
  13240. ;;
  13241. *)
  13242. if test yes = "$GXX"; then
  13243. if test no = "$with_gnu_ld"; then
  13244. case $host_cpu in
  13245. hppa*64*)
  13246. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13247. ;;
  13248. ia64*)
  13249. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13250. ;;
  13251. *)
  13252. 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'
  13253. ;;
  13254. esac
  13255. fi
  13256. else
  13257. # FIXME: insert proper C++ library support
  13258. ld_shlibs_CXX=no
  13259. fi
  13260. ;;
  13261. esac
  13262. ;;
  13263. interix[3-9]*)
  13264. hardcode_direct_CXX=no
  13265. hardcode_shlibpath_var_CXX=no
  13266. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13267. export_dynamic_flag_spec_CXX='$wl-E'
  13268. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13269. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13270. # default) and relocated if they conflict, which is a slow very memory
  13271. # consuming and fragmenting process. To avoid this, we pick a random,
  13272. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13273. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13274. 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'
  13275. 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'
  13276. ;;
  13277. irix5* | irix6*)
  13278. case $cc_basename in
  13279. CC*)
  13280. # SGI C++
  13281. 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'
  13282. # Archives containing C++ object files must be created using
  13283. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13284. # necessary to make sure instantiated templates are included
  13285. # in the archive.
  13286. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13287. ;;
  13288. *)
  13289. if test yes = "$GXX"; then
  13290. if test no = "$with_gnu_ld"; then
  13291. 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'
  13292. else
  13293. 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'
  13294. fi
  13295. fi
  13296. link_all_deplibs_CXX=yes
  13297. ;;
  13298. esac
  13299. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13300. hardcode_libdir_separator_CXX=:
  13301. inherit_rpath_CXX=yes
  13302. ;;
  13303. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13304. case $cc_basename in
  13305. KCC*)
  13306. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13307. # KCC will only create a shared library if the output file
  13308. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13309. # to its proper name (with version) after linking.
  13310. 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'
  13311. 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'
  13312. # Commands to make compiler produce verbose output that lists
  13313. # what "hidden" libraries, object files and flags are used when
  13314. # linking a shared library.
  13315. #
  13316. # There doesn't appear to be a way to prevent this compiler from
  13317. # explicitly linking system object files so we need to strip them
  13318. # from the output so that they don't get included in the library
  13319. # dependencies.
  13320. 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"'
  13321. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13322. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13323. # Archives containing C++ object files must be created using
  13324. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13325. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13326. ;;
  13327. icpc* | ecpc* )
  13328. # Intel C++
  13329. with_gnu_ld=yes
  13330. # version 8.0 and above of icpc choke on multiply defined symbols
  13331. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13332. # earlier do not add the objects themselves.
  13333. case `$CC -V 2>&1` in
  13334. *"Version 7."*)
  13335. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13336. 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'
  13337. ;;
  13338. *) # Version 8.0 or newer
  13339. tmp_idyn=
  13340. case $host_cpu in
  13341. ia64*) tmp_idyn=' -i_dynamic';;
  13342. esac
  13343. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13344. 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'
  13345. ;;
  13346. esac
  13347. archive_cmds_need_lc_CXX=no
  13348. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13349. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13350. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13351. ;;
  13352. pgCC* | pgcpp*)
  13353. # Portland Group C++ compiler
  13354. case `$CC -V` in
  13355. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13356. prelink_cmds_CXX='tpldir=Template.dir~
  13357. rm -rf $tpldir~
  13358. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13359. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13360. old_archive_cmds_CXX='tpldir=Template.dir~
  13361. rm -rf $tpldir~
  13362. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13363. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13364. $RANLIB $oldlib'
  13365. archive_cmds_CXX='tpldir=Template.dir~
  13366. rm -rf $tpldir~
  13367. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13368. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13369. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13370. rm -rf $tpldir~
  13371. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13372. $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'
  13373. ;;
  13374. *) # Version 6 and above use weak symbols
  13375. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13376. 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'
  13377. ;;
  13378. esac
  13379. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13380. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13381. 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'
  13382. ;;
  13383. cxx*)
  13384. # Compaq C++
  13385. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13386. 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'
  13387. runpath_var=LD_RUN_PATH
  13388. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13389. hardcode_libdir_separator_CXX=:
  13390. # Commands to make compiler produce verbose output that lists
  13391. # what "hidden" libraries, object files and flags are used when
  13392. # linking a shared library.
  13393. #
  13394. # There doesn't appear to be a way to prevent this compiler from
  13395. # explicitly linking system object files so we need to strip them
  13396. # from the output so that they don't get included in the library
  13397. # dependencies.
  13398. 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'
  13399. ;;
  13400. xl* | mpixl* | bgxl*)
  13401. # IBM XL 8.0 on PPC, with GNU ld
  13402. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13403. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13404. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13405. if test yes = "$supports_anon_versioning"; then
  13406. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13407. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13408. echo "local: *; };" >> $output_objdir/$libname.ver~
  13409. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13410. fi
  13411. ;;
  13412. *)
  13413. case `$CC -V 2>&1 | sed 5q` in
  13414. *Sun\ C*)
  13415. # Sun C++ 5.9
  13416. no_undefined_flag_CXX=' -zdefs'
  13417. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13418. 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'
  13419. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13420. 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'
  13421. compiler_needs_object_CXX=yes
  13422. # Not sure whether something based on
  13423. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13424. # would be better.
  13425. output_verbose_link_cmd='func_echo_all'
  13426. # Archives containing C++ object files must be created using
  13427. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13428. # necessary to make sure instantiated templates are included
  13429. # in the archive.
  13430. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13431. ;;
  13432. esac
  13433. ;;
  13434. esac
  13435. ;;
  13436. lynxos*)
  13437. # FIXME: insert proper C++ library support
  13438. ld_shlibs_CXX=no
  13439. ;;
  13440. m88k*)
  13441. # FIXME: insert proper C++ library support
  13442. ld_shlibs_CXX=no
  13443. ;;
  13444. mvs*)
  13445. case $cc_basename in
  13446. cxx*)
  13447. # FIXME: insert proper C++ library support
  13448. ld_shlibs_CXX=no
  13449. ;;
  13450. *)
  13451. # FIXME: insert proper C++ library support
  13452. ld_shlibs_CXX=no
  13453. ;;
  13454. esac
  13455. ;;
  13456. netbsd*)
  13457. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13458. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13459. wlarc=
  13460. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13461. hardcode_direct_CXX=yes
  13462. hardcode_shlibpath_var_CXX=no
  13463. fi
  13464. # Workaround some broken pre-1.5 toolchains
  13465. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13466. ;;
  13467. *nto* | *qnx*)
  13468. ld_shlibs_CXX=yes
  13469. ;;
  13470. openbsd* | bitrig*)
  13471. if test -f /usr/libexec/ld.so; then
  13472. hardcode_direct_CXX=yes
  13473. hardcode_shlibpath_var_CXX=no
  13474. hardcode_direct_absolute_CXX=yes
  13475. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13476. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13477. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13478. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13479. export_dynamic_flag_spec_CXX='$wl-E'
  13480. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13481. fi
  13482. output_verbose_link_cmd=func_echo_all
  13483. else
  13484. ld_shlibs_CXX=no
  13485. fi
  13486. ;;
  13487. osf3* | osf4* | osf5*)
  13488. case $cc_basename in
  13489. KCC*)
  13490. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13491. # KCC will only create a shared library if the output file
  13492. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13493. # to its proper name (with version) after linking.
  13494. 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'
  13495. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13496. hardcode_libdir_separator_CXX=:
  13497. # Archives containing C++ object files must be created using
  13498. # the KAI C++ compiler.
  13499. case $host in
  13500. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13501. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13502. esac
  13503. ;;
  13504. RCC*)
  13505. # Rational C++ 2.4.1
  13506. # FIXME: insert proper C++ library support
  13507. ld_shlibs_CXX=no
  13508. ;;
  13509. cxx*)
  13510. case $host in
  13511. osf3*)
  13512. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13513. 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'
  13514. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13515. ;;
  13516. *)
  13517. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13518. 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'
  13519. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13520. echo "-hidden">> $lib.exp~
  13521. $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~
  13522. $RM $lib.exp'
  13523. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13524. ;;
  13525. esac
  13526. hardcode_libdir_separator_CXX=:
  13527. # Commands to make compiler produce verbose output that lists
  13528. # what "hidden" libraries, object files and flags are used when
  13529. # linking a shared library.
  13530. #
  13531. # There doesn't appear to be a way to prevent this compiler from
  13532. # explicitly linking system object files so we need to strip them
  13533. # from the output so that they don't get included in the library
  13534. # dependencies.
  13535. 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"'
  13536. ;;
  13537. *)
  13538. if test yes,no = "$GXX,$with_gnu_ld"; then
  13539. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13540. case $host in
  13541. osf3*)
  13542. 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'
  13543. ;;
  13544. *)
  13545. 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'
  13546. ;;
  13547. esac
  13548. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13549. hardcode_libdir_separator_CXX=:
  13550. # Commands to make compiler produce verbose output that lists
  13551. # what "hidden" libraries, object files and flags are used when
  13552. # linking a shared library.
  13553. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13554. else
  13555. # FIXME: insert proper C++ library support
  13556. ld_shlibs_CXX=no
  13557. fi
  13558. ;;
  13559. esac
  13560. ;;
  13561. psos*)
  13562. # FIXME: insert proper C++ library support
  13563. ld_shlibs_CXX=no
  13564. ;;
  13565. sunos4*)
  13566. case $cc_basename in
  13567. CC*)
  13568. # Sun C++ 4.x
  13569. # FIXME: insert proper C++ library support
  13570. ld_shlibs_CXX=no
  13571. ;;
  13572. lcc*)
  13573. # Lucid
  13574. # FIXME: insert proper C++ library support
  13575. ld_shlibs_CXX=no
  13576. ;;
  13577. *)
  13578. # FIXME: insert proper C++ library support
  13579. ld_shlibs_CXX=no
  13580. ;;
  13581. esac
  13582. ;;
  13583. solaris*)
  13584. case $cc_basename in
  13585. CC* | sunCC*)
  13586. # Sun C++ 4.2, 5.x and Centerline C++
  13587. archive_cmds_need_lc_CXX=yes
  13588. no_undefined_flag_CXX=' -zdefs'
  13589. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13590. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13591. $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'
  13592. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13593. hardcode_shlibpath_var_CXX=no
  13594. case $host_os in
  13595. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13596. *)
  13597. # The compiler driver will combine and reorder linker options,
  13598. # but understands '-z linker_flag'.
  13599. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13600. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13601. ;;
  13602. esac
  13603. link_all_deplibs_CXX=yes
  13604. output_verbose_link_cmd='func_echo_all'
  13605. # Archives containing C++ object files must be created using
  13606. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13607. # necessary to make sure instantiated templates are included
  13608. # in the archive.
  13609. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13610. ;;
  13611. gcx*)
  13612. # Green Hills C++ Compiler
  13613. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13614. # The C++ compiler must be used to create the archive.
  13615. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13616. ;;
  13617. *)
  13618. # GNU C++ compiler with Solaris linker
  13619. if test yes,no = "$GXX,$with_gnu_ld"; then
  13620. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13621. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13622. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13623. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13624. $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'
  13625. # Commands to make compiler produce verbose output that lists
  13626. # what "hidden" libraries, object files and flags are used when
  13627. # linking a shared library.
  13628. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13629. else
  13630. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13631. # platform.
  13632. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13633. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13634. $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'
  13635. # Commands to make compiler produce verbose output that lists
  13636. # what "hidden" libraries, object files and flags are used when
  13637. # linking a shared library.
  13638. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13639. fi
  13640. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13641. case $host_os in
  13642. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13643. *)
  13644. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13645. ;;
  13646. esac
  13647. fi
  13648. ;;
  13649. esac
  13650. ;;
  13651. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13652. no_undefined_flag_CXX='$wl-z,text'
  13653. archive_cmds_need_lc_CXX=no
  13654. hardcode_shlibpath_var_CXX=no
  13655. runpath_var='LD_RUN_PATH'
  13656. case $cc_basename in
  13657. CC*)
  13658. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13659. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13660. ;;
  13661. *)
  13662. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13663. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13664. ;;
  13665. esac
  13666. ;;
  13667. sysv5* | sco3.2v5* | sco5v6*)
  13668. # Note: We CANNOT use -z defs as we might desire, because we do not
  13669. # link with -lc, and that would cause any symbols used from libc to
  13670. # always be unresolved, which means just about no library would
  13671. # ever link correctly. If we're not using GNU ld we use -z text
  13672. # though, which does catch some bad symbols but isn't as heavy-handed
  13673. # as -z defs.
  13674. no_undefined_flag_CXX='$wl-z,text'
  13675. allow_undefined_flag_CXX='$wl-z,nodefs'
  13676. archive_cmds_need_lc_CXX=no
  13677. hardcode_shlibpath_var_CXX=no
  13678. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13679. hardcode_libdir_separator_CXX=':'
  13680. link_all_deplibs_CXX=yes
  13681. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13682. runpath_var='LD_RUN_PATH'
  13683. case $cc_basename in
  13684. CC*)
  13685. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13686. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13687. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13688. '"$old_archive_cmds_CXX"
  13689. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13690. '"$reload_cmds_CXX"
  13691. ;;
  13692. *)
  13693. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13694. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13695. ;;
  13696. esac
  13697. ;;
  13698. tandem*)
  13699. case $cc_basename in
  13700. NCC*)
  13701. # NonStop-UX NCC 3.20
  13702. # FIXME: insert proper C++ library support
  13703. ld_shlibs_CXX=no
  13704. ;;
  13705. *)
  13706. # FIXME: insert proper C++ library support
  13707. ld_shlibs_CXX=no
  13708. ;;
  13709. esac
  13710. ;;
  13711. vxworks*)
  13712. # FIXME: insert proper C++ library support
  13713. ld_shlibs_CXX=no
  13714. ;;
  13715. *)
  13716. # FIXME: insert proper C++ library support
  13717. ld_shlibs_CXX=no
  13718. ;;
  13719. esac
  13720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13721. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13722. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13723. GCC_CXX=$GXX
  13724. LD_CXX=$LD
  13725. ## CAVEAT EMPTOR:
  13726. ## There is no encapsulation within the following macros, do not change
  13727. ## the running order or otherwise move them around unless you know exactly
  13728. ## what you are doing...
  13729. # Dependencies to place before and after the object being linked:
  13730. predep_objects_CXX=
  13731. postdep_objects_CXX=
  13732. predeps_CXX=
  13733. postdeps_CXX=
  13734. compiler_lib_search_path_CXX=
  13735. cat > conftest.$ac_ext <<_LT_EOF
  13736. class Foo
  13737. {
  13738. public:
  13739. Foo (void) { a = 0; }
  13740. private:
  13741. int a;
  13742. };
  13743. _LT_EOF
  13744. _lt_libdeps_save_CFLAGS=$CFLAGS
  13745. case "$CC $CFLAGS " in #(
  13746. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13747. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13748. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13749. esac
  13750. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13751. (eval $ac_compile) 2>&5
  13752. ac_status=$?
  13753. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13754. test $ac_status = 0; }; then
  13755. # Parse the compiler output and extract the necessary
  13756. # objects, libraries and library flags.
  13757. # Sentinel used to keep track of whether or not we are before
  13758. # the conftest object file.
  13759. pre_test_object_deps_done=no
  13760. for p in `eval "$output_verbose_link_cmd"`; do
  13761. case $prev$p in
  13762. -L* | -R* | -l*)
  13763. # Some compilers place space between "-{L,R}" and the path.
  13764. # Remove the space.
  13765. if test x-L = "x$p" ||
  13766. test x-R = "x$p" ||
  13767. test x-l = "x$p"; then
  13768. prev=$p
  13769. continue
  13770. fi
  13771. # Expand the sysroot to ease extracting the directories later.
  13772. if test -z "$prev"; then
  13773. case $p in
  13774. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13775. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13776. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13777. esac
  13778. fi
  13779. case $p in
  13780. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13781. esac
  13782. if test no = "$pre_test_object_deps_done"; then
  13783. case $prev in
  13784. -L | -R)
  13785. # Internal compiler library paths should come after those
  13786. # provided the user. The postdeps already come after the
  13787. # user supplied libs so there is no need to process them.
  13788. if test -z "$compiler_lib_search_path_CXX"; then
  13789. compiler_lib_search_path_CXX=$prev$p
  13790. else
  13791. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13792. fi
  13793. ;;
  13794. # The "-l" case would never come before the object being
  13795. # linked, so don't bother handling this case.
  13796. esac
  13797. else
  13798. if test -z "$postdeps_CXX"; then
  13799. postdeps_CXX=$prev$p
  13800. else
  13801. postdeps_CXX="${postdeps_CXX} $prev$p"
  13802. fi
  13803. fi
  13804. prev=
  13805. ;;
  13806. *.lto.$objext) ;; # Ignore GCC LTO objects
  13807. *.$objext)
  13808. # This assumes that the test object file only shows up
  13809. # once in the compiler output.
  13810. if test "$p" = "conftest.$objext"; then
  13811. pre_test_object_deps_done=yes
  13812. continue
  13813. fi
  13814. if test no = "$pre_test_object_deps_done"; then
  13815. if test -z "$predep_objects_CXX"; then
  13816. predep_objects_CXX=$p
  13817. else
  13818. predep_objects_CXX="$predep_objects_CXX $p"
  13819. fi
  13820. else
  13821. if test -z "$postdep_objects_CXX"; then
  13822. postdep_objects_CXX=$p
  13823. else
  13824. postdep_objects_CXX="$postdep_objects_CXX $p"
  13825. fi
  13826. fi
  13827. ;;
  13828. *) ;; # Ignore the rest.
  13829. esac
  13830. done
  13831. # Clean up.
  13832. rm -f a.out a.exe
  13833. else
  13834. echo "libtool.m4: error: problem compiling CXX test program"
  13835. fi
  13836. $RM -f confest.$objext
  13837. CFLAGS=$_lt_libdeps_save_CFLAGS
  13838. # PORTME: override above test on systems where it is broken
  13839. case $host_os in
  13840. interix[3-9]*)
  13841. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13842. # hack all around it, let's just trust "g++" to DTRT.
  13843. predep_objects_CXX=
  13844. postdep_objects_CXX=
  13845. postdeps_CXX=
  13846. ;;
  13847. esac
  13848. case " $postdeps_CXX " in
  13849. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13850. esac
  13851. compiler_lib_search_dirs_CXX=
  13852. if test -n "${compiler_lib_search_path_CXX}"; then
  13853. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13854. fi
  13855. lt_prog_compiler_wl_CXX=
  13856. lt_prog_compiler_pic_CXX=
  13857. lt_prog_compiler_static_CXX=
  13858. # C++ specific cases for pic, static, wl, etc.
  13859. if test yes = "$GXX"; then
  13860. lt_prog_compiler_wl_CXX='-Wl,'
  13861. lt_prog_compiler_static_CXX='-static'
  13862. case $host_os in
  13863. aix*)
  13864. # All AIX code is PIC.
  13865. if test ia64 = "$host_cpu"; then
  13866. # AIX 5 now supports IA64 processor
  13867. lt_prog_compiler_static_CXX='-Bstatic'
  13868. fi
  13869. lt_prog_compiler_pic_CXX='-fPIC'
  13870. ;;
  13871. amigaos*)
  13872. case $host_cpu in
  13873. powerpc)
  13874. # see comment about AmigaOS4 .so support
  13875. lt_prog_compiler_pic_CXX='-fPIC'
  13876. ;;
  13877. m68k)
  13878. # FIXME: we need at least 68020 code to build shared libraries, but
  13879. # adding the '-m68020' flag to GCC prevents building anything better,
  13880. # like '-m68040'.
  13881. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13882. ;;
  13883. esac
  13884. ;;
  13885. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13886. # PIC is the default for these OSes.
  13887. ;;
  13888. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13889. # This hack is so that the source file can tell whether it is being
  13890. # built for inclusion in a dll (and should export symbols for example).
  13891. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13892. # (--disable-auto-import) libraries
  13893. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13894. case $host_os in
  13895. os2*)
  13896. lt_prog_compiler_static_CXX='$wl-static'
  13897. ;;
  13898. esac
  13899. ;;
  13900. darwin* | rhapsody*)
  13901. # PIC is the default on this platform
  13902. # Common symbols not allowed in MH_DYLIB files
  13903. lt_prog_compiler_pic_CXX='-fno-common'
  13904. ;;
  13905. *djgpp*)
  13906. # DJGPP does not support shared libraries at all
  13907. lt_prog_compiler_pic_CXX=
  13908. ;;
  13909. haiku*)
  13910. # PIC is the default for Haiku.
  13911. # The "-static" flag exists, but is broken.
  13912. lt_prog_compiler_static_CXX=
  13913. ;;
  13914. interix[3-9]*)
  13915. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13916. # Instead, we relocate shared libraries at runtime.
  13917. ;;
  13918. sysv4*MP*)
  13919. if test -d /usr/nec; then
  13920. lt_prog_compiler_pic_CXX=-Kconform_pic
  13921. fi
  13922. ;;
  13923. hpux*)
  13924. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13925. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13926. # sets the default TLS model and affects inlining.
  13927. case $host_cpu in
  13928. hppa*64*)
  13929. ;;
  13930. *)
  13931. lt_prog_compiler_pic_CXX='-fPIC'
  13932. ;;
  13933. esac
  13934. ;;
  13935. *qnx* | *nto*)
  13936. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13937. # it will coredump.
  13938. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13939. ;;
  13940. *)
  13941. lt_prog_compiler_pic_CXX='-fPIC'
  13942. ;;
  13943. esac
  13944. else
  13945. case $host_os in
  13946. aix[4-9]*)
  13947. # All AIX code is PIC.
  13948. if test ia64 = "$host_cpu"; then
  13949. # AIX 5 now supports IA64 processor
  13950. lt_prog_compiler_static_CXX='-Bstatic'
  13951. else
  13952. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13953. fi
  13954. ;;
  13955. chorus*)
  13956. case $cc_basename in
  13957. cxch68*)
  13958. # Green Hills C++ Compiler
  13959. # _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"
  13960. ;;
  13961. esac
  13962. ;;
  13963. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13964. # This hack is so that the source file can tell whether it is being
  13965. # built for inclusion in a dll (and should export symbols for example).
  13966. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13967. ;;
  13968. dgux*)
  13969. case $cc_basename in
  13970. ec++*)
  13971. lt_prog_compiler_pic_CXX='-KPIC'
  13972. ;;
  13973. ghcx*)
  13974. # Green Hills C++ Compiler
  13975. lt_prog_compiler_pic_CXX='-pic'
  13976. ;;
  13977. *)
  13978. ;;
  13979. esac
  13980. ;;
  13981. freebsd* | dragonfly* | midnightbsd*)
  13982. # FreeBSD uses GNU C++
  13983. ;;
  13984. hpux9* | hpux10* | hpux11*)
  13985. case $cc_basename in
  13986. CC*)
  13987. lt_prog_compiler_wl_CXX='-Wl,'
  13988. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13989. if test ia64 != "$host_cpu"; then
  13990. lt_prog_compiler_pic_CXX='+Z'
  13991. fi
  13992. ;;
  13993. aCC*)
  13994. lt_prog_compiler_wl_CXX='-Wl,'
  13995. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13996. case $host_cpu in
  13997. hppa*64*|ia64*)
  13998. # +Z the default
  13999. ;;
  14000. *)
  14001. lt_prog_compiler_pic_CXX='+Z'
  14002. ;;
  14003. esac
  14004. ;;
  14005. *)
  14006. ;;
  14007. esac
  14008. ;;
  14009. interix*)
  14010. # This is c89, which is MS Visual C++ (no shared libs)
  14011. # Anyone wants to do a port?
  14012. ;;
  14013. irix5* | irix6* | nonstopux*)
  14014. case $cc_basename in
  14015. CC*)
  14016. lt_prog_compiler_wl_CXX='-Wl,'
  14017. lt_prog_compiler_static_CXX='-non_shared'
  14018. # CC pic flag -KPIC is the default.
  14019. ;;
  14020. *)
  14021. ;;
  14022. esac
  14023. ;;
  14024. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14025. case $cc_basename in
  14026. KCC*)
  14027. # KAI C++ Compiler
  14028. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14029. lt_prog_compiler_pic_CXX='-fPIC'
  14030. ;;
  14031. ecpc* )
  14032. # old Intel C++ for x86_64, which still supported -KPIC.
  14033. lt_prog_compiler_wl_CXX='-Wl,'
  14034. lt_prog_compiler_pic_CXX='-KPIC'
  14035. lt_prog_compiler_static_CXX='-static'
  14036. ;;
  14037. icpc* )
  14038. # Intel C++, used to be incompatible with GCC.
  14039. # ICC 10 doesn't accept -KPIC any more.
  14040. lt_prog_compiler_wl_CXX='-Wl,'
  14041. lt_prog_compiler_pic_CXX='-fPIC'
  14042. lt_prog_compiler_static_CXX='-static'
  14043. ;;
  14044. pgCC* | pgcpp*)
  14045. # Portland Group C++ compiler
  14046. lt_prog_compiler_wl_CXX='-Wl,'
  14047. lt_prog_compiler_pic_CXX='-fpic'
  14048. lt_prog_compiler_static_CXX='-Bstatic'
  14049. ;;
  14050. cxx*)
  14051. # Compaq C++
  14052. # Make sure the PIC flag is empty. It appears that all Alpha
  14053. # Linux and Compaq Tru64 Unix objects are PIC.
  14054. lt_prog_compiler_pic_CXX=
  14055. lt_prog_compiler_static_CXX='-non_shared'
  14056. ;;
  14057. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14058. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14059. lt_prog_compiler_wl_CXX='-Wl,'
  14060. lt_prog_compiler_pic_CXX='-qpic'
  14061. lt_prog_compiler_static_CXX='-qstaticlink'
  14062. ;;
  14063. *)
  14064. case `$CC -V 2>&1 | sed 5q` in
  14065. *Sun\ C*)
  14066. # Sun C++ 5.9
  14067. lt_prog_compiler_pic_CXX='-KPIC'
  14068. lt_prog_compiler_static_CXX='-Bstatic'
  14069. lt_prog_compiler_wl_CXX='-Qoption ld '
  14070. ;;
  14071. esac
  14072. ;;
  14073. esac
  14074. ;;
  14075. lynxos*)
  14076. ;;
  14077. m88k*)
  14078. ;;
  14079. mvs*)
  14080. case $cc_basename in
  14081. cxx*)
  14082. lt_prog_compiler_pic_CXX='-W c,exportall'
  14083. ;;
  14084. *)
  14085. ;;
  14086. esac
  14087. ;;
  14088. netbsd*)
  14089. ;;
  14090. *qnx* | *nto*)
  14091. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14092. # it will coredump.
  14093. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14094. ;;
  14095. osf3* | osf4* | osf5*)
  14096. case $cc_basename in
  14097. KCC*)
  14098. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14099. ;;
  14100. RCC*)
  14101. # Rational C++ 2.4.1
  14102. lt_prog_compiler_pic_CXX='-pic'
  14103. ;;
  14104. cxx*)
  14105. # Digital/Compaq C++
  14106. lt_prog_compiler_wl_CXX='-Wl,'
  14107. # Make sure the PIC flag is empty. It appears that all Alpha
  14108. # Linux and Compaq Tru64 Unix objects are PIC.
  14109. lt_prog_compiler_pic_CXX=
  14110. lt_prog_compiler_static_CXX='-non_shared'
  14111. ;;
  14112. *)
  14113. ;;
  14114. esac
  14115. ;;
  14116. psos*)
  14117. ;;
  14118. solaris*)
  14119. case $cc_basename in
  14120. CC* | sunCC*)
  14121. # Sun C++ 4.2, 5.x and Centerline C++
  14122. lt_prog_compiler_pic_CXX='-KPIC'
  14123. lt_prog_compiler_static_CXX='-Bstatic'
  14124. lt_prog_compiler_wl_CXX='-Qoption ld '
  14125. ;;
  14126. gcx*)
  14127. # Green Hills C++ Compiler
  14128. lt_prog_compiler_pic_CXX='-PIC'
  14129. ;;
  14130. *)
  14131. ;;
  14132. esac
  14133. ;;
  14134. sunos4*)
  14135. case $cc_basename in
  14136. CC*)
  14137. # Sun C++ 4.x
  14138. lt_prog_compiler_pic_CXX='-pic'
  14139. lt_prog_compiler_static_CXX='-Bstatic'
  14140. ;;
  14141. lcc*)
  14142. # Lucid
  14143. lt_prog_compiler_pic_CXX='-pic'
  14144. ;;
  14145. *)
  14146. ;;
  14147. esac
  14148. ;;
  14149. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14150. case $cc_basename in
  14151. CC*)
  14152. lt_prog_compiler_wl_CXX='-Wl,'
  14153. lt_prog_compiler_pic_CXX='-KPIC'
  14154. lt_prog_compiler_static_CXX='-Bstatic'
  14155. ;;
  14156. esac
  14157. ;;
  14158. tandem*)
  14159. case $cc_basename in
  14160. NCC*)
  14161. # NonStop-UX NCC 3.20
  14162. lt_prog_compiler_pic_CXX='-KPIC'
  14163. ;;
  14164. *)
  14165. ;;
  14166. esac
  14167. ;;
  14168. vxworks*)
  14169. ;;
  14170. *)
  14171. lt_prog_compiler_can_build_shared_CXX=no
  14172. ;;
  14173. esac
  14174. fi
  14175. case $host_os in
  14176. # For platforms that do not support PIC, -DPIC is meaningless:
  14177. *djgpp*)
  14178. lt_prog_compiler_pic_CXX=
  14179. ;;
  14180. *)
  14181. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14182. ;;
  14183. esac
  14184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14185. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14186. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14187. then :
  14188. printf %s "(cached) " >&6
  14189. else $as_nop
  14190. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14191. fi
  14192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14193. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14194. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14195. #
  14196. # Check to make sure the PIC flag actually works.
  14197. #
  14198. if test -n "$lt_prog_compiler_pic_CXX"; then
  14199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14200. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14201. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14202. then :
  14203. printf %s "(cached) " >&6
  14204. else $as_nop
  14205. lt_cv_prog_compiler_pic_works_CXX=no
  14206. ac_outfile=conftest.$ac_objext
  14207. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14208. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14209. # Insert the option either (1) after the last *FLAGS variable, or
  14210. # (2) before a word containing "conftest.", or (3) at the end.
  14211. # Note that $ac_compile itself does not contain backslashes and begins
  14212. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14213. # The option is referenced via a variable to avoid confusing sed.
  14214. lt_compile=`echo "$ac_compile" | $SED \
  14215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14217. -e 's:$: $lt_compiler_flag:'`
  14218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14219. (eval "$lt_compile" 2>conftest.err)
  14220. ac_status=$?
  14221. cat conftest.err >&5
  14222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14223. if (exit $ac_status) && test -s "$ac_outfile"; then
  14224. # The compiler can only warn and ignore the option if not recognized
  14225. # So say no if there are warnings other than the usual output.
  14226. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14227. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14228. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14229. lt_cv_prog_compiler_pic_works_CXX=yes
  14230. fi
  14231. fi
  14232. $RM conftest*
  14233. fi
  14234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14235. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14236. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14237. case $lt_prog_compiler_pic_CXX in
  14238. "" | " "*) ;;
  14239. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14240. esac
  14241. else
  14242. lt_prog_compiler_pic_CXX=
  14243. lt_prog_compiler_can_build_shared_CXX=no
  14244. fi
  14245. fi
  14246. #
  14247. # Check to make sure the static flag actually works.
  14248. #
  14249. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14251. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14252. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14253. then :
  14254. printf %s "(cached) " >&6
  14255. else $as_nop
  14256. lt_cv_prog_compiler_static_works_CXX=no
  14257. save_LDFLAGS=$LDFLAGS
  14258. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14259. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14260. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14261. # The linker can only warn and ignore the option if not recognized
  14262. # So say no if there are warnings
  14263. if test -s conftest.err; then
  14264. # Append any errors to the config.log.
  14265. cat conftest.err 1>&5
  14266. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14267. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14268. if diff conftest.exp conftest.er2 >/dev/null; then
  14269. lt_cv_prog_compiler_static_works_CXX=yes
  14270. fi
  14271. else
  14272. lt_cv_prog_compiler_static_works_CXX=yes
  14273. fi
  14274. fi
  14275. $RM -r conftest*
  14276. LDFLAGS=$save_LDFLAGS
  14277. fi
  14278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14279. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14280. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14281. :
  14282. else
  14283. lt_prog_compiler_static_CXX=
  14284. fi
  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. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14334. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14335. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14336. then :
  14337. printf %s "(cached) " >&6
  14338. else $as_nop
  14339. lt_cv_prog_compiler_c_o_CXX=no
  14340. $RM -r conftest 2>/dev/null
  14341. mkdir conftest
  14342. cd conftest
  14343. mkdir out
  14344. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14345. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14346. # Insert the option either (1) after the last *FLAGS variable, or
  14347. # (2) before a word containing "conftest.", or (3) at the end.
  14348. # Note that $ac_compile itself does not contain backslashes and begins
  14349. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14350. lt_compile=`echo "$ac_compile" | $SED \
  14351. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14352. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14353. -e 's:$: $lt_compiler_flag:'`
  14354. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14355. (eval "$lt_compile" 2>out/conftest.err)
  14356. ac_status=$?
  14357. cat out/conftest.err >&5
  14358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14359. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14360. then
  14361. # The compiler can only warn and ignore the option if not recognized
  14362. # So say no if there are warnings
  14363. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14364. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14365. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14366. lt_cv_prog_compiler_c_o_CXX=yes
  14367. fi
  14368. fi
  14369. chmod u+w . 2>&5
  14370. $RM conftest*
  14371. # SGI C++ compiler will create directory out/ii_files/ for
  14372. # template instantiation
  14373. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14374. $RM out/* && rmdir out
  14375. cd ..
  14376. $RM -r conftest
  14377. $RM conftest*
  14378. fi
  14379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14380. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14381. hard_links=nottested
  14382. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14383. # do not overwrite the value of need_locks provided by the user
  14384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14385. printf %s "checking if we can lock with hard links... " >&6; }
  14386. hard_links=yes
  14387. $RM conftest*
  14388. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14389. touch conftest.a
  14390. ln conftest.a conftest.b 2>&5 || hard_links=no
  14391. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14393. printf "%s\n" "$hard_links" >&6; }
  14394. if test no = "$hard_links"; then
  14395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14396. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14397. need_locks=warn
  14398. fi
  14399. else
  14400. need_locks=no
  14401. fi
  14402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14403. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14404. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14405. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14406. case $host_os in
  14407. aix[4-9]*)
  14408. # If we're using GNU nm, then we don't want the "-C" option.
  14409. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14410. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14411. # weak defined symbols like other global defined symbols, whereas
  14412. # GNU nm marks them as "W".
  14413. # While the 'weak' keyword is ignored in the Export File, we need
  14414. # it in the Import File for the 'aix-soname' feature, so we have
  14415. # to replace the "-B" option with "-P" for AIX nm.
  14416. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14417. 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'
  14418. else
  14419. 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'
  14420. fi
  14421. ;;
  14422. pw32*)
  14423. export_symbols_cmds_CXX=$ltdll_cmds
  14424. ;;
  14425. cygwin* | mingw* | cegcc*)
  14426. case $cc_basename in
  14427. cl*)
  14428. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14429. ;;
  14430. *)
  14431. 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'
  14432. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14433. ;;
  14434. esac
  14435. ;;
  14436. *)
  14437. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14438. ;;
  14439. esac
  14440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14441. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14442. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14443. with_gnu_ld_CXX=$with_gnu_ld
  14444. #
  14445. # Do we need to explicitly link libc?
  14446. #
  14447. case "x$archive_cmds_need_lc_CXX" in
  14448. x|xyes)
  14449. # Assume -lc should be added
  14450. archive_cmds_need_lc_CXX=yes
  14451. if test yes,yes = "$GCC,$enable_shared"; then
  14452. case $archive_cmds_CXX in
  14453. *'~'*)
  14454. # FIXME: we may have to deal with multi-command sequences.
  14455. ;;
  14456. '$CC '*)
  14457. # Test whether the compiler implicitly links with -lc since on some
  14458. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14459. # to ld, don't add -lc before -lgcc.
  14460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14461. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14462. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14463. then :
  14464. printf %s "(cached) " >&6
  14465. else $as_nop
  14466. $RM conftest*
  14467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14468. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14469. (eval $ac_compile) 2>&5
  14470. ac_status=$?
  14471. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14472. test $ac_status = 0; } 2>conftest.err; then
  14473. soname=conftest
  14474. lib=conftest
  14475. libobjs=conftest.$ac_objext
  14476. deplibs=
  14477. wl=$lt_prog_compiler_wl_CXX
  14478. pic_flag=$lt_prog_compiler_pic_CXX
  14479. compiler_flags=-v
  14480. linker_flags=-v
  14481. verstring=
  14482. output_objdir=.
  14483. libname=conftest
  14484. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14485. allow_undefined_flag_CXX=
  14486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14487. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14488. ac_status=$?
  14489. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14490. test $ac_status = 0; }
  14491. then
  14492. lt_cv_archive_cmds_need_lc_CXX=no
  14493. else
  14494. lt_cv_archive_cmds_need_lc_CXX=yes
  14495. fi
  14496. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14497. else
  14498. cat conftest.err 1>&5
  14499. fi
  14500. $RM conftest*
  14501. fi
  14502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14503. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14504. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14505. ;;
  14506. esac
  14507. fi
  14508. ;;
  14509. esac
  14510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14511. printf %s "checking dynamic linker characteristics... " >&6; }
  14512. library_names_spec=
  14513. libname_spec='lib$name'
  14514. soname_spec=
  14515. shrext_cmds=.so
  14516. postinstall_cmds=
  14517. postuninstall_cmds=
  14518. finish_cmds=
  14519. finish_eval=
  14520. shlibpath_var=
  14521. shlibpath_overrides_runpath=unknown
  14522. version_type=none
  14523. dynamic_linker="$host_os ld.so"
  14524. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14525. need_lib_prefix=unknown
  14526. hardcode_into_libs=no
  14527. # when you set need_version to no, make sure it does not cause -set_version
  14528. # flags to be left without arguments
  14529. need_version=unknown
  14530. case $host_os in
  14531. aix3*)
  14532. version_type=linux # correct to gnu/linux during the next big refactor
  14533. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14534. shlibpath_var=LIBPATH
  14535. # AIX 3 has no versioning support, so we append a major version to the name.
  14536. soname_spec='$libname$release$shared_ext$major'
  14537. ;;
  14538. aix[4-9]*)
  14539. version_type=linux # correct to gnu/linux during the next big refactor
  14540. need_lib_prefix=no
  14541. need_version=no
  14542. hardcode_into_libs=yes
  14543. if test ia64 = "$host_cpu"; then
  14544. # AIX 5 supports IA64
  14545. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14546. shlibpath_var=LD_LIBRARY_PATH
  14547. else
  14548. # With GCC up to 2.95.x, collect2 would create an import file
  14549. # for dependence libraries. The import file would start with
  14550. # the line '#! .'. This would cause the generated library to
  14551. # depend on '.', always an invalid library. This was fixed in
  14552. # development snapshots of GCC prior to 3.0.
  14553. case $host_os in
  14554. aix4 | aix4.[01] | aix4.[01].*)
  14555. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14556. echo ' yes '
  14557. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14558. :
  14559. else
  14560. can_build_shared=no
  14561. fi
  14562. ;;
  14563. esac
  14564. # Using Import Files as archive members, it is possible to support
  14565. # filename-based versioning of shared library archives on AIX. While
  14566. # this would work for both with and without runtime linking, it will
  14567. # prevent static linking of such archives. So we do filename-based
  14568. # shared library versioning with .so extension only, which is used
  14569. # when both runtime linking and shared linking is enabled.
  14570. # Unfortunately, runtime linking may impact performance, so we do
  14571. # not want this to be the default eventually. Also, we use the
  14572. # versioned .so libs for executables only if there is the -brtl
  14573. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14574. # To allow for filename-based versioning support, we need to create
  14575. # libNAME.so.V as an archive file, containing:
  14576. # *) an Import File, referring to the versioned filename of the
  14577. # archive as well as the shared archive member, telling the
  14578. # bitwidth (32 or 64) of that shared object, and providing the
  14579. # list of exported symbols of that shared object, eventually
  14580. # decorated with the 'weak' keyword
  14581. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14582. # it being seen by the linker.
  14583. # At run time we better use the real file rather than another symlink,
  14584. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14585. case $with_aix_soname,$aix_use_runtimelinking in
  14586. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14587. # soname into executable. Probably we can add versioning support to
  14588. # collect2, so additional links can be useful in future.
  14589. aix,yes) # traditional libtool
  14590. dynamic_linker='AIX unversionable lib.so'
  14591. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14592. # instead of lib<name>.a to let people know that these are not
  14593. # typical AIX shared libraries.
  14594. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14595. ;;
  14596. aix,no) # traditional AIX only
  14597. dynamic_linker='AIX lib.a(lib.so.V)'
  14598. # We preserve .a as extension for shared libraries through AIX4.2
  14599. # and later when we are not doing run time linking.
  14600. library_names_spec='$libname$release.a $libname.a'
  14601. soname_spec='$libname$release$shared_ext$major'
  14602. ;;
  14603. svr4,*) # full svr4 only
  14604. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14605. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14606. # We do not specify a path in Import Files, so LIBPATH fires.
  14607. shlibpath_overrides_runpath=yes
  14608. ;;
  14609. *,yes) # both, prefer svr4
  14610. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14611. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14612. # unpreferred sharedlib libNAME.a needs extra handling
  14613. 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"'
  14614. 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"'
  14615. # We do not specify a path in Import Files, so LIBPATH fires.
  14616. shlibpath_overrides_runpath=yes
  14617. ;;
  14618. *,no) # both, prefer aix
  14619. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14620. library_names_spec='$libname$release.a $libname.a'
  14621. soname_spec='$libname$release$shared_ext$major'
  14622. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14623. 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)'
  14624. 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"'
  14625. ;;
  14626. esac
  14627. shlibpath_var=LIBPATH
  14628. fi
  14629. ;;
  14630. amigaos*)
  14631. case $host_cpu in
  14632. powerpc)
  14633. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14634. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14635. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14636. ;;
  14637. m68k)
  14638. library_names_spec='$libname.ixlibrary $libname.a'
  14639. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14640. 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'
  14641. ;;
  14642. esac
  14643. ;;
  14644. beos*)
  14645. library_names_spec='$libname$shared_ext'
  14646. dynamic_linker="$host_os ld.so"
  14647. shlibpath_var=LIBRARY_PATH
  14648. ;;
  14649. bsdi[45]*)
  14650. version_type=linux # correct to gnu/linux during the next big refactor
  14651. need_version=no
  14652. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14653. soname_spec='$libname$release$shared_ext$major'
  14654. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14655. shlibpath_var=LD_LIBRARY_PATH
  14656. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14657. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14658. # the default ld.so.conf also contains /usr/contrib/lib and
  14659. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14660. # libtool to hard-code these into programs
  14661. ;;
  14662. cygwin* | mingw* | pw32* | cegcc*)
  14663. version_type=windows
  14664. shrext_cmds=.dll
  14665. need_version=no
  14666. need_lib_prefix=no
  14667. case $GCC,$cc_basename in
  14668. yes,*)
  14669. # gcc
  14670. library_names_spec='$libname.dll.a'
  14671. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14672. postinstall_cmds='base_file=`basename \$file`~
  14673. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14674. dldir=$destdir/`dirname \$dlpath`~
  14675. test -d \$dldir || mkdir -p \$dldir~
  14676. $install_prog $dir/$dlname \$dldir/$dlname~
  14677. chmod a+x \$dldir/$dlname~
  14678. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14679. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14680. fi'
  14681. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14682. dlpath=$dir/\$dldll~
  14683. $RM \$dlpath'
  14684. shlibpath_overrides_runpath=yes
  14685. case $host_os in
  14686. cygwin*)
  14687. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14688. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14689. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14690. ;;
  14691. mingw* | cegcc*)
  14692. # MinGW DLLs use traditional 'lib' prefix
  14693. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14694. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14695. ;;
  14696. pw32*)
  14697. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14698. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14699. ;;
  14700. esac
  14701. dynamic_linker='Win32 ld.exe'
  14702. ;;
  14703. *,cl*)
  14704. # Native MSVC
  14705. libname_spec='$name'
  14706. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14707. library_names_spec='$libname.dll.lib'
  14708. case $build_os in
  14709. mingw*)
  14710. sys_lib_search_path_spec=
  14711. lt_save_ifs=$IFS
  14712. IFS=';'
  14713. for lt_path in $LIB
  14714. do
  14715. IFS=$lt_save_ifs
  14716. # Let DOS variable expansion print the short 8.3 style file name.
  14717. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14718. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14719. done
  14720. IFS=$lt_save_ifs
  14721. # Convert to MSYS style.
  14722. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14723. ;;
  14724. cygwin*)
  14725. # Convert to unix form, then to dos form, then back to unix form
  14726. # but this time dos style (no spaces!) so that the unix form looks
  14727. # like /cygdrive/c/PROGRA~1:/cygdr...
  14728. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14729. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14730. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14731. ;;
  14732. *)
  14733. sys_lib_search_path_spec=$LIB
  14734. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14735. # It is most probably a Windows format PATH.
  14736. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14737. else
  14738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14739. fi
  14740. # FIXME: find the short name or the path components, as spaces are
  14741. # common. (e.g. "Program Files" -> "PROGRA~1")
  14742. ;;
  14743. esac
  14744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14745. postinstall_cmds='base_file=`basename \$file`~
  14746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14747. dldir=$destdir/`dirname \$dlpath`~
  14748. test -d \$dldir || mkdir -p \$dldir~
  14749. $install_prog $dir/$dlname \$dldir/$dlname'
  14750. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14751. dlpath=$dir/\$dldll~
  14752. $RM \$dlpath'
  14753. shlibpath_overrides_runpath=yes
  14754. dynamic_linker='Win32 link.exe'
  14755. ;;
  14756. *)
  14757. # Assume MSVC wrapper
  14758. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14759. dynamic_linker='Win32 ld.exe'
  14760. ;;
  14761. esac
  14762. # FIXME: first we should search . and the directory the executable is in
  14763. shlibpath_var=PATH
  14764. ;;
  14765. darwin* | rhapsody*)
  14766. dynamic_linker="$host_os dyld"
  14767. version_type=darwin
  14768. need_lib_prefix=no
  14769. need_version=no
  14770. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14771. soname_spec='$libname$release$major$shared_ext'
  14772. shlibpath_overrides_runpath=yes
  14773. shlibpath_var=DYLD_LIBRARY_PATH
  14774. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14775. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14776. ;;
  14777. dgux*)
  14778. version_type=linux # correct to gnu/linux during the next big refactor
  14779. need_lib_prefix=no
  14780. need_version=no
  14781. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14782. soname_spec='$libname$release$shared_ext$major'
  14783. shlibpath_var=LD_LIBRARY_PATH
  14784. ;;
  14785. freebsd* | dragonfly* | midnightbsd*)
  14786. # DragonFly does not have aout. When/if they implement a new
  14787. # versioning mechanism, adjust this.
  14788. if test -x /usr/bin/objformat; then
  14789. objformat=`/usr/bin/objformat`
  14790. else
  14791. case $host_os in
  14792. freebsd[23].*) objformat=aout ;;
  14793. *) objformat=elf ;;
  14794. esac
  14795. fi
  14796. version_type=freebsd-$objformat
  14797. case $version_type in
  14798. freebsd-elf*)
  14799. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14800. soname_spec='$libname$release$shared_ext$major'
  14801. need_version=no
  14802. need_lib_prefix=no
  14803. ;;
  14804. freebsd-*)
  14805. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14806. need_version=yes
  14807. ;;
  14808. esac
  14809. shlibpath_var=LD_LIBRARY_PATH
  14810. case $host_os in
  14811. freebsd2.*)
  14812. shlibpath_overrides_runpath=yes
  14813. ;;
  14814. freebsd3.[01]* | freebsdelf3.[01]*)
  14815. shlibpath_overrides_runpath=yes
  14816. hardcode_into_libs=yes
  14817. ;;
  14818. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14819. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14820. shlibpath_overrides_runpath=no
  14821. hardcode_into_libs=yes
  14822. ;;
  14823. *) # from 4.6 on, and DragonFly
  14824. shlibpath_overrides_runpath=yes
  14825. hardcode_into_libs=yes
  14826. ;;
  14827. esac
  14828. ;;
  14829. haiku*)
  14830. version_type=linux # correct to gnu/linux during the next big refactor
  14831. need_lib_prefix=no
  14832. need_version=no
  14833. dynamic_linker="$host_os runtime_loader"
  14834. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14835. soname_spec='$libname$release$shared_ext$major'
  14836. shlibpath_var=LIBRARY_PATH
  14837. shlibpath_overrides_runpath=no
  14838. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14839. hardcode_into_libs=yes
  14840. ;;
  14841. hpux9* | hpux10* | hpux11*)
  14842. # Give a soname corresponding to the major version so that dld.sl refuses to
  14843. # link against other versions.
  14844. version_type=sunos
  14845. need_lib_prefix=no
  14846. need_version=no
  14847. case $host_cpu in
  14848. ia64*)
  14849. shrext_cmds='.so'
  14850. hardcode_into_libs=yes
  14851. dynamic_linker="$host_os dld.so"
  14852. shlibpath_var=LD_LIBRARY_PATH
  14853. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14854. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14855. soname_spec='$libname$release$shared_ext$major'
  14856. if test 32 = "$HPUX_IA64_MODE"; then
  14857. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14858. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14859. else
  14860. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14861. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14862. fi
  14863. ;;
  14864. hppa*64*)
  14865. shrext_cmds='.sl'
  14866. hardcode_into_libs=yes
  14867. dynamic_linker="$host_os dld.sl"
  14868. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14869. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14870. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14871. soname_spec='$libname$release$shared_ext$major'
  14872. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14873. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14874. ;;
  14875. *)
  14876. shrext_cmds='.sl'
  14877. dynamic_linker="$host_os dld.sl"
  14878. shlibpath_var=SHLIB_PATH
  14879. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14880. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14881. soname_spec='$libname$release$shared_ext$major'
  14882. ;;
  14883. esac
  14884. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14885. postinstall_cmds='chmod 555 $lib'
  14886. # or fails outright, so override atomically:
  14887. install_override_mode=555
  14888. ;;
  14889. interix[3-9]*)
  14890. version_type=linux # correct to gnu/linux during the next big refactor
  14891. need_lib_prefix=no
  14892. need_version=no
  14893. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14894. soname_spec='$libname$release$shared_ext$major'
  14895. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14896. shlibpath_var=LD_LIBRARY_PATH
  14897. shlibpath_overrides_runpath=no
  14898. hardcode_into_libs=yes
  14899. ;;
  14900. irix5* | irix6* | nonstopux*)
  14901. case $host_os in
  14902. nonstopux*) version_type=nonstopux ;;
  14903. *)
  14904. if test yes = "$lt_cv_prog_gnu_ld"; then
  14905. version_type=linux # correct to gnu/linux during the next big refactor
  14906. else
  14907. version_type=irix
  14908. fi ;;
  14909. esac
  14910. need_lib_prefix=no
  14911. need_version=no
  14912. soname_spec='$libname$release$shared_ext$major'
  14913. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14914. case $host_os in
  14915. irix5* | nonstopux*)
  14916. libsuff= shlibsuff=
  14917. ;;
  14918. *)
  14919. case $LD in # libtool.m4 will add one of these switches to LD
  14920. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14921. libsuff= shlibsuff= libmagic=32-bit;;
  14922. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14923. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14924. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14925. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14926. *) libsuff= shlibsuff= libmagic=never-match;;
  14927. esac
  14928. ;;
  14929. esac
  14930. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14931. shlibpath_overrides_runpath=no
  14932. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14933. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14934. hardcode_into_libs=yes
  14935. ;;
  14936. # No shared lib support for Linux oldld, aout, or coff.
  14937. linux*oldld* | linux*aout* | linux*coff*)
  14938. dynamic_linker=no
  14939. ;;
  14940. linux*android*)
  14941. version_type=none # Android doesn't support versioned libraries.
  14942. need_lib_prefix=no
  14943. need_version=no
  14944. library_names_spec='$libname$release$shared_ext'
  14945. soname_spec='$libname$release$shared_ext'
  14946. finish_cmds=
  14947. shlibpath_var=LD_LIBRARY_PATH
  14948. shlibpath_overrides_runpath=yes
  14949. # This implies no fast_install, which is unacceptable.
  14950. # Some rework will be needed to allow for fast_install
  14951. # before this can be enabled.
  14952. hardcode_into_libs=yes
  14953. dynamic_linker='Android linker'
  14954. # Don't embed -rpath directories since the linker doesn't support them.
  14955. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14956. ;;
  14957. # This must be glibc/ELF.
  14958. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14959. version_type=linux # correct to gnu/linux during the next big refactor
  14960. need_lib_prefix=no
  14961. need_version=no
  14962. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14963. soname_spec='$libname$release$shared_ext$major'
  14964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14965. shlibpath_var=LD_LIBRARY_PATH
  14966. shlibpath_overrides_runpath=no
  14967. # Some binutils ld are patched to set DT_RUNPATH
  14968. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14969. then :
  14970. printf %s "(cached) " >&6
  14971. else $as_nop
  14972. lt_cv_shlibpath_overrides_runpath=no
  14973. save_LDFLAGS=$LDFLAGS
  14974. save_libdir=$libdir
  14975. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14976. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14978. /* end confdefs.h. */
  14979. int
  14980. main (void)
  14981. {
  14982. ;
  14983. return 0;
  14984. }
  14985. _ACEOF
  14986. if ac_fn_cxx_try_link "$LINENO"
  14987. then :
  14988. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14989. then :
  14990. lt_cv_shlibpath_overrides_runpath=yes
  14991. fi
  14992. fi
  14993. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14994. conftest$ac_exeext conftest.$ac_ext
  14995. LDFLAGS=$save_LDFLAGS
  14996. libdir=$save_libdir
  14997. fi
  14998. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14999. # This implies no fast_install, which is unacceptable.
  15000. # Some rework will be needed to allow for fast_install
  15001. # before this can be enabled.
  15002. hardcode_into_libs=yes
  15003. # Add ABI-specific directories to the system library path.
  15004. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15005. # Ideally, we could use ldconfig to report *all* directores which are
  15006. # searched for libraries, however this is still not possible. Aside from not
  15007. # being certain /sbin/ldconfig is available, command
  15008. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15009. # even though it is searched at run-time. Try to do the best guess by
  15010. # appending ld.so.conf contents (and includes) to the search path.
  15011. if test -f /etc/ld.so.conf; then
  15012. 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' ' '`
  15013. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15014. fi
  15015. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15016. # powerpc, because MkLinux only supported shared libraries with the
  15017. # GNU dynamic linker. Since this was broken with cross compilers,
  15018. # most powerpc-linux boxes support dynamic linking these days and
  15019. # people can always --disable-shared, the test was removed, and we
  15020. # assume the GNU/Linux dynamic linker is in use.
  15021. dynamic_linker='GNU/Linux ld.so'
  15022. ;;
  15023. netbsd*)
  15024. version_type=sunos
  15025. need_lib_prefix=no
  15026. need_version=no
  15027. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15028. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15029. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15030. dynamic_linker='NetBSD (a.out) ld.so'
  15031. else
  15032. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15033. soname_spec='$libname$release$shared_ext$major'
  15034. dynamic_linker='NetBSD ld.elf_so'
  15035. fi
  15036. shlibpath_var=LD_LIBRARY_PATH
  15037. shlibpath_overrides_runpath=yes
  15038. hardcode_into_libs=yes
  15039. ;;
  15040. newsos6)
  15041. version_type=linux # correct to gnu/linux during the next big refactor
  15042. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15043. shlibpath_var=LD_LIBRARY_PATH
  15044. shlibpath_overrides_runpath=yes
  15045. ;;
  15046. *nto* | *qnx*)
  15047. version_type=qnx
  15048. need_lib_prefix=no
  15049. need_version=no
  15050. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15051. soname_spec='$libname$release$shared_ext$major'
  15052. shlibpath_var=LD_LIBRARY_PATH
  15053. shlibpath_overrides_runpath=no
  15054. hardcode_into_libs=yes
  15055. dynamic_linker='ldqnx.so'
  15056. ;;
  15057. openbsd* | bitrig*)
  15058. version_type=sunos
  15059. sys_lib_dlsearch_path_spec=/usr/lib
  15060. need_lib_prefix=no
  15061. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15062. need_version=no
  15063. else
  15064. need_version=yes
  15065. fi
  15066. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15067. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15068. shlibpath_var=LD_LIBRARY_PATH
  15069. shlibpath_overrides_runpath=yes
  15070. ;;
  15071. os2*)
  15072. libname_spec='$name'
  15073. shrext_cmds=.dll
  15074. need_lib_prefix=no
  15075. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15076. # SDL customization: removed versioning support.
  15077. # version_type=windows
  15078. # need_version=no
  15079. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15080. # v=$($ECHO $release$versuffix | tr -d .-);
  15081. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15082. # $ECHO $n$v`$shared_ext'
  15083. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15084. library_names_spec='${libname}_dll.$libext'
  15085. dynamic_linker='OS/2 ld.exe'
  15086. shlibpath_var=BEGINLIBPATH
  15087. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15089. postinstall_cmds='base_file=`basename \$file`~
  15090. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15091. dldir=$destdir/`dirname \$dlpath`~
  15092. test -d \$dldir || mkdir -p \$dldir~
  15093. $install_prog $dir/$dlname \$dldir/$dlname~
  15094. chmod a+x \$dldir/$dlname~
  15095. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15096. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15097. fi'
  15098. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15099. dlpath=$dir/\$dldll~
  15100. $RM \$dlpath'
  15101. ;;
  15102. osf3* | osf4* | osf5*)
  15103. version_type=osf
  15104. need_lib_prefix=no
  15105. need_version=no
  15106. soname_spec='$libname$release$shared_ext$major'
  15107. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15108. shlibpath_var=LD_LIBRARY_PATH
  15109. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15110. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15111. ;;
  15112. rdos*)
  15113. dynamic_linker=no
  15114. ;;
  15115. solaris*)
  15116. version_type=linux # correct to gnu/linux during the next big refactor
  15117. need_lib_prefix=no
  15118. need_version=no
  15119. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15120. soname_spec='$libname$release$shared_ext$major'
  15121. shlibpath_var=LD_LIBRARY_PATH
  15122. shlibpath_overrides_runpath=yes
  15123. hardcode_into_libs=yes
  15124. # ldd complains unless libraries are executable
  15125. postinstall_cmds='chmod +x $lib'
  15126. ;;
  15127. sunos4*)
  15128. version_type=sunos
  15129. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15130. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15131. shlibpath_var=LD_LIBRARY_PATH
  15132. shlibpath_overrides_runpath=yes
  15133. if test yes = "$with_gnu_ld"; then
  15134. need_lib_prefix=no
  15135. fi
  15136. need_version=yes
  15137. ;;
  15138. sysv4 | sysv4.3*)
  15139. version_type=linux # correct to gnu/linux during the next big refactor
  15140. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15141. soname_spec='$libname$release$shared_ext$major'
  15142. shlibpath_var=LD_LIBRARY_PATH
  15143. case $host_vendor in
  15144. sni)
  15145. shlibpath_overrides_runpath=no
  15146. need_lib_prefix=no
  15147. runpath_var=LD_RUN_PATH
  15148. ;;
  15149. siemens)
  15150. need_lib_prefix=no
  15151. ;;
  15152. motorola)
  15153. need_lib_prefix=no
  15154. need_version=no
  15155. shlibpath_overrides_runpath=no
  15156. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15157. ;;
  15158. esac
  15159. ;;
  15160. sysv4*MP*)
  15161. if test -d /usr/nec; then
  15162. version_type=linux # correct to gnu/linux during the next big refactor
  15163. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15164. soname_spec='$libname$shared_ext.$major'
  15165. shlibpath_var=LD_LIBRARY_PATH
  15166. fi
  15167. ;;
  15168. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15169. version_type=sco
  15170. need_lib_prefix=no
  15171. need_version=no
  15172. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15173. soname_spec='$libname$release$shared_ext$major'
  15174. shlibpath_var=LD_LIBRARY_PATH
  15175. shlibpath_overrides_runpath=yes
  15176. hardcode_into_libs=yes
  15177. if test yes = "$with_gnu_ld"; then
  15178. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15179. else
  15180. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15181. case $host_os in
  15182. sco3.2v5*)
  15183. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15184. ;;
  15185. esac
  15186. fi
  15187. sys_lib_dlsearch_path_spec='/usr/lib'
  15188. ;;
  15189. tpf*)
  15190. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15191. version_type=linux # correct to gnu/linux during the next big refactor
  15192. need_lib_prefix=no
  15193. need_version=no
  15194. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15195. shlibpath_var=LD_LIBRARY_PATH
  15196. shlibpath_overrides_runpath=no
  15197. hardcode_into_libs=yes
  15198. ;;
  15199. uts4*)
  15200. version_type=linux # correct to gnu/linux during the next big refactor
  15201. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15202. soname_spec='$libname$release$shared_ext$major'
  15203. shlibpath_var=LD_LIBRARY_PATH
  15204. ;;
  15205. *)
  15206. dynamic_linker=no
  15207. ;;
  15208. esac
  15209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15210. printf "%s\n" "$dynamic_linker" >&6; }
  15211. test no = "$dynamic_linker" && can_build_shared=no
  15212. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15213. if test yes = "$GCC"; then
  15214. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15215. fi
  15216. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15217. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15218. fi
  15219. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15220. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15221. fi
  15222. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15223. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15224. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15225. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15226. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15227. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15229. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15230. hardcode_action_CXX=
  15231. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15232. test -n "$runpath_var_CXX" ||
  15233. test yes = "$hardcode_automatic_CXX"; then
  15234. # We can hardcode non-existent directories.
  15235. if test no != "$hardcode_direct_CXX" &&
  15236. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15237. # have to relink, otherwise we might link with an installed library
  15238. # when we should be linking with a yet-to-be-installed one
  15239. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15240. test no != "$hardcode_minus_L_CXX"; then
  15241. # Linking always hardcodes the temporary library directory.
  15242. hardcode_action_CXX=relink
  15243. else
  15244. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15245. hardcode_action_CXX=immediate
  15246. fi
  15247. else
  15248. # We cannot hardcode anything, or else we can only hardcode existing
  15249. # directories.
  15250. hardcode_action_CXX=unsupported
  15251. fi
  15252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15253. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15254. if test relink = "$hardcode_action_CXX" ||
  15255. test yes = "$inherit_rpath_CXX"; then
  15256. # Fast installation is not supported
  15257. enable_fast_install=no
  15258. elif test yes = "$shlibpath_overrides_runpath" ||
  15259. test no = "$enable_shared"; then
  15260. # Fast installation is not necessary
  15261. enable_fast_install=needless
  15262. fi
  15263. fi # test -n "$compiler"
  15264. CC=$lt_save_CC
  15265. CFLAGS=$lt_save_CFLAGS
  15266. LDCXX=$LD
  15267. LD=$lt_save_LD
  15268. GCC=$lt_save_GCC
  15269. with_gnu_ld=$lt_save_with_gnu_ld
  15270. lt_cv_path_LDCXX=$lt_cv_path_LD
  15271. lt_cv_path_LD=$lt_save_path_LD
  15272. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15273. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15274. fi # test yes != "$_lt_caught_CXX_error"
  15275. ac_ext=c
  15276. ac_cpp='$CPP $CPPFLAGS'
  15277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15281. printf %s "checking for egrep... " >&6; }
  15282. if test ${ac_cv_path_EGREP+y}
  15283. then :
  15284. printf %s "(cached) " >&6
  15285. else $as_nop
  15286. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15287. then ac_cv_path_EGREP="$GREP -E"
  15288. else
  15289. if test -z "$EGREP"; then
  15290. ac_path_EGREP_found=false
  15291. # Loop through the user's path and test for each of PROGNAME-LIST
  15292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15293. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15294. do
  15295. IFS=$as_save_IFS
  15296. case $as_dir in #(((
  15297. '') as_dir=./ ;;
  15298. */) ;;
  15299. *) as_dir=$as_dir/ ;;
  15300. esac
  15301. for ac_prog in egrep
  15302. do
  15303. for ac_exec_ext in '' $ac_executable_extensions; do
  15304. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15305. as_fn_executable_p "$ac_path_EGREP" || continue
  15306. # Check for GNU ac_path_EGREP and select it if it is found.
  15307. # Check for GNU $ac_path_EGREP
  15308. case `"$ac_path_EGREP" --version 2>&1` in
  15309. *GNU*)
  15310. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15311. *)
  15312. ac_count=0
  15313. printf %s 0123456789 >"conftest.in"
  15314. while :
  15315. do
  15316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15317. mv "conftest.tmp" "conftest.in"
  15318. cp "conftest.in" "conftest.nl"
  15319. printf "%s\n" 'EGREP' >> "conftest.nl"
  15320. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15322. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15323. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15324. # Best one so far, save it but keep looking for a better one
  15325. ac_cv_path_EGREP="$ac_path_EGREP"
  15326. ac_path_EGREP_max=$ac_count
  15327. fi
  15328. # 10*(2^10) chars as input seems more than enough
  15329. test $ac_count -gt 10 && break
  15330. done
  15331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15332. esac
  15333. $ac_path_EGREP_found && break 3
  15334. done
  15335. done
  15336. done
  15337. IFS=$as_save_IFS
  15338. if test -z "$ac_cv_path_EGREP"; then
  15339. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15340. fi
  15341. else
  15342. ac_cv_path_EGREP=$EGREP
  15343. fi
  15344. fi
  15345. fi
  15346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15347. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15348. EGREP="$ac_cv_path_EGREP"
  15349. # Find a good install program. We prefer a C program (faster),
  15350. # so one script is as good as another. But avoid the broken or
  15351. # incompatible versions:
  15352. # SysV /etc/install, /usr/sbin/install
  15353. # SunOS /usr/etc/install
  15354. # IRIX /sbin/install
  15355. # AIX /bin/install
  15356. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15357. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15358. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15359. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15360. # OS/2's system install, which has a completely different semantic
  15361. # ./install, which can be erroneously created by make from ./install.sh.
  15362. # Reject install programs that cannot install multiple files.
  15363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15364. printf %s "checking for a BSD-compatible install... " >&6; }
  15365. if test -z "$INSTALL"; then
  15366. if test ${ac_cv_path_install+y}
  15367. then :
  15368. printf %s "(cached) " >&6
  15369. else $as_nop
  15370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15371. for as_dir in $PATH
  15372. do
  15373. IFS=$as_save_IFS
  15374. case $as_dir in #(((
  15375. '') as_dir=./ ;;
  15376. */) ;;
  15377. *) as_dir=$as_dir/ ;;
  15378. esac
  15379. # Account for fact that we put trailing slashes in our PATH walk.
  15380. case $as_dir in #((
  15381. ./ | /[cC]/* | \
  15382. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15383. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15384. /usr/ucb/* ) ;;
  15385. *)
  15386. # OSF1 and SCO ODT 3.0 have their own names for install.
  15387. # Don't use installbsd from OSF since it installs stuff as root
  15388. # by default.
  15389. for ac_prog in ginstall scoinst install; do
  15390. for ac_exec_ext in '' $ac_executable_extensions; do
  15391. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15392. if test $ac_prog = install &&
  15393. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15394. # AIX install. It has an incompatible calling convention.
  15395. :
  15396. elif test $ac_prog = install &&
  15397. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15398. # program-specific install script used by HP pwplus--don't use.
  15399. :
  15400. else
  15401. rm -rf conftest.one conftest.two conftest.dir
  15402. echo one > conftest.one
  15403. echo two > conftest.two
  15404. mkdir conftest.dir
  15405. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15406. test -s conftest.one && test -s conftest.two &&
  15407. test -s conftest.dir/conftest.one &&
  15408. test -s conftest.dir/conftest.two
  15409. then
  15410. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15411. break 3
  15412. fi
  15413. fi
  15414. fi
  15415. done
  15416. done
  15417. ;;
  15418. esac
  15419. done
  15420. IFS=$as_save_IFS
  15421. rm -rf conftest.one conftest.two conftest.dir
  15422. fi
  15423. if test ${ac_cv_path_install+y}; then
  15424. INSTALL=$ac_cv_path_install
  15425. else
  15426. # As a last resort, use the slow shell script. Don't cache a
  15427. # value for INSTALL within a source directory, because that will
  15428. # break other packages using the cache if that directory is
  15429. # removed, or if the value is a relative name.
  15430. INSTALL=$ac_install_sh
  15431. fi
  15432. fi
  15433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15434. printf "%s\n" "$INSTALL" >&6; }
  15435. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15436. # It thinks the first close brace ends the variable substitution.
  15437. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15438. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15439. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15441. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15442. set x ${MAKE-make}
  15443. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15444. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15445. then :
  15446. printf %s "(cached) " >&6
  15447. else $as_nop
  15448. cat >conftest.make <<\_ACEOF
  15449. SHELL = /bin/sh
  15450. all:
  15451. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15452. _ACEOF
  15453. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15454. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15455. *@@@%%%=?*=@@@%%%*)
  15456. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15457. *)
  15458. eval ac_cv_prog_make_${ac_make}_set=no;;
  15459. esac
  15460. rm -f conftest.make
  15461. fi
  15462. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15464. printf "%s\n" "yes" >&6; }
  15465. SET_MAKE=
  15466. else
  15467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15468. printf "%s\n" "no" >&6; }
  15469. SET_MAKE="MAKE=${MAKE-make}"
  15470. fi
  15471. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15472. if test -n "$ac_tool_prefix"; then
  15473. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15474. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15476. printf %s "checking for $ac_word... " >&6; }
  15477. if test ${ac_cv_path_PKG_CONFIG+y}
  15478. then :
  15479. printf %s "(cached) " >&6
  15480. else $as_nop
  15481. case $PKG_CONFIG in
  15482. [\\/]* | ?:[\\/]*)
  15483. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15484. ;;
  15485. *)
  15486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15487. for as_dir in $PATH
  15488. do
  15489. IFS=$as_save_IFS
  15490. case $as_dir in #(((
  15491. '') as_dir=./ ;;
  15492. */) ;;
  15493. *) as_dir=$as_dir/ ;;
  15494. esac
  15495. for ac_exec_ext in '' $ac_executable_extensions; do
  15496. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15497. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15498. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15499. break 2
  15500. fi
  15501. done
  15502. done
  15503. IFS=$as_save_IFS
  15504. ;;
  15505. esac
  15506. fi
  15507. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15508. if test -n "$PKG_CONFIG"; then
  15509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15510. printf "%s\n" "$PKG_CONFIG" >&6; }
  15511. else
  15512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15513. printf "%s\n" "no" >&6; }
  15514. fi
  15515. fi
  15516. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15517. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15518. # Extract the first word of "pkg-config", so it can be a program name with args.
  15519. set dummy pkg-config; ac_word=$2
  15520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15521. printf %s "checking for $ac_word... " >&6; }
  15522. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15523. then :
  15524. printf %s "(cached) " >&6
  15525. else $as_nop
  15526. case $ac_pt_PKG_CONFIG in
  15527. [\\/]* | ?:[\\/]*)
  15528. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15529. ;;
  15530. *)
  15531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15532. for as_dir in $PATH
  15533. do
  15534. IFS=$as_save_IFS
  15535. case $as_dir in #(((
  15536. '') as_dir=./ ;;
  15537. */) ;;
  15538. *) as_dir=$as_dir/ ;;
  15539. esac
  15540. for ac_exec_ext in '' $ac_executable_extensions; do
  15541. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15542. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15543. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15544. break 2
  15545. fi
  15546. done
  15547. done
  15548. IFS=$as_save_IFS
  15549. ;;
  15550. esac
  15551. fi
  15552. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15553. if test -n "$ac_pt_PKG_CONFIG"; then
  15554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15555. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15556. else
  15557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15558. printf "%s\n" "no" >&6; }
  15559. fi
  15560. if test "x$ac_pt_PKG_CONFIG" = x; then
  15561. PKG_CONFIG=""
  15562. else
  15563. case $cross_compiling:$ac_tool_warned in
  15564. yes:)
  15565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15566. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15567. ac_tool_warned=yes ;;
  15568. esac
  15569. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15570. fi
  15571. else
  15572. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15573. fi
  15574. fi
  15575. if test -n "$PKG_CONFIG"; then
  15576. _pkg_min_version=0.9.0
  15577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15578. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15579. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15580. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15581. printf "%s\n" "yes" >&6; }
  15582. else
  15583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15584. printf "%s\n" "no" >&6; }
  15585. PKG_CONFIG=""
  15586. fi
  15587. fi
  15588. if test -z "$AWK" ; then
  15589. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15590. fi
  15591. for ac_prog in gsort sort
  15592. do
  15593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15594. set dummy $ac_prog; ac_word=$2
  15595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15596. printf %s "checking for $ac_word... " >&6; }
  15597. if test ${ac_cv_prog_SORT+y}
  15598. then :
  15599. printf %s "(cached) " >&6
  15600. else $as_nop
  15601. if test -n "$SORT"; then
  15602. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15603. else
  15604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15605. for as_dir in $PATH
  15606. do
  15607. IFS=$as_save_IFS
  15608. case $as_dir in #(((
  15609. '') as_dir=./ ;;
  15610. */) ;;
  15611. *) as_dir=$as_dir/ ;;
  15612. esac
  15613. for ac_exec_ext in '' $ac_executable_extensions; do
  15614. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15615. ac_cv_prog_SORT="$ac_prog"
  15616. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15617. break 2
  15618. fi
  15619. done
  15620. done
  15621. IFS=$as_save_IFS
  15622. fi
  15623. fi
  15624. SORT=$ac_cv_prog_SORT
  15625. if test -n "$SORT"; then
  15626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15627. printf "%s\n" "$SORT" >&6; }
  15628. else
  15629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15630. printf "%s\n" "no" >&6; }
  15631. fi
  15632. test -n "$SORT" && break
  15633. done
  15634. test -n "$SORT" || SORT="false"
  15635. if ! "$SORT" -V </dev/null >/dev/null
  15636. then :
  15637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15638. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15639. fi
  15640. # Check whether --enable-largefile was given.
  15641. if test ${enable_largefile+y}
  15642. then :
  15643. enableval=$enable_largefile;
  15644. fi
  15645. if test "$enable_largefile" != no; then
  15646. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15647. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15648. if test ${ac_cv_sys_largefile_CC+y}
  15649. then :
  15650. printf %s "(cached) " >&6
  15651. else $as_nop
  15652. ac_cv_sys_largefile_CC=no
  15653. if test "$GCC" != yes; then
  15654. ac_save_CC=$CC
  15655. while :; do
  15656. # IRIX 6.2 and later do not support large files by default,
  15657. # so use the C compiler's -n32 option if that helps.
  15658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15659. /* end confdefs.h. */
  15660. #include <sys/types.h>
  15661. /* Check that off_t can represent 2**63 - 1 correctly.
  15662. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15663. since some C++ compilers masquerading as C compilers
  15664. incorrectly reject 9223372036854775807. */
  15665. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15666. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15667. && LARGE_OFF_T % 2147483647 == 1)
  15668. ? 1 : -1];
  15669. int
  15670. main (void)
  15671. {
  15672. ;
  15673. return 0;
  15674. }
  15675. _ACEOF
  15676. if ac_fn_c_try_compile "$LINENO"
  15677. then :
  15678. break
  15679. fi
  15680. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15681. CC="$CC -n32"
  15682. if ac_fn_c_try_compile "$LINENO"
  15683. then :
  15684. ac_cv_sys_largefile_CC=' -n32'; break
  15685. fi
  15686. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15687. break
  15688. done
  15689. CC=$ac_save_CC
  15690. rm -f conftest.$ac_ext
  15691. fi
  15692. fi
  15693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15694. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15695. if test "$ac_cv_sys_largefile_CC" != no; then
  15696. CC=$CC$ac_cv_sys_largefile_CC
  15697. fi
  15698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15699. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15700. if test ${ac_cv_sys_file_offset_bits+y}
  15701. then :
  15702. printf %s "(cached) " >&6
  15703. else $as_nop
  15704. while :; do
  15705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15706. /* end confdefs.h. */
  15707. #include <sys/types.h>
  15708. /* Check that off_t can represent 2**63 - 1 correctly.
  15709. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15710. since some C++ compilers masquerading as C compilers
  15711. incorrectly reject 9223372036854775807. */
  15712. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15713. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15714. && LARGE_OFF_T % 2147483647 == 1)
  15715. ? 1 : -1];
  15716. int
  15717. main (void)
  15718. {
  15719. ;
  15720. return 0;
  15721. }
  15722. _ACEOF
  15723. if ac_fn_c_try_compile "$LINENO"
  15724. then :
  15725. ac_cv_sys_file_offset_bits=no; break
  15726. fi
  15727. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15729. /* end confdefs.h. */
  15730. #define _FILE_OFFSET_BITS 64
  15731. #include <sys/types.h>
  15732. /* Check that off_t can represent 2**63 - 1 correctly.
  15733. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15734. since some C++ compilers masquerading as C compilers
  15735. incorrectly reject 9223372036854775807. */
  15736. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15737. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15738. && LARGE_OFF_T % 2147483647 == 1)
  15739. ? 1 : -1];
  15740. int
  15741. main (void)
  15742. {
  15743. ;
  15744. return 0;
  15745. }
  15746. _ACEOF
  15747. if ac_fn_c_try_compile "$LINENO"
  15748. then :
  15749. ac_cv_sys_file_offset_bits=64; break
  15750. fi
  15751. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15752. ac_cv_sys_file_offset_bits=unknown
  15753. break
  15754. done
  15755. fi
  15756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15757. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15758. case $ac_cv_sys_file_offset_bits in #(
  15759. no | unknown) ;;
  15760. *)
  15761. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15762. ;;
  15763. esac
  15764. rm -rf conftest*
  15765. if test $ac_cv_sys_file_offset_bits = unknown; then
  15766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15767. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15768. if test ${ac_cv_sys_large_files+y}
  15769. then :
  15770. printf %s "(cached) " >&6
  15771. else $as_nop
  15772. while :; do
  15773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15774. /* end confdefs.h. */
  15775. #include <sys/types.h>
  15776. /* Check that off_t can represent 2**63 - 1 correctly.
  15777. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15778. since some C++ compilers masquerading as C compilers
  15779. incorrectly reject 9223372036854775807. */
  15780. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15781. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15782. && LARGE_OFF_T % 2147483647 == 1)
  15783. ? 1 : -1];
  15784. int
  15785. main (void)
  15786. {
  15787. ;
  15788. return 0;
  15789. }
  15790. _ACEOF
  15791. if ac_fn_c_try_compile "$LINENO"
  15792. then :
  15793. ac_cv_sys_large_files=no; break
  15794. fi
  15795. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15797. /* end confdefs.h. */
  15798. #define _LARGE_FILES 1
  15799. #include <sys/types.h>
  15800. /* Check that off_t can represent 2**63 - 1 correctly.
  15801. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15802. since some C++ compilers masquerading as C compilers
  15803. incorrectly reject 9223372036854775807. */
  15804. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15805. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15806. && LARGE_OFF_T % 2147483647 == 1)
  15807. ? 1 : -1];
  15808. int
  15809. main (void)
  15810. {
  15811. ;
  15812. return 0;
  15813. }
  15814. _ACEOF
  15815. if ac_fn_c_try_compile "$LINENO"
  15816. then :
  15817. ac_cv_sys_large_files=1; break
  15818. fi
  15819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15820. ac_cv_sys_large_files=unknown
  15821. break
  15822. done
  15823. fi
  15824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15825. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15826. case $ac_cv_sys_large_files in #(
  15827. no | unknown) ;;
  15828. *)
  15829. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15830. ;;
  15831. esac
  15832. rm -rf conftest*
  15833. fi
  15834. fi
  15835. case "$host" in
  15836. *-*-mingw*)
  15837. # Except on msys, where make can't handle full pathnames (bug 1972)
  15838. ;;
  15839. *)
  15840. srcdir=`cd $srcdir && pwd`
  15841. ;;
  15842. esac
  15843. INCLUDE="-I$srcdir/include"
  15844. case "$host" in
  15845. *-*-nto-qnx*)
  15846. ;;
  15847. *)
  15848. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15849. ;;
  15850. esac
  15851. case "$host" in
  15852. *-*-haiku*)
  15853. LINKER='$(CXX)'
  15854. LIBTOOLLINKERTAG='CXX'
  15855. ;;
  15856. *)
  15857. LINKER='$(CC)'
  15858. LIBTOOLLINKERTAG='CC'
  15859. ;;
  15860. esac
  15861. if test x$srcdir != x.; then
  15862. INCLUDE="-Iinclude $INCLUDE"
  15863. elif test -d .git; then
  15864. as_fn_error $? "
  15865. *** When building from a git clone you should configure and build in a
  15866. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15867. " "$LINENO" 5
  15868. fi
  15869. BASE_CFLAGS=""
  15870. BASE_LDFLAGS=""
  15871. case "$host" in
  15872. *-*-cygwin*)
  15873. # We build SDL on cygwin without the UNIX emulation layer
  15874. save_CFLAGS="$CFLAGS"
  15875. have_no_cygwin=no
  15876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15877. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15878. CFLAGS="$save_CFLAGS -mno-cygwin"
  15879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15880. /* end confdefs.h. */
  15881. int
  15882. main (void)
  15883. {
  15884. ;
  15885. return 0;
  15886. }
  15887. _ACEOF
  15888. if ac_fn_c_try_compile "$LINENO"
  15889. then :
  15890. have_no_cygwin=yes
  15891. fi
  15892. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15894. printf "%s\n" "$have_no_cygwin" >&6; }
  15895. CFLAGS="$save_CFLAGS"
  15896. if test x$have_no_cygwin = xyes; then
  15897. BASE_CFLAGS="-mno-cygwin"
  15898. BASE_LDFLAGS="-mno-cygwin"
  15899. fi
  15900. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15901. ;;
  15902. esac
  15903. # Uncomment the following line if you want to force SDL and applications
  15904. # built with it to be compiled for a particular architecture.
  15905. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15906. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15907. # The default optimization for SDL is -O3 (Bug #31)
  15908. if test "x$orig_CFLAGS" = x; then
  15909. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15910. fi
  15911. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15912. BUILD_LDFLAGS="$LDFLAGS"
  15913. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15914. ## These are common directories to find software packages
  15915. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15916. # if test -d $path/include; then
  15917. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15918. # fi
  15919. # if test -d $path/lib; then
  15920. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15921. # fi
  15922. #done
  15923. SDL_CFLAGS="$BASE_CFLAGS"
  15924. SDL_LIBS="-lSDL2"
  15925. if test "x$BASE_LDFLAGS" != x; then
  15926. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15927. fi
  15928. if test "x$EXTRA_CFLAGS" != x; then
  15929. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15930. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15931. fi
  15932. if test "x$EXTRA_LDFLAGS" != x; then
  15933. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15934. fi
  15935. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15936. find_lib()
  15937. {
  15938. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15939. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15940. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15941. if test "$cross_compiling" = yes; then
  15942. host_lib_path=""
  15943. else
  15944. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15945. fi
  15946. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15947. 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`
  15948. if test x$lib != x; then
  15949. echo $lib
  15950. return
  15951. fi
  15952. done
  15953. }
  15954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15955. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15956. if test ${ac_cv_c_const+y}
  15957. then :
  15958. printf %s "(cached) " >&6
  15959. else $as_nop
  15960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15961. /* end confdefs.h. */
  15962. int
  15963. main (void)
  15964. {
  15965. #ifndef __cplusplus
  15966. /* Ultrix mips cc rejects this sort of thing. */
  15967. typedef int charset[2];
  15968. const charset cs = { 0, 0 };
  15969. /* SunOS 4.1.1 cc rejects this. */
  15970. char const *const *pcpcc;
  15971. char **ppc;
  15972. /* NEC SVR4.0.2 mips cc rejects this. */
  15973. struct point {int x, y;};
  15974. static struct point const zero = {0,0};
  15975. /* IBM XL C 1.02.0.0 rejects this.
  15976. It does not let you subtract one const X* pointer from another in
  15977. an arm of an if-expression whose if-part is not a constant
  15978. expression */
  15979. const char *g = "string";
  15980. pcpcc = &g + (g ? g-g : 0);
  15981. /* HPUX 7.0 cc rejects these. */
  15982. ++pcpcc;
  15983. ppc = (char**) pcpcc;
  15984. pcpcc = (char const *const *) ppc;
  15985. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15986. char tx;
  15987. char *t = &tx;
  15988. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15989. *t++ = 0;
  15990. if (s) return 0;
  15991. }
  15992. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15993. int x[] = {25, 17};
  15994. const int *foo = &x[0];
  15995. ++foo;
  15996. }
  15997. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  15998. typedef const int *iptr;
  15999. iptr p = 0;
  16000. ++p;
  16001. }
  16002. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16003. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16004. struct s { int j; const int *ap[3]; } bx;
  16005. struct s *b = &bx; b->j = 5;
  16006. }
  16007. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16008. const int foo = 10;
  16009. if (!foo) return 0;
  16010. }
  16011. return !cs[0] && !zero.x;
  16012. #endif
  16013. ;
  16014. return 0;
  16015. }
  16016. _ACEOF
  16017. if ac_fn_c_try_compile "$LINENO"
  16018. then :
  16019. ac_cv_c_const=yes
  16020. else $as_nop
  16021. ac_cv_c_const=no
  16022. fi
  16023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16024. fi
  16025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16026. printf "%s\n" "$ac_cv_c_const" >&6; }
  16027. if test $ac_cv_c_const = no; then
  16028. printf "%s\n" "#define const /**/" >>confdefs.h
  16029. fi
  16030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16031. printf %s "checking for inline... " >&6; }
  16032. if test ${ac_cv_c_inline+y}
  16033. then :
  16034. printf %s "(cached) " >&6
  16035. else $as_nop
  16036. ac_cv_c_inline=no
  16037. for ac_kw in inline __inline__ __inline; do
  16038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16039. /* end confdefs.h. */
  16040. #ifndef __cplusplus
  16041. typedef int foo_t;
  16042. static $ac_kw foo_t static_foo (void) {return 0; }
  16043. $ac_kw foo_t foo (void) {return 0; }
  16044. #endif
  16045. _ACEOF
  16046. if ac_fn_c_try_compile "$LINENO"
  16047. then :
  16048. ac_cv_c_inline=$ac_kw
  16049. fi
  16050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16051. test "$ac_cv_c_inline" != no && break
  16052. done
  16053. fi
  16054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16055. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16056. case $ac_cv_c_inline in
  16057. inline | yes) ;;
  16058. *)
  16059. case $ac_cv_c_inline in
  16060. no) ac_val=;;
  16061. *) ac_val=$ac_cv_c_inline;;
  16062. esac
  16063. cat >>confdefs.h <<_ACEOF
  16064. #ifndef __cplusplus
  16065. #define inline $ac_val
  16066. #endif
  16067. _ACEOF
  16068. ;;
  16069. esac
  16070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16071. printf %s "checking for working volatile... " >&6; }
  16072. if test ${ac_cv_c_volatile+y}
  16073. then :
  16074. printf %s "(cached) " >&6
  16075. else $as_nop
  16076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16077. /* end confdefs.h. */
  16078. int
  16079. main (void)
  16080. {
  16081. volatile int x;
  16082. int * volatile y = (int *) 0;
  16083. return !x && !y;
  16084. ;
  16085. return 0;
  16086. }
  16087. _ACEOF
  16088. if ac_fn_c_try_compile "$LINENO"
  16089. then :
  16090. ac_cv_c_volatile=yes
  16091. else $as_nop
  16092. ac_cv_c_volatile=no
  16093. fi
  16094. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16095. fi
  16096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16097. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16098. if test $ac_cv_c_volatile = no; then
  16099. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16100. fi
  16101. # Check whether --enable-assertions was given.
  16102. if test ${enable_assertions+y}
  16103. then :
  16104. enableval=$enable_assertions;
  16105. else $as_nop
  16106. enable_assertions=auto
  16107. fi
  16108. case "$enable_assertions" in
  16109. auto) # Use optimization settings to determine assertion level
  16110. ;;
  16111. disabled)
  16112. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16113. ;;
  16114. release)
  16115. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16116. ;;
  16117. enabled)
  16118. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16119. ;;
  16120. paranoid)
  16121. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16122. ;;
  16123. *)
  16124. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16125. ;;
  16126. esac
  16127. 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"
  16128. # Check whether --enable-dependency-tracking was given.
  16129. if test ${enable_dependency_tracking+y}
  16130. then :
  16131. enableval=$enable_dependency_tracking;
  16132. else $as_nop
  16133. enable_dependency_tracking=yes
  16134. fi
  16135. if test x$enable_dependency_tracking = xyes; then
  16136. have_gcc_mmd_mt=no
  16137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16138. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16140. /* end confdefs.h. */
  16141. #if !defined(__GNUC__) || __GNUC__ < 3
  16142. #error Dependency tracking requires GCC 3.0 or newer
  16143. #endif
  16144. int
  16145. main (void)
  16146. {
  16147. ;
  16148. return 0;
  16149. }
  16150. _ACEOF
  16151. if ac_fn_c_try_compile "$LINENO"
  16152. then :
  16153. have_gcc_mmd_mt=yes
  16154. fi
  16155. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16157. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16158. if test x$have_gcc_mmd_mt = xyes; then
  16159. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16160. fi
  16161. fi
  16162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16163. printf %s "checking for linker option --no-undefined... " >&6; }
  16164. have_no_undefined=no
  16165. case "$host" in
  16166. *-*-openbsd*)
  16167. ;;
  16168. *)
  16169. save_LDFLAGS="$LDFLAGS"
  16170. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16172. /* end confdefs.h. */
  16173. int
  16174. main (void)
  16175. {
  16176. ;
  16177. return 0;
  16178. }
  16179. _ACEOF
  16180. if ac_fn_c_try_link "$LINENO"
  16181. then :
  16182. have_no_undefined=yes
  16183. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16184. fi
  16185. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16186. conftest$ac_exeext conftest.$ac_ext
  16187. LDFLAGS="$save_LDFLAGS"
  16188. ;;
  16189. esac
  16190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16191. printf "%s\n" "$have_no_undefined" >&6; }
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16193. printf %s "checking for linker option --dynamicbase... " >&6; }
  16194. have_dynamicbase=no
  16195. case "$host" in
  16196. *)
  16197. save_LDFLAGS="$LDFLAGS"
  16198. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16200. /* end confdefs.h. */
  16201. int
  16202. main (void)
  16203. {
  16204. ;
  16205. return 0;
  16206. }
  16207. _ACEOF
  16208. if ac_fn_c_try_link "$LINENO"
  16209. then :
  16210. have_dynamicbase=yes
  16211. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16212. fi
  16213. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16214. conftest$ac_exeext conftest.$ac_ext
  16215. LDFLAGS="$save_LDFLAGS"
  16216. ;;
  16217. esac
  16218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16219. printf "%s\n" "$have_dynamicbase" >&6; }
  16220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16221. printf %s "checking for linker option --nxcompat... " >&6; }
  16222. have_nxcompat=no
  16223. case "$host" in
  16224. *)
  16225. save_LDFLAGS="$LDFLAGS"
  16226. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16228. /* end confdefs.h. */
  16229. int
  16230. main (void)
  16231. {
  16232. ;
  16233. return 0;
  16234. }
  16235. _ACEOF
  16236. if ac_fn_c_try_link "$LINENO"
  16237. then :
  16238. have_nxcompat=yes
  16239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16240. fi
  16241. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16242. conftest$ac_exeext conftest.$ac_ext
  16243. LDFLAGS="$save_LDFLAGS"
  16244. ;;
  16245. esac
  16246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16247. printf "%s\n" "$have_nxcompat" >&6; }
  16248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16249. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16250. have_high_entropy_va=no
  16251. case "$host" in
  16252. *)
  16253. save_LDFLAGS="$LDFLAGS"
  16254. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16256. /* end confdefs.h. */
  16257. int
  16258. main (void)
  16259. {
  16260. ;
  16261. return 0;
  16262. }
  16263. _ACEOF
  16264. if ac_fn_c_try_link "$LINENO"
  16265. then :
  16266. have_high_entropy_va=yes
  16267. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16268. fi
  16269. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16270. conftest$ac_exeext conftest.$ac_ext
  16271. LDFLAGS="$save_LDFLAGS"
  16272. ;;
  16273. esac
  16274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16275. printf "%s\n" "$have_high_entropy_va" >&6; }
  16276. # Check whether --enable-libc was given.
  16277. if test ${enable_libc+y}
  16278. then :
  16279. enableval=$enable_libc;
  16280. else $as_nop
  16281. enable_libc=yes
  16282. fi
  16283. # Check whether --enable-system-iconv was given.
  16284. if test ${enable_system_iconv+y}
  16285. then :
  16286. enableval=$enable_system_iconv;
  16287. else $as_nop
  16288. enable_system_iconv=yes
  16289. fi
  16290. if test x$enable_libc = xyes; then
  16291. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16292. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16293. if test "x$ac_cv_header_sys_types_h" = xyes
  16294. then :
  16295. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16296. fi
  16297. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16298. if test "x$ac_cv_header_stdio_h" = xyes
  16299. then :
  16300. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16301. fi
  16302. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16303. if test "x$ac_cv_header_stdlib_h" = xyes
  16304. then :
  16305. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16306. fi
  16307. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16308. if test "x$ac_cv_header_stddef_h" = xyes
  16309. then :
  16310. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16311. fi
  16312. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16313. if test "x$ac_cv_header_stdarg_h" = xyes
  16314. then :
  16315. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16316. fi
  16317. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16318. if test "x$ac_cv_header_malloc_h" = xyes
  16319. then :
  16320. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16321. fi
  16322. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16323. if test "x$ac_cv_header_memory_h" = xyes
  16324. then :
  16325. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16326. fi
  16327. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16328. if test "x$ac_cv_header_string_h" = xyes
  16329. then :
  16330. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16331. fi
  16332. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16333. if test "x$ac_cv_header_strings_h" = xyes
  16334. then :
  16335. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16336. fi
  16337. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16338. if test "x$ac_cv_header_wchar_h" = xyes
  16339. then :
  16340. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16341. fi
  16342. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16343. if test "x$ac_cv_header_inttypes_h" = xyes
  16344. then :
  16345. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16346. fi
  16347. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16348. if test "x$ac_cv_header_stdint_h" = xyes
  16349. then :
  16350. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16351. fi
  16352. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16353. if test "x$ac_cv_header_limits_h" = xyes
  16354. then :
  16355. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16356. fi
  16357. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16358. if test "x$ac_cv_header_ctype_h" = xyes
  16359. then :
  16360. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16361. fi
  16362. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16363. if test "x$ac_cv_header_math_h" = xyes
  16364. then :
  16365. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16366. fi
  16367. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16368. if test "x$ac_cv_header_float_h" = xyes
  16369. then :
  16370. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16371. fi
  16372. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16373. if test "x$ac_cv_header_iconv_h" = xyes
  16374. then :
  16375. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16376. fi
  16377. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16378. if test "x$ac_cv_header_signal_h" = xyes
  16379. then :
  16380. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16381. fi
  16382. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16383. if test "x$ac_cv_type_size_t" = xyes
  16384. then :
  16385. else $as_nop
  16386. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16387. fi
  16388. ac_ext=c
  16389. ac_cpp='$CPP $CPPFLAGS'
  16390. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16391. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16392. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16394. printf %s "checking how to run the C preprocessor... " >&6; }
  16395. # On Suns, sometimes $CPP names a directory.
  16396. if test -n "$CPP" && test -d "$CPP"; then
  16397. CPP=
  16398. fi
  16399. if test -z "$CPP"; then
  16400. if test ${ac_cv_prog_CPP+y}
  16401. then :
  16402. printf %s "(cached) " >&6
  16403. else $as_nop
  16404. # Double quotes because $CC needs to be expanded
  16405. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16406. do
  16407. ac_preproc_ok=false
  16408. for ac_c_preproc_warn_flag in '' yes
  16409. do
  16410. # Use a header file that comes with gcc, so configuring glibc
  16411. # with a fresh cross-compiler works.
  16412. # On the NeXT, cc -E runs the code through the compiler's parser,
  16413. # not just through cpp. "Syntax error" is here to catch this case.
  16414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16415. /* end confdefs.h. */
  16416. #include <limits.h>
  16417. Syntax error
  16418. _ACEOF
  16419. if ac_fn_c_try_cpp "$LINENO"
  16420. then :
  16421. else $as_nop
  16422. # Broken: fails on valid input.
  16423. continue
  16424. fi
  16425. rm -f conftest.err conftest.i conftest.$ac_ext
  16426. # OK, works on sane cases. Now check whether nonexistent headers
  16427. # can be detected and how.
  16428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16429. /* end confdefs.h. */
  16430. #include <ac_nonexistent.h>
  16431. _ACEOF
  16432. if ac_fn_c_try_cpp "$LINENO"
  16433. then :
  16434. # Broken: success on invalid input.
  16435. continue
  16436. else $as_nop
  16437. # Passes both tests.
  16438. ac_preproc_ok=:
  16439. break
  16440. fi
  16441. rm -f conftest.err conftest.i conftest.$ac_ext
  16442. done
  16443. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16444. rm -f conftest.i conftest.err conftest.$ac_ext
  16445. if $ac_preproc_ok
  16446. then :
  16447. break
  16448. fi
  16449. done
  16450. ac_cv_prog_CPP=$CPP
  16451. fi
  16452. CPP=$ac_cv_prog_CPP
  16453. else
  16454. ac_cv_prog_CPP=$CPP
  16455. fi
  16456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16457. printf "%s\n" "$CPP" >&6; }
  16458. ac_preproc_ok=false
  16459. for ac_c_preproc_warn_flag in '' yes
  16460. do
  16461. # Use a header file that comes with gcc, so configuring glibc
  16462. # with a fresh cross-compiler works.
  16463. # On the NeXT, cc -E runs the code through the compiler's parser,
  16464. # not just through cpp. "Syntax error" is here to catch this case.
  16465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16466. /* end confdefs.h. */
  16467. #include <limits.h>
  16468. Syntax error
  16469. _ACEOF
  16470. if ac_fn_c_try_cpp "$LINENO"
  16471. then :
  16472. else $as_nop
  16473. # Broken: fails on valid input.
  16474. continue
  16475. fi
  16476. rm -f conftest.err conftest.i conftest.$ac_ext
  16477. # OK, works on sane cases. Now check whether nonexistent headers
  16478. # can be detected and how.
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. #include <ac_nonexistent.h>
  16482. _ACEOF
  16483. if ac_fn_c_try_cpp "$LINENO"
  16484. then :
  16485. # Broken: success on invalid input.
  16486. continue
  16487. else $as_nop
  16488. # Passes both tests.
  16489. ac_preproc_ok=:
  16490. break
  16491. fi
  16492. rm -f conftest.err conftest.i conftest.$ac_ext
  16493. done
  16494. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16495. rm -f conftest.i conftest.err conftest.$ac_ext
  16496. if $ac_preproc_ok
  16497. then :
  16498. else $as_nop
  16499. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16500. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16501. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16502. See \`config.log' for more details" "$LINENO" 5; }
  16503. fi
  16504. ac_ext=c
  16505. ac_cpp='$CPP $CPPFLAGS'
  16506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16510. printf %s "checking for M_PI in math.h... " >&6; }
  16511. if test ${ac_cv_define_M_PI+y}
  16512. then :
  16513. printf %s "(cached) " >&6
  16514. else $as_nop
  16515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16516. /* end confdefs.h. */
  16517. #include <math.h>
  16518. #ifdef M_PI
  16519. YES_IS_DEFINED
  16520. #endif
  16521. _ACEOF
  16522. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16523. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16524. then :
  16525. ac_cv_define_M_PI=yes
  16526. else $as_nop
  16527. ac_cv_define_M_PI=no
  16528. fi
  16529. rm -rf conftest*
  16530. fi
  16531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16532. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16533. if test "$ac_cv_define_M_PI" = "yes" ; then
  16534. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16535. fi
  16536. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16537. # for constant arguments. Useless!
  16538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16539. printf %s "checking for working alloca.h... " >&6; }
  16540. if test ${ac_cv_working_alloca_h+y}
  16541. then :
  16542. printf %s "(cached) " >&6
  16543. else $as_nop
  16544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16545. /* end confdefs.h. */
  16546. #include <alloca.h>
  16547. int
  16548. main (void)
  16549. {
  16550. char *p = (char *) alloca (2 * sizeof (int));
  16551. if (p) return 0;
  16552. ;
  16553. return 0;
  16554. }
  16555. _ACEOF
  16556. if ac_fn_c_try_link "$LINENO"
  16557. then :
  16558. ac_cv_working_alloca_h=yes
  16559. else $as_nop
  16560. ac_cv_working_alloca_h=no
  16561. fi
  16562. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16563. conftest$ac_exeext conftest.$ac_ext
  16564. fi
  16565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16566. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16567. if test $ac_cv_working_alloca_h = yes; then
  16568. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16569. fi
  16570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16571. printf %s "checking for alloca... " >&6; }
  16572. if test ${ac_cv_func_alloca_works+y}
  16573. then :
  16574. printf %s "(cached) " >&6
  16575. else $as_nop
  16576. if test $ac_cv_working_alloca_h = yes; then
  16577. ac_cv_func_alloca_works=yes
  16578. else
  16579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16580. /* end confdefs.h. */
  16581. #include <stdlib.h>
  16582. #include <stddef.h>
  16583. #ifndef alloca
  16584. # ifdef __GNUC__
  16585. # define alloca __builtin_alloca
  16586. # elif defined _MSC_VER
  16587. # include <malloc.h>
  16588. # define alloca _alloca
  16589. # else
  16590. # ifdef __cplusplus
  16591. extern "C"
  16592. # endif
  16593. void *alloca (size_t);
  16594. # endif
  16595. #endif
  16596. int
  16597. main (void)
  16598. {
  16599. char *p = (char *) alloca (1);
  16600. if (p) return 0;
  16601. ;
  16602. return 0;
  16603. }
  16604. _ACEOF
  16605. if ac_fn_c_try_link "$LINENO"
  16606. then :
  16607. ac_cv_func_alloca_works=yes
  16608. else $as_nop
  16609. ac_cv_func_alloca_works=no
  16610. fi
  16611. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16612. conftest$ac_exeext conftest.$ac_ext
  16613. fi
  16614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16615. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16616. fi
  16617. if test $ac_cv_func_alloca_works = yes; then
  16618. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16619. else
  16620. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16621. # that cause trouble. Some versions do not even contain alloca or
  16622. # contain a buggy version. If you still want to use their alloca,
  16623. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16624. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16625. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16627. printf %s "checking stack direction for C alloca... " >&6; }
  16628. if test ${ac_cv_c_stack_direction+y}
  16629. then :
  16630. printf %s "(cached) " >&6
  16631. else $as_nop
  16632. if test "$cross_compiling" = yes
  16633. then :
  16634. ac_cv_c_stack_direction=0
  16635. else $as_nop
  16636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16637. /* end confdefs.h. */
  16638. $ac_includes_default
  16639. int
  16640. find_stack_direction (int *addr, int depth)
  16641. {
  16642. int dir, dummy = 0;
  16643. if (! addr)
  16644. addr = &dummy;
  16645. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16646. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16647. return dir + dummy;
  16648. }
  16649. int
  16650. main (int argc, char **argv)
  16651. {
  16652. return find_stack_direction (0, argc + !argv + 20) < 0;
  16653. }
  16654. _ACEOF
  16655. if ac_fn_c_try_run "$LINENO"
  16656. then :
  16657. ac_cv_c_stack_direction=1
  16658. else $as_nop
  16659. ac_cv_c_stack_direction=-1
  16660. fi
  16661. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16662. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16663. fi
  16664. fi
  16665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16666. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16667. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16668. fi
  16669. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16670. if test "x$ac_cv_func_mprotect" = xyes
  16671. then :
  16672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16673. /* end confdefs.h. */
  16674. #include <sys/types.h>
  16675. #include <sys/mman.h>
  16676. int
  16677. main (void)
  16678. {
  16679. ;
  16680. return 0;
  16681. }
  16682. _ACEOF
  16683. if ac_fn_c_try_compile "$LINENO"
  16684. then :
  16685. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16686. fi
  16687. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16688. fi
  16689. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16690. if test "x$ac_cv_func_malloc" = xyes
  16691. then :
  16692. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16693. fi
  16694. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16695. if test "x$ac_cv_func_calloc" = xyes
  16696. then :
  16697. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16698. fi
  16699. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16700. if test "x$ac_cv_func_realloc" = xyes
  16701. then :
  16702. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16703. fi
  16704. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16705. if test "x$ac_cv_func_free" = xyes
  16706. then :
  16707. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16708. fi
  16709. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16710. if test "x$ac_cv_func_getenv" = xyes
  16711. then :
  16712. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16713. fi
  16714. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16715. if test "x$ac_cv_func_setenv" = xyes
  16716. then :
  16717. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16718. fi
  16719. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16720. if test "x$ac_cv_func_putenv" = xyes
  16721. then :
  16722. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16723. fi
  16724. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16725. if test "x$ac_cv_func_unsetenv" = xyes
  16726. then :
  16727. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16728. fi
  16729. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16730. if test "x$ac_cv_func_bsearch" = xyes
  16731. then :
  16732. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16733. fi
  16734. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16735. if test "x$ac_cv_func_qsort" = xyes
  16736. then :
  16737. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16738. fi
  16739. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16740. if test "x$ac_cv_func_abs" = xyes
  16741. then :
  16742. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16743. fi
  16744. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16745. if test "x$ac_cv_func_bcopy" = xyes
  16746. then :
  16747. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16748. fi
  16749. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16750. if test "x$ac_cv_func_memset" = xyes
  16751. then :
  16752. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16753. fi
  16754. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16755. if test "x$ac_cv_func_memcmp" = xyes
  16756. then :
  16757. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16758. fi
  16759. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16760. if test "x$ac_cv_func_memcpy" = xyes
  16761. then :
  16762. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16763. fi
  16764. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16765. if test "x$ac_cv_func_memmove" = xyes
  16766. then :
  16767. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16768. fi
  16769. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16770. if test "x$ac_cv_func_wcslen" = xyes
  16771. then :
  16772. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16773. fi
  16774. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16775. if test "x$ac_cv_func_wcslcpy" = xyes
  16776. then :
  16777. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16778. fi
  16779. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16780. if test "x$ac_cv_func_wcslcat" = xyes
  16781. then :
  16782. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16783. fi
  16784. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16785. if test "x$ac_cv_func__wcsdup" = xyes
  16786. then :
  16787. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16788. fi
  16789. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16790. if test "x$ac_cv_func_wcsdup" = xyes
  16791. then :
  16792. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16793. fi
  16794. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16795. if test "x$ac_cv_func_wcsstr" = xyes
  16796. then :
  16797. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16798. fi
  16799. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16800. if test "x$ac_cv_func_wcscmp" = xyes
  16801. then :
  16802. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16803. fi
  16804. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16805. if test "x$ac_cv_func_wcsncmp" = xyes
  16806. then :
  16807. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16808. fi
  16809. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16810. if test "x$ac_cv_func_wcscasecmp" = xyes
  16811. then :
  16812. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16813. fi
  16814. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16815. if test "x$ac_cv_func__wcsicmp" = xyes
  16816. then :
  16817. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16818. fi
  16819. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16820. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16821. then :
  16822. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16823. fi
  16824. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16825. if test "x$ac_cv_func__wcsnicmp" = xyes
  16826. then :
  16827. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16828. fi
  16829. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16830. if test "x$ac_cv_func_strlen" = xyes
  16831. then :
  16832. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16833. fi
  16834. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16835. if test "x$ac_cv_func_strlcpy" = xyes
  16836. then :
  16837. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16838. fi
  16839. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16840. if test "x$ac_cv_func_strlcat" = xyes
  16841. then :
  16842. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16843. fi
  16844. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16845. if test "x$ac_cv_func__strrev" = xyes
  16846. then :
  16847. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16848. fi
  16849. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16850. if test "x$ac_cv_func__strupr" = xyes
  16851. then :
  16852. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16853. fi
  16854. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16855. if test "x$ac_cv_func__strlwr" = xyes
  16856. then :
  16857. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16858. fi
  16859. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16860. if test "x$ac_cv_func_index" = xyes
  16861. then :
  16862. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16863. fi
  16864. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16865. if test "x$ac_cv_func_rindex" = xyes
  16866. then :
  16867. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16868. fi
  16869. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16870. if test "x$ac_cv_func_strchr" = xyes
  16871. then :
  16872. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16873. fi
  16874. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16875. if test "x$ac_cv_func_strrchr" = xyes
  16876. then :
  16877. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16878. fi
  16879. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16880. if test "x$ac_cv_func_strstr" = xyes
  16881. then :
  16882. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16883. fi
  16884. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16885. if test "x$ac_cv_func_strtok_r" = xyes
  16886. then :
  16887. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16888. fi
  16889. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16890. if test "x$ac_cv_func_itoa" = xyes
  16891. then :
  16892. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16893. fi
  16894. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16895. if test "x$ac_cv_func__ltoa" = xyes
  16896. then :
  16897. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16898. fi
  16899. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16900. if test "x$ac_cv_func__uitoa" = xyes
  16901. then :
  16902. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16903. fi
  16904. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16905. if test "x$ac_cv_func__ultoa" = xyes
  16906. then :
  16907. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16908. fi
  16909. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16910. if test "x$ac_cv_func_strtod" = xyes
  16911. then :
  16912. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16913. fi
  16914. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16915. if test "x$ac_cv_func_strtol" = xyes
  16916. then :
  16917. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16918. fi
  16919. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16920. if test "x$ac_cv_func_strtoul" = xyes
  16921. then :
  16922. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16923. fi
  16924. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16925. if test "x$ac_cv_func__i64toa" = xyes
  16926. then :
  16927. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16928. fi
  16929. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16930. if test "x$ac_cv_func__ui64toa" = xyes
  16931. then :
  16932. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16933. fi
  16934. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16935. if test "x$ac_cv_func_strtoll" = xyes
  16936. then :
  16937. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16938. fi
  16939. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16940. if test "x$ac_cv_func_strtoull" = xyes
  16941. then :
  16942. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16943. fi
  16944. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16945. if test "x$ac_cv_func_atoi" = xyes
  16946. then :
  16947. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16948. fi
  16949. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16950. if test "x$ac_cv_func_atof" = xyes
  16951. then :
  16952. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16953. fi
  16954. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16955. if test "x$ac_cv_func_strcmp" = xyes
  16956. then :
  16957. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16958. fi
  16959. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16960. if test "x$ac_cv_func_strncmp" = xyes
  16961. then :
  16962. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16963. fi
  16964. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16965. if test "x$ac_cv_func__stricmp" = xyes
  16966. then :
  16967. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16968. fi
  16969. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16970. if test "x$ac_cv_func_strcasecmp" = xyes
  16971. then :
  16972. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16973. fi
  16974. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16975. if test "x$ac_cv_func__strnicmp" = xyes
  16976. then :
  16977. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16978. fi
  16979. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16980. if test "x$ac_cv_func_strncasecmp" = xyes
  16981. then :
  16982. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16983. fi
  16984. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16985. if test "x$ac_cv_func_vsscanf" = xyes
  16986. then :
  16987. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16988. fi
  16989. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16990. if test "x$ac_cv_func_vsnprintf" = xyes
  16991. then :
  16992. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16993. fi
  16994. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16995. if test "x$ac_cv_func_fopen64" = xyes
  16996. then :
  16997. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  16998. fi
  16999. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17000. if test "x$ac_cv_func_fseeko" = xyes
  17001. then :
  17002. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17003. fi
  17004. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17005. if test "x$ac_cv_func_fseeko64" = xyes
  17006. then :
  17007. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17008. fi
  17009. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17010. if test "x$ac_cv_func_sigaction" = xyes
  17011. then :
  17012. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17013. fi
  17014. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17015. if test "x$ac_cv_func_setjmp" = xyes
  17016. then :
  17017. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17018. fi
  17019. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17020. if test "x$ac_cv_func_nanosleep" = xyes
  17021. then :
  17022. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17023. fi
  17024. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17025. if test "x$ac_cv_func_sysconf" = xyes
  17026. then :
  17027. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17028. fi
  17029. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17030. if test "x$ac_cv_func_sysctlbyname" = xyes
  17031. then :
  17032. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17033. fi
  17034. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17035. if test "x$ac_cv_func_getauxval" = xyes
  17036. then :
  17037. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17038. fi
  17039. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17040. if test "x$ac_cv_func_elf_aux_info" = xyes
  17041. then :
  17042. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17043. fi
  17044. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17045. if test "x$ac_cv_func_poll" = xyes
  17046. then :
  17047. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17048. fi
  17049. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17050. if test "x$ac_cv_func__Exit" = xyes
  17051. then :
  17052. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17053. fi
  17054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17055. printf %s "checking for pow in -lm... " >&6; }
  17056. if test ${ac_cv_lib_m_pow+y}
  17057. then :
  17058. printf %s "(cached) " >&6
  17059. else $as_nop
  17060. ac_check_lib_save_LIBS=$LIBS
  17061. LIBS="-lm $LIBS"
  17062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17063. /* end confdefs.h. */
  17064. /* Override any GCC internal prototype to avoid an error.
  17065. Use char because int might match the return type of a GCC
  17066. builtin and then its argument prototype would still apply. */
  17067. char pow ();
  17068. int
  17069. main (void)
  17070. {
  17071. return pow ();
  17072. ;
  17073. return 0;
  17074. }
  17075. _ACEOF
  17076. if ac_fn_c_try_link "$LINENO"
  17077. then :
  17078. ac_cv_lib_m_pow=yes
  17079. else $as_nop
  17080. ac_cv_lib_m_pow=no
  17081. fi
  17082. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17083. conftest$ac_exeext conftest.$ac_ext
  17084. LIBS=$ac_check_lib_save_LIBS
  17085. fi
  17086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17087. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17088. if test "x$ac_cv_lib_m_pow" = xyes
  17089. then :
  17090. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17091. fi
  17092. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17093. if test "x$ac_cv_func_acos" = xyes
  17094. then :
  17095. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17096. fi
  17097. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17098. if test "x$ac_cv_func_acosf" = xyes
  17099. then :
  17100. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17101. fi
  17102. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17103. if test "x$ac_cv_func_asin" = xyes
  17104. then :
  17105. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17106. fi
  17107. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17108. if test "x$ac_cv_func_asinf" = xyes
  17109. then :
  17110. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17111. fi
  17112. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17113. if test "x$ac_cv_func_atan" = xyes
  17114. then :
  17115. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17116. fi
  17117. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17118. if test "x$ac_cv_func_atanf" = xyes
  17119. then :
  17120. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17121. fi
  17122. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17123. if test "x$ac_cv_func_atan2" = xyes
  17124. then :
  17125. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17126. fi
  17127. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17128. if test "x$ac_cv_func_atan2f" = xyes
  17129. then :
  17130. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17131. fi
  17132. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17133. if test "x$ac_cv_func_ceil" = xyes
  17134. then :
  17135. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17136. fi
  17137. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17138. if test "x$ac_cv_func_ceilf" = xyes
  17139. then :
  17140. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17141. fi
  17142. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17143. if test "x$ac_cv_func_copysign" = xyes
  17144. then :
  17145. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17146. fi
  17147. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17148. if test "x$ac_cv_func_copysignf" = xyes
  17149. then :
  17150. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17151. fi
  17152. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17153. if test "x$ac_cv_func_cos" = xyes
  17154. then :
  17155. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17156. fi
  17157. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17158. if test "x$ac_cv_func_cosf" = xyes
  17159. then :
  17160. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17161. fi
  17162. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17163. if test "x$ac_cv_func_exp" = xyes
  17164. then :
  17165. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17166. fi
  17167. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17168. if test "x$ac_cv_func_expf" = xyes
  17169. then :
  17170. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17171. fi
  17172. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17173. if test "x$ac_cv_func_fabs" = xyes
  17174. then :
  17175. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17176. fi
  17177. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17178. if test "x$ac_cv_func_fabsf" = xyes
  17179. then :
  17180. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17181. fi
  17182. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17183. if test "x$ac_cv_func_floor" = xyes
  17184. then :
  17185. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17186. fi
  17187. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17188. if test "x$ac_cv_func_floorf" = xyes
  17189. then :
  17190. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17191. fi
  17192. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17193. if test "x$ac_cv_func_trunc" = xyes
  17194. then :
  17195. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17196. fi
  17197. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17198. if test "x$ac_cv_func_truncf" = xyes
  17199. then :
  17200. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17201. fi
  17202. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17203. if test "x$ac_cv_func_fmod" = xyes
  17204. then :
  17205. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17206. fi
  17207. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17208. if test "x$ac_cv_func_fmodf" = xyes
  17209. then :
  17210. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17211. fi
  17212. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17213. if test "x$ac_cv_func_log" = xyes
  17214. then :
  17215. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17216. fi
  17217. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17218. if test "x$ac_cv_func_logf" = xyes
  17219. then :
  17220. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17221. fi
  17222. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17223. if test "x$ac_cv_func_log10" = xyes
  17224. then :
  17225. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17226. fi
  17227. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17228. if test "x$ac_cv_func_log10f" = xyes
  17229. then :
  17230. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17231. fi
  17232. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17233. if test "x$ac_cv_func_lround" = xyes
  17234. then :
  17235. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17236. fi
  17237. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17238. if test "x$ac_cv_func_lroundf" = xyes
  17239. then :
  17240. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17241. fi
  17242. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17243. if test "x$ac_cv_func_pow" = xyes
  17244. then :
  17245. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17246. fi
  17247. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17248. if test "x$ac_cv_func_powf" = xyes
  17249. then :
  17250. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17251. fi
  17252. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17253. if test "x$ac_cv_func_round" = xyes
  17254. then :
  17255. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17256. fi
  17257. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17258. if test "x$ac_cv_func_roundf" = xyes
  17259. then :
  17260. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17261. fi
  17262. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17263. if test "x$ac_cv_func_scalbn" = xyes
  17264. then :
  17265. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17266. fi
  17267. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17268. if test "x$ac_cv_func_scalbnf" = xyes
  17269. then :
  17270. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17271. fi
  17272. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17273. if test "x$ac_cv_func_sin" = xyes
  17274. then :
  17275. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17276. fi
  17277. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17278. if test "x$ac_cv_func_sinf" = xyes
  17279. then :
  17280. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17281. fi
  17282. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17283. if test "x$ac_cv_func_sqrt" = xyes
  17284. then :
  17285. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17286. fi
  17287. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17288. if test "x$ac_cv_func_sqrtf" = xyes
  17289. then :
  17290. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17291. fi
  17292. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17293. if test "x$ac_cv_func_tan" = xyes
  17294. then :
  17295. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17296. fi
  17297. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17298. if test "x$ac_cv_func_tanf" = xyes
  17299. then :
  17300. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17301. fi
  17302. if test x$enable_system_iconv = xyes; then
  17303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17304. printf %s "checking for iconv_open in -liconv... " >&6; }
  17305. if test ${ac_cv_lib_iconv_iconv_open+y}
  17306. then :
  17307. printf %s "(cached) " >&6
  17308. else $as_nop
  17309. ac_check_lib_save_LIBS=$LIBS
  17310. LIBS="-liconv $LIBS"
  17311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17312. /* end confdefs.h. */
  17313. /* Override any GCC internal prototype to avoid an error.
  17314. Use char because int might match the return type of a GCC
  17315. builtin and then its argument prototype would still apply. */
  17316. char iconv_open ();
  17317. int
  17318. main (void)
  17319. {
  17320. return iconv_open ();
  17321. ;
  17322. return 0;
  17323. }
  17324. _ACEOF
  17325. if ac_fn_c_try_link "$LINENO"
  17326. then :
  17327. ac_cv_lib_iconv_iconv_open=yes
  17328. else $as_nop
  17329. ac_cv_lib_iconv_iconv_open=no
  17330. fi
  17331. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17332. conftest$ac_exeext conftest.$ac_ext
  17333. LIBS=$ac_check_lib_save_LIBS
  17334. fi
  17335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17336. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17337. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17338. then :
  17339. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17340. fi
  17341. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17342. if test "x$ac_cv_func_iconv" = xyes
  17343. then :
  17344. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17345. fi
  17346. fi
  17347. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17348. "
  17349. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17350. then :
  17351. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17352. fi
  17353. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17354. if test "x$ac_cv_header_libunwind_h" = xyes
  17355. then :
  17356. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17357. fi
  17358. fi
  17359. # Check whether --enable-gcc-atomics was given.
  17360. if test ${enable_gcc_atomics+y}
  17361. then :
  17362. enableval=$enable_gcc_atomics;
  17363. else $as_nop
  17364. enable_gcc_atomics=yes
  17365. fi
  17366. if test x$enable_gcc_atomics = xyes; then
  17367. have_gcc_atomics=no
  17368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17369. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17371. /* end confdefs.h. */
  17372. int
  17373. main (void)
  17374. {
  17375. int a;
  17376. void *x, *y, *z;
  17377. __sync_lock_test_and_set(&a, 4);
  17378. __sync_lock_test_and_set(&x, y);
  17379. __sync_fetch_and_add(&a, 1);
  17380. __sync_bool_compare_and_swap(&a, 5, 10);
  17381. __sync_bool_compare_and_swap(&x, y, z);
  17382. ;
  17383. return 0;
  17384. }
  17385. _ACEOF
  17386. if ac_fn_c_try_link "$LINENO"
  17387. then :
  17388. have_gcc_atomics=yes
  17389. fi
  17390. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17391. conftest$ac_exeext conftest.$ac_ext
  17392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17393. printf "%s\n" "$have_gcc_atomics" >&6; }
  17394. if test x$have_gcc_atomics = xyes; then
  17395. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17396. else
  17397. # See if we have the minimum operation needed for GCC atomics
  17398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17399. /* end confdefs.h. */
  17400. int
  17401. main (void)
  17402. {
  17403. int a;
  17404. __sync_lock_test_and_set(&a, 1);
  17405. __sync_lock_release(&a);
  17406. ;
  17407. return 0;
  17408. }
  17409. _ACEOF
  17410. if ac_fn_c_try_link "$LINENO"
  17411. then :
  17412. have_gcc_sync_lock_test_and_set=yes
  17413. fi
  17414. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17415. conftest$ac_exeext conftest.$ac_ext
  17416. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17417. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17418. fi
  17419. fi
  17420. fi
  17421. # Standard C sources
  17422. SOURCES="$SOURCES $srcdir/src/*.c"
  17423. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17424. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17426. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17427. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17428. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17429. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17430. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17431. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17432. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17433. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17435. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17437. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17438. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17439. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17440. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17441. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17442. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17443. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17444. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17445. case "$host" in
  17446. *-*-emscripten*)
  17447. default_atomic=no
  17448. ;;
  17449. *)
  17450. default_atomic=yes
  17451. ;;
  17452. esac
  17453. # Check whether --enable-atomic was given.
  17454. if test ${enable_atomic+y}
  17455. then :
  17456. enableval=$enable_atomic;
  17457. else $as_nop
  17458. enable_atomic=$default_atomic
  17459. fi
  17460. if test x$enable_atomic != xyes; then
  17461. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17462. else
  17463. SUMMARY_modules="${SUMMARY_modules} atomic"
  17464. fi
  17465. # Check whether --enable-audio was given.
  17466. if test ${enable_audio+y}
  17467. then :
  17468. enableval=$enable_audio;
  17469. else $as_nop
  17470. enable_audio=yes
  17471. fi
  17472. if test x$enable_audio != xyes; then
  17473. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17474. else
  17475. SUMMARY_modules="${SUMMARY_modules} audio"
  17476. fi
  17477. # Check whether --enable-video was given.
  17478. if test ${enable_video+y}
  17479. then :
  17480. enableval=$enable_video;
  17481. else $as_nop
  17482. enable_video=yes
  17483. fi
  17484. if test x$enable_video != xyes; then
  17485. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17486. else
  17487. SUMMARY_modules="${SUMMARY_modules} video"
  17488. fi
  17489. # Check whether --enable-render was given.
  17490. if test ${enable_render+y}
  17491. then :
  17492. enableval=$enable_render;
  17493. else $as_nop
  17494. enable_render=yes
  17495. fi
  17496. if test x$enable_render != xyes; then
  17497. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17498. else
  17499. SUMMARY_modules="${SUMMARY_modules} render"
  17500. fi
  17501. # Check whether --enable-events was given.
  17502. if test ${enable_events+y}
  17503. then :
  17504. enableval=$enable_events;
  17505. else $as_nop
  17506. enable_events=yes
  17507. fi
  17508. if test x$enable_events != xyes; then
  17509. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17510. else
  17511. SUMMARY_modules="${SUMMARY_modules} events"
  17512. fi
  17513. # Check whether --enable-joystick was given.
  17514. if test ${enable_joystick+y}
  17515. then :
  17516. enableval=$enable_joystick;
  17517. else $as_nop
  17518. enable_joystick=yes
  17519. fi
  17520. if test x$enable_joystick != xyes; then
  17521. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17522. else
  17523. SUMMARY_modules="${SUMMARY_modules} joystick"
  17524. fi
  17525. # Check whether --enable-haptic was given.
  17526. if test ${enable_haptic+y}
  17527. then :
  17528. enableval=$enable_haptic;
  17529. else $as_nop
  17530. enable_haptic=yes
  17531. fi
  17532. if test x$enable_haptic != xyes; then
  17533. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17534. else
  17535. SUMMARY_modules="${SUMMARY_modules} haptic"
  17536. fi
  17537. # Check whether --enable-hidapi was given.
  17538. if test ${enable_hidapi+y}
  17539. then :
  17540. enableval=$enable_hidapi;
  17541. else $as_nop
  17542. enable_hidapi=yes
  17543. fi
  17544. if test x$enable_hidapi != xyes; then
  17545. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17546. else
  17547. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17548. fi
  17549. # Check whether --enable-sensor was given.
  17550. if test ${enable_sensor+y}
  17551. then :
  17552. enableval=$enable_sensor;
  17553. else $as_nop
  17554. enable_sensor=yes
  17555. fi
  17556. if test x$enable_sensor != xyes; then
  17557. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17558. else
  17559. SUMMARY_modules="${SUMMARY_modules} sensor"
  17560. fi
  17561. # Check whether --enable-power was given.
  17562. if test ${enable_power+y}
  17563. then :
  17564. enableval=$enable_power;
  17565. else $as_nop
  17566. enable_power=yes
  17567. fi
  17568. if test x$enable_power != xyes; then
  17569. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17570. else
  17571. SUMMARY_modules="${SUMMARY_modules} power"
  17572. fi
  17573. # Check whether --enable-filesystem was given.
  17574. if test ${enable_filesystem+y}
  17575. then :
  17576. enableval=$enable_filesystem;
  17577. else $as_nop
  17578. enable_filesystem=yes
  17579. fi
  17580. if test x$enable_filesystem != xyes; then
  17581. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17582. else
  17583. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17584. fi
  17585. # Many subsystems depend on threads, so leave them enabled by default
  17586. #AC_ARG_ENABLE(threads,
  17587. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17588. # , enable_threads=yes)
  17589. enable_threads=yes
  17590. if test x$enable_threads != xyes; then
  17591. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17592. else
  17593. SUMMARY_modules="${SUMMARY_modules} threads"
  17594. fi
  17595. # Check whether --enable-timers was given.
  17596. if test ${enable_timers+y}
  17597. then :
  17598. enableval=$enable_timers;
  17599. else $as_nop
  17600. enable_timers=yes
  17601. fi
  17602. if test x$enable_timers != xyes; then
  17603. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17604. else
  17605. SUMMARY_modules="${SUMMARY_modules} timers"
  17606. fi
  17607. # Check whether --enable-file was given.
  17608. if test ${enable_file+y}
  17609. then :
  17610. enableval=$enable_file;
  17611. else $as_nop
  17612. enable_file=yes
  17613. fi
  17614. if test x$enable_file != xyes; then
  17615. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17616. else
  17617. SUMMARY_modules="${SUMMARY_modules} file"
  17618. fi
  17619. # Check whether --enable-misc was given.
  17620. if test ${enable_misc+y}
  17621. then :
  17622. enableval=$enable_misc;
  17623. else $as_nop
  17624. enable_misc=yes
  17625. fi
  17626. if test x$enable_misc != xyes; then
  17627. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17628. else
  17629. SUMMARY_modules="${SUMMARY_modules} misc"
  17630. fi
  17631. # Check whether --enable-locale was given.
  17632. if test ${enable_locale+y}
  17633. then :
  17634. enableval=$enable_locale;
  17635. else $as_nop
  17636. enable_locale=yes
  17637. fi
  17638. if test x$enable_locale != xyes; then
  17639. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17640. else
  17641. SUMMARY_modules="${SUMMARY_modules} locale"
  17642. fi
  17643. # Check whether --enable-loadso was given.
  17644. if test ${enable_loadso+y}
  17645. then :
  17646. enableval=$enable_loadso;
  17647. else $as_nop
  17648. enable_loadso=yes
  17649. fi
  17650. if test x$enable_loadso != xyes; then
  17651. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17652. else
  17653. SUMMARY_modules="${SUMMARY_modules} loadso"
  17654. fi
  17655. # Check whether --enable-cpuinfo was given.
  17656. if test ${enable_cpuinfo+y}
  17657. then :
  17658. enableval=$enable_cpuinfo;
  17659. else $as_nop
  17660. enable_cpuinfo=yes
  17661. fi
  17662. if test x$enable_cpuinfo != xyes; then
  17663. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17664. else
  17665. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17666. fi
  17667. # Check whether --enable-assembly was given.
  17668. if test ${enable_assembly+y}
  17669. then :
  17670. enableval=$enable_assembly;
  17671. else $as_nop
  17672. enable_assembly=yes
  17673. fi
  17674. if test x$enable_assembly = xyes; then
  17675. SUMMARY_modules="${SUMMARY_modules} assembly"
  17676. # Make sure that we don't generate floating point code that would
  17677. # cause illegal instruction exceptions on older processors
  17678. case "$host" in
  17679. *-*-darwin*)
  17680. # Don't need to worry about Apple hardware, it's all SSE capable
  17681. default_ssemath=yes
  17682. ;;
  17683. *64-*-*)
  17684. # x86 64-bit architectures all have SSE instructions
  17685. default_ssemath=yes
  17686. ;;
  17687. *)
  17688. default_ssemath=no
  17689. ;;
  17690. esac
  17691. # Check whether --enable-ssemath was given.
  17692. if test ${enable_ssemath+y}
  17693. then :
  17694. enableval=$enable_ssemath;
  17695. else $as_nop
  17696. enable_ssemath=$default_ssemath
  17697. fi
  17698. if test x$enable_ssemath = xno; then
  17699. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17700. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17701. fi
  17702. fi
  17703. # Check whether --enable-mmx was given.
  17704. if test ${enable_mmx+y}
  17705. then :
  17706. enableval=$enable_mmx;
  17707. else $as_nop
  17708. enable_mmx=yes
  17709. fi
  17710. if test x$enable_mmx = xyes; then
  17711. save_CFLAGS="$CFLAGS"
  17712. have_gcc_mmx=no
  17713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17714. printf %s "checking for GCC -mmmx option... " >&6; }
  17715. mmx_CFLAGS="-mmmx"
  17716. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17718. /* end confdefs.h. */
  17719. #ifdef __MINGW32__
  17720. #include <_mingw.h>
  17721. #ifdef __MINGW64_VERSION_MAJOR
  17722. #include <intrin.h>
  17723. #else
  17724. #include <mmintrin.h>
  17725. #endif
  17726. #else
  17727. #include <mmintrin.h>
  17728. #endif
  17729. #ifndef __MMX__
  17730. #error Assembler CPP flag not enabled
  17731. #endif
  17732. int
  17733. main (void)
  17734. {
  17735. ;
  17736. return 0;
  17737. }
  17738. _ACEOF
  17739. if ac_fn_c_try_compile "$LINENO"
  17740. then :
  17741. have_gcc_mmx=yes
  17742. fi
  17743. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17745. printf "%s\n" "$have_gcc_mmx" >&6; }
  17746. CFLAGS="$save_CFLAGS"
  17747. if test x$have_gcc_mmx = xyes; then
  17748. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17749. SUMMARY_math="${SUMMARY_math} mmx"
  17750. fi
  17751. fi
  17752. # Check whether --enable-3dnow was given.
  17753. if test ${enable_3dnow+y}
  17754. then :
  17755. enableval=$enable_3dnow;
  17756. else $as_nop
  17757. enable_3dnow=yes
  17758. fi
  17759. if test x$enable_3dnow = xyes; then
  17760. save_CFLAGS="$CFLAGS"
  17761. have_gcc_3dnow=no
  17762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17763. printf %s "checking for GCC -m3dnow option... " >&6; }
  17764. amd3dnow_CFLAGS="-m3dnow"
  17765. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17767. /* end confdefs.h. */
  17768. #include <mm3dnow.h>
  17769. #ifndef __3dNOW__
  17770. #error Assembler CPP flag not enabled
  17771. #endif
  17772. int
  17773. main (void)
  17774. {
  17775. void *p = 0;
  17776. _m_prefetch(p);
  17777. ;
  17778. return 0;
  17779. }
  17780. _ACEOF
  17781. if ac_fn_c_try_link "$LINENO"
  17782. then :
  17783. have_gcc_3dnow=yes
  17784. fi
  17785. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17786. conftest$ac_exeext conftest.$ac_ext
  17787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17788. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17789. CFLAGS="$save_CFLAGS"
  17790. if test x$have_gcc_3dnow = xyes; then
  17791. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17792. SUMMARY_math="${SUMMARY_math} 3dnow"
  17793. fi
  17794. fi
  17795. # Check whether --enable-sse was given.
  17796. if test ${enable_sse+y}
  17797. then :
  17798. enableval=$enable_sse;
  17799. else $as_nop
  17800. enable_sse=yes
  17801. fi
  17802. if test x$enable_sse = xyes; then
  17803. save_CFLAGS="$CFLAGS"
  17804. have_gcc_sse=no
  17805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17806. printf %s "checking for GCC -msse option... " >&6; }
  17807. sse_CFLAGS="-msse"
  17808. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17810. /* end confdefs.h. */
  17811. #ifdef __MINGW32__
  17812. #include <_mingw.h>
  17813. #ifdef __MINGW64_VERSION_MAJOR
  17814. #include <intrin.h>
  17815. #else
  17816. #include <xmmintrin.h>
  17817. #endif
  17818. #else
  17819. #include <xmmintrin.h>
  17820. #endif
  17821. #ifndef __SSE__
  17822. #error Assembler CPP flag not enabled
  17823. #endif
  17824. int
  17825. main (void)
  17826. {
  17827. ;
  17828. return 0;
  17829. }
  17830. _ACEOF
  17831. if ac_fn_c_try_compile "$LINENO"
  17832. then :
  17833. have_gcc_sse=yes
  17834. fi
  17835. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17837. printf "%s\n" "$have_gcc_sse" >&6; }
  17838. CFLAGS="$save_CFLAGS"
  17839. if test x$have_gcc_sse = xyes; then
  17840. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17841. SUMMARY_math="${SUMMARY_math} sse"
  17842. fi
  17843. fi
  17844. # Check whether --enable-sse2 was given.
  17845. if test ${enable_sse2+y}
  17846. then :
  17847. enableval=$enable_sse2;
  17848. else $as_nop
  17849. enable_sse2=$default_ssemath
  17850. fi
  17851. if test x$enable_sse2 = xyes; then
  17852. save_CFLAGS="$CFLAGS"
  17853. have_gcc_sse2=no
  17854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17855. printf %s "checking for GCC -msse2 option... " >&6; }
  17856. sse2_CFLAGS="-msse2"
  17857. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17859. /* end confdefs.h. */
  17860. #ifdef __MINGW32__
  17861. #include <_mingw.h>
  17862. #ifdef __MINGW64_VERSION_MAJOR
  17863. #include <intrin.h>
  17864. #else
  17865. #include <emmintrin.h>
  17866. #endif
  17867. #else
  17868. #include <emmintrin.h>
  17869. #endif
  17870. #ifndef __SSE2__
  17871. #error Assembler CPP flag not enabled
  17872. #endif
  17873. int
  17874. main (void)
  17875. {
  17876. ;
  17877. return 0;
  17878. }
  17879. _ACEOF
  17880. if ac_fn_c_try_compile "$LINENO"
  17881. then :
  17882. have_gcc_sse2=yes
  17883. fi
  17884. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17885. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17886. printf "%s\n" "$have_gcc_sse2" >&6; }
  17887. CFLAGS="$save_CFLAGS"
  17888. if test x$have_gcc_sse2 = xyes; then
  17889. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17890. SUMMARY_math="${SUMMARY_math} sse2"
  17891. fi
  17892. fi
  17893. # Check whether --enable-sse3 was given.
  17894. if test ${enable_sse3+y}
  17895. then :
  17896. enableval=$enable_sse3;
  17897. else $as_nop
  17898. enable_sse3=$default_ssemath
  17899. fi
  17900. if test x$enable_sse3 = xyes; then
  17901. save_CFLAGS="$CFLAGS"
  17902. have_gcc_sse3=no
  17903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17904. printf %s "checking for GCC -msse3 option... " >&6; }
  17905. sse3_CFLAGS="-msse3"
  17906. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17908. /* end confdefs.h. */
  17909. #ifdef __MINGW32__
  17910. #include <_mingw.h>
  17911. #ifdef __MINGW64_VERSION_MAJOR
  17912. #include <intrin.h>
  17913. #else
  17914. #include <pmmintrin.h>
  17915. #endif
  17916. #else
  17917. #include <pmmintrin.h>
  17918. #endif
  17919. #ifndef __SSE2__
  17920. #error Assembler CPP flag not enabled
  17921. #endif
  17922. int
  17923. main (void)
  17924. {
  17925. ;
  17926. return 0;
  17927. }
  17928. _ACEOF
  17929. if ac_fn_c_try_compile "$LINENO"
  17930. then :
  17931. have_gcc_sse3=yes
  17932. fi
  17933. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17935. printf "%s\n" "$have_gcc_sse3" >&6; }
  17936. CFLAGS="$save_CFLAGS"
  17937. if test x$have_gcc_sse3 = xyes; then
  17938. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17939. SUMMARY_math="${SUMMARY_math} sse3"
  17940. fi
  17941. fi
  17942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17943. printf %s "checking for immintrin.h... " >&6; }
  17944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17945. /* end confdefs.h. */
  17946. #include <immintrin.h>
  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_immintrin_h_hdr=yes
  17957. else $as_nop
  17958. have_immintrin_h_hdr=no
  17959. fi
  17960. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17962. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17963. if test x$have_immintrin_h_hdr = xyes; then
  17964. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17965. fi
  17966. # Check whether --enable-altivec was given.
  17967. if test ${enable_altivec+y}
  17968. then :
  17969. enableval=$enable_altivec;
  17970. else $as_nop
  17971. enable_altivec=yes
  17972. fi
  17973. if test x$enable_altivec = xyes; then
  17974. save_CFLAGS="$CFLAGS"
  17975. have_gcc_altivec=no
  17976. have_altivec_h_hdr=no
  17977. altivec_CFLAGS="-maltivec"
  17978. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17980. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17982. /* end confdefs.h. */
  17983. #include <altivec.h>
  17984. vector unsigned int vzero() {
  17985. return vec_splat_u32(0);
  17986. }
  17987. int
  17988. main (void)
  17989. {
  17990. ;
  17991. return 0;
  17992. }
  17993. _ACEOF
  17994. if ac_fn_c_try_compile "$LINENO"
  17995. then :
  17996. have_gcc_altivec=yes
  17997. have_altivec_h_hdr=yes
  17998. fi
  17999. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18001. printf "%s\n" "$have_gcc_altivec" >&6; }
  18002. if test x$have_gcc_altivec = xno; then
  18003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18004. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18006. /* end confdefs.h. */
  18007. vector unsigned int vzero() {
  18008. return vec_splat_u32(0);
  18009. }
  18010. int
  18011. main (void)
  18012. {
  18013. ;
  18014. return 0;
  18015. }
  18016. _ACEOF
  18017. if ac_fn_c_try_compile "$LINENO"
  18018. then :
  18019. have_gcc_altivec=yes
  18020. fi
  18021. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18022. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18023. printf "%s\n" "$have_gcc_altivec" >&6; }
  18024. fi
  18025. if test x$have_gcc_altivec = xno; then
  18026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18027. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18028. altivec_CFLAGS="-faltivec"
  18029. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18031. /* end confdefs.h. */
  18032. #include <altivec.h>
  18033. vector unsigned int vzero() {
  18034. return vec_splat_u32(0);
  18035. }
  18036. int
  18037. main (void)
  18038. {
  18039. ;
  18040. return 0;
  18041. }
  18042. _ACEOF
  18043. if ac_fn_c_try_compile "$LINENO"
  18044. then :
  18045. have_gcc_altivec=yes
  18046. have_altivec_h_hdr=yes
  18047. fi
  18048. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18050. printf "%s\n" "$have_gcc_altivec" >&6; }
  18051. fi
  18052. if test x$have_gcc_altivec = xno; then
  18053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18054. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18056. /* end confdefs.h. */
  18057. vector unsigned int vzero() {
  18058. return vec_splat_u32(0);
  18059. }
  18060. int
  18061. main (void)
  18062. {
  18063. ;
  18064. return 0;
  18065. }
  18066. _ACEOF
  18067. if ac_fn_c_try_compile "$LINENO"
  18068. then :
  18069. have_gcc_altivec=yes
  18070. fi
  18071. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18073. printf "%s\n" "$have_gcc_altivec" >&6; }
  18074. fi
  18075. CFLAGS="$save_CFLAGS"
  18076. if test x$have_gcc_altivec = xyes; then
  18077. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18078. if test x$have_altivec_h_hdr = xyes; then
  18079. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18080. fi
  18081. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18082. SUMMARY_math="${SUMMARY_math} altivec"
  18083. fi
  18084. fi
  18085. fi
  18086. # Check whether --enable-lsx was given.
  18087. if test ${enable_lsx+y}
  18088. then :
  18089. enableval=$enable_lsx;
  18090. else $as_nop
  18091. enable_lsx=yes
  18092. fi
  18093. if test x$enable_lsx = xyes; then
  18094. save_CFLAGS="$CFLAGS"
  18095. have_gcc_lsx=no
  18096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18097. printf %s "checking for GCC -mlsx option... " >&6; }
  18098. lsx_CFLAGS="-mlsx"
  18099. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18101. /* end confdefs.h. */
  18102. #ifndef __loongarch_sx
  18103. #error Assembler CPP flag not enabled
  18104. #endif
  18105. int
  18106. main (void)
  18107. {
  18108. ;
  18109. return 0;
  18110. }
  18111. _ACEOF
  18112. if ac_fn_c_try_compile "$LINENO"
  18113. then :
  18114. have_gcc_lsx=yes
  18115. fi
  18116. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18118. printf "%s\n" "$have_gcc_lsx" >&6; }
  18119. CFLAGS="$save_CFLAGS"
  18120. if test x$have_gcc_lsx = xyes; then
  18121. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18122. SUMMARY_math="${SUMMARY_math} lsx"
  18123. fi
  18124. fi
  18125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18126. printf %s "checking for lsxintrin.h... " >&6; }
  18127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18128. /* end confdefs.h. */
  18129. #include <lsxintrin.h>
  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_lsxintrin_h_hdr=yes
  18140. else $as_nop
  18141. have_lsxintrin_h_hdr=no
  18142. fi
  18143. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18145. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18146. if test x$have_lsxintrin_h_hdr = xyes; then
  18147. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18148. fi
  18149. # Check whether --enable-lasx was given.
  18150. if test ${enable_lasx+y}
  18151. then :
  18152. enableval=$enable_lasx;
  18153. else $as_nop
  18154. enable_LASX=yes
  18155. fi
  18156. if test x$enable_LASX = xyes; then
  18157. save_CFLAGS="$CFLAGS"
  18158. have_gcc_lasx=no
  18159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18160. printf %s "checking for GCC -mlasx option... " >&6; }
  18161. lasx_CFLAGS="-mlasx"
  18162. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18164. /* end confdefs.h. */
  18165. #ifndef __loongarch_asx
  18166. #error Assembler CPP flag not enabled
  18167. #endif
  18168. int
  18169. main (void)
  18170. {
  18171. ;
  18172. return 0;
  18173. }
  18174. _ACEOF
  18175. if ac_fn_c_try_compile "$LINENO"
  18176. then :
  18177. have_gcc_lasx=yes
  18178. fi
  18179. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18181. printf "%s\n" "$have_gcc_lasx" >&6; }
  18182. CFLAGS="$save_CFLAGS"
  18183. if test x$have_gcc_lasx = xyes; then
  18184. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18185. SUMMARY_math="${SUMMARY_math} lasx"
  18186. fi
  18187. fi
  18188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18189. printf %s "checking for lasxintrin.h... " >&6; }
  18190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18191. /* end confdefs.h. */
  18192. #include <lasxintrin.h>
  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_lasxintrin_h_hdr=yes
  18203. else $as_nop
  18204. have_lasxintrin_h_hdr=no
  18205. fi
  18206. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18208. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18209. if test x$have_lasxintrin_h_hdr = xyes; then
  18210. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18211. fi
  18212. CheckOSS()
  18213. {
  18214. # Check whether --enable-oss was given.
  18215. if test ${enable_oss+y}
  18216. then :
  18217. enableval=$enable_oss;
  18218. else $as_nop
  18219. enable_oss=maybe
  18220. fi
  18221. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18222. # use sndio instead. So on there, we default to disabled. You can force
  18223. # it on if you really want, though.
  18224. if test x$enable_oss = xmaybe; then
  18225. enable_oss=yes
  18226. case "$host" in
  18227. *-*-openbsd*)
  18228. enable_oss=no;;
  18229. esac
  18230. fi
  18231. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18233. printf %s "checking for OSS audio support... " >&6; }
  18234. have_oss=no
  18235. if test x$have_oss != xyes; then
  18236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18237. /* end confdefs.h. */
  18238. #include <sys/soundcard.h>
  18239. int
  18240. main (void)
  18241. {
  18242. int arg = SNDCTL_DSP_SETFRAGMENT;
  18243. ;
  18244. return 0;
  18245. }
  18246. _ACEOF
  18247. if ac_fn_c_try_compile "$LINENO"
  18248. then :
  18249. have_oss=yes
  18250. fi
  18251. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18252. fi
  18253. if test x$have_oss != xyes; then
  18254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18255. /* end confdefs.h. */
  18256. #include <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. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  18269. fi
  18270. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18271. fi
  18272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18273. printf "%s\n" "$have_oss" >&6; }
  18274. if test x$have_oss = xyes; then
  18275. SUMMARY_audio="${SUMMARY_audio} oss"
  18276. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18277. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18278. have_audio=yes
  18279. # We may need to link with ossaudio emulation library
  18280. case "$host" in
  18281. *-*-openbsd*|*-*-netbsd*)
  18282. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18283. esac
  18284. fi
  18285. fi
  18286. }
  18287. CheckALSA()
  18288. {
  18289. # Check whether --enable-alsa was given.
  18290. if test ${enable_alsa+y}
  18291. then :
  18292. enableval=$enable_alsa;
  18293. else $as_nop
  18294. enable_alsa=yes
  18295. fi
  18296. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18297. alsa_save_CFLAGS="$CFLAGS"
  18298. alsa_save_LDFLAGS="$LDFLAGS"
  18299. alsa_save_LIBS="$LIBS"
  18300. alsa_found=yes
  18301. # Check whether --with-alsa-prefix was given.
  18302. if test ${with_alsa_prefix+y}
  18303. then :
  18304. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18305. else $as_nop
  18306. alsa_prefix=""
  18307. fi
  18308. # Check whether --with-alsa-inc-prefix was given.
  18309. if test ${with_alsa_inc_prefix+y}
  18310. then :
  18311. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18312. else $as_nop
  18313. alsa_inc_prefix=""
  18314. fi
  18315. # Check whether --enable-alsatest was given.
  18316. if test ${enable_alsatest+y}
  18317. then :
  18318. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18319. else $as_nop
  18320. enable_alsatest=yes
  18321. fi
  18322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18323. printf %s "checking for ALSA CFLAGS... " >&6; }
  18324. if test "$alsa_inc_prefix" != "" ; then
  18325. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18326. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18327. fi
  18328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18329. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18331. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18332. if test "$alsa_prefix" != "" ; then
  18333. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18334. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18335. fi
  18336. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18337. LIBS=`echo $LIBS | sed 's/-lm//'`
  18338. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18339. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18340. LIBS=`echo $LIBS | sed 's/ //'`
  18341. LIBS="$ALSA_LIBS $LIBS"
  18342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18343. printf "%s\n" "$ALSA_LIBS" >&6; }
  18344. min_alsa_version=1.0.11
  18345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18346. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18347. no_alsa=""
  18348. alsa_min_major_version=`echo $min_alsa_version | \
  18349. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18350. alsa_min_minor_version=`echo $min_alsa_version | \
  18351. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18352. alsa_min_micro_version=`echo $min_alsa_version | \
  18353. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18354. ac_ext=c
  18355. ac_cpp='$CPP $CPPFLAGS'
  18356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18360. /* end confdefs.h. */
  18361. #include <alsa/asoundlib.h>
  18362. int
  18363. main (void)
  18364. {
  18365. /* ensure backward compatibility */
  18366. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18367. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18368. #endif
  18369. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18370. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18371. #endif
  18372. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18373. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18374. #endif
  18375. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18376. exit(0);
  18377. # else
  18378. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18379. # error not present
  18380. # endif
  18381. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18382. exit(0);
  18383. # else
  18384. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18385. # error not present
  18386. # endif
  18387. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18388. # error not present
  18389. # endif
  18390. # endif
  18391. # endif
  18392. exit(0);
  18393. ;
  18394. return 0;
  18395. }
  18396. _ACEOF
  18397. if ac_fn_c_try_compile "$LINENO"
  18398. then :
  18399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18400. printf "%s\n" "found." >&6; }
  18401. else $as_nop
  18402. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18403. printf "%s\n" "not present." >&6; }
  18404. alsa_found=no
  18405. fi
  18406. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18407. ac_ext=c
  18408. ac_cpp='$CPP $CPPFLAGS'
  18409. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18410. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18411. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18412. if test "x$enable_alsatest" = "xyes"; then
  18413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18414. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18415. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18416. then :
  18417. printf %s "(cached) " >&6
  18418. else $as_nop
  18419. ac_check_lib_save_LIBS=$LIBS
  18420. LIBS="-lasound $LIBS"
  18421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18422. /* end confdefs.h. */
  18423. /* Override any GCC internal prototype to avoid an error.
  18424. Use char because int might match the return type of a GCC
  18425. builtin and then its argument prototype would still apply. */
  18426. char snd_ctl_open ();
  18427. int
  18428. main (void)
  18429. {
  18430. return snd_ctl_open ();
  18431. ;
  18432. return 0;
  18433. }
  18434. _ACEOF
  18435. if ac_fn_c_try_link "$LINENO"
  18436. then :
  18437. ac_cv_lib_asound_snd_ctl_open=yes
  18438. else $as_nop
  18439. ac_cv_lib_asound_snd_ctl_open=no
  18440. fi
  18441. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18442. conftest$ac_exeext conftest.$ac_ext
  18443. LIBS=$ac_check_lib_save_LIBS
  18444. fi
  18445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18446. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18447. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18448. then :
  18449. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18450. LIBS="-lasound $LIBS"
  18451. else $as_nop
  18452. alsa_found=no
  18453. fi
  18454. fi
  18455. if test "x$alsa_found" = "xyes" ; then
  18456. have_alsa=yes
  18457. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18458. LIBS=`echo $LIBS | sed 's/ //'`
  18459. LIBS="-lasound $LIBS"
  18460. fi
  18461. if test "x$alsa_found" = "xno" ; then
  18462. have_alsa=no
  18463. CFLAGS="$alsa_save_CFLAGS"
  18464. LDFLAGS="$alsa_save_LDFLAGS"
  18465. LIBS="$alsa_save_LIBS"
  18466. ALSA_CFLAGS=""
  18467. ALSA_LIBS=""
  18468. fi
  18469. # Restore all flags from before the ALSA detection runs
  18470. CFLAGS="$alsa_save_CFLAGS"
  18471. LDFLAGS="$alsa_save_LDFLAGS"
  18472. LIBS="$alsa_save_LIBS"
  18473. if test x$have_alsa = xyes; then
  18474. # Check whether --enable-alsa-shared was given.
  18475. if test ${enable_alsa_shared+y}
  18476. then :
  18477. enableval=$enable_alsa_shared;
  18478. else $as_nop
  18479. enable_alsa_shared=yes
  18480. fi
  18481. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18482. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18483. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18484. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18485. if test x$have_loadso != xyes && \
  18486. test x$enable_alsa_shared = xyes; then
  18487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18488. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18489. fi
  18490. if test x$have_loadso = xyes && \
  18491. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18492. echo "-- dynamic libasound -> $alsa_lib"
  18493. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18494. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18495. else
  18496. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18497. SUMMARY_audio="${SUMMARY_audio} alsa"
  18498. fi
  18499. have_audio=yes
  18500. fi
  18501. fi
  18502. }
  18503. CheckJACK()
  18504. {
  18505. # Check whether --enable-jack was given.
  18506. if test ${enable_jack+y}
  18507. then :
  18508. enableval=$enable_jack;
  18509. else $as_nop
  18510. enable_jack=yes
  18511. fi
  18512. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18513. pkg_failed=no
  18514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18515. printf %s "checking for jack >= 0.125... " >&6; }
  18516. if test -n "$JACK_CFLAGS"; then
  18517. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18518. elif test -n "$PKG_CONFIG"; then
  18519. if test -n "$PKG_CONFIG" && \
  18520. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18521. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18522. ac_status=$?
  18523. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18524. test $ac_status = 0; }; then
  18525. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18526. test "x$?" != "x0" && pkg_failed=yes
  18527. else
  18528. pkg_failed=yes
  18529. fi
  18530. else
  18531. pkg_failed=untried
  18532. fi
  18533. if test -n "$JACK_LIBS"; then
  18534. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18535. elif test -n "$PKG_CONFIG"; then
  18536. if test -n "$PKG_CONFIG" && \
  18537. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18538. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18539. ac_status=$?
  18540. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18541. test $ac_status = 0; }; then
  18542. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18543. test "x$?" != "x0" && pkg_failed=yes
  18544. else
  18545. pkg_failed=yes
  18546. fi
  18547. else
  18548. pkg_failed=untried
  18549. fi
  18550. if test $pkg_failed = yes; then
  18551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18552. printf "%s\n" "no" >&6; }
  18553. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18554. _pkg_short_errors_supported=yes
  18555. else
  18556. _pkg_short_errors_supported=no
  18557. fi
  18558. if test $_pkg_short_errors_supported = yes; then
  18559. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18560. else
  18561. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18562. fi
  18563. # Put the nasty error message in config.log where it belongs
  18564. echo "$JACK_PKG_ERRORS" >&5
  18565. audio_jack=no
  18566. elif test $pkg_failed = untried; then
  18567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18568. printf "%s\n" "no" >&6; }
  18569. audio_jack=no
  18570. else
  18571. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18572. JACK_LIBS=$pkg_cv_JACK_LIBS
  18573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18574. printf "%s\n" "yes" >&6; }
  18575. audio_jack=yes
  18576. fi
  18577. if test x$audio_jack = xyes; then
  18578. # Check whether --enable-jack-shared was given.
  18579. if test ${enable_jack_shared+y}
  18580. then :
  18581. enableval=$enable_jack_shared;
  18582. else $as_nop
  18583. enable_jack_shared=yes
  18584. fi
  18585. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18586. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18587. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18588. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18589. if test x$have_loadso != xyes && \
  18590. test x$enable_jack_shared = xyes; then
  18591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18592. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18593. fi
  18594. if test x$have_loadso = xyes && \
  18595. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18596. echo "-- dynamic libjack -> $jack_lib"
  18597. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18598. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18599. case "$host" in
  18600. # On Solaris, jack must be linked deferred explicitly
  18601. # to prevent undefined symbol failures.
  18602. *-*-solaris*)
  18603. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18605. esac
  18606. else
  18607. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18608. SUMMARY_audio="${SUMMARY_audio} jack"
  18609. fi
  18610. have_audio=yes
  18611. fi
  18612. fi
  18613. }
  18614. CheckESD()
  18615. {
  18616. # Check whether --enable-esd was given.
  18617. if test ${enable_esd+y}
  18618. then :
  18619. enableval=$enable_esd;
  18620. else $as_nop
  18621. enable_esd=yes
  18622. fi
  18623. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18624. pkg_failed=no
  18625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18626. printf %s "checking for esound >= 0.2.8... " >&6; }
  18627. if test -n "$ESD_CFLAGS"; then
  18628. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18629. elif test -n "$PKG_CONFIG"; then
  18630. if test -n "$PKG_CONFIG" && \
  18631. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18632. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18633. ac_status=$?
  18634. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18635. test $ac_status = 0; }; then
  18636. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18637. test "x$?" != "x0" && pkg_failed=yes
  18638. else
  18639. pkg_failed=yes
  18640. fi
  18641. else
  18642. pkg_failed=untried
  18643. fi
  18644. if test -n "$ESD_LIBS"; then
  18645. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18646. elif test -n "$PKG_CONFIG"; then
  18647. if test -n "$PKG_CONFIG" && \
  18648. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18649. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18650. ac_status=$?
  18651. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18652. test $ac_status = 0; }; then
  18653. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18654. test "x$?" != "x0" && pkg_failed=yes
  18655. else
  18656. pkg_failed=yes
  18657. fi
  18658. else
  18659. pkg_failed=untried
  18660. fi
  18661. if test $pkg_failed = yes; then
  18662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18663. printf "%s\n" "no" >&6; }
  18664. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18665. _pkg_short_errors_supported=yes
  18666. else
  18667. _pkg_short_errors_supported=no
  18668. fi
  18669. if test $_pkg_short_errors_supported = yes; then
  18670. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18671. else
  18672. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18673. fi
  18674. # Put the nasty error message in config.log where it belongs
  18675. echo "$ESD_PKG_ERRORS" >&5
  18676. have_esd=no
  18677. elif test $pkg_failed = untried; then
  18678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18679. printf "%s\n" "no" >&6; }
  18680. have_esd=no
  18681. else
  18682. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18683. ESD_LIBS=$pkg_cv_ESD_LIBS
  18684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18685. printf "%s\n" "yes" >&6; }
  18686. have_esd=yes
  18687. fi
  18688. if test x$have_esd = xno; then
  18689. # Check whether --with-esd-prefix was given.
  18690. if test ${with_esd_prefix+y}
  18691. then :
  18692. withval=$with_esd_prefix; esd_prefix="$withval"
  18693. else $as_nop
  18694. esd_prefix=""
  18695. fi
  18696. # Check whether --with-esd-exec-prefix was given.
  18697. if test ${with_esd_exec_prefix+y}
  18698. then :
  18699. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18700. else $as_nop
  18701. esd_exec_prefix=""
  18702. fi
  18703. # Check whether --enable-esdtest was given.
  18704. if test ${enable_esdtest+y}
  18705. then :
  18706. enableval=$enable_esdtest;
  18707. else $as_nop
  18708. enable_esdtest=yes
  18709. fi
  18710. if test x$esd_exec_prefix != x ; then
  18711. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18712. if test x${ESD_CONFIG+set} != xset ; then
  18713. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18714. fi
  18715. fi
  18716. if test x$esd_prefix != x ; then
  18717. esd_args="$esd_args --prefix=$esd_prefix"
  18718. if test x${ESD_CONFIG+set} != xset ; then
  18719. ESD_CONFIG=$esd_prefix/bin/esd-config
  18720. fi
  18721. fi
  18722. # Extract the first word of "esd-config", so it can be a program name with args.
  18723. set dummy esd-config; ac_word=$2
  18724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18725. printf %s "checking for $ac_word... " >&6; }
  18726. if test ${ac_cv_path_ESD_CONFIG+y}
  18727. then :
  18728. printf %s "(cached) " >&6
  18729. else $as_nop
  18730. case $ESD_CONFIG in
  18731. [\\/]* | ?:[\\/]*)
  18732. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18733. ;;
  18734. *)
  18735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18736. for as_dir in $PATH
  18737. do
  18738. IFS=$as_save_IFS
  18739. case $as_dir in #(((
  18740. '') as_dir=./ ;;
  18741. */) ;;
  18742. *) as_dir=$as_dir/ ;;
  18743. esac
  18744. for ac_exec_ext in '' $ac_executable_extensions; do
  18745. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18746. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18747. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18748. break 2
  18749. fi
  18750. done
  18751. done
  18752. IFS=$as_save_IFS
  18753. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18754. ;;
  18755. esac
  18756. fi
  18757. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18758. if test -n "$ESD_CONFIG"; then
  18759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18760. printf "%s\n" "$ESD_CONFIG" >&6; }
  18761. else
  18762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18763. printf "%s\n" "no" >&6; }
  18764. fi
  18765. min_esd_version=0.2.8
  18766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18767. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18768. no_esd=""
  18769. if test "$ESD_CONFIG" = "no" ; then
  18770. no_esd=yes
  18771. else
  18772. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18773. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18774. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18775. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18776. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18777. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18778. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18779. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18780. if test "x$enable_esdtest" = "xyes" ; then
  18781. ac_ext=c
  18782. ac_cpp='$CPP $CPPFLAGS'
  18783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18786. ac_save_CFLAGS="$CFLAGS"
  18787. ac_save_LIBS="$LIBS"
  18788. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18789. LIBS="$LIBS $ESD_LIBS"
  18790. rm -f conf.esdtest
  18791. if test "$cross_compiling" = yes
  18792. then :
  18793. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18794. else $as_nop
  18795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18796. /* end confdefs.h. */
  18797. #include <stdio.h>
  18798. #include <stdlib.h>
  18799. #include <esd.h>
  18800. int main (void)
  18801. {
  18802. int major, minor, micro;
  18803. FILE *fp = fopen("conf.esdtest", "w");
  18804. if (fp) fclose(fp);
  18805. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18806. printf("%s, bad version string\n", "$min_esd_version");
  18807. exit(1);
  18808. }
  18809. if (($esd_major_version > major) ||
  18810. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18811. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18812. {
  18813. return 0;
  18814. }
  18815. else
  18816. {
  18817. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18818. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18819. printf("*** best to upgrade to the required version.\n");
  18820. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18821. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18822. printf("*** config.cache before re-running configure\n");
  18823. return 1;
  18824. }
  18825. }
  18826. _ACEOF
  18827. if ac_fn_c_try_run "$LINENO"
  18828. then :
  18829. else $as_nop
  18830. no_esd=yes
  18831. fi
  18832. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18833. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18834. fi
  18835. CFLAGS="$ac_save_CFLAGS"
  18836. LIBS="$ac_save_LIBS"
  18837. ac_ext=c
  18838. ac_cpp='$CPP $CPPFLAGS'
  18839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18842. fi
  18843. fi
  18844. if test "x$no_esd" = x ; then
  18845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18846. printf "%s\n" "yes" >&6; }
  18847. have_esd=yes
  18848. else
  18849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18850. printf "%s\n" "no" >&6; }
  18851. if test "$ESD_CONFIG" = "no" ; then
  18852. :
  18853. else
  18854. if test -f conf.esdtest ; then
  18855. :
  18856. else
  18857. echo "*** Could not run ESD test program, checking why..."
  18858. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18859. LIBS="$LIBS $ESD_LIBS"
  18860. ac_ext=c
  18861. ac_cpp='$CPP $CPPFLAGS'
  18862. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18863. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18864. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18866. /* end confdefs.h. */
  18867. #include <stdio.h>
  18868. #include <esd.h>
  18869. int
  18870. main (void)
  18871. {
  18872. return 0;
  18873. ;
  18874. return 0;
  18875. }
  18876. _ACEOF
  18877. if ac_fn_c_try_link "$LINENO"
  18878. then :
  18879. echo "*** The test program compiled, but did not run. This usually means"
  18880. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18881. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18882. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18883. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18884. echo "*** is required on your system"
  18885. echo "***"
  18886. echo "*** If you have an old version installed, it is best to remove it, although"
  18887. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18888. else $as_nop
  18889. echo "*** The test program failed to compile or link. See the file config.log for the"
  18890. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18891. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18892. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18893. fi
  18894. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18895. conftest$ac_exeext conftest.$ac_ext
  18896. CFLAGS="$ac_save_CFLAGS"
  18897. LIBS="$ac_save_LIBS"
  18898. ac_ext=c
  18899. ac_cpp='$CPP $CPPFLAGS'
  18900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18903. fi
  18904. fi
  18905. ESD_CFLAGS=""
  18906. ESD_LIBS=""
  18907. have_esd=no
  18908. fi
  18909. rm -f conf.esdtest
  18910. fi
  18911. if test x$have_esd = xyes; then
  18912. # Check whether --enable-esd-shared was given.
  18913. if test ${enable_esd_shared+y}
  18914. then :
  18915. enableval=$enable_esd_shared;
  18916. else $as_nop
  18917. enable_esd_shared=yes
  18918. fi
  18919. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18920. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18921. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18922. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18923. if test x$have_loadso != xyes && \
  18924. test x$enable_esd_shared = xyes; then
  18925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18926. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18927. fi
  18928. if test x$have_loadso = xyes && \
  18929. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18930. echo "-- dynamic libesd -> $esd_lib"
  18931. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18932. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18933. else
  18934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18935. SUMMARY_audio="${SUMMARY_audio} esd"
  18936. fi
  18937. have_audio=yes
  18938. fi
  18939. fi
  18940. }
  18941. CheckPipewire()
  18942. {
  18943. # Check whether --enable-pipewire was given.
  18944. if test ${enable_pipewire+y}
  18945. then :
  18946. enableval=$enable_pipewire;
  18947. else $as_nop
  18948. enable_pipewire=yes
  18949. fi
  18950. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18951. pkg_failed=no
  18952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18953. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18954. if test -n "$PIPEWIRE_CFLAGS"; then
  18955. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18956. elif test -n "$PKG_CONFIG"; then
  18957. if test -n "$PKG_CONFIG" && \
  18958. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18959. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18960. ac_status=$?
  18961. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18962. test $ac_status = 0; }; then
  18963. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18964. test "x$?" != "x0" && pkg_failed=yes
  18965. else
  18966. pkg_failed=yes
  18967. fi
  18968. else
  18969. pkg_failed=untried
  18970. fi
  18971. if test -n "$PIPEWIRE_LIBS"; then
  18972. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18973. elif test -n "$PKG_CONFIG"; then
  18974. if test -n "$PKG_CONFIG" && \
  18975. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18976. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18977. ac_status=$?
  18978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18979. test $ac_status = 0; }; then
  18980. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18981. test "x$?" != "x0" && pkg_failed=yes
  18982. else
  18983. pkg_failed=yes
  18984. fi
  18985. else
  18986. pkg_failed=untried
  18987. fi
  18988. if test $pkg_failed = yes; then
  18989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18990. printf "%s\n" "no" >&6; }
  18991. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18992. _pkg_short_errors_supported=yes
  18993. else
  18994. _pkg_short_errors_supported=no
  18995. fi
  18996. if test $_pkg_short_errors_supported = yes; then
  18997. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18998. else
  18999. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  19000. fi
  19001. # Put the nasty error message in config.log where it belongs
  19002. echo "$PIPEWIRE_PKG_ERRORS" >&5
  19003. audio_pipewire=no
  19004. elif test $pkg_failed = untried; then
  19005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19006. printf "%s\n" "no" >&6; }
  19007. audio_pipewire=no
  19008. else
  19009. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  19010. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  19011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19012. printf "%s\n" "yes" >&6; }
  19013. audio_pipewire=yes
  19014. fi
  19015. if test x$audio_pipewire = xyes; then
  19016. # Check whether --enable-pipewire-shared was given.
  19017. if test ${enable_pipewire_shared+y}
  19018. then :
  19019. enableval=$enable_pipewire_shared;
  19020. else $as_nop
  19021. enable_pipewire_shared=yes
  19022. fi
  19023. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19024. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19025. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19026. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19027. if test x$have_loadso != xyes && \
  19028. test x$enable_pipewire_shared = xyes; then
  19029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19030. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19031. fi
  19032. if test x$have_loadso = xyes && \
  19033. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19034. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19035. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19036. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19037. else
  19038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19039. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19040. fi
  19041. have_audio=yes
  19042. fi
  19043. fi
  19044. }
  19045. CheckPulseAudio()
  19046. {
  19047. # Check whether --enable-pulseaudio was given.
  19048. if test ${enable_pulseaudio+y}
  19049. then :
  19050. enableval=$enable_pulseaudio;
  19051. else $as_nop
  19052. enable_pulseaudio=yes
  19053. fi
  19054. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19055. pkg_failed=no
  19056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19057. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19058. if test -n "$PULSEAUDIO_CFLAGS"; then
  19059. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19060. elif test -n "$PKG_CONFIG"; then
  19061. if test -n "$PKG_CONFIG" && \
  19062. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19063. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19064. ac_status=$?
  19065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19066. test $ac_status = 0; }; then
  19067. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19068. test "x$?" != "x0" && pkg_failed=yes
  19069. else
  19070. pkg_failed=yes
  19071. fi
  19072. else
  19073. pkg_failed=untried
  19074. fi
  19075. if test -n "$PULSEAUDIO_LIBS"; then
  19076. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19077. elif test -n "$PKG_CONFIG"; then
  19078. if test -n "$PKG_CONFIG" && \
  19079. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19080. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19081. ac_status=$?
  19082. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19083. test $ac_status = 0; }; then
  19084. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19085. test "x$?" != "x0" && pkg_failed=yes
  19086. else
  19087. pkg_failed=yes
  19088. fi
  19089. else
  19090. pkg_failed=untried
  19091. fi
  19092. if test $pkg_failed = yes; then
  19093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19094. printf "%s\n" "no" >&6; }
  19095. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19096. _pkg_short_errors_supported=yes
  19097. else
  19098. _pkg_short_errors_supported=no
  19099. fi
  19100. if test $_pkg_short_errors_supported = yes; then
  19101. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19102. else
  19103. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19104. fi
  19105. # Put the nasty error message in config.log where it belongs
  19106. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19107. audio_pulseaudio=no
  19108. elif test $pkg_failed = untried; then
  19109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19110. printf "%s\n" "no" >&6; }
  19111. audio_pulseaudio=no
  19112. else
  19113. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19114. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19116. printf "%s\n" "yes" >&6; }
  19117. audio_pulseaudio=yes
  19118. fi
  19119. if test x$audio_pulseaudio = xyes; then
  19120. # Check whether --enable-pulseaudio-shared was given.
  19121. if test ${enable_pulseaudio_shared+y}
  19122. then :
  19123. enableval=$enable_pulseaudio_shared;
  19124. else $as_nop
  19125. enable_pulseaudio_shared=yes
  19126. fi
  19127. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19128. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19129. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19130. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19131. if test x$have_loadso != xyes && \
  19132. test x$enable_pulseaudio_shared = xyes; then
  19133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19134. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19135. fi
  19136. if test x$have_loadso = xyes && \
  19137. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19138. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19139. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19140. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19141. case "$host" in
  19142. # On Solaris, pulseaudio must be linked deferred explicitly
  19143. # to prevent undefined symbol failures.
  19144. *-*-solaris*)
  19145. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19146. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19147. esac
  19148. else
  19149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19150. SUMMARY_audio="${SUMMARY_audio} pulse"
  19151. fi
  19152. have_audio=yes
  19153. fi
  19154. fi
  19155. }
  19156. CheckARTSC()
  19157. {
  19158. # Check whether --enable-arts was given.
  19159. if test ${enable_arts+y}
  19160. then :
  19161. enableval=$enable_arts;
  19162. else $as_nop
  19163. enable_arts=yes
  19164. fi
  19165. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19166. # Extract the first word of "artsc-config", so it can be a program name with args.
  19167. set dummy artsc-config; ac_word=$2
  19168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19169. printf %s "checking for $ac_word... " >&6; }
  19170. if test ${ac_cv_path_ARTSCONFIG+y}
  19171. then :
  19172. printf %s "(cached) " >&6
  19173. else $as_nop
  19174. case $ARTSCONFIG in
  19175. [\\/]* | ?:[\\/]*)
  19176. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19177. ;;
  19178. *)
  19179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19180. for as_dir in $PATH
  19181. do
  19182. IFS=$as_save_IFS
  19183. case $as_dir in #(((
  19184. '') as_dir=./ ;;
  19185. */) ;;
  19186. *) as_dir=$as_dir/ ;;
  19187. esac
  19188. for ac_exec_ext in '' $ac_executable_extensions; do
  19189. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19190. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19191. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19192. break 2
  19193. fi
  19194. done
  19195. done
  19196. IFS=$as_save_IFS
  19197. ;;
  19198. esac
  19199. fi
  19200. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19201. if test -n "$ARTSCONFIG"; then
  19202. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19203. printf "%s\n" "$ARTSCONFIG" >&6; }
  19204. else
  19205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19206. printf "%s\n" "no" >&6; }
  19207. fi
  19208. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19209. : # arts isn't installed
  19210. else
  19211. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19212. ARTS_LIBS=`$ARTSCONFIG --libs`
  19213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19214. printf %s "checking for aRts development environment... " >&6; }
  19215. audio_arts=no
  19216. save_CFLAGS="$CFLAGS"
  19217. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19219. /* end confdefs.h. */
  19220. #include <artsc.h>
  19221. int
  19222. main (void)
  19223. {
  19224. arts_stream_t stream;
  19225. ;
  19226. return 0;
  19227. }
  19228. _ACEOF
  19229. if ac_fn_c_try_compile "$LINENO"
  19230. then :
  19231. audio_arts=yes
  19232. fi
  19233. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19234. CFLAGS="$save_CFLAGS"
  19235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19236. printf "%s\n" "$audio_arts" >&6; }
  19237. if test x$audio_arts = xyes; then
  19238. # Check whether --enable-arts-shared was given.
  19239. if test ${enable_arts_shared+y}
  19240. then :
  19241. enableval=$enable_arts_shared;
  19242. else $as_nop
  19243. enable_arts_shared=yes
  19244. fi
  19245. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19246. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19247. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19248. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19249. if test x$have_loadso != xyes && \
  19250. test x$enable_arts_shared = xyes; then
  19251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19252. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19253. fi
  19254. if test x$have_loadso = xyes && \
  19255. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19256. echo "-- dynamic libartsc -> $arts_lib"
  19257. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19258. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19259. else
  19260. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19261. SUMMARY_audio="${SUMMARY_audio} arts"
  19262. fi
  19263. have_audio=yes
  19264. fi
  19265. fi
  19266. fi
  19267. }
  19268. CheckNAS()
  19269. {
  19270. # Check whether --enable-nas was given.
  19271. if test ${enable_nas+y}
  19272. then :
  19273. enableval=$enable_nas;
  19274. else $as_nop
  19275. enable_nas=yes
  19276. fi
  19277. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19278. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19279. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19280. then :
  19281. have_nas_hdr=yes
  19282. fi
  19283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19284. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19285. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19286. then :
  19287. printf %s "(cached) " >&6
  19288. else $as_nop
  19289. ac_check_lib_save_LIBS=$LIBS
  19290. LIBS="-laudio $LIBS"
  19291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19292. /* end confdefs.h. */
  19293. /* Override any GCC internal prototype to avoid an error.
  19294. Use char because int might match the return type of a GCC
  19295. builtin and then its argument prototype would still apply. */
  19296. char AuOpenServer ();
  19297. int
  19298. main (void)
  19299. {
  19300. return AuOpenServer ();
  19301. ;
  19302. return 0;
  19303. }
  19304. _ACEOF
  19305. if ac_fn_c_try_link "$LINENO"
  19306. then :
  19307. ac_cv_lib_audio_AuOpenServer=yes
  19308. else $as_nop
  19309. ac_cv_lib_audio_AuOpenServer=no
  19310. fi
  19311. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19312. conftest$ac_exeext conftest.$ac_ext
  19313. LIBS=$ac_check_lib_save_LIBS
  19314. fi
  19315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19316. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19317. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19318. then :
  19319. have_nas_lib=yes
  19320. fi
  19321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19322. printf %s "checking for NAS audio support... " >&6; }
  19323. have_nas=no
  19324. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19325. have_nas=yes
  19326. NAS_LIBS="-laudio"
  19327. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19328. have_nas=yes
  19329. NAS_CFLAGS="-I/usr/X11R6/include/"
  19330. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19331. fi
  19332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19333. printf "%s\n" "$have_nas" >&6; }
  19334. if test x$have_nas = xyes; then
  19335. # Check whether --enable-nas-shared was given.
  19336. if test ${enable_nas_shared+y}
  19337. then :
  19338. enableval=$enable_nas_shared;
  19339. else $as_nop
  19340. enable_nas_shared=yes
  19341. fi
  19342. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19343. if test x$have_loadso != xyes && \
  19344. test x$enable_nas_shared = xyes; then
  19345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19346. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19347. fi
  19348. if test x$have_loadso = xyes && \
  19349. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19350. echo "-- dynamic libaudio -> $nas_lib"
  19351. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19352. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19353. else
  19354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19355. SUMMARY_audio="${SUMMARY_audio} nas"
  19356. fi
  19357. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19358. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19359. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19360. have_audio=yes
  19361. fi
  19362. fi
  19363. }
  19364. CheckSNDIO()
  19365. {
  19366. # Check whether --enable-sndio was given.
  19367. if test ${enable_sndio+y}
  19368. then :
  19369. enableval=$enable_sndio;
  19370. else $as_nop
  19371. enable_sndio=yes
  19372. fi
  19373. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19374. pkg_failed=no
  19375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19376. printf %s "checking for sndio... " >&6; }
  19377. if test -n "$SNDIO_CFLAGS"; then
  19378. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19379. elif test -n "$PKG_CONFIG"; then
  19380. if test -n "$PKG_CONFIG" && \
  19381. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19382. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19383. ac_status=$?
  19384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19385. test $ac_status = 0; }; then
  19386. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19387. test "x$?" != "x0" && pkg_failed=yes
  19388. else
  19389. pkg_failed=yes
  19390. fi
  19391. else
  19392. pkg_failed=untried
  19393. fi
  19394. if test -n "$SNDIO_LIBS"; then
  19395. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19396. elif test -n "$PKG_CONFIG"; then
  19397. if test -n "$PKG_CONFIG" && \
  19398. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19399. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19400. ac_status=$?
  19401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19402. test $ac_status = 0; }; then
  19403. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19404. test "x$?" != "x0" && pkg_failed=yes
  19405. else
  19406. pkg_failed=yes
  19407. fi
  19408. else
  19409. pkg_failed=untried
  19410. fi
  19411. if test $pkg_failed = yes; then
  19412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19413. printf "%s\n" "no" >&6; }
  19414. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19415. _pkg_short_errors_supported=yes
  19416. else
  19417. _pkg_short_errors_supported=no
  19418. fi
  19419. if test $_pkg_short_errors_supported = yes; then
  19420. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19421. else
  19422. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19423. fi
  19424. # Put the nasty error message in config.log where it belongs
  19425. echo "$SNDIO_PKG_ERRORS" >&5
  19426. audio_sndio=no
  19427. elif test $pkg_failed = untried; then
  19428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19429. printf "%s\n" "no" >&6; }
  19430. audio_sndio=no
  19431. else
  19432. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19433. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19435. printf "%s\n" "yes" >&6; }
  19436. audio_sndio=yes
  19437. fi
  19438. if test x$audio_sndio = xyes; then
  19439. # Check whether --enable-sndio-shared was given.
  19440. if test ${enable_sndio_shared+y}
  19441. then :
  19442. enableval=$enable_sndio_shared;
  19443. else $as_nop
  19444. enable_sndio_shared=yes
  19445. fi
  19446. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19447. if test x$have_loadso != xyes && \
  19448. test x$enable_sndio_shared = xyes; then
  19449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19450. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19451. fi
  19452. if test x$have_loadso = xyes && \
  19453. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19454. echo "-- dynamic libsndio -> $sndio_lib"
  19455. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19456. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19457. else
  19458. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19459. SUMMARY_audio="${SUMMARY_audio} sndio"
  19460. fi
  19461. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19462. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19463. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19464. have_audio=yes
  19465. fi
  19466. fi
  19467. }
  19468. CheckFusionSound()
  19469. {
  19470. # Check whether --enable-fusionsound was given.
  19471. if test ${enable_fusionsound+y}
  19472. then :
  19473. enableval=$enable_fusionsound;
  19474. else $as_nop
  19475. enable_fusionsound=no
  19476. fi
  19477. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19478. pkg_failed=no
  19479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19480. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19481. if test -n "$FUSIONSOUND_CFLAGS"; then
  19482. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19483. elif test -n "$PKG_CONFIG"; then
  19484. if test -n "$PKG_CONFIG" && \
  19485. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19486. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19487. ac_status=$?
  19488. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19489. test $ac_status = 0; }; then
  19490. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19491. test "x$?" != "x0" && pkg_failed=yes
  19492. else
  19493. pkg_failed=yes
  19494. fi
  19495. else
  19496. pkg_failed=untried
  19497. fi
  19498. if test -n "$FUSIONSOUND_LIBS"; then
  19499. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19500. elif test -n "$PKG_CONFIG"; then
  19501. if test -n "$PKG_CONFIG" && \
  19502. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19503. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19504. ac_status=$?
  19505. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19506. test $ac_status = 0; }; then
  19507. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19508. test "x$?" != "x0" && pkg_failed=yes
  19509. else
  19510. pkg_failed=yes
  19511. fi
  19512. else
  19513. pkg_failed=untried
  19514. fi
  19515. if test $pkg_failed = yes; then
  19516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19517. printf "%s\n" "no" >&6; }
  19518. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19519. _pkg_short_errors_supported=yes
  19520. else
  19521. _pkg_short_errors_supported=no
  19522. fi
  19523. if test $_pkg_short_errors_supported = yes; then
  19524. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19525. else
  19526. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19527. fi
  19528. # Put the nasty error message in config.log where it belongs
  19529. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19530. fusionsound=no
  19531. elif test $pkg_failed = untried; then
  19532. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19533. printf "%s\n" "no" >&6; }
  19534. fusionsound=no
  19535. else
  19536. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19537. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19539. printf "%s\n" "yes" >&6; }
  19540. fusionsound=yes
  19541. fi
  19542. if test x$fusionsound = xyes; then
  19543. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19544. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19545. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19546. # Check whether --enable-fusionsound-shared was given.
  19547. if test ${enable_fusionsound_shared+y}
  19548. then :
  19549. enableval=$enable_fusionsound_shared;
  19550. else $as_nop
  19551. enable_fusionsound_shared=yes
  19552. fi
  19553. fusionsound_shared=no
  19554. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19555. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19556. if test x$have_loadso != xyes && \
  19557. test x$enable_fusionsound_shared = xyes; then
  19558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19559. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19560. fi
  19561. if test x$have_loadso = xyes && \
  19562. test x$enable_fusionsound_shared = xyes; then
  19563. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19564. fusionsound_shared=yes
  19565. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19566. else
  19567. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19568. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19569. fi
  19570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19571. printf "%s\n" "$fusionsound_shared" >&6; }
  19572. have_audio=yes
  19573. fi
  19574. fi
  19575. }
  19576. CheckDiskAudio()
  19577. {
  19578. # Check whether --enable-diskaudio was given.
  19579. if test ${enable_diskaudio+y}
  19580. then :
  19581. enableval=$enable_diskaudio;
  19582. else $as_nop
  19583. enable_diskaudio=yes
  19584. fi
  19585. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19586. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19587. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19588. SUMMARY_audio="${SUMMARY_audio} disk"
  19589. have_audio=yes
  19590. fi
  19591. }
  19592. CheckDummyAudio()
  19593. {
  19594. # Check whether --enable-dummyaudio was given.
  19595. if test ${enable_dummyaudio+y}
  19596. then :
  19597. enableval=$enable_dummyaudio;
  19598. else $as_nop
  19599. enable_dummyaudio=yes
  19600. fi
  19601. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19602. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19603. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19604. SUMMARY_audio="${SUMMARY_audio} dummy"
  19605. have_audio=yes
  19606. fi
  19607. }
  19608. CheckLibSampleRate()
  19609. {
  19610. # Check whether --enable-libsamplerate was given.
  19611. if test ${enable_libsamplerate+y}
  19612. then :
  19613. enableval=$enable_libsamplerate;
  19614. else $as_nop
  19615. enable_libsamplerate=yes
  19616. fi
  19617. if test x$enable_libsamplerate = xyes; then
  19618. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19619. if test "x$ac_cv_header_samplerate_h" = xyes
  19620. then :
  19621. have_samplerate_h_hdr=yes
  19622. else $as_nop
  19623. have_samplerate_h_hdr=no
  19624. fi
  19625. if test x$have_samplerate_h_hdr = xyes; then
  19626. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19627. # Check whether --enable-libsamplerate-shared was given.
  19628. if test ${enable_libsamplerate_shared+y}
  19629. then :
  19630. enableval=$enable_libsamplerate_shared;
  19631. else $as_nop
  19632. enable_libsamplerate_shared=yes
  19633. fi
  19634. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19635. if test x$have_loadso != xyes && \
  19636. test x$enable_libsamplerate_shared = xyes; then
  19637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19638. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19639. fi
  19640. if test x$have_loadso = xyes && \
  19641. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19642. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19643. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19644. else
  19645. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19646. fi
  19647. fi
  19648. fi
  19649. }
  19650. CheckARM()
  19651. {
  19652. # Check whether --enable-arm-simd was given.
  19653. if test ${enable_arm_simd+y}
  19654. then :
  19655. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19656. else $as_nop
  19657. enable_arm_simd=no
  19658. fi
  19659. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19660. save_CFLAGS="$CFLAGS"
  19661. have_arm_simd=no
  19662. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19664. printf %s "checking for ARM SIMD... " >&6; }
  19665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19666. /* end confdefs.h. */
  19667. .text
  19668. .arch armv6
  19669. .object_arch armv4
  19670. .arm
  19671. .altmacro
  19672. #ifndef __ARM_EABI__
  19673. #error EABI is required (to be sure that calling conventions are compatible)
  19674. #endif
  19675. pld [r0]
  19676. uqadd8 r0, r0, r0
  19677. _ACEOF
  19678. if ac_fn_c_try_compile "$LINENO"
  19679. then :
  19680. have_arm_simd=yes
  19681. fi
  19682. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19684. printf "%s\n" "$have_arm_simd" >&6; }
  19685. CFLAGS="$save_CFLAGS"
  19686. if test x$have_arm_simd = xyes; then
  19687. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19688. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19689. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19690. fi
  19691. fi
  19692. }
  19693. CheckNEON()
  19694. {
  19695. # Check whether --enable-arm-neon was given.
  19696. if test ${enable_arm_neon+y}
  19697. then :
  19698. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19699. else $as_nop
  19700. enable_arm_neon=no
  19701. fi
  19702. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19703. save_CFLAGS="$CFLAGS"
  19704. have_arm_neon=no
  19705. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19707. printf %s "checking for ARM NEON... " >&6; }
  19708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19709. /* end confdefs.h. */
  19710. .text
  19711. .fpu neon
  19712. .arch armv7a
  19713. .object_arch armv4
  19714. .eabi_attribute 10, 0
  19715. .arm
  19716. .altmacro
  19717. #ifndef __ARM_EABI__
  19718. #error EABI is required (to be sure that calling conventions are compatible)
  19719. #endif
  19720. pld [r0]
  19721. vmovn.u16 d0, q0
  19722. _ACEOF
  19723. if ac_fn_c_try_compile "$LINENO"
  19724. then :
  19725. have_arm_neon=yes
  19726. fi
  19727. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19729. printf "%s\n" "$have_arm_neon" >&6; }
  19730. CFLAGS="$save_CFLAGS"
  19731. if test x$have_arm_neon = xyes; then
  19732. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19733. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19734. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19735. fi
  19736. fi
  19737. }
  19738. CheckObjectiveCARC()
  19739. {
  19740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19741. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19742. have_clang_objc_arc=no
  19743. save_CFLAGS="$CFLAGS"
  19744. CFLAGS="$save_CFLAGS -fobjc-arc"
  19745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19746. /* end confdefs.h. */
  19747. int x = 0;
  19748. int
  19749. main (void)
  19750. {
  19751. ;
  19752. return 0;
  19753. }
  19754. _ACEOF
  19755. if ac_fn_c_try_compile "$LINENO"
  19756. then :
  19757. have_clang_objc_arc=yes
  19758. fi
  19759. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19761. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19762. CFLAGS="$save_CFLAGS"
  19763. if test x$have_clang_objc_arc = xyes; then
  19764. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19765. fi
  19766. }
  19767. CheckGDwarf4()
  19768. {
  19769. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19770. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19771. have_gcc_gdwarf4=no
  19772. save_CFLAGS="$CFLAGS"
  19773. CFLAGS="$save_CFLAGS -gdwarf-4"
  19774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19775. /* end confdefs.h. */
  19776. int x = 0;
  19777. int
  19778. main (void)
  19779. {
  19780. ;
  19781. return 0;
  19782. }
  19783. _ACEOF
  19784. if ac_fn_c_try_compile "$LINENO"
  19785. then :
  19786. have_gcc_gdwarf4=yes
  19787. fi
  19788. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19790. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19791. CFLAGS="$save_CFLAGS"
  19792. if test x$have_gcc_gdwarf4 = xyes; then
  19793. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19794. fi
  19795. }
  19796. CheckVisibilityHidden()
  19797. {
  19798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19799. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19800. have_gcc_fvisibility=no
  19801. visibility_CFLAGS="-fvisibility=hidden"
  19802. save_CFLAGS="$CFLAGS"
  19803. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19805. /* end confdefs.h. */
  19806. #if !defined(__GNUC__) || __GNUC__ < 4
  19807. #error SDL only uses visibility attributes in GCC 4 or newer
  19808. #endif
  19809. int
  19810. main (void)
  19811. {
  19812. ;
  19813. return 0;
  19814. }
  19815. _ACEOF
  19816. if ac_fn_c_try_compile "$LINENO"
  19817. then :
  19818. have_gcc_fvisibility=yes
  19819. fi
  19820. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19822. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19823. CFLAGS="$save_CFLAGS"
  19824. if test x$have_gcc_fvisibility = xyes; then
  19825. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19826. fi
  19827. }
  19828. CheckNoStrictAliasing()
  19829. {
  19830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19831. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19832. have_gcc_no_strict_aliasing=no
  19833. save_CFLAGS="$CFLAGS"
  19834. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19836. /* end confdefs.h. */
  19837. int x = 0;
  19838. int
  19839. main (void)
  19840. {
  19841. ;
  19842. return 0;
  19843. }
  19844. _ACEOF
  19845. if ac_fn_c_try_compile "$LINENO"
  19846. then :
  19847. have_gcc_no_strict_aliasing=yes
  19848. fi
  19849. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19851. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19852. CFLAGS="$save_CFLAGS"
  19853. if test x$have_gcc_no_strict_aliasing = xyes; then
  19854. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19855. fi
  19856. }
  19857. CheckStackBoundary()
  19858. {
  19859. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19860. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19861. have_gcc_preferred_stack_boundary=no
  19862. save_CFLAGS="$CFLAGS"
  19863. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19865. /* end confdefs.h. */
  19866. int x = 0;
  19867. int
  19868. main (void)
  19869. {
  19870. ;
  19871. return 0;
  19872. }
  19873. _ACEOF
  19874. if ac_fn_c_try_compile "$LINENO"
  19875. then :
  19876. have_gcc_preferred_stack_boundary=yes
  19877. fi
  19878. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19880. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19881. CFLAGS="$save_CFLAGS"
  19882. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19883. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19884. fi
  19885. }
  19886. CheckDeclarationAfterStatement()
  19887. {
  19888. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19889. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19890. have_gcc_declaration_after_statement=no
  19891. save_CFLAGS="$CFLAGS"
  19892. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19894. /* end confdefs.h. */
  19895. int x = 0;
  19896. int
  19897. main (void)
  19898. {
  19899. ;
  19900. return 0;
  19901. }
  19902. _ACEOF
  19903. if ac_fn_c_try_compile "$LINENO"
  19904. then :
  19905. have_gcc_declaration_after_statement=yes
  19906. fi
  19907. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19909. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19910. CFLAGS="$save_CFLAGS"
  19911. if test x$have_gcc_declaration_after_statement = xyes; then
  19912. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19913. fi
  19914. }
  19915. CheckWarnAll()
  19916. {
  19917. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19918. printf %s "checking for GCC -Wall option... " >&6; }
  19919. have_gcc_Wall=no
  19920. save_CFLAGS="$CFLAGS"
  19921. CFLAGS="$save_CFLAGS -Wall"
  19922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19923. /* end confdefs.h. */
  19924. int x = 0;
  19925. int
  19926. main (void)
  19927. {
  19928. ;
  19929. return 0;
  19930. }
  19931. _ACEOF
  19932. if ac_fn_c_try_compile "$LINENO"
  19933. then :
  19934. have_gcc_Wall=yes
  19935. fi
  19936. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19938. printf "%s\n" "$have_gcc_Wall" >&6; }
  19939. CFLAGS="$save_CFLAGS"
  19940. if test x$have_gcc_Wall = xyes; then
  19941. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19943. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19944. need_gcc_Wno_multichar=no
  19945. case "$host" in
  19946. *-*-haiku*)
  19947. need_gcc_Wno_multichar=yes
  19948. ;;
  19949. esac
  19950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19951. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19952. if test x$need_gcc_Wno_multichar = xyes; then
  19953. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19954. fi
  19955. fi
  19956. }
  19957. CheckWayland()
  19958. {
  19959. # Check whether --enable-video-wayland was given.
  19960. if test ${enable_video_wayland+y}
  19961. then :
  19962. enableval=$enable_video_wayland;
  19963. else $as_nop
  19964. enable_video_wayland=yes
  19965. fi
  19966. # Check whether --enable-video-wayland-qt-touch was given.
  19967. if test ${enable_video_wayland_qt_touch+y}
  19968. then :
  19969. enableval=$enable_video_wayland_qt_touch;
  19970. else $as_nop
  19971. enable_video_wayland_qt_touch=yes
  19972. fi
  19973. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  19974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  19975. printf %s "checking for Wayland support... " >&6; }
  19976. video_wayland=no
  19977. if test x$video_opengl_egl = xyes && \
  19978. test x$video_opengles_v2 = xyes; then
  19979. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  19980. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  19981. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  19982. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  19983. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  19984. then :
  19985. WAYLAND_SCANNER_CODE_MODE=private-code
  19986. else $as_nop
  19987. WAYLAND_SCANNER_CODE_MODE=code
  19988. fi
  19989. video_wayland=yes
  19990. fi
  19991. fi
  19992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  19993. printf "%s\n" "$video_wayland" >&6; }
  19994. if test x$video_wayland = xyes; then
  19995. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  19996. if test x$enable_video_wayland_qt_touch = xyes; then
  19997. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  19998. fi
  19999. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20000. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20001. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20002. # Check whether --enable-wayland-shared was given.
  20003. if test ${enable_wayland_shared+y}
  20004. then :
  20005. enableval=$enable_wayland_shared;
  20006. else $as_nop
  20007. enable_wayland_shared=maybe
  20008. fi
  20009. case "$host" in
  20010. *)
  20011. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20012. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20013. if test x$wayland_egl_lib = x; then
  20014. # This works in Ubuntu 13.10, maybe others
  20015. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20016. fi
  20017. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20018. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20019. ;;
  20020. esac
  20021. if test x$enable_wayland_shared = xmaybe; then
  20022. enable_wayland_shared=yes
  20023. fi
  20024. if test x$have_loadso != xyes && \
  20025. test x$enable_wayland_shared = xyes; then
  20026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20027. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20028. enable_wayland_shared=no
  20029. fi
  20030. if test x$have_loadso = xyes && \
  20031. test x$enable_wayland_shared = xyes && \
  20032. test x$wayland_client_lib != x && \
  20033. test x$wayland_egl_lib != x && \
  20034. test x$wayland_cursor_lib != x && \
  20035. test x$xkbcommon_lib != x; then
  20036. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20037. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20038. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20039. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20040. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20041. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20042. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20043. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20044. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20045. else
  20046. enable_wayland_shared=no
  20047. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20048. SUMMARY_video="${SUMMARY_video} wayland"
  20049. fi
  20050. have_video=yes
  20051. # Check whether --enable-libdecor was given.
  20052. if test ${enable_libdecor+y}
  20053. then :
  20054. enableval=$enable_libdecor;
  20055. else $as_nop
  20056. enable_libdecor=yes
  20057. fi
  20058. if test x$enable_libdecor = xyes; then
  20059. pkg_failed=no
  20060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20061. printf %s "checking for libdecor-0... " >&6; }
  20062. if test -n "$DECOR_CFLAGS"; then
  20063. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20064. elif test -n "$PKG_CONFIG"; then
  20065. if test -n "$PKG_CONFIG" && \
  20066. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20067. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20068. ac_status=$?
  20069. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20070. test $ac_status = 0; }; then
  20071. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20072. test "x$?" != "x0" && pkg_failed=yes
  20073. else
  20074. pkg_failed=yes
  20075. fi
  20076. else
  20077. pkg_failed=untried
  20078. fi
  20079. if test -n "$DECOR_LIBS"; then
  20080. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20081. elif test -n "$PKG_CONFIG"; then
  20082. if test -n "$PKG_CONFIG" && \
  20083. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20084. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20085. ac_status=$?
  20086. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20087. test $ac_status = 0; }; then
  20088. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20089. test "x$?" != "x0" && pkg_failed=yes
  20090. else
  20091. pkg_failed=yes
  20092. fi
  20093. else
  20094. pkg_failed=untried
  20095. fi
  20096. if test $pkg_failed = yes; then
  20097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20098. printf "%s\n" "no" >&6; }
  20099. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20100. _pkg_short_errors_supported=yes
  20101. else
  20102. _pkg_short_errors_supported=no
  20103. fi
  20104. if test $_pkg_short_errors_supported = yes; then
  20105. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20106. else
  20107. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20108. fi
  20109. # Put the nasty error message in config.log where it belongs
  20110. echo "$DECOR_PKG_ERRORS" >&5
  20111. video_libdecor=no
  20112. elif test $pkg_failed = untried; then
  20113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20114. printf "%s\n" "no" >&6; }
  20115. video_libdecor=no
  20116. else
  20117. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20118. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20120. printf "%s\n" "yes" >&6; }
  20121. video_libdecor=yes
  20122. fi
  20123. if test x$video_libdecor = xyes; then
  20124. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20125. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20126. # Check whether --enable-libdecor-shared was given.
  20127. if test ${enable_libdecor_shared+y}
  20128. then :
  20129. enableval=$enable_libdecor_shared;
  20130. else $as_nop
  20131. enable_libdecor_shared=yes
  20132. fi
  20133. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20134. if test x$enable_wayland_shared != xyes; then
  20135. enable_libdecor_shared=no
  20136. fi
  20137. if test x$have_loadso != xyes && \
  20138. test x$enable_libdecor_shared = xyes; then
  20139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20140. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20141. fi
  20142. if test x$have_loadso = xyes && \
  20143. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20144. echo "-- dynamic libdecor -> $decor_lib"
  20145. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20146. else
  20147. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20148. fi
  20149. fi
  20150. fi
  20151. fi
  20152. fi
  20153. }
  20154. CheckNativeClient()
  20155. {
  20156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20157. /* end confdefs.h. */
  20158. #if !defined(__native_client__)
  20159. #error "NO NACL"
  20160. #endif
  20161. int
  20162. main (void)
  20163. {
  20164. ;
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. if ac_fn_c_try_compile "$LINENO"
  20169. then :
  20170. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20171. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20172. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20173. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20174. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20175. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20176. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20177. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20178. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20179. SUMMARY_audio="${SUMMARY_audio} nacl"
  20180. have_audio=yes
  20181. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20182. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20183. have_video=yes
  20184. fi
  20185. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20186. }
  20187. CheckRPI()
  20188. {
  20189. # Check whether --enable-video-rpi was given.
  20190. if test ${enable_video_rpi+y}
  20191. then :
  20192. enableval=$enable_video_rpi;
  20193. else $as_nop
  20194. enable_video_rpi=yes
  20195. fi
  20196. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20197. pkg_failed=no
  20198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20199. printf %s "checking for bcm_host brcmegl... " >&6; }
  20200. if test -n "$RPI_CFLAGS"; then
  20201. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20202. elif test -n "$PKG_CONFIG"; then
  20203. if test -n "$PKG_CONFIG" && \
  20204. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20205. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20206. ac_status=$?
  20207. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20208. test $ac_status = 0; }; then
  20209. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20210. test "x$?" != "x0" && pkg_failed=yes
  20211. else
  20212. pkg_failed=yes
  20213. fi
  20214. else
  20215. pkg_failed=untried
  20216. fi
  20217. if test -n "$RPI_LIBS"; then
  20218. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20219. elif test -n "$PKG_CONFIG"; then
  20220. if test -n "$PKG_CONFIG" && \
  20221. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20222. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20223. ac_status=$?
  20224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20225. test $ac_status = 0; }; then
  20226. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20227. test "x$?" != "x0" && pkg_failed=yes
  20228. else
  20229. pkg_failed=yes
  20230. fi
  20231. else
  20232. pkg_failed=untried
  20233. fi
  20234. if test $pkg_failed = yes; then
  20235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20236. printf "%s\n" "no" >&6; }
  20237. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20238. _pkg_short_errors_supported=yes
  20239. else
  20240. _pkg_short_errors_supported=no
  20241. fi
  20242. if test $_pkg_short_errors_supported = yes; then
  20243. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20244. else
  20245. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20246. fi
  20247. # Put the nasty error message in config.log where it belongs
  20248. echo "$RPI_PKG_ERRORS" >&5
  20249. video_rpi=no
  20250. elif test $pkg_failed = untried; then
  20251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20252. printf "%s\n" "no" >&6; }
  20253. video_rpi=no
  20254. else
  20255. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20256. RPI_LIBS=$pkg_cv_RPI_LIBS
  20257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20258. printf "%s\n" "yes" >&6; }
  20259. video_rpi=yes
  20260. fi
  20261. if test x$video_rpi = xno; then
  20262. if test x$ARCH = xnetbsd; then
  20263. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20264. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20265. else
  20266. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20267. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20268. fi
  20269. fi
  20270. # Save the original compiler flags and libraries
  20271. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20272. # Add the Raspberry Pi compiler flags and libraries
  20273. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20275. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20276. have_video_rpi=no
  20277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20278. /* end confdefs.h. */
  20279. #include <bcm_host.h>
  20280. #include <EGL/eglplatform.h>
  20281. int
  20282. main (void)
  20283. {
  20284. EGL_DISPMANX_WINDOW_T window;
  20285. bcm_host_init();
  20286. ;
  20287. return 0;
  20288. }
  20289. _ACEOF
  20290. if ac_fn_c_try_link "$LINENO"
  20291. then :
  20292. have_video_rpi=yes
  20293. fi
  20294. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20295. conftest$ac_exeext conftest.$ac_ext
  20296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20297. printf "%s\n" "$have_video_rpi" >&6; }
  20298. # Restore the compiler flags and libraries
  20299. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20300. if test x$have_video_rpi = xyes; then
  20301. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20302. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20303. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20304. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20305. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20306. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20307. SUMMARY_video="${SUMMARY_video} rpi"
  20308. have_video=yes
  20309. fi
  20310. fi
  20311. }
  20312. CheckX11()
  20313. {
  20314. # Check whether --enable-video-x11 was given.
  20315. if test ${enable_video_x11+y}
  20316. then :
  20317. enableval=$enable_video_x11;
  20318. else $as_nop
  20319. enable_video_x11=yes
  20320. case "$host" in
  20321. *-*-darwin*|*-ios-*)
  20322. enable_video_x11=no
  20323. ;;
  20324. esac
  20325. fi
  20326. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20327. case "$host" in
  20328. *-*-darwin*)
  20329. # This isn't necessary for X11, but fixes GLX detection
  20330. if test "x$x_includes" = xNONE && \
  20331. test "x$x_libraries" = xNONE && \
  20332. test -d /opt/X11/include && \
  20333. test -d /opt/X11/lib; then
  20334. x_includes="/opt/X11/include"
  20335. x_libraries="/opt/X11/lib"
  20336. fi
  20337. ;;
  20338. esac
  20339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20340. printf %s "checking for X... " >&6; }
  20341. # Check whether --with-x was given.
  20342. if test ${with_x+y}
  20343. then :
  20344. withval=$with_x;
  20345. fi
  20346. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20347. if test "x$with_x" = xno; then
  20348. # The user explicitly disabled X.
  20349. have_x=disabled
  20350. else
  20351. case $x_includes,$x_libraries in #(
  20352. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20353. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20354. then :
  20355. printf %s "(cached) " >&6
  20356. else $as_nop
  20357. # One or both of the vars are not set, and there is no cached value.
  20358. ac_x_includes=no
  20359. ac_x_libraries=no
  20360. # Do we need to do anything special at all?
  20361. ac_save_LIBS=$LIBS
  20362. LIBS="-lX11 $LIBS"
  20363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20364. /* end confdefs.h. */
  20365. #include <X11/Xlib.h>
  20366. int
  20367. main (void)
  20368. {
  20369. XrmInitialize ()
  20370. ;
  20371. return 0;
  20372. }
  20373. _ACEOF
  20374. if ac_fn_c_try_link "$LINENO"
  20375. then :
  20376. # We can compile and link X programs with no special options.
  20377. ac_x_includes=
  20378. ac_x_libraries=
  20379. fi
  20380. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20381. conftest$ac_exeext conftest.$ac_ext
  20382. LIBS="$ac_save_LIBS"
  20383. # If that didn't work, only try xmkmf and file system searches
  20384. # for native compilation.
  20385. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20386. then :
  20387. rm -f -r conftest.dir
  20388. if mkdir conftest.dir; then
  20389. cd conftest.dir
  20390. cat >Imakefile <<'_ACEOF'
  20391. incroot:
  20392. @echo incroot='${INCROOT}'
  20393. usrlibdir:
  20394. @echo usrlibdir='${USRLIBDIR}'
  20395. libdir:
  20396. @echo libdir='${LIBDIR}'
  20397. _ACEOF
  20398. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20399. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20400. for ac_var in incroot usrlibdir libdir; do
  20401. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20402. done
  20403. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20404. for ac_extension in a so sl dylib la dll; do
  20405. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20406. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20407. ac_im_usrlibdir=$ac_im_libdir; break
  20408. fi
  20409. done
  20410. # Screen out bogus values from the imake configuration. They are
  20411. # bogus both because they are the default anyway, and because
  20412. # using them would break gcc on systems where it needs fixed includes.
  20413. case $ac_im_incroot in
  20414. /usr/include) ac_x_includes= ;;
  20415. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20416. esac
  20417. case $ac_im_usrlibdir in
  20418. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20419. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20420. esac
  20421. fi
  20422. cd ..
  20423. rm -f -r conftest.dir
  20424. fi
  20425. # Standard set of common directories for X headers.
  20426. # Check X11 before X11Rn because it is often a symlink to the current release.
  20427. ac_x_header_dirs='
  20428. /usr/X11/include
  20429. /usr/X11R7/include
  20430. /usr/X11R6/include
  20431. /usr/X11R5/include
  20432. /usr/X11R4/include
  20433. /usr/include/X11
  20434. /usr/include/X11R7
  20435. /usr/include/X11R6
  20436. /usr/include/X11R5
  20437. /usr/include/X11R4
  20438. /usr/local/X11/include
  20439. /usr/local/X11R7/include
  20440. /usr/local/X11R6/include
  20441. /usr/local/X11R5/include
  20442. /usr/local/X11R4/include
  20443. /usr/local/include/X11
  20444. /usr/local/include/X11R7
  20445. /usr/local/include/X11R6
  20446. /usr/local/include/X11R5
  20447. /usr/local/include/X11R4
  20448. /opt/X11/include
  20449. /usr/X386/include
  20450. /usr/x386/include
  20451. /usr/XFree86/include/X11
  20452. /usr/include
  20453. /usr/local/include
  20454. /usr/unsupported/include
  20455. /usr/athena/include
  20456. /usr/local/x11r5/include
  20457. /usr/lpp/Xamples/include
  20458. /usr/openwin/include
  20459. /usr/openwin/share/include'
  20460. if test "$ac_x_includes" = no; then
  20461. # Guess where to find include files, by looking for Xlib.h.
  20462. # First, try using that file with no special directory specified.
  20463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20464. /* end confdefs.h. */
  20465. #include <X11/Xlib.h>
  20466. _ACEOF
  20467. if ac_fn_c_try_cpp "$LINENO"
  20468. then :
  20469. # We can compile using X headers with no special include directory.
  20470. ac_x_includes=
  20471. else $as_nop
  20472. for ac_dir in $ac_x_header_dirs; do
  20473. if test -r "$ac_dir/X11/Xlib.h"; then
  20474. ac_x_includes=$ac_dir
  20475. break
  20476. fi
  20477. done
  20478. fi
  20479. rm -f conftest.err conftest.i conftest.$ac_ext
  20480. fi # $ac_x_includes = no
  20481. if test "$ac_x_libraries" = no; then
  20482. # Check for the libraries.
  20483. # See if we find them without any special options.
  20484. # Don't add to $LIBS permanently.
  20485. ac_save_LIBS=$LIBS
  20486. LIBS="-lX11 $LIBS"
  20487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20488. /* end confdefs.h. */
  20489. #include <X11/Xlib.h>
  20490. int
  20491. main (void)
  20492. {
  20493. XrmInitialize ()
  20494. ;
  20495. return 0;
  20496. }
  20497. _ACEOF
  20498. if ac_fn_c_try_link "$LINENO"
  20499. then :
  20500. LIBS=$ac_save_LIBS
  20501. # We can link X programs with no special library path.
  20502. ac_x_libraries=
  20503. else $as_nop
  20504. LIBS=$ac_save_LIBS
  20505. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20506. do
  20507. # Don't even attempt the hair of trying to link an X program!
  20508. for ac_extension in a so sl dylib la dll; do
  20509. if test -r "$ac_dir/libX11.$ac_extension"; then
  20510. ac_x_libraries=$ac_dir
  20511. break 2
  20512. fi
  20513. done
  20514. done
  20515. fi
  20516. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20517. conftest$ac_exeext conftest.$ac_ext
  20518. fi # $ac_x_libraries = no
  20519. fi
  20520. # Record the results.
  20521. case $ac_x_includes,$ac_x_libraries in #(
  20522. no,* | *,no | *\'*) :
  20523. # Didn't find X, or a directory has "'" in its name.
  20524. ac_cv_have_x="have_x=no" ;; #(
  20525. *) :
  20526. # Record where we found X for the cache.
  20527. ac_cv_have_x="have_x=yes\
  20528. ac_x_includes='$ac_x_includes'\
  20529. ac_x_libraries='$ac_x_libraries'" ;;
  20530. esac
  20531. fi
  20532. ;; #(
  20533. *) have_x=yes;;
  20534. esac
  20535. eval "$ac_cv_have_x"
  20536. fi # $with_x != no
  20537. if test "$have_x" != yes; then
  20538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20539. printf "%s\n" "$have_x" >&6; }
  20540. no_x=yes
  20541. else
  20542. # If each of the values was on the command line, it overrides each guess.
  20543. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20544. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20545. # Update the cache value to reflect the command line values.
  20546. ac_cv_have_x="have_x=yes\
  20547. ac_x_includes='$x_includes'\
  20548. ac_x_libraries='$x_libraries'"
  20549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20550. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20551. fi
  20552. if test "$no_x" = yes; then
  20553. # Not all programs may use this symbol, but it does not hurt to define it.
  20554. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20555. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20556. else
  20557. if test -n "$x_includes"; then
  20558. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20559. fi
  20560. # It would also be nice to do this for all -L options, not just this one.
  20561. if test -n "$x_libraries"; then
  20562. X_LIBS="$X_LIBS -L$x_libraries"
  20563. # For Solaris; some versions of Sun CC require a space after -R and
  20564. # others require no space. Words are not sufficient . . . .
  20565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20566. printf %s "checking whether -R must be followed by a space... " >&6; }
  20567. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20568. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20569. ac_c_werror_flag=yes
  20570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20571. /* end confdefs.h. */
  20572. int
  20573. main (void)
  20574. {
  20575. ;
  20576. return 0;
  20577. }
  20578. _ACEOF
  20579. if ac_fn_c_try_link "$LINENO"
  20580. then :
  20581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20582. printf "%s\n" "no" >&6; }
  20583. X_LIBS="$X_LIBS -R$x_libraries"
  20584. else $as_nop
  20585. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20587. /* end confdefs.h. */
  20588. int
  20589. main (void)
  20590. {
  20591. ;
  20592. return 0;
  20593. }
  20594. _ACEOF
  20595. if ac_fn_c_try_link "$LINENO"
  20596. then :
  20597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20598. printf "%s\n" "yes" >&6; }
  20599. X_LIBS="$X_LIBS -R $x_libraries"
  20600. else $as_nop
  20601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20602. printf "%s\n" "neither works" >&6; }
  20603. fi
  20604. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20605. conftest$ac_exeext conftest.$ac_ext
  20606. fi
  20607. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20608. conftest$ac_exeext conftest.$ac_ext
  20609. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20610. LIBS=$ac_xsave_LIBS
  20611. fi
  20612. # Check for system-dependent libraries X programs must link with.
  20613. # Do this before checking for the system-independent R6 libraries
  20614. # (-lICE), since we may need -lsocket or whatever for X linking.
  20615. if test "$ISC" = yes; then
  20616. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20617. else
  20618. # Martyn Johnson says this is needed for Ultrix, if the X
  20619. # libraries were built with DECnet support. And Karl Berry says
  20620. # the Alpha needs dnet_stub (dnet does not exist).
  20621. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20623. /* end confdefs.h. */
  20624. /* Override any GCC internal prototype to avoid an error.
  20625. Use char because int might match the return type of a GCC
  20626. builtin and then its argument prototype would still apply. */
  20627. char XOpenDisplay ();
  20628. int
  20629. main (void)
  20630. {
  20631. return XOpenDisplay ();
  20632. ;
  20633. return 0;
  20634. }
  20635. _ACEOF
  20636. if ac_fn_c_try_link "$LINENO"
  20637. then :
  20638. else $as_nop
  20639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20640. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20641. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20642. then :
  20643. printf %s "(cached) " >&6
  20644. else $as_nop
  20645. ac_check_lib_save_LIBS=$LIBS
  20646. LIBS="-ldnet $LIBS"
  20647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20648. /* end confdefs.h. */
  20649. /* Override any GCC internal prototype to avoid an error.
  20650. Use char because int might match the return type of a GCC
  20651. builtin and then its argument prototype would still apply. */
  20652. char dnet_ntoa ();
  20653. int
  20654. main (void)
  20655. {
  20656. return dnet_ntoa ();
  20657. ;
  20658. return 0;
  20659. }
  20660. _ACEOF
  20661. if ac_fn_c_try_link "$LINENO"
  20662. then :
  20663. ac_cv_lib_dnet_dnet_ntoa=yes
  20664. else $as_nop
  20665. ac_cv_lib_dnet_dnet_ntoa=no
  20666. fi
  20667. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20668. conftest$ac_exeext conftest.$ac_ext
  20669. LIBS=$ac_check_lib_save_LIBS
  20670. fi
  20671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20672. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20673. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20674. then :
  20675. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20676. fi
  20677. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20679. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20680. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20681. then :
  20682. printf %s "(cached) " >&6
  20683. else $as_nop
  20684. ac_check_lib_save_LIBS=$LIBS
  20685. LIBS="-ldnet_stub $LIBS"
  20686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20687. /* end confdefs.h. */
  20688. /* Override any GCC internal prototype to avoid an error.
  20689. Use char because int might match the return type of a GCC
  20690. builtin and then its argument prototype would still apply. */
  20691. char dnet_ntoa ();
  20692. int
  20693. main (void)
  20694. {
  20695. return dnet_ntoa ();
  20696. ;
  20697. return 0;
  20698. }
  20699. _ACEOF
  20700. if ac_fn_c_try_link "$LINENO"
  20701. then :
  20702. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20703. else $as_nop
  20704. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20705. fi
  20706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20707. conftest$ac_exeext conftest.$ac_ext
  20708. LIBS=$ac_check_lib_save_LIBS
  20709. fi
  20710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20711. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20712. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20713. then :
  20714. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20715. fi
  20716. fi
  20717. fi
  20718. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20719. conftest$ac_exeext conftest.$ac_ext
  20720. LIBS="$ac_xsave_LIBS"
  20721. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20722. # to get the SysV transport functions.
  20723. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20724. # needs -lnsl.
  20725. # The nsl library prevents programs from opening the X display
  20726. # on Irix 5.2, according to T.E. Dickey.
  20727. # The functions gethostbyname, getservbyname, and inet_addr are
  20728. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20729. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20730. if test "x$ac_cv_func_gethostbyname" = xyes
  20731. then :
  20732. fi
  20733. if test $ac_cv_func_gethostbyname = no; then
  20734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20735. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20736. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20737. then :
  20738. printf %s "(cached) " >&6
  20739. else $as_nop
  20740. ac_check_lib_save_LIBS=$LIBS
  20741. LIBS="-lnsl $LIBS"
  20742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20743. /* end confdefs.h. */
  20744. /* Override any GCC internal prototype to avoid an error.
  20745. Use char because int might match the return type of a GCC
  20746. builtin and then its argument prototype would still apply. */
  20747. char gethostbyname ();
  20748. int
  20749. main (void)
  20750. {
  20751. return gethostbyname ();
  20752. ;
  20753. return 0;
  20754. }
  20755. _ACEOF
  20756. if ac_fn_c_try_link "$LINENO"
  20757. then :
  20758. ac_cv_lib_nsl_gethostbyname=yes
  20759. else $as_nop
  20760. ac_cv_lib_nsl_gethostbyname=no
  20761. fi
  20762. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20763. conftest$ac_exeext conftest.$ac_ext
  20764. LIBS=$ac_check_lib_save_LIBS
  20765. fi
  20766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20767. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20768. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20769. then :
  20770. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20771. fi
  20772. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20774. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20775. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20776. then :
  20777. printf %s "(cached) " >&6
  20778. else $as_nop
  20779. ac_check_lib_save_LIBS=$LIBS
  20780. LIBS="-lbsd $LIBS"
  20781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20782. /* end confdefs.h. */
  20783. /* Override any GCC internal prototype to avoid an error.
  20784. Use char because int might match the return type of a GCC
  20785. builtin and then its argument prototype would still apply. */
  20786. char gethostbyname ();
  20787. int
  20788. main (void)
  20789. {
  20790. return gethostbyname ();
  20791. ;
  20792. return 0;
  20793. }
  20794. _ACEOF
  20795. if ac_fn_c_try_link "$LINENO"
  20796. then :
  20797. ac_cv_lib_bsd_gethostbyname=yes
  20798. else $as_nop
  20799. ac_cv_lib_bsd_gethostbyname=no
  20800. fi
  20801. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20802. conftest$ac_exeext conftest.$ac_ext
  20803. LIBS=$ac_check_lib_save_LIBS
  20804. fi
  20805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20806. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20807. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20808. then :
  20809. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20810. fi
  20811. fi
  20812. fi
  20813. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20814. # socket/setsockopt and other routines are undefined under SCO ODT
  20815. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20816. # on later versions), says Simon Leinen: it contains gethostby*
  20817. # variants that don't use the name server (or something). -lsocket
  20818. # must be given before -lnsl if both are needed. We assume that
  20819. # if connect needs -lnsl, so does gethostbyname.
  20820. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20821. if test "x$ac_cv_func_connect" = xyes
  20822. then :
  20823. fi
  20824. if test $ac_cv_func_connect = no; then
  20825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20826. printf %s "checking for connect in -lsocket... " >&6; }
  20827. if test ${ac_cv_lib_socket_connect+y}
  20828. then :
  20829. printf %s "(cached) " >&6
  20830. else $as_nop
  20831. ac_check_lib_save_LIBS=$LIBS
  20832. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20834. /* end confdefs.h. */
  20835. /* Override any GCC internal prototype to avoid an error.
  20836. Use char because int might match the return type of a GCC
  20837. builtin and then its argument prototype would still apply. */
  20838. char connect ();
  20839. int
  20840. main (void)
  20841. {
  20842. return connect ();
  20843. ;
  20844. return 0;
  20845. }
  20846. _ACEOF
  20847. if ac_fn_c_try_link "$LINENO"
  20848. then :
  20849. ac_cv_lib_socket_connect=yes
  20850. else $as_nop
  20851. ac_cv_lib_socket_connect=no
  20852. fi
  20853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20854. conftest$ac_exeext conftest.$ac_ext
  20855. LIBS=$ac_check_lib_save_LIBS
  20856. fi
  20857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20858. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20859. if test "x$ac_cv_lib_socket_connect" = xyes
  20860. then :
  20861. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20862. fi
  20863. fi
  20864. # Guillermo Gomez says -lposix is necessary on A/UX.
  20865. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20866. if test "x$ac_cv_func_remove" = xyes
  20867. then :
  20868. fi
  20869. if test $ac_cv_func_remove = no; then
  20870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20871. printf %s "checking for remove in -lposix... " >&6; }
  20872. if test ${ac_cv_lib_posix_remove+y}
  20873. then :
  20874. printf %s "(cached) " >&6
  20875. else $as_nop
  20876. ac_check_lib_save_LIBS=$LIBS
  20877. LIBS="-lposix $LIBS"
  20878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20879. /* end confdefs.h. */
  20880. /* Override any GCC internal prototype to avoid an error.
  20881. Use char because int might match the return type of a GCC
  20882. builtin and then its argument prototype would still apply. */
  20883. char remove ();
  20884. int
  20885. main (void)
  20886. {
  20887. return remove ();
  20888. ;
  20889. return 0;
  20890. }
  20891. _ACEOF
  20892. if ac_fn_c_try_link "$LINENO"
  20893. then :
  20894. ac_cv_lib_posix_remove=yes
  20895. else $as_nop
  20896. ac_cv_lib_posix_remove=no
  20897. fi
  20898. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20899. conftest$ac_exeext conftest.$ac_ext
  20900. LIBS=$ac_check_lib_save_LIBS
  20901. fi
  20902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20903. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20904. if test "x$ac_cv_lib_posix_remove" = xyes
  20905. then :
  20906. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20907. fi
  20908. fi
  20909. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20910. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20911. if test "x$ac_cv_func_shmat" = xyes
  20912. then :
  20913. fi
  20914. if test $ac_cv_func_shmat = no; then
  20915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20916. printf %s "checking for shmat in -lipc... " >&6; }
  20917. if test ${ac_cv_lib_ipc_shmat+y}
  20918. then :
  20919. printf %s "(cached) " >&6
  20920. else $as_nop
  20921. ac_check_lib_save_LIBS=$LIBS
  20922. LIBS="-lipc $LIBS"
  20923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20924. /* end confdefs.h. */
  20925. /* Override any GCC internal prototype to avoid an error.
  20926. Use char because int might match the return type of a GCC
  20927. builtin and then its argument prototype would still apply. */
  20928. char shmat ();
  20929. int
  20930. main (void)
  20931. {
  20932. return shmat ();
  20933. ;
  20934. return 0;
  20935. }
  20936. _ACEOF
  20937. if ac_fn_c_try_link "$LINENO"
  20938. then :
  20939. ac_cv_lib_ipc_shmat=yes
  20940. else $as_nop
  20941. ac_cv_lib_ipc_shmat=no
  20942. fi
  20943. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20944. conftest$ac_exeext conftest.$ac_ext
  20945. LIBS=$ac_check_lib_save_LIBS
  20946. fi
  20947. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20948. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20949. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20950. then :
  20951. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20952. fi
  20953. fi
  20954. fi
  20955. # Check for libraries that X11R6 Xt/Xaw programs need.
  20956. ac_save_LDFLAGS=$LDFLAGS
  20957. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  20958. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  20959. # check for ICE first), but we must link in the order -lSM -lICE or
  20960. # we get undefined symbols. So assume we have SM if we have ICE.
  20961. # These have to be linked with before -lX11, unlike the other
  20962. # libraries we check for below, so use a different variable.
  20963. # John Interrante, Karl Berry
  20964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  20965. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  20966. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  20967. then :
  20968. printf %s "(cached) " >&6
  20969. else $as_nop
  20970. ac_check_lib_save_LIBS=$LIBS
  20971. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  20972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20973. /* end confdefs.h. */
  20974. /* Override any GCC internal prototype to avoid an error.
  20975. Use char because int might match the return type of a GCC
  20976. builtin and then its argument prototype would still apply. */
  20977. char IceConnectionNumber ();
  20978. int
  20979. main (void)
  20980. {
  20981. return IceConnectionNumber ();
  20982. ;
  20983. return 0;
  20984. }
  20985. _ACEOF
  20986. if ac_fn_c_try_link "$LINENO"
  20987. then :
  20988. ac_cv_lib_ICE_IceConnectionNumber=yes
  20989. else $as_nop
  20990. ac_cv_lib_ICE_IceConnectionNumber=no
  20991. fi
  20992. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20993. conftest$ac_exeext conftest.$ac_ext
  20994. LIBS=$ac_check_lib_save_LIBS
  20995. fi
  20996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  20997. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  20998. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  20999. then :
  21000. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21001. fi
  21002. LDFLAGS=$ac_save_LDFLAGS
  21003. fi
  21004. if test x$have_x = xyes; then
  21005. # Check whether --enable-x11-shared was given.
  21006. if test ${enable_x11_shared+y}
  21007. then :
  21008. enableval=$enable_x11_shared;
  21009. else $as_nop
  21010. enable_x11_shared=maybe
  21011. fi
  21012. case "$host" in
  21013. *-*-darwin*)
  21014. # Apple now puts this in /opt/X11
  21015. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21016. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21017. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21018. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21019. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21020. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21021. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21022. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21023. ;;
  21024. *-*-openbsd*)
  21025. x11_lib='libX11.so'
  21026. x11ext_lib='libXext.so'
  21027. xcursor_lib='libXcursor.so'
  21028. xinput_lib='libXi.so'
  21029. xfixes_lib='libXfixes.so'
  21030. xrandr_lib='libXrandr.so'
  21031. xrender_lib='libXrender.so'
  21032. xss_lib='libXss.so'
  21033. ;;
  21034. *)
  21035. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21036. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21037. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21038. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21039. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21040. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21041. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21042. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21043. ;;
  21044. esac
  21045. if test x$ac_cv_func_shmat != xyes; then
  21046. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21047. fi
  21048. CFLAGS="$CFLAGS $X_CFLAGS"
  21049. LDFLAGS="$LDFLAGS $X_LIBS"
  21050. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21051. #include <X11/Xproto.h>
  21052. "
  21053. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21054. then :
  21055. have_xext_h_hdr=yes
  21056. else $as_nop
  21057. have_xext_h_hdr=no
  21058. fi
  21059. if test x$have_xext_h_hdr != xyes; then
  21060. as_fn_error $? "
  21061. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21062. " "$LINENO" 5
  21063. fi
  21064. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21065. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21066. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21067. # Needed so SDL applications can include SDL_syswm.h
  21068. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21069. if test x$enable_x11_shared = xmaybe; then
  21070. enable_x11_shared=yes
  21071. fi
  21072. if test x$have_loadso != xyes && \
  21073. test x$enable_x11_shared = xyes; then
  21074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21075. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21076. enable_x11_shared=no
  21077. fi
  21078. if test x$have_loadso = xyes && \
  21079. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21080. echo "-- dynamic libX11 -> $x11_lib"
  21081. echo "-- dynamic libX11ext -> $x11ext_lib"
  21082. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21083. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21084. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21085. else
  21086. enable_x11_shared=no
  21087. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21088. SUMMARY_video="${SUMMARY_video} x11"
  21089. fi
  21090. have_video=yes
  21091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21092. printf %s "checking for XGenericEvent... " >&6; }
  21093. have_XGenericEvent=no
  21094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21095. /* end confdefs.h. */
  21096. #include <X11/Xlib.h>
  21097. int
  21098. main (void)
  21099. {
  21100. Display *display;
  21101. XEvent event;
  21102. XGenericEventCookie *cookie = &event.xcookie;
  21103. XNextEvent(display, &event);
  21104. XGetEventData(display, cookie);
  21105. XFreeEventData(display, cookie);
  21106. ;
  21107. return 0;
  21108. }
  21109. _ACEOF
  21110. if ac_fn_c_try_compile "$LINENO"
  21111. then :
  21112. have_XGenericEvent=yes
  21113. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21114. fi
  21115. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21117. printf "%s\n" "$have_XGenericEvent" >&6; }
  21118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21119. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21120. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21121. then :
  21122. printf %s "(cached) " >&6
  21123. else $as_nop
  21124. ac_check_lib_save_LIBS=$LIBS
  21125. LIBS="-lX11 $LIBS"
  21126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21127. /* end confdefs.h. */
  21128. /* Override any GCC internal prototype to avoid an error.
  21129. Use char because int might match the return type of a GCC
  21130. builtin and then its argument prototype would still apply. */
  21131. char XkbKeycodeToKeysym ();
  21132. int
  21133. main (void)
  21134. {
  21135. return XkbKeycodeToKeysym ();
  21136. ;
  21137. return 0;
  21138. }
  21139. _ACEOF
  21140. if ac_fn_c_try_link "$LINENO"
  21141. then :
  21142. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21143. else $as_nop
  21144. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21145. fi
  21146. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21147. conftest$ac_exeext conftest.$ac_ext
  21148. LIBS=$ac_check_lib_save_LIBS
  21149. fi
  21150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21151. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21152. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21153. then :
  21154. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21155. fi
  21156. # Check whether --enable-video-x11-xcursor was given.
  21157. if test ${enable_video_x11_xcursor+y}
  21158. then :
  21159. enableval=$enable_video_x11_xcursor;
  21160. else $as_nop
  21161. enable_video_x11_xcursor=yes
  21162. fi
  21163. if test x$enable_video_x11_xcursor = xyes; then
  21164. definitely_enable_video_x11_xcursor=no
  21165. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21166. "
  21167. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21168. then :
  21169. have_xcursor_h_hdr=yes
  21170. else $as_nop
  21171. have_xcursor_h_hdr=no
  21172. fi
  21173. if test x$have_xcursor_h_hdr = xyes; then
  21174. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21175. echo "-- dynamic libXcursor -> $xcursor_lib"
  21176. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21177. definitely_enable_video_x11_xcursor=yes
  21178. else
  21179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21180. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21181. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21182. then :
  21183. printf %s "(cached) " >&6
  21184. else $as_nop
  21185. ac_check_lib_save_LIBS=$LIBS
  21186. LIBS="-lXcursor $LIBS"
  21187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21188. /* end confdefs.h. */
  21189. /* Override any GCC internal prototype to avoid an error.
  21190. Use char because int might match the return type of a GCC
  21191. builtin and then its argument prototype would still apply. */
  21192. char XcursorImageCreate ();
  21193. int
  21194. main (void)
  21195. {
  21196. return XcursorImageCreate ();
  21197. ;
  21198. return 0;
  21199. }
  21200. _ACEOF
  21201. if ac_fn_c_try_link "$LINENO"
  21202. then :
  21203. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21204. else $as_nop
  21205. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21206. fi
  21207. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21208. conftest$ac_exeext conftest.$ac_ext
  21209. LIBS=$ac_check_lib_save_LIBS
  21210. fi
  21211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21212. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21213. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21214. then :
  21215. have_xcursor_lib=yes
  21216. fi
  21217. if test x$have_xcursor_lib = xyes ; then
  21218. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21219. definitely_enable_video_x11_xcursor=yes
  21220. fi
  21221. fi
  21222. fi
  21223. fi
  21224. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21225. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21226. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21227. fi
  21228. # Check whether --enable-video-x11-xdbe was given.
  21229. if test ${enable_video_x11_xdbe+y}
  21230. then :
  21231. enableval=$enable_video_x11_xdbe;
  21232. else $as_nop
  21233. enable_video_x11_xdbe=yes
  21234. fi
  21235. if test x$enable_video_x11_xdbe = xyes; then
  21236. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21237. "
  21238. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21239. then :
  21240. have_dbe_h_hdr=yes
  21241. else $as_nop
  21242. have_dbe_h_hdr=no
  21243. fi
  21244. if test x$have_dbe_h_hdr = xyes; then
  21245. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21246. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21247. fi
  21248. fi
  21249. # Check whether --enable-video-x11-xinput was given.
  21250. if test ${enable_video_x11_xinput+y}
  21251. then :
  21252. enableval=$enable_video_x11_xinput;
  21253. else $as_nop
  21254. enable_video_x11_xinput=yes
  21255. fi
  21256. if test x$enable_video_x11_xinput = xyes; then
  21257. definitely_enable_video_x11_xinput=no
  21258. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21259. "
  21260. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21261. then :
  21262. have_xinput_h_hdr=yes
  21263. else $as_nop
  21264. have_xinput_h_hdr=no
  21265. fi
  21266. if test x$have_xinput_h_hdr = xyes; then
  21267. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21268. echo "-- dynamic libXi -> $xinput_lib"
  21269. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21270. definitely_enable_video_x11_xinput=yes
  21271. else
  21272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21273. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21274. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21275. then :
  21276. printf %s "(cached) " >&6
  21277. else $as_nop
  21278. ac_check_lib_save_LIBS=$LIBS
  21279. LIBS="-lXi $LIBS"
  21280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21281. /* end confdefs.h. */
  21282. /* Override any GCC internal prototype to avoid an error.
  21283. Use char because int might match the return type of a GCC
  21284. builtin and then its argument prototype would still apply. */
  21285. char XOpenDevice ();
  21286. int
  21287. main (void)
  21288. {
  21289. return XOpenDevice ();
  21290. ;
  21291. return 0;
  21292. }
  21293. _ACEOF
  21294. if ac_fn_c_try_link "$LINENO"
  21295. then :
  21296. ac_cv_lib_Xi_XOpenDevice=yes
  21297. else $as_nop
  21298. ac_cv_lib_Xi_XOpenDevice=no
  21299. fi
  21300. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21301. conftest$ac_exeext conftest.$ac_ext
  21302. LIBS=$ac_check_lib_save_LIBS
  21303. fi
  21304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21305. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21306. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21307. then :
  21308. have_xinput_lib=yes
  21309. fi
  21310. if test x$have_xinput_lib = xyes ; then
  21311. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21312. definitely_enable_video_x11_xinput=yes
  21313. fi
  21314. fi
  21315. fi
  21316. fi
  21317. if test x$definitely_enable_video_x11_xinput = xyes; then
  21318. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21319. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21321. printf %s "checking for xinput2 multitouch... " >&6; }
  21322. have_xinput2_multitouch=no
  21323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21324. /* end confdefs.h. */
  21325. #include <X11/Xlib.h>
  21326. #include <X11/Xproto.h>
  21327. #include <X11/extensions/XInput2.h>
  21328. int
  21329. main (void)
  21330. {
  21331. int event_type = XI_TouchBegin;
  21332. XITouchClassInfo *t;
  21333. ;
  21334. return 0;
  21335. }
  21336. _ACEOF
  21337. if ac_fn_c_try_compile "$LINENO"
  21338. then :
  21339. have_xinput2_multitouch=yes
  21340. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21341. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21342. fi
  21343. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21345. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21346. fi
  21347. # Check whether --enable-video-x11-xfixes was given.
  21348. if test ${enable_video_x11_xfixes+y}
  21349. then :
  21350. enableval=$enable_video_x11_xfixes;
  21351. else $as_nop
  21352. enable_video_x11_xfixes=yes
  21353. fi
  21354. if test x$enable_video_x11_xfixes = xyes; then
  21355. definitely_enable_video_x11_xfixes=no
  21356. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21357. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21358. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21360. /* end confdefs.h. */
  21361. #include <X11/Xlib.h>
  21362. #include <X11/Xproto.h>
  21363. #include <X11/extensions/XInput2.h>
  21364. #include <X11/extensions/Xfixes.h>
  21365. int
  21366. main (void)
  21367. {
  21368. BarrierEventID b;
  21369. ;
  21370. return 0;
  21371. }
  21372. _ACEOF
  21373. if ac_fn_c_try_compile "$LINENO"
  21374. then :
  21375. have_xfixes_h_hdr=yes
  21376. else $as_nop
  21377. have_xfixes_h_hdr=no
  21378. fi
  21379. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21381. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21382. if test x$have_xfixes_h_hdr = xyes; then
  21383. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21384. echo "-- dynamic libXfixes -> $xfixes_lib"
  21385. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21386. definitely_enable_video_x11_xfixes=yes
  21387. else
  21388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21389. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21390. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21391. then :
  21392. printf %s "(cached) " >&6
  21393. else $as_nop
  21394. ac_check_lib_save_LIBS=$LIBS
  21395. LIBS="-lXfixes $LIBS"
  21396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21397. /* end confdefs.h. */
  21398. /* Override any GCC internal prototype to avoid an error.
  21399. Use char because int might match the return type of a GCC
  21400. builtin and then its argument prototype would still apply. */
  21401. char XFixesCreatePointerBarrier ();
  21402. int
  21403. main (void)
  21404. {
  21405. return XFixesCreatePointerBarrier ();
  21406. ;
  21407. return 0;
  21408. }
  21409. _ACEOF
  21410. if ac_fn_c_try_link "$LINENO"
  21411. then :
  21412. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21413. else $as_nop
  21414. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21415. fi
  21416. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21417. conftest$ac_exeext conftest.$ac_ext
  21418. LIBS=$ac_check_lib_save_LIBS
  21419. fi
  21420. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21421. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21422. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21423. then :
  21424. have_xfixes_lib=yes
  21425. fi
  21426. if test x$have_xfixes_lib = xyes ; then
  21427. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21428. definitely_enable_video_x11_xfixes=yes
  21429. fi
  21430. fi
  21431. fi
  21432. fi
  21433. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21434. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21435. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21436. fi
  21437. # Check whether --enable-video-x11-xrandr was given.
  21438. if test ${enable_video_x11_xrandr+y}
  21439. then :
  21440. enableval=$enable_video_x11_xrandr;
  21441. else $as_nop
  21442. enable_video_x11_xrandr=yes
  21443. fi
  21444. if test x$enable_video_x11_xrandr = xyes; then
  21445. definitely_enable_video_x11_xrandr=no
  21446. have_xrandr_h_hdr=no
  21447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21448. /* end confdefs.h. */
  21449. #include <X11/Xlib.h>
  21450. #include <X11/extensions/Xrandr.h>
  21451. int
  21452. main (void)
  21453. {
  21454. XRRScreenResources *res = NULL;
  21455. ;
  21456. return 0;
  21457. }
  21458. _ACEOF
  21459. if ac_fn_c_try_compile "$LINENO"
  21460. then :
  21461. have_xrandr_h_hdr=yes
  21462. fi
  21463. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21464. if test x$have_xrandr_h_hdr = xyes; then
  21465. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21466. echo "-- dynamic libXrandr -> $xrandr_lib"
  21467. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21468. definitely_enable_video_x11_xrandr=yes
  21469. else
  21470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21471. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21472. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21473. then :
  21474. printf %s "(cached) " >&6
  21475. else $as_nop
  21476. ac_check_lib_save_LIBS=$LIBS
  21477. LIBS="-lXrandr $LIBS"
  21478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21479. /* end confdefs.h. */
  21480. /* Override any GCC internal prototype to avoid an error.
  21481. Use char because int might match the return type of a GCC
  21482. builtin and then its argument prototype would still apply. */
  21483. char XRRQueryExtension ();
  21484. int
  21485. main (void)
  21486. {
  21487. return XRRQueryExtension ();
  21488. ;
  21489. return 0;
  21490. }
  21491. _ACEOF
  21492. if ac_fn_c_try_link "$LINENO"
  21493. then :
  21494. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21495. else $as_nop
  21496. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21497. fi
  21498. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21499. conftest$ac_exeext conftest.$ac_ext
  21500. LIBS=$ac_check_lib_save_LIBS
  21501. fi
  21502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21503. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21504. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21505. then :
  21506. have_xrandr_lib=yes
  21507. fi
  21508. if test x$have_xrandr_lib = xyes ; then
  21509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21510. definitely_enable_video_x11_xrandr=yes
  21511. fi
  21512. fi
  21513. fi
  21514. fi
  21515. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21516. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21517. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21518. fi
  21519. # Check whether --enable-video-x11-scrnsaver was given.
  21520. if test ${enable_video_x11_scrnsaver+y}
  21521. then :
  21522. enableval=$enable_video_x11_scrnsaver;
  21523. else $as_nop
  21524. enable_video_x11_scrnsaver=yes
  21525. fi
  21526. if test x$enable_video_x11_scrnsaver = xyes; then
  21527. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21528. "
  21529. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21530. then :
  21531. have_scrnsaver_h_hdr=yes
  21532. else $as_nop
  21533. have_scrnsaver_h_hdr=no
  21534. fi
  21535. if test x$have_scrnsaver_h_hdr = xyes; then
  21536. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21537. echo "-- dynamic libXss -> $xss_lib"
  21538. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21539. definitely_enable_video_x11_scrnsaver=yes
  21540. else
  21541. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21542. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21543. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21544. then :
  21545. printf %s "(cached) " >&6
  21546. else $as_nop
  21547. ac_check_lib_save_LIBS=$LIBS
  21548. LIBS="-lXss $LIBS"
  21549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21550. /* end confdefs.h. */
  21551. /* Override any GCC internal prototype to avoid an error.
  21552. Use char because int might match the return type of a GCC
  21553. builtin and then its argument prototype would still apply. */
  21554. char XScreenSaverSuspend ();
  21555. int
  21556. main (void)
  21557. {
  21558. return XScreenSaverSuspend ();
  21559. ;
  21560. return 0;
  21561. }
  21562. _ACEOF
  21563. if ac_fn_c_try_link "$LINENO"
  21564. then :
  21565. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21566. else $as_nop
  21567. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21568. fi
  21569. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21570. conftest$ac_exeext conftest.$ac_ext
  21571. LIBS=$ac_check_lib_save_LIBS
  21572. fi
  21573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21574. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21575. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21576. then :
  21577. have_xss_lib=yes
  21578. fi
  21579. if test x$have_xss_lib = xyes ; then
  21580. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21581. definitely_enable_video_x11_scrnsaver=yes
  21582. fi
  21583. fi
  21584. fi
  21585. fi
  21586. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21587. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21588. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21589. fi
  21590. # Check whether --enable-video-x11-xshape was given.
  21591. if test ${enable_video_x11_xshape+y}
  21592. then :
  21593. enableval=$enable_video_x11_xshape;
  21594. else $as_nop
  21595. enable_video_x11_xshape=yes
  21596. fi
  21597. if test x$enable_video_x11_xshape = xyes; then
  21598. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21599. "
  21600. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21601. then :
  21602. have_shape_h_hdr=yes
  21603. else $as_nop
  21604. have_shape_h_hdr=no
  21605. fi
  21606. if test x$have_shape_h_hdr = xyes; then
  21607. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21608. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21609. fi
  21610. fi
  21611. fi
  21612. fi
  21613. if test x$have_x != xyes; then
  21614. # Prevent Mesa from including X11 headers
  21615. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21616. fi
  21617. }
  21618. CheckVivanteVideo()
  21619. {
  21620. # Check whether --enable-video-vivante was given.
  21621. if test ${enable_video_vivante+y}
  21622. then :
  21623. enableval=$enable_video_vivante;
  21624. else $as_nop
  21625. enable_video_vivante=yes
  21626. fi
  21627. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21629. printf %s "checking for Vivante VDK API... " >&6; }
  21630. have_vivante_vdk=no
  21631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21632. /* end confdefs.h. */
  21633. #define LINUX
  21634. #define EGL_API_FB
  21635. #include <gc_vdk.h>
  21636. int
  21637. main (void)
  21638. {
  21639. ;
  21640. return 0;
  21641. }
  21642. _ACEOF
  21643. if ac_fn_c_try_compile "$LINENO"
  21644. then :
  21645. have_vivante_vdk=yes
  21646. fi
  21647. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21649. printf "%s\n" "$have_vivante_vdk" >&6; }
  21650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21651. printf %s "checking for Vivante FB API... " >&6; }
  21652. have_vivante_egl=no
  21653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21654. /* end confdefs.h. */
  21655. #define LINUX
  21656. #define EGL_API_FB
  21657. #include <EGL/eglvivante.h>
  21658. int
  21659. main (void)
  21660. {
  21661. ;
  21662. return 0;
  21663. }
  21664. _ACEOF
  21665. if ac_fn_c_try_compile "$LINENO"
  21666. then :
  21667. have_vivante_egl=yes
  21668. fi
  21669. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21671. printf "%s\n" "$have_vivante_egl" >&6; }
  21672. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21673. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21674. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21675. if test x$have_vivante_vdk = xyes; then
  21676. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21678. fi
  21679. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21680. SUMMARY_video="${SUMMARY_video} vivante"
  21681. have_video=yes
  21682. fi
  21683. fi
  21684. }
  21685. CheckHaikuVideo()
  21686. {
  21687. if test x$enable_video = xyes; then
  21688. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21689. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21690. have_video=yes
  21691. SUMMARY_video="${SUMMARY_video} haiku"
  21692. fi
  21693. }
  21694. CheckCOCOA()
  21695. {
  21696. # Check whether --enable-video-cocoa was given.
  21697. if test ${enable_video_cocoa+y}
  21698. then :
  21699. enableval=$enable_video_cocoa;
  21700. else $as_nop
  21701. enable_video_cocoa=yes
  21702. fi
  21703. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21704. save_CFLAGS="$CFLAGS"
  21705. CFLAGS="$CFLAGS -x objective-c"
  21706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21707. printf %s "checking for Cocoa framework... " >&6; }
  21708. have_cocoa=no
  21709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21710. /* end confdefs.h. */
  21711. #import <Cocoa/Cocoa.h>
  21712. int
  21713. main (void)
  21714. {
  21715. ;
  21716. return 0;
  21717. }
  21718. _ACEOF
  21719. if ac_fn_c_try_compile "$LINENO"
  21720. then :
  21721. have_cocoa=yes
  21722. fi
  21723. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21725. printf "%s\n" "$have_cocoa" >&6; }
  21726. CFLAGS="$save_CFLAGS"
  21727. if test x$have_cocoa = xyes; then
  21728. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21729. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21730. SUMMARY_video="${SUMMARY_video} cocoa"
  21731. have_video=yes
  21732. fi
  21733. fi
  21734. }
  21735. CheckMETAL()
  21736. {
  21737. # Check whether --enable-video-metal was given.
  21738. if test ${enable_video_metal+y}
  21739. then :
  21740. enableval=$enable_video_metal;
  21741. else $as_nop
  21742. enable_video_metal=yes
  21743. fi
  21744. # Check whether --enable-render-metal was given.
  21745. if test ${enable_render_metal+y}
  21746. then :
  21747. enableval=$enable_render_metal;
  21748. else $as_nop
  21749. enable_render_metal=yes
  21750. fi
  21751. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21752. save_CFLAGS="$CFLAGS"
  21753. CFLAGS="$CFLAGS -x objective-c"
  21754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21755. printf %s "checking for Metal framework... " >&6; }
  21756. have_metal=no
  21757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21758. /* end confdefs.h. */
  21759. #import <Cocoa/Cocoa.h>
  21760. #import <Metal/Metal.h>
  21761. #import <QuartzCore/CAMetalLayer.h>
  21762. #if TARGET_CPU_X86
  21763. #error Metal doesn't work on this configuration
  21764. #endif
  21765. int
  21766. main (void)
  21767. {
  21768. ;
  21769. return 0;
  21770. }
  21771. _ACEOF
  21772. if ac_fn_c_try_compile "$LINENO"
  21773. then :
  21774. have_metal=yes
  21775. fi
  21776. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21777. CFLAGS="$save_CFLAGS"
  21778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21779. printf "%s\n" "$have_metal" >&6; }
  21780. if test x$have_metal = xyes; then
  21781. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21782. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21783. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21784. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21785. fi
  21786. SUMMARY_video="${SUMMARY_video} metal"
  21787. else
  21788. enable_video_metal=no
  21789. enable_render_metal=no
  21790. fi
  21791. fi
  21792. }
  21793. CheckDirectFB()
  21794. {
  21795. # Check whether --enable-video-directfb was given.
  21796. if test ${enable_video_directfb+y}
  21797. then :
  21798. enableval=$enable_video_directfb;
  21799. else $as_nop
  21800. enable_video_directfb=no
  21801. fi
  21802. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21803. pkg_failed=no
  21804. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21805. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21806. if test -n "$DIRECTFB_CFLAGS"; then
  21807. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21808. elif test -n "$PKG_CONFIG"; then
  21809. if test -n "$PKG_CONFIG" && \
  21810. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21811. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21812. ac_status=$?
  21813. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21814. test $ac_status = 0; }; then
  21815. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21816. test "x$?" != "x0" && pkg_failed=yes
  21817. else
  21818. pkg_failed=yes
  21819. fi
  21820. else
  21821. pkg_failed=untried
  21822. fi
  21823. if test -n "$DIRECTFB_LIBS"; then
  21824. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21825. elif test -n "$PKG_CONFIG"; then
  21826. if test -n "$PKG_CONFIG" && \
  21827. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21828. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21829. ac_status=$?
  21830. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21831. test $ac_status = 0; }; then
  21832. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21833. test "x$?" != "x0" && pkg_failed=yes
  21834. else
  21835. pkg_failed=yes
  21836. fi
  21837. else
  21838. pkg_failed=untried
  21839. fi
  21840. if test $pkg_failed = yes; then
  21841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21842. printf "%s\n" "no" >&6; }
  21843. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21844. _pkg_short_errors_supported=yes
  21845. else
  21846. _pkg_short_errors_supported=no
  21847. fi
  21848. if test $_pkg_short_errors_supported = yes; then
  21849. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21850. else
  21851. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21852. fi
  21853. # Put the nasty error message in config.log where it belongs
  21854. echo "$DIRECTFB_PKG_ERRORS" >&5
  21855. video_directfb=no
  21856. elif test $pkg_failed = untried; then
  21857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21858. printf "%s\n" "no" >&6; }
  21859. video_directfb=no
  21860. else
  21861. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21862. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21864. printf "%s\n" "yes" >&6; }
  21865. video_directfb=yes
  21866. fi
  21867. if test x$video_directfb = xyes; then
  21868. # SuSE 11.1 installs directfb-config without directfb-devel
  21869. save_CPPFLAGS="$CPPFLAGS"
  21870. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21871. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21872. if test "x$ac_cv_header_directfb_h" = xyes
  21873. then :
  21874. have_directfb_hdr=yes
  21875. else $as_nop
  21876. have_directfb_hdr=no
  21877. fi
  21878. CPPFLAGS="$save_CPPFLAGS"
  21879. video_directfb=$have_directfb_hdr
  21880. fi
  21881. if test x$video_directfb = xyes; then
  21882. # Check whether --enable-directfb-shared was given.
  21883. if test ${enable_directfb_shared+y}
  21884. then :
  21885. enableval=$enable_directfb_shared;
  21886. else $as_nop
  21887. enable_directfb_shared=yes
  21888. fi
  21889. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21890. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21891. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21892. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21893. directfb_shared=no
  21894. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21895. if test x$have_loadso != xyes && \
  21896. test x$enable_directfb_shared = xyes; then
  21897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21898. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21899. fi
  21900. if test x$have_loadso = xyes && \
  21901. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21902. directfb_shared=yes
  21903. echo "-- dynamic libdirectfb -> $directfb_lib"
  21904. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21905. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21906. else
  21907. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21908. SUMMARY_video="${SUMMARY_video} directfb"
  21909. fi
  21910. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21911. have_video=yes
  21912. fi
  21913. fi
  21914. }
  21915. CheckKMSDRM()
  21916. {
  21917. # Check whether --enable-video-kmsdrm was given.
  21918. if test ${enable_video_kmsdrm+y}
  21919. then :
  21920. enableval=$enable_video_kmsdrm;
  21921. else $as_nop
  21922. enable_video_kmsdrm=yes
  21923. fi
  21924. if test x$enable_video = xyes && \
  21925. test x$enable_video_kmsdrm = xyes && \
  21926. test x$video_opengl_egl = xyes; then
  21927. video_kmsdrm=no
  21928. pkg_failed=no
  21929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21930. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21931. if test -n "$LIBDRM_CFLAGS"; then
  21932. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21933. elif test -n "$PKG_CONFIG"; then
  21934. if test -n "$PKG_CONFIG" && \
  21935. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21936. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21937. ac_status=$?
  21938. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21939. test $ac_status = 0; }; then
  21940. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21941. test "x$?" != "x0" && pkg_failed=yes
  21942. else
  21943. pkg_failed=yes
  21944. fi
  21945. else
  21946. pkg_failed=untried
  21947. fi
  21948. if test -n "$LIBDRM_LIBS"; then
  21949. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21950. elif test -n "$PKG_CONFIG"; then
  21951. if test -n "$PKG_CONFIG" && \
  21952. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21953. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21954. ac_status=$?
  21955. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21956. test $ac_status = 0; }; then
  21957. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  21958. test "x$?" != "x0" && pkg_failed=yes
  21959. else
  21960. pkg_failed=yes
  21961. fi
  21962. else
  21963. pkg_failed=untried
  21964. fi
  21965. if test $pkg_failed = yes; then
  21966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21967. printf "%s\n" "no" >&6; }
  21968. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21969. _pkg_short_errors_supported=yes
  21970. else
  21971. _pkg_short_errors_supported=no
  21972. fi
  21973. if test $_pkg_short_errors_supported = yes; then
  21974. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21975. else
  21976. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  21977. fi
  21978. # Put the nasty error message in config.log where it belongs
  21979. echo "$LIBDRM_PKG_ERRORS" >&5
  21980. libdrm_avail=no
  21981. elif test $pkg_failed = untried; then
  21982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21983. printf "%s\n" "no" >&6; }
  21984. libdrm_avail=no
  21985. else
  21986. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21987. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21989. printf "%s\n" "yes" >&6; }
  21990. libdrm_avail=yes
  21991. fi
  21992. pkg_failed=no
  21993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  21994. printf %s "checking for gbm >= 11.1.0... " >&6; }
  21995. if test -n "$LIBGBM_CFLAGS"; then
  21996. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  21997. elif test -n "$PKG_CONFIG"; then
  21998. if test -n "$PKG_CONFIG" && \
  21999. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22000. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22001. ac_status=$?
  22002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22003. test $ac_status = 0; }; then
  22004. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22005. test "x$?" != "x0" && pkg_failed=yes
  22006. else
  22007. pkg_failed=yes
  22008. fi
  22009. else
  22010. pkg_failed=untried
  22011. fi
  22012. if test -n "$LIBGBM_LIBS"; then
  22013. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22014. elif test -n "$PKG_CONFIG"; then
  22015. if test -n "$PKG_CONFIG" && \
  22016. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22017. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22018. ac_status=$?
  22019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22020. test $ac_status = 0; }; then
  22021. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22022. test "x$?" != "x0" && pkg_failed=yes
  22023. else
  22024. pkg_failed=yes
  22025. fi
  22026. else
  22027. pkg_failed=untried
  22028. fi
  22029. if test $pkg_failed = yes; then
  22030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22031. printf "%s\n" "no" >&6; }
  22032. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22033. _pkg_short_errors_supported=yes
  22034. else
  22035. _pkg_short_errors_supported=no
  22036. fi
  22037. if test $_pkg_short_errors_supported = yes; then
  22038. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22039. else
  22040. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22041. fi
  22042. # Put the nasty error message in config.log where it belongs
  22043. echo "$LIBGBM_PKG_ERRORS" >&5
  22044. libgbm_avail=no
  22045. elif test $pkg_failed = untried; then
  22046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22047. printf "%s\n" "no" >&6; }
  22048. libgbm_avail=no
  22049. else
  22050. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22051. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22053. printf "%s\n" "yes" >&6; }
  22054. libgbm_avail=yes
  22055. fi
  22056. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22057. video_kmsdrm=yes
  22058. fi
  22059. if test x$video_kmsdrm = xyes; then
  22060. # Check whether --enable-kmsdrm-shared was given.
  22061. if test ${enable_kmsdrm_shared+y}
  22062. then :
  22063. enableval=$enable_kmsdrm_shared;
  22064. else $as_nop
  22065. enable_kmsdrm_shared=yes
  22066. fi
  22067. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22068. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22069. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22071. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22072. kmsdrm_shared=no
  22073. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22074. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22075. if test x$have_loadso != xyes && \
  22076. test x$enable_kmsdrm_shared = xyes; then
  22077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22078. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22079. fi
  22080. if test x$have_loadso = xyes && \
  22081. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22082. kmsdrm_shared=yes
  22083. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22084. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22085. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22086. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22087. else
  22088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22089. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22090. fi
  22091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22092. printf "%s\n" "$kmsdrm_shared" >&6; }
  22093. if test x$kmsdrm_shared = xyes; then
  22094. echo "-- dynamic libdrm -> $drm_lib"
  22095. echo "-- dynamic libgbm -> $gbm_lib"
  22096. fi
  22097. have_video=yes
  22098. fi
  22099. fi
  22100. }
  22101. CheckDummyVideo()
  22102. {
  22103. # Check whether --enable-video-dummy was given.
  22104. if test ${enable_video_dummy+y}
  22105. then :
  22106. enableval=$enable_video_dummy;
  22107. else $as_nop
  22108. enable_video_dummy=yes
  22109. fi
  22110. if test x$enable_video_dummy = xyes; then
  22111. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22112. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22113. have_video=yes
  22114. SUMMARY_video="${SUMMARY_video} dummy"
  22115. fi
  22116. }
  22117. CheckOffscreenVideo()
  22118. {
  22119. # Check whether --enable-video-offscreen was given.
  22120. if test ${enable_video_offscreen+y}
  22121. then :
  22122. enableval=$enable_video_offscreen;
  22123. else $as_nop
  22124. enable_video_offscreen=yes
  22125. fi
  22126. if test x$enable_video_offscreen = xyes; then
  22127. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22128. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22129. have_video=yes
  22130. SUMMARY_video="${SUMMARY_video} offscreen"
  22131. fi
  22132. }
  22133. CheckQNXVideo()
  22134. {
  22135. if test x$enable_video = xyes; then
  22136. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22137. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22138. have_video=yes
  22139. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22140. SUMMARY_video="${SUMMARY_video} qnx"
  22141. fi
  22142. }
  22143. CheckQNXAudio()
  22144. {
  22145. if test x$enable_audio = xyes; then
  22146. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22147. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22148. have_audio=yes
  22149. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22150. SUMMARY_audio="${SUMMARY_audio} qsa"
  22151. fi
  22152. }
  22153. # Check whether --enable-video-opengl was given.
  22154. if test ${enable_video_opengl+y}
  22155. then :
  22156. enableval=$enable_video_opengl;
  22157. else $as_nop
  22158. enable_video_opengl=yes
  22159. fi
  22160. CheckGLX()
  22161. {
  22162. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22164. printf %s "checking for GLX support... " >&6; }
  22165. video_opengl_glx=no
  22166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22167. /* end confdefs.h. */
  22168. #include <GL/glx.h>
  22169. int
  22170. main (void)
  22171. {
  22172. ;
  22173. return 0;
  22174. }
  22175. _ACEOF
  22176. if ac_fn_c_try_compile "$LINENO"
  22177. then :
  22178. video_opengl_glx=yes
  22179. fi
  22180. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22182. printf "%s\n" "$video_opengl_glx" >&6; }
  22183. if test x$video_opengl_glx = xyes; then
  22184. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22185. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22186. fi
  22187. fi
  22188. }
  22189. # Check whether --enable-video-opengles was given.
  22190. if test ${enable_video_opengles+y}
  22191. then :
  22192. enableval=$enable_video_opengles;
  22193. else $as_nop
  22194. enable_video_opengles=yes
  22195. fi
  22196. # Check whether --enable-video-opengles1 was given.
  22197. if test ${enable_video_opengles1+y}
  22198. then :
  22199. enableval=$enable_video_opengles1;
  22200. else $as_nop
  22201. enable_video_opengles1=yes
  22202. fi
  22203. # Check whether --enable-video-opengles2 was given.
  22204. if test ${enable_video_opengles2+y}
  22205. then :
  22206. enableval=$enable_video_opengles2;
  22207. else $as_nop
  22208. enable_video_opengles2=yes
  22209. fi
  22210. CheckEGL()
  22211. {
  22212. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22214. printf %s "checking for EGL support... " >&6; }
  22215. video_opengl_egl=no
  22216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22217. /* end confdefs.h. */
  22218. #define LINUX
  22219. #define EGL_API_FB
  22220. #define MESA_EGL_NO_X11_HEADERS
  22221. #define EGL_NO_X11
  22222. #include <EGL/egl.h>
  22223. #include <EGL/eglext.h>
  22224. int
  22225. main (void)
  22226. {
  22227. ;
  22228. return 0;
  22229. }
  22230. _ACEOF
  22231. if ac_fn_c_try_compile "$LINENO"
  22232. then :
  22233. video_opengl_egl=yes
  22234. fi
  22235. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22237. printf "%s\n" "$video_opengl_egl" >&6; }
  22238. if test x$video_opengl_egl = xyes; then
  22239. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22240. fi
  22241. fi
  22242. }
  22243. CheckOpenGL()
  22244. {
  22245. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22247. printf %s "checking for OpenGL headers... " >&6; }
  22248. video_opengl=no
  22249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22250. /* end confdefs.h. */
  22251. #include <GL/gl.h>
  22252. #include <GL/glext.h>
  22253. int
  22254. main (void)
  22255. {
  22256. ;
  22257. return 0;
  22258. }
  22259. _ACEOF
  22260. if ac_fn_c_try_compile "$LINENO"
  22261. then :
  22262. video_opengl=yes
  22263. fi
  22264. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22265. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22266. printf "%s\n" "$video_opengl" >&6; }
  22267. if test x$video_opengl = xyes; then
  22268. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22269. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22270. SUMMARY_video="${SUMMARY_video} opengl"
  22271. fi
  22272. fi
  22273. }
  22274. CheckOpenGLES()
  22275. {
  22276. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22277. if test x$enable_video_opengles1 = xyes; then
  22278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22279. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22280. video_opengles_v1=no
  22281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22282. /* end confdefs.h. */
  22283. #include <GLES/gl.h>
  22284. #include <GLES/glext.h>
  22285. int
  22286. main (void)
  22287. {
  22288. ;
  22289. return 0;
  22290. }
  22291. _ACEOF
  22292. if ac_fn_c_try_compile "$LINENO"
  22293. then :
  22294. video_opengles_v1=yes
  22295. fi
  22296. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22298. printf "%s\n" "$video_opengles_v1" >&6; }
  22299. if test x$video_opengles_v1 = xyes; then
  22300. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22301. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22302. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22303. fi
  22304. fi
  22305. if test x$enable_video_opengles2 = xyes; then
  22306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22307. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22308. video_opengles_v2=no
  22309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22310. /* end confdefs.h. */
  22311. #include <GLES2/gl2.h>
  22312. #include <GLES2/gl2ext.h>
  22313. int
  22314. main (void)
  22315. {
  22316. ;
  22317. return 0;
  22318. }
  22319. _ACEOF
  22320. if ac_fn_c_try_compile "$LINENO"
  22321. then :
  22322. video_opengles_v2=yes
  22323. fi
  22324. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22326. printf "%s\n" "$video_opengles_v2" >&6; }
  22327. if test x$video_opengles_v2 = xyes; then
  22328. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22329. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22330. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22331. fi
  22332. fi
  22333. fi
  22334. }
  22335. CheckWINDOWSGL()
  22336. {
  22337. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22338. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22339. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22340. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22341. SUMMARY_video="${SUMMARY_video} opengl"
  22342. fi
  22343. }
  22344. CheckWINDOWSGLES()
  22345. {
  22346. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22348. printf %s "checking for EGL support... " >&6; }
  22349. video_opengl_egl=no
  22350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22351. /* end confdefs.h. */
  22352. #include <EGL/egl.h>
  22353. int
  22354. main (void)
  22355. {
  22356. ;
  22357. return 0;
  22358. }
  22359. _ACEOF
  22360. if ac_fn_c_try_compile "$LINENO"
  22361. then :
  22362. video_opengl_egl=yes
  22363. fi
  22364. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22366. printf "%s\n" "$video_opengl_egl" >&6; }
  22367. if test x$video_opengl_egl = xyes; then
  22368. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22369. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22370. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22371. fi
  22372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22373. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22374. video_opengles_v2=no
  22375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22376. /* end confdefs.h. */
  22377. #include <GLES2/gl2.h>
  22378. #include <GLES2/gl2ext.h>
  22379. int
  22380. main (void)
  22381. {
  22382. ;
  22383. return 0;
  22384. }
  22385. _ACEOF
  22386. if ac_fn_c_try_compile "$LINENO"
  22387. then :
  22388. video_opengles_v2=yes
  22389. fi
  22390. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22392. printf "%s\n" "$video_opengles_v2" >&6; }
  22393. if test x$video_opengles_v2 = xyes; then
  22394. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22395. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22396. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22397. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22398. fi
  22399. fi
  22400. }
  22401. CheckHaikuGL()
  22402. {
  22403. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22404. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22405. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22406. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22407. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22408. SUMMARY_video="${SUMMARY_video} opengl"
  22409. fi
  22410. }
  22411. CheckMacGL()
  22412. {
  22413. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22414. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22415. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22416. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22417. SUMMARY_video="${SUMMARY_video} opengl"
  22418. fi
  22419. }
  22420. CheckMacGLES()
  22421. {
  22422. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22423. video_opengl_egl=yes
  22424. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22425. video_opengles_v2=yes
  22426. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22427. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22428. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22429. fi
  22430. }
  22431. CheckEmscriptenGLES()
  22432. {
  22433. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22435. printf %s "checking for EGL support... " >&6; }
  22436. video_opengl_egl=no
  22437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22438. /* end confdefs.h. */
  22439. #include <EGL/egl.h>
  22440. int
  22441. main (void)
  22442. {
  22443. ;
  22444. return 0;
  22445. }
  22446. _ACEOF
  22447. if ac_fn_c_try_compile "$LINENO"
  22448. then :
  22449. video_opengl_egl=yes
  22450. fi
  22451. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22453. printf "%s\n" "$video_opengl_egl" >&6; }
  22454. if test x$video_opengl_egl = xyes; then
  22455. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22456. fi
  22457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22458. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22459. video_opengles_v2=no
  22460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22461. /* end confdefs.h. */
  22462. #include <GLES2/gl2.h>
  22463. #include <GLES2/gl2ext.h>
  22464. int
  22465. main (void)
  22466. {
  22467. ;
  22468. return 0;
  22469. }
  22470. _ACEOF
  22471. if ac_fn_c_try_compile "$LINENO"
  22472. then :
  22473. video_opengles_v2=yes
  22474. fi
  22475. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22477. printf "%s\n" "$video_opengles_v2" >&6; }
  22478. if test x$video_opengles_v2 = xyes; then
  22479. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22480. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22481. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22482. fi
  22483. fi
  22484. }
  22485. # Check whether --enable-video-vulkan was given.
  22486. if test ${enable_video_vulkan+y}
  22487. then :
  22488. enableval=$enable_video_vulkan;
  22489. else $as_nop
  22490. enable_video_vulkan=yes
  22491. fi
  22492. CheckVulkan()
  22493. {
  22494. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22495. case "$host" in
  22496. *-*-android*)
  22497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22498. /* end confdefs.h. */
  22499. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22500. #error Vulkan doesn't work on this configuration
  22501. #endif
  22502. int
  22503. main (void)
  22504. {
  22505. ;
  22506. return 0;
  22507. }
  22508. _ACEOF
  22509. if ac_fn_c_try_compile "$LINENO"
  22510. then :
  22511. else $as_nop
  22512. enable_video_vulkan=no
  22513. fi
  22514. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22515. ;;
  22516. *-*-darwin*)
  22517. save_CFLAGS="$CFLAGS"
  22518. CFLAGS="$CFLAGS -x objective-c"
  22519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22520. /* end confdefs.h. */
  22521. #include <Cocoa/Cocoa.h>
  22522. #include <Metal/Metal.h>
  22523. #include <QuartzCore/CAMetalLayer.h>
  22524. #if TARGET_CPU_X86
  22525. #error Vulkan doesn't work on this configuration
  22526. #endif
  22527. int
  22528. main (void)
  22529. {
  22530. ;
  22531. return 0;
  22532. }
  22533. _ACEOF
  22534. if ac_fn_c_try_compile "$LINENO"
  22535. then :
  22536. else $as_nop
  22537. enable_video_vulkan=no
  22538. fi
  22539. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22540. CFLAGS="$save_CFLAGS"
  22541. ;;
  22542. *)
  22543. ;;
  22544. esac
  22545. if test x$enable_video_vulkan = xno; then
  22546. # For reasons I am totally unable to see, I get an undefined macro error if
  22547. # I put this in the AC_TRY_COMPILE.
  22548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22549. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22550. fi
  22551. fi
  22552. if test x$have_loadso != xyes; then
  22553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22554. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22555. enable_video_vulkan=no
  22556. fi
  22557. if test x$enable_video_vulkan = xyes; then
  22558. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22559. SUMMARY_video="${SUMMARY_video} vulkan"
  22560. fi
  22561. }
  22562. CheckInputEvents()
  22563. {
  22564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22565. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22566. use_input_events=no
  22567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22568. /* end confdefs.h. */
  22569. #include <linux/input.h>
  22570. int
  22571. main (void)
  22572. {
  22573. #ifndef EVIOCGNAME
  22574. #error EVIOCGNAME() ioctl not available
  22575. #endif
  22576. ;
  22577. return 0;
  22578. }
  22579. _ACEOF
  22580. if ac_fn_c_try_compile "$LINENO"
  22581. then :
  22582. use_input_events=yes
  22583. fi
  22584. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22586. printf "%s\n" "$use_input_events" >&6; }
  22587. if test x$use_input_events = xyes; then
  22588. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22589. SUMMARY_input="${SUMMARY_input} linuxev"
  22590. fi
  22591. }
  22592. CheckInputKD()
  22593. {
  22594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22595. printf %s "checking for Linux kd.h... " >&6; }
  22596. use_input_kd=no
  22597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22598. /* end confdefs.h. */
  22599. #include <linux/kd.h>
  22600. #include <linux/keyboard.h>
  22601. #include <sys/ioctl.h>
  22602. int
  22603. main (void)
  22604. {
  22605. struct kbentry kbe;
  22606. kbe.kb_table = KG_CTRL;
  22607. ioctl(0, KDGKBENT, &kbe);
  22608. ;
  22609. return 0;
  22610. }
  22611. _ACEOF
  22612. if ac_fn_c_try_compile "$LINENO"
  22613. then :
  22614. use_input_kd=yes
  22615. fi
  22616. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22618. printf "%s\n" "$use_input_kd" >&6; }
  22619. if test x$use_input_kd = xyes; then
  22620. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22621. SUMMARY_input="${SUMMARY_input} linuxkd"
  22622. fi
  22623. }
  22624. CheckInputKBIO()
  22625. {
  22626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22627. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22628. use_input_kbio=no
  22629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22630. /* end confdefs.h. */
  22631. #include <sys/kbio.h>
  22632. #include <sys/ioctl.h>
  22633. int
  22634. main (void)
  22635. {
  22636. accentmap_t accTable;
  22637. ioctl(0, KDENABIO, 1);
  22638. ;
  22639. return 0;
  22640. }
  22641. _ACEOF
  22642. if ac_fn_c_try_compile "$LINENO"
  22643. then :
  22644. use_input_kbio=yes
  22645. fi
  22646. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22648. printf "%s\n" "$use_input_kbio" >&6; }
  22649. if test x$use_input_kbio = xyes; then
  22650. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22651. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22652. fi
  22653. }
  22654. CheckInputWSCONS()
  22655. {
  22656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22657. printf %s "checking for OpenBSD wscons... " >&6; }
  22658. use_input_wscons=no
  22659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22660. /* end confdefs.h. */
  22661. #include <sys/time.h>
  22662. #include <dev/wscons/wsconsio.h>
  22663. #include <dev/wscons/wsksymdef.h>
  22664. #include <dev/wscons/wsksymvar.h>
  22665. #include <sys/ioctl.h>
  22666. int
  22667. main (void)
  22668. {
  22669. struct wskbd_map_data data;
  22670. ioctl(0, WSKBDIO_GETMAP, &data);
  22671. ;
  22672. return 0;
  22673. }
  22674. _ACEOF
  22675. if ac_fn_c_try_compile "$LINENO"
  22676. then :
  22677. use_input_wscons=yes
  22678. fi
  22679. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22680. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22681. printf "%s\n" "$use_input_wscons" >&6; }
  22682. if test x$use_input_wscons = xyes; then
  22683. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22684. SUMMARY_input="${SUMMARY_input} wscons"
  22685. fi
  22686. }
  22687. CheckLibUDev()
  22688. {
  22689. # Check whether --enable-libudev was given.
  22690. if test ${enable_libudev+y}
  22691. then :
  22692. enableval=$enable_libudev;
  22693. else $as_nop
  22694. enable_libudev=yes
  22695. fi
  22696. if test x$enable_libudev = xyes; then
  22697. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22698. if test "x$ac_cv_header_libudev_h" = xyes
  22699. then :
  22700. have_libudev_h_hdr=yes
  22701. else $as_nop
  22702. have_libudev_h_hdr=no
  22703. fi
  22704. if test x$have_libudev_h_hdr = xyes; then
  22705. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22706. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22707. if test x$udev_lib != x; then
  22708. echo "-- dynamic udev -> $udev_lib"
  22709. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22710. fi
  22711. fi
  22712. fi
  22713. }
  22714. CheckDBus()
  22715. {
  22716. # Check whether --enable-dbus was given.
  22717. if test ${enable_dbus+y}
  22718. then :
  22719. enableval=$enable_dbus;
  22720. else $as_nop
  22721. enable_dbus=yes
  22722. fi
  22723. if test x$enable_dbus = xyes; then
  22724. pkg_failed=no
  22725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22726. printf %s "checking for dbus-1... " >&6; }
  22727. if test -n "$DBUS_CFLAGS"; then
  22728. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22729. elif test -n "$PKG_CONFIG"; then
  22730. if test -n "$PKG_CONFIG" && \
  22731. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22732. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22733. ac_status=$?
  22734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22735. test $ac_status = 0; }; then
  22736. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22737. test "x$?" != "x0" && pkg_failed=yes
  22738. else
  22739. pkg_failed=yes
  22740. fi
  22741. else
  22742. pkg_failed=untried
  22743. fi
  22744. if test -n "$DBUS_LIBS"; then
  22745. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22746. elif test -n "$PKG_CONFIG"; then
  22747. if test -n "$PKG_CONFIG" && \
  22748. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22749. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22750. ac_status=$?
  22751. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22752. test $ac_status = 0; }; then
  22753. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22754. test "x$?" != "x0" && pkg_failed=yes
  22755. else
  22756. pkg_failed=yes
  22757. fi
  22758. else
  22759. pkg_failed=untried
  22760. fi
  22761. if test $pkg_failed = yes; then
  22762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22763. printf "%s\n" "no" >&6; }
  22764. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22765. _pkg_short_errors_supported=yes
  22766. else
  22767. _pkg_short_errors_supported=no
  22768. fi
  22769. if test $_pkg_short_errors_supported = yes; then
  22770. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22771. else
  22772. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22773. fi
  22774. # Put the nasty error message in config.log where it belongs
  22775. echo "$DBUS_PKG_ERRORS" >&5
  22776. have_dbus=no
  22777. elif test $pkg_failed = untried; then
  22778. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22779. printf "%s\n" "no" >&6; }
  22780. have_dbus=no
  22781. else
  22782. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22783. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22785. printf "%s\n" "yes" >&6; }
  22786. have_dbus=yes
  22787. fi
  22788. save_CPPFLAGS="$CPPFLAGS"
  22789. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22790. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22791. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22792. then :
  22793. have_dbus_dbus_h_hdr=yes
  22794. else $as_nop
  22795. have_dbus_dbus_h_hdr=no
  22796. fi
  22797. CPPFLAGS="$save_CPPFLAGS"
  22798. if test x$have_dbus_dbus_h_hdr = xyes; then
  22799. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22800. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22801. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22802. fi
  22803. fi
  22804. }
  22805. CheckIME()
  22806. {
  22807. # Check whether --enable-ime was given.
  22808. if test ${enable_ime+y}
  22809. then :
  22810. enableval=$enable_ime;
  22811. else $as_nop
  22812. enable_ime=yes
  22813. fi
  22814. if test x$enable_ime = xyes; then
  22815. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22816. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22817. fi
  22818. }
  22819. CheckInotify()
  22820. {
  22821. save_LIBS="$LIBS"
  22822. case "$host" in
  22823. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22824. ;;
  22825. esac
  22826. for ac_header in sys/inotify.h
  22827. do :
  22828. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22829. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22830. then :
  22831. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22832. have_inotify_inotify_h_hdr=yes
  22833. fi
  22834. done
  22835. for ac_func in inotify_init
  22836. do :
  22837. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22838. if test "x$ac_cv_func_inotify_init" = xyes
  22839. then :
  22840. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22841. have_inotify=yes
  22842. fi
  22843. done
  22844. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22845. if test "x$ac_cv_func_inotify_init1" = xyes
  22846. then :
  22847. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22848. fi
  22849. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22850. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22851. case "$host" in
  22852. *-*-freebsd*|*-*-dragonfly*)
  22853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22854. ;;
  22855. esac
  22856. fi
  22857. LIBS="$save_LIBS"
  22858. }
  22859. CheckIBus()
  22860. {
  22861. # Check whether --enable-ibus was given.
  22862. if test ${enable_ibus+y}
  22863. then :
  22864. enableval=$enable_ibus;
  22865. else $as_nop
  22866. enable_ibus=yes
  22867. fi
  22868. if test x$enable_ibus = xyes; then
  22869. pkg_failed=no
  22870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22871. printf %s "checking for ibus-1.0... " >&6; }
  22872. if test -n "$IBUS_CFLAGS"; then
  22873. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22874. elif test -n "$PKG_CONFIG"; then
  22875. if test -n "$PKG_CONFIG" && \
  22876. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22877. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22878. ac_status=$?
  22879. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22880. test $ac_status = 0; }; then
  22881. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22882. test "x$?" != "x0" && pkg_failed=yes
  22883. else
  22884. pkg_failed=yes
  22885. fi
  22886. else
  22887. pkg_failed=untried
  22888. fi
  22889. if test -n "$IBUS_LIBS"; then
  22890. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22891. elif test -n "$PKG_CONFIG"; then
  22892. if test -n "$PKG_CONFIG" && \
  22893. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22894. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22895. ac_status=$?
  22896. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22897. test $ac_status = 0; }; then
  22898. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22899. test "x$?" != "x0" && pkg_failed=yes
  22900. else
  22901. pkg_failed=yes
  22902. fi
  22903. else
  22904. pkg_failed=untried
  22905. fi
  22906. if test $pkg_failed = yes; then
  22907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22908. printf "%s\n" "no" >&6; }
  22909. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22910. _pkg_short_errors_supported=yes
  22911. else
  22912. _pkg_short_errors_supported=no
  22913. fi
  22914. if test $_pkg_short_errors_supported = yes; then
  22915. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22916. else
  22917. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22918. fi
  22919. # Put the nasty error message in config.log where it belongs
  22920. echo "$IBUS_PKG_ERRORS" >&5
  22921. have_ibus=no
  22922. elif test $pkg_failed = untried; then
  22923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22924. printf "%s\n" "no" >&6; }
  22925. have_ibus=no
  22926. else
  22927. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22928. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22930. printf "%s\n" "yes" >&6; }
  22931. have_ibus=yes
  22932. fi
  22933. save_CPPFLAGS="$CPPFLAGS"
  22934. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22935. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22936. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22937. then :
  22938. have_ibus_ibus_h_hdr=yes
  22939. else $as_nop
  22940. have_ibus_ibus_h_hdr=no
  22941. fi
  22942. CPPFLAGS="$save_CPPFLAGS"
  22943. if test x$have_ibus_ibus_h_hdr = xyes; then
  22944. if test x$enable_ime != xyes; then
  22945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22946. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22947. have_ibus_ibus_h_hdr=no
  22948. elif test x$enable_dbus != xyes; then
  22949. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22950. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22951. have_ibus_ibus_h_hdr=no
  22952. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22954. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22955. have_ibus_ibus_h_hdr=no
  22956. else
  22957. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  22958. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  22959. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  22960. fi
  22961. fi
  22962. fi
  22963. }
  22964. CheckFcitx()
  22965. {
  22966. # Check whether --enable-fcitx was given.
  22967. if test ${enable_fcitx+y}
  22968. then :
  22969. enableval=$enable_fcitx;
  22970. else $as_nop
  22971. enable_fcitx=yes
  22972. fi
  22973. if test x$enable_fcitx = xyes; then
  22974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  22975. printf %s "checking for fcitx support... " >&6; }
  22976. have_fcitx=no
  22977. if test x$enable_ime != xyes; then
  22978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  22979. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  22980. elif test x$have_dbus_dbus_h_hdr != xyes; then
  22981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  22982. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  22983. else
  22984. have_fcitx=yes
  22985. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  22986. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  22987. fi
  22988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  22989. printf "%s\n" "$have_fcitx" >&6; }
  22990. fi
  22991. }
  22992. CheckJoystickMFI()
  22993. {
  22994. # Check whether --enable-joystick-mfi was given.
  22995. if test ${enable_joystick_mfi+y}
  22996. then :
  22997. enableval=$enable_joystick_mfi;
  22998. else $as_nop
  22999. enable_joystick_mfi=yes
  23000. fi
  23001. if test x$enable_joystick_mfi = xyes; then
  23002. save_CFLAGS="$CFLAGS"
  23003. save_LDFLAGS="$LDFLAGS"
  23004. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23005. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23007. printf %s "checking for GameController framework... " >&6; }
  23008. enable_joystick_mfi=no
  23009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23010. /* end confdefs.h. */
  23011. #include <AvailabilityMacros.h>
  23012. #include <TargetConditionals.h>
  23013. #import <GameController/GameController.h>
  23014. int
  23015. main (void)
  23016. {
  23017. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23018. #error GameController framework doesn't work on this configuration
  23019. #endif
  23020. #if TARGET_CPU_X86
  23021. #error GameController framework doesn't work on this configuration
  23022. #endif
  23023. ;
  23024. return 0;
  23025. }
  23026. _ACEOF
  23027. if ac_fn_c_try_link "$LINENO"
  23028. then :
  23029. enable_joystick_mfi=yes
  23030. fi
  23031. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23032. conftest$ac_exeext conftest.$ac_ext
  23033. CFLAGS="$save_CFLAGS"
  23034. LDFLAGS="$save_LDFLAGS"
  23035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23036. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23037. if test x$enable_joystick_mfi = xyes; then
  23038. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23039. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23040. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23041. fi
  23042. fi
  23043. }
  23044. CheckPTHREAD()
  23045. {
  23046. case "$host" in
  23047. *-*-emscripten*)
  23048. enable_pthreads_default=no
  23049. ;;
  23050. *)
  23051. enable_pthreads_default=yes
  23052. ;;
  23053. esac
  23054. # Check whether --enable-pthreads was given.
  23055. if test ${enable_pthreads+y}
  23056. then :
  23057. enableval=$enable_pthreads;
  23058. else $as_nop
  23059. enable_pthreads=maybe
  23060. fi
  23061. # Check whether --enable-pthread-sem was given.
  23062. if test ${enable_pthread_sem+y}
  23063. then :
  23064. enableval=$enable_pthread_sem;
  23065. else $as_nop
  23066. enable_pthread_sem=maybe
  23067. fi
  23068. if test x$enable_pthreads = xmaybe; then
  23069. enable_pthreads=$enable_pthreads_default
  23070. fi
  23071. if test x$enable_pthread_sem = xmaybe; then
  23072. enable_pthread_sem=$enable_pthreads
  23073. fi
  23074. case "$host" in
  23075. *-*-android*)
  23076. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23077. pthread_lib=""
  23078. ;;
  23079. *-*-linux*|*-*-uclinux*)
  23080. pthread_cflags="-D_REENTRANT"
  23081. pthread_lib="-lpthread"
  23082. ;;
  23083. *-*-bsdi*)
  23084. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23085. pthread_lib=""
  23086. ;;
  23087. *-*-darwin*)
  23088. pthread_cflags="-D_THREAD_SAFE"
  23089. # causes Carbon.p complaints?
  23090. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23091. ;;
  23092. *-*-freebsd*|*-*-dragonfly*)
  23093. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23094. pthread_lib="-pthread"
  23095. ;;
  23096. *-*-netbsd*)
  23097. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23098. pthread_lib="-lpthread"
  23099. ;;
  23100. *-*-openbsd*)
  23101. pthread_cflags="-D_REENTRANT"
  23102. pthread_lib="-pthread"
  23103. ;;
  23104. *-*-solaris2.9)
  23105. # From Solaris 9+, posix4's preferred name is rt.
  23106. pthread_cflags="-D_REENTRANT"
  23107. pthread_lib="-lpthread -lrt"
  23108. ;;
  23109. *-*-solaris2.10)
  23110. # Solaris 10+ merged pthread into libc.
  23111. pthread_cflags="-D_REENTRANT"
  23112. pthread_lib="-lrt"
  23113. ;;
  23114. *-*-solaris*)
  23115. # Solaris 11+ merged rt into libc.
  23116. pthread_cflags="-D_REENTRANT"
  23117. pthread_lib=""
  23118. ;;
  23119. *-*-sysv5*)
  23120. pthread_cflags="-D_REENTRANT -Kthread"
  23121. pthread_lib=""
  23122. ;;
  23123. *-*-aix*)
  23124. pthread_cflags="-D_REENTRANT -mthreads"
  23125. pthread_lib="-lpthread"
  23126. ;;
  23127. *-*-hpux11*)
  23128. pthread_cflags="-D_REENTRANT"
  23129. pthread_lib="-L/usr/lib -lpthread"
  23130. ;;
  23131. *-*-haiku*)
  23132. pthread_cflags="-D_REENTRANT"
  23133. pthread_lib=""
  23134. ;;
  23135. *-*-nto*)
  23136. pthread_cflags="-D_REENTRANT"
  23137. pthread_lib=""
  23138. ;;
  23139. *-*-emscripten*)
  23140. pthread_cflags="-D_REENTRANT -pthread"
  23141. pthread_lib="-pthread"
  23142. ;;
  23143. *)
  23144. pthread_cflags="-D_REENTRANT"
  23145. pthread_lib="-lpthread"
  23146. ;;
  23147. esac
  23148. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23149. # Save the original compiler flags and libraries
  23150. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23151. # Add the pthread compiler flags and libraries
  23152. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23153. # Check to see if we have pthread support on this system
  23154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23155. printf %s "checking for pthreads... " >&6; }
  23156. use_pthreads=no
  23157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23158. /* end confdefs.h. */
  23159. #include <pthread.h>
  23160. int
  23161. main (void)
  23162. {
  23163. pthread_attr_t type;
  23164. pthread_attr_init(&type);
  23165. ;
  23166. return 0;
  23167. }
  23168. _ACEOF
  23169. if ac_fn_c_try_link "$LINENO"
  23170. then :
  23171. use_pthreads=yes
  23172. fi
  23173. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23174. conftest$ac_exeext conftest.$ac_ext
  23175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23176. printf "%s\n" "$use_pthreads" >&6; }
  23177. # Restore the compiler flags and libraries
  23178. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23179. # Do futher testing if we have pthread support...
  23180. if test x$use_pthreads = xyes; then
  23181. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23182. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23184. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23185. # Save the original compiler flags and libraries
  23186. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23187. # Add the pthread compiler flags and libraries
  23188. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23189. # Check to see if recursive mutexes are available
  23190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23191. printf %s "checking for recursive mutexes... " >&6; }
  23192. has_recursive_mutexes=no
  23193. if test x$has_recursive_mutexes = xno; then
  23194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23195. /* end confdefs.h. */
  23196. #define _GNU_SOURCE 1
  23197. #include <pthread.h>
  23198. int
  23199. main (void)
  23200. {
  23201. pthread_mutexattr_t attr;
  23202. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23203. ;
  23204. return 0;
  23205. }
  23206. _ACEOF
  23207. if ac_fn_c_try_link "$LINENO"
  23208. then :
  23209. has_recursive_mutexes=yes
  23210. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23211. fi
  23212. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23213. conftest$ac_exeext conftest.$ac_ext
  23214. fi
  23215. if test x$has_recursive_mutexes = xno; then
  23216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23217. /* end confdefs.h. */
  23218. #define _GNU_SOURCE 1
  23219. #include <pthread.h>
  23220. int
  23221. main (void)
  23222. {
  23223. pthread_mutexattr_t attr;
  23224. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23225. ;
  23226. return 0;
  23227. }
  23228. _ACEOF
  23229. if ac_fn_c_try_link "$LINENO"
  23230. then :
  23231. has_recursive_mutexes=yes
  23232. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23233. fi
  23234. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23235. conftest$ac_exeext conftest.$ac_ext
  23236. fi
  23237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23238. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23239. # Check to see if pthread semaphore support is missing
  23240. if test x$enable_pthread_sem = xyes; then
  23241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23242. printf %s "checking for pthread semaphores... " >&6; }
  23243. have_pthread_sem=no
  23244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23245. /* end confdefs.h. */
  23246. #include <pthread.h>
  23247. #include <semaphore.h>
  23248. int
  23249. main (void)
  23250. {
  23251. ;
  23252. return 0;
  23253. }
  23254. _ACEOF
  23255. if ac_fn_c_try_compile "$LINENO"
  23256. then :
  23257. have_pthread_sem=yes
  23258. fi
  23259. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23260. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23261. printf "%s\n" "$have_pthread_sem" >&6; }
  23262. fi
  23263. if test x$have_pthread_sem = xyes; then
  23264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23265. printf %s "checking for sem_timedwait... " >&6; }
  23266. have_sem_timedwait=no
  23267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23268. /* end confdefs.h. */
  23269. #include <pthread.h>
  23270. #include <semaphore.h>
  23271. int
  23272. main (void)
  23273. {
  23274. sem_timedwait(NULL, NULL);
  23275. ;
  23276. return 0;
  23277. }
  23278. _ACEOF
  23279. if ac_fn_c_try_link "$LINENO"
  23280. then :
  23281. have_sem_timedwait=yes
  23282. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23283. fi
  23284. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23285. conftest$ac_exeext conftest.$ac_ext
  23286. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23287. printf "%s\n" "$have_sem_timedwait" >&6; }
  23288. fi
  23289. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23290. "
  23291. if test "x$ac_cv_header_pthread_np_h" = xyes
  23292. then :
  23293. have_pthread_np_h=yes
  23294. else $as_nop
  23295. have_pthread_np_h=no
  23296. fi
  23297. if test x$have_pthread_np_h = xyes; then
  23298. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23299. fi
  23300. # Check to see if pthread naming is available
  23301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23302. printf %s "checking for pthread_setname_np... " >&6; }
  23303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23304. /* end confdefs.h. */
  23305. /* Override any GCC internal prototype to avoid an error.
  23306. Use char because int might match the return type of a GCC
  23307. builtin and then its argument prototype would still apply. */
  23308. char pthread_setname_np ();
  23309. int
  23310. main (void)
  23311. {
  23312. return pthread_setname_np ();
  23313. ;
  23314. return 0;
  23315. }
  23316. _ACEOF
  23317. if ac_fn_c_try_link "$LINENO"
  23318. then :
  23319. has_pthread_setname_np=yes
  23320. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23321. else $as_nop
  23322. has_pthread_setname_np=no
  23323. fi
  23324. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23325. conftest$ac_exeext conftest.$ac_ext
  23326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23327. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23329. printf %s "checking for pthread_set_name_np... " >&6; }
  23330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23331. /* end confdefs.h. */
  23332. /* Override any GCC internal prototype to avoid an error.
  23333. Use char because int might match the return type of a GCC
  23334. builtin and then its argument prototype would still apply. */
  23335. char pthread_set_name_np ();
  23336. int
  23337. main (void)
  23338. {
  23339. return pthread_set_name_np ();
  23340. ;
  23341. return 0;
  23342. }
  23343. _ACEOF
  23344. if ac_fn_c_try_link "$LINENO"
  23345. then :
  23346. has_pthread_set_name_np=yes
  23347. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23348. else $as_nop
  23349. has_pthread_set_name_np=no
  23350. fi
  23351. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23352. conftest$ac_exeext conftest.$ac_ext
  23353. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23354. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23355. # Restore the compiler flags and libraries
  23356. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23357. # Basic thread creation functions
  23358. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23359. # Semaphores
  23360. # We can fake these with mutexes and condition variables if necessary
  23361. if test x$have_pthread_sem = xyes; then
  23362. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23363. else
  23364. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23365. fi
  23366. # Mutexes
  23367. # We can fake these with semaphores if necessary
  23368. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23369. # Condition variables
  23370. # We can fake these with semaphores and mutexes if necessary
  23371. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23372. # Thread local storage
  23373. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23374. have_threads=yes
  23375. fi
  23376. fi
  23377. }
  23378. CheckWINDOWS()
  23379. {
  23380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23381. printf %s "checking Windows compiler... " >&6; }
  23382. have_win32_gcc=no
  23383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23384. /* end confdefs.h. */
  23385. #include <windows.h>
  23386. int
  23387. main (void)
  23388. {
  23389. ;
  23390. return 0;
  23391. }
  23392. _ACEOF
  23393. if ac_fn_c_try_compile "$LINENO"
  23394. then :
  23395. have_win32_gcc=yes
  23396. fi
  23397. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23399. printf "%s\n" "$have_win32_gcc" >&6; }
  23400. if test x$have_win32_gcc != xyes; then
  23401. as_fn_error $? "
  23402. *** Your compiler ($CC) does not produce Windows executables!
  23403. " "$LINENO" 5
  23404. fi
  23405. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23406. printf %s "checking Windows CE... " >&6; }
  23407. have_wince=no
  23408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23409. /* end confdefs.h. */
  23410. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23411. #error This is not Windows CE
  23412. #endif
  23413. int
  23414. main (void)
  23415. {
  23416. ;
  23417. return 0;
  23418. }
  23419. _ACEOF
  23420. if ac_fn_c_try_compile "$LINENO"
  23421. then :
  23422. have_wince=yes
  23423. as_fn_error $? "
  23424. *** Sorry, Windows CE is no longer supported.
  23425. " "$LINENO" 5
  23426. fi
  23427. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23429. printf "%s\n" "$have_wince" >&6; }
  23430. # This fixes Windows stack alignment with newer GCC
  23431. CheckStackBoundary
  23432. # headers needed elsewhere
  23433. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23434. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23435. then :
  23436. have_tpcshrd_h=yes
  23437. fi
  23438. if test x$have_tpcshrd_h = xyes; then
  23439. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23440. fi
  23441. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23442. if test "x$ac_cv_header_roapi_h" = xyes
  23443. then :
  23444. have_roapi_h=yes
  23445. fi
  23446. if test x$have_roapi_h = xyes; then
  23447. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23448. fi
  23449. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23450. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23451. then :
  23452. have_shellscalingapi_h=yes
  23453. fi
  23454. if test x$shellscalingapi_h = xyes; then
  23455. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23456. fi
  23457. }
  23458. CheckOS2()
  23459. {
  23460. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23461. printf %s "checking OS/2 compiler... " >&6; }
  23462. have_os2_gcc=no
  23463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23464. /* end confdefs.h. */
  23465. #include <os2.h>
  23466. int
  23467. main (void)
  23468. {
  23469. ;
  23470. return 0;
  23471. }
  23472. _ACEOF
  23473. if ac_fn_c_try_compile "$LINENO"
  23474. then :
  23475. have_os2_gcc=yes
  23476. fi
  23477. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23479. printf "%s\n" "$have_os2_gcc" >&6; }
  23480. if test x$have_os2_gcc != xyes; then
  23481. as_fn_error $? "
  23482. *** Your compiler ($CC) does not produce OS/2 executables!
  23483. " "$LINENO" 5
  23484. fi
  23485. }
  23486. CheckDIRECTX()
  23487. {
  23488. # Check whether --enable-directx was given.
  23489. if test ${enable_directx+y}
  23490. then :
  23491. enableval=$enable_directx;
  23492. else $as_nop
  23493. enable_directx=yes
  23494. fi
  23495. if test x$enable_directx = xyes; then
  23496. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23497. if test "x$ac_cv_header_d3d9_h" = xyes
  23498. then :
  23499. have_d3d=yes
  23500. fi
  23501. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23502. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23503. then :
  23504. have_d3d11=yes
  23505. fi
  23506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23507. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23509. /* end confdefs.h. */
  23510. #include <winsdkver.h>
  23511. #include <sdkddkver.h>
  23512. #include <d3d12.h>
  23513. ID3D12Device1 *device;
  23514. #if WDK_NTDDI_VERSION <= 0x0A000008
  23515. asdf
  23516. #endif
  23517. int
  23518. main (void)
  23519. {
  23520. ;
  23521. return 0;
  23522. }
  23523. _ACEOF
  23524. if ac_fn_c_try_compile "$LINENO"
  23525. then :
  23526. have_d3d12=yes
  23527. else $as_nop
  23528. have_d3d12=no
  23529. fi
  23530. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23532. printf "%s\n" "$have_d3d12" >&6; }
  23533. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23534. if test "x$ac_cv_header_ddraw_h" = xyes
  23535. then :
  23536. have_ddraw=yes
  23537. fi
  23538. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23539. if test "x$ac_cv_header_dsound_h" = xyes
  23540. then :
  23541. have_dsound=yes
  23542. fi
  23543. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23544. if test "x$ac_cv_header_dinput_h" = xyes
  23545. then :
  23546. have_dinput=yes
  23547. fi
  23548. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23549. if test "x$ac_cv_header_dxgi_h" = xyes
  23550. then :
  23551. have_dxgi=yes
  23552. fi
  23553. if test x$have_ddraw = xyes; then
  23554. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23555. fi
  23556. if test x$have_dinput = xyes; then
  23557. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23558. fi
  23559. if test x$have_dsound = xyes; then
  23560. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23561. fi
  23562. if test x$have_dxgi = xyes; then
  23563. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23564. fi
  23565. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23566. # FIXME: ...so force it off for now.
  23567. case "$host" in
  23568. *-*-cygwin*)
  23569. have_dinput=false
  23570. ;;
  23571. esac
  23572. fi
  23573. # Check whether --enable-xinput was given.
  23574. if test ${enable_xinput+y}
  23575. then :
  23576. enableval=$enable_xinput;
  23577. else $as_nop
  23578. enable_xinput=yes
  23579. fi
  23580. if test x$enable_xinput = xyes; then
  23581. have_xinput_gamepadex=no
  23582. have_xinput_stateex=no
  23583. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23584. if test "x$ac_cv_header_xinput_h" = xyes
  23585. then :
  23586. have_xinput=yes
  23587. fi
  23588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23589. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23591. /* end confdefs.h. */
  23592. #include <windows.h>
  23593. #include <xinput.h>
  23594. XINPUT_GAMEPAD_EX x1;
  23595. int
  23596. main (void)
  23597. {
  23598. ;
  23599. return 0;
  23600. }
  23601. _ACEOF
  23602. if ac_fn_c_try_compile "$LINENO"
  23603. then :
  23604. have_xinput_gamepadex=yes
  23605. fi
  23606. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23608. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23610. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23612. /* end confdefs.h. */
  23613. #include <windows.h>
  23614. #include <xinput.h>
  23615. XINPUT_STATE_EX s1;
  23616. int
  23617. main (void)
  23618. {
  23619. ;
  23620. return 0;
  23621. }
  23622. _ACEOF
  23623. if ac_fn_c_try_compile "$LINENO"
  23624. then :
  23625. have_xinput_stateex=yes
  23626. fi
  23627. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23629. printf "%s\n" "$have_xinput_stateex" >&6; }
  23630. if test x$have_xinput = xyes; then
  23631. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23632. fi
  23633. if test x$have_xinput_gamepadex = xyes; then
  23634. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23635. fi
  23636. if test x$have_xinput_stateex = xyes; then
  23637. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23638. fi
  23639. fi
  23640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23641. printf %s "checking for windows.gaming.input.h... " >&6; }
  23642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23643. /* end confdefs.h. */
  23644. #define COBJMACROS
  23645. #include <windows.gaming.input.h>
  23646. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23647. int
  23648. main (void)
  23649. {
  23650. ;
  23651. return 0;
  23652. }
  23653. _ACEOF
  23654. if ac_fn_c_try_compile "$LINENO"
  23655. then :
  23656. have_wgi=yes
  23657. else $as_nop
  23658. have_wgi=no
  23659. fi
  23660. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23662. printf "%s\n" "$have_wgi" >&6; }
  23663. if test x$have_wgi = xyes; then
  23664. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23665. fi
  23666. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23667. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23668. then :
  23669. have_wasapi=yes
  23670. fi
  23671. if test x$have_wasapi = xyes; then
  23672. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23673. fi
  23674. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23675. if test "x$ac_cv_header_audioclient_h" = xyes
  23676. then :
  23677. else $as_nop
  23678. have_wasapi=no
  23679. fi
  23680. if test x$have_wasapi = xyes; then
  23681. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23682. fi
  23683. # Check whether --enable-wasapi was given.
  23684. if test ${enable_wasapi+y}
  23685. then :
  23686. enableval=$enable_wasapi;
  23687. else $as_nop
  23688. enable_wasapi=yes
  23689. fi
  23690. }
  23691. CheckDLOPEN()
  23692. {
  23693. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23694. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23695. if test "x$ac_cv_header_dlfcn_h" = xyes
  23696. then :
  23697. have_dlfcn_h=yes
  23698. else $as_nop
  23699. have_dlfcn_h=no
  23700. fi
  23701. have_dlopen=no
  23702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23703. printf %s "checking for dlopen in -lc... " >&6; }
  23704. if test ${ac_cv_lib_c_dlopen+y}
  23705. then :
  23706. printf %s "(cached) " >&6
  23707. else $as_nop
  23708. ac_check_lib_save_LIBS=$LIBS
  23709. LIBS="-lc $LIBS"
  23710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23711. /* end confdefs.h. */
  23712. /* Override any GCC internal prototype to avoid an error.
  23713. Use char because int might match the return type of a GCC
  23714. builtin and then its argument prototype would still apply. */
  23715. char dlopen ();
  23716. int
  23717. main (void)
  23718. {
  23719. return dlopen ();
  23720. ;
  23721. return 0;
  23722. }
  23723. _ACEOF
  23724. if ac_fn_c_try_link "$LINENO"
  23725. then :
  23726. ac_cv_lib_c_dlopen=yes
  23727. else $as_nop
  23728. ac_cv_lib_c_dlopen=no
  23729. fi
  23730. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23731. conftest$ac_exeext conftest.$ac_ext
  23732. LIBS=$ac_check_lib_save_LIBS
  23733. fi
  23734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23735. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23736. if test "x$ac_cv_lib_c_dlopen" = xyes
  23737. then :
  23738. have_dlopen=yes
  23739. else $as_nop
  23740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23741. printf %s "checking for dlopen in -ldl... " >&6; }
  23742. if test ${ac_cv_lib_dl_dlopen+y}
  23743. then :
  23744. printf %s "(cached) " >&6
  23745. else $as_nop
  23746. ac_check_lib_save_LIBS=$LIBS
  23747. LIBS="-ldl $LIBS"
  23748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23749. /* end confdefs.h. */
  23750. /* Override any GCC internal prototype to avoid an error.
  23751. Use char because int might match the return type of a GCC
  23752. builtin and then its argument prototype would still apply. */
  23753. char dlopen ();
  23754. int
  23755. main (void)
  23756. {
  23757. return dlopen ();
  23758. ;
  23759. return 0;
  23760. }
  23761. _ACEOF
  23762. if ac_fn_c_try_link "$LINENO"
  23763. then :
  23764. ac_cv_lib_dl_dlopen=yes
  23765. else $as_nop
  23766. ac_cv_lib_dl_dlopen=no
  23767. fi
  23768. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23769. conftest$ac_exeext conftest.$ac_ext
  23770. LIBS=$ac_check_lib_save_LIBS
  23771. fi
  23772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23773. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23774. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23775. then :
  23776. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23777. fi
  23778. fi
  23779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23780. printf %s "checking for dlopen... " >&6; }
  23781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23782. printf "%s\n" "$have_dlopen" >&6; }
  23783. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23784. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23785. if test x$enable_loadso = xyes; then
  23786. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23787. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23788. have_loadso=yes
  23789. fi
  23790. fi
  23791. }
  23792. CheckO_CLOEXEC()
  23793. {
  23794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23795. printf %s "checking for O_CLOEXEC... " >&6; }
  23796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23797. /* end confdefs.h. */
  23798. #include <fcntl.h>
  23799. int flag = O_CLOEXEC;
  23800. int
  23801. main (void)
  23802. {
  23803. ;
  23804. return 0;
  23805. }
  23806. _ACEOF
  23807. if ac_fn_c_try_compile "$LINENO"
  23808. then :
  23809. have_o_cloexec=yes
  23810. else $as_nop
  23811. have_o_cloexec=no
  23812. fi
  23813. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23814. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23815. printf "%s\n" "$have_o_cloexec" >&6; }
  23816. if test $have_o_cloexec = yes; then
  23817. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23818. fi
  23819. }
  23820. CheckUSBHID()
  23821. {
  23822. case "$host" in
  23823. *-*-*bsd*|*-*-dragonfly*)
  23824. if test x$enable_joystick = xyes; then
  23825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23826. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23827. if test ${ac_cv_lib_usbhid_hid_init+y}
  23828. then :
  23829. printf %s "(cached) " >&6
  23830. else $as_nop
  23831. ac_check_lib_save_LIBS=$LIBS
  23832. LIBS="-lusbhid $LIBS"
  23833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23834. /* end confdefs.h. */
  23835. /* Override any GCC internal prototype to avoid an error.
  23836. Use char because int might match the return type of a GCC
  23837. builtin and then its argument prototype would still apply. */
  23838. char hid_init ();
  23839. int
  23840. main (void)
  23841. {
  23842. return hid_init ();
  23843. ;
  23844. return 0;
  23845. }
  23846. _ACEOF
  23847. if ac_fn_c_try_link "$LINENO"
  23848. then :
  23849. ac_cv_lib_usbhid_hid_init=yes
  23850. else $as_nop
  23851. ac_cv_lib_usbhid_hid_init=no
  23852. fi
  23853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23854. conftest$ac_exeext conftest.$ac_ext
  23855. LIBS=$ac_check_lib_save_LIBS
  23856. fi
  23857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23858. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23859. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23860. then :
  23861. have_libusbhid=yes
  23862. fi
  23863. if test x$have_libusbhid = xyes; then
  23864. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23865. if test "x$ac_cv_header_usbhid_h" = xyes
  23866. then :
  23867. USB_CFLAGS="-DHAVE_USBHID_H"
  23868. fi
  23869. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23870. if test "x$ac_cv_header_libusbhid_h" = xyes
  23871. then :
  23872. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23873. fi
  23874. USB_LIBS="$USB_LIBS -lusbhid"
  23875. else
  23876. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23877. if test "x$ac_cv_header_usb_h" = xyes
  23878. then :
  23879. USB_CFLAGS="-DHAVE_USB_H"
  23880. fi
  23881. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23882. if test "x$ac_cv_header_libusb_h" = xyes
  23883. then :
  23884. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23885. fi
  23886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23887. printf %s "checking for hid_init in -lusb... " >&6; }
  23888. if test ${ac_cv_lib_usb_hid_init+y}
  23889. then :
  23890. printf %s "(cached) " >&6
  23891. else $as_nop
  23892. ac_check_lib_save_LIBS=$LIBS
  23893. LIBS="-lusb $LIBS"
  23894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23895. /* end confdefs.h. */
  23896. /* Override any GCC internal prototype to avoid an error.
  23897. Use char because int might match the return type of a GCC
  23898. builtin and then its argument prototype would still apply. */
  23899. char hid_init ();
  23900. int
  23901. main (void)
  23902. {
  23903. return hid_init ();
  23904. ;
  23905. return 0;
  23906. }
  23907. _ACEOF
  23908. if ac_fn_c_try_link "$LINENO"
  23909. then :
  23910. ac_cv_lib_usb_hid_init=yes
  23911. else $as_nop
  23912. ac_cv_lib_usb_hid_init=no
  23913. fi
  23914. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23915. conftest$ac_exeext conftest.$ac_ext
  23916. LIBS=$ac_check_lib_save_LIBS
  23917. fi
  23918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23919. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23920. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23921. then :
  23922. USB_LIBS="$USB_LIBS -lusb"
  23923. fi
  23924. fi
  23925. save_CFLAGS="$CFLAGS"
  23926. CFLAGS="$CFLAGS $USB_CFLAGS"
  23927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23928. printf %s "checking for usbhid... " >&6; }
  23929. have_usbhid=no
  23930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23931. /* end confdefs.h. */
  23932. #include <sys/types.h>
  23933. #if defined(HAVE_USB_H)
  23934. #include <usb.h>
  23935. #endif
  23936. #ifdef __DragonFly__
  23937. # include <bus/u4b/usb.h>
  23938. # include <bus/u4b/usbhid.h>
  23939. #else
  23940. # include <dev/usb/usb.h>
  23941. # include <dev/usb/usbhid.h>
  23942. #endif
  23943. #if defined(HAVE_USBHID_H)
  23944. #include <usbhid.h>
  23945. #elif defined(HAVE_LIBUSB_H)
  23946. #include <libusb.h>
  23947. #elif defined(HAVE_LIBUSBHID_H)
  23948. #include <libusbhid.h>
  23949. #endif
  23950. int
  23951. main (void)
  23952. {
  23953. struct report_desc *repdesc;
  23954. struct usb_ctl_report *repbuf;
  23955. hid_kind_t hidkind;
  23956. ;
  23957. return 0;
  23958. }
  23959. _ACEOF
  23960. if ac_fn_c_try_compile "$LINENO"
  23961. then :
  23962. have_usbhid=yes
  23963. fi
  23964. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  23966. printf "%s\n" "$have_usbhid" >&6; }
  23967. if test x$have_usbhid = xyes; then
  23968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  23969. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  23970. have_usbhid_ucr_data=no
  23971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23972. /* end confdefs.h. */
  23973. #include <sys/types.h>
  23974. #if defined(HAVE_USB_H)
  23975. #include <usb.h>
  23976. #endif
  23977. #ifdef __DragonFly__
  23978. # include <bus/u4b/usb.h>
  23979. # include <bus/u4b/usbhid.h>
  23980. #else
  23981. # include <dev/usb/usb.h>
  23982. # include <dev/usb/usbhid.h>
  23983. #endif
  23984. #if defined(HAVE_USBHID_H)
  23985. #include <usbhid.h>
  23986. #elif defined(HAVE_LIBUSB_H)
  23987. #include <libusb.h>
  23988. #elif defined(HAVE_LIBUSBHID_H)
  23989. #include <libusbhid.h>
  23990. #endif
  23991. int
  23992. main (void)
  23993. {
  23994. struct usb_ctl_report buf;
  23995. if (buf.ucr_data) { }
  23996. ;
  23997. return 0;
  23998. }
  23999. _ACEOF
  24000. if ac_fn_c_try_compile "$LINENO"
  24001. then :
  24002. have_usbhid_ucr_data=yes
  24003. fi
  24004. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24005. if test x$have_usbhid_ucr_data = xyes; then
  24006. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24007. fi
  24008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24009. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24011. printf %s "checking for new usbhid API... " >&6; }
  24012. have_usbhid_new=no
  24013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24014. /* end confdefs.h. */
  24015. #include <sys/types.h>
  24016. #if defined(HAVE_USB_H)
  24017. #include <usb.h>
  24018. #endif
  24019. #ifdef __DragonFly__
  24020. #include <bus/u4b/usb.h>
  24021. #include <bus/u4b/usbhid.h>
  24022. #else
  24023. #include <dev/usb/usb.h>
  24024. #include <dev/usb/usbhid.h>
  24025. #endif
  24026. #if defined(HAVE_USBHID_H)
  24027. #include <usbhid.h>
  24028. #elif defined(HAVE_LIBUSB_H)
  24029. #include <libusb.h>
  24030. #elif defined(HAVE_LIBUSBHID_H)
  24031. #include <libusbhid.h>
  24032. #endif
  24033. int
  24034. main (void)
  24035. {
  24036. report_desc_t d;
  24037. hid_start_parse(d, 1, 1);
  24038. ;
  24039. return 0;
  24040. }
  24041. _ACEOF
  24042. if ac_fn_c_try_compile "$LINENO"
  24043. then :
  24044. have_usbhid_new=yes
  24045. fi
  24046. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24047. if test x$have_usbhid_new = xyes; then
  24048. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24049. fi
  24050. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24051. printf "%s\n" "$have_usbhid_new" >&6; }
  24052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24053. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24054. have_machine_joystick=no
  24055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24056. /* end confdefs.h. */
  24057. #include <machine/joystick.h>
  24058. int
  24059. main (void)
  24060. {
  24061. struct joystick t;
  24062. ;
  24063. return 0;
  24064. }
  24065. _ACEOF
  24066. if ac_fn_c_try_compile "$LINENO"
  24067. then :
  24068. have_machine_joystick=yes
  24069. fi
  24070. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24071. if test x$have_machine_joystick = xyes; then
  24072. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24073. fi
  24074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24075. printf "%s\n" "$have_machine_joystick" >&6; }
  24076. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24077. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24078. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24079. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24080. have_joystick=yes
  24081. fi
  24082. CFLAGS="$save_CFLAGS"
  24083. fi
  24084. ;;
  24085. esac
  24086. }
  24087. CheckHIDAPI()
  24088. {
  24089. # Check whether --enable-hidapi-joystick was given.
  24090. if test ${enable_hidapi_joystick+y}
  24091. then :
  24092. enableval=$enable_hidapi_joystick;
  24093. else $as_nop
  24094. enable_hidapi_joystick=yes
  24095. fi
  24096. # Check whether --enable-hidapi-libusb was given.
  24097. if test ${enable_hidapi_libusb+y}
  24098. then :
  24099. enableval=$enable_hidapi_libusb;
  24100. else $as_nop
  24101. enable_hidapi_libusb=maybe
  24102. fi
  24103. if test x$enable_hidapi = xyes; then
  24104. case "$host" in
  24105. # libusb does not support iOS
  24106. *-ios-* )
  24107. enable_hidapi_libusb=no
  24108. ;;
  24109. # On the other hand, *BSD specifically uses libusb only
  24110. *-*-*bsd* )
  24111. enable_hidapi_libusb=yes
  24112. require_hidapi_libusb=yes
  24113. ;;
  24114. *-*-os2* )
  24115. enable_hidapi_libusb=yes
  24116. ;;
  24117. esac
  24118. hidapi_support=yes
  24119. if test x$enable_hidapi_libusb = xyes; then
  24120. pkg_failed=no
  24121. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24122. printf %s "checking for libusb-1.0... " >&6; }
  24123. if test -n "$LIBUSB_CFLAGS"; then
  24124. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24125. elif test -n "$PKG_CONFIG"; then
  24126. if test -n "$PKG_CONFIG" && \
  24127. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24128. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24129. ac_status=$?
  24130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24131. test $ac_status = 0; }; then
  24132. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24133. test "x$?" != "x0" && pkg_failed=yes
  24134. else
  24135. pkg_failed=yes
  24136. fi
  24137. else
  24138. pkg_failed=untried
  24139. fi
  24140. if test -n "$LIBUSB_LIBS"; then
  24141. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24142. elif test -n "$PKG_CONFIG"; then
  24143. if test -n "$PKG_CONFIG" && \
  24144. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24145. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24146. ac_status=$?
  24147. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24148. test $ac_status = 0; }; then
  24149. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24150. test "x$?" != "x0" && pkg_failed=yes
  24151. else
  24152. pkg_failed=yes
  24153. fi
  24154. else
  24155. pkg_failed=untried
  24156. fi
  24157. if test $pkg_failed = yes; then
  24158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24159. printf "%s\n" "no" >&6; }
  24160. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24161. _pkg_short_errors_supported=yes
  24162. else
  24163. _pkg_short_errors_supported=no
  24164. fi
  24165. if test $_pkg_short_errors_supported = yes; then
  24166. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24167. else
  24168. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24169. fi
  24170. # Put the nasty error message in config.log where it belongs
  24171. echo "$LIBUSB_PKG_ERRORS" >&5
  24172. have_libusb=no
  24173. elif test $pkg_failed = untried; then
  24174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24175. printf "%s\n" "no" >&6; }
  24176. have_libusb=no
  24177. else
  24178. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24179. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24181. printf "%s\n" "yes" >&6; }
  24182. have_libusb=yes
  24183. fi
  24184. save_CPPFLAGS="$CPPFLAGS"
  24185. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24186. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24187. if test "x$ac_cv_header_libusb_h" = xyes
  24188. then :
  24189. have_libusb_h=yes
  24190. else $as_nop
  24191. have_libusb_h=no
  24192. fi
  24193. CPPFLAGS="$save_CPPFLAGS"
  24194. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24195. hidapi_support=no
  24196. fi
  24197. fi
  24198. if test x$hidapi_support = xyes; then
  24199. if test x$have_libusb_h = xyes; then
  24200. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24201. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24202. if test x$require_hidapi_libusb = xyes; then
  24203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24204. else
  24205. if test x$have_loadso != xyes; then
  24206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24207. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24208. fi
  24209. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24210. libusb_lib=""
  24211. case "$host" in
  24212. *-*-darwin* )
  24213. libusb_lib="libusb-1.0.0.dylib"
  24214. ;;
  24215. *-*-cygwin* | *-*-mingw* )
  24216. libusb_lib="libusb-1.0.dll"
  24217. ;;
  24218. *-*-os2* )
  24219. libusb_lib="usb100.dll"
  24220. ;;
  24221. esac
  24222. if test x$libusb_lib = x; then
  24223. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24224. fi
  24225. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24226. fi
  24227. fi
  24228. fi
  24229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24230. printf %s "checking for hidapi joystick support... " >&6; }
  24231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24232. printf "%s\n" "$hidapi_support" >&6; }
  24233. fi
  24234. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24235. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24236. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24237. fi
  24238. }
  24239. CheckClockGettime()
  24240. {
  24241. # Check whether --enable-clock_gettime was given.
  24242. if test ${enable_clock_gettime+y}
  24243. then :
  24244. enableval=$enable_clock_gettime;
  24245. else $as_nop
  24246. enable_clock_gettime=yes
  24247. fi
  24248. if test x$enable_clock_gettime = xyes; then
  24249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24250. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24251. if test ${ac_cv_lib_rt_clock_gettime+y}
  24252. then :
  24253. printf %s "(cached) " >&6
  24254. else $as_nop
  24255. ac_check_lib_save_LIBS=$LIBS
  24256. LIBS="-lrt $LIBS"
  24257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24258. /* end confdefs.h. */
  24259. /* Override any GCC internal prototype to avoid an error.
  24260. Use char because int might match the return type of a GCC
  24261. builtin and then its argument prototype would still apply. */
  24262. char clock_gettime ();
  24263. int
  24264. main (void)
  24265. {
  24266. return clock_gettime ();
  24267. ;
  24268. return 0;
  24269. }
  24270. _ACEOF
  24271. if ac_fn_c_try_link "$LINENO"
  24272. then :
  24273. ac_cv_lib_rt_clock_gettime=yes
  24274. else $as_nop
  24275. ac_cv_lib_rt_clock_gettime=no
  24276. fi
  24277. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24278. conftest$ac_exeext conftest.$ac_ext
  24279. LIBS=$ac_check_lib_save_LIBS
  24280. fi
  24281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24282. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24283. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24284. then :
  24285. have_clock_gettime=yes
  24286. fi
  24287. if test x$have_clock_gettime = xyes; then
  24288. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24289. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24290. else
  24291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24292. printf %s "checking for clock_gettime in -lc... " >&6; }
  24293. if test ${ac_cv_lib_c_clock_gettime+y}
  24294. then :
  24295. printf %s "(cached) " >&6
  24296. else $as_nop
  24297. ac_check_lib_save_LIBS=$LIBS
  24298. LIBS="-lc $LIBS"
  24299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24300. /* end confdefs.h. */
  24301. /* Override any GCC internal prototype to avoid an error.
  24302. Use char because int might match the return type of a GCC
  24303. builtin and then its argument prototype would still apply. */
  24304. char clock_gettime ();
  24305. int
  24306. main (void)
  24307. {
  24308. return clock_gettime ();
  24309. ;
  24310. return 0;
  24311. }
  24312. _ACEOF
  24313. if ac_fn_c_try_link "$LINENO"
  24314. then :
  24315. ac_cv_lib_c_clock_gettime=yes
  24316. else $as_nop
  24317. ac_cv_lib_c_clock_gettime=no
  24318. fi
  24319. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24320. conftest$ac_exeext conftest.$ac_ext
  24321. LIBS=$ac_check_lib_save_LIBS
  24322. fi
  24323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24324. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24325. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24326. then :
  24327. have_clock_gettime=yes
  24328. fi
  24329. if test x$have_clock_gettime = xyes; then
  24330. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24331. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24332. fi
  24333. fi
  24334. fi
  24335. }
  24336. CheckLinuxVersion()
  24337. {
  24338. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24339. if test "x$ac_cv_header_linux_version_h" = xyes
  24340. then :
  24341. have_linux_version_h=yes
  24342. fi
  24343. if test x$have_linux_version_h = xyes; then
  24344. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24345. fi
  24346. }
  24347. CheckRPATH()
  24348. {
  24349. # Check whether --enable-rpath was given.
  24350. if test ${enable_rpath+y}
  24351. then :
  24352. enableval=$enable_rpath;
  24353. else $as_nop
  24354. enable_rpath=yes
  24355. fi
  24356. }
  24357. CheckEventSignals()
  24358. {
  24359. # Check whether --enable-backgrounding-signal was given.
  24360. if test ${enable_backgrounding_signal+y}
  24361. then :
  24362. enableval=$enable_backgrounding_signal;
  24363. else $as_nop
  24364. enable_backgrounding_signal=no
  24365. fi
  24366. if test x$enable_backgrounding_signal != xno; then
  24367. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24368. fi
  24369. # Check whether --enable-foregrounding-signal was given.
  24370. if test ${enable_foregrounding_signal+y}
  24371. then :
  24372. enableval=$enable_foregrounding_signal;
  24373. else $as_nop
  24374. enable_foregrounding_signal=no
  24375. fi
  24376. if test x$enable_foregrounding_signal != xno; then
  24377. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24378. fi
  24379. }
  24380. CheckVirtualJoystick()
  24381. {
  24382. # Check whether --enable-joystick-virtual was given.
  24383. if test ${enable_joystick_virtual+y}
  24384. then :
  24385. enableval=$enable_joystick_virtual;
  24386. else $as_nop
  24387. enable_joystick_virtual=yes
  24388. fi
  24389. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24390. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24391. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24392. have_joystick_virtual=yes
  24393. fi
  24394. }
  24395. CheckWarnAll
  24396. CheckNoStrictAliasing
  24397. CheckEventSignals
  24398. have_locale=no
  24399. case "$host" in
  24400. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24401. case "$host" in
  24402. *-*-android*)
  24403. # Android
  24404. ARCH=android
  24405. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24406. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24407. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24408. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24409. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24410. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24411. if test x$enable_video = xyes; then
  24412. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24413. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24414. SUMMARY_video="${SUMMARY_video} android"
  24415. have_video=yes
  24416. fi
  24417. ;;
  24418. *-*-linux*) ARCH=linux ;;
  24419. *-*-uclinux*) ARCH=linux ;;
  24420. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24421. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24422. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24423. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24424. *-*-bsdi*) ARCH=bsdi ;;
  24425. *-*-freebsd*) ARCH=freebsd ;;
  24426. *-*-dragonfly*) ARCH=freebsd ;;
  24427. *-*-netbsd*) ARCH=netbsd ;;
  24428. *-*-openbsd*) ARCH=openbsd ;;
  24429. *-*-sysv5*) ARCH=sysv5 ;;
  24430. *-*-solaris*) ARCH=solaris ;;
  24431. *-*-hpux*) ARCH=hpux ;;
  24432. *-*-aix*) ARCH=aix ;;
  24433. *-*-minix*) ARCH=minix ;;
  24434. *-*-nto*) ARCH=nto
  24435. CheckQNXVideo
  24436. ;;
  24437. esac
  24438. CheckVisibilityHidden
  24439. CheckDeclarationAfterStatement
  24440. CheckDummyVideo
  24441. CheckOffscreenVideo
  24442. CheckDiskAudio
  24443. CheckDummyAudio
  24444. CheckDLOPEN
  24445. CheckARM
  24446. CheckNEON
  24447. CheckO_CLOEXEC
  24448. CheckOSS
  24449. CheckALSA
  24450. CheckPipewire
  24451. CheckPulseAudio
  24452. CheckJACK
  24453. CheckARTSC
  24454. CheckESD
  24455. CheckNAS
  24456. CheckSNDIO
  24457. CheckFusionSound
  24458. CheckLibSampleRate
  24459. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24460. CheckRPI
  24461. CheckX11
  24462. CheckDirectFB
  24463. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24464. CheckEGL
  24465. CheckKMSDRM
  24466. CheckGLX
  24467. CheckOpenGL
  24468. CheckOpenGLES
  24469. CheckVulkan
  24470. CheckWayland
  24471. CheckInputEvents
  24472. CheckLibUDev
  24473. CheckDBus
  24474. CheckIME
  24475. CheckInotify
  24476. CheckIBus
  24477. CheckFcitx
  24478. case $ARCH in
  24479. linux)
  24480. CheckInputKD
  24481. ;;
  24482. freebsd)
  24483. CheckInputKBIO
  24484. ;;
  24485. openbsd|netbsd)
  24486. CheckInputWSCONS
  24487. ;;
  24488. esac
  24489. CheckUSBHID
  24490. CheckHIDAPI
  24491. CheckPTHREAD
  24492. CheckClockGettime
  24493. CheckLinuxVersion
  24494. CheckRPATH
  24495. CheckVivanteVideo
  24496. # Set up files for the misc library
  24497. if test x$enable_misc = xyes; then
  24498. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24499. have_misc=yes
  24500. fi
  24501. # Set up files for the locale library
  24502. if test x$enable_locale = xyes; then
  24503. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24504. have_locale=yes
  24505. fi
  24506. # Set up files for the audio library
  24507. if test x$enable_audio = xyes; then
  24508. case $ARCH in
  24509. sysv5|solaris|hpux)
  24510. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24511. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24512. SUMMARY_audio="${SUMMARY_audio} sun"
  24513. have_audio=yes
  24514. ;;
  24515. netbsd) # Don't use this on OpenBSD, it's busted.
  24516. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24517. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24518. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24519. have_audio=yes
  24520. ;;
  24521. aix)
  24522. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24523. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24524. SUMMARY_audio="${SUMMARY_audio} paudio"
  24525. have_audio=yes
  24526. ;;
  24527. android)
  24528. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24529. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24530. SUMMARY_audio="${SUMMARY_audio} android"
  24531. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24532. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24533. SUMMARY_audio="${SUMMARY_audio} openslES"
  24534. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24535. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24536. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24537. have_audio=yes
  24538. ;;
  24539. nto)
  24540. CheckQNXAudio
  24541. ;;
  24542. esac
  24543. fi
  24544. # Set up files for the joystick library
  24545. if test x$enable_joystick = xyes; then
  24546. case $ARCH in
  24547. linux)
  24548. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24549. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24550. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24551. have_joystick=yes
  24552. ;;
  24553. freebsd)
  24554. if test x$use_input_events = xyes; then
  24555. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24556. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24557. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24558. have_joystick=yes
  24559. fi
  24560. ;;
  24561. android)
  24562. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24563. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24564. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24565. have_joystick=yes
  24566. ;;
  24567. esac
  24568. fi
  24569. # Set up files for the haptic library
  24570. if test x$enable_haptic = xyes; then
  24571. case $ARCH in
  24572. linux|freebsd)
  24573. if test x$use_input_events = xyes; then
  24574. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24575. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24576. have_haptic=yes
  24577. fi
  24578. ;;
  24579. android)
  24580. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24581. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24582. have_haptic=yes
  24583. ;;
  24584. esac
  24585. fi
  24586. # Set up files for the sensor library
  24587. if test x$enable_sensor = xyes; then
  24588. case $ARCH in
  24589. android)
  24590. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24591. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24592. have_sensor=yes
  24593. ;;
  24594. esac
  24595. fi
  24596. # Set up files for the power library
  24597. if test x$enable_power = xyes; then
  24598. case $ARCH in
  24599. linux)
  24600. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24601. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24602. have_power=yes
  24603. ;;
  24604. android)
  24605. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24606. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24607. have_power=yes
  24608. ;;
  24609. esac
  24610. fi
  24611. # Set up files for the filesystem library
  24612. if test x$enable_filesystem = xyes; then
  24613. case $ARCH in
  24614. android)
  24615. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24616. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24617. have_filesystem=yes
  24618. ;;
  24619. *)
  24620. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24621. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24622. have_filesystem=yes
  24623. ;;
  24624. esac
  24625. fi
  24626. # Set up files for the timer library
  24627. if test x$enable_timers = xyes; then
  24628. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24629. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24630. have_timers=yes
  24631. fi
  24632. # Set up files for udev hotplugging support
  24633. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24634. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24635. fi
  24636. # Set up files for evdev input
  24637. if test x$use_input_events = xyes; then
  24638. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24639. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24640. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24641. fi
  24642. # Set up files for wscons input
  24643. if test x$use_input_wscons = xyes; then
  24644. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24645. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24646. fi
  24647. # Set up other core UNIX files
  24648. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24649. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24650. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24651. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24652. ;;
  24653. *-*-cygwin* | *-*-mingw*)
  24654. ARCH=win32
  24655. if test "$build" != "$host"; then # cross-compiling
  24656. # Default cross-compile location
  24657. ac_default_prefix=/usr/local/cross-tools/$host
  24658. else
  24659. # Look for the location of the tools and install there
  24660. if test "$BUILD_PREFIX" != ""; then
  24661. ac_default_prefix=$BUILD_PREFIX
  24662. fi
  24663. fi
  24664. if test x$enable_loadso = xyes; then
  24665. have_loadso=yes
  24666. fi
  24667. CheckGDwarf4
  24668. CheckDeclarationAfterStatement
  24669. CheckDummyVideo
  24670. CheckOffscreenVideo
  24671. CheckDiskAudio
  24672. CheckDummyAudio
  24673. CheckWINDOWS
  24674. CheckWINDOWSGL
  24675. CheckWINDOWSGLES
  24676. CheckVulkan
  24677. CheckDIRECTX
  24678. CheckHIDAPI
  24679. # Set up the core platform files
  24680. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24681. # Set up files for the misc library
  24682. if test x$enable_misc = xyes; then
  24683. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24684. have_misc=yes
  24685. fi
  24686. # Use the Windows locale APIs.
  24687. if test x$enable_locale = xyes; then
  24688. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24689. have_locale=yes
  24690. fi
  24691. # Set up files for the video library
  24692. if test x$enable_video = xyes; then
  24693. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24694. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24695. have_video=yes
  24696. # Check whether --enable-render-d3d was given.
  24697. if test ${enable_render_d3d+y}
  24698. then :
  24699. enableval=$enable_render_d3d;
  24700. else $as_nop
  24701. enable_render_d3d=yes
  24702. fi
  24703. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24704. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24705. SUMMARY_video="${SUMMARY_video} d3d9"
  24706. fi
  24707. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24708. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24709. SUMMARY_video="${SUMMARY_video} d3d11"
  24710. fi
  24711. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24712. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24713. SUMMARY_video="${SUMMARY_video} d3d12"
  24714. fi
  24715. fi
  24716. # Set up files for the audio library
  24717. if test x$enable_audio = xyes; then
  24718. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24719. SUMMARY_audio="${SUMMARY_audio} winmm"
  24720. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24721. if test x$have_dsound = xyes; then
  24722. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24723. SUMMARY_audio="${SUMMARY_audio} directsound"
  24724. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24725. fi
  24726. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24727. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24728. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24729. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24730. fi
  24731. have_audio=yes
  24732. fi
  24733. # Set up files for the joystick library
  24734. if test x$enable_joystick = xyes; then
  24735. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24736. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24737. if test x$have_xinput = xyes; then
  24738. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24739. fi
  24740. if test x$have_wgi = xyes; then
  24741. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24742. fi
  24743. if test x$have_dinput = xyes; then
  24744. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24745. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24746. fi
  24747. fi
  24748. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24749. have_joystick=yes
  24750. fi
  24751. if test x$enable_haptic = xyes; then
  24752. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24753. if test x$have_xinput = xyes; then
  24754. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24755. fi
  24756. if test x$have_dinput = xyes; then
  24757. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24758. fi
  24759. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24760. have_haptic=yes
  24761. fi
  24762. fi
  24763. # Set up files for the sensor library
  24764. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24765. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24766. then :
  24767. have_winsensors=yes
  24768. else $as_nop
  24769. have_winsensors=no
  24770. fi
  24771. if test x$have_winsensors = xyes; then
  24772. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24773. fi
  24774. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24775. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24776. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24777. have_sensor=yes
  24778. fi
  24779. # Set up files for the power library
  24780. if test x$enable_power = xyes; then
  24781. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24782. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24783. have_power=yes
  24784. fi
  24785. # Set up files for the filesystem library
  24786. if test x$enable_filesystem = xyes; then
  24787. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24788. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24789. have_filesystem=yes
  24790. fi
  24791. # Set up files for the thread library
  24792. if test x$enable_threads = xyes; then
  24793. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24794. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24795. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24796. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24797. have_threads=yes
  24798. fi
  24799. # Set up files for the timer library
  24800. if test x$enable_timers = xyes; then
  24801. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24802. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24803. have_timers=yes
  24804. fi
  24805. # Set up files for the shared object loading library
  24806. if test x$enable_loadso = xyes; then
  24807. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24808. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24809. fi
  24810. # Set up the system libraries we need
  24811. if test -f /lib/w32api/libuuid.a; then
  24812. LIBUUID=/lib/w32api/libuuid.a
  24813. else
  24814. LIBUUID=-luuid
  24815. fi
  24816. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24817. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24818. # The Windows platform requires special setup
  24819. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24820. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24821. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24822. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24823. # Check to see if this is a mingw or cygwin build
  24824. have_mingw32=
  24825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24826. printf %s "checking for main in -lmingw32... " >&6; }
  24827. if test ${ac_cv_lib_mingw32_main+y}
  24828. then :
  24829. printf %s "(cached) " >&6
  24830. else $as_nop
  24831. ac_check_lib_save_LIBS=$LIBS
  24832. LIBS="-lmingw32 $LIBS"
  24833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24834. /* end confdefs.h. */
  24835. int
  24836. main (void)
  24837. {
  24838. return main ();
  24839. ;
  24840. return 0;
  24841. }
  24842. _ACEOF
  24843. if ac_fn_c_try_link "$LINENO"
  24844. then :
  24845. ac_cv_lib_mingw32_main=yes
  24846. else $as_nop
  24847. ac_cv_lib_mingw32_main=no
  24848. fi
  24849. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24850. conftest$ac_exeext conftest.$ac_ext
  24851. LIBS=$ac_check_lib_save_LIBS
  24852. fi
  24853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24854. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24855. if test "x$ac_cv_lib_mingw32_main" = xyes
  24856. then :
  24857. have_mingw32=yes
  24858. fi
  24859. if test x$have_mingw32 = xyes; then
  24860. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24861. else
  24862. SDL_LIBS="-lcygwin $SDL_LIBS"
  24863. fi
  24864. ;;
  24865. *-*-beos*)
  24866. as_fn_error $? "
  24867. *** BeOS support has been removed as of SDL 2.0.2.
  24868. " "$LINENO" 5
  24869. ;;
  24870. *-*-haiku*)
  24871. ARCH=haiku
  24872. ac_default_prefix=/boot/system
  24873. CheckDummyVideo
  24874. CheckOffscreenVideo
  24875. CheckDiskAudio
  24876. CheckDummyAudio
  24877. CheckDLOPEN
  24878. CheckO_CLOEXEC
  24879. CheckHaikuVideo
  24880. CheckHaikuGL
  24881. CheckPTHREAD
  24882. # Set up files for the audio library
  24883. if test x$enable_audio = xyes; then
  24884. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24885. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24886. SUMMARY_audio="${SUMMARY_audio} haiku"
  24887. have_audio=yes
  24888. fi
  24889. # Set up files for the joystick library
  24890. if test x$enable_joystick = xyes; then
  24891. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24892. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24893. have_joystick=yes
  24894. fi
  24895. # Set up files for the timer library
  24896. if test x$enable_timers = xyes; then
  24897. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24898. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24899. have_timers=yes
  24900. fi
  24901. # Set up files for the system power library
  24902. if test x$enable_power = xyes; then
  24903. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24904. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24905. have_power=yes
  24906. fi
  24907. # Set up files for the system filesystem library
  24908. if test x$enable_filesystem = xyes; then
  24909. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24910. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24911. have_filesystem=yes
  24912. fi
  24913. # Set up files for the misc library
  24914. if test x$enable_misc = xyes; then
  24915. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24916. have_misc=yes
  24917. fi
  24918. # Set up files for the locale library
  24919. if test x$enable_locale = xyes; then
  24920. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24921. have_locale=yes
  24922. fi
  24923. # The Haiku platform requires special setup.
  24924. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24926. ;;
  24927. *-ios-*)
  24928. ARCH=ios
  24929. CheckVisibilityHidden
  24930. CheckDeclarationAfterStatement
  24931. CheckDummyVideo
  24932. CheckOffscreenVideo
  24933. CheckDiskAudio
  24934. CheckDummyAudio
  24935. CheckDLOPEN
  24936. CheckO_CLOEXEC
  24937. CheckMETAL
  24938. CheckVulkan
  24939. CheckPTHREAD
  24940. # Set up files for the misc library
  24941. if test x$enable_misc = xyes; then
  24942. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24943. have_misc=yes
  24944. fi
  24945. # Set up files for the locale library
  24946. if test x$enable_locale = xyes; then
  24947. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24948. have_locale=yes
  24949. fi
  24950. # Set up files for the audio library
  24951. if test x$enable_audio = xyes; then
  24952. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  24953. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  24954. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  24955. have_audio=yes
  24956. fi
  24957. # Set up files for the joystick library
  24958. if test x$enable_joystick = xyes; then
  24959. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  24960. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24961. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24962. have_joystick=yes
  24963. else
  24964. # Need this code for accelerometer as joystick support
  24965. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  24966. fi
  24967. # Set up files for the haptic library
  24968. #if test x$enable_haptic = xyes; then
  24969. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  24970. # have_haptic=yes
  24971. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  24972. #fi
  24973. # Set up files for the sensor library
  24974. if test x$enable_sensor = xyes; then
  24975. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  24976. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  24977. have_sensor=yes
  24978. fi
  24979. # Set up files for the power library
  24980. if test x$enable_power = xyes; then
  24981. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  24982. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  24983. have_power=yes
  24984. fi
  24985. # Set up files for the filesystem library
  24986. if test x$enable_filesystem = xyes; then
  24987. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  24988. have_filesystem=yes
  24989. fi
  24990. # Set up additional files for the file library
  24991. if test x$enable_file = xyes; then
  24992. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  24993. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  24994. fi
  24995. # Set up files for the timer library
  24996. if test x$enable_timers = xyes; then
  24997. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24998. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24999. have_timers=yes
  25000. fi
  25001. # Set up other core UNIX files
  25002. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25003. # The iOS platform requires special setup.
  25004. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25005. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25006. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25007. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25008. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25009. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25010. SUMMARY_video="${SUMMARY_video} uikit"
  25011. have_video=yes
  25012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25013. if test x$enable_system_iconv = xyes; then
  25014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25015. fi
  25016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25022. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25023. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25024. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25025. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25026. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25027. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25028. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25029. fi
  25030. ;;
  25031. *-*-darwin* )
  25032. # This could be either full "Mac OS X", or plain "Darwin" which is
  25033. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25034. # Next line is broken, and a few files below require Mac OS X (full)
  25035. ARCH=macosx
  25036. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25037. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25038. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25039. CheckObjectiveCARC
  25040. CheckVisibilityHidden
  25041. CheckDeclarationAfterStatement
  25042. CheckDummyVideo
  25043. CheckOffscreenVideo
  25044. CheckDiskAudio
  25045. CheckDummyAudio
  25046. CheckDLOPEN
  25047. CheckO_CLOEXEC
  25048. CheckCOCOA
  25049. CheckMETAL
  25050. CheckX11
  25051. CheckMacGL
  25052. CheckMacGLES
  25053. CheckGLX
  25054. CheckOpenGL
  25055. CheckVulkan
  25056. CheckPTHREAD
  25057. CheckHIDAPI
  25058. # Set up files for the misc library
  25059. if test x$enable_misc = xyes; then
  25060. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25061. have_misc=yes
  25062. fi
  25063. # Set up files for the locale library
  25064. if test x$enable_locale = xyes; then
  25065. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25066. have_locale=yes
  25067. fi
  25068. # Set up files for the audio library
  25069. if test x$enable_audio = xyes; then
  25070. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25071. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25073. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25074. have_audio=yes
  25075. fi
  25076. # Set up files for the joystick library
  25077. if test x$enable_joystick = xyes; then
  25078. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25079. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25080. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25081. CheckJoystickMFI
  25082. have_joystick=yes
  25083. fi
  25084. # Set up files for the haptic library
  25085. if test x$enable_haptic = xyes; then
  25086. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25087. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25088. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25089. have_haptic=yes
  25090. fi
  25091. # Set up files for the power library
  25092. if test x$enable_power = xyes; then
  25093. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25094. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25095. have_power=yes
  25096. fi
  25097. # Set up files for the filesystem library
  25098. if test x$enable_filesystem = xyes; then
  25099. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25100. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25101. have_filesystem=yes
  25102. fi
  25103. # Set up files for the timer library
  25104. if test x$enable_timers = xyes; then
  25105. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25106. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25107. have_timers=yes
  25108. fi
  25109. # Set up additional files for the file library
  25110. if test x$enable_file = xyes; then
  25111. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25112. fi
  25113. # Set up other core UNIX files
  25114. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25115. # The Mac OS X platform requires special setup.
  25116. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25117. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25118. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25119. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25120. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25121. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25123. fi
  25124. ;;
  25125. *-nacl|*-pnacl)
  25126. ARCH=nacl
  25127. CheckNativeClient
  25128. CheckDummyAudio
  25129. CheckDummyVideo
  25130. CheckOffscreenVideo
  25131. CheckInputEvents
  25132. CheckPTHREAD
  25133. CheckO_CLOEXEC
  25134. # Set up files for the timer library
  25135. if test x$enable_timers = xyes; then
  25136. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25137. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25138. have_timers=yes
  25139. fi
  25140. if test x$enable_filesystem = xyes; then
  25141. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25142. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25143. have_filesystem=yes
  25144. fi
  25145. ;;
  25146. *-*-emscripten* )
  25147. if test x$enable_video = xyes; then
  25148. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25149. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25150. have_video=yes
  25151. SUMMARY_video="${SUMMARY_video} emscripten"
  25152. fi
  25153. if test x$enable_audio = xyes; then
  25154. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25155. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25156. have_audio=yes
  25157. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25158. fi
  25159. CheckVisibilityHidden
  25160. CheckDeclarationAfterStatement
  25161. CheckDummyVideo
  25162. CheckOffscreenVideo
  25163. CheckDiskAudio
  25164. CheckDummyAudio
  25165. CheckPTHREAD
  25166. CheckDLOPEN
  25167. CheckClockGettime
  25168. CheckEmscriptenGLES
  25169. # Set up files for the misc library
  25170. if test x$enable_misc = xyes; then
  25171. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25172. have_misc=yes
  25173. fi
  25174. # Set up files for the power library
  25175. if test x$enable_power = xyes; then
  25176. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25177. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25178. have_power=yes
  25179. fi
  25180. # Set up files for the joystick library
  25181. if test x$enable_joystick = xyes; then
  25182. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25183. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25184. have_joystick=yes
  25185. fi
  25186. # Set up files for the filesystem library
  25187. if test x$enable_filesystem = xyes; then
  25188. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25189. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25190. have_filesystem=yes
  25191. fi
  25192. # Set up files for the timer library
  25193. if test x$enable_timers = xyes; then
  25194. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25195. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25196. have_timers=yes
  25197. fi
  25198. # Set up files for the locale library
  25199. if test x$enable_locale = xyes; then
  25200. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25201. have_locale=yes
  25202. fi
  25203. ;;
  25204. *-*-riscos*)
  25205. ARCH=riscos
  25206. CheckVisibilityHidden
  25207. CheckDeclarationAfterStatement
  25208. CheckDummyVideo
  25209. CheckOffscreenVideo
  25210. CheckDiskAudio
  25211. CheckDummyAudio
  25212. CheckDLOPEN
  25213. CheckO_CLOEXEC
  25214. CheckOSS
  25215. CheckPTHREAD
  25216. CheckClockGettime
  25217. # Set up files for the misc library
  25218. if test x$enable_misc = xyes; then
  25219. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25220. have_misc=yes
  25221. fi
  25222. # Set up files for the video library
  25223. if test x$enable_video = xyes; then
  25224. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25225. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25226. have_video=yes
  25227. SUMMARY_video="${SUMMARY_video} riscos"
  25228. fi
  25229. # Set up files for the filesystem library
  25230. if test x$enable_filesystem = xyes; then
  25231. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25232. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25233. have_filesystem=yes
  25234. fi
  25235. # Set up files for the timer library
  25236. if test x$enable_timers = xyes; then
  25237. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25238. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25239. have_timers=yes
  25240. fi
  25241. ;;
  25242. *-*-os2*)
  25243. ARCH=os2
  25244. if test "$build" != "$host"; then # cross-compiling
  25245. # Default cross-compile location
  25246. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25247. else
  25248. # Look for the location of the tools and install there
  25249. if test "$BUILD_PREFIX" != ""; then
  25250. ac_default_prefix=$BUILD_PREFIX
  25251. fi
  25252. fi
  25253. enable_static=no # disable static builds
  25254. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25255. CheckOS2
  25256. CheckDeclarationAfterStatement
  25257. CheckDummyVideo
  25258. CheckDiskAudio
  25259. CheckDummyAudio
  25260. CheckHIDAPI
  25261. # Set up the core platform files
  25262. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25263. if test x$enable_system_iconv = xyes; then
  25264. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25265. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25266. fi
  25267. fi
  25268. # Use the Unix locale APIs.
  25269. if test x$enable_locale = xyes; then
  25270. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25271. have_locale=yes
  25272. fi
  25273. # Set up files for the video library
  25274. if test x$enable_video = xyes; then
  25275. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25276. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25277. have_video=yes
  25278. SUMMARY_video="${SUMMARY_video} os/2"
  25279. fi
  25280. # Set up files for the audio library
  25281. if test x$enable_audio = xyes; then
  25282. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25283. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25284. have_audio=yes
  25285. SUMMARY_audio="${SUMMARY_audio} os/2"
  25286. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25287. fi
  25288. # Set up files for the thread library
  25289. if test x$enable_threads = xyes; then
  25290. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25291. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25292. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25293. have_threads=yes
  25294. fi
  25295. # Set up files for the timer library
  25296. if test x$enable_timers = xyes; then
  25297. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25298. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25299. have_timers=yes
  25300. fi
  25301. # Set up files for the shared object loading library
  25302. if test x$enable_loadso = xyes; then
  25303. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25304. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25305. have_loadso=yes
  25306. fi
  25307. # Set up files for the filesystem library
  25308. if test x$enable_filesystem = xyes; then
  25309. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25310. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25311. have_filesystem=yes
  25312. fi
  25313. # Set up files for the joystick library
  25314. if test x$enable_joystick = xyes; then
  25315. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25316. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25317. have_joystick=yes
  25318. fi
  25319. ;;
  25320. *)
  25321. as_fn_error $? "
  25322. *** Unsupported host: Please add to configure.ac
  25323. " "$LINENO" 5
  25324. ;;
  25325. esac
  25326. CheckVirtualJoystick
  25327. # Check whether to install sdl2-config
  25328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25329. printf %s "checking whether to install sdl2-config... " >&6; }
  25330. # Check whether --enable-sdl2-config was given.
  25331. if test ${enable_sdl2_config+y}
  25332. then :
  25333. enableval=$enable_sdl2_config; case "${enableval}" in
  25334. yes) enable_sdl2_config="TRUE" ;;
  25335. no) enable_sdl2_config="FALSE" ;;
  25336. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25337. esac
  25338. else $as_nop
  25339. enable_sdl2_config="TRUE"
  25340. fi
  25341. if test "$enable_sdl2_config" = "TRUE"; then
  25342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25343. printf "%s\n" "yes" >&6; }
  25344. else
  25345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25346. printf "%s\n" "no" >&6; }
  25347. fi
  25348. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25349. # Verify that we have all the platform specific files we need
  25350. if test x$have_audio != xyes; then
  25351. if test x$enable_audio = xyes; then
  25352. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25353. fi
  25354. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25355. fi
  25356. if test x$have_video != xyes; then
  25357. if test x$enable_video = xyes; then
  25358. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25359. fi
  25360. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25361. fi
  25362. if test x$have_misc != xyes; then
  25363. if test x$enable_misc = xyes; then
  25364. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25365. fi
  25366. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25367. fi
  25368. if test x$have_locale != xyes; then
  25369. if test x$enable_locale = xyes; then
  25370. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25371. fi
  25372. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25373. fi
  25374. if test x$have_joystick != xyes; then
  25375. if test x$enable_joystick = xyes; then
  25376. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25377. fi
  25378. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25379. fi
  25380. if test x$have_haptic != xyes; then
  25381. if test x$enable_haptic = xyes; then
  25382. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25383. fi
  25384. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25385. fi
  25386. if test x$have_sensor != xyes; then
  25387. if test x$enable_sensor = xyes; then
  25388. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25389. fi
  25390. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25391. fi
  25392. if test x$have_threads != xyes; then
  25393. if test x$enable_threads = xyes; then
  25394. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25395. fi
  25396. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25397. fi
  25398. if test x$have_timers != xyes; then
  25399. if test x$enable_timers = xyes; then
  25400. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25401. fi
  25402. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25403. fi
  25404. if test x$have_filesystem != xyes; then
  25405. if test x$enable_filesystem = xyes; then
  25406. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25407. fi
  25408. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25409. fi
  25410. if test x$have_loadso != xyes; then
  25411. if test x$enable_loadso = xyes; then
  25412. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25413. fi
  25414. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25415. fi
  25416. if test x$SDLMAIN_SOURCES = x; then
  25417. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25418. fi
  25419. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25420. if test x$video_wayland = xyes; then
  25421. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25422. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25423. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25424. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25425. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25426. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25427. echo ;\
  25428. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25429. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25430. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25431. echo ;\
  25432. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25433. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25434. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25435. echo ;\
  25436. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25437. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25438. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25439. done ;\
  25440. echo ;\
  25441. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25442. fi
  25443. OBJECTS=`echo $SOURCES`
  25444. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25445. for EXT in asm cc m c S; do
  25446. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25447. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25448. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25449. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25450. done
  25451. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25452. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25453. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25454. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25455. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25456. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25457. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25458. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25459. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25460. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25461. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25462. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25463. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25464. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25465. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25466. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25467. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25468. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25469. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25470. # Set runtime shared library paths as needed
  25471. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25472. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25473. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25475. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25476. have_enable_new_dtags=no
  25477. save_LDFLAGS="$LDFLAGS"
  25478. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25480. /* end confdefs.h. */
  25481. int
  25482. main (void)
  25483. {
  25484. ;
  25485. return 0;
  25486. }
  25487. _ACEOF
  25488. if ac_fn_c_try_link "$LINENO"
  25489. then :
  25490. have_enable_new_dtags=yes
  25491. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25492. fi
  25493. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25494. conftest$ac_exeext conftest.$ac_ext
  25495. LDFLAGS="$save_LDFLAGS"
  25496. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25497. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25498. fi
  25499. if test $ARCH = solaris; then
  25500. SDL_RLD_FLAGS="-R\${libdir}"
  25501. fi
  25502. else
  25503. SDL_RLD_FLAGS=""
  25504. fi
  25505. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25506. pkg_cmakedir='$libdir/cmake/SDL2'
  25507. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25508. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25509. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25510. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25511. _lcl_receval="$_lcl_from"
  25512. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25513. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25514. _lcl_receval_old=''
  25515. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25516. _lcl_receval_old="$_lcl_receval"
  25517. eval _lcl_receval="\"$_lcl_receval\""
  25518. done
  25519. echo "$_lcl_receval")`
  25520. _lcl_receval="$_lcl_to"
  25521. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25522. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25523. _lcl_receval_old=''
  25524. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25525. _lcl_receval_old="$_lcl_receval"
  25526. eval _lcl_receval="\"$_lcl_receval\""
  25527. done
  25528. echo "$_lcl_receval")`
  25529. _lcl_notation="$_lcl_from$_lcl_to"
  25530. case ":$_lcl_from:" in
  25531. # change empty paths to '.'
  25532. ::) _lcl_from='.' ;;
  25533. # strip trailing slashes
  25534. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25535. :*:) ;;
  25536. esac
  25537. # squeeze repeated slashes
  25538. case '/' in
  25539. # if the path contains any backslashes, turn slashes into backslashes
  25540. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25541. # if the path contains slashes, also turn backslashes into slashes
  25542. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25543. esac
  25544. case ":$_lcl_to:" in
  25545. # change empty paths to '.'
  25546. ::) _lcl_to='.' ;;
  25547. # strip trailing slashes
  25548. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25549. :*:) ;;
  25550. esac
  25551. # squeeze repeated slashes
  25552. case '/' in
  25553. # if the path contains any backslashes, turn slashes into backslashes
  25554. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25555. # if the path contains slashes, also turn backslashes into slashes
  25556. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25557. esac
  25558. _lcl_common_prefix=''
  25559. _lcl_second_prefix_match=''
  25560. while test "$_lcl_second_prefix_match" != 0; do
  25561. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25562. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25563. if test "$_lcl_second_prefix_match" != 0; then
  25564. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25565. _lcl_common_prefix="$_lcl_first_prefix"
  25566. else
  25567. _lcl_second_prefix_match=0
  25568. fi
  25569. fi
  25570. done
  25571. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25572. _lcl_first_rel=''
  25573. _lcl_tmp='xxx'
  25574. while test "$_lcl_tmp" != ''; do
  25575. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25576. if test "$_lcl_first_suffix" != ''; then
  25577. _lcl_first_suffix="$_lcl_tmp"
  25578. _lcl_first_rel="../$_lcl_first_rel"
  25579. fi
  25580. done
  25581. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25582. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25583. case ":$_lcl_result_tmp:" in
  25584. # change empty paths to '.'
  25585. ::) _lcl_result_tmp='.' ;;
  25586. # strip trailing slashes
  25587. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25588. :*:) ;;
  25589. esac
  25590. # squeeze repeated slashes
  25591. case "$_lcl_notation" in
  25592. # if the path contains any backslashes, turn slashes into backslashes
  25593. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25594. # if the path contains slashes, also turn backslashes into slashes
  25595. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25596. esac
  25597. eval $_lcl_result_var='$_lcl_result_tmp'
  25598. done
  25599. if test x$enable_shared = xyes; then
  25600. PKGCONFIG_LIBS_PRIV="
  25601. Libs.private:"
  25602. ENABLE_SHARED_TRUE=
  25603. ENABLE_SHARED_FALSE="#"
  25604. else
  25605. PKGCONFIG_LIBS_PRIV=
  25606. ENABLE_SHARED_TRUE="#"
  25607. ENABLE_SHARED_FALSE=
  25608. fi
  25609. if test x$enable_static = xyes; then
  25610. ENABLE_STATIC_TRUE=
  25611. ENABLE_STATIC_FALSE="#"
  25612. else
  25613. ENABLE_STATIC_TRUE="#"
  25614. ENABLE_STATIC_FALSE=
  25615. fi
  25616. cat >Makefile.rules <<__EOF__
  25617. # Build rules for objects
  25618. -include \$(OBJECTS:.lo=.d)
  25619. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25620. $srcdir/src/SDL.c: update-revision
  25621. $DEPENDS
  25622. $VERSION_DEPENDS
  25623. $SDLMAIN_DEPENDS
  25624. $SDLTEST_DEPENDS
  25625. $WAYLAND_PROTOCOLS_DEPENDS
  25626. __EOF__
  25627. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25628. ac_config_commands="$ac_config_commands sdl2_config"
  25629. SUMMARY="SDL2 Configure Summary:\n"
  25630. if test x$enable_shared = xyes; then
  25631. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25632. fi
  25633. if test x$enable_static = xyes; then
  25634. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25635. fi
  25636. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25637. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25638. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25639. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25640. if test x$have_x = xyes; then
  25641. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25642. fi
  25643. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25644. if test x$have_joystick_virtual = xyes; then
  25645. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25646. else
  25647. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25648. fi
  25649. if test x$have_samplerate_h_hdr = xyes; then
  25650. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25651. else
  25652. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25653. fi
  25654. if test x$have_libudev_h_hdr = xyes; then
  25655. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25656. else
  25657. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25658. fi
  25659. if test x$have_dbus_dbus_h_hdr = xyes; then
  25660. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25661. else
  25662. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25663. fi
  25664. if test x$enable_ime = xyes; then
  25665. SUMMARY="${SUMMARY}Using ime : YES\n"
  25666. else
  25667. SUMMARY="${SUMMARY}Using ime : NO\n"
  25668. fi
  25669. if test x$have_ibus_ibus_h_hdr = xyes; then
  25670. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25671. else
  25672. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25673. fi
  25674. if test x$have_fcitx = xyes; then
  25675. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25676. else
  25677. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25678. fi
  25679. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25680. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25681. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25682. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25683. SUMMARY="${SUMMARY}configure script with:\n"
  25684. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25685. fi
  25686. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25687. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25688. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25689. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25690. SUMMARY="${SUMMARY}configure script with:\n"
  25691. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25692. fi
  25693. ac_config_commands="$ac_config_commands summary"
  25694. cat >confcache <<\_ACEOF
  25695. # This file is a shell script that caches the results of configure
  25696. # tests run on this system so they can be shared between configure
  25697. # scripts and configure runs, see configure's option --config-cache.
  25698. # It is not useful on other systems. If it contains results you don't
  25699. # want to keep, you may remove or edit it.
  25700. #
  25701. # config.status only pays attention to the cache file if you give it
  25702. # the --recheck option to rerun configure.
  25703. #
  25704. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25705. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25706. # following values.
  25707. _ACEOF
  25708. # The following way of writing the cache mishandles newlines in values,
  25709. # but we know of no workaround that is simple, portable, and efficient.
  25710. # So, we kill variables containing newlines.
  25711. # Ultrix sh set writes to stderr and can't be redirected directly,
  25712. # and sets the high bit in the cache file unless we assign to the vars.
  25713. (
  25714. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25715. eval ac_val=\$$ac_var
  25716. case $ac_val in #(
  25717. *${as_nl}*)
  25718. case $ac_var in #(
  25719. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25720. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25721. esac
  25722. case $ac_var in #(
  25723. _ | IFS | as_nl) ;; #(
  25724. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25725. *) { eval $ac_var=; unset $ac_var;} ;;
  25726. esac ;;
  25727. esac
  25728. done
  25729. (set) 2>&1 |
  25730. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25731. *${as_nl}ac_space=\ *)
  25732. # `set' does not quote correctly, so add quotes: double-quote
  25733. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25734. sed -n \
  25735. "s/'/'\\\\''/g;
  25736. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25737. ;; #(
  25738. *)
  25739. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25740. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25741. ;;
  25742. esac |
  25743. sort
  25744. ) |
  25745. sed '
  25746. /^ac_cv_env_/b end
  25747. t clear
  25748. :clear
  25749. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25750. t end
  25751. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25752. :end' >>confcache
  25753. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25754. if test -w "$cache_file"; then
  25755. if test "x$cache_file" != "x/dev/null"; then
  25756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25757. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25758. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25759. cat confcache >"$cache_file"
  25760. else
  25761. case $cache_file in #(
  25762. */* | ?:*)
  25763. mv -f confcache "$cache_file"$$ &&
  25764. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25765. *)
  25766. mv -f confcache "$cache_file" ;;
  25767. esac
  25768. fi
  25769. fi
  25770. else
  25771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25772. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25773. fi
  25774. fi
  25775. rm -f confcache
  25776. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25777. # Let make expand exec_prefix.
  25778. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25779. DEFS=-DHAVE_CONFIG_H
  25780. ac_libobjs=
  25781. ac_ltlibobjs=
  25782. U=
  25783. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25784. # 1. Remove the extension, and $U if already installed.
  25785. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25786. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25787. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25788. # will be set to the directory where LIBOBJS objects are built.
  25789. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25790. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25791. done
  25792. LIBOBJS=$ac_libobjs
  25793. LTLIBOBJS=$ac_ltlibobjs
  25794. : "${CONFIG_STATUS=./config.status}"
  25795. ac_write_fail=0
  25796. ac_clean_files_save=$ac_clean_files
  25797. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25799. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25800. as_write_fail=0
  25801. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25802. #! $SHELL
  25803. # Generated by $as_me.
  25804. # Run this file to recreate the current configuration.
  25805. # Compiler output produced by configure, useful for debugging
  25806. # configure, is in config.log if it exists.
  25807. debug=false
  25808. ac_cs_recheck=false
  25809. ac_cs_silent=false
  25810. SHELL=\${CONFIG_SHELL-$SHELL}
  25811. export SHELL
  25812. _ASEOF
  25813. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25814. ## -------------------- ##
  25815. ## M4sh Initialization. ##
  25816. ## -------------------- ##
  25817. # Be more Bourne compatible
  25818. DUALCASE=1; export DUALCASE # for MKS sh
  25819. as_nop=:
  25820. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25821. then :
  25822. emulate sh
  25823. NULLCMD=:
  25824. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25825. # is contrary to our usage. Disable this feature.
  25826. alias -g '${1+"$@"}'='"$@"'
  25827. setopt NO_GLOB_SUBST
  25828. else $as_nop
  25829. case `(set -o) 2>/dev/null` in #(
  25830. *posix*) :
  25831. set -o posix ;; #(
  25832. *) :
  25833. ;;
  25834. esac
  25835. fi
  25836. # Reset variables that may have inherited troublesome values from
  25837. # the environment.
  25838. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25839. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25840. # side effect of setting IFS to empty, thus disabling word splitting.)
  25841. # Quoting is to prevent editors from complaining about space-tab.
  25842. as_nl='
  25843. '
  25844. export as_nl
  25845. IFS=" "" $as_nl"
  25846. PS1='$ '
  25847. PS2='> '
  25848. PS4='+ '
  25849. # Ensure predictable behavior from utilities with locale-dependent output.
  25850. LC_ALL=C
  25851. export LC_ALL
  25852. LANGUAGE=C
  25853. export LANGUAGE
  25854. # We cannot yet rely on "unset" to work, but we need these variables
  25855. # to be unset--not just set to an empty or harmless value--now, to
  25856. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25857. # also avoids known problems related to "unset" and subshell syntax
  25858. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25859. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25860. do eval test \${$as_var+y} \
  25861. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25862. done
  25863. # Ensure that fds 0, 1, and 2 are open.
  25864. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25865. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25866. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25867. # The user is always right.
  25868. if ${PATH_SEPARATOR+false} :; then
  25869. PATH_SEPARATOR=:
  25870. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25871. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25872. PATH_SEPARATOR=';'
  25873. }
  25874. fi
  25875. # Find who we are. Look in the path if we contain no directory separator.
  25876. as_myself=
  25877. case $0 in #((
  25878. *[\\/]* ) as_myself=$0 ;;
  25879. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25880. for as_dir in $PATH
  25881. do
  25882. IFS=$as_save_IFS
  25883. case $as_dir in #(((
  25884. '') as_dir=./ ;;
  25885. */) ;;
  25886. *) as_dir=$as_dir/ ;;
  25887. esac
  25888. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25889. done
  25890. IFS=$as_save_IFS
  25891. ;;
  25892. esac
  25893. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25894. # in which case we are not to be found in the path.
  25895. if test "x$as_myself" = x; then
  25896. as_myself=$0
  25897. fi
  25898. if test ! -f "$as_myself"; then
  25899. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25900. exit 1
  25901. fi
  25902. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25903. # ----------------------------------------
  25904. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25905. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25906. # script with STATUS, using 1 if that was 0.
  25907. as_fn_error ()
  25908. {
  25909. as_status=$1; test $as_status -eq 0 && as_status=1
  25910. if test "$4"; then
  25911. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25912. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25913. fi
  25914. printf "%s\n" "$as_me: error: $2" >&2
  25915. as_fn_exit $as_status
  25916. } # as_fn_error
  25917. # as_fn_set_status STATUS
  25918. # -----------------------
  25919. # Set $? to STATUS, without forking.
  25920. as_fn_set_status ()
  25921. {
  25922. return $1
  25923. } # as_fn_set_status
  25924. # as_fn_exit STATUS
  25925. # -----------------
  25926. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25927. as_fn_exit ()
  25928. {
  25929. set +e
  25930. as_fn_set_status $1
  25931. exit $1
  25932. } # as_fn_exit
  25933. # as_fn_unset VAR
  25934. # ---------------
  25935. # Portably unset VAR.
  25936. as_fn_unset ()
  25937. {
  25938. { eval $1=; unset $1;}
  25939. }
  25940. as_unset=as_fn_unset
  25941. # as_fn_append VAR VALUE
  25942. # ----------------------
  25943. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25944. # advantage of any shell optimizations that allow amortized linear growth over
  25945. # repeated appends, instead of the typical quadratic growth present in naive
  25946. # implementations.
  25947. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  25948. then :
  25949. eval 'as_fn_append ()
  25950. {
  25951. eval $1+=\$2
  25952. }'
  25953. else $as_nop
  25954. as_fn_append ()
  25955. {
  25956. eval $1=\$$1\$2
  25957. }
  25958. fi # as_fn_append
  25959. # as_fn_arith ARG...
  25960. # ------------------
  25961. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25962. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25963. # must be portable across $(()) and expr.
  25964. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  25965. then :
  25966. eval 'as_fn_arith ()
  25967. {
  25968. as_val=$(( $* ))
  25969. }'
  25970. else $as_nop
  25971. as_fn_arith ()
  25972. {
  25973. as_val=`expr "$@" || test $? -eq 1`
  25974. }
  25975. fi # as_fn_arith
  25976. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25977. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25978. as_expr=expr
  25979. else
  25980. as_expr=false
  25981. fi
  25982. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25983. as_basename=basename
  25984. else
  25985. as_basename=false
  25986. fi
  25987. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25988. as_dirname=dirname
  25989. else
  25990. as_dirname=false
  25991. fi
  25992. as_me=`$as_basename -- "$0" ||
  25993. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25994. X"$0" : 'X\(//\)$' \| \
  25995. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25996. printf "%s\n" X/"$0" |
  25997. sed '/^.*\/\([^/][^/]*\)\/*$/{
  25998. s//\1/
  25999. q
  26000. }
  26001. /^X\/\(\/\/\)$/{
  26002. s//\1/
  26003. q
  26004. }
  26005. /^X\/\(\/\).*/{
  26006. s//\1/
  26007. q
  26008. }
  26009. s/.*/./; q'`
  26010. # Avoid depending upon Character Ranges.
  26011. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26012. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26013. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26014. as_cr_digits='0123456789'
  26015. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26016. # Determine whether it's possible to make 'echo' print without a newline.
  26017. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26018. # for compatibility with existing Makefiles.
  26019. ECHO_C= ECHO_N= ECHO_T=
  26020. case `echo -n x` in #(((((
  26021. -n*)
  26022. case `echo 'xy\c'` in
  26023. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26024. xy) ECHO_C='\c';;
  26025. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26026. ECHO_T=' ';;
  26027. esac;;
  26028. *)
  26029. ECHO_N='-n';;
  26030. esac
  26031. # For backward compatibility with old third-party macros, we provide
  26032. # the shell variables $as_echo and $as_echo_n. New code should use
  26033. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26034. as_echo='printf %s\n'
  26035. as_echo_n='printf %s'
  26036. rm -f conf$$ conf$$.exe conf$$.file
  26037. if test -d conf$$.dir; then
  26038. rm -f conf$$.dir/conf$$.file
  26039. else
  26040. rm -f conf$$.dir
  26041. mkdir conf$$.dir 2>/dev/null
  26042. fi
  26043. if (echo >conf$$.file) 2>/dev/null; then
  26044. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26045. as_ln_s='ln -s'
  26046. # ... but there are two gotchas:
  26047. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26048. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26049. # In both cases, we have to default to `cp -pR'.
  26050. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26051. as_ln_s='cp -pR'
  26052. elif ln conf$$.file conf$$ 2>/dev/null; then
  26053. as_ln_s=ln
  26054. else
  26055. as_ln_s='cp -pR'
  26056. fi
  26057. else
  26058. as_ln_s='cp -pR'
  26059. fi
  26060. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26061. rmdir conf$$.dir 2>/dev/null
  26062. # as_fn_mkdir_p
  26063. # -------------
  26064. # Create "$as_dir" as a directory, including parents if necessary.
  26065. as_fn_mkdir_p ()
  26066. {
  26067. case $as_dir in #(
  26068. -*) as_dir=./$as_dir;;
  26069. esac
  26070. test -d "$as_dir" || eval $as_mkdir_p || {
  26071. as_dirs=
  26072. while :; do
  26073. case $as_dir in #(
  26074. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26075. *) as_qdir=$as_dir;;
  26076. esac
  26077. as_dirs="'$as_qdir' $as_dirs"
  26078. as_dir=`$as_dirname -- "$as_dir" ||
  26079. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26080. X"$as_dir" : 'X\(//\)[^/]' \| \
  26081. X"$as_dir" : 'X\(//\)$' \| \
  26082. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26083. printf "%s\n" X"$as_dir" |
  26084. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26085. s//\1/
  26086. q
  26087. }
  26088. /^X\(\/\/\)[^/].*/{
  26089. s//\1/
  26090. q
  26091. }
  26092. /^X\(\/\/\)$/{
  26093. s//\1/
  26094. q
  26095. }
  26096. /^X\(\/\).*/{
  26097. s//\1/
  26098. q
  26099. }
  26100. s/.*/./; q'`
  26101. test -d "$as_dir" && break
  26102. done
  26103. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26104. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26105. } # as_fn_mkdir_p
  26106. if mkdir -p . 2>/dev/null; then
  26107. as_mkdir_p='mkdir -p "$as_dir"'
  26108. else
  26109. test -d ./-p && rmdir ./-p
  26110. as_mkdir_p=false
  26111. fi
  26112. # as_fn_executable_p FILE
  26113. # -----------------------
  26114. # Test if FILE is an executable regular file.
  26115. as_fn_executable_p ()
  26116. {
  26117. test -f "$1" && test -x "$1"
  26118. } # as_fn_executable_p
  26119. as_test_x='test -x'
  26120. as_executable_p=as_fn_executable_p
  26121. # Sed expression to map a string onto a valid CPP name.
  26122. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26123. # Sed expression to map a string onto a valid variable name.
  26124. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26125. exec 6>&1
  26126. ## ----------------------------------- ##
  26127. ## Main body of $CONFIG_STATUS script. ##
  26128. ## ----------------------------------- ##
  26129. _ASEOF
  26130. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26131. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26132. # Save the log message, to keep $0 and so on meaningful, and to
  26133. # report actual input values of CONFIG_FILES etc. instead of their
  26134. # values after options handling.
  26135. ac_log="
  26136. This file was extended by $as_me, which was
  26137. generated by GNU Autoconf 2.71. Invocation command line was
  26138. CONFIG_FILES = $CONFIG_FILES
  26139. CONFIG_HEADERS = $CONFIG_HEADERS
  26140. CONFIG_LINKS = $CONFIG_LINKS
  26141. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26142. $ $0 $@
  26143. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26144. "
  26145. _ACEOF
  26146. case $ac_config_files in *"
  26147. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26148. esac
  26149. case $ac_config_headers in *"
  26150. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26151. esac
  26152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26153. # Files that config.status was made for.
  26154. config_files="$ac_config_files"
  26155. config_headers="$ac_config_headers"
  26156. config_commands="$ac_config_commands"
  26157. _ACEOF
  26158. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26159. ac_cs_usage="\
  26160. \`$as_me' instantiates files and other configuration actions
  26161. from templates according to the current configuration. Unless the files
  26162. and actions are specified as TAGs, all are instantiated by default.
  26163. Usage: $0 [OPTION]... [TAG]...
  26164. -h, --help print this help, then exit
  26165. -V, --version print version number and configuration settings, then exit
  26166. --config print configuration, then exit
  26167. -q, --quiet, --silent
  26168. do not print progress messages
  26169. -d, --debug don't remove temporary files
  26170. --recheck update $as_me by reconfiguring in the same conditions
  26171. --file=FILE[:TEMPLATE]
  26172. instantiate the configuration file FILE
  26173. --header=FILE[:TEMPLATE]
  26174. instantiate the configuration header FILE
  26175. Configuration files:
  26176. $config_files
  26177. Configuration headers:
  26178. $config_headers
  26179. Configuration commands:
  26180. $config_commands
  26181. Report bugs to the package provider."
  26182. _ACEOF
  26183. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26184. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26185. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26186. ac_cs_config='$ac_cs_config_escaped'
  26187. ac_cs_version="\\
  26188. config.status
  26189. configured by $0, generated by GNU Autoconf 2.71,
  26190. with options \\"\$ac_cs_config\\"
  26191. Copyright (C) 2021 Free Software Foundation, Inc.
  26192. This config.status script is free software; the Free Software Foundation
  26193. gives unlimited permission to copy, distribute and modify it."
  26194. ac_pwd='$ac_pwd'
  26195. srcdir='$srcdir'
  26196. INSTALL='$INSTALL'
  26197. AWK='$AWK'
  26198. test -n "\$AWK" || AWK=awk
  26199. _ACEOF
  26200. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26201. # The default lists apply if the user does not specify any file.
  26202. ac_need_defaults=:
  26203. while test $# != 0
  26204. do
  26205. case $1 in
  26206. --*=?*)
  26207. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26208. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26209. ac_shift=:
  26210. ;;
  26211. --*=)
  26212. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26213. ac_optarg=
  26214. ac_shift=:
  26215. ;;
  26216. *)
  26217. ac_option=$1
  26218. ac_optarg=$2
  26219. ac_shift=shift
  26220. ;;
  26221. esac
  26222. case $ac_option in
  26223. # Handling of the options.
  26224. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26225. ac_cs_recheck=: ;;
  26226. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26227. printf "%s\n" "$ac_cs_version"; exit ;;
  26228. --config | --confi | --conf | --con | --co | --c )
  26229. printf "%s\n" "$ac_cs_config"; exit ;;
  26230. --debug | --debu | --deb | --de | --d | -d )
  26231. debug=: ;;
  26232. --file | --fil | --fi | --f )
  26233. $ac_shift
  26234. case $ac_optarg in
  26235. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26236. '') as_fn_error $? "missing file argument" ;;
  26237. esac
  26238. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26239. ac_need_defaults=false;;
  26240. --header | --heade | --head | --hea )
  26241. $ac_shift
  26242. case $ac_optarg in
  26243. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26244. esac
  26245. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26246. ac_need_defaults=false;;
  26247. --he | --h)
  26248. # Conflict between --help and --header
  26249. as_fn_error $? "ambiguous option: \`$1'
  26250. Try \`$0 --help' for more information.";;
  26251. --help | --hel | -h )
  26252. printf "%s\n" "$ac_cs_usage"; exit ;;
  26253. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26254. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26255. ac_cs_silent=: ;;
  26256. # This is an error.
  26257. -*) as_fn_error $? "unrecognized option: \`$1'
  26258. Try \`$0 --help' for more information." ;;
  26259. *) as_fn_append ac_config_targets " $1"
  26260. ac_need_defaults=false ;;
  26261. esac
  26262. shift
  26263. done
  26264. ac_configure_extra_args=
  26265. if $ac_cs_silent; then
  26266. exec 6>/dev/null
  26267. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26268. fi
  26269. _ACEOF
  26270. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26271. if \$ac_cs_recheck; then
  26272. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26273. shift
  26274. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26275. CONFIG_SHELL='$SHELL'
  26276. export CONFIG_SHELL
  26277. exec "\$@"
  26278. fi
  26279. _ACEOF
  26280. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26281. exec 5>>config.log
  26282. {
  26283. echo
  26284. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26285. ## Running $as_me. ##
  26286. _ASBOX
  26287. printf "%s\n" "$ac_log"
  26288. } >&5
  26289. _ACEOF
  26290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26291. #
  26292. # INIT-COMMANDS
  26293. #
  26294. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26295. # if CDPATH is set.
  26296. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26297. sed_quote_subst='$sed_quote_subst'
  26298. double_quote_subst='$double_quote_subst'
  26299. delay_variable_subst='$delay_variable_subst'
  26300. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26301. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26302. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26303. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26304. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26305. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26306. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26307. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26308. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26309. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26310. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26311. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26312. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26313. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26314. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26315. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26316. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26317. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26318. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26319. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26320. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26321. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26322. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26323. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26324. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26325. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26326. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26327. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26328. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26329. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26330. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26331. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26332. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26333. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26334. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26335. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26336. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26337. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26338. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26339. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26340. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26341. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26342. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26343. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26344. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26345. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26346. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26347. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26348. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26349. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26350. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26351. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26352. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26353. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26354. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26355. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26356. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26357. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26358. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26359. 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"`'
  26360. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26361. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26362. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26363. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26364. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26365. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26366. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26367. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26368. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26369. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26370. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26371. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26372. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26373. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26374. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26375. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26376. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26377. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26378. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26379. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26380. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26381. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26382. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26383. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26384. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26385. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26386. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26387. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26388. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26389. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26390. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26391. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26392. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26393. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26394. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26395. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26396. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26397. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26398. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26399. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26400. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26401. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26402. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26403. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26404. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26405. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26406. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26407. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26408. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26409. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26410. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26411. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26412. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26413. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26414. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26415. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26416. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26417. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26418. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26419. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26420. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26421. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26422. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26423. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26424. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26425. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26426. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26427. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26428. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26429. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26430. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26431. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26432. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26433. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26434. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26435. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26436. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26437. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26438. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26439. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26440. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26441. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26442. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26443. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26444. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26445. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26446. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26447. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26448. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26449. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26450. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26451. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26452. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26453. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26454. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26455. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26456. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26457. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26458. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26459. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26460. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26461. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26462. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26463. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26464. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26465. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26466. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26467. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26468. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26469. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26470. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26471. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26472. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26473. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26474. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26475. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26476. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26477. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26478. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26479. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26480. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26481. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26482. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26483. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26484. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26485. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26486. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26487. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26488. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26489. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26490. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26491. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26492. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26493. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26494. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26495. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26496. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26497. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26498. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26499. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26500. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26501. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26502. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26503. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26504. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26505. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26506. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26507. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26508. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26509. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26510. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26511. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26512. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26513. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26514. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26515. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26516. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26517. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26518. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26519. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26520. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26521. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26522. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26523. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26524. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26525. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26526. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26527. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26528. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26529. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26530. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26531. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26532. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26533. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26534. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26535. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26536. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26537. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26538. LTCC='$LTCC'
  26539. LTCFLAGS='$LTCFLAGS'
  26540. compiler='$compiler_DEFAULT'
  26541. # A function that is used when there is no print builtin or printf.
  26542. func_fallback_echo ()
  26543. {
  26544. eval 'cat <<_LTECHO_EOF
  26545. \$1
  26546. _LTECHO_EOF'
  26547. }
  26548. # Quote evaled strings.
  26549. for var in AS \
  26550. DLLTOOL \
  26551. OBJDUMP \
  26552. SHELL \
  26553. ECHO \
  26554. PATH_SEPARATOR \
  26555. SED \
  26556. GREP \
  26557. EGREP \
  26558. FGREP \
  26559. LD \
  26560. NM \
  26561. LN_S \
  26562. lt_SP2NL \
  26563. lt_NL2SP \
  26564. reload_flag \
  26565. deplibs_check_method \
  26566. file_magic_cmd \
  26567. file_magic_glob \
  26568. want_nocaseglob \
  26569. sharedlib_from_linklib_cmd \
  26570. AR \
  26571. AR_FLAGS \
  26572. archiver_list_spec \
  26573. STRIP \
  26574. RANLIB \
  26575. CC \
  26576. CFLAGS \
  26577. compiler \
  26578. lt_cv_sys_global_symbol_pipe \
  26579. lt_cv_sys_global_symbol_to_cdecl \
  26580. lt_cv_sys_global_symbol_to_import \
  26581. lt_cv_sys_global_symbol_to_c_name_address \
  26582. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26583. lt_cv_nm_interface \
  26584. nm_file_list_spec \
  26585. lt_cv_truncate_bin \
  26586. lt_prog_compiler_no_builtin_flag \
  26587. lt_prog_compiler_pic \
  26588. lt_prog_compiler_wl \
  26589. lt_prog_compiler_static \
  26590. lt_cv_prog_compiler_c_o \
  26591. need_locks \
  26592. MANIFEST_TOOL \
  26593. DSYMUTIL \
  26594. NMEDIT \
  26595. LIPO \
  26596. OTOOL \
  26597. OTOOL64 \
  26598. shrext_cmds \
  26599. export_dynamic_flag_spec \
  26600. whole_archive_flag_spec \
  26601. compiler_needs_object \
  26602. with_gnu_ld \
  26603. allow_undefined_flag \
  26604. no_undefined_flag \
  26605. hardcode_libdir_flag_spec \
  26606. hardcode_libdir_separator \
  26607. exclude_expsyms \
  26608. include_expsyms \
  26609. file_list_spec \
  26610. variables_saved_for_relink \
  26611. libname_spec \
  26612. library_names_spec \
  26613. soname_spec \
  26614. install_override_mode \
  26615. finish_eval \
  26616. old_striplib \
  26617. striplib \
  26618. compiler_lib_search_dirs \
  26619. predep_objects \
  26620. postdep_objects \
  26621. predeps \
  26622. postdeps \
  26623. compiler_lib_search_path \
  26624. LD_RC \
  26625. LD_CXX \
  26626. reload_flag_RC \
  26627. reload_flag_CXX \
  26628. compiler_RC \
  26629. compiler_CXX \
  26630. lt_prog_compiler_no_builtin_flag_RC \
  26631. lt_prog_compiler_no_builtin_flag_CXX \
  26632. lt_prog_compiler_pic_RC \
  26633. lt_prog_compiler_pic_CXX \
  26634. lt_prog_compiler_wl_RC \
  26635. lt_prog_compiler_wl_CXX \
  26636. lt_prog_compiler_static_RC \
  26637. lt_prog_compiler_static_CXX \
  26638. lt_cv_prog_compiler_c_o_RC \
  26639. lt_cv_prog_compiler_c_o_CXX \
  26640. export_dynamic_flag_spec_RC \
  26641. export_dynamic_flag_spec_CXX \
  26642. whole_archive_flag_spec_RC \
  26643. whole_archive_flag_spec_CXX \
  26644. compiler_needs_object_RC \
  26645. compiler_needs_object_CXX \
  26646. with_gnu_ld_RC \
  26647. with_gnu_ld_CXX \
  26648. allow_undefined_flag_RC \
  26649. allow_undefined_flag_CXX \
  26650. no_undefined_flag_RC \
  26651. no_undefined_flag_CXX \
  26652. hardcode_libdir_flag_spec_RC \
  26653. hardcode_libdir_flag_spec_CXX \
  26654. hardcode_libdir_separator_RC \
  26655. hardcode_libdir_separator_CXX \
  26656. exclude_expsyms_RC \
  26657. exclude_expsyms_CXX \
  26658. include_expsyms_RC \
  26659. include_expsyms_CXX \
  26660. file_list_spec_RC \
  26661. file_list_spec_CXX \
  26662. compiler_lib_search_dirs_RC \
  26663. compiler_lib_search_dirs_CXX \
  26664. predep_objects_RC \
  26665. predep_objects_CXX \
  26666. postdep_objects_RC \
  26667. postdep_objects_CXX \
  26668. predeps_RC \
  26669. predeps_CXX \
  26670. postdeps_RC \
  26671. postdeps_CXX \
  26672. compiler_lib_search_path_RC \
  26673. compiler_lib_search_path_CXX; do
  26674. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26675. *[\\\\\\\`\\"\\\$]*)
  26676. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26677. ;;
  26678. *)
  26679. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26680. ;;
  26681. esac
  26682. done
  26683. # Double-quote double-evaled strings.
  26684. for var in reload_cmds \
  26685. old_postinstall_cmds \
  26686. old_postuninstall_cmds \
  26687. old_archive_cmds \
  26688. extract_expsyms_cmds \
  26689. old_archive_from_new_cmds \
  26690. old_archive_from_expsyms_cmds \
  26691. archive_cmds \
  26692. archive_expsym_cmds \
  26693. module_cmds \
  26694. module_expsym_cmds \
  26695. export_symbols_cmds \
  26696. prelink_cmds \
  26697. postlink_cmds \
  26698. postinstall_cmds \
  26699. postuninstall_cmds \
  26700. finish_cmds \
  26701. sys_lib_search_path_spec \
  26702. configure_time_dlsearch_path \
  26703. configure_time_lt_sys_library_path \
  26704. reload_cmds_RC \
  26705. reload_cmds_CXX \
  26706. old_archive_cmds_RC \
  26707. old_archive_cmds_CXX \
  26708. old_archive_from_new_cmds_RC \
  26709. old_archive_from_new_cmds_CXX \
  26710. old_archive_from_expsyms_cmds_RC \
  26711. old_archive_from_expsyms_cmds_CXX \
  26712. archive_cmds_RC \
  26713. archive_cmds_CXX \
  26714. archive_expsym_cmds_RC \
  26715. archive_expsym_cmds_CXX \
  26716. module_cmds_RC \
  26717. module_cmds_CXX \
  26718. module_expsym_cmds_RC \
  26719. module_expsym_cmds_CXX \
  26720. export_symbols_cmds_RC \
  26721. export_symbols_cmds_CXX \
  26722. prelink_cmds_RC \
  26723. prelink_cmds_CXX \
  26724. postlink_cmds_RC \
  26725. postlink_cmds_CXX; do
  26726. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26727. *[\\\\\\\`\\"\\\$]*)
  26728. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26729. ;;
  26730. *)
  26731. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26732. ;;
  26733. esac
  26734. done
  26735. ac_aux_dir='$ac_aux_dir'
  26736. # See if we are running on zsh, and set the options that allow our
  26737. # commands through without removal of \ escapes INIT.
  26738. if test -n "\${ZSH_VERSION+set}"; then
  26739. setopt NO_GLOB_SUBST
  26740. fi
  26741. PACKAGE='$PACKAGE'
  26742. VERSION='$VERSION'
  26743. RM='$RM'
  26744. ofile='$ofile'
  26745. SUMMARY="$SUMMARY"
  26746. _ACEOF
  26747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26748. # Handling of arguments.
  26749. for ac_config_target in $ac_config_targets
  26750. do
  26751. case $ac_config_target in
  26752. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26753. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26754. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26755. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26756. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26757. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26758. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26759. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26760. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26761. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26762. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26763. esac
  26764. done
  26765. # If the user did not use the arguments to specify the items to instantiate,
  26766. # then the envvar interface is used. Set only those that are not.
  26767. # We use the long form for the default assignment because of an extremely
  26768. # bizarre bug on SunOS 4.1.3.
  26769. if $ac_need_defaults; then
  26770. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26771. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26772. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26773. fi
  26774. # Have a temporary directory for convenience. Make it in the build tree
  26775. # simply because there is no reason against having it here, and in addition,
  26776. # creating and moving files from /tmp can sometimes cause problems.
  26777. # Hook for its removal unless debugging.
  26778. # Note that there is a small window in which the directory will not be cleaned:
  26779. # after its creation but before its name has been assigned to `$tmp'.
  26780. $debug ||
  26781. {
  26782. tmp= ac_tmp=
  26783. trap 'exit_status=$?
  26784. : "${ac_tmp:=$tmp}"
  26785. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26786. ' 0
  26787. trap 'as_fn_exit 1' 1 2 13 15
  26788. }
  26789. # Create a (secure) tmp directory for tmp files.
  26790. {
  26791. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26792. test -d "$tmp"
  26793. } ||
  26794. {
  26795. tmp=./conf$$-$RANDOM
  26796. (umask 077 && mkdir "$tmp")
  26797. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26798. ac_tmp=$tmp
  26799. # Set up the scripts for CONFIG_FILES section.
  26800. # No need to generate them if there are no CONFIG_FILES.
  26801. # This happens for instance with `./config.status config.h'.
  26802. if test -n "$CONFIG_FILES"; then
  26803. ac_cr=`echo X | tr X '\015'`
  26804. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26805. # But we know of no other shell where ac_cr would be empty at this
  26806. # point, so we can use a bashism as a fallback.
  26807. if test "x$ac_cr" = x; then
  26808. eval ac_cr=\$\'\\r\'
  26809. fi
  26810. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26811. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26812. ac_cs_awk_cr='\\r'
  26813. else
  26814. ac_cs_awk_cr=$ac_cr
  26815. fi
  26816. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26817. _ACEOF
  26818. {
  26819. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26820. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26821. echo "_ACEOF"
  26822. } >conf$$subs.sh ||
  26823. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26824. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26825. ac_delim='%!_!# '
  26826. for ac_last_try in false false false false false :; do
  26827. . ./conf$$subs.sh ||
  26828. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26829. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26830. if test $ac_delim_n = $ac_delim_num; then
  26831. break
  26832. elif $ac_last_try; then
  26833. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26834. else
  26835. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26836. fi
  26837. done
  26838. rm -f conf$$subs.sh
  26839. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26840. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26841. _ACEOF
  26842. sed -n '
  26843. h
  26844. s/^/S["/; s/!.*/"]=/
  26845. p
  26846. g
  26847. s/^[^!]*!//
  26848. :repl
  26849. t repl
  26850. s/'"$ac_delim"'$//
  26851. t delim
  26852. :nl
  26853. h
  26854. s/\(.\{148\}\)..*/\1/
  26855. t more1
  26856. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26857. p
  26858. n
  26859. b repl
  26860. :more1
  26861. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26862. p
  26863. g
  26864. s/.\{148\}//
  26865. t nl
  26866. :delim
  26867. h
  26868. s/\(.\{148\}\)..*/\1/
  26869. t more2
  26870. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26871. p
  26872. b
  26873. :more2
  26874. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26875. p
  26876. g
  26877. s/.\{148\}//
  26878. t delim
  26879. ' <conf$$subs.awk | sed '
  26880. /^[^""]/{
  26881. N
  26882. s/\n//
  26883. }
  26884. ' >>$CONFIG_STATUS || ac_write_fail=1
  26885. rm -f conf$$subs.awk
  26886. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26887. _ACAWK
  26888. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26889. for (key in S) S_is_set[key] = 1
  26890. FS = ""
  26891. }
  26892. {
  26893. line = $ 0
  26894. nfields = split(line, field, "@")
  26895. substed = 0
  26896. len = length(field[1])
  26897. for (i = 2; i < nfields; i++) {
  26898. key = field[i]
  26899. keylen = length(key)
  26900. if (S_is_set[key]) {
  26901. value = S[key]
  26902. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26903. len += length(value) + length(field[++i])
  26904. substed = 1
  26905. } else
  26906. len += 1 + keylen
  26907. }
  26908. print line
  26909. }
  26910. _ACAWK
  26911. _ACEOF
  26912. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26913. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26914. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26915. else
  26916. cat
  26917. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26918. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26919. _ACEOF
  26920. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26921. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26922. # trailing colons and then remove the whole line if VPATH becomes empty
  26923. # (actually we leave an empty line to preserve line numbers).
  26924. if test "x$srcdir" = x.; then
  26925. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26926. h
  26927. s///
  26928. s/^/:/
  26929. s/[ ]*$/:/
  26930. s/:\$(srcdir):/:/g
  26931. s/:\${srcdir}:/:/g
  26932. s/:@srcdir@:/:/g
  26933. s/^:*//
  26934. s/:*$//
  26935. x
  26936. s/\(=[ ]*\).*/\1/
  26937. G
  26938. s/\n//
  26939. s/^[^=]*=[ ]*$//
  26940. }'
  26941. fi
  26942. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26943. fi # test -n "$CONFIG_FILES"
  26944. # Set up the scripts for CONFIG_HEADERS section.
  26945. # No need to generate them if there are no CONFIG_HEADERS.
  26946. # This happens for instance with `./config.status Makefile'.
  26947. if test -n "$CONFIG_HEADERS"; then
  26948. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  26949. BEGIN {
  26950. _ACEOF
  26951. # Transform confdefs.h into an awk script `defines.awk', embedded as
  26952. # here-document in config.status, that substitutes the proper values into
  26953. # config.h.in to produce config.h.
  26954. # Create a delimiter string that does not exist in confdefs.h, to ease
  26955. # handling of long lines.
  26956. ac_delim='%!_!# '
  26957. for ac_last_try in false false :; do
  26958. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  26959. if test -z "$ac_tt"; then
  26960. break
  26961. elif $ac_last_try; then
  26962. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  26963. else
  26964. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26965. fi
  26966. done
  26967. # For the awk script, D is an array of macro values keyed by name,
  26968. # likewise P contains macro parameters if any. Preserve backslash
  26969. # newline sequences.
  26970. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  26971. sed -n '
  26972. s/.\{148\}/&'"$ac_delim"'/g
  26973. t rset
  26974. :rset
  26975. s/^[ ]*#[ ]*define[ ][ ]*/ /
  26976. t def
  26977. d
  26978. :def
  26979. s/\\$//
  26980. t bsnl
  26981. s/["\\]/\\&/g
  26982. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26983. D["\1"]=" \3"/p
  26984. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  26985. d
  26986. :bsnl
  26987. s/["\\]/\\&/g
  26988. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  26989. D["\1"]=" \3\\\\\\n"\\/p
  26990. t cont
  26991. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  26992. t cont
  26993. d
  26994. :cont
  26995. n
  26996. s/.\{148\}/&'"$ac_delim"'/g
  26997. t clear
  26998. :clear
  26999. s/\\$//
  27000. t bsnlc
  27001. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27002. d
  27003. :bsnlc
  27004. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27005. b cont
  27006. ' <confdefs.h | sed '
  27007. s/'"$ac_delim"'/"\\\
  27008. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27009. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27010. for (key in D) D_is_set[key] = 1
  27011. FS = ""
  27012. }
  27013. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27014. line = \$ 0
  27015. split(line, arg, " ")
  27016. if (arg[1] == "#") {
  27017. defundef = arg[2]
  27018. mac1 = arg[3]
  27019. } else {
  27020. defundef = substr(arg[1], 2)
  27021. mac1 = arg[2]
  27022. }
  27023. split(mac1, mac2, "(") #)
  27024. macro = mac2[1]
  27025. prefix = substr(line, 1, index(line, defundef) - 1)
  27026. if (D_is_set[macro]) {
  27027. # Preserve the white space surrounding the "#".
  27028. print prefix "define", macro P[macro] D[macro]
  27029. next
  27030. } else {
  27031. # Replace #undef with comments. This is necessary, for example,
  27032. # in the case of _POSIX_SOURCE, which is predefined and required
  27033. # on some systems where configure will not decide to define it.
  27034. if (defundef == "undef") {
  27035. print "/*", prefix defundef, macro, "*/"
  27036. next
  27037. }
  27038. }
  27039. }
  27040. { print }
  27041. _ACAWK
  27042. _ACEOF
  27043. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27044. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27045. fi # test -n "$CONFIG_HEADERS"
  27046. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27047. shift
  27048. for ac_tag
  27049. do
  27050. case $ac_tag in
  27051. :[FHLC]) ac_mode=$ac_tag; continue;;
  27052. esac
  27053. case $ac_mode$ac_tag in
  27054. :[FHL]*:*);;
  27055. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27056. :[FH]-) ac_tag=-:-;;
  27057. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27058. esac
  27059. ac_save_IFS=$IFS
  27060. IFS=:
  27061. set x $ac_tag
  27062. IFS=$ac_save_IFS
  27063. shift
  27064. ac_file=$1
  27065. shift
  27066. case $ac_mode in
  27067. :L) ac_source=$1;;
  27068. :[FH])
  27069. ac_file_inputs=
  27070. for ac_f
  27071. do
  27072. case $ac_f in
  27073. -) ac_f="$ac_tmp/stdin";;
  27074. *) # Look for the file first in the build tree, then in the source tree
  27075. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27076. # because $ac_f cannot contain `:'.
  27077. test -f "$ac_f" ||
  27078. case $ac_f in
  27079. [\\/$]*) false;;
  27080. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27081. esac ||
  27082. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27083. esac
  27084. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27085. as_fn_append ac_file_inputs " '$ac_f'"
  27086. done
  27087. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27088. # use $as_me), people would be surprised to read:
  27089. # /* config.h. Generated by config.status. */
  27090. configure_input='Generated from '`
  27091. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27092. `' by configure.'
  27093. if test x"$ac_file" != x-; then
  27094. configure_input="$ac_file. $configure_input"
  27095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27096. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27097. fi
  27098. # Neutralize special characters interpreted by sed in replacement strings.
  27099. case $configure_input in #(
  27100. *\&* | *\|* | *\\* )
  27101. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27102. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27103. *) ac_sed_conf_input=$configure_input;;
  27104. esac
  27105. case $ac_tag in
  27106. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27107. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27108. esac
  27109. ;;
  27110. esac
  27111. ac_dir=`$as_dirname -- "$ac_file" ||
  27112. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27113. X"$ac_file" : 'X\(//\)[^/]' \| \
  27114. X"$ac_file" : 'X\(//\)$' \| \
  27115. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27116. printf "%s\n" X"$ac_file" |
  27117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27118. s//\1/
  27119. q
  27120. }
  27121. /^X\(\/\/\)[^/].*/{
  27122. s//\1/
  27123. q
  27124. }
  27125. /^X\(\/\/\)$/{
  27126. s//\1/
  27127. q
  27128. }
  27129. /^X\(\/\).*/{
  27130. s//\1/
  27131. q
  27132. }
  27133. s/.*/./; q'`
  27134. as_dir="$ac_dir"; as_fn_mkdir_p
  27135. ac_builddir=.
  27136. case "$ac_dir" in
  27137. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27138. *)
  27139. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27140. # A ".." for each directory in $ac_dir_suffix.
  27141. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27142. case $ac_top_builddir_sub in
  27143. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27144. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27145. esac ;;
  27146. esac
  27147. ac_abs_top_builddir=$ac_pwd
  27148. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27149. # for backward compatibility:
  27150. ac_top_builddir=$ac_top_build_prefix
  27151. case $srcdir in
  27152. .) # We are building in place.
  27153. ac_srcdir=.
  27154. ac_top_srcdir=$ac_top_builddir_sub
  27155. ac_abs_top_srcdir=$ac_pwd ;;
  27156. [\\/]* | ?:[\\/]* ) # Absolute name.
  27157. ac_srcdir=$srcdir$ac_dir_suffix;
  27158. ac_top_srcdir=$srcdir
  27159. ac_abs_top_srcdir=$srcdir ;;
  27160. *) # Relative name.
  27161. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27162. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27163. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27164. esac
  27165. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27166. case $ac_mode in
  27167. :F)
  27168. #
  27169. # CONFIG_FILE
  27170. #
  27171. case $INSTALL in
  27172. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27173. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27174. esac
  27175. _ACEOF
  27176. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27177. # If the template does not know about datarootdir, expand it.
  27178. # FIXME: This hack should be removed a few years after 2.60.
  27179. ac_datarootdir_hack=; ac_datarootdir_seen=
  27180. ac_sed_dataroot='
  27181. /datarootdir/ {
  27182. p
  27183. q
  27184. }
  27185. /@datadir@/p
  27186. /@docdir@/p
  27187. /@infodir@/p
  27188. /@localedir@/p
  27189. /@mandir@/p'
  27190. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27191. *datarootdir*) ac_datarootdir_seen=yes;;
  27192. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27194. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27195. _ACEOF
  27196. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27197. ac_datarootdir_hack='
  27198. s&@datadir@&$datadir&g
  27199. s&@docdir@&$docdir&g
  27200. s&@infodir@&$infodir&g
  27201. s&@localedir@&$localedir&g
  27202. s&@mandir@&$mandir&g
  27203. s&\\\${datarootdir}&$datarootdir&g' ;;
  27204. esac
  27205. _ACEOF
  27206. # Neutralize VPATH when `$srcdir' = `.'.
  27207. # Shell code in configure.ac might set extrasub.
  27208. # FIXME: do we really want to maintain this feature?
  27209. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27210. ac_sed_extra="$ac_vpsub
  27211. $extrasub
  27212. _ACEOF
  27213. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27214. :t
  27215. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27216. s|@configure_input@|$ac_sed_conf_input|;t t
  27217. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27218. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27219. s&@srcdir@&$ac_srcdir&;t t
  27220. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27221. s&@top_srcdir@&$ac_top_srcdir&;t t
  27222. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27223. s&@builddir@&$ac_builddir&;t t
  27224. s&@abs_builddir@&$ac_abs_builddir&;t t
  27225. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27226. s&@INSTALL@&$ac_INSTALL&;t t
  27227. $ac_datarootdir_hack
  27228. "
  27229. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27230. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27231. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27232. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27233. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27234. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27235. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27236. which seems to be undefined. Please make sure it is defined" >&5
  27237. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27238. which seems to be undefined. Please make sure it is defined" >&2;}
  27239. rm -f "$ac_tmp/stdin"
  27240. case $ac_file in
  27241. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27242. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27243. esac \
  27244. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27245. ;;
  27246. :H)
  27247. #
  27248. # CONFIG_HEADER
  27249. #
  27250. if test x"$ac_file" != x-; then
  27251. {
  27252. printf "%s\n" "/* $configure_input */" >&1 \
  27253. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27254. } >"$ac_tmp/config.h" \
  27255. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27256. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27258. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27259. else
  27260. rm -f "$ac_file"
  27261. mv "$ac_tmp/config.h" "$ac_file" \
  27262. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27263. fi
  27264. else
  27265. printf "%s\n" "/* $configure_input */" >&1 \
  27266. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27267. || as_fn_error $? "could not create -" "$LINENO" 5
  27268. fi
  27269. ;;
  27270. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27271. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27272. ;;
  27273. esac
  27274. case $ac_file$ac_mode in
  27275. "libtool":C)
  27276. # See if we are running on zsh, and set the options that allow our
  27277. # commands through without removal of \ escapes.
  27278. if test -n "${ZSH_VERSION+set}"; then
  27279. setopt NO_GLOB_SUBST
  27280. fi
  27281. cfgfile=${ofile}T
  27282. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27283. $RM "$cfgfile"
  27284. cat <<_LT_EOF >> "$cfgfile"
  27285. #! $SHELL
  27286. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27287. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27288. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27289. # Provide generalized library-building support services.
  27290. # Written by Gordon Matzigkeit, 1996
  27291. # Copyright (C) 2014 Free Software Foundation, Inc.
  27292. # This is free software; see the source for copying conditions. There is NO
  27293. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27294. # GNU Libtool is free software; you can redistribute it and/or modify
  27295. # it under the terms of the GNU General Public License as published by
  27296. # the Free Software Foundation; either version 2 of of the License, or
  27297. # (at your option) any later version.
  27298. #
  27299. # As a special exception to the GNU General Public License, if you
  27300. # distribute this file as part of a program or library that is built
  27301. # using GNU Libtool, you may include this file under the same
  27302. # distribution terms that you use for the rest of that program.
  27303. #
  27304. # GNU Libtool is distributed in the hope that it will be useful, but
  27305. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27306. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27307. # GNU General Public License for more details.
  27308. #
  27309. # You should have received a copy of the GNU General Public License
  27310. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27311. # The names of the tagged configurations supported by this script.
  27312. available_tags='RC CXX '
  27313. # Configured defaults for sys_lib_dlsearch_path munging.
  27314. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27315. # ### BEGIN LIBTOOL CONFIG
  27316. # Which release of libtool.m4 was used?
  27317. macro_version=$macro_version
  27318. macro_revision=$macro_revision
  27319. # Assembler program.
  27320. AS=$lt_AS
  27321. # DLL creation program.
  27322. DLLTOOL=$lt_DLLTOOL
  27323. # Object dumper program.
  27324. OBJDUMP=$lt_OBJDUMP
  27325. # Whether or not to build shared libraries.
  27326. build_libtool_libs=$enable_shared
  27327. # Whether or not to build static libraries.
  27328. build_old_libs=$enable_static
  27329. # What type of objects to build.
  27330. pic_mode=$pic_mode
  27331. # Whether or not to optimize for fast installation.
  27332. fast_install=$enable_fast_install
  27333. # Shared archive member basename,for filename based shared library versioning on AIX.
  27334. shared_archive_member_spec=$shared_archive_member_spec
  27335. # Shell to use when invoking shell scripts.
  27336. SHELL=$lt_SHELL
  27337. # An echo program that protects backslashes.
  27338. ECHO=$lt_ECHO
  27339. # The PATH separator for the build system.
  27340. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27341. # The host system.
  27342. host_alias=$host_alias
  27343. host=$host
  27344. host_os=$host_os
  27345. # The build system.
  27346. build_alias=$build_alias
  27347. build=$build
  27348. build_os=$build_os
  27349. # A sed program that does not truncate output.
  27350. SED=$lt_SED
  27351. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27352. Xsed="\$SED -e 1s/^X//"
  27353. # A grep program that handles long lines.
  27354. GREP=$lt_GREP
  27355. # An ERE matcher.
  27356. EGREP=$lt_EGREP
  27357. # A literal string matcher.
  27358. FGREP=$lt_FGREP
  27359. # A BSD- or MS-compatible name lister.
  27360. NM=$lt_NM
  27361. # Whether we need soft or hard links.
  27362. LN_S=$lt_LN_S
  27363. # What is the maximum length of a command?
  27364. max_cmd_len=$max_cmd_len
  27365. # Object file suffix (normally "o").
  27366. objext=$ac_objext
  27367. # Executable file suffix (normally "").
  27368. exeext=$exeext
  27369. # whether the shell understands "unset".
  27370. lt_unset=$lt_unset
  27371. # turn spaces into newlines.
  27372. SP2NL=$lt_lt_SP2NL
  27373. # turn newlines into spaces.
  27374. NL2SP=$lt_lt_NL2SP
  27375. # convert \$build file names to \$host format.
  27376. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27377. # convert \$build files to toolchain format.
  27378. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27379. # Method to check whether dependent libraries are shared objects.
  27380. deplibs_check_method=$lt_deplibs_check_method
  27381. # Command to use when deplibs_check_method = "file_magic".
  27382. file_magic_cmd=$lt_file_magic_cmd
  27383. # How to find potential files when deplibs_check_method = "file_magic".
  27384. file_magic_glob=$lt_file_magic_glob
  27385. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27386. want_nocaseglob=$lt_want_nocaseglob
  27387. # Command to associate shared and link libraries.
  27388. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27389. # The archiver.
  27390. AR=$lt_AR
  27391. # Flags to create an archive.
  27392. AR_FLAGS=$lt_AR_FLAGS
  27393. # How to feed a file listing to the archiver.
  27394. archiver_list_spec=$lt_archiver_list_spec
  27395. # A symbol stripping program.
  27396. STRIP=$lt_STRIP
  27397. # Commands used to install an old-style archive.
  27398. RANLIB=$lt_RANLIB
  27399. old_postinstall_cmds=$lt_old_postinstall_cmds
  27400. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27401. # Whether to use a lock for old archive extraction.
  27402. lock_old_archive_extraction=$lock_old_archive_extraction
  27403. # A C compiler.
  27404. LTCC=$lt_CC
  27405. # LTCC compiler flags.
  27406. LTCFLAGS=$lt_CFLAGS
  27407. # Take the output of nm and produce a listing of raw symbols and C names.
  27408. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27409. # Transform the output of nm in a proper C declaration.
  27410. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27411. # Transform the output of nm into a list of symbols to manually relocate.
  27412. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27413. # Transform the output of nm in a C name address pair.
  27414. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27415. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27416. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27417. # The name lister interface.
  27418. nm_interface=$lt_lt_cv_nm_interface
  27419. # Specify filename containing input files for \$NM.
  27420. nm_file_list_spec=$lt_nm_file_list_spec
  27421. # The root where to search for dependent libraries,and where our libraries should be installed.
  27422. lt_sysroot=$lt_sysroot
  27423. # Command to truncate a binary pipe.
  27424. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27425. # The name of the directory that contains temporary libtool files.
  27426. objdir=$objdir
  27427. # Used to examine libraries when file_magic_cmd begins with "file".
  27428. MAGIC_CMD=$MAGIC_CMD
  27429. # Must we lock files when doing compilation?
  27430. need_locks=$lt_need_locks
  27431. # Manifest tool.
  27432. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27433. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27434. DSYMUTIL=$lt_DSYMUTIL
  27435. # Tool to change global to local symbols on Mac OS X.
  27436. NMEDIT=$lt_NMEDIT
  27437. # Tool to manipulate fat objects and archives on Mac OS X.
  27438. LIPO=$lt_LIPO
  27439. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27440. OTOOL=$lt_OTOOL
  27441. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27442. OTOOL64=$lt_OTOOL64
  27443. # Old archive suffix (normally "a").
  27444. libext=$libext
  27445. # Shared library suffix (normally ".so").
  27446. shrext_cmds=$lt_shrext_cmds
  27447. # The commands to extract the exported symbol list from a shared archive.
  27448. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27449. # Variables whose values should be saved in libtool wrapper scripts and
  27450. # restored at link time.
  27451. variables_saved_for_relink=$lt_variables_saved_for_relink
  27452. # Do we need the "lib" prefix for modules?
  27453. need_lib_prefix=$need_lib_prefix
  27454. # Do we need a version for libraries?
  27455. need_version=$need_version
  27456. # Library versioning type.
  27457. version_type=$version_type
  27458. # Shared library runtime path variable.
  27459. runpath_var=$runpath_var
  27460. # Shared library path variable.
  27461. shlibpath_var=$shlibpath_var
  27462. # Is shlibpath searched before the hard-coded library search path?
  27463. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27464. # Format of library name prefix.
  27465. libname_spec=$lt_libname_spec
  27466. # List of archive names. First name is the real one, the rest are links.
  27467. # The last name is the one that the linker finds with -lNAME
  27468. library_names_spec=$lt_library_names_spec
  27469. # The coded name of the library, if different from the real name.
  27470. soname_spec=$lt_soname_spec
  27471. # Permission mode override for installation of shared libraries.
  27472. install_override_mode=$lt_install_override_mode
  27473. # Command to use after installation of a shared archive.
  27474. postinstall_cmds=$lt_postinstall_cmds
  27475. # Command to use after uninstallation of a shared archive.
  27476. postuninstall_cmds=$lt_postuninstall_cmds
  27477. # Commands used to finish a libtool library installation in a directory.
  27478. finish_cmds=$lt_finish_cmds
  27479. # As "finish_cmds", except a single script fragment to be evaled but
  27480. # not shown.
  27481. finish_eval=$lt_finish_eval
  27482. # Whether we should hardcode library paths into libraries.
  27483. hardcode_into_libs=$hardcode_into_libs
  27484. # Compile-time system search path for libraries.
  27485. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27486. # Detected run-time system search path for libraries.
  27487. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27488. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27489. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27490. # Whether dlopen is supported.
  27491. dlopen_support=$enable_dlopen
  27492. # Whether dlopen of programs is supported.
  27493. dlopen_self=$enable_dlopen_self
  27494. # Whether dlopen of statically linked programs is supported.
  27495. dlopen_self_static=$enable_dlopen_self_static
  27496. # Commands to strip libraries.
  27497. old_striplib=$lt_old_striplib
  27498. striplib=$lt_striplib
  27499. # The linker used to build libraries.
  27500. LD=$lt_LD
  27501. # How to create reloadable object files.
  27502. reload_flag=$lt_reload_flag
  27503. reload_cmds=$lt_reload_cmds
  27504. # Commands used to build an old-style archive.
  27505. old_archive_cmds=$lt_old_archive_cmds
  27506. # A language specific compiler.
  27507. CC=$lt_compiler
  27508. # Is the compiler the GNU compiler?
  27509. with_gcc=$GCC
  27510. # Compiler flag to turn off builtin functions.
  27511. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27512. # Additional compiler flags for building library objects.
  27513. pic_flag=$lt_lt_prog_compiler_pic
  27514. # How to pass a linker flag through the compiler.
  27515. wl=$lt_lt_prog_compiler_wl
  27516. # Compiler flag to prevent dynamic linking.
  27517. link_static_flag=$lt_lt_prog_compiler_static
  27518. # Does compiler simultaneously support -c and -o options?
  27519. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27520. # Whether or not to add -lc for building shared libraries.
  27521. build_libtool_need_lc=$archive_cmds_need_lc
  27522. # Whether or not to disallow shared libs when runtime libs are static.
  27523. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27524. # Compiler flag to allow reflexive dlopens.
  27525. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27526. # Compiler flag to generate shared objects directly from archives.
  27527. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27528. # Whether the compiler copes with passing no objects directly.
  27529. compiler_needs_object=$lt_compiler_needs_object
  27530. # Create an old-style archive from a shared archive.
  27531. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27532. # Create a temporary old-style archive to link instead of a shared archive.
  27533. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27534. # Commands used to build a shared archive.
  27535. archive_cmds=$lt_archive_cmds
  27536. archive_expsym_cmds=$lt_archive_expsym_cmds
  27537. # Commands used to build a loadable module if different from building
  27538. # a shared archive.
  27539. module_cmds=$lt_module_cmds
  27540. module_expsym_cmds=$lt_module_expsym_cmds
  27541. # Whether we are building with GNU ld or not.
  27542. with_gnu_ld=$lt_with_gnu_ld
  27543. # Flag that allows shared libraries with undefined symbols to be built.
  27544. allow_undefined_flag=$lt_allow_undefined_flag
  27545. # Flag that enforces no undefined symbols.
  27546. no_undefined_flag=$lt_no_undefined_flag
  27547. # Flag to hardcode \$libdir into a binary during linking.
  27548. # This must work even if \$libdir does not exist
  27549. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27550. # Whether we need a single "-rpath" flag with a separated argument.
  27551. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27552. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27553. # DIR into the resulting binary.
  27554. hardcode_direct=$hardcode_direct
  27555. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27556. # DIR into the resulting binary and the resulting library dependency is
  27557. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27558. # library is relocated.
  27559. hardcode_direct_absolute=$hardcode_direct_absolute
  27560. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27561. # into the resulting binary.
  27562. hardcode_minus_L=$hardcode_minus_L
  27563. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27564. # into the resulting binary.
  27565. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27566. # Set to "yes" if building a shared library automatically hardcodes DIR
  27567. # into the library and all subsequent libraries and executables linked
  27568. # against it.
  27569. hardcode_automatic=$hardcode_automatic
  27570. # Set to yes if linker adds runtime paths of dependent libraries
  27571. # to runtime path list.
  27572. inherit_rpath=$inherit_rpath
  27573. # Whether libtool must link a program against all its dependency libraries.
  27574. link_all_deplibs=$link_all_deplibs
  27575. # Set to "yes" if exported symbols are required.
  27576. always_export_symbols=$always_export_symbols
  27577. # The commands to list exported symbols.
  27578. export_symbols_cmds=$lt_export_symbols_cmds
  27579. # Symbols that should not be listed in the preloaded symbols.
  27580. exclude_expsyms=$lt_exclude_expsyms
  27581. # Symbols that must always be exported.
  27582. include_expsyms=$lt_include_expsyms
  27583. # Commands necessary for linking programs (against libraries) with templates.
  27584. prelink_cmds=$lt_prelink_cmds
  27585. # Commands necessary for finishing linking programs.
  27586. postlink_cmds=$lt_postlink_cmds
  27587. # Specify filename containing input files.
  27588. file_list_spec=$lt_file_list_spec
  27589. # How to hardcode a shared library path into an executable.
  27590. hardcode_action=$hardcode_action
  27591. # The directories searched by this compiler when creating a shared library.
  27592. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27593. # Dependencies to place before and after the objects being linked to
  27594. # create a shared library.
  27595. predep_objects=$lt_predep_objects
  27596. postdep_objects=$lt_postdep_objects
  27597. predeps=$lt_predeps
  27598. postdeps=$lt_postdeps
  27599. # The library search path used internally by the compiler when linking
  27600. # a shared library.
  27601. compiler_lib_search_path=$lt_compiler_lib_search_path
  27602. # ### END LIBTOOL CONFIG
  27603. _LT_EOF
  27604. cat <<'_LT_EOF' >> "$cfgfile"
  27605. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27606. # func_munge_path_list VARIABLE PATH
  27607. # -----------------------------------
  27608. # VARIABLE is name of variable containing _space_ separated list of
  27609. # directories to be munged by the contents of PATH, which is string
  27610. # having a format:
  27611. # "DIR[:DIR]:"
  27612. # string "DIR[ DIR]" will be prepended to VARIABLE
  27613. # ":DIR[:DIR]"
  27614. # string "DIR[ DIR]" will be appended to VARIABLE
  27615. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27616. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27617. # "DIRA[ DIRA]" will be appended to VARIABLE
  27618. # "DIR[:DIR]"
  27619. # VARIABLE will be replaced by "DIR[ DIR]"
  27620. func_munge_path_list ()
  27621. {
  27622. case x$2 in
  27623. x)
  27624. ;;
  27625. *:)
  27626. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27627. ;;
  27628. x:*)
  27629. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27630. ;;
  27631. *::*)
  27632. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27633. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27634. ;;
  27635. *)
  27636. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27637. ;;
  27638. esac
  27639. }
  27640. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27641. func_cc_basename ()
  27642. {
  27643. for cc_temp in $*""; do
  27644. case $cc_temp in
  27645. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27646. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27647. \-*) ;;
  27648. *) break;;
  27649. esac
  27650. done
  27651. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27652. }
  27653. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27654. _LT_EOF
  27655. case $host_os in
  27656. aix3*)
  27657. cat <<\_LT_EOF >> "$cfgfile"
  27658. # AIX sometimes has problems with the GCC collect2 program. For some
  27659. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27660. # vanish in a puff of smoke.
  27661. if test set != "${COLLECT_NAMES+set}"; then
  27662. COLLECT_NAMES=
  27663. export COLLECT_NAMES
  27664. fi
  27665. _LT_EOF
  27666. ;;
  27667. esac
  27668. ltmain=$ac_aux_dir/ltmain.sh
  27669. # We use sed instead of cat because bash on DJGPP gets confused if
  27670. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27671. # text mode, it properly converts lines to CR/LF. This bash problem
  27672. # is reportedly fixed, but why not run on old versions too?
  27673. sed '$q' "$ltmain" >> "$cfgfile" \
  27674. || (rm -f "$cfgfile"; exit 1)
  27675. mv -f "$cfgfile" "$ofile" ||
  27676. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27677. chmod +x "$ofile"
  27678. cat <<_LT_EOF >> "$ofile"
  27679. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27680. # The linker used to build libraries.
  27681. LD=$lt_LD_RC
  27682. # How to create reloadable object files.
  27683. reload_flag=$lt_reload_flag_RC
  27684. reload_cmds=$lt_reload_cmds_RC
  27685. # Commands used to build an old-style archive.
  27686. old_archive_cmds=$lt_old_archive_cmds_RC
  27687. # A language specific compiler.
  27688. CC=$lt_compiler_RC
  27689. # Is the compiler the GNU compiler?
  27690. with_gcc=$GCC_RC
  27691. # Compiler flag to turn off builtin functions.
  27692. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27693. # Additional compiler flags for building library objects.
  27694. pic_flag=$lt_lt_prog_compiler_pic_RC
  27695. # How to pass a linker flag through the compiler.
  27696. wl=$lt_lt_prog_compiler_wl_RC
  27697. # Compiler flag to prevent dynamic linking.
  27698. link_static_flag=$lt_lt_prog_compiler_static_RC
  27699. # Does compiler simultaneously support -c and -o options?
  27700. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27701. # Whether or not to add -lc for building shared libraries.
  27702. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27703. # Whether or not to disallow shared libs when runtime libs are static.
  27704. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27705. # Compiler flag to allow reflexive dlopens.
  27706. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27707. # Compiler flag to generate shared objects directly from archives.
  27708. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27709. # Whether the compiler copes with passing no objects directly.
  27710. compiler_needs_object=$lt_compiler_needs_object_RC
  27711. # Create an old-style archive from a shared archive.
  27712. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27713. # Create a temporary old-style archive to link instead of a shared archive.
  27714. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27715. # Commands used to build a shared archive.
  27716. archive_cmds=$lt_archive_cmds_RC
  27717. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27718. # Commands used to build a loadable module if different from building
  27719. # a shared archive.
  27720. module_cmds=$lt_module_cmds_RC
  27721. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27722. # Whether we are building with GNU ld or not.
  27723. with_gnu_ld=$lt_with_gnu_ld_RC
  27724. # Flag that allows shared libraries with undefined symbols to be built.
  27725. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27726. # Flag that enforces no undefined symbols.
  27727. no_undefined_flag=$lt_no_undefined_flag_RC
  27728. # Flag to hardcode \$libdir into a binary during linking.
  27729. # This must work even if \$libdir does not exist
  27730. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27731. # Whether we need a single "-rpath" flag with a separated argument.
  27732. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27733. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27734. # DIR into the resulting binary.
  27735. hardcode_direct=$hardcode_direct_RC
  27736. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27737. # DIR into the resulting binary and the resulting library dependency is
  27738. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27739. # library is relocated.
  27740. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27741. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27742. # into the resulting binary.
  27743. hardcode_minus_L=$hardcode_minus_L_RC
  27744. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27745. # into the resulting binary.
  27746. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27747. # Set to "yes" if building a shared library automatically hardcodes DIR
  27748. # into the library and all subsequent libraries and executables linked
  27749. # against it.
  27750. hardcode_automatic=$hardcode_automatic_RC
  27751. # Set to yes if linker adds runtime paths of dependent libraries
  27752. # to runtime path list.
  27753. inherit_rpath=$inherit_rpath_RC
  27754. # Whether libtool must link a program against all its dependency libraries.
  27755. link_all_deplibs=$link_all_deplibs_RC
  27756. # Set to "yes" if exported symbols are required.
  27757. always_export_symbols=$always_export_symbols_RC
  27758. # The commands to list exported symbols.
  27759. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27760. # Symbols that should not be listed in the preloaded symbols.
  27761. exclude_expsyms=$lt_exclude_expsyms_RC
  27762. # Symbols that must always be exported.
  27763. include_expsyms=$lt_include_expsyms_RC
  27764. # Commands necessary for linking programs (against libraries) with templates.
  27765. prelink_cmds=$lt_prelink_cmds_RC
  27766. # Commands necessary for finishing linking programs.
  27767. postlink_cmds=$lt_postlink_cmds_RC
  27768. # Specify filename containing input files.
  27769. file_list_spec=$lt_file_list_spec_RC
  27770. # How to hardcode a shared library path into an executable.
  27771. hardcode_action=$hardcode_action_RC
  27772. # The directories searched by this compiler when creating a shared library.
  27773. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27774. # Dependencies to place before and after the objects being linked to
  27775. # create a shared library.
  27776. predep_objects=$lt_predep_objects_RC
  27777. postdep_objects=$lt_postdep_objects_RC
  27778. predeps=$lt_predeps_RC
  27779. postdeps=$lt_postdeps_RC
  27780. # The library search path used internally by the compiler when linking
  27781. # a shared library.
  27782. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27783. # ### END LIBTOOL TAG CONFIG: RC
  27784. _LT_EOF
  27785. cat <<_LT_EOF >> "$ofile"
  27786. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27787. # The linker used to build libraries.
  27788. LD=$lt_LD_CXX
  27789. # How to create reloadable object files.
  27790. reload_flag=$lt_reload_flag_CXX
  27791. reload_cmds=$lt_reload_cmds_CXX
  27792. # Commands used to build an old-style archive.
  27793. old_archive_cmds=$lt_old_archive_cmds_CXX
  27794. # A language specific compiler.
  27795. CC=$lt_compiler_CXX
  27796. # Is the compiler the GNU compiler?
  27797. with_gcc=$GCC_CXX
  27798. # Compiler flag to turn off builtin functions.
  27799. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27800. # Additional compiler flags for building library objects.
  27801. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27802. # How to pass a linker flag through the compiler.
  27803. wl=$lt_lt_prog_compiler_wl_CXX
  27804. # Compiler flag to prevent dynamic linking.
  27805. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27806. # Does compiler simultaneously support -c and -o options?
  27807. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27808. # Whether or not to add -lc for building shared libraries.
  27809. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27810. # Whether or not to disallow shared libs when runtime libs are static.
  27811. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27812. # Compiler flag to allow reflexive dlopens.
  27813. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27814. # Compiler flag to generate shared objects directly from archives.
  27815. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27816. # Whether the compiler copes with passing no objects directly.
  27817. compiler_needs_object=$lt_compiler_needs_object_CXX
  27818. # Create an old-style archive from a shared archive.
  27819. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27820. # Create a temporary old-style archive to link instead of a shared archive.
  27821. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27822. # Commands used to build a shared archive.
  27823. archive_cmds=$lt_archive_cmds_CXX
  27824. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27825. # Commands used to build a loadable module if different from building
  27826. # a shared archive.
  27827. module_cmds=$lt_module_cmds_CXX
  27828. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27829. # Whether we are building with GNU ld or not.
  27830. with_gnu_ld=$lt_with_gnu_ld_CXX
  27831. # Flag that allows shared libraries with undefined symbols to be built.
  27832. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27833. # Flag that enforces no undefined symbols.
  27834. no_undefined_flag=$lt_no_undefined_flag_CXX
  27835. # Flag to hardcode \$libdir into a binary during linking.
  27836. # This must work even if \$libdir does not exist
  27837. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27838. # Whether we need a single "-rpath" flag with a separated argument.
  27839. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27840. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27841. # DIR into the resulting binary.
  27842. hardcode_direct=$hardcode_direct_CXX
  27843. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27844. # DIR into the resulting binary and the resulting library dependency is
  27845. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27846. # library is relocated.
  27847. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27848. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27849. # into the resulting binary.
  27850. hardcode_minus_L=$hardcode_minus_L_CXX
  27851. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27852. # into the resulting binary.
  27853. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27854. # Set to "yes" if building a shared library automatically hardcodes DIR
  27855. # into the library and all subsequent libraries and executables linked
  27856. # against it.
  27857. hardcode_automatic=$hardcode_automatic_CXX
  27858. # Set to yes if linker adds runtime paths of dependent libraries
  27859. # to runtime path list.
  27860. inherit_rpath=$inherit_rpath_CXX
  27861. # Whether libtool must link a program against all its dependency libraries.
  27862. link_all_deplibs=$link_all_deplibs_CXX
  27863. # Set to "yes" if exported symbols are required.
  27864. always_export_symbols=$always_export_symbols_CXX
  27865. # The commands to list exported symbols.
  27866. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27867. # Symbols that should not be listed in the preloaded symbols.
  27868. exclude_expsyms=$lt_exclude_expsyms_CXX
  27869. # Symbols that must always be exported.
  27870. include_expsyms=$lt_include_expsyms_CXX
  27871. # Commands necessary for linking programs (against libraries) with templates.
  27872. prelink_cmds=$lt_prelink_cmds_CXX
  27873. # Commands necessary for finishing linking programs.
  27874. postlink_cmds=$lt_postlink_cmds_CXX
  27875. # Specify filename containing input files.
  27876. file_list_spec=$lt_file_list_spec_CXX
  27877. # How to hardcode a shared library path into an executable.
  27878. hardcode_action=$hardcode_action_CXX
  27879. # The directories searched by this compiler when creating a shared library.
  27880. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27881. # Dependencies to place before and after the objects being linked to
  27882. # create a shared library.
  27883. predep_objects=$lt_predep_objects_CXX
  27884. postdep_objects=$lt_postdep_objects_CXX
  27885. predeps=$lt_predeps_CXX
  27886. postdeps=$lt_postdeps_CXX
  27887. # The library search path used internally by the compiler when linking
  27888. # a shared library.
  27889. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27890. # ### END LIBTOOL TAG CONFIG: CXX
  27891. _LT_EOF
  27892. ;;
  27893. "sdl2_config":C) chmod a+x sdl2-config ;;
  27894. "summary":C) printf "$SUMMARY" ;;
  27895. esac
  27896. done # for ac_tag
  27897. as_fn_exit 0
  27898. _ACEOF
  27899. ac_clean_files=$ac_clean_files_save
  27900. test $ac_write_fail = 0 ||
  27901. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27902. # configure is writing to config.log, and then calls config.status.
  27903. # config.status does its own redirection, appending to config.log.
  27904. # Unfortunately, on DOS this fails, as config.log is still kept open
  27905. # by configure, so config.status won't be able to write to it; its
  27906. # output is simply discarded. So we exec the FD to /dev/null,
  27907. # effectively closing config.log, so it can be properly (re)opened and
  27908. # appended to by config.status. When coming back to configure, we
  27909. # need to make the FD available again.
  27910. if test "$no_create" != yes; then
  27911. ac_cs_success=:
  27912. ac_config_status_args=
  27913. test "$silent" = yes &&
  27914. ac_config_status_args="$ac_config_status_args --quiet"
  27915. exec 5>/dev/null
  27916. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27917. exec 5>>config.log
  27918. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27919. # would make configure fail if this is the last instruction.
  27920. $ac_cs_success || as_fn_exit 1
  27921. fi
  27922. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27924. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27925. fi