configure 954 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535
  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_werror
  846. enable_video_wayland
  847. enable_video_wayland_qt_touch
  848. enable_wayland_shared
  849. enable_libdecor
  850. enable_libdecor_shared
  851. enable_video_rpi
  852. enable_video_x11
  853. with_x
  854. enable_x11_shared
  855. enable_video_x11_xcursor
  856. enable_video_x11_xdbe
  857. enable_video_x11_xinput
  858. enable_video_x11_xfixes
  859. enable_video_x11_xrandr
  860. enable_video_x11_scrnsaver
  861. enable_video_x11_xshape
  862. enable_video_vivante
  863. enable_video_cocoa
  864. enable_video_metal
  865. enable_render_metal
  866. enable_video_directfb
  867. enable_directfb_shared
  868. enable_video_kmsdrm
  869. enable_kmsdrm_shared
  870. enable_video_dummy
  871. enable_video_offscreen
  872. enable_video_opengl
  873. enable_video_opengles
  874. enable_video_opengles1
  875. enable_video_opengles2
  876. enable_video_vulkan
  877. enable_libudev
  878. enable_dbus
  879. enable_ime
  880. enable_ibus
  881. enable_fcitx
  882. enable_joystick_mfi
  883. enable_pthreads
  884. enable_pthread_sem
  885. enable_directx
  886. enable_xinput
  887. enable_wasapi
  888. enable_hidapi_joystick
  889. enable_hidapi_libusb
  890. enable_clock_gettime
  891. enable_rpath
  892. enable_backgrounding_signal
  893. enable_foregrounding_signal
  894. enable_joystick_virtual
  895. enable_render_d3d
  896. enable_sdl2_config
  897. '
  898. ac_precious_vars='build_alias
  899. host_alias
  900. target_alias
  901. CC
  902. CFLAGS
  903. LDFLAGS
  904. LIBS
  905. CPPFLAGS
  906. LT_SYS_LIBRARY_PATH
  907. CXX
  908. CXXFLAGS
  909. CCC
  910. CXXCPP
  911. PKG_CONFIG
  912. PKG_CONFIG_PATH
  913. PKG_CONFIG_LIBDIR
  914. CPP
  915. JACK_CFLAGS
  916. JACK_LIBS
  917. ESD_CFLAGS
  918. ESD_LIBS
  919. PIPEWIRE_CFLAGS
  920. PIPEWIRE_LIBS
  921. PULSEAUDIO_CFLAGS
  922. PULSEAUDIO_LIBS
  923. SNDIO_CFLAGS
  924. SNDIO_LIBS
  925. FUSIONSOUND_CFLAGS
  926. FUSIONSOUND_LIBS
  927. DECOR_CFLAGS
  928. DECOR_LIBS
  929. RPI_CFLAGS
  930. RPI_LIBS
  931. XMKMF
  932. DIRECTFB_CFLAGS
  933. DIRECTFB_LIBS
  934. LIBDRM_CFLAGS
  935. LIBDRM_LIBS
  936. LIBGBM_CFLAGS
  937. LIBGBM_LIBS
  938. DBUS_CFLAGS
  939. DBUS_LIBS
  940. IBUS_CFLAGS
  941. IBUS_LIBS
  942. LIBUSB_CFLAGS
  943. LIBUSB_LIBS'
  944. # Initialize some variables set by options.
  945. ac_init_help=
  946. ac_init_version=false
  947. ac_unrecognized_opts=
  948. ac_unrecognized_sep=
  949. # The variables have the same names as the options, with
  950. # dashes changed to underlines.
  951. cache_file=/dev/null
  952. exec_prefix=NONE
  953. no_create=
  954. no_recursion=
  955. prefix=NONE
  956. program_prefix=NONE
  957. program_suffix=NONE
  958. program_transform_name=s,x,x,
  959. silent=
  960. site=
  961. srcdir=
  962. verbose=
  963. x_includes=NONE
  964. x_libraries=NONE
  965. # Installation directory options.
  966. # These are left unexpanded so users can "make install exec_prefix=/foo"
  967. # and all the variables that are supposed to be based on exec_prefix
  968. # by default will actually change.
  969. # Use braces instead of parens because sh, perl, etc. also accept them.
  970. # (The list follows the same order as the GNU Coding Standards.)
  971. bindir='${exec_prefix}/bin'
  972. sbindir='${exec_prefix}/sbin'
  973. libexecdir='${exec_prefix}/libexec'
  974. datarootdir='${prefix}/share'
  975. datadir='${datarootdir}'
  976. sysconfdir='${prefix}/etc'
  977. sharedstatedir='${prefix}/com'
  978. localstatedir='${prefix}/var'
  979. runstatedir='${localstatedir}/run'
  980. includedir='${prefix}/include'
  981. oldincludedir='/usr/include'
  982. docdir='${datarootdir}/doc/${PACKAGE}'
  983. infodir='${datarootdir}/info'
  984. htmldir='${docdir}'
  985. dvidir='${docdir}'
  986. pdfdir='${docdir}'
  987. psdir='${docdir}'
  988. libdir='${exec_prefix}/lib'
  989. localedir='${datarootdir}/locale'
  990. mandir='${datarootdir}/man'
  991. ac_prev=
  992. ac_dashdash=
  993. for ac_option
  994. do
  995. # If the previous option needs an argument, assign it.
  996. if test -n "$ac_prev"; then
  997. eval $ac_prev=\$ac_option
  998. ac_prev=
  999. continue
  1000. fi
  1001. case $ac_option in
  1002. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1003. *=) ac_optarg= ;;
  1004. *) ac_optarg=yes ;;
  1005. esac
  1006. case $ac_dashdash$ac_option in
  1007. --)
  1008. ac_dashdash=yes ;;
  1009. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1010. ac_prev=bindir ;;
  1011. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1012. bindir=$ac_optarg ;;
  1013. -build | --build | --buil | --bui | --bu)
  1014. ac_prev=build_alias ;;
  1015. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1016. build_alias=$ac_optarg ;;
  1017. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1018. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1019. ac_prev=cache_file ;;
  1020. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1021. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1022. cache_file=$ac_optarg ;;
  1023. --config-cache | -C)
  1024. cache_file=config.cache ;;
  1025. -datadir | --datadir | --datadi | --datad)
  1026. ac_prev=datadir ;;
  1027. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1028. datadir=$ac_optarg ;;
  1029. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1030. | --dataroo | --dataro | --datar)
  1031. ac_prev=datarootdir ;;
  1032. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1033. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1034. datarootdir=$ac_optarg ;;
  1035. -disable-* | --disable-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "enable_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval enable_$ac_useropt=no ;;
  1050. -docdir | --docdir | --docdi | --doc | --do)
  1051. ac_prev=docdir ;;
  1052. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1053. docdir=$ac_optarg ;;
  1054. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1055. ac_prev=dvidir ;;
  1056. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1057. dvidir=$ac_optarg ;;
  1058. -enable-* | --enable-*)
  1059. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1060. # Reject names that are not valid shell variable names.
  1061. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1062. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1063. ac_useropt_orig=$ac_useropt
  1064. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1065. case $ac_user_opts in
  1066. *"
  1067. "enable_$ac_useropt"
  1068. "*) ;;
  1069. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1070. ac_unrecognized_sep=', ';;
  1071. esac
  1072. eval enable_$ac_useropt=\$ac_optarg ;;
  1073. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1074. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1075. | --exec | --exe | --ex)
  1076. ac_prev=exec_prefix ;;
  1077. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1078. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1079. | --exec=* | --exe=* | --ex=*)
  1080. exec_prefix=$ac_optarg ;;
  1081. -gas | --gas | --ga | --g)
  1082. # Obsolete; use --with-gas.
  1083. with_gas=yes ;;
  1084. -help | --help | --hel | --he | -h)
  1085. ac_init_help=long ;;
  1086. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1087. ac_init_help=recursive ;;
  1088. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1089. ac_init_help=short ;;
  1090. -host | --host | --hos | --ho)
  1091. ac_prev=host_alias ;;
  1092. -host=* | --host=* | --hos=* | --ho=*)
  1093. host_alias=$ac_optarg ;;
  1094. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1095. ac_prev=htmldir ;;
  1096. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1097. | --ht=*)
  1098. htmldir=$ac_optarg ;;
  1099. -includedir | --includedir | --includedi | --included | --include \
  1100. | --includ | --inclu | --incl | --inc)
  1101. ac_prev=includedir ;;
  1102. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1103. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1104. includedir=$ac_optarg ;;
  1105. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1106. ac_prev=infodir ;;
  1107. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1108. infodir=$ac_optarg ;;
  1109. -libdir | --libdir | --libdi | --libd)
  1110. ac_prev=libdir ;;
  1111. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1112. libdir=$ac_optarg ;;
  1113. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1114. | --libexe | --libex | --libe)
  1115. ac_prev=libexecdir ;;
  1116. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1117. | --libexe=* | --libex=* | --libe=*)
  1118. libexecdir=$ac_optarg ;;
  1119. -localedir | --localedir | --localedi | --localed | --locale)
  1120. ac_prev=localedir ;;
  1121. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1122. localedir=$ac_optarg ;;
  1123. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1124. | --localstate | --localstat | --localsta | --localst | --locals)
  1125. ac_prev=localstatedir ;;
  1126. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1127. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1128. localstatedir=$ac_optarg ;;
  1129. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1130. ac_prev=mandir ;;
  1131. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1132. mandir=$ac_optarg ;;
  1133. -nfp | --nfp | --nf)
  1134. # Obsolete; use --without-fp.
  1135. with_fp=no ;;
  1136. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1137. | --no-cr | --no-c | -n)
  1138. no_create=yes ;;
  1139. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1140. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1141. no_recursion=yes ;;
  1142. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1143. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1144. | --oldin | --oldi | --old | --ol | --o)
  1145. ac_prev=oldincludedir ;;
  1146. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1147. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1148. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1149. oldincludedir=$ac_optarg ;;
  1150. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1151. ac_prev=prefix ;;
  1152. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1153. prefix=$ac_optarg ;;
  1154. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1155. | --program-pre | --program-pr | --program-p)
  1156. ac_prev=program_prefix ;;
  1157. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1158. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1159. program_prefix=$ac_optarg ;;
  1160. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1161. | --program-suf | --program-su | --program-s)
  1162. ac_prev=program_suffix ;;
  1163. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1164. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1165. program_suffix=$ac_optarg ;;
  1166. -program-transform-name | --program-transform-name \
  1167. | --program-transform-nam | --program-transform-na \
  1168. | --program-transform-n | --program-transform- \
  1169. | --program-transform | --program-transfor \
  1170. | --program-transfo | --program-transf \
  1171. | --program-trans | --program-tran \
  1172. | --progr-tra | --program-tr | --program-t)
  1173. ac_prev=program_transform_name ;;
  1174. -program-transform-name=* | --program-transform-name=* \
  1175. | --program-transform-nam=* | --program-transform-na=* \
  1176. | --program-transform-n=* | --program-transform-=* \
  1177. | --program-transform=* | --program-transfor=* \
  1178. | --program-transfo=* | --program-transf=* \
  1179. | --program-trans=* | --program-tran=* \
  1180. | --progr-tra=* | --program-tr=* | --program-t=*)
  1181. program_transform_name=$ac_optarg ;;
  1182. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1183. ac_prev=pdfdir ;;
  1184. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1185. pdfdir=$ac_optarg ;;
  1186. -psdir | --psdir | --psdi | --psd | --ps)
  1187. ac_prev=psdir ;;
  1188. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1189. psdir=$ac_optarg ;;
  1190. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1191. | -silent | --silent | --silen | --sile | --sil)
  1192. silent=yes ;;
  1193. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1194. | --runstate | --runstat | --runsta | --runst | --runs \
  1195. | --run | --ru | --r)
  1196. ac_prev=runstatedir ;;
  1197. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1198. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1199. | --run=* | --ru=* | --r=*)
  1200. runstatedir=$ac_optarg ;;
  1201. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1202. ac_prev=sbindir ;;
  1203. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1204. | --sbi=* | --sb=*)
  1205. sbindir=$ac_optarg ;;
  1206. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1207. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1208. | --sharedst | --shareds | --shared | --share | --shar \
  1209. | --sha | --sh)
  1210. ac_prev=sharedstatedir ;;
  1211. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1212. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1213. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1214. | --sha=* | --sh=*)
  1215. sharedstatedir=$ac_optarg ;;
  1216. -site | --site | --sit)
  1217. ac_prev=site ;;
  1218. -site=* | --site=* | --sit=*)
  1219. site=$ac_optarg ;;
  1220. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1221. ac_prev=srcdir ;;
  1222. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1223. srcdir=$ac_optarg ;;
  1224. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1225. | --syscon | --sysco | --sysc | --sys | --sy)
  1226. ac_prev=sysconfdir ;;
  1227. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1228. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1229. sysconfdir=$ac_optarg ;;
  1230. -target | --target | --targe | --targ | --tar | --ta | --t)
  1231. ac_prev=target_alias ;;
  1232. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1233. target_alias=$ac_optarg ;;
  1234. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1235. verbose=yes ;;
  1236. -version | --version | --versio | --versi | --vers | -V)
  1237. ac_init_version=: ;;
  1238. -with-* | --with-*)
  1239. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1240. # Reject names that are not valid shell variable names.
  1241. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1242. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1243. ac_useropt_orig=$ac_useropt
  1244. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1245. case $ac_user_opts in
  1246. *"
  1247. "with_$ac_useropt"
  1248. "*) ;;
  1249. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1250. ac_unrecognized_sep=', ';;
  1251. esac
  1252. eval with_$ac_useropt=\$ac_optarg ;;
  1253. -without-* | --without-*)
  1254. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1255. # Reject names that are not valid shell variable names.
  1256. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1257. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1258. ac_useropt_orig=$ac_useropt
  1259. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1260. case $ac_user_opts in
  1261. *"
  1262. "with_$ac_useropt"
  1263. "*) ;;
  1264. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1265. ac_unrecognized_sep=', ';;
  1266. esac
  1267. eval with_$ac_useropt=no ;;
  1268. --x)
  1269. # Obsolete; use --with-x.
  1270. with_x=yes ;;
  1271. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1272. | --x-incl | --x-inc | --x-in | --x-i)
  1273. ac_prev=x_includes ;;
  1274. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1275. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1276. x_includes=$ac_optarg ;;
  1277. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1278. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1279. ac_prev=x_libraries ;;
  1280. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1281. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1282. x_libraries=$ac_optarg ;;
  1283. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1284. Try \`$0 --help' for more information"
  1285. ;;
  1286. *=*)
  1287. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1288. # Reject names that are not valid shell variable names.
  1289. case $ac_envvar in #(
  1290. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1291. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1292. esac
  1293. eval $ac_envvar=\$ac_optarg
  1294. export $ac_envvar ;;
  1295. *)
  1296. # FIXME: should be removed in autoconf 3.0.
  1297. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1298. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1299. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1300. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1301. ;;
  1302. esac
  1303. done
  1304. if test -n "$ac_prev"; then
  1305. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1306. as_fn_error $? "missing argument to $ac_option"
  1307. fi
  1308. if test -n "$ac_unrecognized_opts"; then
  1309. case $enable_option_checking in
  1310. no) ;;
  1311. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1312. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1313. esac
  1314. fi
  1315. # Check all directory arguments for consistency.
  1316. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1317. datadir sysconfdir sharedstatedir localstatedir includedir \
  1318. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1319. libdir localedir mandir runstatedir
  1320. do
  1321. eval ac_val=\$$ac_var
  1322. # Remove trailing slashes.
  1323. case $ac_val in
  1324. */ )
  1325. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1326. eval $ac_var=\$ac_val;;
  1327. esac
  1328. # Be sure to have absolute directory names.
  1329. case $ac_val in
  1330. [\\/$]* | ?:[\\/]* ) continue;;
  1331. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1332. esac
  1333. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1334. done
  1335. # There might be people who depend on the old broken behavior: `$host'
  1336. # used to hold the argument of --host etc.
  1337. # FIXME: To remove some day.
  1338. build=$build_alias
  1339. host=$host_alias
  1340. target=$target_alias
  1341. # FIXME: To remove some day.
  1342. if test "x$host_alias" != x; then
  1343. if test "x$build_alias" = x; then
  1344. cross_compiling=maybe
  1345. elif test "x$build_alias" != "x$host_alias"; then
  1346. cross_compiling=yes
  1347. fi
  1348. fi
  1349. ac_tool_prefix=
  1350. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1351. test "$silent" = yes && exec 6>/dev/null
  1352. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1353. ac_ls_di=`ls -di .` &&
  1354. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1355. as_fn_error $? "working directory cannot be determined"
  1356. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1357. as_fn_error $? "pwd does not report name of working directory"
  1358. # Find the source files, if location was not specified.
  1359. if test -z "$srcdir"; then
  1360. ac_srcdir_defaulted=yes
  1361. # Try the directory containing this script, then the parent directory.
  1362. ac_confdir=`$as_dirname -- "$as_myself" ||
  1363. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1364. X"$as_myself" : 'X\(//\)[^/]' \| \
  1365. X"$as_myself" : 'X\(//\)$' \| \
  1366. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1367. printf "%s\n" X"$as_myself" |
  1368. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1369. s//\1/
  1370. q
  1371. }
  1372. /^X\(\/\/\)[^/].*/{
  1373. s//\1/
  1374. q
  1375. }
  1376. /^X\(\/\/\)$/{
  1377. s//\1/
  1378. q
  1379. }
  1380. /^X\(\/\).*/{
  1381. s//\1/
  1382. q
  1383. }
  1384. s/.*/./; q'`
  1385. srcdir=$ac_confdir
  1386. if test ! -r "$srcdir/$ac_unique_file"; then
  1387. srcdir=..
  1388. fi
  1389. else
  1390. ac_srcdir_defaulted=no
  1391. fi
  1392. if test ! -r "$srcdir/$ac_unique_file"; then
  1393. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1394. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1395. fi
  1396. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1397. ac_abs_confdir=`(
  1398. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1399. pwd)`
  1400. # When building in place, set srcdir=.
  1401. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1402. srcdir=.
  1403. fi
  1404. # Remove unnecessary trailing slashes from srcdir.
  1405. # Double slashes in file names in object file debugging info
  1406. # mess up M-x gdb in Emacs.
  1407. case $srcdir in
  1408. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1409. esac
  1410. for ac_var in $ac_precious_vars; do
  1411. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1412. eval ac_env_${ac_var}_value=\$${ac_var}
  1413. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1414. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1415. done
  1416. #
  1417. # Report the --help message.
  1418. #
  1419. if test "$ac_init_help" = "long"; then
  1420. # Omit some internal or obsolete options to make the list less imposing.
  1421. # This message is too long to be a string in the A/UX 3.1 sh.
  1422. cat <<_ACEOF
  1423. \`configure' configures this package to adapt to many kinds of systems.
  1424. Usage: $0 [OPTION]... [VAR=VALUE]...
  1425. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1426. VAR=VALUE. See below for descriptions of some of the useful variables.
  1427. Defaults for the options are specified in brackets.
  1428. Configuration:
  1429. -h, --help display this help and exit
  1430. --help=short display options specific to this package
  1431. --help=recursive display the short help of all the included packages
  1432. -V, --version display version information and exit
  1433. -q, --quiet, --silent do not print \`checking ...' messages
  1434. --cache-file=FILE cache test results in FILE [disabled]
  1435. -C, --config-cache alias for \`--cache-file=config.cache'
  1436. -n, --no-create do not create output files
  1437. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1438. Installation directories:
  1439. --prefix=PREFIX install architecture-independent files in PREFIX
  1440. [$ac_default_prefix]
  1441. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1442. [PREFIX]
  1443. By default, \`make install' will install all the files in
  1444. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1445. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1446. for instance \`--prefix=\$HOME'.
  1447. For better control, use the options below.
  1448. Fine tuning of the installation directories:
  1449. --bindir=DIR user executables [EPREFIX/bin]
  1450. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1451. --libexecdir=DIR program executables [EPREFIX/libexec]
  1452. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1453. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1454. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1455. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1456. --libdir=DIR object code libraries [EPREFIX/lib]
  1457. --includedir=DIR C header files [PREFIX/include]
  1458. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1459. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1460. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1461. --infodir=DIR info documentation [DATAROOTDIR/info]
  1462. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1463. --mandir=DIR man documentation [DATAROOTDIR/man]
  1464. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1465. --htmldir=DIR html documentation [DOCDIR]
  1466. --dvidir=DIR dvi documentation [DOCDIR]
  1467. --pdfdir=DIR pdf documentation [DOCDIR]
  1468. --psdir=DIR ps documentation [DOCDIR]
  1469. _ACEOF
  1470. cat <<\_ACEOF
  1471. X features:
  1472. --x-includes=DIR X include files are in DIR
  1473. --x-libraries=DIR X library files are in DIR
  1474. System types:
  1475. --build=BUILD configure for building on BUILD [guessed]
  1476. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1477. _ACEOF
  1478. fi
  1479. if test -n "$ac_init_help"; then
  1480. cat <<\_ACEOF
  1481. Optional Features:
  1482. --disable-option-checking ignore unrecognized --enable/--with options
  1483. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1484. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1485. --enable-shared[=PKGS] build shared libraries [default=yes]
  1486. --enable-static[=PKGS] build static libraries [default=yes]
  1487. --enable-fast-install[=PKGS]
  1488. optimize for fast installation [default=yes]
  1489. --disable-libtool-lock avoid locking (might break parallel builds)
  1490. --disable-largefile omit support for large files
  1491. --enable-assertions Enable internal sanity checks
  1492. (auto/disabled/release/enabled/paranoid)
  1493. [default=auto]
  1494. --enable-dependency-tracking
  1495. Use gcc -MMD -MT dependency tracking [default=yes]
  1496. --enable-libc Use the system C library [default=yes]
  1497. --enable-system-iconv Use iconv() from system-installed libraries
  1498. [default=yes]
  1499. --enable-gcc-atomics Use gcc builtin atomics [default=yes]
  1500. --enable-atomic Enable the atomic operations subsystem [default=yes]
  1501. --enable-audio Enable the audio subsystem [default=yes]
  1502. --enable-video Enable the video subsystem [default=yes]
  1503. --enable-render Enable the render subsystem [default=yes]
  1504. --enable-events Enable the events subsystem [default=yes]
  1505. --enable-joystick Enable the joystick subsystem [default=yes]
  1506. --enable-haptic Enable the haptic (force feedback) subsystem
  1507. [default=yes]
  1508. --enable-hidapi Enable the HIDAPI subsystem [default=yes]
  1509. --enable-sensor Enable the sensor subsystem [default=yes]
  1510. --enable-power Enable the power subsystem [default=yes]
  1511. --enable-filesystem Enable the filesystem subsystem [default=yes]
  1512. --enable-timers Enable the timer subsystem [default=yes]
  1513. --enable-file Enable the file subsystem [default=yes]
  1514. --enable-misc Enable the misc subsystem [default=yes]
  1515. --enable-locale Enable the locale subsystem [default=yes]
  1516. --enable-loadso Enable the shared object loading subsystem
  1517. [default=yes]
  1518. --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
  1519. --enable-assembly Enable assembly routines [default=yes]
  1520. --enable-ssemath Allow GCC to use SSE floating point math
  1521. [default=maybe]
  1522. --enable-mmx use MMX assembly routines [default=yes]
  1523. --enable-3dnow use 3DNow! assembly routines [default=yes]
  1524. --enable-sse use SSE assembly routines [default=yes]
  1525. --enable-sse2 use SSE2 assembly routines [default=maybe]
  1526. --enable-sse3 use SSE3 assembly routines [default=maybe]
  1527. --enable-altivec use Altivec assembly routines [default=yes]
  1528. --enable-lsx use LSX assembly routines [default=yes]
  1529. --enable-lasx use LASX assembly routines [default=yes]
  1530. --enable-oss support the OSS audio API [default=maybe]
  1531. --enable-alsa support the ALSA audio API [default=yes]
  1532. --disable-alsatest Do not try to compile and run a test Alsa program
  1533. --enable-alsa-shared dynamically load ALSA audio support [default=yes]
  1534. --enable-jack use JACK audio [default=yes]
  1535. --enable-jack-shared dynamically load JACK audio support [default=yes]
  1536. --enable-esd support the Enlightened Sound Daemon [default=yes]
  1537. --disable-esdtest Do not try to compile and run a test ESD program
  1538. --enable-esd-shared dynamically load ESD audio support [default=yes]
  1539. --enable-pipewire use Pipewire audio [default=yes]
  1540. --enable-pipewire-shared
  1541. dynamically load Pipewire support [default=yes]
  1542. --enable-pulseaudio use PulseAudio [default=yes]
  1543. --enable-pulseaudio-shared
  1544. dynamically load PulseAudio support [default=yes]
  1545. --enable-arts support the Analog Real Time Synthesizer
  1546. [default=yes]
  1547. --enable-arts-shared dynamically load aRts audio support [default=yes]
  1548. --enable-nas support the NAS audio API [default=yes]
  1549. --enable-nas-shared dynamically load NAS audio support [default=yes]
  1550. --enable-sndio support the sndio audio API [default=yes]
  1551. --enable-sndio-shared dynamically load sndio audio support [default=yes]
  1552. --enable-fusionsound use FusionSound audio driver [default=no]
  1553. --enable-fusionsound-shared
  1554. dynamically load fusionsound audio support
  1555. [default=yes]
  1556. --enable-diskaudio support the disk writer audio driver [default=yes]
  1557. --enable-dummyaudio support the dummy audio driver [default=yes]
  1558. --enable-libsamplerate use libsamplerate for audio rate conversion
  1559. [default=yes]
  1560. --enable-libsamplerate-shared
  1561. dynamically load libsamplerate [default=yes]
  1562. --enable-arm-simd use SIMD assembly blitters on ARM [default=no]
  1563. --enable-arm-neon use NEON assembly blitters on ARM [default=no]
  1564. --enable-werror treat warnings as errors [default=no]
  1565. --enable-video-wayland use Wayland video driver [default=yes]
  1566. --enable-video-wayland-qt-touch
  1567. QtWayland server support for Wayland video driver
  1568. [default=yes]
  1569. --enable-wayland-shared dynamically load Wayland support [default=maybe]
  1570. --enable-libdecor use libdecor for Wayland client-side decorations
  1571. [default=yes]
  1572. --enable-libdecor-shared
  1573. dynamically load libdecor [default=yes]
  1574. --enable-video-rpi use Raspberry Pi 2/3 video driver [default=yes]
  1575. --enable-video-x11 use X11 video driver [default=maybe]
  1576. --enable-x11-shared dynamically load X11 support [default=maybe]
  1577. --enable-video-x11-xcursor
  1578. enable X11 Xcursor support [default=yes]
  1579. --enable-video-x11-xdbe enable X11 Xdbe support [default=yes]
  1580. --enable-video-x11-xinput
  1581. enable X11 XInput extension for manymouse, tablets,
  1582. etc [default=yes]
  1583. --enable-video-x11-xfixes
  1584. enable X11 Xfixes support [default=yes]
  1585. --enable-video-x11-xrandr
  1586. enable X11 Xrandr extension for fullscreen
  1587. [default=yes]
  1588. --enable-video-x11-scrnsaver
  1589. enable X11 screensaver extension [default=yes]
  1590. --enable-video-x11-xshape
  1591. enable X11 XShape support [default=yes]
  1592. --enable-video-vivante use Vivante EGL video driver [default=yes]
  1593. --enable-video-cocoa use Cocoa video driver [default=yes]
  1594. --enable-video-metal include Metal support [default=yes]
  1595. --enable-render-metal enable the Metal render driver [default=yes]
  1596. --enable-video-directfb use DirectFB video driver [default=no]
  1597. --enable-directfb-shared
  1598. dynamically load directfb support [default=yes]
  1599. --enable-video-kmsdrm use KMSDRM video driver [default=yes]
  1600. --enable-kmsdrm-shared dynamically load kmsdrm support [default=yes]
  1601. --enable-video-dummy use dummy video driver [default=yes]
  1602. --enable-video-offscreen
  1603. use offscreen video driver [default=yes]
  1604. --enable-video-opengl include OpenGL support [default=yes]
  1605. --enable-video-opengles include OpenGL ES support [default=yes]
  1606. --enable-video-opengles1
  1607. include OpenGL ES 1.1 support [default=yes]
  1608. --enable-video-opengles2
  1609. include OpenGL ES 2.0 support [default=yes]
  1610. --enable-video-vulkan include Vulkan support [default=yes]
  1611. --enable-libudev enable libudev support [default=yes]
  1612. --enable-dbus enable D-Bus support [default=yes]
  1613. --enable-ime enable IME support [default=yes]
  1614. --enable-ibus enable IBus support [default=yes]
  1615. --enable-fcitx enable fcitx support [default=yes]
  1616. --enable-joystick-mfi include macOS MFI joystick support [default=yes]
  1617. --enable-pthreads use POSIX threads for multi-threading
  1618. [default=maybe]
  1619. --enable-pthread-sem use pthread semaphores [default=maybe]
  1620. --enable-directx use DirectX for Windows audio/video [default=yes]
  1621. --enable-xinput use Xinput for Windows [default=yes]
  1622. --enable-wasapi use the Windows WASAPI audio driver [default=yes]
  1623. --enable-hidapi-joystick
  1624. use HIDAPI for low level joystick drivers
  1625. [default=yes]
  1626. --enable-hidapi-libusb use libusb for low level joystick drivers
  1627. [default=maybe]
  1628. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1629. UNIX [default=yes]
  1630. --enable-rpath use an rpath when linking SDL [default=yes]
  1631. --enable-backgrounding-signal
  1632. number to use for magic backgrounding signal or 'no'
  1633. [default=no]
  1634. --enable-foregrounding-signal
  1635. number to use for magic foregrounding signal or 'no'
  1636. [default=no]
  1637. --enable-joystick-virtual
  1638. enable virtual joystick APIs [default=yes]
  1639. --enable-render-d3d enable the Direct3D render driver [default=yes]
  1640. --enable-sdl2-config Install sdl2-config [default=yes]
  1641. Optional Packages:
  1642. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1643. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1644. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1645. both]
  1646. --with-aix-soname=aix|svr4|both
  1647. shared library versioning (aka "SONAME") variant to
  1648. provide on AIX, [default=aix].
  1649. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1650. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1651. compiler's sysroot if not specified).
  1652. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1653. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1654. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1655. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1656. --with-x use the X Window System
  1657. Some influential environment variables:
  1658. CC C compiler command
  1659. CFLAGS C compiler flags
  1660. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1661. nonstandard directory <lib dir>
  1662. LIBS libraries to pass to the linker, e.g. -l<library>
  1663. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1664. you have headers in a nonstandard directory <include dir>
  1665. LT_SYS_LIBRARY_PATH
  1666. User-defined run-time library search path.
  1667. CXX C++ compiler command
  1668. CXXFLAGS C++ compiler flags
  1669. CXXCPP C++ preprocessor
  1670. PKG_CONFIG path to pkg-config utility
  1671. PKG_CONFIG_PATH
  1672. directories to add to pkg-config's search path
  1673. PKG_CONFIG_LIBDIR
  1674. path overriding pkg-config's built-in search path
  1675. CPP C preprocessor
  1676. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1677. JACK_LIBS linker flags for JACK, overriding pkg-config
  1678. ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
  1679. ESD_LIBS linker flags for ESD, overriding pkg-config
  1680. PIPEWIRE_CFLAGS
  1681. C compiler flags for PIPEWIRE, overriding pkg-config
  1682. PIPEWIRE_LIBS
  1683. linker flags for PIPEWIRE, overriding pkg-config
  1684. PULSEAUDIO_CFLAGS
  1685. C compiler flags for PULSEAUDIO, overriding pkg-config
  1686. PULSEAUDIO_LIBS
  1687. linker flags for PULSEAUDIO, overriding pkg-config
  1688. SNDIO_CFLAGS
  1689. C compiler flags for SNDIO, overriding pkg-config
  1690. SNDIO_LIBS linker flags for SNDIO, overriding pkg-config
  1691. FUSIONSOUND_CFLAGS
  1692. C compiler flags for FUSIONSOUND, overriding pkg-config
  1693. FUSIONSOUND_LIBS
  1694. linker flags for FUSIONSOUND, overriding pkg-config
  1695. DECOR_CFLAGS
  1696. C compiler flags for DECOR, overriding pkg-config
  1697. DECOR_LIBS linker flags for DECOR, overriding pkg-config
  1698. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1699. RPI_LIBS linker flags for RPI, overriding pkg-config
  1700. XMKMF Path to xmkmf, Makefile generator for X Window System
  1701. DIRECTFB_CFLAGS
  1702. C compiler flags for DIRECTFB, overriding pkg-config
  1703. DIRECTFB_LIBS
  1704. linker flags for DIRECTFB, overriding pkg-config
  1705. LIBDRM_CFLAGS
  1706. C compiler flags for LIBDRM, overriding pkg-config
  1707. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1708. LIBGBM_CFLAGS
  1709. C compiler flags for LIBGBM, overriding pkg-config
  1710. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1711. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1712. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1713. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1714. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1715. LIBUSB_CFLAGS
  1716. C compiler flags for LIBUSB, overriding pkg-config
  1717. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1718. Use these variables to override the choices made by `configure' or to help
  1719. it to find libraries and programs with nonstandard names/locations.
  1720. Report bugs to the package provider.
  1721. _ACEOF
  1722. ac_status=$?
  1723. fi
  1724. if test "$ac_init_help" = "recursive"; then
  1725. # If there are subdirs, report their specific --help.
  1726. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1727. test -d "$ac_dir" ||
  1728. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1729. continue
  1730. ac_builddir=.
  1731. case "$ac_dir" in
  1732. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1733. *)
  1734. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1735. # A ".." for each directory in $ac_dir_suffix.
  1736. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1737. case $ac_top_builddir_sub in
  1738. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1739. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1740. esac ;;
  1741. esac
  1742. ac_abs_top_builddir=$ac_pwd
  1743. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1744. # for backward compatibility:
  1745. ac_top_builddir=$ac_top_build_prefix
  1746. case $srcdir in
  1747. .) # We are building in place.
  1748. ac_srcdir=.
  1749. ac_top_srcdir=$ac_top_builddir_sub
  1750. ac_abs_top_srcdir=$ac_pwd ;;
  1751. [\\/]* | ?:[\\/]* ) # Absolute name.
  1752. ac_srcdir=$srcdir$ac_dir_suffix;
  1753. ac_top_srcdir=$srcdir
  1754. ac_abs_top_srcdir=$srcdir ;;
  1755. *) # Relative name.
  1756. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1757. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1758. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1759. esac
  1760. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1761. cd "$ac_dir" || { ac_status=$?; continue; }
  1762. # Check for configure.gnu first; this name is used for a wrapper for
  1763. # Metaconfig's "Configure" on case-insensitive file systems.
  1764. if test -f "$ac_srcdir/configure.gnu"; then
  1765. echo &&
  1766. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1767. elif test -f "$ac_srcdir/configure"; then
  1768. echo &&
  1769. $SHELL "$ac_srcdir/configure" --help=recursive
  1770. else
  1771. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1772. fi || ac_status=$?
  1773. cd "$ac_pwd" || { ac_status=$?; break; }
  1774. done
  1775. fi
  1776. test -n "$ac_init_help" && exit $ac_status
  1777. if $ac_init_version; then
  1778. cat <<\_ACEOF
  1779. configure
  1780. generated by GNU Autoconf 2.71
  1781. Copyright (C) 2021 Free Software Foundation, Inc.
  1782. This configure script is free software; the Free Software Foundation
  1783. gives unlimited permission to copy, distribute and modify it.
  1784. _ACEOF
  1785. exit
  1786. fi
  1787. ## ------------------------ ##
  1788. ## Autoconf initialization. ##
  1789. ## ------------------------ ##
  1790. # ac_fn_c_try_compile LINENO
  1791. # --------------------------
  1792. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1793. ac_fn_c_try_compile ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. rm -f conftest.$ac_objext conftest.beam
  1797. if { { ac_try="$ac_compile"
  1798. case "(($ac_try" in
  1799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1800. *) ac_try_echo=$ac_try;;
  1801. esac
  1802. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1803. printf "%s\n" "$ac_try_echo"; } >&5
  1804. (eval "$ac_compile") 2>conftest.err
  1805. ac_status=$?
  1806. if test -s conftest.err; then
  1807. grep -v '^ *+' conftest.err >conftest.er1
  1808. cat conftest.er1 >&5
  1809. mv -f conftest.er1 conftest.err
  1810. fi
  1811. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1812. test $ac_status = 0; } && {
  1813. test -z "$ac_c_werror_flag" ||
  1814. test ! -s conftest.err
  1815. } && test -s conftest.$ac_objext
  1816. then :
  1817. ac_retval=0
  1818. else $as_nop
  1819. printf "%s\n" "$as_me: failed program was:" >&5
  1820. sed 's/^/| /' conftest.$ac_ext >&5
  1821. ac_retval=1
  1822. fi
  1823. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1824. as_fn_set_status $ac_retval
  1825. } # ac_fn_c_try_compile
  1826. # ac_fn_c_try_link LINENO
  1827. # -----------------------
  1828. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1829. ac_fn_c_try_link ()
  1830. {
  1831. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1832. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  1833. if { { ac_try="$ac_link"
  1834. case "(($ac_try" in
  1835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1836. *) ac_try_echo=$ac_try;;
  1837. esac
  1838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1839. printf "%s\n" "$ac_try_echo"; } >&5
  1840. (eval "$ac_link") 2>conftest.err
  1841. ac_status=$?
  1842. if test -s conftest.err; then
  1843. grep -v '^ *+' conftest.err >conftest.er1
  1844. cat conftest.er1 >&5
  1845. mv -f conftest.er1 conftest.err
  1846. fi
  1847. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1848. test $ac_status = 0; } && {
  1849. test -z "$ac_c_werror_flag" ||
  1850. test ! -s conftest.err
  1851. } && test -s conftest$ac_exeext && {
  1852. test "$cross_compiling" = yes ||
  1853. test -x conftest$ac_exeext
  1854. }
  1855. then :
  1856. ac_retval=0
  1857. else $as_nop
  1858. printf "%s\n" "$as_me: failed program was:" >&5
  1859. sed 's/^/| /' conftest.$ac_ext >&5
  1860. ac_retval=1
  1861. fi
  1862. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1863. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1864. # interfere with the next link command; also delete a directory that is
  1865. # left behind by Apple's compiler. We do this before executing the actions.
  1866. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. as_fn_set_status $ac_retval
  1869. } # ac_fn_c_try_link
  1870. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1871. # -------------------------------------------------------
  1872. # Tests whether HEADER exists and can be compiled using the include files in
  1873. # INCLUDES, setting the cache variable VAR accordingly.
  1874. ac_fn_c_check_header_compile ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. printf %s "checking for $2... " >&6; }
  1879. if eval test \${$3+y}
  1880. then :
  1881. printf %s "(cached) " >&6
  1882. else $as_nop
  1883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1884. /* end confdefs.h. */
  1885. $4
  1886. #include <$2>
  1887. _ACEOF
  1888. if ac_fn_c_try_compile "$LINENO"
  1889. then :
  1890. eval "$3=yes"
  1891. else $as_nop
  1892. eval "$3=no"
  1893. fi
  1894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  1895. fi
  1896. eval ac_res=\$$3
  1897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. printf "%s\n" "$ac_res" >&6; }
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. } # ac_fn_c_check_header_compile
  1901. # ac_fn_c_check_func LINENO FUNC VAR
  1902. # ----------------------------------
  1903. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1904. ac_fn_c_check_func ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1908. printf %s "checking for $2... " >&6; }
  1909. if eval test \${$3+y}
  1910. then :
  1911. printf %s "(cached) " >&6
  1912. else $as_nop
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1917. #define $2 innocuous_$2
  1918. /* System header to define __stub macros and hopefully few prototypes,
  1919. which can conflict with char $2 (); below. */
  1920. #include <limits.h>
  1921. #undef $2
  1922. /* Override any GCC internal prototype to avoid an error.
  1923. Use char because int might match the return type of a GCC
  1924. builtin and then its argument prototype would still apply. */
  1925. #ifdef __cplusplus
  1926. extern "C"
  1927. #endif
  1928. char $2 ();
  1929. /* The GNU C library defines this for functions which it implements
  1930. to always fail with ENOSYS. Some functions are actually named
  1931. something starting with __ and the normal name is an alias. */
  1932. #if defined __stub_$2 || defined __stub___$2
  1933. choke me
  1934. #endif
  1935. int
  1936. main (void)
  1937. {
  1938. return $2 ();
  1939. ;
  1940. return 0;
  1941. }
  1942. _ACEOF
  1943. if ac_fn_c_try_link "$LINENO"
  1944. then :
  1945. eval "$3=yes"
  1946. else $as_nop
  1947. eval "$3=no"
  1948. fi
  1949. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  1950. conftest$ac_exeext conftest.$ac_ext
  1951. fi
  1952. eval ac_res=\$$3
  1953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1954. printf "%s\n" "$ac_res" >&6; }
  1955. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1956. } # ac_fn_c_check_func
  1957. # ac_fn_cxx_try_compile LINENO
  1958. # ----------------------------
  1959. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1960. ac_fn_cxx_try_compile ()
  1961. {
  1962. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1963. rm -f conftest.$ac_objext conftest.beam
  1964. if { { ac_try="$ac_compile"
  1965. case "(($ac_try" in
  1966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1967. *) ac_try_echo=$ac_try;;
  1968. esac
  1969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1970. printf "%s\n" "$ac_try_echo"; } >&5
  1971. (eval "$ac_compile") 2>conftest.err
  1972. ac_status=$?
  1973. if test -s conftest.err; then
  1974. grep -v '^ *+' conftest.err >conftest.er1
  1975. cat conftest.er1 >&5
  1976. mv -f conftest.er1 conftest.err
  1977. fi
  1978. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1979. test $ac_status = 0; } && {
  1980. test -z "$ac_cxx_werror_flag" ||
  1981. test ! -s conftest.err
  1982. } && test -s conftest.$ac_objext
  1983. then :
  1984. ac_retval=0
  1985. else $as_nop
  1986. printf "%s\n" "$as_me: failed program was:" >&5
  1987. sed 's/^/| /' conftest.$ac_ext >&5
  1988. ac_retval=1
  1989. fi
  1990. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1991. as_fn_set_status $ac_retval
  1992. } # ac_fn_cxx_try_compile
  1993. # ac_fn_cxx_try_cpp LINENO
  1994. # ------------------------
  1995. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1996. ac_fn_cxx_try_cpp ()
  1997. {
  1998. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1999. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2000. case "(($ac_try" in
  2001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2002. *) ac_try_echo=$ac_try;;
  2003. esac
  2004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2005. printf "%s\n" "$ac_try_echo"; } >&5
  2006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2007. ac_status=$?
  2008. if test -s conftest.err; then
  2009. grep -v '^ *+' conftest.err >conftest.er1
  2010. cat conftest.er1 >&5
  2011. mv -f conftest.er1 conftest.err
  2012. fi
  2013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2014. test $ac_status = 0; } > conftest.i && {
  2015. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2016. test ! -s conftest.err
  2017. }
  2018. then :
  2019. ac_retval=0
  2020. else $as_nop
  2021. printf "%s\n" "$as_me: failed program was:" >&5
  2022. sed 's/^/| /' conftest.$ac_ext >&5
  2023. ac_retval=1
  2024. fi
  2025. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2026. as_fn_set_status $ac_retval
  2027. } # ac_fn_cxx_try_cpp
  2028. # ac_fn_cxx_try_link LINENO
  2029. # -------------------------
  2030. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2031. ac_fn_cxx_try_link ()
  2032. {
  2033. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2034. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2035. if { { ac_try="$ac_link"
  2036. case "(($ac_try" in
  2037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2038. *) ac_try_echo=$ac_try;;
  2039. esac
  2040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2041. printf "%s\n" "$ac_try_echo"; } >&5
  2042. (eval "$ac_link") 2>conftest.err
  2043. ac_status=$?
  2044. if test -s conftest.err; then
  2045. grep -v '^ *+' conftest.err >conftest.er1
  2046. cat conftest.er1 >&5
  2047. mv -f conftest.er1 conftest.err
  2048. fi
  2049. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2050. test $ac_status = 0; } && {
  2051. test -z "$ac_cxx_werror_flag" ||
  2052. test ! -s conftest.err
  2053. } && test -s conftest$ac_exeext && {
  2054. test "$cross_compiling" = yes ||
  2055. test -x conftest$ac_exeext
  2056. }
  2057. then :
  2058. ac_retval=0
  2059. else $as_nop
  2060. printf "%s\n" "$as_me: failed program was:" >&5
  2061. sed 's/^/| /' conftest.$ac_ext >&5
  2062. ac_retval=1
  2063. fi
  2064. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2065. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2066. # interfere with the next link command; also delete a directory that is
  2067. # left behind by Apple's compiler. We do this before executing the actions.
  2068. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2069. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2070. as_fn_set_status $ac_retval
  2071. } # ac_fn_cxx_try_link
  2072. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2073. # -------------------------------------------
  2074. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2075. # variable VAR accordingly.
  2076. ac_fn_c_check_type ()
  2077. {
  2078. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2080. printf %s "checking for $2... " >&6; }
  2081. if eval test \${$3+y}
  2082. then :
  2083. printf %s "(cached) " >&6
  2084. else $as_nop
  2085. eval "$3=no"
  2086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2087. /* end confdefs.h. */
  2088. $4
  2089. int
  2090. main (void)
  2091. {
  2092. if (sizeof ($2))
  2093. return 0;
  2094. ;
  2095. return 0;
  2096. }
  2097. _ACEOF
  2098. if ac_fn_c_try_compile "$LINENO"
  2099. then :
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main (void)
  2105. {
  2106. if (sizeof (($2)))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_c_try_compile "$LINENO"
  2113. then :
  2114. else $as_nop
  2115. eval "$3=yes"
  2116. fi
  2117. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2118. fi
  2119. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2120. fi
  2121. eval ac_res=\$$3
  2122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2123. printf "%s\n" "$ac_res" >&6; }
  2124. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2125. } # ac_fn_c_check_type
  2126. # ac_fn_c_try_cpp LINENO
  2127. # ----------------------
  2128. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2129. ac_fn_c_try_cpp ()
  2130. {
  2131. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2132. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2133. case "(($ac_try" in
  2134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2135. *) ac_try_echo=$ac_try;;
  2136. esac
  2137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2138. printf "%s\n" "$ac_try_echo"; } >&5
  2139. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2140. ac_status=$?
  2141. if test -s conftest.err; then
  2142. grep -v '^ *+' conftest.err >conftest.er1
  2143. cat conftest.er1 >&5
  2144. mv -f conftest.er1 conftest.err
  2145. fi
  2146. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2147. test $ac_status = 0; } > conftest.i && {
  2148. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2149. test ! -s conftest.err
  2150. }
  2151. then :
  2152. ac_retval=0
  2153. else $as_nop
  2154. printf "%s\n" "$as_me: failed program was:" >&5
  2155. sed 's/^/| /' conftest.$ac_ext >&5
  2156. ac_retval=1
  2157. fi
  2158. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2159. as_fn_set_status $ac_retval
  2160. } # ac_fn_c_try_cpp
  2161. # ac_fn_c_try_run LINENO
  2162. # ----------------------
  2163. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2164. # executables *can* be run.
  2165. ac_fn_c_try_run ()
  2166. {
  2167. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2168. if { { ac_try="$ac_link"
  2169. case "(($ac_try" in
  2170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2171. *) ac_try_echo=$ac_try;;
  2172. esac
  2173. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2174. printf "%s\n" "$ac_try_echo"; } >&5
  2175. (eval "$ac_link") 2>&5
  2176. ac_status=$?
  2177. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2178. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2179. { { case "(($ac_try" in
  2180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2181. *) ac_try_echo=$ac_try;;
  2182. esac
  2183. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2184. printf "%s\n" "$ac_try_echo"; } >&5
  2185. (eval "$ac_try") 2>&5
  2186. ac_status=$?
  2187. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2188. test $ac_status = 0; }; }
  2189. then :
  2190. ac_retval=0
  2191. else $as_nop
  2192. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2193. printf "%s\n" "$as_me: failed program was:" >&5
  2194. sed 's/^/| /' conftest.$ac_ext >&5
  2195. ac_retval=$ac_status
  2196. fi
  2197. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2198. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2199. as_fn_set_status $ac_retval
  2200. } # ac_fn_c_try_run
  2201. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2202. # ----------------------------------------------------
  2203. # Tries to find if the field MEMBER exists in type AGGR, after including
  2204. # INCLUDES, setting cache variable VAR accordingly.
  2205. ac_fn_c_check_member ()
  2206. {
  2207. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2209. printf %s "checking for $2.$3... " >&6; }
  2210. if eval test \${$4+y}
  2211. then :
  2212. printf %s "(cached) " >&6
  2213. else $as_nop
  2214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2215. /* end confdefs.h. */
  2216. $5
  2217. int
  2218. main (void)
  2219. {
  2220. static $2 ac_aggr;
  2221. if (ac_aggr.$3)
  2222. return 0;
  2223. ;
  2224. return 0;
  2225. }
  2226. _ACEOF
  2227. if ac_fn_c_try_compile "$LINENO"
  2228. then :
  2229. eval "$4=yes"
  2230. else $as_nop
  2231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2232. /* end confdefs.h. */
  2233. $5
  2234. int
  2235. main (void)
  2236. {
  2237. static $2 ac_aggr;
  2238. if (sizeof ac_aggr.$3)
  2239. return 0;
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. if ac_fn_c_try_compile "$LINENO"
  2245. then :
  2246. eval "$4=yes"
  2247. else $as_nop
  2248. eval "$4=no"
  2249. fi
  2250. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2251. fi
  2252. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2253. fi
  2254. eval ac_res=\$$4
  2255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2256. printf "%s\n" "$ac_res" >&6; }
  2257. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2258. } # ac_fn_c_check_member
  2259. ac_configure_args_raw=
  2260. for ac_arg
  2261. do
  2262. case $ac_arg in
  2263. *\'*)
  2264. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2265. esac
  2266. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2267. done
  2268. case $ac_configure_args_raw in
  2269. *$as_nl*)
  2270. ac_safe_unquote= ;;
  2271. *)
  2272. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2273. ac_unsafe_a="$ac_unsafe_z#~"
  2274. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2275. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2276. esac
  2277. cat >config.log <<_ACEOF
  2278. This file contains any messages produced by compilers while
  2279. running configure, to aid debugging if configure makes a mistake.
  2280. It was created by $as_me, which was
  2281. generated by GNU Autoconf 2.71. Invocation command line was
  2282. $ $0$ac_configure_args_raw
  2283. _ACEOF
  2284. exec 5>>config.log
  2285. {
  2286. cat <<_ASUNAME
  2287. ## --------- ##
  2288. ## Platform. ##
  2289. ## --------- ##
  2290. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2291. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2292. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2293. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2294. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2295. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2296. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2297. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2298. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2299. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2300. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2301. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2302. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2303. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2304. _ASUNAME
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH
  2307. do
  2308. IFS=$as_save_IFS
  2309. case $as_dir in #(((
  2310. '') as_dir=./ ;;
  2311. */) ;;
  2312. *) as_dir=$as_dir/ ;;
  2313. esac
  2314. printf "%s\n" "PATH: $as_dir"
  2315. done
  2316. IFS=$as_save_IFS
  2317. } >&5
  2318. cat >&5 <<_ACEOF
  2319. ## ----------- ##
  2320. ## Core tests. ##
  2321. ## ----------- ##
  2322. _ACEOF
  2323. # Keep a trace of the command line.
  2324. # Strip out --no-create and --no-recursion so they do not pile up.
  2325. # Strip out --silent because we don't want to record it for future runs.
  2326. # Also quote any args containing shell meta-characters.
  2327. # Make two passes to allow for proper duplicate-argument suppression.
  2328. ac_configure_args=
  2329. ac_configure_args0=
  2330. ac_configure_args1=
  2331. ac_must_keep_next=false
  2332. for ac_pass in 1 2
  2333. do
  2334. for ac_arg
  2335. do
  2336. case $ac_arg in
  2337. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2338. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2339. | -silent | --silent | --silen | --sile | --sil)
  2340. continue ;;
  2341. *\'*)
  2342. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2343. esac
  2344. case $ac_pass in
  2345. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2346. 2)
  2347. as_fn_append ac_configure_args1 " '$ac_arg'"
  2348. if test $ac_must_keep_next = true; then
  2349. ac_must_keep_next=false # Got value, back to normal.
  2350. else
  2351. case $ac_arg in
  2352. *=* | --config-cache | -C | -disable-* | --disable-* \
  2353. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2354. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2355. | -with-* | --with-* | -without-* | --without-* | --x)
  2356. case "$ac_configure_args0 " in
  2357. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2358. esac
  2359. ;;
  2360. -* ) ac_must_keep_next=true ;;
  2361. esac
  2362. fi
  2363. as_fn_append ac_configure_args " '$ac_arg'"
  2364. ;;
  2365. esac
  2366. done
  2367. done
  2368. { ac_configure_args0=; unset ac_configure_args0;}
  2369. { ac_configure_args1=; unset ac_configure_args1;}
  2370. # When interrupted or exit'd, cleanup temporary files, and complete
  2371. # config.log. We remove comments because anyway the quotes in there
  2372. # would cause problems or look ugly.
  2373. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2374. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2375. trap 'exit_status=$?
  2376. # Sanitize IFS.
  2377. IFS=" "" $as_nl"
  2378. # Save into config.log some information that might help in debugging.
  2379. {
  2380. echo
  2381. printf "%s\n" "## ---------------- ##
  2382. ## Cache variables. ##
  2383. ## ---------------- ##"
  2384. echo
  2385. # The following way of writing the cache mishandles newlines in values,
  2386. (
  2387. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2388. eval ac_val=\$$ac_var
  2389. case $ac_val in #(
  2390. *${as_nl}*)
  2391. case $ac_var in #(
  2392. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2393. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2394. esac
  2395. case $ac_var in #(
  2396. _ | IFS | as_nl) ;; #(
  2397. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2398. *) { eval $ac_var=; unset $ac_var;} ;;
  2399. esac ;;
  2400. esac
  2401. done
  2402. (set) 2>&1 |
  2403. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2404. *${as_nl}ac_space=\ *)
  2405. sed -n \
  2406. "s/'\''/'\''\\\\'\'''\''/g;
  2407. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2408. ;; #(
  2409. *)
  2410. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2411. ;;
  2412. esac |
  2413. sort
  2414. )
  2415. echo
  2416. printf "%s\n" "## ----------------- ##
  2417. ## Output variables. ##
  2418. ## ----------------- ##"
  2419. echo
  2420. for ac_var in $ac_subst_vars
  2421. do
  2422. eval ac_val=\$$ac_var
  2423. case $ac_val in
  2424. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2425. esac
  2426. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2427. done | sort
  2428. echo
  2429. if test -n "$ac_subst_files"; then
  2430. printf "%s\n" "## ------------------- ##
  2431. ## File substitutions. ##
  2432. ## ------------------- ##"
  2433. echo
  2434. for ac_var in $ac_subst_files
  2435. do
  2436. eval ac_val=\$$ac_var
  2437. case $ac_val in
  2438. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2439. esac
  2440. printf "%s\n" "$ac_var='\''$ac_val'\''"
  2441. done | sort
  2442. echo
  2443. fi
  2444. if test -s confdefs.h; then
  2445. printf "%s\n" "## ----------- ##
  2446. ## confdefs.h. ##
  2447. ## ----------- ##"
  2448. echo
  2449. cat confdefs.h
  2450. echo
  2451. fi
  2452. test "$ac_signal" != 0 &&
  2453. printf "%s\n" "$as_me: caught signal $ac_signal"
  2454. printf "%s\n" "$as_me: exit $exit_status"
  2455. } >&5
  2456. rm -f core *.core core.conftest.* &&
  2457. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2458. exit $exit_status
  2459. ' 0
  2460. for ac_signal in 1 2 13 15; do
  2461. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2462. done
  2463. ac_signal=0
  2464. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2465. rm -f -r conftest* confdefs.h
  2466. printf "%s\n" "/* confdefs.h */" > confdefs.h
  2467. # Predefined preprocessor variables.
  2468. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  2469. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  2470. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  2471. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  2472. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  2473. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  2474. # Let the site file select an alternate cache file if it wants to.
  2475. # Prefer an explicitly selected file to automatically selected ones.
  2476. if test -n "$CONFIG_SITE"; then
  2477. ac_site_files="$CONFIG_SITE"
  2478. elif test "x$prefix" != xNONE; then
  2479. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  2480. else
  2481. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  2482. fi
  2483. for ac_site_file in $ac_site_files
  2484. do
  2485. case $ac_site_file in #(
  2486. */*) :
  2487. ;; #(
  2488. *) :
  2489. ac_site_file=./$ac_site_file ;;
  2490. esac
  2491. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  2492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2493. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  2494. sed 's/^/| /' "$ac_site_file" >&5
  2495. . "$ac_site_file" \
  2496. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2497. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2498. as_fn_error $? "failed to load site script $ac_site_file
  2499. See \`config.log' for more details" "$LINENO" 5; }
  2500. fi
  2501. done
  2502. if test -r "$cache_file"; then
  2503. # Some versions of bash will fail to source /dev/null (special files
  2504. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2505. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2507. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  2508. case $cache_file in
  2509. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2510. *) . "./$cache_file";;
  2511. esac
  2512. fi
  2513. else
  2514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2515. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  2516. >$cache_file
  2517. fi
  2518. # Test code for whether the C compiler supports C89 (global declarations)
  2519. ac_c_conftest_c89_globals='
  2520. /* Does the compiler advertise C89 conformance?
  2521. Do not test the value of __STDC__, because some compilers set it to 0
  2522. while being otherwise adequately conformant. */
  2523. #if !defined __STDC__
  2524. # error "Compiler does not advertise C89 conformance"
  2525. #endif
  2526. #include <stddef.h>
  2527. #include <stdarg.h>
  2528. struct stat;
  2529. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  2530. struct buf { int x; };
  2531. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  2532. static char *e (p, i)
  2533. char **p;
  2534. int i;
  2535. {
  2536. return p[i];
  2537. }
  2538. static char *f (char * (*g) (char **, int), char **p, ...)
  2539. {
  2540. char *s;
  2541. va_list v;
  2542. va_start (v,p);
  2543. s = g (p, va_arg (v,int));
  2544. va_end (v);
  2545. return s;
  2546. }
  2547. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2548. function prototypes and stuff, but not \xHH hex character constants.
  2549. These do not provoke an error unfortunately, instead are silently treated
  2550. as an "x". The following induces an error, until -std is added to get
  2551. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  2552. array size at least. It is necessary to write \x00 == 0 to get something
  2553. that is true only with -std. */
  2554. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  2555. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2556. inside strings and character constants. */
  2557. #define FOO(x) '\''x'\''
  2558. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  2559. int test (int i, double x);
  2560. struct s1 {int (*f) (int a);};
  2561. struct s2 {int (*f) (double a);};
  2562. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  2563. int, int);'
  2564. # Test code for whether the C compiler supports C89 (body of main).
  2565. ac_c_conftest_c89_main='
  2566. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  2567. '
  2568. # Test code for whether the C compiler supports C99 (global declarations)
  2569. ac_c_conftest_c99_globals='
  2570. // Does the compiler advertise C99 conformance?
  2571. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  2572. # error "Compiler does not advertise C99 conformance"
  2573. #endif
  2574. #include <stdbool.h>
  2575. extern int puts (const char *);
  2576. extern int printf (const char *, ...);
  2577. extern int dprintf (int, const char *, ...);
  2578. extern void *malloc (size_t);
  2579. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  2580. // dprintf is used instead of fprintf to avoid needing to declare
  2581. // FILE and stderr.
  2582. #define debug(...) dprintf (2, __VA_ARGS__)
  2583. #define showlist(...) puts (#__VA_ARGS__)
  2584. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  2585. static void
  2586. test_varargs_macros (void)
  2587. {
  2588. int x = 1234;
  2589. int y = 5678;
  2590. debug ("Flag");
  2591. debug ("X = %d\n", x);
  2592. showlist (The first, second, and third items.);
  2593. report (x>y, "x is %d but y is %d", x, y);
  2594. }
  2595. // Check long long types.
  2596. #define BIG64 18446744073709551615ull
  2597. #define BIG32 4294967295ul
  2598. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  2599. #if !BIG_OK
  2600. #error "your preprocessor is broken"
  2601. #endif
  2602. #if BIG_OK
  2603. #else
  2604. #error "your preprocessor is broken"
  2605. #endif
  2606. static long long int bignum = -9223372036854775807LL;
  2607. static unsigned long long int ubignum = BIG64;
  2608. struct incomplete_array
  2609. {
  2610. int datasize;
  2611. double data[];
  2612. };
  2613. struct named_init {
  2614. int number;
  2615. const wchar_t *name;
  2616. double average;
  2617. };
  2618. typedef const char *ccp;
  2619. static inline int
  2620. test_restrict (ccp restrict text)
  2621. {
  2622. // See if C++-style comments work.
  2623. // Iterate through items via the restricted pointer.
  2624. // Also check for declarations in for loops.
  2625. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  2626. continue;
  2627. return 0;
  2628. }
  2629. // Check varargs and va_copy.
  2630. static bool
  2631. test_varargs (const char *format, ...)
  2632. {
  2633. va_list args;
  2634. va_start (args, format);
  2635. va_list args_copy;
  2636. va_copy (args_copy, args);
  2637. const char *str = "";
  2638. int number = 0;
  2639. float fnumber = 0;
  2640. while (*format)
  2641. {
  2642. switch (*format++)
  2643. {
  2644. case '\''s'\'': // string
  2645. str = va_arg (args_copy, const char *);
  2646. break;
  2647. case '\''d'\'': // int
  2648. number = va_arg (args_copy, int);
  2649. break;
  2650. case '\''f'\'': // float
  2651. fnumber = va_arg (args_copy, double);
  2652. break;
  2653. default:
  2654. break;
  2655. }
  2656. }
  2657. va_end (args_copy);
  2658. va_end (args);
  2659. return *str && number && fnumber;
  2660. }
  2661. '
  2662. # Test code for whether the C compiler supports C99 (body of main).
  2663. ac_c_conftest_c99_main='
  2664. // Check bool.
  2665. _Bool success = false;
  2666. success |= (argc != 0);
  2667. // Check restrict.
  2668. if (test_restrict ("String literal") == 0)
  2669. success = true;
  2670. char *restrict newvar = "Another string";
  2671. // Check varargs.
  2672. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  2673. test_varargs_macros ();
  2674. // Check flexible array members.
  2675. struct incomplete_array *ia =
  2676. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  2677. ia->datasize = 10;
  2678. for (int i = 0; i < ia->datasize; ++i)
  2679. ia->data[i] = i * 1.234;
  2680. // Check named initializers.
  2681. struct named_init ni = {
  2682. .number = 34,
  2683. .name = L"Test wide string",
  2684. .average = 543.34343,
  2685. };
  2686. ni.number = 58;
  2687. int dynamic_array[ni.number];
  2688. dynamic_array[0] = argv[0][0];
  2689. dynamic_array[ni.number - 1] = 543;
  2690. // work around unused variable warnings
  2691. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  2692. || dynamic_array[ni.number - 1] != 543);
  2693. '
  2694. # Test code for whether the C compiler supports C11 (global declarations)
  2695. ac_c_conftest_c11_globals='
  2696. // Does the compiler advertise C11 conformance?
  2697. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  2698. # error "Compiler does not advertise C11 conformance"
  2699. #endif
  2700. // Check _Alignas.
  2701. char _Alignas (double) aligned_as_double;
  2702. char _Alignas (0) no_special_alignment;
  2703. extern char aligned_as_int;
  2704. char _Alignas (0) _Alignas (int) aligned_as_int;
  2705. // Check _Alignof.
  2706. enum
  2707. {
  2708. int_alignment = _Alignof (int),
  2709. int_array_alignment = _Alignof (int[100]),
  2710. char_alignment = _Alignof (char)
  2711. };
  2712. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  2713. // Check _Noreturn.
  2714. int _Noreturn does_not_return (void) { for (;;) continue; }
  2715. // Check _Static_assert.
  2716. struct test_static_assert
  2717. {
  2718. int x;
  2719. _Static_assert (sizeof (int) <= sizeof (long int),
  2720. "_Static_assert does not work in struct");
  2721. long int y;
  2722. };
  2723. // Check UTF-8 literals.
  2724. #define u8 syntax error!
  2725. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  2726. // Check duplicate typedefs.
  2727. typedef long *long_ptr;
  2728. typedef long int *long_ptr;
  2729. typedef long_ptr long_ptr;
  2730. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  2731. struct anonymous
  2732. {
  2733. union {
  2734. struct { int i; int j; };
  2735. struct { int k; long int l; } w;
  2736. };
  2737. int m;
  2738. } v1;
  2739. '
  2740. # Test code for whether the C compiler supports C11 (body of main).
  2741. ac_c_conftest_c11_main='
  2742. _Static_assert ((offsetof (struct anonymous, i)
  2743. == offsetof (struct anonymous, w.k)),
  2744. "Anonymous union alignment botch");
  2745. v1.i = 2;
  2746. v1.w.k = 5;
  2747. ok |= v1.i != 5;
  2748. '
  2749. # Test code for whether the C compiler supports C11 (complete).
  2750. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  2751. ${ac_c_conftest_c99_globals}
  2752. ${ac_c_conftest_c11_globals}
  2753. int
  2754. main (int argc, char **argv)
  2755. {
  2756. int ok = 0;
  2757. ${ac_c_conftest_c89_main}
  2758. ${ac_c_conftest_c99_main}
  2759. ${ac_c_conftest_c11_main}
  2760. return ok;
  2761. }
  2762. "
  2763. # Test code for whether the C compiler supports C99 (complete).
  2764. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  2765. ${ac_c_conftest_c99_globals}
  2766. int
  2767. main (int argc, char **argv)
  2768. {
  2769. int ok = 0;
  2770. ${ac_c_conftest_c89_main}
  2771. ${ac_c_conftest_c99_main}
  2772. return ok;
  2773. }
  2774. "
  2775. # Test code for whether the C compiler supports C89 (complete).
  2776. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  2777. int
  2778. main (int argc, char **argv)
  2779. {
  2780. int ok = 0;
  2781. ${ac_c_conftest_c89_main}
  2782. return ok;
  2783. }
  2784. "
  2785. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  2786. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  2787. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  2788. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  2789. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  2790. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  2791. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  2792. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  2793. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  2794. # Test code for whether the C++ compiler supports C++98 (global declarations)
  2795. ac_cxx_conftest_cxx98_globals='
  2796. // Does the compiler advertise C++98 conformance?
  2797. #if !defined __cplusplus || __cplusplus < 199711L
  2798. # error "Compiler does not advertise C++98 conformance"
  2799. #endif
  2800. // These inclusions are to reject old compilers that
  2801. // lack the unsuffixed header files.
  2802. #include <cstdlib>
  2803. #include <exception>
  2804. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  2805. extern void assert (int);
  2806. namespace std {
  2807. extern int strcmp (const char *, const char *);
  2808. }
  2809. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  2810. using std::exception;
  2811. using std::strcmp;
  2812. namespace {
  2813. void test_exception_syntax()
  2814. {
  2815. try {
  2816. throw "test";
  2817. } catch (const char *s) {
  2818. // Extra parentheses suppress a warning when building autoconf itself,
  2819. // due to lint rules shared with more typical C programs.
  2820. assert (!(strcmp) (s, "test"));
  2821. }
  2822. }
  2823. template <typename T> struct test_template
  2824. {
  2825. T const val;
  2826. explicit test_template(T t) : val(t) {}
  2827. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  2828. };
  2829. } // anonymous namespace
  2830. '
  2831. # Test code for whether the C++ compiler supports C++98 (body of main)
  2832. ac_cxx_conftest_cxx98_main='
  2833. assert (argc);
  2834. assert (! argv[0]);
  2835. {
  2836. test_exception_syntax ();
  2837. test_template<double> tt (2.0);
  2838. assert (tt.add (4) == 6.0);
  2839. assert (true && !false);
  2840. }
  2841. '
  2842. # Test code for whether the C++ compiler supports C++11 (global declarations)
  2843. ac_cxx_conftest_cxx11_globals='
  2844. // Does the compiler advertise C++ 2011 conformance?
  2845. #if !defined __cplusplus || __cplusplus < 201103L
  2846. # error "Compiler does not advertise C++11 conformance"
  2847. #endif
  2848. namespace cxx11test
  2849. {
  2850. constexpr int get_val() { return 20; }
  2851. struct testinit
  2852. {
  2853. int i;
  2854. double d;
  2855. };
  2856. class delegate
  2857. {
  2858. public:
  2859. delegate(int n) : n(n) {}
  2860. delegate(): delegate(2354) {}
  2861. virtual int getval() { return this->n; };
  2862. protected:
  2863. int n;
  2864. };
  2865. class overridden : public delegate
  2866. {
  2867. public:
  2868. overridden(int n): delegate(n) {}
  2869. virtual int getval() override final { return this->n * 2; }
  2870. };
  2871. class nocopy
  2872. {
  2873. public:
  2874. nocopy(int i): i(i) {}
  2875. nocopy() = default;
  2876. nocopy(const nocopy&) = delete;
  2877. nocopy & operator=(const nocopy&) = delete;
  2878. private:
  2879. int i;
  2880. };
  2881. // for testing lambda expressions
  2882. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  2883. {
  2884. return f(v);
  2885. }
  2886. // for testing variadic templates and trailing return types
  2887. template <typename V> auto sum(V first) -> V
  2888. {
  2889. return first;
  2890. }
  2891. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  2892. {
  2893. return first + sum(rest...);
  2894. }
  2895. }
  2896. '
  2897. # Test code for whether the C++ compiler supports C++11 (body of main)
  2898. ac_cxx_conftest_cxx11_main='
  2899. {
  2900. // Test auto and decltype
  2901. auto a1 = 6538;
  2902. auto a2 = 48573953.4;
  2903. auto a3 = "String literal";
  2904. int total = 0;
  2905. for (auto i = a3; *i; ++i) { total += *i; }
  2906. decltype(a2) a4 = 34895.034;
  2907. }
  2908. {
  2909. // Test constexpr
  2910. short sa[cxx11test::get_val()] = { 0 };
  2911. }
  2912. {
  2913. // Test initializer lists
  2914. cxx11test::testinit il = { 4323, 435234.23544 };
  2915. }
  2916. {
  2917. // Test range-based for
  2918. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  2919. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  2920. for (auto &x : array) { x += 23; }
  2921. }
  2922. {
  2923. // Test lambda expressions
  2924. using cxx11test::eval;
  2925. assert (eval ([](int x) { return x*2; }, 21) == 42);
  2926. double d = 2.0;
  2927. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  2928. assert (d == 5.0);
  2929. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  2930. assert (d == 5.0);
  2931. }
  2932. {
  2933. // Test use of variadic templates
  2934. using cxx11test::sum;
  2935. auto a = sum(1);
  2936. auto b = sum(1, 2);
  2937. auto c = sum(1.0, 2.0, 3.0);
  2938. }
  2939. {
  2940. // Test constructor delegation
  2941. cxx11test::delegate d1;
  2942. cxx11test::delegate d2();
  2943. cxx11test::delegate d3(45);
  2944. }
  2945. {
  2946. // Test override and final
  2947. cxx11test::overridden o1(55464);
  2948. }
  2949. {
  2950. // Test nullptr
  2951. char *c = nullptr;
  2952. }
  2953. {
  2954. // Test template brackets
  2955. test_template<::test_template<int>> v(test_template<int>(12));
  2956. }
  2957. {
  2958. // Unicode literals
  2959. char const *utf8 = u8"UTF-8 string \u2500";
  2960. char16_t const *utf16 = u"UTF-8 string \u2500";
  2961. char32_t const *utf32 = U"UTF-32 string \u2500";
  2962. }
  2963. '
  2964. # Test code for whether the C compiler supports C++11 (complete).
  2965. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  2966. ${ac_cxx_conftest_cxx11_globals}
  2967. int
  2968. main (int argc, char **argv)
  2969. {
  2970. int ok = 0;
  2971. ${ac_cxx_conftest_cxx98_main}
  2972. ${ac_cxx_conftest_cxx11_main}
  2973. return ok;
  2974. }
  2975. "
  2976. # Test code for whether the C compiler supports C++98 (complete).
  2977. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  2978. int
  2979. main (int argc, char **argv)
  2980. {
  2981. int ok = 0;
  2982. ${ac_cxx_conftest_cxx98_main}
  2983. return ok;
  2984. }
  2985. "
  2986. # Auxiliary files required by this configure script.
  2987. ac_aux_files="install-sh config.guess config.sub ltmain.sh"
  2988. # Locations in which to look for auxiliary files.
  2989. ac_aux_dir_candidates="${srcdir}/build-scripts"
  2990. # Search for a directory containing all of the required auxiliary files,
  2991. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  2992. # If we don't find one directory that contains all the files we need,
  2993. # we report the set of missing files from the *first* directory in
  2994. # $ac_aux_dir_candidates and give up.
  2995. ac_missing_aux_files=""
  2996. ac_first_candidate=:
  2997. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  2998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2999. as_found=false
  3000. for as_dir in $ac_aux_dir_candidates
  3001. do
  3002. IFS=$as_save_IFS
  3003. case $as_dir in #(((
  3004. '') as_dir=./ ;;
  3005. */) ;;
  3006. *) as_dir=$as_dir/ ;;
  3007. esac
  3008. as_found=:
  3009. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3010. ac_aux_dir_found=yes
  3011. ac_install_sh=
  3012. for ac_aux in $ac_aux_files
  3013. do
  3014. # As a special case, if "install-sh" is required, that requirement
  3015. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3016. # and $ac_install_sh is set appropriately for whichever one is found.
  3017. if test x"$ac_aux" = x"install-sh"
  3018. then
  3019. if test -f "${as_dir}install-sh"; then
  3020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3021. ac_install_sh="${as_dir}install-sh -c"
  3022. elif test -f "${as_dir}install.sh"; then
  3023. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3024. ac_install_sh="${as_dir}install.sh -c"
  3025. elif test -f "${as_dir}shtool"; then
  3026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3027. ac_install_sh="${as_dir}shtool install -c"
  3028. else
  3029. ac_aux_dir_found=no
  3030. if $ac_first_candidate; then
  3031. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3032. else
  3033. break
  3034. fi
  3035. fi
  3036. else
  3037. if test -f "${as_dir}${ac_aux}"; then
  3038. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3039. else
  3040. ac_aux_dir_found=no
  3041. if $ac_first_candidate; then
  3042. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3043. else
  3044. break
  3045. fi
  3046. fi
  3047. fi
  3048. done
  3049. if test "$ac_aux_dir_found" = yes; then
  3050. ac_aux_dir="$as_dir"
  3051. break
  3052. fi
  3053. ac_first_candidate=false
  3054. as_found=false
  3055. done
  3056. IFS=$as_save_IFS
  3057. if $as_found
  3058. then :
  3059. else $as_nop
  3060. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3061. fi
  3062. # These three variables are undocumented and unsupported,
  3063. # and are intended to be withdrawn in a future Autoconf release.
  3064. # They can cause serious problems if a builder's source tree is in a directory
  3065. # whose full name contains unusual characters.
  3066. if test -f "${ac_aux_dir}config.guess"; then
  3067. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3068. fi
  3069. if test -f "${ac_aux_dir}config.sub"; then
  3070. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3071. fi
  3072. if test -f "$ac_aux_dir/configure"; then
  3073. ac_configure="$SHELL ${ac_aux_dir}configure"
  3074. fi
  3075. # Check that the precious variables saved in the cache have kept the same
  3076. # value.
  3077. ac_cache_corrupted=false
  3078. for ac_var in $ac_precious_vars; do
  3079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3080. eval ac_new_set=\$ac_env_${ac_var}_set
  3081. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3082. eval ac_new_val=\$ac_env_${ac_var}_value
  3083. case $ac_old_set,$ac_new_set in
  3084. set,)
  3085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3086. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3087. ac_cache_corrupted=: ;;
  3088. ,set)
  3089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3090. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3091. ac_cache_corrupted=: ;;
  3092. ,);;
  3093. *)
  3094. if test "x$ac_old_val" != "x$ac_new_val"; then
  3095. # differences in whitespace do not lead to failure.
  3096. ac_old_val_w=`echo x $ac_old_val`
  3097. ac_new_val_w=`echo x $ac_new_val`
  3098. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3100. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3101. ac_cache_corrupted=:
  3102. else
  3103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3104. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3105. eval $ac_var=\$ac_old_val
  3106. fi
  3107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3108. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3110. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3111. fi;;
  3112. esac
  3113. # Pass precious variables to config.status.
  3114. if test "$ac_new_set" = set; then
  3115. case $ac_new_val in
  3116. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3117. *) ac_arg=$ac_var=$ac_new_val ;;
  3118. esac
  3119. case " $ac_configure_args " in
  3120. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3121. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3122. esac
  3123. fi
  3124. done
  3125. if $ac_cache_corrupted; then
  3126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3127. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3129. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3130. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3131. and start over" "$LINENO" 5
  3132. fi
  3133. ## -------------------- ##
  3134. ## Main body of script. ##
  3135. ## -------------------- ##
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. ac_config_headers="$ac_config_headers include/SDL_config.h"
  3142. orig_CFLAGS="$CFLAGS"
  3143. # See docs/release_checklist.md
  3144. SDL_MAJOR_VERSION=2
  3145. SDL_MINOR_VERSION=25
  3146. SDL_MICRO_VERSION=0
  3147. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  3148. SDL_BINARY_AGE=`expr $SDL_MINOR_VERSION \* 100 + $SDL_MICRO_VERSION`
  3149. case "$SDL_MINOR_VERSION" in #(
  3150. *[02468]) :
  3151. SDL_INTERFACE_AGE="$SDL_MICRO_VERSION" ;; #(
  3152. *) :
  3153. SDL_INTERFACE_AGE=0 ;; #(
  3154. *) :
  3155. ;;
  3156. esac
  3157. # libtool versioning
  3158. case `pwd` in
  3159. *\ * | *\ *)
  3160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3161. printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3162. esac
  3163. macro_version='2.4.6'
  3164. macro_revision='2.4.6'
  3165. ltmain=$ac_aux_dir/ltmain.sh
  3166. # Make sure we can run config.sub.
  3167. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3168. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3169. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3170. printf %s "checking build system type... " >&6; }
  3171. if test ${ac_cv_build+y}
  3172. then :
  3173. printf %s "(cached) " >&6
  3174. else $as_nop
  3175. ac_build_alias=$build_alias
  3176. test "x$ac_build_alias" = x &&
  3177. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3178. test "x$ac_build_alias" = x &&
  3179. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3180. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3181. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3182. fi
  3183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3184. printf "%s\n" "$ac_cv_build" >&6; }
  3185. case $ac_cv_build in
  3186. *-*-*) ;;
  3187. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3188. esac
  3189. build=$ac_cv_build
  3190. ac_save_IFS=$IFS; IFS='-'
  3191. set x $ac_cv_build
  3192. shift
  3193. build_cpu=$1
  3194. build_vendor=$2
  3195. shift; shift
  3196. # Remember, the first character of IFS is used to create $*,
  3197. # except with old shells:
  3198. build_os=$*
  3199. IFS=$ac_save_IFS
  3200. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3202. printf %s "checking host system type... " >&6; }
  3203. if test ${ac_cv_host+y}
  3204. then :
  3205. printf %s "(cached) " >&6
  3206. else $as_nop
  3207. if test "x$host_alias" = x; then
  3208. ac_cv_host=$ac_cv_build
  3209. else
  3210. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3211. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3212. fi
  3213. fi
  3214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3215. printf "%s\n" "$ac_cv_host" >&6; }
  3216. case $ac_cv_host in
  3217. *-*-*) ;;
  3218. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3219. esac
  3220. host=$ac_cv_host
  3221. ac_save_IFS=$IFS; IFS='-'
  3222. set x $ac_cv_host
  3223. shift
  3224. host_cpu=$1
  3225. host_vendor=$2
  3226. shift; shift
  3227. # Remember, the first character of IFS is used to create $*,
  3228. # except with old shells:
  3229. host_os=$*
  3230. IFS=$ac_save_IFS
  3231. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3232. # Backslashify metacharacters that are still active within
  3233. # double-quoted strings.
  3234. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3235. # Same as above, but do not quote variable references.
  3236. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3237. # Sed substitution to delay expansion of an escaped shell variable in a
  3238. # double_quote_subst'ed string.
  3239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3240. # Sed substitution to delay expansion of an escaped single quote.
  3241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3242. # Sed substitution to avoid accidental globbing in evaled expressions
  3243. no_glob_subst='s/\*/\\\*/g'
  3244. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3245. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3246. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3248. printf %s "checking how to print strings... " >&6; }
  3249. # Test print first, because it will be a builtin if present.
  3250. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3251. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3252. ECHO='print -r --'
  3253. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3254. ECHO='printf %s\n'
  3255. else
  3256. # Use this function as a fallback that always works.
  3257. func_fallback_echo ()
  3258. {
  3259. eval 'cat <<_LTECHO_EOF
  3260. $1
  3261. _LTECHO_EOF'
  3262. }
  3263. ECHO='func_fallback_echo'
  3264. fi
  3265. # func_echo_all arg...
  3266. # Invoke $ECHO with all args, space-separated.
  3267. func_echo_all ()
  3268. {
  3269. $ECHO ""
  3270. }
  3271. case $ECHO in
  3272. printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3273. printf "%s\n" "printf" >&6; } ;;
  3274. print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3275. printf "%s\n" "print -r" >&6; } ;;
  3276. *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3277. printf "%s\n" "cat" >&6; } ;;
  3278. esac
  3279. ac_ext=c
  3280. ac_cpp='$CPP $CPPFLAGS'
  3281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3284. if test -n "$ac_tool_prefix"; then
  3285. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3286. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3288. printf %s "checking for $ac_word... " >&6; }
  3289. if test ${ac_cv_prog_CC+y}
  3290. then :
  3291. printf %s "(cached) " >&6
  3292. else $as_nop
  3293. if test -n "$CC"; then
  3294. ac_cv_prog_CC="$CC" # Let the user override the test.
  3295. else
  3296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3297. for as_dir in $PATH
  3298. do
  3299. IFS=$as_save_IFS
  3300. case $as_dir in #(((
  3301. '') as_dir=./ ;;
  3302. */) ;;
  3303. *) as_dir=$as_dir/ ;;
  3304. esac
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. fi
  3315. fi
  3316. CC=$ac_cv_prog_CC
  3317. if test -n "$CC"; then
  3318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3319. printf "%s\n" "$CC" >&6; }
  3320. else
  3321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3322. printf "%s\n" "no" >&6; }
  3323. fi
  3324. fi
  3325. if test -z "$ac_cv_prog_CC"; then
  3326. ac_ct_CC=$CC
  3327. # Extract the first word of "gcc", so it can be a program name with args.
  3328. set dummy gcc; ac_word=$2
  3329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3330. printf %s "checking for $ac_word... " >&6; }
  3331. if test ${ac_cv_prog_ac_ct_CC+y}
  3332. then :
  3333. printf %s "(cached) " >&6
  3334. else $as_nop
  3335. if test -n "$ac_ct_CC"; then
  3336. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. case $as_dir in #(((
  3343. '') as_dir=./ ;;
  3344. */) ;;
  3345. *) as_dir=$as_dir/ ;;
  3346. esac
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3349. ac_cv_prog_ac_ct_CC="gcc"
  3350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. fi
  3357. fi
  3358. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3359. if test -n "$ac_ct_CC"; then
  3360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3361. printf "%s\n" "$ac_ct_CC" >&6; }
  3362. else
  3363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3364. printf "%s\n" "no" >&6; }
  3365. fi
  3366. if test "x$ac_ct_CC" = x; then
  3367. CC=""
  3368. else
  3369. case $cross_compiling:$ac_tool_warned in
  3370. yes:)
  3371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3373. ac_tool_warned=yes ;;
  3374. esac
  3375. CC=$ac_ct_CC
  3376. fi
  3377. else
  3378. CC="$ac_cv_prog_CC"
  3379. fi
  3380. if test -z "$CC"; then
  3381. if test -n "$ac_tool_prefix"; then
  3382. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3383. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3385. printf %s "checking for $ac_word... " >&6; }
  3386. if test ${ac_cv_prog_CC+y}
  3387. then :
  3388. printf %s "(cached) " >&6
  3389. else $as_nop
  3390. if test -n "$CC"; then
  3391. ac_cv_prog_CC="$CC" # Let the user override the test.
  3392. else
  3393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3394. for as_dir in $PATH
  3395. do
  3396. IFS=$as_save_IFS
  3397. case $as_dir in #(((
  3398. '') as_dir=./ ;;
  3399. */) ;;
  3400. *) as_dir=$as_dir/ ;;
  3401. esac
  3402. for ac_exec_ext in '' $ac_executable_extensions; do
  3403. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3404. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3405. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3406. break 2
  3407. fi
  3408. done
  3409. done
  3410. IFS=$as_save_IFS
  3411. fi
  3412. fi
  3413. CC=$ac_cv_prog_CC
  3414. if test -n "$CC"; then
  3415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3416. printf "%s\n" "$CC" >&6; }
  3417. else
  3418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3419. printf "%s\n" "no" >&6; }
  3420. fi
  3421. fi
  3422. fi
  3423. if test -z "$CC"; then
  3424. # Extract the first word of "cc", so it can be a program name with args.
  3425. set dummy cc; ac_word=$2
  3426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3427. printf %s "checking for $ac_word... " >&6; }
  3428. if test ${ac_cv_prog_CC+y}
  3429. then :
  3430. printf %s "(cached) " >&6
  3431. else $as_nop
  3432. if test -n "$CC"; then
  3433. ac_cv_prog_CC="$CC" # Let the user override the test.
  3434. else
  3435. ac_prog_rejected=no
  3436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3437. for as_dir in $PATH
  3438. do
  3439. IFS=$as_save_IFS
  3440. case $as_dir in #(((
  3441. '') as_dir=./ ;;
  3442. */) ;;
  3443. *) as_dir=$as_dir/ ;;
  3444. esac
  3445. for ac_exec_ext in '' $ac_executable_extensions; do
  3446. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3447. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3448. ac_prog_rejected=yes
  3449. continue
  3450. fi
  3451. ac_cv_prog_CC="cc"
  3452. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3453. break 2
  3454. fi
  3455. done
  3456. done
  3457. IFS=$as_save_IFS
  3458. if test $ac_prog_rejected = yes; then
  3459. # We found a bogon in the path, so make sure we never use it.
  3460. set dummy $ac_cv_prog_CC
  3461. shift
  3462. if test $# != 0; then
  3463. # We chose a different compiler from the bogus one.
  3464. # However, it has the same basename, so the bogon will be chosen
  3465. # first if we set CC to just the basename; use the full file name.
  3466. shift
  3467. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  3468. fi
  3469. fi
  3470. fi
  3471. fi
  3472. CC=$ac_cv_prog_CC
  3473. if test -n "$CC"; then
  3474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3475. printf "%s\n" "$CC" >&6; }
  3476. else
  3477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3478. printf "%s\n" "no" >&6; }
  3479. fi
  3480. fi
  3481. if test -z "$CC"; then
  3482. if test -n "$ac_tool_prefix"; then
  3483. for ac_prog in cl.exe
  3484. do
  3485. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3486. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3488. printf %s "checking for $ac_word... " >&6; }
  3489. if test ${ac_cv_prog_CC+y}
  3490. then :
  3491. printf %s "(cached) " >&6
  3492. else $as_nop
  3493. if test -n "$CC"; then
  3494. ac_cv_prog_CC="$CC" # Let the user override the test.
  3495. else
  3496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3497. for as_dir in $PATH
  3498. do
  3499. IFS=$as_save_IFS
  3500. case $as_dir in #(((
  3501. '') as_dir=./ ;;
  3502. */) ;;
  3503. *) as_dir=$as_dir/ ;;
  3504. esac
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3507. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3508. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. CC=$ac_cv_prog_CC
  3517. if test -n "$CC"; then
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3519. printf "%s\n" "$CC" >&6; }
  3520. else
  3521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. printf "%s\n" "no" >&6; }
  3523. fi
  3524. test -n "$CC" && break
  3525. done
  3526. fi
  3527. if test -z "$CC"; then
  3528. ac_ct_CC=$CC
  3529. for ac_prog in cl.exe
  3530. do
  3531. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3532. set dummy $ac_prog; ac_word=$2
  3533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3534. printf %s "checking for $ac_word... " >&6; }
  3535. if test ${ac_cv_prog_ac_ct_CC+y}
  3536. then :
  3537. printf %s "(cached) " >&6
  3538. else $as_nop
  3539. if test -n "$ac_ct_CC"; then
  3540. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3541. else
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. case $as_dir in #(((
  3547. '') as_dir=./ ;;
  3548. */) ;;
  3549. *) as_dir=$as_dir/ ;;
  3550. esac
  3551. for ac_exec_ext in '' $ac_executable_extensions; do
  3552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3553. ac_cv_prog_ac_ct_CC="$ac_prog"
  3554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3555. break 2
  3556. fi
  3557. done
  3558. done
  3559. IFS=$as_save_IFS
  3560. fi
  3561. fi
  3562. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3563. if test -n "$ac_ct_CC"; then
  3564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3565. printf "%s\n" "$ac_ct_CC" >&6; }
  3566. else
  3567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3568. printf "%s\n" "no" >&6; }
  3569. fi
  3570. test -n "$ac_ct_CC" && break
  3571. done
  3572. if test "x$ac_ct_CC" = x; then
  3573. CC=""
  3574. else
  3575. case $cross_compiling:$ac_tool_warned in
  3576. yes:)
  3577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3578. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3579. ac_tool_warned=yes ;;
  3580. esac
  3581. CC=$ac_ct_CC
  3582. fi
  3583. fi
  3584. fi
  3585. if test -z "$CC"; then
  3586. if test -n "$ac_tool_prefix"; then
  3587. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  3588. set dummy ${ac_tool_prefix}clang; ac_word=$2
  3589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3590. printf %s "checking for $ac_word... " >&6; }
  3591. if test ${ac_cv_prog_CC+y}
  3592. then :
  3593. printf %s "(cached) " >&6
  3594. else $as_nop
  3595. if test -n "$CC"; then
  3596. ac_cv_prog_CC="$CC" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601. IFS=$as_save_IFS
  3602. case $as_dir in #(((
  3603. '') as_dir=./ ;;
  3604. */) ;;
  3605. *) as_dir=$as_dir/ ;;
  3606. esac
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3609. ac_cv_prog_CC="${ac_tool_prefix}clang"
  3610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3611. break 2
  3612. fi
  3613. done
  3614. done
  3615. IFS=$as_save_IFS
  3616. fi
  3617. fi
  3618. CC=$ac_cv_prog_CC
  3619. if test -n "$CC"; then
  3620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3621. printf "%s\n" "$CC" >&6; }
  3622. else
  3623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3624. printf "%s\n" "no" >&6; }
  3625. fi
  3626. fi
  3627. if test -z "$ac_cv_prog_CC"; then
  3628. ac_ct_CC=$CC
  3629. # Extract the first word of "clang", so it can be a program name with args.
  3630. set dummy clang; ac_word=$2
  3631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3632. printf %s "checking for $ac_word... " >&6; }
  3633. if test ${ac_cv_prog_ac_ct_CC+y}
  3634. then :
  3635. printf %s "(cached) " >&6
  3636. else $as_nop
  3637. if test -n "$ac_ct_CC"; then
  3638. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3639. else
  3640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3641. for as_dir in $PATH
  3642. do
  3643. IFS=$as_save_IFS
  3644. case $as_dir in #(((
  3645. '') as_dir=./ ;;
  3646. */) ;;
  3647. *) as_dir=$as_dir/ ;;
  3648. esac
  3649. for ac_exec_ext in '' $ac_executable_extensions; do
  3650. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3651. ac_cv_prog_ac_ct_CC="clang"
  3652. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3653. break 2
  3654. fi
  3655. done
  3656. done
  3657. IFS=$as_save_IFS
  3658. fi
  3659. fi
  3660. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3661. if test -n "$ac_ct_CC"; then
  3662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3663. printf "%s\n" "$ac_ct_CC" >&6; }
  3664. else
  3665. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3666. printf "%s\n" "no" >&6; }
  3667. fi
  3668. if test "x$ac_ct_CC" = x; then
  3669. CC=""
  3670. else
  3671. case $cross_compiling:$ac_tool_warned in
  3672. yes:)
  3673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3674. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3675. ac_tool_warned=yes ;;
  3676. esac
  3677. CC=$ac_ct_CC
  3678. fi
  3679. else
  3680. CC="$ac_cv_prog_CC"
  3681. fi
  3682. fi
  3683. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3684. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3685. as_fn_error $? "no acceptable C compiler found in \$PATH
  3686. See \`config.log' for more details" "$LINENO" 5; }
  3687. # Provide some information about the compiler.
  3688. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3689. set X $ac_compile
  3690. ac_compiler=$2
  3691. for ac_option in --version -v -V -qversion -version; do
  3692. { { ac_try="$ac_compiler $ac_option >&5"
  3693. case "(($ac_try" in
  3694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3695. *) ac_try_echo=$ac_try;;
  3696. esac
  3697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3698. printf "%s\n" "$ac_try_echo"; } >&5
  3699. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3700. ac_status=$?
  3701. if test -s conftest.err; then
  3702. sed '10a\
  3703. ... rest of stderr output deleted ...
  3704. 10q' conftest.err >conftest.er1
  3705. cat conftest.er1 >&5
  3706. fi
  3707. rm -f conftest.er1 conftest.err
  3708. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3709. test $ac_status = 0; }
  3710. done
  3711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3712. /* end confdefs.h. */
  3713. int
  3714. main (void)
  3715. {
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. ac_clean_files_save=$ac_clean_files
  3721. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3722. # Try to create an executable without -o first, disregard a.out.
  3723. # It will help us diagnose broken compilers, and finding out an intuition
  3724. # of exeext.
  3725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3726. printf %s "checking whether the C compiler works... " >&6; }
  3727. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3728. # The possible output files:
  3729. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3730. ac_rmfiles=
  3731. for ac_file in $ac_files
  3732. do
  3733. case $ac_file in
  3734. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3735. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3736. esac
  3737. done
  3738. rm -f $ac_rmfiles
  3739. if { { ac_try="$ac_link_default"
  3740. case "(($ac_try" in
  3741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3742. *) ac_try_echo=$ac_try;;
  3743. esac
  3744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3745. printf "%s\n" "$ac_try_echo"; } >&5
  3746. (eval "$ac_link_default") 2>&5
  3747. ac_status=$?
  3748. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3749. test $ac_status = 0; }
  3750. then :
  3751. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3752. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3753. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3754. # so that the user can short-circuit this test for compilers unknown to
  3755. # Autoconf.
  3756. for ac_file in $ac_files ''
  3757. do
  3758. test -f "$ac_file" || continue
  3759. case $ac_file in
  3760. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3761. ;;
  3762. [ab].out )
  3763. # We found the default executable, but exeext='' is most
  3764. # certainly right.
  3765. break;;
  3766. *.* )
  3767. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3768. then :; else
  3769. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3770. fi
  3771. # We set ac_cv_exeext here because the later test for it is not
  3772. # safe: cross compilers may not add the suffix if given an `-o'
  3773. # argument, so we may need to know it at that point already.
  3774. # Even if this section looks crufty: it has the advantage of
  3775. # actually working.
  3776. break;;
  3777. * )
  3778. break;;
  3779. esac
  3780. done
  3781. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3782. else $as_nop
  3783. ac_file=''
  3784. fi
  3785. if test -z "$ac_file"
  3786. then :
  3787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3788. printf "%s\n" "no" >&6; }
  3789. printf "%s\n" "$as_me: failed program was:" >&5
  3790. sed 's/^/| /' conftest.$ac_ext >&5
  3791. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3792. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3793. as_fn_error 77 "C compiler cannot create executables
  3794. See \`config.log' for more details" "$LINENO" 5; }
  3795. else $as_nop
  3796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3797. printf "%s\n" "yes" >&6; }
  3798. fi
  3799. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3800. printf %s "checking for C compiler default output file name... " >&6; }
  3801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3802. printf "%s\n" "$ac_file" >&6; }
  3803. ac_exeext=$ac_cv_exeext
  3804. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3805. ac_clean_files=$ac_clean_files_save
  3806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3807. printf %s "checking for suffix of executables... " >&6; }
  3808. if { { ac_try="$ac_link"
  3809. case "(($ac_try" in
  3810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3811. *) ac_try_echo=$ac_try;;
  3812. esac
  3813. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3814. printf "%s\n" "$ac_try_echo"; } >&5
  3815. (eval "$ac_link") 2>&5
  3816. ac_status=$?
  3817. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3818. test $ac_status = 0; }
  3819. then :
  3820. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3821. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3822. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3823. # `rm'.
  3824. for ac_file in conftest.exe conftest conftest.*; do
  3825. test -f "$ac_file" || continue
  3826. case $ac_file in
  3827. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3828. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3829. break;;
  3830. * ) break;;
  3831. esac
  3832. done
  3833. else $as_nop
  3834. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3835. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3836. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3837. See \`config.log' for more details" "$LINENO" 5; }
  3838. fi
  3839. rm -f conftest conftest$ac_cv_exeext
  3840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3841. printf "%s\n" "$ac_cv_exeext" >&6; }
  3842. rm -f conftest.$ac_ext
  3843. EXEEXT=$ac_cv_exeext
  3844. ac_exeext=$EXEEXT
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <stdio.h>
  3848. int
  3849. main (void)
  3850. {
  3851. FILE *f = fopen ("conftest.out", "w");
  3852. return ferror (f) || fclose (f) != 0;
  3853. ;
  3854. return 0;
  3855. }
  3856. _ACEOF
  3857. ac_clean_files="$ac_clean_files conftest.out"
  3858. # Check that the compiler produces executables we can run. If not, either
  3859. # the compiler is broken, or we cross compile.
  3860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3861. printf %s "checking whether we are cross compiling... " >&6; }
  3862. if test "$cross_compiling" != yes; then
  3863. { { ac_try="$ac_link"
  3864. case "(($ac_try" in
  3865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3866. *) ac_try_echo=$ac_try;;
  3867. esac
  3868. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3869. printf "%s\n" "$ac_try_echo"; } >&5
  3870. (eval "$ac_link") 2>&5
  3871. ac_status=$?
  3872. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3873. test $ac_status = 0; }
  3874. if { ac_try='./conftest$ac_cv_exeext'
  3875. { { case "(($ac_try" in
  3876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877. *) ac_try_echo=$ac_try;;
  3878. esac
  3879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3880. printf "%s\n" "$ac_try_echo"; } >&5
  3881. (eval "$ac_try") 2>&5
  3882. ac_status=$?
  3883. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3884. test $ac_status = 0; }; }; then
  3885. cross_compiling=no
  3886. else
  3887. if test "$cross_compiling" = maybe; then
  3888. cross_compiling=yes
  3889. else
  3890. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3891. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3892. as_fn_error 77 "cannot run C compiled programs.
  3893. If you meant to cross compile, use \`--host'.
  3894. See \`config.log' for more details" "$LINENO" 5; }
  3895. fi
  3896. fi
  3897. fi
  3898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3899. printf "%s\n" "$cross_compiling" >&6; }
  3900. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3901. ac_clean_files=$ac_clean_files_save
  3902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3903. printf %s "checking for suffix of object files... " >&6; }
  3904. if test ${ac_cv_objext+y}
  3905. then :
  3906. printf %s "(cached) " >&6
  3907. else $as_nop
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main (void)
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. rm -f conftest.o conftest.obj
  3918. if { { ac_try="$ac_compile"
  3919. case "(($ac_try" in
  3920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3921. *) ac_try_echo=$ac_try;;
  3922. esac
  3923. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3924. printf "%s\n" "$ac_try_echo"; } >&5
  3925. (eval "$ac_compile") 2>&5
  3926. ac_status=$?
  3927. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3928. test $ac_status = 0; }
  3929. then :
  3930. for ac_file in conftest.o conftest.obj conftest.*; do
  3931. test -f "$ac_file" || continue;
  3932. case $ac_file in
  3933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3934. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3935. break;;
  3936. esac
  3937. done
  3938. else $as_nop
  3939. printf "%s\n" "$as_me: failed program was:" >&5
  3940. sed 's/^/| /' conftest.$ac_ext >&5
  3941. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3942. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3943. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3944. See \`config.log' for more details" "$LINENO" 5; }
  3945. fi
  3946. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3947. fi
  3948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3949. printf "%s\n" "$ac_cv_objext" >&6; }
  3950. OBJEXT=$ac_cv_objext
  3951. ac_objext=$OBJEXT
  3952. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3953. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3954. if test ${ac_cv_c_compiler_gnu+y}
  3955. then :
  3956. printf %s "(cached) " >&6
  3957. else $as_nop
  3958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3959. /* end confdefs.h. */
  3960. int
  3961. main (void)
  3962. {
  3963. #ifndef __GNUC__
  3964. choke me
  3965. #endif
  3966. ;
  3967. return 0;
  3968. }
  3969. _ACEOF
  3970. if ac_fn_c_try_compile "$LINENO"
  3971. then :
  3972. ac_compiler_gnu=yes
  3973. else $as_nop
  3974. ac_compiler_gnu=no
  3975. fi
  3976. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3977. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3978. fi
  3979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3980. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3981. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3982. if test $ac_compiler_gnu = yes; then
  3983. GCC=yes
  3984. else
  3985. GCC=
  3986. fi
  3987. ac_test_CFLAGS=${CFLAGS+y}
  3988. ac_save_CFLAGS=$CFLAGS
  3989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3990. printf %s "checking whether $CC accepts -g... " >&6; }
  3991. if test ${ac_cv_prog_cc_g+y}
  3992. then :
  3993. printf %s "(cached) " >&6
  3994. else $as_nop
  3995. ac_save_c_werror_flag=$ac_c_werror_flag
  3996. ac_c_werror_flag=yes
  3997. ac_cv_prog_cc_g=no
  3998. CFLAGS="-g"
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. int
  4002. main (void)
  4003. {
  4004. ;
  4005. return 0;
  4006. }
  4007. _ACEOF
  4008. if ac_fn_c_try_compile "$LINENO"
  4009. then :
  4010. ac_cv_prog_cc_g=yes
  4011. else $as_nop
  4012. CFLAGS=""
  4013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4014. /* end confdefs.h. */
  4015. int
  4016. main (void)
  4017. {
  4018. ;
  4019. return 0;
  4020. }
  4021. _ACEOF
  4022. if ac_fn_c_try_compile "$LINENO"
  4023. then :
  4024. else $as_nop
  4025. ac_c_werror_flag=$ac_save_c_werror_flag
  4026. CFLAGS="-g"
  4027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4028. /* end confdefs.h. */
  4029. int
  4030. main (void)
  4031. {
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. if ac_fn_c_try_compile "$LINENO"
  4037. then :
  4038. ac_cv_prog_cc_g=yes
  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. fi
  4044. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4045. ac_c_werror_flag=$ac_save_c_werror_flag
  4046. fi
  4047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4048. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4049. if test $ac_test_CFLAGS; then
  4050. CFLAGS=$ac_save_CFLAGS
  4051. elif test $ac_cv_prog_cc_g = yes; then
  4052. if test "$GCC" = yes; then
  4053. CFLAGS="-g -O2"
  4054. else
  4055. CFLAGS="-g"
  4056. fi
  4057. else
  4058. if test "$GCC" = yes; then
  4059. CFLAGS="-O2"
  4060. else
  4061. CFLAGS=
  4062. fi
  4063. fi
  4064. ac_prog_cc_stdc=no
  4065. if test x$ac_prog_cc_stdc = xno
  4066. then :
  4067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4068. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4069. if test ${ac_cv_prog_cc_c11+y}
  4070. then :
  4071. printf %s "(cached) " >&6
  4072. else $as_nop
  4073. ac_cv_prog_cc_c11=no
  4074. ac_save_CC=$CC
  4075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4076. /* end confdefs.h. */
  4077. $ac_c_conftest_c11_program
  4078. _ACEOF
  4079. for ac_arg in '' -std=gnu11
  4080. do
  4081. CC="$ac_save_CC $ac_arg"
  4082. if ac_fn_c_try_compile "$LINENO"
  4083. then :
  4084. ac_cv_prog_cc_c11=$ac_arg
  4085. fi
  4086. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4087. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4088. done
  4089. rm -f conftest.$ac_ext
  4090. CC=$ac_save_CC
  4091. fi
  4092. if test "x$ac_cv_prog_cc_c11" = xno
  4093. then :
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4095. printf "%s\n" "unsupported" >&6; }
  4096. else $as_nop
  4097. if test "x$ac_cv_prog_cc_c11" = x
  4098. then :
  4099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4100. printf "%s\n" "none needed" >&6; }
  4101. else $as_nop
  4102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4103. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4104. CC="$CC $ac_cv_prog_cc_c11"
  4105. fi
  4106. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4107. ac_prog_cc_stdc=c11
  4108. fi
  4109. fi
  4110. if test x$ac_prog_cc_stdc = xno
  4111. then :
  4112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4113. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4114. if test ${ac_cv_prog_cc_c99+y}
  4115. then :
  4116. printf %s "(cached) " >&6
  4117. else $as_nop
  4118. ac_cv_prog_cc_c99=no
  4119. ac_save_CC=$CC
  4120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4121. /* end confdefs.h. */
  4122. $ac_c_conftest_c99_program
  4123. _ACEOF
  4124. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4125. do
  4126. CC="$ac_save_CC $ac_arg"
  4127. if ac_fn_c_try_compile "$LINENO"
  4128. then :
  4129. ac_cv_prog_cc_c99=$ac_arg
  4130. fi
  4131. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4132. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4133. done
  4134. rm -f conftest.$ac_ext
  4135. CC=$ac_save_CC
  4136. fi
  4137. if test "x$ac_cv_prog_cc_c99" = xno
  4138. then :
  4139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4140. printf "%s\n" "unsupported" >&6; }
  4141. else $as_nop
  4142. if test "x$ac_cv_prog_cc_c99" = x
  4143. then :
  4144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4145. printf "%s\n" "none needed" >&6; }
  4146. else $as_nop
  4147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4148. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4149. CC="$CC $ac_cv_prog_cc_c99"
  4150. fi
  4151. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4152. ac_prog_cc_stdc=c99
  4153. fi
  4154. fi
  4155. if test x$ac_prog_cc_stdc = xno
  4156. then :
  4157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4158. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4159. if test ${ac_cv_prog_cc_c89+y}
  4160. then :
  4161. printf %s "(cached) " >&6
  4162. else $as_nop
  4163. ac_cv_prog_cc_c89=no
  4164. ac_save_CC=$CC
  4165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4166. /* end confdefs.h. */
  4167. $ac_c_conftest_c89_program
  4168. _ACEOF
  4169. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4170. do
  4171. CC="$ac_save_CC $ac_arg"
  4172. if ac_fn_c_try_compile "$LINENO"
  4173. then :
  4174. ac_cv_prog_cc_c89=$ac_arg
  4175. fi
  4176. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4177. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4178. done
  4179. rm -f conftest.$ac_ext
  4180. CC=$ac_save_CC
  4181. fi
  4182. if test "x$ac_cv_prog_cc_c89" = xno
  4183. then :
  4184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4185. printf "%s\n" "unsupported" >&6; }
  4186. else $as_nop
  4187. if test "x$ac_cv_prog_cc_c89" = x
  4188. then :
  4189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4190. printf "%s\n" "none needed" >&6; }
  4191. else $as_nop
  4192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4193. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4194. CC="$CC $ac_cv_prog_cc_c89"
  4195. fi
  4196. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4197. ac_prog_cc_stdc=c89
  4198. fi
  4199. fi
  4200. ac_ext=c
  4201. ac_cpp='$CPP $CPPFLAGS'
  4202. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4203. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4204. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4206. printf %s "checking for a sed that does not truncate output... " >&6; }
  4207. if test ${ac_cv_path_SED+y}
  4208. then :
  4209. printf %s "(cached) " >&6
  4210. else $as_nop
  4211. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4212. for ac_i in 1 2 3 4 5 6 7; do
  4213. ac_script="$ac_script$as_nl$ac_script"
  4214. done
  4215. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4216. { ac_script=; unset ac_script;}
  4217. if test -z "$SED"; then
  4218. ac_path_SED_found=false
  4219. # Loop through the user's path and test for each of PROGNAME-LIST
  4220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4221. for as_dir in $PATH
  4222. do
  4223. IFS=$as_save_IFS
  4224. case $as_dir in #(((
  4225. '') as_dir=./ ;;
  4226. */) ;;
  4227. *) as_dir=$as_dir/ ;;
  4228. esac
  4229. for ac_prog in sed gsed
  4230. do
  4231. for ac_exec_ext in '' $ac_executable_extensions; do
  4232. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  4233. as_fn_executable_p "$ac_path_SED" || continue
  4234. # Check for GNU ac_path_SED and select it if it is found.
  4235. # Check for GNU $ac_path_SED
  4236. case `"$ac_path_SED" --version 2>&1` in
  4237. *GNU*)
  4238. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4239. *)
  4240. ac_count=0
  4241. printf %s 0123456789 >"conftest.in"
  4242. while :
  4243. do
  4244. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4245. mv "conftest.tmp" "conftest.in"
  4246. cp "conftest.in" "conftest.nl"
  4247. printf "%s\n" '' >> "conftest.nl"
  4248. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4249. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4250. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4251. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4252. # Best one so far, save it but keep looking for a better one
  4253. ac_cv_path_SED="$ac_path_SED"
  4254. ac_path_SED_max=$ac_count
  4255. fi
  4256. # 10*(2^10) chars as input seems more than enough
  4257. test $ac_count -gt 10 && break
  4258. done
  4259. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4260. esac
  4261. $ac_path_SED_found && break 3
  4262. done
  4263. done
  4264. done
  4265. IFS=$as_save_IFS
  4266. if test -z "$ac_cv_path_SED"; then
  4267. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4268. fi
  4269. else
  4270. ac_cv_path_SED=$SED
  4271. fi
  4272. fi
  4273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4274. printf "%s\n" "$ac_cv_path_SED" >&6; }
  4275. SED="$ac_cv_path_SED"
  4276. rm -f conftest.sed
  4277. test -z "$SED" && SED=sed
  4278. Xsed="$SED -e 1s/^X//"
  4279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4280. printf %s "checking for grep that handles long lines and -e... " >&6; }
  4281. if test ${ac_cv_path_GREP+y}
  4282. then :
  4283. printf %s "(cached) " >&6
  4284. else $as_nop
  4285. if test -z "$GREP"; then
  4286. ac_path_GREP_found=false
  4287. # Loop through the user's path and test for each of PROGNAME-LIST
  4288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4289. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4290. do
  4291. IFS=$as_save_IFS
  4292. case $as_dir in #(((
  4293. '') as_dir=./ ;;
  4294. */) ;;
  4295. *) as_dir=$as_dir/ ;;
  4296. esac
  4297. for ac_prog in grep ggrep
  4298. do
  4299. for ac_exec_ext in '' $ac_executable_extensions; do
  4300. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  4301. as_fn_executable_p "$ac_path_GREP" || continue
  4302. # Check for GNU ac_path_GREP and select it if it is found.
  4303. # Check for GNU $ac_path_GREP
  4304. case `"$ac_path_GREP" --version 2>&1` in
  4305. *GNU*)
  4306. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4307. *)
  4308. ac_count=0
  4309. printf %s 0123456789 >"conftest.in"
  4310. while :
  4311. do
  4312. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4313. mv "conftest.tmp" "conftest.in"
  4314. cp "conftest.in" "conftest.nl"
  4315. printf "%s\n" 'GREP' >> "conftest.nl"
  4316. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4317. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4318. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4319. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4320. # Best one so far, save it but keep looking for a better one
  4321. ac_cv_path_GREP="$ac_path_GREP"
  4322. ac_path_GREP_max=$ac_count
  4323. fi
  4324. # 10*(2^10) chars as input seems more than enough
  4325. test $ac_count -gt 10 && break
  4326. done
  4327. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4328. esac
  4329. $ac_path_GREP_found && break 3
  4330. done
  4331. done
  4332. done
  4333. IFS=$as_save_IFS
  4334. if test -z "$ac_cv_path_GREP"; then
  4335. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4336. fi
  4337. else
  4338. ac_cv_path_GREP=$GREP
  4339. fi
  4340. fi
  4341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4342. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  4343. GREP="$ac_cv_path_GREP"
  4344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4345. printf %s "checking for egrep... " >&6; }
  4346. if test ${ac_cv_path_EGREP+y}
  4347. then :
  4348. printf %s "(cached) " >&6
  4349. else $as_nop
  4350. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4351. then ac_cv_path_EGREP="$GREP -E"
  4352. else
  4353. if test -z "$EGREP"; then
  4354. ac_path_EGREP_found=false
  4355. # Loop through the user's path and test for each of PROGNAME-LIST
  4356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4357. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4358. do
  4359. IFS=$as_save_IFS
  4360. case $as_dir in #(((
  4361. '') as_dir=./ ;;
  4362. */) ;;
  4363. *) as_dir=$as_dir/ ;;
  4364. esac
  4365. for ac_prog in egrep
  4366. do
  4367. for ac_exec_ext in '' $ac_executable_extensions; do
  4368. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  4369. as_fn_executable_p "$ac_path_EGREP" || continue
  4370. # Check for GNU ac_path_EGREP and select it if it is found.
  4371. # Check for GNU $ac_path_EGREP
  4372. case `"$ac_path_EGREP" --version 2>&1` in
  4373. *GNU*)
  4374. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4375. *)
  4376. ac_count=0
  4377. printf %s 0123456789 >"conftest.in"
  4378. while :
  4379. do
  4380. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4381. mv "conftest.tmp" "conftest.in"
  4382. cp "conftest.in" "conftest.nl"
  4383. printf "%s\n" 'EGREP' >> "conftest.nl"
  4384. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4385. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4386. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4387. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4388. # Best one so far, save it but keep looking for a better one
  4389. ac_cv_path_EGREP="$ac_path_EGREP"
  4390. ac_path_EGREP_max=$ac_count
  4391. fi
  4392. # 10*(2^10) chars as input seems more than enough
  4393. test $ac_count -gt 10 && break
  4394. done
  4395. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4396. esac
  4397. $ac_path_EGREP_found && break 3
  4398. done
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. if test -z "$ac_cv_path_EGREP"; then
  4403. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4404. fi
  4405. else
  4406. ac_cv_path_EGREP=$EGREP
  4407. fi
  4408. fi
  4409. fi
  4410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4411. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  4412. EGREP="$ac_cv_path_EGREP"
  4413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4414. printf %s "checking for fgrep... " >&6; }
  4415. if test ${ac_cv_path_FGREP+y}
  4416. then :
  4417. printf %s "(cached) " >&6
  4418. else $as_nop
  4419. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4420. then ac_cv_path_FGREP="$GREP -F"
  4421. else
  4422. if test -z "$FGREP"; then
  4423. ac_path_FGREP_found=false
  4424. # Loop through the user's path and test for each of PROGNAME-LIST
  4425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4426. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4427. do
  4428. IFS=$as_save_IFS
  4429. case $as_dir in #(((
  4430. '') as_dir=./ ;;
  4431. */) ;;
  4432. *) as_dir=$as_dir/ ;;
  4433. esac
  4434. for ac_prog in fgrep
  4435. do
  4436. for ac_exec_ext in '' $ac_executable_extensions; do
  4437. ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
  4438. as_fn_executable_p "$ac_path_FGREP" || continue
  4439. # Check for GNU ac_path_FGREP and select it if it is found.
  4440. # Check for GNU $ac_path_FGREP
  4441. case `"$ac_path_FGREP" --version 2>&1` in
  4442. *GNU*)
  4443. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4444. *)
  4445. ac_count=0
  4446. printf %s 0123456789 >"conftest.in"
  4447. while :
  4448. do
  4449. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4450. mv "conftest.tmp" "conftest.in"
  4451. cp "conftest.in" "conftest.nl"
  4452. printf "%s\n" 'FGREP' >> "conftest.nl"
  4453. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4454. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4455. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4456. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4457. # Best one so far, save it but keep looking for a better one
  4458. ac_cv_path_FGREP="$ac_path_FGREP"
  4459. ac_path_FGREP_max=$ac_count
  4460. fi
  4461. # 10*(2^10) chars as input seems more than enough
  4462. test $ac_count -gt 10 && break
  4463. done
  4464. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4465. esac
  4466. $ac_path_FGREP_found && break 3
  4467. done
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. if test -z "$ac_cv_path_FGREP"; then
  4472. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4473. fi
  4474. else
  4475. ac_cv_path_FGREP=$FGREP
  4476. fi
  4477. fi
  4478. fi
  4479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4480. printf "%s\n" "$ac_cv_path_FGREP" >&6; }
  4481. FGREP="$ac_cv_path_FGREP"
  4482. test -z "$GREP" && GREP=grep
  4483. # Check whether --with-gnu-ld was given.
  4484. if test ${with_gnu_ld+y}
  4485. then :
  4486. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4487. else $as_nop
  4488. with_gnu_ld=no
  4489. fi
  4490. ac_prog=ld
  4491. if test yes = "$GCC"; then
  4492. # Check if gcc -print-prog-name=ld gives a path.
  4493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4494. printf %s "checking for ld used by $CC... " >&6; }
  4495. case $host in
  4496. *-*-mingw*)
  4497. # gcc leaves a trailing carriage return, which upsets mingw
  4498. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4499. *)
  4500. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4501. esac
  4502. case $ac_prog in
  4503. # Accept absolute paths.
  4504. [\\/]* | ?:[\\/]*)
  4505. re_direlt='/[^/][^/]*/\.\./'
  4506. # Canonicalize the pathname of ld
  4507. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4508. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4509. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4510. done
  4511. test -z "$LD" && LD=$ac_prog
  4512. ;;
  4513. "")
  4514. # If it fails, then pretend we aren't using GCC.
  4515. ac_prog=ld
  4516. ;;
  4517. *)
  4518. # If it is relative, then search for the first ld in PATH.
  4519. with_gnu_ld=unknown
  4520. ;;
  4521. esac
  4522. elif test yes = "$with_gnu_ld"; then
  4523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4524. printf %s "checking for GNU ld... " >&6; }
  4525. else
  4526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4527. printf %s "checking for non-GNU ld... " >&6; }
  4528. fi
  4529. if test ${lt_cv_path_LD+y}
  4530. then :
  4531. printf %s "(cached) " >&6
  4532. else $as_nop
  4533. if test -z "$LD"; then
  4534. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4535. for ac_dir in $PATH; do
  4536. IFS=$lt_save_ifs
  4537. test -z "$ac_dir" && ac_dir=.
  4538. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4539. lt_cv_path_LD=$ac_dir/$ac_prog
  4540. # Check to see if the program is GNU ld. I'd rather use --version,
  4541. # but apparently some variants of GNU ld only accept -v.
  4542. # Break only if it was the GNU/non-GNU ld that we prefer.
  4543. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4544. *GNU* | *'with BFD'*)
  4545. test no != "$with_gnu_ld" && break
  4546. ;;
  4547. *)
  4548. test yes != "$with_gnu_ld" && break
  4549. ;;
  4550. esac
  4551. fi
  4552. done
  4553. IFS=$lt_save_ifs
  4554. else
  4555. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4556. fi
  4557. fi
  4558. LD=$lt_cv_path_LD
  4559. if test -n "$LD"; then
  4560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4561. printf "%s\n" "$LD" >&6; }
  4562. else
  4563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4564. printf "%s\n" "no" >&6; }
  4565. fi
  4566. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4568. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  4569. if test ${lt_cv_prog_gnu_ld+y}
  4570. then :
  4571. printf %s "(cached) " >&6
  4572. else $as_nop
  4573. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4574. case `$LD -v 2>&1 </dev/null` in
  4575. *GNU* | *'with BFD'*)
  4576. lt_cv_prog_gnu_ld=yes
  4577. ;;
  4578. *)
  4579. lt_cv_prog_gnu_ld=no
  4580. ;;
  4581. esac
  4582. fi
  4583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4584. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  4585. with_gnu_ld=$lt_cv_prog_gnu_ld
  4586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4587. printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4588. if test ${lt_cv_path_NM+y}
  4589. then :
  4590. printf %s "(cached) " >&6
  4591. else $as_nop
  4592. if test -n "$NM"; then
  4593. # Let the user override the test.
  4594. lt_cv_path_NM=$NM
  4595. else
  4596. lt_nm_to_check=${ac_tool_prefix}nm
  4597. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4598. lt_nm_to_check="$lt_nm_to_check nm"
  4599. fi
  4600. for lt_tmp_nm in $lt_nm_to_check; do
  4601. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4602. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4603. IFS=$lt_save_ifs
  4604. test -z "$ac_dir" && ac_dir=.
  4605. tmp_nm=$ac_dir/$lt_tmp_nm
  4606. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4607. # Check to see if the nm accepts a BSD-compat flag.
  4608. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4609. # nm: unknown option "B" ignored
  4610. # Tru64's nm complains that /dev/null is an invalid object file
  4611. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4612. case $build_os in
  4613. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4614. *) lt_bad_file=/dev/null ;;
  4615. esac
  4616. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4617. *$lt_bad_file* | *'Invalid file or object type'*)
  4618. lt_cv_path_NM="$tmp_nm -B"
  4619. break 2
  4620. ;;
  4621. *)
  4622. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4623. */dev/null*)
  4624. lt_cv_path_NM="$tmp_nm -p"
  4625. break 2
  4626. ;;
  4627. *)
  4628. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4629. continue # so that we can try to find one that supports BSD flags
  4630. ;;
  4631. esac
  4632. ;;
  4633. esac
  4634. fi
  4635. done
  4636. IFS=$lt_save_ifs
  4637. done
  4638. : ${lt_cv_path_NM=no}
  4639. fi
  4640. fi
  4641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4642. printf "%s\n" "$lt_cv_path_NM" >&6; }
  4643. if test no != "$lt_cv_path_NM"; then
  4644. NM=$lt_cv_path_NM
  4645. else
  4646. # Didn't find any BSD compatible name lister, look for dumpbin.
  4647. if test -n "$DUMPBIN"; then :
  4648. # Let the user override the test.
  4649. else
  4650. if test -n "$ac_tool_prefix"; then
  4651. for ac_prog in dumpbin "link -dump"
  4652. do
  4653. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4654. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. printf %s "checking for $ac_word... " >&6; }
  4657. if test ${ac_cv_prog_DUMPBIN+y}
  4658. then :
  4659. printf %s "(cached) " >&6
  4660. else $as_nop
  4661. if test -n "$DUMPBIN"; then
  4662. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. case $as_dir in #(((
  4669. '') as_dir=./ ;;
  4670. */) ;;
  4671. *) as_dir=$as_dir/ ;;
  4672. esac
  4673. for ac_exec_ext in '' $ac_executable_extensions; do
  4674. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4675. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4676. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4677. break 2
  4678. fi
  4679. done
  4680. done
  4681. IFS=$as_save_IFS
  4682. fi
  4683. fi
  4684. DUMPBIN=$ac_cv_prog_DUMPBIN
  4685. if test -n "$DUMPBIN"; then
  4686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4687. printf "%s\n" "$DUMPBIN" >&6; }
  4688. else
  4689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4690. printf "%s\n" "no" >&6; }
  4691. fi
  4692. test -n "$DUMPBIN" && break
  4693. done
  4694. fi
  4695. if test -z "$DUMPBIN"; then
  4696. ac_ct_DUMPBIN=$DUMPBIN
  4697. for ac_prog in dumpbin "link -dump"
  4698. do
  4699. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4700. set dummy $ac_prog; ac_word=$2
  4701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4702. printf %s "checking for $ac_word... " >&6; }
  4703. if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
  4704. then :
  4705. printf %s "(cached) " >&6
  4706. else $as_nop
  4707. if test -n "$ac_ct_DUMPBIN"; then
  4708. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4709. else
  4710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4711. for as_dir in $PATH
  4712. do
  4713. IFS=$as_save_IFS
  4714. case $as_dir in #(((
  4715. '') as_dir=./ ;;
  4716. */) ;;
  4717. *) as_dir=$as_dir/ ;;
  4718. esac
  4719. for ac_exec_ext in '' $ac_executable_extensions; do
  4720. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4721. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4722. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4723. break 2
  4724. fi
  4725. done
  4726. done
  4727. IFS=$as_save_IFS
  4728. fi
  4729. fi
  4730. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4731. if test -n "$ac_ct_DUMPBIN"; then
  4732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4733. printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
  4734. else
  4735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. printf "%s\n" "no" >&6; }
  4737. fi
  4738. test -n "$ac_ct_DUMPBIN" && break
  4739. done
  4740. if test "x$ac_ct_DUMPBIN" = x; then
  4741. DUMPBIN=":"
  4742. else
  4743. case $cross_compiling:$ac_tool_warned in
  4744. yes:)
  4745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4746. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4747. ac_tool_warned=yes ;;
  4748. esac
  4749. DUMPBIN=$ac_ct_DUMPBIN
  4750. fi
  4751. fi
  4752. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4753. *COFF*)
  4754. DUMPBIN="$DUMPBIN -symbols -headers"
  4755. ;;
  4756. *)
  4757. DUMPBIN=:
  4758. ;;
  4759. esac
  4760. fi
  4761. if test : != "$DUMPBIN"; then
  4762. NM=$DUMPBIN
  4763. fi
  4764. fi
  4765. test -z "$NM" && NM=nm
  4766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4767. printf %s "checking the name lister ($NM) interface... " >&6; }
  4768. if test ${lt_cv_nm_interface+y}
  4769. then :
  4770. printf %s "(cached) " >&6
  4771. else $as_nop
  4772. lt_cv_nm_interface="BSD nm"
  4773. echo "int some_variable = 0;" > conftest.$ac_ext
  4774. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4775. (eval "$ac_compile" 2>conftest.err)
  4776. cat conftest.err >&5
  4777. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4778. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4779. cat conftest.err >&5
  4780. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4781. cat conftest.out >&5
  4782. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4783. lt_cv_nm_interface="MS dumpbin"
  4784. fi
  4785. rm -f conftest*
  4786. fi
  4787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4788. printf "%s\n" "$lt_cv_nm_interface" >&6; }
  4789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4790. printf %s "checking whether ln -s works... " >&6; }
  4791. LN_S=$as_ln_s
  4792. if test "$LN_S" = "ln -s"; then
  4793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4794. printf "%s\n" "yes" >&6; }
  4795. else
  4796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4797. printf "%s\n" "no, using $LN_S" >&6; }
  4798. fi
  4799. # find the maximum length of command line arguments
  4800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4801. printf %s "checking the maximum length of command line arguments... " >&6; }
  4802. if test ${lt_cv_sys_max_cmd_len+y}
  4803. then :
  4804. printf %s "(cached) " >&6
  4805. else $as_nop
  4806. i=0
  4807. teststring=ABCD
  4808. case $build_os in
  4809. msdosdjgpp*)
  4810. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4811. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4812. # during glob expansion). Even if it were fixed, the result of this
  4813. # check would be larger than it should be.
  4814. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4815. ;;
  4816. gnu*)
  4817. # Under GNU Hurd, this test is not required because there is
  4818. # no limit to the length of command line arguments.
  4819. # Libtool will interpret -1 as no limit whatsoever
  4820. lt_cv_sys_max_cmd_len=-1;
  4821. ;;
  4822. cygwin* | mingw* | cegcc*)
  4823. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4824. # about 5 minutes as the teststring grows exponentially.
  4825. # Worse, since 9x/ME are not pre-emptively multitasking,
  4826. # you end up with a "frozen" computer, even though with patience
  4827. # the test eventually succeeds (with a max line length of 256k).
  4828. # Instead, let's just punt: use the minimum linelength reported by
  4829. # all of the supported platforms: 8192 (on NT/2K/XP).
  4830. lt_cv_sys_max_cmd_len=8192;
  4831. ;;
  4832. mint*)
  4833. # On MiNT this can take a long time and run out of memory.
  4834. lt_cv_sys_max_cmd_len=8192;
  4835. ;;
  4836. amigaos*)
  4837. # On AmigaOS with pdksh, this test takes hours, literally.
  4838. # So we just punt and use a minimum line length of 8192.
  4839. lt_cv_sys_max_cmd_len=8192;
  4840. ;;
  4841. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  4842. # This has been around since 386BSD, at least. Likely further.
  4843. if test -x /sbin/sysctl; then
  4844. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4845. elif test -x /usr/sbin/sysctl; then
  4846. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4847. else
  4848. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4849. fi
  4850. # And add a safety zone
  4851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4852. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4853. ;;
  4854. interix*)
  4855. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4856. lt_cv_sys_max_cmd_len=196608
  4857. ;;
  4858. os2*)
  4859. # The test takes a long time on OS/2.
  4860. lt_cv_sys_max_cmd_len=8192
  4861. ;;
  4862. osf*)
  4863. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4864. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4865. # nice to cause kernel panics so lets avoid the loop below.
  4866. # First set a reasonable default.
  4867. lt_cv_sys_max_cmd_len=16384
  4868. #
  4869. if test -x /sbin/sysconfig; then
  4870. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4871. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4872. esac
  4873. fi
  4874. ;;
  4875. sco3.2v5*)
  4876. lt_cv_sys_max_cmd_len=102400
  4877. ;;
  4878. sysv5* | sco5v6* | sysv4.2uw2*)
  4879. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4880. if test -n "$kargmax"; then
  4881. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4882. else
  4883. lt_cv_sys_max_cmd_len=32768
  4884. fi
  4885. ;;
  4886. *)
  4887. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4888. if test -n "$lt_cv_sys_max_cmd_len" && \
  4889. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4890. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4891. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4892. else
  4893. # Make teststring a little bigger before we do anything with it.
  4894. # a 1K string should be a reasonable start.
  4895. for i in 1 2 3 4 5 6 7 8; do
  4896. teststring=$teststring$teststring
  4897. done
  4898. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4899. # If test is not a shell built-in, we'll probably end up computing a
  4900. # maximum length that is only half of the actual maximum length, but
  4901. # we can't tell.
  4902. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4903. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4904. test 17 != "$i" # 1/2 MB should be enough
  4905. do
  4906. i=`expr $i + 1`
  4907. teststring=$teststring$teststring
  4908. done
  4909. # Only check the string length outside the loop.
  4910. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4911. teststring=
  4912. # Add a significant safety factor because C++ compilers can tack on
  4913. # massive amounts of additional arguments before passing them to the
  4914. # linker. It appears as though 1/2 is a usable value.
  4915. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4916. fi
  4917. ;;
  4918. esac
  4919. fi
  4920. if test -n "$lt_cv_sys_max_cmd_len"; then
  4921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4922. printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
  4923. else
  4924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4925. printf "%s\n" "none" >&6; }
  4926. fi
  4927. max_cmd_len=$lt_cv_sys_max_cmd_len
  4928. : ${CP="cp -f"}
  4929. : ${MV="mv -f"}
  4930. : ${RM="rm -f"}
  4931. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4932. lt_unset=unset
  4933. else
  4934. lt_unset=false
  4935. fi
  4936. # test EBCDIC or ASCII
  4937. case `echo X|tr X '\101'` in
  4938. A) # ASCII based system
  4939. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4940. lt_SP2NL='tr \040 \012'
  4941. lt_NL2SP='tr \015\012 \040\040'
  4942. ;;
  4943. *) # EBCDIC based system
  4944. lt_SP2NL='tr \100 \n'
  4945. lt_NL2SP='tr \r\n \100\100'
  4946. ;;
  4947. esac
  4948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4949. printf %s "checking how to convert $build file names to $host format... " >&6; }
  4950. if test ${lt_cv_to_host_file_cmd+y}
  4951. then :
  4952. printf %s "(cached) " >&6
  4953. else $as_nop
  4954. case $host in
  4955. *-*-mingw* )
  4956. case $build in
  4957. *-*-mingw* ) # actually msys
  4958. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4959. ;;
  4960. *-*-cygwin* )
  4961. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4962. ;;
  4963. * ) # otherwise, assume *nix
  4964. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4965. ;;
  4966. esac
  4967. ;;
  4968. *-*-cygwin* )
  4969. case $build in
  4970. *-*-mingw* ) # actually msys
  4971. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4972. ;;
  4973. *-*-cygwin* )
  4974. lt_cv_to_host_file_cmd=func_convert_file_noop
  4975. ;;
  4976. * ) # otherwise, assume *nix
  4977. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4978. ;;
  4979. esac
  4980. ;;
  4981. * ) # unhandled hosts (and "normal" native builds)
  4982. lt_cv_to_host_file_cmd=func_convert_file_noop
  4983. ;;
  4984. esac
  4985. fi
  4986. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4988. printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
  4989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4990. printf %s "checking how to convert $build file names to toolchain format... " >&6; }
  4991. if test ${lt_cv_to_tool_file_cmd+y}
  4992. then :
  4993. printf %s "(cached) " >&6
  4994. else $as_nop
  4995. #assume ordinary cross tools, or native build.
  4996. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4997. case $host in
  4998. *-*-mingw* )
  4999. case $build in
  5000. *-*-mingw* ) # actually msys
  5001. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5002. ;;
  5003. esac
  5004. ;;
  5005. esac
  5006. fi
  5007. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5009. printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
  5010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5011. printf %s "checking for $LD option to reload object files... " >&6; }
  5012. if test ${lt_cv_ld_reload_flag+y}
  5013. then :
  5014. printf %s "(cached) " >&6
  5015. else $as_nop
  5016. lt_cv_ld_reload_flag='-r'
  5017. fi
  5018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5019. printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
  5020. reload_flag=$lt_cv_ld_reload_flag
  5021. case $reload_flag in
  5022. "" | " "*) ;;
  5023. *) reload_flag=" $reload_flag" ;;
  5024. esac
  5025. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5026. case $host_os in
  5027. cygwin* | mingw* | pw32* | cegcc*)
  5028. if test yes != "$GCC"; then
  5029. reload_cmds=false
  5030. fi
  5031. ;;
  5032. darwin*)
  5033. if test yes = "$GCC"; then
  5034. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5035. else
  5036. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5037. fi
  5038. ;;
  5039. esac
  5040. if test -n "$ac_tool_prefix"; then
  5041. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5042. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5043. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5044. printf %s "checking for $ac_word... " >&6; }
  5045. if test ${ac_cv_prog_OBJDUMP+y}
  5046. then :
  5047. printf %s "(cached) " >&6
  5048. else $as_nop
  5049. if test -n "$OBJDUMP"; then
  5050. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5051. else
  5052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5053. for as_dir in $PATH
  5054. do
  5055. IFS=$as_save_IFS
  5056. case $as_dir in #(((
  5057. '') as_dir=./ ;;
  5058. */) ;;
  5059. *) as_dir=$as_dir/ ;;
  5060. esac
  5061. for ac_exec_ext in '' $ac_executable_extensions; do
  5062. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5063. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5064. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5065. break 2
  5066. fi
  5067. done
  5068. done
  5069. IFS=$as_save_IFS
  5070. fi
  5071. fi
  5072. OBJDUMP=$ac_cv_prog_OBJDUMP
  5073. if test -n "$OBJDUMP"; then
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5075. printf "%s\n" "$OBJDUMP" >&6; }
  5076. else
  5077. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5078. printf "%s\n" "no" >&6; }
  5079. fi
  5080. fi
  5081. if test -z "$ac_cv_prog_OBJDUMP"; then
  5082. ac_ct_OBJDUMP=$OBJDUMP
  5083. # Extract the first word of "objdump", so it can be a program name with args.
  5084. set dummy objdump; ac_word=$2
  5085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5086. printf %s "checking for $ac_word... " >&6; }
  5087. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  5088. then :
  5089. printf %s "(cached) " >&6
  5090. else $as_nop
  5091. if test -n "$ac_ct_OBJDUMP"; then
  5092. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5093. else
  5094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5095. for as_dir in $PATH
  5096. do
  5097. IFS=$as_save_IFS
  5098. case $as_dir in #(((
  5099. '') as_dir=./ ;;
  5100. */) ;;
  5101. *) as_dir=$as_dir/ ;;
  5102. esac
  5103. for ac_exec_ext in '' $ac_executable_extensions; do
  5104. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5105. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5106. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5107. break 2
  5108. fi
  5109. done
  5110. done
  5111. IFS=$as_save_IFS
  5112. fi
  5113. fi
  5114. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5115. if test -n "$ac_ct_OBJDUMP"; then
  5116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5117. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  5118. else
  5119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5120. printf "%s\n" "no" >&6; }
  5121. fi
  5122. if test "x$ac_ct_OBJDUMP" = x; then
  5123. OBJDUMP="false"
  5124. else
  5125. case $cross_compiling:$ac_tool_warned in
  5126. yes:)
  5127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5128. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5129. ac_tool_warned=yes ;;
  5130. esac
  5131. OBJDUMP=$ac_ct_OBJDUMP
  5132. fi
  5133. else
  5134. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5135. fi
  5136. test -z "$OBJDUMP" && OBJDUMP=objdump
  5137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5138. printf %s "checking how to recognize dependent libraries... " >&6; }
  5139. if test ${lt_cv_deplibs_check_method+y}
  5140. then :
  5141. printf %s "(cached) " >&6
  5142. else $as_nop
  5143. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5144. lt_cv_file_magic_test_file=
  5145. lt_cv_deplibs_check_method='unknown'
  5146. # Need to set the preceding variable on all platforms that support
  5147. # interlibrary dependencies.
  5148. # 'none' -- dependencies not supported.
  5149. # 'unknown' -- same as none, but documents that we really don't know.
  5150. # 'pass_all' -- all dependencies passed with no checks.
  5151. # 'test_compile' -- check by making test program.
  5152. # 'file_magic [[regex]]' -- check by looking for files in library path
  5153. # that responds to the $file_magic_cmd with a given extended regex.
  5154. # If you have 'file' or equivalent on your system and you're not sure
  5155. # whether 'pass_all' will *always* work, you probably want this one.
  5156. case $host_os in
  5157. aix[4-9]*)
  5158. lt_cv_deplibs_check_method=pass_all
  5159. ;;
  5160. beos*)
  5161. lt_cv_deplibs_check_method=pass_all
  5162. ;;
  5163. bsdi[45]*)
  5164. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5165. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5166. lt_cv_file_magic_test_file=/shlib/libc.so
  5167. ;;
  5168. cygwin*)
  5169. # func_win32_libid is a shell function defined in ltmain.sh
  5170. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5171. lt_cv_file_magic_cmd='func_win32_libid'
  5172. lt_cv_deplibs_check_method=pass_all # SDL customization
  5173. ;;
  5174. mingw* | pw32*)
  5175. # Base MSYS/MinGW do not provide the 'file' command needed by
  5176. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5177. # unless we find 'file', for example because we are cross-compiling.
  5178. if ( file / ) >/dev/null 2>&1; then
  5179. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5180. lt_cv_file_magic_cmd='func_win32_libid'
  5181. else
  5182. # Keep this pattern in sync with the one in func_win32_libid.
  5183. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5184. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5185. fi
  5186. lt_cv_deplibs_check_method=pass_all # SDL customization
  5187. ;;
  5188. cegcc*)
  5189. # use the weaker test based on 'objdump'. See mingw*.
  5190. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5191. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5192. ;;
  5193. darwin* | rhapsody*)
  5194. lt_cv_deplibs_check_method=pass_all
  5195. ;;
  5196. freebsd* | dragonfly* | midnightbsd*)
  5197. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5198. case $host_cpu in
  5199. i*86 )
  5200. # Not sure whether the presence of OpenBSD here was a mistake.
  5201. # Let's accept both of them until this is cleared up.
  5202. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5203. lt_cv_file_magic_cmd=/usr/bin/file
  5204. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5205. ;;
  5206. esac
  5207. else
  5208. lt_cv_deplibs_check_method=pass_all
  5209. fi
  5210. ;;
  5211. haiku*)
  5212. lt_cv_deplibs_check_method=pass_all
  5213. ;;
  5214. hpux10.20* | hpux11*)
  5215. lt_cv_file_magic_cmd=/usr/bin/file
  5216. case $host_cpu in
  5217. ia64*)
  5218. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5219. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5220. ;;
  5221. hppa*64*)
  5222. 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]'
  5223. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5224. ;;
  5225. *)
  5226. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5227. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5228. ;;
  5229. esac
  5230. ;;
  5231. interix[3-9]*)
  5232. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5233. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5234. ;;
  5235. irix5* | irix6* | nonstopux*)
  5236. case $LD in
  5237. *-32|*"-32 ") libmagic=32-bit;;
  5238. *-n32|*"-n32 ") libmagic=N32;;
  5239. *-64|*"-64 ") libmagic=64-bit;;
  5240. *) libmagic=never-match;;
  5241. esac
  5242. lt_cv_deplibs_check_method=pass_all
  5243. ;;
  5244. # This must be glibc/ELF.
  5245. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5246. lt_cv_deplibs_check_method=pass_all
  5247. ;;
  5248. netbsd*)
  5249. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5250. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5251. else
  5252. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5253. fi
  5254. ;;
  5255. newos6*)
  5256. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5259. ;;
  5260. *nto* | *qnx*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. openbsd* | bitrig*)
  5264. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5265. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5266. else
  5267. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5268. fi
  5269. ;;
  5270. osf3* | osf4* | osf5*)
  5271. lt_cv_deplibs_check_method=pass_all
  5272. ;;
  5273. rdos*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276. solaris*)
  5277. lt_cv_deplibs_check_method=pass_all
  5278. ;;
  5279. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5280. lt_cv_deplibs_check_method=pass_all
  5281. ;;
  5282. sysv4 | sysv4.3*)
  5283. case $host_vendor in
  5284. motorola)
  5285. 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]'
  5286. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5287. ;;
  5288. ncr)
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. sequent)
  5292. lt_cv_file_magic_cmd='/bin/file'
  5293. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5294. ;;
  5295. sni)
  5296. lt_cv_file_magic_cmd='/bin/file'
  5297. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5298. lt_cv_file_magic_test_file=/lib/libc.so
  5299. ;;
  5300. siemens)
  5301. lt_cv_deplibs_check_method=pass_all
  5302. ;;
  5303. pc)
  5304. lt_cv_deplibs_check_method=pass_all
  5305. ;;
  5306. esac
  5307. ;;
  5308. tpf*)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. os2*)
  5312. lt_cv_deplibs_check_method=pass_all
  5313. ;;
  5314. esac
  5315. fi
  5316. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5317. printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
  5318. file_magic_glob=
  5319. want_nocaseglob=no
  5320. if test "$build" = "$host"; then
  5321. case $host_os in
  5322. mingw* | pw32*)
  5323. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5324. want_nocaseglob=yes
  5325. else
  5326. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5327. fi
  5328. ;;
  5329. esac
  5330. fi
  5331. file_magic_cmd=$lt_cv_file_magic_cmd
  5332. deplibs_check_method=$lt_cv_deplibs_check_method
  5333. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5334. if test -n "$ac_tool_prefix"; then
  5335. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5336. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5338. printf %s "checking for $ac_word... " >&6; }
  5339. if test ${ac_cv_prog_DLLTOOL+y}
  5340. then :
  5341. printf %s "(cached) " >&6
  5342. else $as_nop
  5343. if test -n "$DLLTOOL"; then
  5344. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5345. else
  5346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5347. for as_dir in $PATH
  5348. do
  5349. IFS=$as_save_IFS
  5350. case $as_dir in #(((
  5351. '') as_dir=./ ;;
  5352. */) ;;
  5353. *) as_dir=$as_dir/ ;;
  5354. esac
  5355. for ac_exec_ext in '' $ac_executable_extensions; do
  5356. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5357. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5358. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5359. break 2
  5360. fi
  5361. done
  5362. done
  5363. IFS=$as_save_IFS
  5364. fi
  5365. fi
  5366. DLLTOOL=$ac_cv_prog_DLLTOOL
  5367. if test -n "$DLLTOOL"; then
  5368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5369. printf "%s\n" "$DLLTOOL" >&6; }
  5370. else
  5371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5372. printf "%s\n" "no" >&6; }
  5373. fi
  5374. fi
  5375. if test -z "$ac_cv_prog_DLLTOOL"; then
  5376. ac_ct_DLLTOOL=$DLLTOOL
  5377. # Extract the first word of "dlltool", so it can be a program name with args.
  5378. set dummy dlltool; ac_word=$2
  5379. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5380. printf %s "checking for $ac_word... " >&6; }
  5381. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  5382. then :
  5383. printf %s "(cached) " >&6
  5384. else $as_nop
  5385. if test -n "$ac_ct_DLLTOOL"; then
  5386. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. case $as_dir in #(((
  5393. '') as_dir=./ ;;
  5394. */) ;;
  5395. *) as_dir=$as_dir/ ;;
  5396. esac
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5399. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5400. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5409. if test -n "$ac_ct_DLLTOOL"; then
  5410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5411. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  5412. else
  5413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5414. printf "%s\n" "no" >&6; }
  5415. fi
  5416. if test "x$ac_ct_DLLTOOL" = x; then
  5417. DLLTOOL="false"
  5418. else
  5419. case $cross_compiling:$ac_tool_warned in
  5420. yes:)
  5421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5422. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5423. ac_tool_warned=yes ;;
  5424. esac
  5425. DLLTOOL=$ac_ct_DLLTOOL
  5426. fi
  5427. else
  5428. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5429. fi
  5430. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5432. printf %s "checking how to associate runtime and link libraries... " >&6; }
  5433. if test ${lt_cv_sharedlib_from_linklib_cmd+y}
  5434. then :
  5435. printf %s "(cached) " >&6
  5436. else $as_nop
  5437. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5438. case $host_os in
  5439. cygwin* | mingw* | pw32* | cegcc*)
  5440. # two different shell functions defined in ltmain.sh;
  5441. # decide which one to use based on capabilities of $DLLTOOL
  5442. case `$DLLTOOL --help 2>&1` in
  5443. *--identify-strict*)
  5444. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5445. ;;
  5446. *)
  5447. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5448. ;;
  5449. esac
  5450. ;;
  5451. *)
  5452. # fallback: assume linklib IS sharedlib
  5453. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  5454. ;;
  5455. esac
  5456. fi
  5457. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5458. printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5459. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5460. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5461. if test -n "$ac_tool_prefix"; then
  5462. for ac_prog in ar
  5463. do
  5464. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5465. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5467. printf %s "checking for $ac_word... " >&6; }
  5468. if test ${ac_cv_prog_AR+y}
  5469. then :
  5470. printf %s "(cached) " >&6
  5471. else $as_nop
  5472. if test -n "$AR"; then
  5473. ac_cv_prog_AR="$AR" # Let the user override the test.
  5474. else
  5475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476. for as_dir in $PATH
  5477. do
  5478. IFS=$as_save_IFS
  5479. case $as_dir in #(((
  5480. '') as_dir=./ ;;
  5481. */) ;;
  5482. *) as_dir=$as_dir/ ;;
  5483. esac
  5484. for ac_exec_ext in '' $ac_executable_extensions; do
  5485. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5486. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5487. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5488. break 2
  5489. fi
  5490. done
  5491. done
  5492. IFS=$as_save_IFS
  5493. fi
  5494. fi
  5495. AR=$ac_cv_prog_AR
  5496. if test -n "$AR"; then
  5497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5498. printf "%s\n" "$AR" >&6; }
  5499. else
  5500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5501. printf "%s\n" "no" >&6; }
  5502. fi
  5503. test -n "$AR" && break
  5504. done
  5505. fi
  5506. if test -z "$AR"; then
  5507. ac_ct_AR=$AR
  5508. for ac_prog in ar
  5509. do
  5510. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5511. set dummy $ac_prog; ac_word=$2
  5512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5513. printf %s "checking for $ac_word... " >&6; }
  5514. if test ${ac_cv_prog_ac_ct_AR+y}
  5515. then :
  5516. printf %s "(cached) " >&6
  5517. else $as_nop
  5518. if test -n "$ac_ct_AR"; then
  5519. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5520. else
  5521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5522. for as_dir in $PATH
  5523. do
  5524. IFS=$as_save_IFS
  5525. case $as_dir in #(((
  5526. '') as_dir=./ ;;
  5527. */) ;;
  5528. *) as_dir=$as_dir/ ;;
  5529. esac
  5530. for ac_exec_ext in '' $ac_executable_extensions; do
  5531. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5532. ac_cv_prog_ac_ct_AR="$ac_prog"
  5533. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5534. break 2
  5535. fi
  5536. done
  5537. done
  5538. IFS=$as_save_IFS
  5539. fi
  5540. fi
  5541. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5542. if test -n "$ac_ct_AR"; then
  5543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5544. printf "%s\n" "$ac_ct_AR" >&6; }
  5545. else
  5546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5547. printf "%s\n" "no" >&6; }
  5548. fi
  5549. test -n "$ac_ct_AR" && break
  5550. done
  5551. if test "x$ac_ct_AR" = x; then
  5552. AR="false"
  5553. else
  5554. case $cross_compiling:$ac_tool_warned in
  5555. yes:)
  5556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5557. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5558. ac_tool_warned=yes ;;
  5559. esac
  5560. AR=$ac_ct_AR
  5561. fi
  5562. fi
  5563. : ${AR=ar}
  5564. : ${AR_FLAGS=cru}
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5566. printf %s "checking for archiver @FILE support... " >&6; }
  5567. if test ${lt_cv_ar_at_file+y}
  5568. then :
  5569. printf %s "(cached) " >&6
  5570. else $as_nop
  5571. lt_cv_ar_at_file=no
  5572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5573. /* end confdefs.h. */
  5574. int
  5575. main (void)
  5576. {
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. if ac_fn_c_try_compile "$LINENO"
  5582. then :
  5583. echo conftest.$ac_objext > conftest.lst
  5584. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5585. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5586. (eval $lt_ar_try) 2>&5
  5587. ac_status=$?
  5588. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5589. test $ac_status = 0; }
  5590. if test 0 -eq "$ac_status"; then
  5591. # Ensure the archiver fails upon bogus file names.
  5592. rm -f conftest.$ac_objext libconftest.a
  5593. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5594. (eval $lt_ar_try) 2>&5
  5595. ac_status=$?
  5596. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5597. test $ac_status = 0; }
  5598. if test 0 -ne "$ac_status"; then
  5599. lt_cv_ar_at_file=@
  5600. fi
  5601. fi
  5602. rm -f conftest.* libconftest.a
  5603. fi
  5604. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5605. fi
  5606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5607. printf "%s\n" "$lt_cv_ar_at_file" >&6; }
  5608. if test no = "$lt_cv_ar_at_file"; then
  5609. archiver_list_spec=
  5610. else
  5611. archiver_list_spec=$lt_cv_ar_at_file
  5612. fi
  5613. if test -n "$ac_tool_prefix"; then
  5614. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5615. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5617. printf %s "checking for $ac_word... " >&6; }
  5618. if test ${ac_cv_prog_STRIP+y}
  5619. then :
  5620. printf %s "(cached) " >&6
  5621. else $as_nop
  5622. if test -n "$STRIP"; then
  5623. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. case $as_dir in #(((
  5630. '') as_dir=./ ;;
  5631. */) ;;
  5632. *) as_dir=$as_dir/ ;;
  5633. esac
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5637. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. STRIP=$ac_cv_prog_STRIP
  5646. if test -n "$STRIP"; then
  5647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5648. printf "%s\n" "$STRIP" >&6; }
  5649. else
  5650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. printf "%s\n" "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_STRIP"; then
  5655. ac_ct_STRIP=$STRIP
  5656. # Extract the first word of "strip", so it can be a program name with args.
  5657. set dummy strip; ac_word=$2
  5658. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. printf %s "checking for $ac_word... " >&6; }
  5660. if test ${ac_cv_prog_ac_ct_STRIP+y}
  5661. then :
  5662. printf %s "(cached) " >&6
  5663. else $as_nop
  5664. if test -n "$ac_ct_STRIP"; then
  5665. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5666. else
  5667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5668. for as_dir in $PATH
  5669. do
  5670. IFS=$as_save_IFS
  5671. case $as_dir in #(((
  5672. '') as_dir=./ ;;
  5673. */) ;;
  5674. *) as_dir=$as_dir/ ;;
  5675. esac
  5676. for ac_exec_ext in '' $ac_executable_extensions; do
  5677. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5678. ac_cv_prog_ac_ct_STRIP="strip"
  5679. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5680. break 2
  5681. fi
  5682. done
  5683. done
  5684. IFS=$as_save_IFS
  5685. fi
  5686. fi
  5687. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5688. if test -n "$ac_ct_STRIP"; then
  5689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5690. printf "%s\n" "$ac_ct_STRIP" >&6; }
  5691. else
  5692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5693. printf "%s\n" "no" >&6; }
  5694. fi
  5695. if test "x$ac_ct_STRIP" = x; then
  5696. STRIP=":"
  5697. else
  5698. case $cross_compiling:$ac_tool_warned in
  5699. yes:)
  5700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5701. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5702. ac_tool_warned=yes ;;
  5703. esac
  5704. STRIP=$ac_ct_STRIP
  5705. fi
  5706. else
  5707. STRIP="$ac_cv_prog_STRIP"
  5708. fi
  5709. test -z "$STRIP" && STRIP=:
  5710. if test -n "$ac_tool_prefix"; then
  5711. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5712. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. printf %s "checking for $ac_word... " >&6; }
  5715. if test ${ac_cv_prog_RANLIB+y}
  5716. then :
  5717. printf %s "(cached) " >&6
  5718. else $as_nop
  5719. if test -n "$RANLIB"; then
  5720. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5721. else
  5722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5723. for as_dir in $PATH
  5724. do
  5725. IFS=$as_save_IFS
  5726. case $as_dir in #(((
  5727. '') as_dir=./ ;;
  5728. */) ;;
  5729. *) as_dir=$as_dir/ ;;
  5730. esac
  5731. for ac_exec_ext in '' $ac_executable_extensions; do
  5732. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5733. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5734. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5735. break 2
  5736. fi
  5737. done
  5738. done
  5739. IFS=$as_save_IFS
  5740. fi
  5741. fi
  5742. RANLIB=$ac_cv_prog_RANLIB
  5743. if test -n "$RANLIB"; then
  5744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5745. printf "%s\n" "$RANLIB" >&6; }
  5746. else
  5747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5748. printf "%s\n" "no" >&6; }
  5749. fi
  5750. fi
  5751. if test -z "$ac_cv_prog_RANLIB"; then
  5752. ac_ct_RANLIB=$RANLIB
  5753. # Extract the first word of "ranlib", so it can be a program name with args.
  5754. set dummy ranlib; ac_word=$2
  5755. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5756. printf %s "checking for $ac_word... " >&6; }
  5757. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5758. then :
  5759. printf %s "(cached) " >&6
  5760. else $as_nop
  5761. if test -n "$ac_ct_RANLIB"; then
  5762. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5763. else
  5764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5765. for as_dir in $PATH
  5766. do
  5767. IFS=$as_save_IFS
  5768. case $as_dir in #(((
  5769. '') as_dir=./ ;;
  5770. */) ;;
  5771. *) as_dir=$as_dir/ ;;
  5772. esac
  5773. for ac_exec_ext in '' $ac_executable_extensions; do
  5774. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5775. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5776. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5777. break 2
  5778. fi
  5779. done
  5780. done
  5781. IFS=$as_save_IFS
  5782. fi
  5783. fi
  5784. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5785. if test -n "$ac_ct_RANLIB"; then
  5786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5787. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5788. else
  5789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5790. printf "%s\n" "no" >&6; }
  5791. fi
  5792. if test "x$ac_ct_RANLIB" = x; then
  5793. RANLIB=":"
  5794. else
  5795. case $cross_compiling:$ac_tool_warned in
  5796. yes:)
  5797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5798. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5799. ac_tool_warned=yes ;;
  5800. esac
  5801. RANLIB=$ac_ct_RANLIB
  5802. fi
  5803. else
  5804. RANLIB="$ac_cv_prog_RANLIB"
  5805. fi
  5806. test -z "$RANLIB" && RANLIB=:
  5807. # Determine commands to create old-style static archives.
  5808. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5809. old_postinstall_cmds='chmod 644 $oldlib'
  5810. old_postuninstall_cmds=
  5811. if test -n "$RANLIB"; then
  5812. case $host_os in
  5813. bitrig* | openbsd*)
  5814. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5815. ;;
  5816. *)
  5817. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5818. ;;
  5819. esac
  5820. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5821. fi
  5822. case $host_os in
  5823. darwin*)
  5824. lock_old_archive_extraction=yes ;;
  5825. *)
  5826. lock_old_archive_extraction=no ;;
  5827. esac
  5828. for ac_prog in gawk mawk nawk awk
  5829. do
  5830. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5831. set dummy $ac_prog; ac_word=$2
  5832. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. printf %s "checking for $ac_word... " >&6; }
  5834. if test ${ac_cv_prog_AWK+y}
  5835. then :
  5836. printf %s "(cached) " >&6
  5837. else $as_nop
  5838. if test -n "$AWK"; then
  5839. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5840. else
  5841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5842. for as_dir in $PATH
  5843. do
  5844. IFS=$as_save_IFS
  5845. case $as_dir in #(((
  5846. '') as_dir=./ ;;
  5847. */) ;;
  5848. *) as_dir=$as_dir/ ;;
  5849. esac
  5850. for ac_exec_ext in '' $ac_executable_extensions; do
  5851. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5852. ac_cv_prog_AWK="$ac_prog"
  5853. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5854. break 2
  5855. fi
  5856. done
  5857. done
  5858. IFS=$as_save_IFS
  5859. fi
  5860. fi
  5861. AWK=$ac_cv_prog_AWK
  5862. if test -n "$AWK"; then
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5864. printf "%s\n" "$AWK" >&6; }
  5865. else
  5866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5867. printf "%s\n" "no" >&6; }
  5868. fi
  5869. test -n "$AWK" && break
  5870. done
  5871. # If no C compiler was specified, use CC.
  5872. LTCC=${LTCC-"$CC"}
  5873. # If no C compiler flags were specified, use CFLAGS.
  5874. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5875. # Allow CC to be a program name with arguments.
  5876. compiler=$CC
  5877. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5879. printf %s "checking command to parse $NM output from $compiler object... " >&6; }
  5880. if test ${lt_cv_sys_global_symbol_pipe+y}
  5881. then :
  5882. printf %s "(cached) " >&6
  5883. else $as_nop
  5884. # These are sane defaults that work on at least a few old systems.
  5885. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5886. # Character class describing NM global symbol codes.
  5887. symcode='[BCDEGRST]'
  5888. # Regexp to match symbols that can be accessed directly from C.
  5889. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5890. # Define system-specific variables.
  5891. case $host_os in
  5892. aix*)
  5893. symcode='[BCDT]'
  5894. ;;
  5895. cygwin* | mingw* | pw32* | cegcc*)
  5896. symcode='[ABCDGISTW]'
  5897. ;;
  5898. hpux*)
  5899. if test ia64 = "$host_cpu"; then
  5900. symcode='[ABCDEGRST]'
  5901. fi
  5902. ;;
  5903. irix* | nonstopux*)
  5904. symcode='[BCDEGRST]'
  5905. ;;
  5906. osf*)
  5907. symcode='[BCDEGQRST]'
  5908. ;;
  5909. solaris*)
  5910. symcode='[BCDRT]'
  5911. ;;
  5912. sco3.2v5*)
  5913. symcode='[DT]'
  5914. ;;
  5915. sysv4.2uw2*)
  5916. symcode='[DT]'
  5917. ;;
  5918. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5919. symcode='[ABDT]'
  5920. ;;
  5921. sysv4)
  5922. symcode='[DFNSTU]'
  5923. ;;
  5924. esac
  5925. # If we're using GNU nm, then use its standard symbol codes.
  5926. case `$NM -V 2>&1` in
  5927. *GNU* | *'with BFD'*)
  5928. symcode='[ABCDGIRSTW]' ;;
  5929. esac
  5930. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5931. # Gets list of data symbols to import.
  5932. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5933. # Adjust the below global symbol transforms to fixup imported variables.
  5934. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5935. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5936. lt_c_name_lib_hook="\
  5937. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5938. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5939. else
  5940. # Disable hooks by default.
  5941. lt_cv_sys_global_symbol_to_import=
  5942. lt_cdecl_hook=
  5943. lt_c_name_hook=
  5944. lt_c_name_lib_hook=
  5945. fi
  5946. # Transform an extracted symbol line into a proper C declaration.
  5947. # Some systems (esp. on ia64) link data and code symbols differently,
  5948. # so use this general approach.
  5949. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5950. $lt_cdecl_hook\
  5951. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5952. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5953. # Transform an extracted symbol line into symbol name and symbol address
  5954. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5955. $lt_c_name_hook\
  5956. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5957. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5958. # Transform an extracted symbol line into symbol name with lib prefix and
  5959. # symbol address.
  5960. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5961. $lt_c_name_lib_hook\
  5962. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5963. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5964. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5965. # Handle CRLF in mingw tool chain
  5966. opt_cr=
  5967. case $build_os in
  5968. mingw*)
  5969. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5970. ;;
  5971. esac
  5972. # Try without a prefix underscore, then with it.
  5973. for ac_symprfx in "" "_"; do
  5974. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5975. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5976. # Write the raw and C identifiers.
  5977. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5978. # Fake it for dumpbin and say T for any non-static function,
  5979. # D for any global variable and I for any imported variable.
  5980. # Also find C++ and __fastcall symbols from MSVC++,
  5981. # which start with @ or ?.
  5982. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5983. " {last_section=section; section=\$ 3};"\
  5984. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5985. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5986. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5987. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5988. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5989. " \$ 0!~/External *\|/{next};"\
  5990. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5991. " {if(hide[section]) next};"\
  5992. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5993. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5994. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5995. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5996. " ' prfx=^$ac_symprfx"
  5997. else
  5998. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5999. fi
  6000. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6001. # Check to see that the pipe works correctly.
  6002. pipe_works=no
  6003. rm -f conftest*
  6004. cat > conftest.$ac_ext <<_LT_EOF
  6005. #ifdef __cplusplus
  6006. extern "C" {
  6007. #endif
  6008. char nm_test_var;
  6009. void nm_test_func(void);
  6010. void nm_test_func(void){}
  6011. #ifdef __cplusplus
  6012. }
  6013. #endif
  6014. int main(){nm_test_var='a';nm_test_func();return(0);}
  6015. _LT_EOF
  6016. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6017. (eval $ac_compile) 2>&5
  6018. ac_status=$?
  6019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6020. test $ac_status = 0; }; then
  6021. # Now try to grab the symbols.
  6022. nlist=conftest.nm
  6023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6024. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6025. ac_status=$?
  6026. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6027. test $ac_status = 0; } && test -s "$nlist"; then
  6028. # Try sorting and uniquifying the output.
  6029. if sort "$nlist" | uniq > "$nlist"T; then
  6030. mv -f "$nlist"T "$nlist"
  6031. else
  6032. rm -f "$nlist"T
  6033. fi
  6034. # Make sure that we snagged all the symbols we need.
  6035. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6036. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6037. cat <<_LT_EOF > conftest.$ac_ext
  6038. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6039. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6040. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6041. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6042. # define LT_DLSYM_CONST
  6043. #elif defined __osf__
  6044. /* This system does not cope well with relocations in const data. */
  6045. # define LT_DLSYM_CONST
  6046. #else
  6047. # define LT_DLSYM_CONST const
  6048. #endif
  6049. #ifdef __cplusplus
  6050. extern "C" {
  6051. #endif
  6052. _LT_EOF
  6053. # Now generate the symbol file.
  6054. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6055. cat <<_LT_EOF >> conftest.$ac_ext
  6056. /* The mapping between symbol names and symbols. */
  6057. LT_DLSYM_CONST struct {
  6058. const char *name;
  6059. void *address;
  6060. }
  6061. lt__PROGRAM__LTX_preloaded_symbols[] =
  6062. {
  6063. { "@PROGRAM@", (void *) 0 },
  6064. _LT_EOF
  6065. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6066. cat <<\_LT_EOF >> conftest.$ac_ext
  6067. {0, (void *) 0}
  6068. };
  6069. /* This works around a problem in FreeBSD linker */
  6070. #ifdef FREEBSD_WORKAROUND
  6071. static const void *lt_preloaded_setup() {
  6072. return lt__PROGRAM__LTX_preloaded_symbols;
  6073. }
  6074. #endif
  6075. #ifdef __cplusplus
  6076. }
  6077. #endif
  6078. _LT_EOF
  6079. # Now try linking the two files.
  6080. mv conftest.$ac_objext conftstm.$ac_objext
  6081. lt_globsym_save_LIBS=$LIBS
  6082. lt_globsym_save_CFLAGS=$CFLAGS
  6083. LIBS=conftstm.$ac_objext
  6084. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6085. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6086. (eval $ac_link) 2>&5
  6087. ac_status=$?
  6088. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6089. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6090. pipe_works=yes
  6091. fi
  6092. LIBS=$lt_globsym_save_LIBS
  6093. CFLAGS=$lt_globsym_save_CFLAGS
  6094. else
  6095. echo "cannot find nm_test_func in $nlist" >&5
  6096. fi
  6097. else
  6098. echo "cannot find nm_test_var in $nlist" >&5
  6099. fi
  6100. else
  6101. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6102. fi
  6103. else
  6104. echo "$progname: failed program was:" >&5
  6105. cat conftest.$ac_ext >&5
  6106. fi
  6107. rm -rf conftest* conftst*
  6108. # Do not use the global_symbol_pipe unless it works.
  6109. if test yes = "$pipe_works"; then
  6110. break
  6111. else
  6112. lt_cv_sys_global_symbol_pipe=
  6113. fi
  6114. done
  6115. fi
  6116. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6117. lt_cv_sys_global_symbol_to_cdecl=
  6118. fi
  6119. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6121. printf "%s\n" "failed" >&6; }
  6122. else
  6123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6124. printf "%s\n" "ok" >&6; }
  6125. fi
  6126. # Response file support.
  6127. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6128. nm_file_list_spec='@'
  6129. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6130. nm_file_list_spec='@'
  6131. fi
  6132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6133. printf %s "checking for sysroot... " >&6; }
  6134. # Check whether --with-sysroot was given.
  6135. if test ${with_sysroot+y}
  6136. then :
  6137. withval=$with_sysroot;
  6138. else $as_nop
  6139. with_sysroot=no
  6140. fi
  6141. lt_sysroot=
  6142. case $with_sysroot in #(
  6143. yes)
  6144. if test yes = "$GCC"; then
  6145. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6146. fi
  6147. ;; #(
  6148. /*)
  6149. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6150. ;; #(
  6151. no|'')
  6152. ;; #(
  6153. *)
  6154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6155. printf "%s\n" "$with_sysroot" >&6; }
  6156. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6157. ;;
  6158. esac
  6159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6160. printf "%s\n" "${lt_sysroot:-no}" >&6; }
  6161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6162. printf %s "checking for a working dd... " >&6; }
  6163. if test ${ac_cv_path_lt_DD+y}
  6164. then :
  6165. printf %s "(cached) " >&6
  6166. else $as_nop
  6167. printf 0123456789abcdef0123456789abcdef >conftest.i
  6168. cat conftest.i conftest.i >conftest2.i
  6169. : ${lt_DD:=$DD}
  6170. if test -z "$lt_DD"; then
  6171. ac_path_lt_DD_found=false
  6172. # Loop through the user's path and test for each of PROGNAME-LIST
  6173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6174. for as_dir in $PATH
  6175. do
  6176. IFS=$as_save_IFS
  6177. case $as_dir in #(((
  6178. '') as_dir=./ ;;
  6179. */) ;;
  6180. *) as_dir=$as_dir/ ;;
  6181. esac
  6182. for ac_prog in dd
  6183. do
  6184. for ac_exec_ext in '' $ac_executable_extensions; do
  6185. ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
  6186. as_fn_executable_p "$ac_path_lt_DD" || continue
  6187. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6188. cmp -s conftest.i conftest.out \
  6189. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6190. fi
  6191. $ac_path_lt_DD_found && break 3
  6192. done
  6193. done
  6194. done
  6195. IFS=$as_save_IFS
  6196. if test -z "$ac_cv_path_lt_DD"; then
  6197. :
  6198. fi
  6199. else
  6200. ac_cv_path_lt_DD=$lt_DD
  6201. fi
  6202. rm -f conftest.i conftest2.i conftest.out
  6203. fi
  6204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6205. printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
  6206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6207. printf %s "checking how to truncate binary pipes... " >&6; }
  6208. if test ${lt_cv_truncate_bin+y}
  6209. then :
  6210. printf %s "(cached) " >&6
  6211. else $as_nop
  6212. printf 0123456789abcdef0123456789abcdef >conftest.i
  6213. cat conftest.i conftest.i >conftest2.i
  6214. lt_cv_truncate_bin=
  6215. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6216. cmp -s conftest.i conftest.out \
  6217. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6218. fi
  6219. rm -f conftest.i conftest2.i conftest.out
  6220. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6221. fi
  6222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6223. printf "%s\n" "$lt_cv_truncate_bin" >&6; }
  6224. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6225. func_cc_basename ()
  6226. {
  6227. for cc_temp in $*""; do
  6228. case $cc_temp in
  6229. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6230. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6231. \-*) ;;
  6232. *) break;;
  6233. esac
  6234. done
  6235. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6236. }
  6237. # Check whether --enable-libtool-lock was given.
  6238. if test ${enable_libtool_lock+y}
  6239. then :
  6240. enableval=$enable_libtool_lock;
  6241. fi
  6242. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6243. # Some flags need to be propagated to the compiler or linker for good
  6244. # libtool support.
  6245. case $host in
  6246. ia64-*-hpux*)
  6247. # Find out what ABI is being produced by ac_compile, and set mode
  6248. # options accordingly.
  6249. echo 'int i;' > conftest.$ac_ext
  6250. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6251. (eval $ac_compile) 2>&5
  6252. ac_status=$?
  6253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6254. test $ac_status = 0; }; then
  6255. case `/usr/bin/file conftest.$ac_objext` in
  6256. *ELF-32*)
  6257. HPUX_IA64_MODE=32
  6258. ;;
  6259. *ELF-64*)
  6260. HPUX_IA64_MODE=64
  6261. ;;
  6262. esac
  6263. fi
  6264. rm -rf conftest*
  6265. ;;
  6266. *-*-irix6*)
  6267. # Find out what ABI is being produced by ac_compile, and set linker
  6268. # options accordingly.
  6269. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6270. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6271. (eval $ac_compile) 2>&5
  6272. ac_status=$?
  6273. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6274. test $ac_status = 0; }; then
  6275. if test yes = "$lt_cv_prog_gnu_ld"; then
  6276. case `/usr/bin/file conftest.$ac_objext` in
  6277. *32-bit*)
  6278. LD="${LD-ld} -melf32bsmip"
  6279. ;;
  6280. *N32*)
  6281. LD="${LD-ld} -melf32bmipn32"
  6282. ;;
  6283. *64-bit*)
  6284. LD="${LD-ld} -melf64bmip"
  6285. ;;
  6286. esac
  6287. else
  6288. case `/usr/bin/file conftest.$ac_objext` in
  6289. *32-bit*)
  6290. LD="${LD-ld} -32"
  6291. ;;
  6292. *N32*)
  6293. LD="${LD-ld} -n32"
  6294. ;;
  6295. *64-bit*)
  6296. LD="${LD-ld} -64"
  6297. ;;
  6298. esac
  6299. fi
  6300. fi
  6301. rm -rf conftest*
  6302. ;;
  6303. mips64*-*linux*)
  6304. # Find out what ABI is being produced by ac_compile, and set linker
  6305. # options accordingly.
  6306. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6307. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6308. (eval $ac_compile) 2>&5
  6309. ac_status=$?
  6310. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6311. test $ac_status = 0; }; then
  6312. emul=elf
  6313. case `/usr/bin/file conftest.$ac_objext` in
  6314. *32-bit*)
  6315. emul="${emul}32"
  6316. ;;
  6317. *64-bit*)
  6318. emul="${emul}64"
  6319. ;;
  6320. esac
  6321. case `/usr/bin/file conftest.$ac_objext` in
  6322. *MSB*)
  6323. emul="${emul}btsmip"
  6324. ;;
  6325. *LSB*)
  6326. emul="${emul}ltsmip"
  6327. ;;
  6328. esac
  6329. case `/usr/bin/file conftest.$ac_objext` in
  6330. *N32*)
  6331. emul="${emul}n32"
  6332. ;;
  6333. esac
  6334. LD="${LD-ld} -m $emul"
  6335. fi
  6336. rm -rf conftest*
  6337. ;;
  6338. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6339. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6340. # Find out what ABI is being produced by ac_compile, and set linker
  6341. # options accordingly. Note that the listed cases only cover the
  6342. # situations where additional linker options are needed (such as when
  6343. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6344. # vice versa); the common cases where no linker options are needed do
  6345. # not appear in the list.
  6346. echo 'int i;' > conftest.$ac_ext
  6347. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6348. (eval $ac_compile) 2>&5
  6349. ac_status=$?
  6350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6351. test $ac_status = 0; }; then
  6352. case `/usr/bin/file conftest.o` in
  6353. *32-bit*)
  6354. case $host in
  6355. x86_64-*kfreebsd*-gnu)
  6356. LD="${LD-ld} -m elf_i386_fbsd"
  6357. ;;
  6358. x86_64-*linux*)
  6359. case `/usr/bin/file conftest.o` in
  6360. *x86-64*)
  6361. LD="${LD-ld} -m elf32_x86_64"
  6362. ;;
  6363. *)
  6364. LD="${LD-ld} -m elf_i386"
  6365. ;;
  6366. esac
  6367. ;;
  6368. powerpc64le-*linux*)
  6369. LD="${LD-ld} -m elf32lppclinux"
  6370. ;;
  6371. powerpc64-*linux*)
  6372. LD="${LD-ld} -m elf32ppclinux"
  6373. ;;
  6374. s390x-*linux*)
  6375. LD="${LD-ld} -m elf_s390"
  6376. ;;
  6377. sparc64-*linux*)
  6378. LD="${LD-ld} -m elf32_sparc"
  6379. ;;
  6380. esac
  6381. ;;
  6382. *64-bit*)
  6383. case $host in
  6384. x86_64-*kfreebsd*-gnu)
  6385. LD="${LD-ld} -m elf_x86_64_fbsd"
  6386. ;;
  6387. x86_64-*linux*)
  6388. LD="${LD-ld} -m elf_x86_64"
  6389. ;;
  6390. powerpcle-*linux*|powerpc64le-*linux*)
  6391. LD="${LD-ld} -m elf64lppc"
  6392. ;;
  6393. powerpc-*linux*|powerpc64-*linux*)
  6394. LD="${LD-ld} -m elf64ppc"
  6395. ;;
  6396. s390*-*linux*|s390*-*tpf*)
  6397. LD="${LD-ld} -m elf64_s390"
  6398. ;;
  6399. sparc*-*linux*)
  6400. LD="${LD-ld} -m elf64_sparc"
  6401. ;;
  6402. esac
  6403. ;;
  6404. esac
  6405. fi
  6406. rm -rf conftest*
  6407. ;;
  6408. *-*-sco3.2v5*)
  6409. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6410. SAVE_CFLAGS=$CFLAGS
  6411. CFLAGS="$CFLAGS -belf"
  6412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6413. printf %s "checking whether the C compiler needs -belf... " >&6; }
  6414. if test ${lt_cv_cc_needs_belf+y}
  6415. then :
  6416. printf %s "(cached) " >&6
  6417. else $as_nop
  6418. ac_ext=c
  6419. ac_cpp='$CPP $CPPFLAGS'
  6420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6424. /* end confdefs.h. */
  6425. int
  6426. main (void)
  6427. {
  6428. ;
  6429. return 0;
  6430. }
  6431. _ACEOF
  6432. if ac_fn_c_try_link "$LINENO"
  6433. then :
  6434. lt_cv_cc_needs_belf=yes
  6435. else $as_nop
  6436. lt_cv_cc_needs_belf=no
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. fi
  6446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6447. printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
  6448. if test yes != "$lt_cv_cc_needs_belf"; then
  6449. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6450. CFLAGS=$SAVE_CFLAGS
  6451. fi
  6452. ;;
  6453. *-*solaris*)
  6454. # Find out what ABI is being produced by ac_compile, and set linker
  6455. # options accordingly.
  6456. echo 'int i;' > conftest.$ac_ext
  6457. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6458. (eval $ac_compile) 2>&5
  6459. ac_status=$?
  6460. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6461. test $ac_status = 0; }; then
  6462. case `/usr/bin/file conftest.o` in
  6463. *64-bit*)
  6464. case $lt_cv_prog_gnu_ld in
  6465. yes*)
  6466. case $host in
  6467. i?86-*-solaris*|x86_64-*-solaris*)
  6468. LD="${LD-ld} -m elf_x86_64"
  6469. ;;
  6470. sparc*-*-solaris*)
  6471. LD="${LD-ld} -m elf64_sparc"
  6472. ;;
  6473. esac
  6474. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6475. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6476. LD=${LD-ld}_sol2
  6477. fi
  6478. ;;
  6479. *)
  6480. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6481. LD="${LD-ld} -64"
  6482. fi
  6483. ;;
  6484. esac
  6485. ;;
  6486. esac
  6487. fi
  6488. rm -rf conftest*
  6489. ;;
  6490. esac
  6491. need_locks=$enable_libtool_lock
  6492. if test -n "$ac_tool_prefix"; then
  6493. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6494. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6496. printf %s "checking for $ac_word... " >&6; }
  6497. if test ${ac_cv_prog_MANIFEST_TOOL+y}
  6498. then :
  6499. printf %s "(cached) " >&6
  6500. else $as_nop
  6501. if test -n "$MANIFEST_TOOL"; then
  6502. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6503. else
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. case $as_dir in #(((
  6509. '') as_dir=./ ;;
  6510. */) ;;
  6511. *) as_dir=$as_dir/ ;;
  6512. esac
  6513. for ac_exec_ext in '' $ac_executable_extensions; do
  6514. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6515. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6517. break 2
  6518. fi
  6519. done
  6520. done
  6521. IFS=$as_save_IFS
  6522. fi
  6523. fi
  6524. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6525. if test -n "$MANIFEST_TOOL"; then
  6526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6527. printf "%s\n" "$MANIFEST_TOOL" >&6; }
  6528. else
  6529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6530. printf "%s\n" "no" >&6; }
  6531. fi
  6532. fi
  6533. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6534. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6535. # Extract the first word of "mt", so it can be a program name with args.
  6536. set dummy mt; ac_word=$2
  6537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6538. printf %s "checking for $ac_word... " >&6; }
  6539. if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
  6540. then :
  6541. printf %s "(cached) " >&6
  6542. else $as_nop
  6543. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6544. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6545. else
  6546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6547. for as_dir in $PATH
  6548. do
  6549. IFS=$as_save_IFS
  6550. case $as_dir in #(((
  6551. '') as_dir=./ ;;
  6552. */) ;;
  6553. *) as_dir=$as_dir/ ;;
  6554. esac
  6555. for ac_exec_ext in '' $ac_executable_extensions; do
  6556. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6557. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6558. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6559. break 2
  6560. fi
  6561. done
  6562. done
  6563. IFS=$as_save_IFS
  6564. fi
  6565. fi
  6566. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6567. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6569. printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
  6570. else
  6571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6572. printf "%s\n" "no" >&6; }
  6573. fi
  6574. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6575. MANIFEST_TOOL=":"
  6576. else
  6577. case $cross_compiling:$ac_tool_warned in
  6578. yes:)
  6579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6580. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6581. ac_tool_warned=yes ;;
  6582. esac
  6583. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6584. fi
  6585. else
  6586. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6587. fi
  6588. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6590. printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6591. if test ${lt_cv_path_mainfest_tool+y}
  6592. then :
  6593. printf %s "(cached) " >&6
  6594. else $as_nop
  6595. lt_cv_path_mainfest_tool=no
  6596. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6597. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6598. cat conftest.err >&5
  6599. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6600. lt_cv_path_mainfest_tool=yes
  6601. fi
  6602. rm -f conftest*
  6603. fi
  6604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6605. printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
  6606. if test yes != "$lt_cv_path_mainfest_tool"; then
  6607. MANIFEST_TOOL=:
  6608. fi
  6609. case $host_os in
  6610. rhapsody* | darwin*)
  6611. if test -n "$ac_tool_prefix"; then
  6612. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6613. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6615. printf %s "checking for $ac_word... " >&6; }
  6616. if test ${ac_cv_prog_DSYMUTIL+y}
  6617. then :
  6618. printf %s "(cached) " >&6
  6619. else $as_nop
  6620. if test -n "$DSYMUTIL"; then
  6621. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6622. else
  6623. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6624. for as_dir in $PATH
  6625. do
  6626. IFS=$as_save_IFS
  6627. case $as_dir in #(((
  6628. '') as_dir=./ ;;
  6629. */) ;;
  6630. *) as_dir=$as_dir/ ;;
  6631. esac
  6632. for ac_exec_ext in '' $ac_executable_extensions; do
  6633. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6634. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6635. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6636. break 2
  6637. fi
  6638. done
  6639. done
  6640. IFS=$as_save_IFS
  6641. fi
  6642. fi
  6643. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6644. if test -n "$DSYMUTIL"; then
  6645. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6646. printf "%s\n" "$DSYMUTIL" >&6; }
  6647. else
  6648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6649. printf "%s\n" "no" >&6; }
  6650. fi
  6651. fi
  6652. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6653. ac_ct_DSYMUTIL=$DSYMUTIL
  6654. # Extract the first word of "dsymutil", so it can be a program name with args.
  6655. set dummy dsymutil; ac_word=$2
  6656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6657. printf %s "checking for $ac_word... " >&6; }
  6658. if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
  6659. then :
  6660. printf %s "(cached) " >&6
  6661. else $as_nop
  6662. if test -n "$ac_ct_DSYMUTIL"; then
  6663. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6664. else
  6665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6666. for as_dir in $PATH
  6667. do
  6668. IFS=$as_save_IFS
  6669. case $as_dir in #(((
  6670. '') as_dir=./ ;;
  6671. */) ;;
  6672. *) as_dir=$as_dir/ ;;
  6673. esac
  6674. for ac_exec_ext in '' $ac_executable_extensions; do
  6675. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6676. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6678. break 2
  6679. fi
  6680. done
  6681. done
  6682. IFS=$as_save_IFS
  6683. fi
  6684. fi
  6685. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6686. if test -n "$ac_ct_DSYMUTIL"; then
  6687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6688. printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
  6689. else
  6690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6691. printf "%s\n" "no" >&6; }
  6692. fi
  6693. if test "x$ac_ct_DSYMUTIL" = x; then
  6694. DSYMUTIL=":"
  6695. else
  6696. case $cross_compiling:$ac_tool_warned in
  6697. yes:)
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6699. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6700. ac_tool_warned=yes ;;
  6701. esac
  6702. DSYMUTIL=$ac_ct_DSYMUTIL
  6703. fi
  6704. else
  6705. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6706. fi
  6707. if test -n "$ac_tool_prefix"; then
  6708. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6709. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6711. printf %s "checking for $ac_word... " >&6; }
  6712. if test ${ac_cv_prog_NMEDIT+y}
  6713. then :
  6714. printf %s "(cached) " >&6
  6715. else $as_nop
  6716. if test -n "$NMEDIT"; then
  6717. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6718. else
  6719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6720. for as_dir in $PATH
  6721. do
  6722. IFS=$as_save_IFS
  6723. case $as_dir in #(((
  6724. '') as_dir=./ ;;
  6725. */) ;;
  6726. *) as_dir=$as_dir/ ;;
  6727. esac
  6728. for ac_exec_ext in '' $ac_executable_extensions; do
  6729. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6730. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6731. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6732. break 2
  6733. fi
  6734. done
  6735. done
  6736. IFS=$as_save_IFS
  6737. fi
  6738. fi
  6739. NMEDIT=$ac_cv_prog_NMEDIT
  6740. if test -n "$NMEDIT"; then
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6742. printf "%s\n" "$NMEDIT" >&6; }
  6743. else
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6745. printf "%s\n" "no" >&6; }
  6746. fi
  6747. fi
  6748. if test -z "$ac_cv_prog_NMEDIT"; then
  6749. ac_ct_NMEDIT=$NMEDIT
  6750. # Extract the first word of "nmedit", so it can be a program name with args.
  6751. set dummy nmedit; ac_word=$2
  6752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. printf %s "checking for $ac_word... " >&6; }
  6754. if test ${ac_cv_prog_ac_ct_NMEDIT+y}
  6755. then :
  6756. printf %s "(cached) " >&6
  6757. else $as_nop
  6758. if test -n "$ac_ct_NMEDIT"; then
  6759. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6760. else
  6761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6762. for as_dir in $PATH
  6763. do
  6764. IFS=$as_save_IFS
  6765. case $as_dir in #(((
  6766. '') as_dir=./ ;;
  6767. */) ;;
  6768. *) as_dir=$as_dir/ ;;
  6769. esac
  6770. for ac_exec_ext in '' $ac_executable_extensions; do
  6771. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6772. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6773. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6774. break 2
  6775. fi
  6776. done
  6777. done
  6778. IFS=$as_save_IFS
  6779. fi
  6780. fi
  6781. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6782. if test -n "$ac_ct_NMEDIT"; then
  6783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6784. printf "%s\n" "$ac_ct_NMEDIT" >&6; }
  6785. else
  6786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. printf "%s\n" "no" >&6; }
  6788. fi
  6789. if test "x$ac_ct_NMEDIT" = x; then
  6790. NMEDIT=":"
  6791. else
  6792. case $cross_compiling:$ac_tool_warned in
  6793. yes:)
  6794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6795. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6796. ac_tool_warned=yes ;;
  6797. esac
  6798. NMEDIT=$ac_ct_NMEDIT
  6799. fi
  6800. else
  6801. NMEDIT="$ac_cv_prog_NMEDIT"
  6802. fi
  6803. if test -n "$ac_tool_prefix"; then
  6804. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6805. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6807. printf %s "checking for $ac_word... " >&6; }
  6808. if test ${ac_cv_prog_LIPO+y}
  6809. then :
  6810. printf %s "(cached) " >&6
  6811. else $as_nop
  6812. if test -n "$LIPO"; then
  6813. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6814. else
  6815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6816. for as_dir in $PATH
  6817. do
  6818. IFS=$as_save_IFS
  6819. case $as_dir in #(((
  6820. '') as_dir=./ ;;
  6821. */) ;;
  6822. *) as_dir=$as_dir/ ;;
  6823. esac
  6824. for ac_exec_ext in '' $ac_executable_extensions; do
  6825. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6826. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6827. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6828. break 2
  6829. fi
  6830. done
  6831. done
  6832. IFS=$as_save_IFS
  6833. fi
  6834. fi
  6835. LIPO=$ac_cv_prog_LIPO
  6836. if test -n "$LIPO"; then
  6837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6838. printf "%s\n" "$LIPO" >&6; }
  6839. else
  6840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6841. printf "%s\n" "no" >&6; }
  6842. fi
  6843. fi
  6844. if test -z "$ac_cv_prog_LIPO"; then
  6845. ac_ct_LIPO=$LIPO
  6846. # Extract the first word of "lipo", so it can be a program name with args.
  6847. set dummy lipo; ac_word=$2
  6848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6849. printf %s "checking for $ac_word... " >&6; }
  6850. if test ${ac_cv_prog_ac_ct_LIPO+y}
  6851. then :
  6852. printf %s "(cached) " >&6
  6853. else $as_nop
  6854. if test -n "$ac_ct_LIPO"; then
  6855. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6856. else
  6857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6858. for as_dir in $PATH
  6859. do
  6860. IFS=$as_save_IFS
  6861. case $as_dir in #(((
  6862. '') as_dir=./ ;;
  6863. */) ;;
  6864. *) as_dir=$as_dir/ ;;
  6865. esac
  6866. for ac_exec_ext in '' $ac_executable_extensions; do
  6867. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6868. ac_cv_prog_ac_ct_LIPO="lipo"
  6869. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6870. break 2
  6871. fi
  6872. done
  6873. done
  6874. IFS=$as_save_IFS
  6875. fi
  6876. fi
  6877. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6878. if test -n "$ac_ct_LIPO"; then
  6879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6880. printf "%s\n" "$ac_ct_LIPO" >&6; }
  6881. else
  6882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6883. printf "%s\n" "no" >&6; }
  6884. fi
  6885. if test "x$ac_ct_LIPO" = x; then
  6886. LIPO=":"
  6887. else
  6888. case $cross_compiling:$ac_tool_warned in
  6889. yes:)
  6890. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6891. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6892. ac_tool_warned=yes ;;
  6893. esac
  6894. LIPO=$ac_ct_LIPO
  6895. fi
  6896. else
  6897. LIPO="$ac_cv_prog_LIPO"
  6898. fi
  6899. if test -n "$ac_tool_prefix"; then
  6900. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6901. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6903. printf %s "checking for $ac_word... " >&6; }
  6904. if test ${ac_cv_prog_OTOOL+y}
  6905. then :
  6906. printf %s "(cached) " >&6
  6907. else $as_nop
  6908. if test -n "$OTOOL"; then
  6909. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. case $as_dir in #(((
  6916. '') as_dir=./ ;;
  6917. */) ;;
  6918. *) as_dir=$as_dir/ ;;
  6919. esac
  6920. for ac_exec_ext in '' $ac_executable_extensions; do
  6921. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6922. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6923. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6924. break 2
  6925. fi
  6926. done
  6927. done
  6928. IFS=$as_save_IFS
  6929. fi
  6930. fi
  6931. OTOOL=$ac_cv_prog_OTOOL
  6932. if test -n "$OTOOL"; then
  6933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6934. printf "%s\n" "$OTOOL" >&6; }
  6935. else
  6936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6937. printf "%s\n" "no" >&6; }
  6938. fi
  6939. fi
  6940. if test -z "$ac_cv_prog_OTOOL"; then
  6941. ac_ct_OTOOL=$OTOOL
  6942. # Extract the first word of "otool", so it can be a program name with args.
  6943. set dummy otool; ac_word=$2
  6944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6945. printf %s "checking for $ac_word... " >&6; }
  6946. if test ${ac_cv_prog_ac_ct_OTOOL+y}
  6947. then :
  6948. printf %s "(cached) " >&6
  6949. else $as_nop
  6950. if test -n "$ac_ct_OTOOL"; then
  6951. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6952. else
  6953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6954. for as_dir in $PATH
  6955. do
  6956. IFS=$as_save_IFS
  6957. case $as_dir in #(((
  6958. '') as_dir=./ ;;
  6959. */) ;;
  6960. *) as_dir=$as_dir/ ;;
  6961. esac
  6962. for ac_exec_ext in '' $ac_executable_extensions; do
  6963. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6964. ac_cv_prog_ac_ct_OTOOL="otool"
  6965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6966. break 2
  6967. fi
  6968. done
  6969. done
  6970. IFS=$as_save_IFS
  6971. fi
  6972. fi
  6973. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6974. if test -n "$ac_ct_OTOOL"; then
  6975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6976. printf "%s\n" "$ac_ct_OTOOL" >&6; }
  6977. else
  6978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. printf "%s\n" "no" >&6; }
  6980. fi
  6981. if test "x$ac_ct_OTOOL" = x; then
  6982. OTOOL=":"
  6983. else
  6984. case $cross_compiling:$ac_tool_warned in
  6985. yes:)
  6986. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6987. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6988. ac_tool_warned=yes ;;
  6989. esac
  6990. OTOOL=$ac_ct_OTOOL
  6991. fi
  6992. else
  6993. OTOOL="$ac_cv_prog_OTOOL"
  6994. fi
  6995. if test -n "$ac_tool_prefix"; then
  6996. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6997. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6999. printf %s "checking for $ac_word... " >&6; }
  7000. if test ${ac_cv_prog_OTOOL64+y}
  7001. then :
  7002. printf %s "(cached) " >&6
  7003. else $as_nop
  7004. if test -n "$OTOOL64"; then
  7005. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7006. else
  7007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7008. for as_dir in $PATH
  7009. do
  7010. IFS=$as_save_IFS
  7011. case $as_dir in #(((
  7012. '') as_dir=./ ;;
  7013. */) ;;
  7014. *) as_dir=$as_dir/ ;;
  7015. esac
  7016. for ac_exec_ext in '' $ac_executable_extensions; do
  7017. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7018. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7019. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7020. break 2
  7021. fi
  7022. done
  7023. done
  7024. IFS=$as_save_IFS
  7025. fi
  7026. fi
  7027. OTOOL64=$ac_cv_prog_OTOOL64
  7028. if test -n "$OTOOL64"; then
  7029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7030. printf "%s\n" "$OTOOL64" >&6; }
  7031. else
  7032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7033. printf "%s\n" "no" >&6; }
  7034. fi
  7035. fi
  7036. if test -z "$ac_cv_prog_OTOOL64"; then
  7037. ac_ct_OTOOL64=$OTOOL64
  7038. # Extract the first word of "otool64", so it can be a program name with args.
  7039. set dummy otool64; ac_word=$2
  7040. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7041. printf %s "checking for $ac_word... " >&6; }
  7042. if test ${ac_cv_prog_ac_ct_OTOOL64+y}
  7043. then :
  7044. printf %s "(cached) " >&6
  7045. else $as_nop
  7046. if test -n "$ac_ct_OTOOL64"; then
  7047. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7048. else
  7049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7050. for as_dir in $PATH
  7051. do
  7052. IFS=$as_save_IFS
  7053. case $as_dir in #(((
  7054. '') as_dir=./ ;;
  7055. */) ;;
  7056. *) as_dir=$as_dir/ ;;
  7057. esac
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7070. if test -n "$ac_ct_OTOOL64"; then
  7071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7072. printf "%s\n" "$ac_ct_OTOOL64" >&6; }
  7073. else
  7074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. printf "%s\n" "no" >&6; }
  7076. fi
  7077. if test "x$ac_ct_OTOOL64" = x; then
  7078. OTOOL64=":"
  7079. else
  7080. case $cross_compiling:$ac_tool_warned in
  7081. yes:)
  7082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7083. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7084. ac_tool_warned=yes ;;
  7085. esac
  7086. OTOOL64=$ac_ct_OTOOL64
  7087. fi
  7088. else
  7089. OTOOL64="$ac_cv_prog_OTOOL64"
  7090. fi
  7091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7092. printf %s "checking for -single_module linker flag... " >&6; }
  7093. if test ${lt_cv_apple_cc_single_mod+y}
  7094. then :
  7095. printf %s "(cached) " >&6
  7096. else $as_nop
  7097. lt_cv_apple_cc_single_mod=no
  7098. if test -z "$LT_MULTI_MODULE"; then
  7099. # By default we will add the -single_module flag. You can override
  7100. # by either setting the environment variable LT_MULTI_MODULE
  7101. # non-empty at configure time, or by adding -multi_module to the
  7102. # link flags.
  7103. rm -rf libconftest.dylib*
  7104. echo "int foo(void){return 1;}" > conftest.c
  7105. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7106. -dynamiclib -Wl,-single_module conftest.c" >&5
  7107. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7108. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7109. _lt_result=$?
  7110. # If there is a non-empty error log, and "single_module"
  7111. # appears in it, assume the flag caused a linker warning
  7112. if test -s conftest.err && $GREP single_module conftest.err; then
  7113. cat conftest.err >&5
  7114. # Otherwise, if the output was created with a 0 exit code from
  7115. # the compiler, it worked.
  7116. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7117. lt_cv_apple_cc_single_mod=yes
  7118. else
  7119. cat conftest.err >&5
  7120. fi
  7121. rm -rf libconftest.dylib*
  7122. rm -f conftest.*
  7123. fi
  7124. fi
  7125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7126. printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
  7127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7128. printf %s "checking for -exported_symbols_list linker flag... " >&6; }
  7129. if test ${lt_cv_ld_exported_symbols_list+y}
  7130. then :
  7131. printf %s "(cached) " >&6
  7132. else $as_nop
  7133. lt_cv_ld_exported_symbols_list=no
  7134. save_LDFLAGS=$LDFLAGS
  7135. echo "_main" > conftest.sym
  7136. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7138. /* end confdefs.h. */
  7139. int
  7140. main (void)
  7141. {
  7142. ;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_link "$LINENO"
  7147. then :
  7148. lt_cv_ld_exported_symbols_list=yes
  7149. else $as_nop
  7150. lt_cv_ld_exported_symbols_list=no
  7151. fi
  7152. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  7153. conftest$ac_exeext conftest.$ac_ext
  7154. LDFLAGS=$save_LDFLAGS
  7155. fi
  7156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7157. printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
  7158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7159. printf %s "checking for -force_load linker flag... " >&6; }
  7160. if test ${lt_cv_ld_force_load+y}
  7161. then :
  7162. printf %s "(cached) " >&6
  7163. else $as_nop
  7164. lt_cv_ld_force_load=no
  7165. cat > conftest.c << _LT_EOF
  7166. int forced_loaded() { return 2;}
  7167. _LT_EOF
  7168. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7169. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7170. echo "$AR cru libconftest.a conftest.o" >&5
  7171. $AR cru libconftest.a conftest.o 2>&5
  7172. echo "$RANLIB libconftest.a" >&5
  7173. $RANLIB libconftest.a 2>&5
  7174. cat > conftest.c << _LT_EOF
  7175. int main() { return 0;}
  7176. _LT_EOF
  7177. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7178. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7179. _lt_result=$?
  7180. if test -s conftest.err && $GREP force_load conftest.err; then
  7181. cat conftest.err >&5
  7182. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7183. lt_cv_ld_force_load=yes
  7184. else
  7185. cat conftest.err >&5
  7186. fi
  7187. rm -f conftest.err libconftest.a conftest conftest.c
  7188. rm -rf conftest.dSYM
  7189. fi
  7190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7191. printf "%s\n" "$lt_cv_ld_force_load" >&6; }
  7192. case $host_os in
  7193. rhapsody* | darwin1.[012])
  7194. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7195. darwin1.*)
  7196. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7197. darwin*)
  7198. case $MACOSX_DEPLOYMENT_TARGET,$host in
  7199. 10.[012],*|,*powerpc*-darwin[5-8]*)
  7200. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7201. *)
  7202. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7203. esac
  7204. ;;
  7205. esac
  7206. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7207. _lt_dar_single_mod='$single_module'
  7208. fi
  7209. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7210. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7211. else
  7212. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7213. fi
  7214. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7215. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7216. else
  7217. _lt_dsymutil=
  7218. fi
  7219. ;;
  7220. esac
  7221. # func_munge_path_list VARIABLE PATH
  7222. # -----------------------------------
  7223. # VARIABLE is name of variable containing _space_ separated list of
  7224. # directories to be munged by the contents of PATH, which is string
  7225. # having a format:
  7226. # "DIR[:DIR]:"
  7227. # string "DIR[ DIR]" will be prepended to VARIABLE
  7228. # ":DIR[:DIR]"
  7229. # string "DIR[ DIR]" will be appended to VARIABLE
  7230. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7231. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7232. # "DIRA[ DIRA]" will be appended to VARIABLE
  7233. # "DIR[:DIR]"
  7234. # VARIABLE will be replaced by "DIR[ DIR]"
  7235. func_munge_path_list ()
  7236. {
  7237. case x$2 in
  7238. x)
  7239. ;;
  7240. *:)
  7241. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7242. ;;
  7243. x:*)
  7244. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7245. ;;
  7246. *::*)
  7247. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7248. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7249. ;;
  7250. *)
  7251. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7252. ;;
  7253. esac
  7254. }
  7255. ac_header= ac_cache=
  7256. for ac_item in $ac_header_c_list
  7257. do
  7258. if test $ac_cache; then
  7259. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  7260. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  7261. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  7262. fi
  7263. ac_header= ac_cache=
  7264. elif test $ac_header; then
  7265. ac_cache=$ac_item
  7266. else
  7267. ac_header=$ac_item
  7268. fi
  7269. done
  7270. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  7271. then :
  7272. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  7273. fi
  7274. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7275. "
  7276. if test "x$ac_cv_header_dlfcn_h" = xyes
  7277. then :
  7278. printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
  7279. fi
  7280. # Set options
  7281. enable_win32_dll=yes
  7282. case $host in
  7283. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7284. if test -n "$ac_tool_prefix"; then
  7285. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7286. set dummy ${ac_tool_prefix}as; ac_word=$2
  7287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7288. printf %s "checking for $ac_word... " >&6; }
  7289. if test ${ac_cv_prog_AS+y}
  7290. then :
  7291. printf %s "(cached) " >&6
  7292. else $as_nop
  7293. if test -n "$AS"; then
  7294. ac_cv_prog_AS="$AS" # Let the user override the test.
  7295. else
  7296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7297. for as_dir in $PATH
  7298. do
  7299. IFS=$as_save_IFS
  7300. case $as_dir in #(((
  7301. '') as_dir=./ ;;
  7302. */) ;;
  7303. *) as_dir=$as_dir/ ;;
  7304. esac
  7305. for ac_exec_ext in '' $ac_executable_extensions; do
  7306. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7307. ac_cv_prog_AS="${ac_tool_prefix}as"
  7308. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7309. break 2
  7310. fi
  7311. done
  7312. done
  7313. IFS=$as_save_IFS
  7314. fi
  7315. fi
  7316. AS=$ac_cv_prog_AS
  7317. if test -n "$AS"; then
  7318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7319. printf "%s\n" "$AS" >&6; }
  7320. else
  7321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7322. printf "%s\n" "no" >&6; }
  7323. fi
  7324. fi
  7325. if test -z "$ac_cv_prog_AS"; then
  7326. ac_ct_AS=$AS
  7327. # Extract the first word of "as", so it can be a program name with args.
  7328. set dummy as; ac_word=$2
  7329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7330. printf %s "checking for $ac_word... " >&6; }
  7331. if test ${ac_cv_prog_ac_ct_AS+y}
  7332. then :
  7333. printf %s "(cached) " >&6
  7334. else $as_nop
  7335. if test -n "$ac_ct_AS"; then
  7336. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7337. else
  7338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7339. for as_dir in $PATH
  7340. do
  7341. IFS=$as_save_IFS
  7342. case $as_dir in #(((
  7343. '') as_dir=./ ;;
  7344. */) ;;
  7345. *) as_dir=$as_dir/ ;;
  7346. esac
  7347. for ac_exec_ext in '' $ac_executable_extensions; do
  7348. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7349. ac_cv_prog_ac_ct_AS="as"
  7350. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7351. break 2
  7352. fi
  7353. done
  7354. done
  7355. IFS=$as_save_IFS
  7356. fi
  7357. fi
  7358. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7359. if test -n "$ac_ct_AS"; then
  7360. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7361. printf "%s\n" "$ac_ct_AS" >&6; }
  7362. else
  7363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7364. printf "%s\n" "no" >&6; }
  7365. fi
  7366. if test "x$ac_ct_AS" = x; then
  7367. AS="false"
  7368. else
  7369. case $cross_compiling:$ac_tool_warned in
  7370. yes:)
  7371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7372. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7373. ac_tool_warned=yes ;;
  7374. esac
  7375. AS=$ac_ct_AS
  7376. fi
  7377. else
  7378. AS="$ac_cv_prog_AS"
  7379. fi
  7380. if test -n "$ac_tool_prefix"; then
  7381. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7382. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7384. printf %s "checking for $ac_word... " >&6; }
  7385. if test ${ac_cv_prog_DLLTOOL+y}
  7386. then :
  7387. printf %s "(cached) " >&6
  7388. else $as_nop
  7389. if test -n "$DLLTOOL"; then
  7390. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7391. else
  7392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7393. for as_dir in $PATH
  7394. do
  7395. IFS=$as_save_IFS
  7396. case $as_dir in #(((
  7397. '') as_dir=./ ;;
  7398. */) ;;
  7399. *) as_dir=$as_dir/ ;;
  7400. esac
  7401. for ac_exec_ext in '' $ac_executable_extensions; do
  7402. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7403. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7405. break 2
  7406. fi
  7407. done
  7408. done
  7409. IFS=$as_save_IFS
  7410. fi
  7411. fi
  7412. DLLTOOL=$ac_cv_prog_DLLTOOL
  7413. if test -n "$DLLTOOL"; then
  7414. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7415. printf "%s\n" "$DLLTOOL" >&6; }
  7416. else
  7417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7418. printf "%s\n" "no" >&6; }
  7419. fi
  7420. fi
  7421. if test -z "$ac_cv_prog_DLLTOOL"; then
  7422. ac_ct_DLLTOOL=$DLLTOOL
  7423. # Extract the first word of "dlltool", so it can be a program name with args.
  7424. set dummy dlltool; ac_word=$2
  7425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7426. printf %s "checking for $ac_word... " >&6; }
  7427. if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
  7428. then :
  7429. printf %s "(cached) " >&6
  7430. else $as_nop
  7431. if test -n "$ac_ct_DLLTOOL"; then
  7432. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7433. else
  7434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7435. for as_dir in $PATH
  7436. do
  7437. IFS=$as_save_IFS
  7438. case $as_dir in #(((
  7439. '') as_dir=./ ;;
  7440. */) ;;
  7441. *) as_dir=$as_dir/ ;;
  7442. esac
  7443. for ac_exec_ext in '' $ac_executable_extensions; do
  7444. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7445. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7446. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7447. break 2
  7448. fi
  7449. done
  7450. done
  7451. IFS=$as_save_IFS
  7452. fi
  7453. fi
  7454. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7455. if test -n "$ac_ct_DLLTOOL"; then
  7456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7457. printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
  7458. else
  7459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7460. printf "%s\n" "no" >&6; }
  7461. fi
  7462. if test "x$ac_ct_DLLTOOL" = x; then
  7463. DLLTOOL="false"
  7464. else
  7465. case $cross_compiling:$ac_tool_warned in
  7466. yes:)
  7467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7468. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7469. ac_tool_warned=yes ;;
  7470. esac
  7471. DLLTOOL=$ac_ct_DLLTOOL
  7472. fi
  7473. else
  7474. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7475. fi
  7476. if test -n "$ac_tool_prefix"; then
  7477. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7478. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7480. printf %s "checking for $ac_word... " >&6; }
  7481. if test ${ac_cv_prog_OBJDUMP+y}
  7482. then :
  7483. printf %s "(cached) " >&6
  7484. else $as_nop
  7485. if test -n "$OBJDUMP"; then
  7486. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7487. else
  7488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7489. for as_dir in $PATH
  7490. do
  7491. IFS=$as_save_IFS
  7492. case $as_dir in #(((
  7493. '') as_dir=./ ;;
  7494. */) ;;
  7495. *) as_dir=$as_dir/ ;;
  7496. esac
  7497. for ac_exec_ext in '' $ac_executable_extensions; do
  7498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7499. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7501. break 2
  7502. fi
  7503. done
  7504. done
  7505. IFS=$as_save_IFS
  7506. fi
  7507. fi
  7508. OBJDUMP=$ac_cv_prog_OBJDUMP
  7509. if test -n "$OBJDUMP"; then
  7510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7511. printf "%s\n" "$OBJDUMP" >&6; }
  7512. else
  7513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7514. printf "%s\n" "no" >&6; }
  7515. fi
  7516. fi
  7517. if test -z "$ac_cv_prog_OBJDUMP"; then
  7518. ac_ct_OBJDUMP=$OBJDUMP
  7519. # Extract the first word of "objdump", so it can be a program name with args.
  7520. set dummy objdump; ac_word=$2
  7521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7522. printf %s "checking for $ac_word... " >&6; }
  7523. if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
  7524. then :
  7525. printf %s "(cached) " >&6
  7526. else $as_nop
  7527. if test -n "$ac_ct_OBJDUMP"; then
  7528. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7529. else
  7530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7531. for as_dir in $PATH
  7532. do
  7533. IFS=$as_save_IFS
  7534. case $as_dir in #(((
  7535. '') as_dir=./ ;;
  7536. */) ;;
  7537. *) as_dir=$as_dir/ ;;
  7538. esac
  7539. for ac_exec_ext in '' $ac_executable_extensions; do
  7540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7541. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7543. break 2
  7544. fi
  7545. done
  7546. done
  7547. IFS=$as_save_IFS
  7548. fi
  7549. fi
  7550. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7551. if test -n "$ac_ct_OBJDUMP"; then
  7552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7553. printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
  7554. else
  7555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7556. printf "%s\n" "no" >&6; }
  7557. fi
  7558. if test "x$ac_ct_OBJDUMP" = x; then
  7559. OBJDUMP="false"
  7560. else
  7561. case $cross_compiling:$ac_tool_warned in
  7562. yes:)
  7563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7565. ac_tool_warned=yes ;;
  7566. esac
  7567. OBJDUMP=$ac_ct_OBJDUMP
  7568. fi
  7569. else
  7570. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7571. fi
  7572. ;;
  7573. esac
  7574. test -z "$AS" && AS=as
  7575. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7576. test -z "$OBJDUMP" && OBJDUMP=objdump
  7577. enable_dlopen=no
  7578. # Check whether --enable-shared was given.
  7579. if test ${enable_shared+y}
  7580. then :
  7581. enableval=$enable_shared; p=${PACKAGE-default}
  7582. case $enableval in
  7583. yes) enable_shared=yes ;;
  7584. no) enable_shared=no ;;
  7585. *)
  7586. enable_shared=no
  7587. # Look at the argument we got. We use all the common list separators.
  7588. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7589. for pkg in $enableval; do
  7590. IFS=$lt_save_ifs
  7591. if test "X$pkg" = "X$p"; then
  7592. enable_shared=yes
  7593. fi
  7594. done
  7595. IFS=$lt_save_ifs
  7596. ;;
  7597. esac
  7598. else $as_nop
  7599. enable_shared=yes
  7600. fi
  7601. # Check whether --enable-static was given.
  7602. if test ${enable_static+y}
  7603. then :
  7604. enableval=$enable_static; p=${PACKAGE-default}
  7605. case $enableval in
  7606. yes) enable_static=yes ;;
  7607. no) enable_static=no ;;
  7608. *)
  7609. enable_static=no
  7610. # Look at the argument we got. We use all the common list separators.
  7611. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7612. for pkg in $enableval; do
  7613. IFS=$lt_save_ifs
  7614. if test "X$pkg" = "X$p"; then
  7615. enable_static=yes
  7616. fi
  7617. done
  7618. IFS=$lt_save_ifs
  7619. ;;
  7620. esac
  7621. else $as_nop
  7622. enable_static=yes
  7623. fi
  7624. # Check whether --with-pic was given.
  7625. if test ${with_pic+y}
  7626. then :
  7627. withval=$with_pic; lt_p=${PACKAGE-default}
  7628. case $withval in
  7629. yes|no) pic_mode=$withval ;;
  7630. *)
  7631. pic_mode=default
  7632. # Look at the argument we got. We use all the common list separators.
  7633. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7634. for lt_pkg in $withval; do
  7635. IFS=$lt_save_ifs
  7636. if test "X$lt_pkg" = "X$lt_p"; then
  7637. pic_mode=yes
  7638. fi
  7639. done
  7640. IFS=$lt_save_ifs
  7641. ;;
  7642. esac
  7643. else $as_nop
  7644. pic_mode=default
  7645. fi
  7646. # Check whether --enable-fast-install was given.
  7647. if test ${enable_fast_install+y}
  7648. then :
  7649. enableval=$enable_fast_install; p=${PACKAGE-default}
  7650. case $enableval in
  7651. yes) enable_fast_install=yes ;;
  7652. no) enable_fast_install=no ;;
  7653. *)
  7654. enable_fast_install=no
  7655. # Look at the argument we got. We use all the common list separators.
  7656. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7657. for pkg in $enableval; do
  7658. IFS=$lt_save_ifs
  7659. if test "X$pkg" = "X$p"; then
  7660. enable_fast_install=yes
  7661. fi
  7662. done
  7663. IFS=$lt_save_ifs
  7664. ;;
  7665. esac
  7666. else $as_nop
  7667. enable_fast_install=yes
  7668. fi
  7669. shared_archive_member_spec=
  7670. case $host,$enable_shared in
  7671. power*-*-aix[5-9]*,yes)
  7672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7673. printf %s "checking which variant of shared library versioning to provide... " >&6; }
  7674. # Check whether --with-aix-soname was given.
  7675. if test ${with_aix_soname+y}
  7676. then :
  7677. withval=$with_aix_soname; case $withval in
  7678. aix|svr4|both)
  7679. ;;
  7680. *)
  7681. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7682. ;;
  7683. esac
  7684. lt_cv_with_aix_soname=$with_aix_soname
  7685. else $as_nop
  7686. if test ${lt_cv_with_aix_soname+y}
  7687. then :
  7688. printf %s "(cached) " >&6
  7689. else $as_nop
  7690. lt_cv_with_aix_soname=aix
  7691. fi
  7692. with_aix_soname=$lt_cv_with_aix_soname
  7693. fi
  7694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7695. printf "%s\n" "$with_aix_soname" >&6; }
  7696. if test aix != "$with_aix_soname"; then
  7697. # For the AIX way of multilib, we name the shared archive member
  7698. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7699. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7700. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7701. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7702. if test 64 = "${OBJECT_MODE-32}"; then
  7703. shared_archive_member_spec=shr_64
  7704. else
  7705. shared_archive_member_spec=shr
  7706. fi
  7707. fi
  7708. ;;
  7709. *)
  7710. with_aix_soname=aix
  7711. ;;
  7712. esac
  7713. # This can be used to rebuild libtool when needed
  7714. LIBTOOL_DEPS=$ltmain
  7715. # Always use our own libtool.
  7716. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7717. test -z "$LN_S" && LN_S="ln -s"
  7718. if test -n "${ZSH_VERSION+set}"; then
  7719. setopt NO_GLOB_SUBST
  7720. fi
  7721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7722. printf %s "checking for objdir... " >&6; }
  7723. if test ${lt_cv_objdir+y}
  7724. then :
  7725. printf %s "(cached) " >&6
  7726. else $as_nop
  7727. rm -f .libs 2>/dev/null
  7728. mkdir .libs 2>/dev/null
  7729. if test -d .libs; then
  7730. lt_cv_objdir=.libs
  7731. else
  7732. # MS-DOS does not allow filenames that begin with a dot.
  7733. lt_cv_objdir=_libs
  7734. fi
  7735. rmdir .libs 2>/dev/null
  7736. fi
  7737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7738. printf "%s\n" "$lt_cv_objdir" >&6; }
  7739. objdir=$lt_cv_objdir
  7740. printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
  7741. case $host_os in
  7742. aix3*)
  7743. # AIX sometimes has problems with the GCC collect2 program. For some
  7744. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7745. # vanish in a puff of smoke.
  7746. if test set != "${COLLECT_NAMES+set}"; then
  7747. COLLECT_NAMES=
  7748. export COLLECT_NAMES
  7749. fi
  7750. ;;
  7751. esac
  7752. # Global variables:
  7753. ofile=libtool
  7754. can_build_shared=yes
  7755. # All known linkers require a '.a' archive for static linking (except MSVC,
  7756. # which needs '.lib').
  7757. libext=a
  7758. with_gnu_ld=$lt_cv_prog_gnu_ld
  7759. old_CC=$CC
  7760. old_CFLAGS=$CFLAGS
  7761. # Set sane defaults for various variables
  7762. test -z "$CC" && CC=cc
  7763. test -z "$LTCC" && LTCC=$CC
  7764. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7765. test -z "$LD" && LD=ld
  7766. test -z "$ac_objext" && ac_objext=o
  7767. func_cc_basename $compiler
  7768. cc_basename=$func_cc_basename_result
  7769. # Only perform the check for file, if the check method requires it
  7770. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7771. case $deplibs_check_method in
  7772. file_magic*)
  7773. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7775. printf %s "checking for ${ac_tool_prefix}file... " >&6; }
  7776. if test ${lt_cv_path_MAGIC_CMD+y}
  7777. then :
  7778. printf %s "(cached) " >&6
  7779. else $as_nop
  7780. case $MAGIC_CMD in
  7781. [\\/*] | ?:[\\/]*)
  7782. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7783. ;;
  7784. *)
  7785. lt_save_MAGIC_CMD=$MAGIC_CMD
  7786. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7787. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7788. for ac_dir in $ac_dummy; do
  7789. IFS=$lt_save_ifs
  7790. test -z "$ac_dir" && ac_dir=.
  7791. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7792. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7793. if test -n "$file_magic_test_file"; then
  7794. case $deplibs_check_method in
  7795. "file_magic "*)
  7796. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7797. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7798. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7799. $EGREP "$file_magic_regex" > /dev/null; then
  7800. :
  7801. else
  7802. cat <<_LT_EOF 1>&2
  7803. *** Warning: the command libtool uses to detect shared libraries,
  7804. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7805. *** The result is that libtool may fail to recognize shared libraries
  7806. *** as such. This will affect the creation of libtool libraries that
  7807. *** depend on shared libraries, but programs linked with such libtool
  7808. *** libraries will work regardless of this problem. Nevertheless, you
  7809. *** may want to report the problem to your system manager and/or to
  7810. *** bug-libtool@gnu.org
  7811. _LT_EOF
  7812. fi ;;
  7813. esac
  7814. fi
  7815. break
  7816. fi
  7817. done
  7818. IFS=$lt_save_ifs
  7819. MAGIC_CMD=$lt_save_MAGIC_CMD
  7820. ;;
  7821. esac
  7822. fi
  7823. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7824. if test -n "$MAGIC_CMD"; then
  7825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7826. printf "%s\n" "$MAGIC_CMD" >&6; }
  7827. else
  7828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7829. printf "%s\n" "no" >&6; }
  7830. fi
  7831. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7832. if test -n "$ac_tool_prefix"; then
  7833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7834. printf %s "checking for file... " >&6; }
  7835. if test ${lt_cv_path_MAGIC_CMD+y}
  7836. then :
  7837. printf %s "(cached) " >&6
  7838. else $as_nop
  7839. case $MAGIC_CMD in
  7840. [\\/*] | ?:[\\/]*)
  7841. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7842. ;;
  7843. *)
  7844. lt_save_MAGIC_CMD=$MAGIC_CMD
  7845. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7846. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7847. for ac_dir in $ac_dummy; do
  7848. IFS=$lt_save_ifs
  7849. test -z "$ac_dir" && ac_dir=.
  7850. if test -f "$ac_dir/file"; then
  7851. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7852. if test -n "$file_magic_test_file"; then
  7853. case $deplibs_check_method in
  7854. "file_magic "*)
  7855. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7856. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7857. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7858. $EGREP "$file_magic_regex" > /dev/null; then
  7859. :
  7860. else
  7861. cat <<_LT_EOF 1>&2
  7862. *** Warning: the command libtool uses to detect shared libraries,
  7863. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7864. *** The result is that libtool may fail to recognize shared libraries
  7865. *** as such. This will affect the creation of libtool libraries that
  7866. *** depend on shared libraries, but programs linked with such libtool
  7867. *** libraries will work regardless of this problem. Nevertheless, you
  7868. *** may want to report the problem to your system manager and/or to
  7869. *** bug-libtool@gnu.org
  7870. _LT_EOF
  7871. fi ;;
  7872. esac
  7873. fi
  7874. break
  7875. fi
  7876. done
  7877. IFS=$lt_save_ifs
  7878. MAGIC_CMD=$lt_save_MAGIC_CMD
  7879. ;;
  7880. esac
  7881. fi
  7882. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7883. if test -n "$MAGIC_CMD"; then
  7884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7885. printf "%s\n" "$MAGIC_CMD" >&6; }
  7886. else
  7887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7888. printf "%s\n" "no" >&6; }
  7889. fi
  7890. else
  7891. MAGIC_CMD=:
  7892. fi
  7893. fi
  7894. fi
  7895. ;;
  7896. esac
  7897. # Use C for the default configuration in the libtool script
  7898. lt_save_CC=$CC
  7899. ac_ext=c
  7900. ac_cpp='$CPP $CPPFLAGS'
  7901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7904. # Source file extension for C test sources.
  7905. ac_ext=c
  7906. # Object file extension for compiled C test sources.
  7907. objext=o
  7908. objext=$objext
  7909. # Code to be used in simple compile tests
  7910. lt_simple_compile_test_code="int some_variable = 0;"
  7911. # Code to be used in simple link tests
  7912. lt_simple_link_test_code='int main(){return(0);}'
  7913. # If no C compiler was specified, use CC.
  7914. LTCC=${LTCC-"$CC"}
  7915. # If no C compiler flags were specified, use CFLAGS.
  7916. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7917. # Allow CC to be a program name with arguments.
  7918. compiler=$CC
  7919. # Save the default compiler, since it gets overwritten when the other
  7920. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7921. compiler_DEFAULT=$CC
  7922. # save warnings/boilerplate of simple test code
  7923. ac_outfile=conftest.$ac_objext
  7924. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7925. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7926. _lt_compiler_boilerplate=`cat conftest.err`
  7927. $RM conftest*
  7928. ac_outfile=conftest.$ac_objext
  7929. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7930. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7931. _lt_linker_boilerplate=`cat conftest.err`
  7932. $RM -r conftest*
  7933. ## CAVEAT EMPTOR:
  7934. ## There is no encapsulation within the following macros, do not change
  7935. ## the running order or otherwise move them around unless you know exactly
  7936. ## what you are doing...
  7937. if test -n "$compiler"; then
  7938. lt_prog_compiler_no_builtin_flag=
  7939. if test yes = "$GCC"; then
  7940. case $cc_basename in
  7941. nvcc*)
  7942. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7943. *)
  7944. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7945. esac
  7946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7947. printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7948. if test ${lt_cv_prog_compiler_rtti_exceptions+y}
  7949. then :
  7950. printf %s "(cached) " >&6
  7951. else $as_nop
  7952. lt_cv_prog_compiler_rtti_exceptions=no
  7953. ac_outfile=conftest.$ac_objext
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. # The option is referenced via a variable to avoid confusing sed.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>conftest.err)
  7967. ac_status=$?
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s "$ac_outfile"; then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings other than the usual output.
  7973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7975. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_rtti_exceptions=yes
  7977. fi
  7978. fi
  7979. $RM conftest*
  7980. fi
  7981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7982. printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7983. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7984. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7985. else
  7986. :
  7987. fi
  7988. fi
  7989. lt_prog_compiler_wl=
  7990. lt_prog_compiler_pic=
  7991. lt_prog_compiler_static=
  7992. if test yes = "$GCC"; then
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_static='-static'
  7995. case $host_os in
  7996. aix*)
  7997. # All AIX code is PIC.
  7998. if test ia64 = "$host_cpu"; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. fi
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. amigaos*)
  8005. case $host_cpu in
  8006. powerpc)
  8007. # see comment about AmigaOS4 .so support
  8008. lt_prog_compiler_pic='-fPIC'
  8009. ;;
  8010. m68k)
  8011. # FIXME: we need at least 68020 code to build shared libraries, but
  8012. # adding the '-m68020' flag to GCC prevents building anything better,
  8013. # like '-m68040'.
  8014. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8015. ;;
  8016. esac
  8017. ;;
  8018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8019. # PIC is the default for these OSes.
  8020. ;;
  8021. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8022. # This hack is so that the source file can tell whether it is being
  8023. # built for inclusion in a dll (and should export symbols for example).
  8024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8025. # (--disable-auto-import) libraries
  8026. lt_prog_compiler_pic='-DDLL_EXPORT'
  8027. case $host_os in
  8028. os2*)
  8029. lt_prog_compiler_static='$wl-static'
  8030. ;;
  8031. esac
  8032. ;;
  8033. darwin* | rhapsody*)
  8034. # PIC is the default on this platform
  8035. # Common symbols not allowed in MH_DYLIB files
  8036. lt_prog_compiler_pic='-fno-common'
  8037. ;;
  8038. haiku*)
  8039. # PIC is the default for Haiku.
  8040. # The "-static" flag exists, but is broken.
  8041. lt_prog_compiler_static=
  8042. ;;
  8043. hpux*)
  8044. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8045. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8046. # sets the default TLS model and affects inlining.
  8047. case $host_cpu in
  8048. hppa*64*)
  8049. # +Z the default
  8050. ;;
  8051. *)
  8052. lt_prog_compiler_pic='-fPIC'
  8053. ;;
  8054. esac
  8055. ;;
  8056. interix[3-9]*)
  8057. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8058. # Instead, we relocate shared libraries at runtime.
  8059. ;;
  8060. msdosdjgpp*)
  8061. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8062. # on systems that don't support them.
  8063. lt_prog_compiler_can_build_shared=no
  8064. enable_shared=no
  8065. ;;
  8066. *nto* | *qnx*)
  8067. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8068. # it will coredump.
  8069. lt_prog_compiler_pic='-fPIC -shared'
  8070. ;;
  8071. sysv4*MP*)
  8072. if test -d /usr/nec; then
  8073. lt_prog_compiler_pic=-Kconform_pic
  8074. fi
  8075. ;;
  8076. *)
  8077. lt_prog_compiler_pic='-fPIC'
  8078. ;;
  8079. esac
  8080. case $cc_basename in
  8081. nvcc*) # Cuda Compiler Driver 2.2
  8082. lt_prog_compiler_wl='-Xlinker '
  8083. if test -n "$lt_prog_compiler_pic"; then
  8084. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8085. fi
  8086. ;;
  8087. esac
  8088. else
  8089. # PORTME Check for flag to pass linker flags through the system compiler.
  8090. case $host_os in
  8091. aix*)
  8092. lt_prog_compiler_wl='-Wl,'
  8093. if test ia64 = "$host_cpu"; then
  8094. # AIX 5 now supports IA64 processor
  8095. lt_prog_compiler_static='-Bstatic'
  8096. else
  8097. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8098. fi
  8099. ;;
  8100. darwin* | rhapsody*)
  8101. # PIC is the default on this platform
  8102. # Common symbols not allowed in MH_DYLIB files
  8103. lt_prog_compiler_pic='-fno-common'
  8104. case $cc_basename in
  8105. nagfor*)
  8106. # NAG Fortran compiler
  8107. lt_prog_compiler_wl='-Wl,-Wl,,'
  8108. lt_prog_compiler_pic='-PIC'
  8109. lt_prog_compiler_static='-Bstatic'
  8110. ;;
  8111. esac
  8112. ;;
  8113. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8114. # This hack is so that the source file can tell whether it is being
  8115. # built for inclusion in a dll (and should export symbols for example).
  8116. lt_prog_compiler_pic='-DDLL_EXPORT'
  8117. case $host_os in
  8118. os2*)
  8119. lt_prog_compiler_static='$wl-static'
  8120. ;;
  8121. esac
  8122. ;;
  8123. hpux9* | hpux10* | hpux11*)
  8124. lt_prog_compiler_wl='-Wl,'
  8125. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8126. # not for PA HP-UX.
  8127. case $host_cpu in
  8128. hppa*64*|ia64*)
  8129. # +Z the default
  8130. ;;
  8131. *)
  8132. lt_prog_compiler_pic='+Z'
  8133. ;;
  8134. esac
  8135. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8136. lt_prog_compiler_static='$wl-a ${wl}archive'
  8137. ;;
  8138. irix5* | irix6* | nonstopux*)
  8139. lt_prog_compiler_wl='-Wl,'
  8140. # PIC (with -KPIC) is the default.
  8141. lt_prog_compiler_static='-non_shared'
  8142. ;;
  8143. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8144. case $cc_basename in
  8145. # old Intel for x86_64, which still supported -KPIC.
  8146. ecc*)
  8147. lt_prog_compiler_wl='-Wl,'
  8148. lt_prog_compiler_pic='-KPIC'
  8149. lt_prog_compiler_static='-static'
  8150. ;;
  8151. # icc used to be incompatible with GCC.
  8152. # ICC 10 doesn't accept -KPIC any more.
  8153. icc* | ifort*)
  8154. lt_prog_compiler_wl='-Wl,'
  8155. lt_prog_compiler_pic='-fPIC'
  8156. lt_prog_compiler_static='-static'
  8157. ;;
  8158. # Lahey Fortran 8.1.
  8159. lf95*)
  8160. lt_prog_compiler_wl='-Wl,'
  8161. lt_prog_compiler_pic='--shared'
  8162. lt_prog_compiler_static='--static'
  8163. ;;
  8164. nagfor*)
  8165. # NAG Fortran compiler
  8166. lt_prog_compiler_wl='-Wl,-Wl,,'
  8167. lt_prog_compiler_pic='-PIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. ;;
  8170. tcc*)
  8171. # Fabrice Bellard et al's Tiny C Compiler
  8172. lt_prog_compiler_wl='-Wl,'
  8173. lt_prog_compiler_pic='-fPIC'
  8174. lt_prog_compiler_static='-static'
  8175. ;;
  8176. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8177. # Portland Group compilers (*not* the Pentium gcc compiler,
  8178. # which looks to be a dead project)
  8179. lt_prog_compiler_wl='-Wl,'
  8180. lt_prog_compiler_pic='-fpic'
  8181. lt_prog_compiler_static='-Bstatic'
  8182. ;;
  8183. ccc*)
  8184. lt_prog_compiler_wl='-Wl,'
  8185. # All Alpha code is PIC.
  8186. lt_prog_compiler_static='-non_shared'
  8187. ;;
  8188. xl* | bgxl* | bgf* | mpixl*)
  8189. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8190. lt_prog_compiler_wl='-Wl,'
  8191. lt_prog_compiler_pic='-qpic'
  8192. lt_prog_compiler_static='-qstaticlink'
  8193. ;;
  8194. *)
  8195. case `$CC -V 2>&1 | sed 5q` in
  8196. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8197. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8198. lt_prog_compiler_pic='-KPIC'
  8199. lt_prog_compiler_static='-Bstatic'
  8200. lt_prog_compiler_wl=''
  8201. ;;
  8202. *Sun\ F* | *Sun*Fortran*)
  8203. lt_prog_compiler_pic='-KPIC'
  8204. lt_prog_compiler_static='-Bstatic'
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. ;;
  8207. *Sun\ C*)
  8208. # Sun C 5.9
  8209. lt_prog_compiler_pic='-KPIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. lt_prog_compiler_wl='-Wl,'
  8212. ;;
  8213. *Intel*\ [CF]*Compiler*)
  8214. lt_prog_compiler_wl='-Wl,'
  8215. lt_prog_compiler_pic='-fPIC'
  8216. lt_prog_compiler_static='-static'
  8217. ;;
  8218. *Portland\ Group*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-fpic'
  8221. lt_prog_compiler_static='-Bstatic'
  8222. ;;
  8223. esac
  8224. ;;
  8225. esac
  8226. ;;
  8227. newsos6)
  8228. lt_prog_compiler_pic='-KPIC'
  8229. lt_prog_compiler_static='-Bstatic'
  8230. ;;
  8231. *nto* | *qnx*)
  8232. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8233. # it will coredump.
  8234. lt_prog_compiler_pic='-fPIC -shared'
  8235. ;;
  8236. osf3* | osf4* | osf5*)
  8237. lt_prog_compiler_wl='-Wl,'
  8238. # All OSF/1 code is PIC.
  8239. lt_prog_compiler_static='-non_shared'
  8240. ;;
  8241. rdos*)
  8242. lt_prog_compiler_static='-non_shared'
  8243. ;;
  8244. solaris*)
  8245. lt_prog_compiler_pic='-KPIC'
  8246. lt_prog_compiler_static='-Bstatic'
  8247. case $cc_basename in
  8248. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8249. lt_prog_compiler_wl='-Qoption ld ';;
  8250. *)
  8251. lt_prog_compiler_wl='-Wl,';;
  8252. esac
  8253. ;;
  8254. sunos4*)
  8255. lt_prog_compiler_wl='-Qoption ld '
  8256. lt_prog_compiler_pic='-PIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. sysv4 | sysv4.2uw2* | sysv4.3*)
  8260. lt_prog_compiler_wl='-Wl,'
  8261. lt_prog_compiler_pic='-KPIC'
  8262. lt_prog_compiler_static='-Bstatic'
  8263. ;;
  8264. sysv4*MP*)
  8265. if test -d /usr/nec; then
  8266. lt_prog_compiler_pic='-Kconform_pic'
  8267. lt_prog_compiler_static='-Bstatic'
  8268. fi
  8269. ;;
  8270. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8271. lt_prog_compiler_wl='-Wl,'
  8272. lt_prog_compiler_pic='-KPIC'
  8273. lt_prog_compiler_static='-Bstatic'
  8274. ;;
  8275. unicos*)
  8276. lt_prog_compiler_wl='-Wl,'
  8277. lt_prog_compiler_can_build_shared=no
  8278. ;;
  8279. uts4*)
  8280. lt_prog_compiler_pic='-pic'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. ;;
  8283. *)
  8284. lt_prog_compiler_can_build_shared=no
  8285. ;;
  8286. esac
  8287. fi
  8288. case $host_os in
  8289. # For platforms that do not support PIC, -DPIC is meaningless:
  8290. *djgpp*)
  8291. lt_prog_compiler_pic=
  8292. ;;
  8293. *)
  8294. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8295. ;;
  8296. esac
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8298. printf %s "checking for $compiler option to produce PIC... " >&6; }
  8299. if test ${lt_cv_prog_compiler_pic+y}
  8300. then :
  8301. printf %s "(cached) " >&6
  8302. else $as_nop
  8303. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8304. fi
  8305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8306. printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
  8307. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8308. #
  8309. # Check to make sure the PIC flag actually works.
  8310. #
  8311. if test -n "$lt_prog_compiler_pic"; then
  8312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8313. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8314. if test ${lt_cv_prog_compiler_pic_works+y}
  8315. then :
  8316. printf %s "(cached) " >&6
  8317. else $as_nop
  8318. lt_cv_prog_compiler_pic_works=no
  8319. ac_outfile=conftest.$ac_objext
  8320. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8321. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8322. # Insert the option either (1) after the last *FLAGS variable, or
  8323. # (2) before a word containing "conftest.", or (3) at the end.
  8324. # Note that $ac_compile itself does not contain backslashes and begins
  8325. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8326. # The option is referenced via a variable to avoid confusing sed.
  8327. lt_compile=`echo "$ac_compile" | $SED \
  8328. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8329. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8330. -e 's:$: $lt_compiler_flag:'`
  8331. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8332. (eval "$lt_compile" 2>conftest.err)
  8333. ac_status=$?
  8334. cat conftest.err >&5
  8335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8336. if (exit $ac_status) && test -s "$ac_outfile"; then
  8337. # The compiler can only warn and ignore the option if not recognized
  8338. # So say no if there are warnings other than the usual output.
  8339. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8340. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8341. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8342. lt_cv_prog_compiler_pic_works=yes
  8343. fi
  8344. fi
  8345. $RM conftest*
  8346. fi
  8347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8348. printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
  8349. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8350. case $lt_prog_compiler_pic in
  8351. "" | " "*) ;;
  8352. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8353. esac
  8354. else
  8355. lt_prog_compiler_pic=
  8356. lt_prog_compiler_can_build_shared=no
  8357. fi
  8358. fi
  8359. #
  8360. # Check to make sure the static flag actually works.
  8361. #
  8362. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8364. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8365. if test ${lt_cv_prog_compiler_static_works+y}
  8366. then :
  8367. printf %s "(cached) " >&6
  8368. else $as_nop
  8369. lt_cv_prog_compiler_static_works=no
  8370. save_LDFLAGS=$LDFLAGS
  8371. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8372. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8373. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8374. # The linker can only warn and ignore the option if not recognized
  8375. # So say no if there are warnings
  8376. if test -s conftest.err; then
  8377. # Append any errors to the config.log.
  8378. cat conftest.err 1>&5
  8379. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8381. if diff conftest.exp conftest.er2 >/dev/null; then
  8382. lt_cv_prog_compiler_static_works=yes
  8383. fi
  8384. else
  8385. lt_cv_prog_compiler_static_works=yes
  8386. fi
  8387. fi
  8388. $RM -r conftest*
  8389. LDFLAGS=$save_LDFLAGS
  8390. fi
  8391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8392. printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
  8393. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8394. :
  8395. else
  8396. lt_prog_compiler_static=
  8397. fi
  8398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8399. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8400. if test ${lt_cv_prog_compiler_c_o+y}
  8401. then :
  8402. printf %s "(cached) " >&6
  8403. else $as_nop
  8404. lt_cv_prog_compiler_c_o=no
  8405. $RM -r conftest 2>/dev/null
  8406. mkdir conftest
  8407. cd conftest
  8408. mkdir out
  8409. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8410. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8411. # Insert the option either (1) after the last *FLAGS variable, or
  8412. # (2) before a word containing "conftest.", or (3) at the end.
  8413. # Note that $ac_compile itself does not contain backslashes and begins
  8414. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8415. lt_compile=`echo "$ac_compile" | $SED \
  8416. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8417. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8418. -e 's:$: $lt_compiler_flag:'`
  8419. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8420. (eval "$lt_compile" 2>out/conftest.err)
  8421. ac_status=$?
  8422. cat out/conftest.err >&5
  8423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8424. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8425. then
  8426. # The compiler can only warn and ignore the option if not recognized
  8427. # So say no if there are warnings
  8428. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8429. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8430. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8431. lt_cv_prog_compiler_c_o=yes
  8432. fi
  8433. fi
  8434. chmod u+w . 2>&5
  8435. $RM conftest*
  8436. # SGI C++ compiler will create directory out/ii_files/ for
  8437. # template instantiation
  8438. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8439. $RM out/* && rmdir out
  8440. cd ..
  8441. $RM -r conftest
  8442. $RM conftest*
  8443. fi
  8444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8445. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8446. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8447. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8448. if test ${lt_cv_prog_compiler_c_o+y}
  8449. then :
  8450. printf %s "(cached) " >&6
  8451. else $as_nop
  8452. lt_cv_prog_compiler_c_o=no
  8453. $RM -r conftest 2>/dev/null
  8454. mkdir conftest
  8455. cd conftest
  8456. mkdir out
  8457. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8458. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8459. # Insert the option either (1) after the last *FLAGS variable, or
  8460. # (2) before a word containing "conftest.", or (3) at the end.
  8461. # Note that $ac_compile itself does not contain backslashes and begins
  8462. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8463. lt_compile=`echo "$ac_compile" | $SED \
  8464. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8465. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8466. -e 's:$: $lt_compiler_flag:'`
  8467. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8468. (eval "$lt_compile" 2>out/conftest.err)
  8469. ac_status=$?
  8470. cat out/conftest.err >&5
  8471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8472. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8473. then
  8474. # The compiler can only warn and ignore the option if not recognized
  8475. # So say no if there are warnings
  8476. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8477. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8478. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8479. lt_cv_prog_compiler_c_o=yes
  8480. fi
  8481. fi
  8482. chmod u+w . 2>&5
  8483. $RM conftest*
  8484. # SGI C++ compiler will create directory out/ii_files/ for
  8485. # template instantiation
  8486. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8487. $RM out/* && rmdir out
  8488. cd ..
  8489. $RM -r conftest
  8490. $RM conftest*
  8491. fi
  8492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8493. printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
  8494. hard_links=nottested
  8495. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8496. # do not overwrite the value of need_locks provided by the user
  8497. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8498. printf %s "checking if we can lock with hard links... " >&6; }
  8499. hard_links=yes
  8500. $RM conftest*
  8501. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8502. touch conftest.a
  8503. ln conftest.a conftest.b 2>&5 || hard_links=no
  8504. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8506. printf "%s\n" "$hard_links" >&6; }
  8507. if test no = "$hard_links"; then
  8508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8509. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8510. need_locks=warn
  8511. fi
  8512. else
  8513. need_locks=no
  8514. fi
  8515. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8516. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8517. runpath_var=
  8518. allow_undefined_flag=
  8519. always_export_symbols=no
  8520. archive_cmds=
  8521. archive_expsym_cmds=
  8522. compiler_needs_object=no
  8523. enable_shared_with_static_runtimes=no
  8524. export_dynamic_flag_spec=
  8525. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8526. hardcode_automatic=no
  8527. hardcode_direct=no
  8528. hardcode_direct_absolute=no
  8529. hardcode_libdir_flag_spec=
  8530. hardcode_libdir_separator=
  8531. hardcode_minus_L=no
  8532. hardcode_shlibpath_var=unsupported
  8533. inherit_rpath=no
  8534. link_all_deplibs=unknown
  8535. module_cmds=
  8536. module_expsym_cmds=
  8537. old_archive_from_new_cmds=
  8538. old_archive_from_expsyms_cmds=
  8539. thread_safe_flag_spec=
  8540. whole_archive_flag_spec=
  8541. # include_expsyms should be a list of space-separated symbols to be *always*
  8542. # included in the symbol list
  8543. include_expsyms=
  8544. # exclude_expsyms can be an extended regexp of symbols to exclude
  8545. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8546. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8547. # as well as any symbol that contains 'd'.
  8548. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8549. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8550. # platforms (ab)use it in PIC code, but their linkers get confused if
  8551. # the symbol is explicitly referenced. Since portable code cannot
  8552. # rely on this symbol name, it's probably fine to never include it in
  8553. # preloaded symbol tables.
  8554. # Exclude shared library initialization/finalization symbols.
  8555. extract_expsyms_cmds=
  8556. case $host_os in
  8557. cygwin* | mingw* | pw32* | cegcc*)
  8558. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8559. # When not using gcc, we currently assume that we are using
  8560. # Microsoft Visual C++.
  8561. if test yes != "$GCC"; then
  8562. with_gnu_ld=no
  8563. fi
  8564. ;;
  8565. interix*)
  8566. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8567. with_gnu_ld=yes
  8568. ;;
  8569. openbsd* | bitrig*)
  8570. with_gnu_ld=no
  8571. ;;
  8572. esac
  8573. ld_shlibs=yes
  8574. # On some targets, GNU ld is compatible enough with the native linker
  8575. # that we're better off using the native interface for both.
  8576. lt_use_gnu_ld_interface=no
  8577. if test yes = "$with_gnu_ld"; then
  8578. case $host_os in
  8579. aix*)
  8580. # The AIX port of GNU ld has always aspired to compatibility
  8581. # with the native linker. However, as the warning in the GNU ld
  8582. # block says, versions before 2.19.5* couldn't really create working
  8583. # shared libraries, regardless of the interface used.
  8584. case `$LD -v 2>&1` in
  8585. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8586. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8587. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8588. *)
  8589. lt_use_gnu_ld_interface=yes
  8590. ;;
  8591. esac
  8592. ;;
  8593. *)
  8594. lt_use_gnu_ld_interface=yes
  8595. ;;
  8596. esac
  8597. fi
  8598. if test yes = "$lt_use_gnu_ld_interface"; then
  8599. # If archive_cmds runs LD, not CC, wlarc should be empty
  8600. wlarc='$wl'
  8601. # Set some defaults for GNU ld with shared library support. These
  8602. # are reset later if shared libraries are not supported. Putting them
  8603. # here allows them to be overridden if necessary.
  8604. runpath_var=LD_RUN_PATH
  8605. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8606. export_dynamic_flag_spec='$wl--export-dynamic'
  8607. # ancient GNU ld didn't support --whole-archive et. al.
  8608. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8609. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8610. else
  8611. whole_archive_flag_spec=
  8612. fi
  8613. supports_anon_versioning=no
  8614. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  8615. *GNU\ gold*) supports_anon_versioning=yes ;;
  8616. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8617. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8618. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8619. *\ 2.11.*) ;; # other 2.11 versions
  8620. *) supports_anon_versioning=yes ;;
  8621. esac
  8622. # See if GNU ld supports shared libraries.
  8623. case $host_os in
  8624. aix[3-9]*)
  8625. # On AIX/PPC, the GNU linker is very broken
  8626. if test ia64 != "$host_cpu"; then
  8627. ld_shlibs=no
  8628. cat <<_LT_EOF 1>&2
  8629. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8630. *** to be unable to reliably create shared libraries on AIX.
  8631. *** Therefore, libtool is disabling shared libraries support. If you
  8632. *** really care for shared libraries, you may want to install binutils
  8633. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8634. *** You will then need to restart the configuration process.
  8635. _LT_EOF
  8636. fi
  8637. ;;
  8638. amigaos*)
  8639. case $host_cpu in
  8640. powerpc)
  8641. # see comment about AmigaOS4 .so support
  8642. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8643. archive_expsym_cmds=''
  8644. ;;
  8645. m68k)
  8646. 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)'
  8647. hardcode_libdir_flag_spec='-L$libdir'
  8648. hardcode_minus_L=yes
  8649. ;;
  8650. esac
  8651. ;;
  8652. beos*)
  8653. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8654. allow_undefined_flag=unsupported
  8655. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8656. # support --undefined. This deserves some investigation. FIXME
  8657. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8658. else
  8659. ld_shlibs=no
  8660. fi
  8661. ;;
  8662. cygwin* | mingw* | pw32* | cegcc*)
  8663. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8664. # as there is no search path for DLLs.
  8665. hardcode_libdir_flag_spec='-L$libdir'
  8666. export_dynamic_flag_spec='$wl--export-all-symbols'
  8667. allow_undefined_flag=unsupported
  8668. always_export_symbols=no
  8669. enable_shared_with_static_runtimes=yes
  8670. 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'
  8671. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8672. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8673. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8674. # If the export-symbols file already is a .def file, use it as
  8675. # is; otherwise, prepend EXPORTS...
  8676. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8677. cp $export_symbols $output_objdir/$soname.def;
  8678. else
  8679. echo EXPORTS > $output_objdir/$soname.def;
  8680. cat $export_symbols >> $output_objdir/$soname.def;
  8681. fi~
  8682. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8683. else
  8684. ld_shlibs=no
  8685. fi
  8686. ;;
  8687. haiku*)
  8688. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8689. link_all_deplibs=yes
  8690. ;;
  8691. os2*)
  8692. hardcode_libdir_flag_spec='-L$libdir'
  8693. hardcode_minus_L=yes
  8694. allow_undefined_flag=unsupported
  8695. shrext_cmds=.dll
  8696. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8697. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8698. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8699. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8700. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8701. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8702. emximp -o $lib $output_objdir/$libname.def'
  8703. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8704. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8705. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8706. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8707. prefix_cmds="$SED"~
  8708. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8709. prefix_cmds="$prefix_cmds -e 1d";
  8710. fi~
  8711. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8712. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8713. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8714. emximp -o $lib $output_objdir/$libname.def'
  8715. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8716. enable_shared_with_static_runtimes=yes
  8717. file_list_spec='@'
  8718. ;;
  8719. interix[3-9]*)
  8720. hardcode_direct=no
  8721. hardcode_shlibpath_var=no
  8722. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8723. export_dynamic_flag_spec='$wl-E'
  8724. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8725. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8726. # default) and relocated if they conflict, which is a slow very memory
  8727. # consuming and fragmenting process. To avoid this, we pick a random,
  8728. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8729. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8730. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8731. 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'
  8732. ;;
  8733. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8734. tmp_diet=no
  8735. if test linux-dietlibc = "$host_os"; then
  8736. case $cc_basename in
  8737. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8738. esac
  8739. fi
  8740. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8741. && test no = "$tmp_diet"
  8742. then
  8743. tmp_addflag=' $pic_flag'
  8744. tmp_sharedflag='-shared'
  8745. case $cc_basename,$host_cpu in
  8746. pgcc*) # Portland Group C compiler
  8747. 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'
  8748. tmp_addflag=' $pic_flag'
  8749. ;;
  8750. pgf77* | pgf90* | pgf95* | pgfortran*)
  8751. # Portland Group f77 and f90 compilers
  8752. 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'
  8753. tmp_addflag=' $pic_flag -Mnomain' ;;
  8754. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8755. tmp_addflag=' -i_dynamic' ;;
  8756. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8757. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8758. ifc* | ifort*) # Intel Fortran compiler
  8759. tmp_addflag=' -nofor_main' ;;
  8760. lf95*) # Lahey Fortran 8.1
  8761. whole_archive_flag_spec=
  8762. tmp_sharedflag='--shared' ;;
  8763. nagfor*) # NAGFOR 5.3
  8764. tmp_sharedflag='-Wl,-shared' ;;
  8765. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8766. tmp_sharedflag='-qmkshrobj'
  8767. tmp_addflag= ;;
  8768. nvcc*) # Cuda Compiler Driver 2.2
  8769. 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'
  8770. compiler_needs_object=yes
  8771. ;;
  8772. esac
  8773. case `$CC -V 2>&1 | sed 5q` in
  8774. *Sun\ C*) # Sun C 5.9
  8775. 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'
  8776. compiler_needs_object=yes
  8777. tmp_sharedflag='-G' ;;
  8778. *Sun\ F*) # Sun Fortran 8.3
  8779. tmp_sharedflag='-G' ;;
  8780. esac
  8781. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8782. if test yes = "$supports_anon_versioning"; then
  8783. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8784. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8785. echo "local: *; };" >> $output_objdir/$libname.ver~
  8786. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8787. fi
  8788. case $cc_basename in
  8789. tcc*)
  8790. export_dynamic_flag_spec='-rdynamic'
  8791. ;;
  8792. xlf* | bgf* | bgxlf* | mpixlf*)
  8793. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8794. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8795. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8796. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8797. if test yes = "$supports_anon_versioning"; then
  8798. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8799. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8800. echo "local: *; };" >> $output_objdir/$libname.ver~
  8801. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8802. fi
  8803. ;;
  8804. esac
  8805. else
  8806. ld_shlibs=no
  8807. fi
  8808. ;;
  8809. netbsd*)
  8810. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8811. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8812. wlarc=
  8813. else
  8814. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8815. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8816. fi
  8817. ;;
  8818. solaris*)
  8819. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8820. ld_shlibs=no
  8821. cat <<_LT_EOF 1>&2
  8822. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8823. *** create shared libraries on Solaris systems. Therefore, libtool
  8824. *** is disabling shared libraries support. We urge you to upgrade GNU
  8825. *** binutils to release 2.9.1 or newer. Another option is to modify
  8826. *** your PATH or compiler configuration so that the native linker is
  8827. *** used, and then restart.
  8828. _LT_EOF
  8829. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8830. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8831. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8832. else
  8833. ld_shlibs=no
  8834. fi
  8835. ;;
  8836. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8837. case `$LD -v 2>&1` in
  8838. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8839. ld_shlibs=no
  8840. cat <<_LT_EOF 1>&2
  8841. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8842. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8843. *** is disabling shared libraries support. We urge you to upgrade GNU
  8844. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8845. *** your PATH or compiler configuration so that the native linker is
  8846. *** used, and then restart.
  8847. _LT_EOF
  8848. ;;
  8849. *)
  8850. # For security reasons, it is highly recommended that you always
  8851. # use absolute paths for naming shared libraries, and exclude the
  8852. # DT_RUNPATH tag from executables and libraries. But doing so
  8853. # requires that you compile everything twice, which is a pain.
  8854. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8855. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8856. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8857. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8858. else
  8859. ld_shlibs=no
  8860. fi
  8861. ;;
  8862. esac
  8863. ;;
  8864. sunos4*)
  8865. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8866. wlarc=
  8867. hardcode_direct=yes
  8868. hardcode_shlibpath_var=no
  8869. ;;
  8870. *)
  8871. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8872. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8873. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8874. else
  8875. ld_shlibs=no
  8876. fi
  8877. ;;
  8878. esac
  8879. if test no = "$ld_shlibs"; then
  8880. runpath_var=
  8881. hardcode_libdir_flag_spec=
  8882. export_dynamic_flag_spec=
  8883. whole_archive_flag_spec=
  8884. fi
  8885. else
  8886. # PORTME fill in a description of your system's linker (not GNU ld)
  8887. case $host_os in
  8888. aix3*)
  8889. allow_undefined_flag=unsupported
  8890. always_export_symbols=yes
  8891. 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'
  8892. # Note: this linker hardcodes the directories in LIBPATH if there
  8893. # are no directories specified by -L.
  8894. hardcode_minus_L=yes
  8895. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8896. # Neither direct hardcoding nor static linking is supported with a
  8897. # broken collect2.
  8898. hardcode_direct=unsupported
  8899. fi
  8900. ;;
  8901. aix[4-9]*)
  8902. if test ia64 = "$host_cpu"; then
  8903. # On IA64, the linker does run time linking by default, so we don't
  8904. # have to do anything special.
  8905. aix_use_runtimelinking=no
  8906. exp_sym_flag='-Bexport'
  8907. no_entry_flag=
  8908. else
  8909. # If we're using GNU nm, then we don't want the "-C" option.
  8910. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8911. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8912. # weak defined symbols like other global defined symbols, whereas
  8913. # GNU nm marks them as "W".
  8914. # While the 'weak' keyword is ignored in the Export File, we need
  8915. # it in the Import File for the 'aix-soname' feature, so we have
  8916. # to replace the "-B" option with "-P" for AIX nm.
  8917. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8918. 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'
  8919. else
  8920. 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'
  8921. fi
  8922. aix_use_runtimelinking=no
  8923. # Test if we are trying to use run time linking or normal
  8924. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8925. # have runtime linking enabled, and use it for executables.
  8926. # For shared libraries, we enable/disable runtime linking
  8927. # depending on the kind of the shared library created -
  8928. # when "with_aix_soname,aix_use_runtimelinking" is:
  8929. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8930. # "aix,yes" lib.so shared, rtl:yes, for executables
  8931. # lib.a static archive
  8932. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8933. # lib.a(lib.so.V) shared, rtl:no, for executables
  8934. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8935. # lib.a(lib.so.V) shared, rtl:no
  8936. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8937. # lib.a static archive
  8938. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8939. for ld_flag in $LDFLAGS; do
  8940. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8941. aix_use_runtimelinking=yes
  8942. break
  8943. fi
  8944. done
  8945. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8946. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8947. # so we don't have lib.a shared libs to link our executables.
  8948. # We have to force runtime linking in this case.
  8949. aix_use_runtimelinking=yes
  8950. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8951. fi
  8952. ;;
  8953. esac
  8954. exp_sym_flag='-bexport'
  8955. no_entry_flag='-bnoentry'
  8956. fi
  8957. # When large executables or shared objects are built, AIX ld can
  8958. # have problems creating the table of contents. If linking a library
  8959. # or program results in "error TOC overflow" add -mminimal-toc to
  8960. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8961. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8962. archive_cmds=''
  8963. hardcode_direct=yes
  8964. hardcode_direct_absolute=yes
  8965. hardcode_libdir_separator=':'
  8966. link_all_deplibs=yes
  8967. file_list_spec='$wl-f,'
  8968. case $with_aix_soname,$aix_use_runtimelinking in
  8969. aix,*) ;; # traditional, no import file
  8970. svr4,* | *,yes) # use import file
  8971. # The Import File defines what to hardcode.
  8972. hardcode_direct=no
  8973. hardcode_direct_absolute=no
  8974. ;;
  8975. esac
  8976. if test yes = "$GCC"; then
  8977. case $host_os in aix4.[012]|aix4.[012].*)
  8978. # We only want to do this on AIX 4.2 and lower, the check
  8979. # below for broken collect2 doesn't work under 4.3+
  8980. collect2name=`$CC -print-prog-name=collect2`
  8981. if test -f "$collect2name" &&
  8982. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8983. then
  8984. # We have reworked collect2
  8985. :
  8986. else
  8987. # We have old collect2
  8988. hardcode_direct=unsupported
  8989. # It fails to find uninstalled libraries when the uninstalled
  8990. # path is not listed in the libpath. Setting hardcode_minus_L
  8991. # to unsupported forces relinking
  8992. hardcode_minus_L=yes
  8993. hardcode_libdir_flag_spec='-L$libdir'
  8994. hardcode_libdir_separator=
  8995. fi
  8996. ;;
  8997. esac
  8998. shared_flag='-shared'
  8999. if test yes = "$aix_use_runtimelinking"; then
  9000. shared_flag="$shared_flag "'$wl-G'
  9001. fi
  9002. # Need to ensure runtime linking is disabled for the traditional
  9003. # shared library, or the linker may eventually find shared libraries
  9004. # /with/ Import File - we do not want to mix them.
  9005. shared_flag_aix='-shared'
  9006. shared_flag_svr4='-shared $wl-G'
  9007. else
  9008. # not using gcc
  9009. if test ia64 = "$host_cpu"; then
  9010. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9011. # chokes on -Wl,-G. The following line is correct:
  9012. shared_flag='-G'
  9013. else
  9014. if test yes = "$aix_use_runtimelinking"; then
  9015. shared_flag='$wl-G'
  9016. else
  9017. shared_flag='$wl-bM:SRE'
  9018. fi
  9019. shared_flag_aix='$wl-bM:SRE'
  9020. shared_flag_svr4='$wl-G'
  9021. fi
  9022. fi
  9023. export_dynamic_flag_spec='$wl-bexpall'
  9024. # It seems that -bexpall does not export symbols beginning with
  9025. # underscore (_), so it is better to generate a list of symbols to export.
  9026. always_export_symbols=yes
  9027. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9028. # Warning - without using the other runtime loading flags (-brtl),
  9029. # -berok will link without error, but may produce a broken library.
  9030. allow_undefined_flag='-berok'
  9031. # Determine the default libpath from the value encoded in an
  9032. # empty executable.
  9033. if test set = "${lt_cv_aix_libpath+set}"; then
  9034. aix_libpath=$lt_cv_aix_libpath
  9035. else
  9036. if test ${lt_cv_aix_libpath_+y}
  9037. then :
  9038. printf %s "(cached) " >&6
  9039. else $as_nop
  9040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9041. /* end confdefs.h. */
  9042. int
  9043. main (void)
  9044. {
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. if ac_fn_c_try_link "$LINENO"
  9050. then :
  9051. lt_aix_libpath_sed='
  9052. /Import File Strings/,/^$/ {
  9053. /^0/ {
  9054. s/^0 *\([^ ]*\) *$/\1/
  9055. p
  9056. }
  9057. }'
  9058. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9059. # Check for a 64-bit object if we didn't find anything.
  9060. if test -z "$lt_cv_aix_libpath_"; then
  9061. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9062. fi
  9063. fi
  9064. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9065. conftest$ac_exeext conftest.$ac_ext
  9066. if test -z "$lt_cv_aix_libpath_"; then
  9067. lt_cv_aix_libpath_=/usr/lib:/lib
  9068. fi
  9069. fi
  9070. aix_libpath=$lt_cv_aix_libpath_
  9071. fi
  9072. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9073. 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
  9074. else
  9075. if test ia64 = "$host_cpu"; then
  9076. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9077. allow_undefined_flag="-z nodefs"
  9078. 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"
  9079. else
  9080. # Determine the default libpath from the value encoded in an
  9081. # empty executable.
  9082. if test set = "${lt_cv_aix_libpath+set}"; then
  9083. aix_libpath=$lt_cv_aix_libpath
  9084. else
  9085. if test ${lt_cv_aix_libpath_+y}
  9086. then :
  9087. printf %s "(cached) " >&6
  9088. else $as_nop
  9089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9090. /* end confdefs.h. */
  9091. int
  9092. main (void)
  9093. {
  9094. ;
  9095. return 0;
  9096. }
  9097. _ACEOF
  9098. if ac_fn_c_try_link "$LINENO"
  9099. then :
  9100. lt_aix_libpath_sed='
  9101. /Import File Strings/,/^$/ {
  9102. /^0/ {
  9103. s/^0 *\([^ ]*\) *$/\1/
  9104. p
  9105. }
  9106. }'
  9107. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9108. # Check for a 64-bit object if we didn't find anything.
  9109. if test -z "$lt_cv_aix_libpath_"; then
  9110. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9111. fi
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9114. conftest$ac_exeext conftest.$ac_ext
  9115. if test -z "$lt_cv_aix_libpath_"; then
  9116. lt_cv_aix_libpath_=/usr/lib:/lib
  9117. fi
  9118. fi
  9119. aix_libpath=$lt_cv_aix_libpath_
  9120. fi
  9121. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9122. # Warning - without using the other run time loading flags,
  9123. # -berok will link without error, but may produce a broken library.
  9124. no_undefined_flag=' $wl-bernotok'
  9125. allow_undefined_flag=' $wl-berok'
  9126. if test yes = "$with_gnu_ld"; then
  9127. # We only use this code for GNU lds that support --whole-archive.
  9128. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9129. else
  9130. # Exported symbols can be pulled into shared objects from archives
  9131. whole_archive_flag_spec='$convenience'
  9132. fi
  9133. archive_cmds_need_lc=yes
  9134. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9135. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9136. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9137. if test svr4 != "$with_aix_soname"; then
  9138. # This is similar to how AIX traditionally builds its shared libraries.
  9139. 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'
  9140. fi
  9141. if test aix != "$with_aix_soname"; then
  9142. 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'
  9143. else
  9144. # used by -dlpreopen to get the symbols
  9145. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9146. fi
  9147. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9148. fi
  9149. fi
  9150. ;;
  9151. amigaos*)
  9152. case $host_cpu in
  9153. powerpc)
  9154. # see comment about AmigaOS4 .so support
  9155. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9156. archive_expsym_cmds=''
  9157. ;;
  9158. m68k)
  9159. 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)'
  9160. hardcode_libdir_flag_spec='-L$libdir'
  9161. hardcode_minus_L=yes
  9162. ;;
  9163. esac
  9164. ;;
  9165. bsdi[45]*)
  9166. export_dynamic_flag_spec=-rdynamic
  9167. ;;
  9168. cygwin* | mingw* | pw32* | cegcc*)
  9169. # When not using gcc, we currently assume that we are using
  9170. # Microsoft Visual C++.
  9171. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9172. # no search path for DLLs.
  9173. case $cc_basename in
  9174. cl*)
  9175. # Native MSVC
  9176. hardcode_libdir_flag_spec=' '
  9177. allow_undefined_flag=unsupported
  9178. always_export_symbols=yes
  9179. file_list_spec='@'
  9180. # Tell ltmain to make .lib files, not .a files.
  9181. libext=lib
  9182. # Tell ltmain to make .dll files, not .so files.
  9183. shrext_cmds=.dll
  9184. # FIXME: Setting linknames here is a bad hack.
  9185. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9186. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9187. cp "$export_symbols" "$output_objdir/$soname.def";
  9188. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9189. else
  9190. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9191. fi~
  9192. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9193. linknames='
  9194. # The linker will not automatically build a static lib if we build a DLL.
  9195. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9196. enable_shared_with_static_runtimes=yes
  9197. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9198. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9199. # Don't use ranlib
  9200. old_postinstall_cmds='chmod 644 $oldlib'
  9201. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9202. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9203. case $lt_outputfile in
  9204. *.exe|*.EXE) ;;
  9205. *)
  9206. lt_outputfile=$lt_outputfile.exe
  9207. lt_tool_outputfile=$lt_tool_outputfile.exe
  9208. ;;
  9209. esac~
  9210. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9211. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9212. $RM "$lt_outputfile.manifest";
  9213. fi'
  9214. ;;
  9215. *)
  9216. # Assume MSVC wrapper
  9217. hardcode_libdir_flag_spec=' '
  9218. allow_undefined_flag=unsupported
  9219. # Tell ltmain to make .lib files, not .a files.
  9220. libext=lib
  9221. # Tell ltmain to make .dll files, not .so files.
  9222. shrext_cmds=.dll
  9223. # FIXME: Setting linknames here is a bad hack.
  9224. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9225. # The linker will automatically build a .lib file if we build a DLL.
  9226. old_archive_from_new_cmds='true'
  9227. # FIXME: Should let the user specify the lib program.
  9228. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9229. enable_shared_with_static_runtimes=yes
  9230. ;;
  9231. esac
  9232. ;;
  9233. darwin* | rhapsody*)
  9234. archive_cmds_need_lc=no
  9235. hardcode_direct=no
  9236. hardcode_automatic=yes
  9237. hardcode_shlibpath_var=unsupported
  9238. if test yes = "$lt_cv_ld_force_load"; then
  9239. 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\"`'
  9240. else
  9241. whole_archive_flag_spec=''
  9242. fi
  9243. link_all_deplibs=yes
  9244. allow_undefined_flag=$_lt_dar_allow_undefined
  9245. case $cc_basename in
  9246. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9247. *) _lt_dar_can_shared=$GCC ;;
  9248. esac
  9249. if test yes = "$_lt_dar_can_shared"; then
  9250. output_verbose_link_cmd=func_echo_all
  9251. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9252. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9253. 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"
  9254. 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"
  9255. else
  9256. ld_shlibs=no
  9257. fi
  9258. ;;
  9259. dgux*)
  9260. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9261. hardcode_libdir_flag_spec='-L$libdir'
  9262. hardcode_shlibpath_var=no
  9263. ;;
  9264. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9265. # support. Future versions do this automatically, but an explicit c++rt0.o
  9266. # does not break anything, and helps significantly (at the cost of a little
  9267. # extra space).
  9268. freebsd2.2*)
  9269. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9270. hardcode_libdir_flag_spec='-R$libdir'
  9271. hardcode_direct=yes
  9272. hardcode_shlibpath_var=no
  9273. ;;
  9274. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9275. freebsd2.*)
  9276. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9277. hardcode_direct=yes
  9278. hardcode_minus_L=yes
  9279. hardcode_shlibpath_var=no
  9280. ;;
  9281. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9282. freebsd* | dragonfly* | midnightbsd*)
  9283. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9284. hardcode_libdir_flag_spec='-R$libdir'
  9285. hardcode_direct=yes
  9286. hardcode_shlibpath_var=no
  9287. ;;
  9288. hpux9*)
  9289. if test yes = "$GCC"; then
  9290. 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'
  9291. else
  9292. 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'
  9293. fi
  9294. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9295. hardcode_libdir_separator=:
  9296. hardcode_direct=yes
  9297. # hardcode_minus_L: Not really in the search PATH,
  9298. # but as the default location of the library.
  9299. hardcode_minus_L=yes
  9300. export_dynamic_flag_spec='$wl-E'
  9301. ;;
  9302. hpux10*)
  9303. if test yes,no = "$GCC,$with_gnu_ld"; then
  9304. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9305. else
  9306. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9307. fi
  9308. if test no = "$with_gnu_ld"; then
  9309. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9310. hardcode_libdir_separator=:
  9311. hardcode_direct=yes
  9312. hardcode_direct_absolute=yes
  9313. export_dynamic_flag_spec='$wl-E'
  9314. # hardcode_minus_L: Not really in the search PATH,
  9315. # but as the default location of the library.
  9316. hardcode_minus_L=yes
  9317. fi
  9318. ;;
  9319. hpux11*)
  9320. if test yes,no = "$GCC,$with_gnu_ld"; then
  9321. case $host_cpu in
  9322. hppa*64*)
  9323. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9324. ;;
  9325. ia64*)
  9326. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9327. ;;
  9328. *)
  9329. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9330. ;;
  9331. esac
  9332. else
  9333. case $host_cpu in
  9334. hppa*64*)
  9335. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. ;;
  9337. ia64*)
  9338. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9339. ;;
  9340. *)
  9341. # Older versions of the 11.00 compiler do not understand -b yet
  9342. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9344. printf %s "checking if $CC understands -b... " >&6; }
  9345. if test ${lt_cv_prog_compiler__b+y}
  9346. then :
  9347. printf %s "(cached) " >&6
  9348. else $as_nop
  9349. lt_cv_prog_compiler__b=no
  9350. save_LDFLAGS=$LDFLAGS
  9351. LDFLAGS="$LDFLAGS -b"
  9352. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9353. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9354. # The linker can only warn and ignore the option if not recognized
  9355. # So say no if there are warnings
  9356. if test -s conftest.err; then
  9357. # Append any errors to the config.log.
  9358. cat conftest.err 1>&5
  9359. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9360. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9361. if diff conftest.exp conftest.er2 >/dev/null; then
  9362. lt_cv_prog_compiler__b=yes
  9363. fi
  9364. else
  9365. lt_cv_prog_compiler__b=yes
  9366. fi
  9367. fi
  9368. $RM -r conftest*
  9369. LDFLAGS=$save_LDFLAGS
  9370. fi
  9371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9372. printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
  9373. if test yes = "$lt_cv_prog_compiler__b"; then
  9374. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9375. else
  9376. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9377. fi
  9378. ;;
  9379. esac
  9380. fi
  9381. if test no = "$with_gnu_ld"; then
  9382. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9383. hardcode_libdir_separator=:
  9384. case $host_cpu in
  9385. hppa*64*|ia64*)
  9386. hardcode_direct=no
  9387. hardcode_shlibpath_var=no
  9388. ;;
  9389. *)
  9390. hardcode_direct=yes
  9391. hardcode_direct_absolute=yes
  9392. export_dynamic_flag_spec='$wl-E'
  9393. # hardcode_minus_L: Not really in the search PATH,
  9394. # but as the default location of the library.
  9395. hardcode_minus_L=yes
  9396. ;;
  9397. esac
  9398. fi
  9399. ;;
  9400. irix5* | irix6* | nonstopux*)
  9401. if test yes = "$GCC"; then
  9402. 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'
  9403. # Try to use the -exported_symbol ld option, if it does not
  9404. # work, assume that -exports_file does not work either and
  9405. # implicitly export all symbols.
  9406. # This should be the same for all languages, so no per-tag cache variable.
  9407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9408. printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9409. if test ${lt_cv_irix_exported_symbol+y}
  9410. then :
  9411. printf %s "(cached) " >&6
  9412. else $as_nop
  9413. save_LDFLAGS=$LDFLAGS
  9414. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9416. /* end confdefs.h. */
  9417. int foo (void) { return 0; }
  9418. _ACEOF
  9419. if ac_fn_c_try_link "$LINENO"
  9420. then :
  9421. lt_cv_irix_exported_symbol=yes
  9422. else $as_nop
  9423. lt_cv_irix_exported_symbol=no
  9424. fi
  9425. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9426. conftest$ac_exeext conftest.$ac_ext
  9427. LDFLAGS=$save_LDFLAGS
  9428. fi
  9429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9430. printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
  9431. if test yes = "$lt_cv_irix_exported_symbol"; then
  9432. 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'
  9433. fi
  9434. else
  9435. 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'
  9436. 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'
  9437. fi
  9438. archive_cmds_need_lc='no'
  9439. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9440. hardcode_libdir_separator=:
  9441. inherit_rpath=yes
  9442. link_all_deplibs=yes
  9443. ;;
  9444. linux*)
  9445. case $cc_basename in
  9446. tcc*)
  9447. # Fabrice Bellard et al's Tiny C Compiler
  9448. ld_shlibs=yes
  9449. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9450. ;;
  9451. esac
  9452. ;;
  9453. netbsd*)
  9454. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9455. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9456. else
  9457. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9458. fi
  9459. hardcode_libdir_flag_spec='-R$libdir'
  9460. hardcode_direct=yes
  9461. hardcode_shlibpath_var=no
  9462. ;;
  9463. newsos6)
  9464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9465. hardcode_direct=yes
  9466. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9467. hardcode_libdir_separator=:
  9468. hardcode_shlibpath_var=no
  9469. ;;
  9470. *nto* | *qnx*)
  9471. ;;
  9472. openbsd* | bitrig*)
  9473. if test -f /usr/libexec/ld.so; then
  9474. hardcode_direct=yes
  9475. hardcode_shlibpath_var=no
  9476. hardcode_direct_absolute=yes
  9477. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9478. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9479. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9480. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9481. export_dynamic_flag_spec='$wl-E'
  9482. else
  9483. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9484. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9485. fi
  9486. else
  9487. ld_shlibs=no
  9488. fi
  9489. ;;
  9490. os2*)
  9491. hardcode_libdir_flag_spec='-L$libdir'
  9492. hardcode_minus_L=yes
  9493. allow_undefined_flag=unsupported
  9494. shrext_cmds=.dll
  9495. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9496. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9497. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9498. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9499. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9500. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9501. emximp -o $lib $output_objdir/$libname.def'
  9502. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9503. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9504. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9505. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9506. prefix_cmds="$SED"~
  9507. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9508. prefix_cmds="$prefix_cmds -e 1d";
  9509. fi~
  9510. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9511. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9512. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9513. emximp -o $lib $output_objdir/$libname.def'
  9514. old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9515. enable_shared_with_static_runtimes=yes
  9516. file_list_spec='@'
  9517. ;;
  9518. osf3*)
  9519. if test yes = "$GCC"; then
  9520. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9521. 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'
  9522. else
  9523. allow_undefined_flag=' -expect_unresolved \*'
  9524. 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'
  9525. fi
  9526. archive_cmds_need_lc='no'
  9527. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9528. hardcode_libdir_separator=:
  9529. ;;
  9530. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9531. if test yes = "$GCC"; then
  9532. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9533. 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'
  9534. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9535. else
  9536. allow_undefined_flag=' -expect_unresolved \*'
  9537. 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'
  9538. 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~
  9539. $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'
  9540. # Both c and cxx compiler support -rpath directly
  9541. hardcode_libdir_flag_spec='-rpath $libdir'
  9542. fi
  9543. archive_cmds_need_lc='no'
  9544. hardcode_libdir_separator=:
  9545. ;;
  9546. solaris*)
  9547. no_undefined_flag=' -z defs'
  9548. if test yes = "$GCC"; then
  9549. wlarc='$wl'
  9550. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9551. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9552. $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'
  9553. else
  9554. case `$CC -V 2>&1` in
  9555. *"Compilers 5.0"*)
  9556. wlarc=''
  9557. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9558. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9559. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9560. ;;
  9561. *)
  9562. wlarc='$wl'
  9563. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9564. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9565. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9566. ;;
  9567. esac
  9568. fi
  9569. hardcode_libdir_flag_spec='-R$libdir'
  9570. hardcode_shlibpath_var=no
  9571. case $host_os in
  9572. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9573. *)
  9574. # The compiler driver will combine and reorder linker options,
  9575. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9576. # but is careful enough not to reorder.
  9577. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9578. if test yes = "$GCC"; then
  9579. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9580. else
  9581. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9582. fi
  9583. ;;
  9584. esac
  9585. link_all_deplibs=yes
  9586. ;;
  9587. sunos4*)
  9588. if test sequent = "$host_vendor"; then
  9589. # Use $CC to link under sequent, because it throws in some extra .o
  9590. # files that make .init and .fini sections work.
  9591. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9592. else
  9593. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9594. fi
  9595. hardcode_libdir_flag_spec='-L$libdir'
  9596. hardcode_direct=yes
  9597. hardcode_minus_L=yes
  9598. hardcode_shlibpath_var=no
  9599. ;;
  9600. sysv4)
  9601. case $host_vendor in
  9602. sni)
  9603. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9604. hardcode_direct=yes # is this really true???
  9605. ;;
  9606. siemens)
  9607. ## LD is ld it makes a PLAMLIB
  9608. ## CC just makes a GrossModule.
  9609. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9610. reload_cmds='$CC -r -o $output$reload_objs'
  9611. hardcode_direct=no
  9612. ;;
  9613. motorola)
  9614. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9615. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9616. ;;
  9617. esac
  9618. runpath_var='LD_RUN_PATH'
  9619. hardcode_shlibpath_var=no
  9620. ;;
  9621. sysv4.3*)
  9622. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9623. hardcode_shlibpath_var=no
  9624. export_dynamic_flag_spec='-Bexport'
  9625. ;;
  9626. sysv4*MP*)
  9627. if test -d /usr/nec; then
  9628. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9629. hardcode_shlibpath_var=no
  9630. runpath_var=LD_RUN_PATH
  9631. hardcode_runpath_var=yes
  9632. ld_shlibs=yes
  9633. fi
  9634. ;;
  9635. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9636. no_undefined_flag='$wl-z,text'
  9637. archive_cmds_need_lc=no
  9638. hardcode_shlibpath_var=no
  9639. runpath_var='LD_RUN_PATH'
  9640. if test yes = "$GCC"; then
  9641. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9642. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9643. else
  9644. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9645. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9646. fi
  9647. ;;
  9648. sysv5* | sco3.2v5* | sco5v6*)
  9649. # Note: We CANNOT use -z defs as we might desire, because we do not
  9650. # link with -lc, and that would cause any symbols used from libc to
  9651. # always be unresolved, which means just about no library would
  9652. # ever link correctly. If we're not using GNU ld we use -z text
  9653. # though, which does catch some bad symbols but isn't as heavy-handed
  9654. # as -z defs.
  9655. no_undefined_flag='$wl-z,text'
  9656. allow_undefined_flag='$wl-z,nodefs'
  9657. archive_cmds_need_lc=no
  9658. hardcode_shlibpath_var=no
  9659. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9660. hardcode_libdir_separator=':'
  9661. link_all_deplibs=yes
  9662. export_dynamic_flag_spec='$wl-Bexport'
  9663. runpath_var='LD_RUN_PATH'
  9664. if test yes = "$GCC"; then
  9665. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9666. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9667. else
  9668. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9669. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9670. fi
  9671. ;;
  9672. uts4*)
  9673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9674. hardcode_libdir_flag_spec='-L$libdir'
  9675. hardcode_shlibpath_var=no
  9676. ;;
  9677. *)
  9678. ld_shlibs=no
  9679. ;;
  9680. esac
  9681. if test sni = "$host_vendor"; then
  9682. case $host in
  9683. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9684. export_dynamic_flag_spec='$wl-Blargedynsym'
  9685. ;;
  9686. esac
  9687. fi
  9688. fi
  9689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9690. printf "%s\n" "$ld_shlibs" >&6; }
  9691. test no = "$ld_shlibs" && can_build_shared=no
  9692. with_gnu_ld=$with_gnu_ld
  9693. #
  9694. # Do we need to explicitly link libc?
  9695. #
  9696. case "x$archive_cmds_need_lc" in
  9697. x|xyes)
  9698. # Assume -lc should be added
  9699. archive_cmds_need_lc=yes
  9700. if test yes,yes = "$GCC,$enable_shared"; then
  9701. case $archive_cmds in
  9702. *'~'*)
  9703. # FIXME: we may have to deal with multi-command sequences.
  9704. ;;
  9705. '$CC '*)
  9706. # Test whether the compiler implicitly links with -lc since on some
  9707. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9708. # to ld, don't add -lc before -lgcc.
  9709. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9710. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  9711. if test ${lt_cv_archive_cmds_need_lc+y}
  9712. then :
  9713. printf %s "(cached) " >&6
  9714. else $as_nop
  9715. $RM conftest*
  9716. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9717. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9718. (eval $ac_compile) 2>&5
  9719. ac_status=$?
  9720. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9721. test $ac_status = 0; } 2>conftest.err; then
  9722. soname=conftest
  9723. lib=conftest
  9724. libobjs=conftest.$ac_objext
  9725. deplibs=
  9726. wl=$lt_prog_compiler_wl
  9727. pic_flag=$lt_prog_compiler_pic
  9728. compiler_flags=-v
  9729. linker_flags=-v
  9730. verstring=
  9731. output_objdir=.
  9732. libname=conftest
  9733. lt_save_allow_undefined_flag=$allow_undefined_flag
  9734. allow_undefined_flag=
  9735. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9736. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9737. ac_status=$?
  9738. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9739. test $ac_status = 0; }
  9740. then
  9741. lt_cv_archive_cmds_need_lc=no
  9742. else
  9743. lt_cv_archive_cmds_need_lc=yes
  9744. fi
  9745. allow_undefined_flag=$lt_save_allow_undefined_flag
  9746. else
  9747. cat conftest.err 1>&5
  9748. fi
  9749. $RM conftest*
  9750. fi
  9751. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9752. printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
  9753. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9754. ;;
  9755. esac
  9756. fi
  9757. ;;
  9758. esac
  9759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9760. printf %s "checking dynamic linker characteristics... " >&6; }
  9761. if test yes = "$GCC"; then
  9762. case $host_os in
  9763. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9764. *) lt_awk_arg='/^libraries:/' ;;
  9765. esac
  9766. case $host_os in
  9767. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9768. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9769. esac
  9770. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9771. case $lt_search_path_spec in
  9772. *\;*)
  9773. # if the path contains ";" then we assume it to be the separator
  9774. # otherwise default to the standard path separator (i.e. ":") - it is
  9775. # assumed that no part of a normal pathname contains ";" but that should
  9776. # okay in the real world where ";" in dirpaths is itself problematic.
  9777. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9778. ;;
  9779. *)
  9780. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9781. ;;
  9782. esac
  9783. # Ok, now we have the path, separated by spaces, we can step through it
  9784. # and add multilib dir if necessary...
  9785. lt_tmp_lt_search_path_spec=
  9786. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9787. # ...but if some path component already ends with the multilib dir we assume
  9788. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9789. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9790. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9791. lt_multi_os_dir=
  9792. ;;
  9793. esac
  9794. for lt_sys_path in $lt_search_path_spec; do
  9795. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9796. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9797. elif test -n "$lt_multi_os_dir"; then
  9798. test -d "$lt_sys_path" && \
  9799. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9800. fi
  9801. done
  9802. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9803. BEGIN {RS = " "; FS = "/|\n";} {
  9804. lt_foo = "";
  9805. lt_count = 0;
  9806. for (lt_i = NF; lt_i > 0; lt_i--) {
  9807. if ($lt_i != "" && $lt_i != ".") {
  9808. if ($lt_i == "..") {
  9809. lt_count++;
  9810. } else {
  9811. if (lt_count == 0) {
  9812. lt_foo = "/" $lt_i lt_foo;
  9813. } else {
  9814. lt_count--;
  9815. }
  9816. }
  9817. }
  9818. }
  9819. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9820. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9821. }'`
  9822. # AWK program above erroneously prepends '/' to C:/dos/paths
  9823. # for these hosts.
  9824. case $host_os in
  9825. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9826. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9827. esac
  9828. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9829. else
  9830. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9831. fi
  9832. library_names_spec=
  9833. libname_spec='lib$name'
  9834. soname_spec=
  9835. shrext_cmds=.so
  9836. postinstall_cmds=
  9837. postuninstall_cmds=
  9838. finish_cmds=
  9839. finish_eval=
  9840. shlibpath_var=
  9841. shlibpath_overrides_runpath=unknown
  9842. version_type=none
  9843. dynamic_linker="$host_os ld.so"
  9844. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9845. need_lib_prefix=unknown
  9846. hardcode_into_libs=no
  9847. # when you set need_version to no, make sure it does not cause -set_version
  9848. # flags to be left without arguments
  9849. need_version=unknown
  9850. case $host_os in
  9851. aix3*)
  9852. version_type=linux # correct to gnu/linux during the next big refactor
  9853. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9854. shlibpath_var=LIBPATH
  9855. # AIX 3 has no versioning support, so we append a major version to the name.
  9856. soname_spec='$libname$release$shared_ext$major'
  9857. ;;
  9858. aix[4-9]*)
  9859. version_type=linux # correct to gnu/linux during the next big refactor
  9860. need_lib_prefix=no
  9861. need_version=no
  9862. hardcode_into_libs=yes
  9863. if test ia64 = "$host_cpu"; then
  9864. # AIX 5 supports IA64
  9865. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. else
  9868. # With GCC up to 2.95.x, collect2 would create an import file
  9869. # for dependence libraries. The import file would start with
  9870. # the line '#! .'. This would cause the generated library to
  9871. # depend on '.', always an invalid library. This was fixed in
  9872. # development snapshots of GCC prior to 3.0.
  9873. case $host_os in
  9874. aix4 | aix4.[01] | aix4.[01].*)
  9875. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9876. echo ' yes '
  9877. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9878. :
  9879. else
  9880. can_build_shared=no
  9881. fi
  9882. ;;
  9883. esac
  9884. # Using Import Files as archive members, it is possible to support
  9885. # filename-based versioning of shared library archives on AIX. While
  9886. # this would work for both with and without runtime linking, it will
  9887. # prevent static linking of such archives. So we do filename-based
  9888. # shared library versioning with .so extension only, which is used
  9889. # when both runtime linking and shared linking is enabled.
  9890. # Unfortunately, runtime linking may impact performance, so we do
  9891. # not want this to be the default eventually. Also, we use the
  9892. # versioned .so libs for executables only if there is the -brtl
  9893. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9894. # To allow for filename-based versioning support, we need to create
  9895. # libNAME.so.V as an archive file, containing:
  9896. # *) an Import File, referring to the versioned filename of the
  9897. # archive as well as the shared archive member, telling the
  9898. # bitwidth (32 or 64) of that shared object, and providing the
  9899. # list of exported symbols of that shared object, eventually
  9900. # decorated with the 'weak' keyword
  9901. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9902. # it being seen by the linker.
  9903. # At run time we better use the real file rather than another symlink,
  9904. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9905. case $with_aix_soname,$aix_use_runtimelinking in
  9906. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9907. # soname into executable. Probably we can add versioning support to
  9908. # collect2, so additional links can be useful in future.
  9909. aix,yes) # traditional libtool
  9910. dynamic_linker='AIX unversionable lib.so'
  9911. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9912. # instead of lib<name>.a to let people know that these are not
  9913. # typical AIX shared libraries.
  9914. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9915. ;;
  9916. aix,no) # traditional AIX only
  9917. dynamic_linker='AIX lib.a(lib.so.V)'
  9918. # We preserve .a as extension for shared libraries through AIX4.2
  9919. # and later when we are not doing run time linking.
  9920. library_names_spec='$libname$release.a $libname.a'
  9921. soname_spec='$libname$release$shared_ext$major'
  9922. ;;
  9923. svr4,*) # full svr4 only
  9924. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9925. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9926. # We do not specify a path in Import Files, so LIBPATH fires.
  9927. shlibpath_overrides_runpath=yes
  9928. ;;
  9929. *,yes) # both, prefer svr4
  9930. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9931. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9932. # unpreferred sharedlib libNAME.a needs extra handling
  9933. 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"'
  9934. 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"'
  9935. # We do not specify a path in Import Files, so LIBPATH fires.
  9936. shlibpath_overrides_runpath=yes
  9937. ;;
  9938. *,no) # both, prefer aix
  9939. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9940. library_names_spec='$libname$release.a $libname.a'
  9941. soname_spec='$libname$release$shared_ext$major'
  9942. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9943. 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)'
  9944. 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"'
  9945. ;;
  9946. esac
  9947. shlibpath_var=LIBPATH
  9948. fi
  9949. ;;
  9950. amigaos*)
  9951. case $host_cpu in
  9952. powerpc)
  9953. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9954. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9955. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9956. ;;
  9957. m68k)
  9958. library_names_spec='$libname.ixlibrary $libname.a'
  9959. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9960. 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'
  9961. ;;
  9962. esac
  9963. ;;
  9964. beos*)
  9965. library_names_spec='$libname$shared_ext'
  9966. dynamic_linker="$host_os ld.so"
  9967. shlibpath_var=LIBRARY_PATH
  9968. ;;
  9969. bsdi[45]*)
  9970. version_type=linux # correct to gnu/linux during the next big refactor
  9971. need_version=no
  9972. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9973. soname_spec='$libname$release$shared_ext$major'
  9974. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9975. shlibpath_var=LD_LIBRARY_PATH
  9976. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9977. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9978. # the default ld.so.conf also contains /usr/contrib/lib and
  9979. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9980. # libtool to hard-code these into programs
  9981. ;;
  9982. cygwin* | mingw* | pw32* | cegcc*)
  9983. version_type=windows
  9984. shrext_cmds=.dll
  9985. need_version=no
  9986. need_lib_prefix=no
  9987. case $GCC,$cc_basename in
  9988. yes,*)
  9989. # gcc
  9990. library_names_spec='$libname.dll.a'
  9991. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9992. postinstall_cmds='base_file=`basename \$file`~
  9993. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9994. dldir=$destdir/`dirname \$dlpath`~
  9995. test -d \$dldir || mkdir -p \$dldir~
  9996. $install_prog $dir/$dlname \$dldir/$dlname~
  9997. chmod a+x \$dldir/$dlname~
  9998. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9999. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10000. fi'
  10001. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10002. dlpath=$dir/\$dldll~
  10003. $RM \$dlpath'
  10004. shlibpath_overrides_runpath=yes
  10005. case $host_os in
  10006. cygwin*)
  10007. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10008. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10009. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  10010. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10011. ;;
  10012. mingw* | cegcc*)
  10013. # MinGW DLLs use traditional 'lib' prefix
  10014. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  10015. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  10016. ;;
  10017. pw32*)
  10018. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10019. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10020. ;;
  10021. esac
  10022. dynamic_linker='Win32 ld.exe'
  10023. ;;
  10024. *,cl*)
  10025. # Native MSVC
  10026. libname_spec='$name'
  10027. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10028. library_names_spec='$libname.dll.lib'
  10029. case $build_os in
  10030. mingw*)
  10031. sys_lib_search_path_spec=
  10032. lt_save_ifs=$IFS
  10033. IFS=';'
  10034. for lt_path in $LIB
  10035. do
  10036. IFS=$lt_save_ifs
  10037. # Let DOS variable expansion print the short 8.3 style file name.
  10038. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10039. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10040. done
  10041. IFS=$lt_save_ifs
  10042. # Convert to MSYS style.
  10043. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10044. ;;
  10045. cygwin*)
  10046. # Convert to unix form, then to dos form, then back to unix form
  10047. # but this time dos style (no spaces!) so that the unix form looks
  10048. # like /cygdrive/c/PROGRA~1:/cygdr...
  10049. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10050. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10051. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10052. ;;
  10053. *)
  10054. sys_lib_search_path_spec=$LIB
  10055. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10056. # It is most probably a Windows format PATH.
  10057. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10058. else
  10059. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10060. fi
  10061. # FIXME: find the short name or the path components, as spaces are
  10062. # common. (e.g. "Program Files" -> "PROGRA~1")
  10063. ;;
  10064. esac
  10065. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10066. postinstall_cmds='base_file=`basename \$file`~
  10067. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10068. dldir=$destdir/`dirname \$dlpath`~
  10069. test -d \$dldir || mkdir -p \$dldir~
  10070. $install_prog $dir/$dlname \$dldir/$dlname'
  10071. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10072. dlpath=$dir/\$dldll~
  10073. $RM \$dlpath'
  10074. shlibpath_overrides_runpath=yes
  10075. dynamic_linker='Win32 link.exe'
  10076. ;;
  10077. *)
  10078. # Assume MSVC wrapper
  10079. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10080. dynamic_linker='Win32 ld.exe'
  10081. ;;
  10082. esac
  10083. # FIXME: first we should search . and the directory the executable is in
  10084. shlibpath_var=PATH
  10085. ;;
  10086. darwin* | rhapsody*)
  10087. dynamic_linker="$host_os dyld"
  10088. version_type=darwin
  10089. need_lib_prefix=no
  10090. need_version=no
  10091. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10092. soname_spec='$libname$release$major$shared_ext'
  10093. shlibpath_overrides_runpath=yes
  10094. shlibpath_var=DYLD_LIBRARY_PATH
  10095. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10096. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10097. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10098. ;;
  10099. dgux*)
  10100. version_type=linux # correct to gnu/linux during the next big refactor
  10101. need_lib_prefix=no
  10102. need_version=no
  10103. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10104. soname_spec='$libname$release$shared_ext$major'
  10105. shlibpath_var=LD_LIBRARY_PATH
  10106. ;;
  10107. freebsd* | dragonfly* | midnightbsd*)
  10108. # DragonFly does not have aout. When/if they implement a new
  10109. # versioning mechanism, adjust this.
  10110. if test -x /usr/bin/objformat; then
  10111. objformat=`/usr/bin/objformat`
  10112. else
  10113. case $host_os in
  10114. freebsd[23].*) objformat=aout ;;
  10115. *) objformat=elf ;;
  10116. esac
  10117. fi
  10118. version_type=freebsd-$objformat
  10119. case $version_type in
  10120. freebsd-elf*)
  10121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10122. soname_spec='$libname$release$shared_ext$major'
  10123. need_version=no
  10124. need_lib_prefix=no
  10125. ;;
  10126. freebsd-*)
  10127. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10128. need_version=yes
  10129. ;;
  10130. esac
  10131. shlibpath_var=LD_LIBRARY_PATH
  10132. case $host_os in
  10133. freebsd2.*)
  10134. shlibpath_overrides_runpath=yes
  10135. ;;
  10136. freebsd3.[01]* | freebsdelf3.[01]*)
  10137. shlibpath_overrides_runpath=yes
  10138. hardcode_into_libs=yes
  10139. ;;
  10140. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10141. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10142. shlibpath_overrides_runpath=no
  10143. hardcode_into_libs=yes
  10144. ;;
  10145. *) # from 4.6 on, and DragonFly
  10146. shlibpath_overrides_runpath=yes
  10147. hardcode_into_libs=yes
  10148. ;;
  10149. esac
  10150. ;;
  10151. haiku*)
  10152. version_type=linux # correct to gnu/linux during the next big refactor
  10153. need_lib_prefix=no
  10154. need_version=no
  10155. dynamic_linker="$host_os runtime_loader"
  10156. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10157. soname_spec='$libname$release$shared_ext$major'
  10158. shlibpath_var=LIBRARY_PATH
  10159. shlibpath_overrides_runpath=no
  10160. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10161. hardcode_into_libs=yes
  10162. ;;
  10163. hpux9* | hpux10* | hpux11*)
  10164. # Give a soname corresponding to the major version so that dld.sl refuses to
  10165. # link against other versions.
  10166. version_type=sunos
  10167. need_lib_prefix=no
  10168. need_version=no
  10169. case $host_cpu in
  10170. ia64*)
  10171. shrext_cmds='.so'
  10172. hardcode_into_libs=yes
  10173. dynamic_linker="$host_os dld.so"
  10174. shlibpath_var=LD_LIBRARY_PATH
  10175. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10176. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10177. soname_spec='$libname$release$shared_ext$major'
  10178. if test 32 = "$HPUX_IA64_MODE"; then
  10179. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10180. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10181. else
  10182. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10183. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10184. fi
  10185. ;;
  10186. hppa*64*)
  10187. shrext_cmds='.sl'
  10188. hardcode_into_libs=yes
  10189. dynamic_linker="$host_os dld.sl"
  10190. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10191. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10192. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10193. soname_spec='$libname$release$shared_ext$major'
  10194. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10195. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10196. ;;
  10197. *)
  10198. shrext_cmds='.sl'
  10199. dynamic_linker="$host_os dld.sl"
  10200. shlibpath_var=SHLIB_PATH
  10201. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10202. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10203. soname_spec='$libname$release$shared_ext$major'
  10204. ;;
  10205. esac
  10206. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10207. postinstall_cmds='chmod 555 $lib'
  10208. # or fails outright, so override atomically:
  10209. install_override_mode=555
  10210. ;;
  10211. interix[3-9]*)
  10212. version_type=linux # correct to gnu/linux during the next big refactor
  10213. need_lib_prefix=no
  10214. need_version=no
  10215. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10216. soname_spec='$libname$release$shared_ext$major'
  10217. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10218. shlibpath_var=LD_LIBRARY_PATH
  10219. shlibpath_overrides_runpath=no
  10220. hardcode_into_libs=yes
  10221. ;;
  10222. irix5* | irix6* | nonstopux*)
  10223. case $host_os in
  10224. nonstopux*) version_type=nonstopux ;;
  10225. *)
  10226. if test yes = "$lt_cv_prog_gnu_ld"; then
  10227. version_type=linux # correct to gnu/linux during the next big refactor
  10228. else
  10229. version_type=irix
  10230. fi ;;
  10231. esac
  10232. need_lib_prefix=no
  10233. need_version=no
  10234. soname_spec='$libname$release$shared_ext$major'
  10235. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10236. case $host_os in
  10237. irix5* | nonstopux*)
  10238. libsuff= shlibsuff=
  10239. ;;
  10240. *)
  10241. case $LD in # libtool.m4 will add one of these switches to LD
  10242. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10243. libsuff= shlibsuff= libmagic=32-bit;;
  10244. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10245. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10246. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10247. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10248. *) libsuff= shlibsuff= libmagic=never-match;;
  10249. esac
  10250. ;;
  10251. esac
  10252. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10253. shlibpath_overrides_runpath=no
  10254. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10255. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10256. hardcode_into_libs=yes
  10257. ;;
  10258. # No shared lib support for Linux oldld, aout, or coff.
  10259. linux*oldld* | linux*aout* | linux*coff*)
  10260. dynamic_linker=no
  10261. ;;
  10262. linux*android*)
  10263. version_type=none # Android doesn't support versioned libraries.
  10264. need_lib_prefix=no
  10265. need_version=no
  10266. library_names_spec='$libname$release$shared_ext'
  10267. soname_spec='$libname$release$shared_ext'
  10268. finish_cmds=
  10269. shlibpath_var=LD_LIBRARY_PATH
  10270. shlibpath_overrides_runpath=yes
  10271. # This implies no fast_install, which is unacceptable.
  10272. # Some rework will be needed to allow for fast_install
  10273. # before this can be enabled.
  10274. hardcode_into_libs=yes
  10275. dynamic_linker='Android linker'
  10276. # Don't embed -rpath directories since the linker doesn't support them.
  10277. hardcode_libdir_flag_spec='-L$libdir'
  10278. ;;
  10279. # This must be glibc/ELF.
  10280. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10281. version_type=linux # correct to gnu/linux during the next big refactor
  10282. need_lib_prefix=no
  10283. need_version=no
  10284. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10285. soname_spec='$libname$release$shared_ext$major'
  10286. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10287. shlibpath_var=LD_LIBRARY_PATH
  10288. shlibpath_overrides_runpath=no
  10289. # Some binutils ld are patched to set DT_RUNPATH
  10290. if test ${lt_cv_shlibpath_overrides_runpath+y}
  10291. then :
  10292. printf %s "(cached) " >&6
  10293. else $as_nop
  10294. lt_cv_shlibpath_overrides_runpath=no
  10295. save_LDFLAGS=$LDFLAGS
  10296. save_libdir=$libdir
  10297. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10298. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10300. /* end confdefs.h. */
  10301. int
  10302. main (void)
  10303. {
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"
  10309. then :
  10310. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  10311. then :
  10312. lt_cv_shlibpath_overrides_runpath=yes
  10313. fi
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. LDFLAGS=$save_LDFLAGS
  10318. libdir=$save_libdir
  10319. fi
  10320. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10321. # This implies no fast_install, which is unacceptable.
  10322. # Some rework will be needed to allow for fast_install
  10323. # before this can be enabled.
  10324. hardcode_into_libs=yes
  10325. # Add ABI-specific directories to the system library path.
  10326. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10327. # Ideally, we could use ldconfig to report *all* directores which are
  10328. # searched for libraries, however this is still not possible. Aside from not
  10329. # being certain /sbin/ldconfig is available, command
  10330. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10331. # even though it is searched at run-time. Try to do the best guess by
  10332. # appending ld.so.conf contents (and includes) to the search path.
  10333. if test -f /etc/ld.so.conf; then
  10334. 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' ' '`
  10335. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10336. fi
  10337. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10338. # powerpc, because MkLinux only supported shared libraries with the
  10339. # GNU dynamic linker. Since this was broken with cross compilers,
  10340. # most powerpc-linux boxes support dynamic linking these days and
  10341. # people can always --disable-shared, the test was removed, and we
  10342. # assume the GNU/Linux dynamic linker is in use.
  10343. dynamic_linker='GNU/Linux ld.so'
  10344. ;;
  10345. netbsd*)
  10346. version_type=sunos
  10347. need_lib_prefix=no
  10348. need_version=no
  10349. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10350. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10351. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10352. dynamic_linker='NetBSD (a.out) ld.so'
  10353. else
  10354. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10355. soname_spec='$libname$release$shared_ext$major'
  10356. dynamic_linker='NetBSD ld.elf_so'
  10357. fi
  10358. shlibpath_var=LD_LIBRARY_PATH
  10359. shlibpath_overrides_runpath=yes
  10360. hardcode_into_libs=yes
  10361. ;;
  10362. newsos6)
  10363. version_type=linux # correct to gnu/linux during the next big refactor
  10364. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10365. shlibpath_var=LD_LIBRARY_PATH
  10366. shlibpath_overrides_runpath=yes
  10367. ;;
  10368. *nto* | *qnx*)
  10369. version_type=qnx
  10370. need_lib_prefix=no
  10371. need_version=no
  10372. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10373. soname_spec='$libname$release$shared_ext$major'
  10374. shlibpath_var=LD_LIBRARY_PATH
  10375. shlibpath_overrides_runpath=no
  10376. hardcode_into_libs=yes
  10377. dynamic_linker='ldqnx.so'
  10378. ;;
  10379. openbsd* | bitrig*)
  10380. version_type=sunos
  10381. sys_lib_dlsearch_path_spec=/usr/lib
  10382. need_lib_prefix=no
  10383. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10384. need_version=no
  10385. else
  10386. need_version=yes
  10387. fi
  10388. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10389. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. shlibpath_overrides_runpath=yes
  10392. ;;
  10393. os2*)
  10394. libname_spec='$name'
  10395. shrext_cmds=.dll
  10396. need_lib_prefix=no
  10397. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10398. # SDL customization: removed versioning support.
  10399. # version_type=windows
  10400. # need_version=no
  10401. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10402. # v=$($ECHO $release$versuffix | tr -d .-);
  10403. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10404. # $ECHO $n$v`$shared_ext'
  10405. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  10406. library_names_spec='${libname}_dll.$libext'
  10407. dynamic_linker='OS/2 ld.exe'
  10408. shlibpath_var=BEGINLIBPATH
  10409. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10410. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10411. postinstall_cmds='base_file=`basename \$file`~
  10412. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10413. dldir=$destdir/`dirname \$dlpath`~
  10414. test -d \$dldir || mkdir -p \$dldir~
  10415. $install_prog $dir/$dlname \$dldir/$dlname~
  10416. chmod a+x \$dldir/$dlname~
  10417. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10418. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10419. fi'
  10420. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10421. dlpath=$dir/\$dldll~
  10422. $RM \$dlpath'
  10423. ;;
  10424. osf3* | osf4* | osf5*)
  10425. version_type=osf
  10426. need_lib_prefix=no
  10427. need_version=no
  10428. soname_spec='$libname$release$shared_ext$major'
  10429. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10430. shlibpath_var=LD_LIBRARY_PATH
  10431. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10432. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10433. ;;
  10434. rdos*)
  10435. dynamic_linker=no
  10436. ;;
  10437. solaris*)
  10438. version_type=linux # correct to gnu/linux during the next big refactor
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10442. soname_spec='$libname$release$shared_ext$major'
  10443. shlibpath_var=LD_LIBRARY_PATH
  10444. shlibpath_overrides_runpath=yes
  10445. hardcode_into_libs=yes
  10446. # ldd complains unless libraries are executable
  10447. postinstall_cmds='chmod +x $lib'
  10448. ;;
  10449. sunos4*)
  10450. version_type=sunos
  10451. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10452. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10453. shlibpath_var=LD_LIBRARY_PATH
  10454. shlibpath_overrides_runpath=yes
  10455. if test yes = "$with_gnu_ld"; then
  10456. need_lib_prefix=no
  10457. fi
  10458. need_version=yes
  10459. ;;
  10460. sysv4 | sysv4.3*)
  10461. version_type=linux # correct to gnu/linux during the next big refactor
  10462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10463. soname_spec='$libname$release$shared_ext$major'
  10464. shlibpath_var=LD_LIBRARY_PATH
  10465. case $host_vendor in
  10466. sni)
  10467. shlibpath_overrides_runpath=no
  10468. need_lib_prefix=no
  10469. runpath_var=LD_RUN_PATH
  10470. ;;
  10471. siemens)
  10472. need_lib_prefix=no
  10473. ;;
  10474. motorola)
  10475. need_lib_prefix=no
  10476. need_version=no
  10477. shlibpath_overrides_runpath=no
  10478. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10479. ;;
  10480. esac
  10481. ;;
  10482. sysv4*MP*)
  10483. if test -d /usr/nec; then
  10484. version_type=linux # correct to gnu/linux during the next big refactor
  10485. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10486. soname_spec='$libname$shared_ext.$major'
  10487. shlibpath_var=LD_LIBRARY_PATH
  10488. fi
  10489. ;;
  10490. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10491. version_type=sco
  10492. need_lib_prefix=no
  10493. need_version=no
  10494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10495. soname_spec='$libname$release$shared_ext$major'
  10496. shlibpath_var=LD_LIBRARY_PATH
  10497. shlibpath_overrides_runpath=yes
  10498. hardcode_into_libs=yes
  10499. if test yes = "$with_gnu_ld"; then
  10500. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10501. else
  10502. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10503. case $host_os in
  10504. sco3.2v5*)
  10505. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10506. ;;
  10507. esac
  10508. fi
  10509. sys_lib_dlsearch_path_spec='/usr/lib'
  10510. ;;
  10511. tpf*)
  10512. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10513. version_type=linux # correct to gnu/linux during the next big refactor
  10514. need_lib_prefix=no
  10515. need_version=no
  10516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10517. shlibpath_var=LD_LIBRARY_PATH
  10518. shlibpath_overrides_runpath=no
  10519. hardcode_into_libs=yes
  10520. ;;
  10521. uts4*)
  10522. version_type=linux # correct to gnu/linux during the next big refactor
  10523. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10524. soname_spec='$libname$release$shared_ext$major'
  10525. shlibpath_var=LD_LIBRARY_PATH
  10526. ;;
  10527. *)
  10528. dynamic_linker=no
  10529. ;;
  10530. esac
  10531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10532. printf "%s\n" "$dynamic_linker" >&6; }
  10533. test no = "$dynamic_linker" && can_build_shared=no
  10534. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10535. if test yes = "$GCC"; then
  10536. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10537. fi
  10538. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10539. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10540. fi
  10541. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10542. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10543. fi
  10544. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10545. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10546. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10547. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10548. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10549. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10551. printf %s "checking how to hardcode library paths into programs... " >&6; }
  10552. hardcode_action=
  10553. if test -n "$hardcode_libdir_flag_spec" ||
  10554. test -n "$runpath_var" ||
  10555. test yes = "$hardcode_automatic"; then
  10556. # We can hardcode non-existent directories.
  10557. if test no != "$hardcode_direct" &&
  10558. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10559. # have to relink, otherwise we might link with an installed library
  10560. # when we should be linking with a yet-to-be-installed one
  10561. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10562. test no != "$hardcode_minus_L"; then
  10563. # Linking always hardcodes the temporary library directory.
  10564. hardcode_action=relink
  10565. else
  10566. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10567. hardcode_action=immediate
  10568. fi
  10569. else
  10570. # We cannot hardcode anything, or else we can only hardcode existing
  10571. # directories.
  10572. hardcode_action=unsupported
  10573. fi
  10574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10575. printf "%s\n" "$hardcode_action" >&6; }
  10576. if test relink = "$hardcode_action" ||
  10577. test yes = "$inherit_rpath"; then
  10578. # Fast installation is not supported
  10579. enable_fast_install=no
  10580. elif test yes = "$shlibpath_overrides_runpath" ||
  10581. test no = "$enable_shared"; then
  10582. # Fast installation is not necessary
  10583. enable_fast_install=needless
  10584. fi
  10585. if test yes != "$enable_dlopen"; then
  10586. enable_dlopen=unknown
  10587. enable_dlopen_self=unknown
  10588. enable_dlopen_self_static=unknown
  10589. else
  10590. lt_cv_dlopen=no
  10591. lt_cv_dlopen_libs=
  10592. case $host_os in
  10593. beos*)
  10594. lt_cv_dlopen=load_add_on
  10595. lt_cv_dlopen_libs=
  10596. lt_cv_dlopen_self=yes
  10597. ;;
  10598. mingw* | pw32* | cegcc*)
  10599. lt_cv_dlopen=LoadLibrary
  10600. lt_cv_dlopen_libs=
  10601. ;;
  10602. cygwin*)
  10603. lt_cv_dlopen=dlopen
  10604. lt_cv_dlopen_libs=
  10605. ;;
  10606. darwin*)
  10607. # if libdl is installed we need to link against it
  10608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10609. printf %s "checking for dlopen in -ldl... " >&6; }
  10610. if test ${ac_cv_lib_dl_dlopen+y}
  10611. then :
  10612. printf %s "(cached) " >&6
  10613. else $as_nop
  10614. ac_check_lib_save_LIBS=$LIBS
  10615. LIBS="-ldl $LIBS"
  10616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10617. /* end confdefs.h. */
  10618. /* Override any GCC internal prototype to avoid an error.
  10619. Use char because int might match the return type of a GCC
  10620. builtin and then its argument prototype would still apply. */
  10621. char dlopen ();
  10622. int
  10623. main (void)
  10624. {
  10625. return dlopen ();
  10626. ;
  10627. return 0;
  10628. }
  10629. _ACEOF
  10630. if ac_fn_c_try_link "$LINENO"
  10631. then :
  10632. ac_cv_lib_dl_dlopen=yes
  10633. else $as_nop
  10634. ac_cv_lib_dl_dlopen=no
  10635. fi
  10636. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10637. conftest$ac_exeext conftest.$ac_ext
  10638. LIBS=$ac_check_lib_save_LIBS
  10639. fi
  10640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10641. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10642. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10643. then :
  10644. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10645. else $as_nop
  10646. lt_cv_dlopen=dyld
  10647. lt_cv_dlopen_libs=
  10648. lt_cv_dlopen_self=yes
  10649. fi
  10650. ;;
  10651. tpf*)
  10652. # Don't try to run any link tests for TPF. We know it's impossible
  10653. # because TPF is a cross-compiler, and we know how we open DSOs.
  10654. lt_cv_dlopen=dlopen
  10655. lt_cv_dlopen_libs=
  10656. lt_cv_dlopen_self=no
  10657. ;;
  10658. *)
  10659. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10660. if test "x$ac_cv_func_shl_load" = xyes
  10661. then :
  10662. lt_cv_dlopen=shl_load
  10663. else $as_nop
  10664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10665. printf %s "checking for shl_load in -ldld... " >&6; }
  10666. if test ${ac_cv_lib_dld_shl_load+y}
  10667. then :
  10668. printf %s "(cached) " >&6
  10669. else $as_nop
  10670. ac_check_lib_save_LIBS=$LIBS
  10671. LIBS="-ldld $LIBS"
  10672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10673. /* end confdefs.h. */
  10674. /* Override any GCC internal prototype to avoid an error.
  10675. Use char because int might match the return type of a GCC
  10676. builtin and then its argument prototype would still apply. */
  10677. char shl_load ();
  10678. int
  10679. main (void)
  10680. {
  10681. return shl_load ();
  10682. ;
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. if ac_fn_c_try_link "$LINENO"
  10687. then :
  10688. ac_cv_lib_dld_shl_load=yes
  10689. else $as_nop
  10690. ac_cv_lib_dld_shl_load=no
  10691. fi
  10692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10693. conftest$ac_exeext conftest.$ac_ext
  10694. LIBS=$ac_check_lib_save_LIBS
  10695. fi
  10696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10697. printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
  10698. if test "x$ac_cv_lib_dld_shl_load" = xyes
  10699. then :
  10700. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10701. else $as_nop
  10702. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10703. if test "x$ac_cv_func_dlopen" = xyes
  10704. then :
  10705. lt_cv_dlopen=dlopen
  10706. else $as_nop
  10707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10708. printf %s "checking for dlopen in -ldl... " >&6; }
  10709. if test ${ac_cv_lib_dl_dlopen+y}
  10710. then :
  10711. printf %s "(cached) " >&6
  10712. else $as_nop
  10713. ac_check_lib_save_LIBS=$LIBS
  10714. LIBS="-ldl $LIBS"
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. /* Override any GCC internal prototype to avoid an error.
  10718. Use char because int might match the return type of a GCC
  10719. builtin and then its argument prototype would still apply. */
  10720. char dlopen ();
  10721. int
  10722. main (void)
  10723. {
  10724. return dlopen ();
  10725. ;
  10726. return 0;
  10727. }
  10728. _ACEOF
  10729. if ac_fn_c_try_link "$LINENO"
  10730. then :
  10731. ac_cv_lib_dl_dlopen=yes
  10732. else $as_nop
  10733. ac_cv_lib_dl_dlopen=no
  10734. fi
  10735. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10736. conftest$ac_exeext conftest.$ac_ext
  10737. LIBS=$ac_check_lib_save_LIBS
  10738. fi
  10739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10740. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  10741. if test "x$ac_cv_lib_dl_dlopen" = xyes
  10742. then :
  10743. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10744. else $as_nop
  10745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10746. printf %s "checking for dlopen in -lsvld... " >&6; }
  10747. if test ${ac_cv_lib_svld_dlopen+y}
  10748. then :
  10749. printf %s "(cached) " >&6
  10750. else $as_nop
  10751. ac_check_lib_save_LIBS=$LIBS
  10752. LIBS="-lsvld $LIBS"
  10753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10754. /* end confdefs.h. */
  10755. /* Override any GCC internal prototype to avoid an error.
  10756. Use char because int might match the return type of a GCC
  10757. builtin and then its argument prototype would still apply. */
  10758. char dlopen ();
  10759. int
  10760. main (void)
  10761. {
  10762. return dlopen ();
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_c_try_link "$LINENO"
  10768. then :
  10769. ac_cv_lib_svld_dlopen=yes
  10770. else $as_nop
  10771. ac_cv_lib_svld_dlopen=no
  10772. fi
  10773. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10774. conftest$ac_exeext conftest.$ac_ext
  10775. LIBS=$ac_check_lib_save_LIBS
  10776. fi
  10777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10778. printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
  10779. if test "x$ac_cv_lib_svld_dlopen" = xyes
  10780. then :
  10781. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10782. else $as_nop
  10783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10784. printf %s "checking for dld_link in -ldld... " >&6; }
  10785. if test ${ac_cv_lib_dld_dld_link+y}
  10786. then :
  10787. printf %s "(cached) " >&6
  10788. else $as_nop
  10789. ac_check_lib_save_LIBS=$LIBS
  10790. LIBS="-ldld $LIBS"
  10791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10792. /* end confdefs.h. */
  10793. /* Override any GCC internal prototype to avoid an error.
  10794. Use char because int might match the return type of a GCC
  10795. builtin and then its argument prototype would still apply. */
  10796. char dld_link ();
  10797. int
  10798. main (void)
  10799. {
  10800. return dld_link ();
  10801. ;
  10802. return 0;
  10803. }
  10804. _ACEOF
  10805. if ac_fn_c_try_link "$LINENO"
  10806. then :
  10807. ac_cv_lib_dld_dld_link=yes
  10808. else $as_nop
  10809. ac_cv_lib_dld_dld_link=no
  10810. fi
  10811. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10812. conftest$ac_exeext conftest.$ac_ext
  10813. LIBS=$ac_check_lib_save_LIBS
  10814. fi
  10815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10816. printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
  10817. if test "x$ac_cv_lib_dld_dld_link" = xyes
  10818. then :
  10819. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10820. fi
  10821. fi
  10822. fi
  10823. fi
  10824. fi
  10825. fi
  10826. ;;
  10827. esac
  10828. if test no = "$lt_cv_dlopen"; then
  10829. enable_dlopen=no
  10830. else
  10831. enable_dlopen=yes
  10832. fi
  10833. case $lt_cv_dlopen in
  10834. dlopen)
  10835. save_CPPFLAGS=$CPPFLAGS
  10836. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10837. save_LDFLAGS=$LDFLAGS
  10838. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10839. save_LIBS=$LIBS
  10840. LIBS="$lt_cv_dlopen_libs $LIBS"
  10841. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10842. printf %s "checking whether a program can dlopen itself... " >&6; }
  10843. if test ${lt_cv_dlopen_self+y}
  10844. then :
  10845. printf %s "(cached) " >&6
  10846. else $as_nop
  10847. if test yes = "$cross_compiling"; then :
  10848. lt_cv_dlopen_self=cross
  10849. else
  10850. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10851. lt_status=$lt_dlunknown
  10852. cat > conftest.$ac_ext <<_LT_EOF
  10853. #line $LINENO "configure"
  10854. #include "confdefs.h"
  10855. #if HAVE_DLFCN_H
  10856. #include <dlfcn.h>
  10857. #endif
  10858. #include <stdio.h>
  10859. #ifdef RTLD_GLOBAL
  10860. # define LT_DLGLOBAL RTLD_GLOBAL
  10861. #else
  10862. # ifdef DL_GLOBAL
  10863. # define LT_DLGLOBAL DL_GLOBAL
  10864. # else
  10865. # define LT_DLGLOBAL 0
  10866. # endif
  10867. #endif
  10868. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10869. find out it does not work in some platform. */
  10870. #ifndef LT_DLLAZY_OR_NOW
  10871. # ifdef RTLD_LAZY
  10872. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10873. # else
  10874. # ifdef DL_LAZY
  10875. # define LT_DLLAZY_OR_NOW DL_LAZY
  10876. # else
  10877. # ifdef RTLD_NOW
  10878. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10879. # else
  10880. # ifdef DL_NOW
  10881. # define LT_DLLAZY_OR_NOW DL_NOW
  10882. # else
  10883. # define LT_DLLAZY_OR_NOW 0
  10884. # endif
  10885. # endif
  10886. # endif
  10887. # endif
  10888. #endif
  10889. /* When -fvisibility=hidden is used, assume the code has been annotated
  10890. correspondingly for the symbols needed. */
  10891. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10892. int fnord () __attribute__((visibility("default")));
  10893. #endif
  10894. int fnord () { return 42; }
  10895. int main ()
  10896. {
  10897. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10898. int status = $lt_dlunknown;
  10899. if (self)
  10900. {
  10901. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10902. else
  10903. {
  10904. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10905. else puts (dlerror ());
  10906. }
  10907. /* dlclose (self); */
  10908. }
  10909. else
  10910. puts (dlerror ());
  10911. return status;
  10912. }
  10913. _LT_EOF
  10914. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10915. (eval $ac_link) 2>&5
  10916. ac_status=$?
  10917. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10918. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10919. (./conftest; exit; ) >&5 2>/dev/null
  10920. lt_status=$?
  10921. case x$lt_status in
  10922. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10923. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10924. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10925. esac
  10926. else :
  10927. # compilation failed
  10928. lt_cv_dlopen_self=no
  10929. fi
  10930. fi
  10931. rm -fr conftest*
  10932. fi
  10933. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10934. printf "%s\n" "$lt_cv_dlopen_self" >&6; }
  10935. if test yes = "$lt_cv_dlopen_self"; then
  10936. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10938. printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
  10939. if test ${lt_cv_dlopen_self_static+y}
  10940. then :
  10941. printf %s "(cached) " >&6
  10942. else $as_nop
  10943. if test yes = "$cross_compiling"; then :
  10944. lt_cv_dlopen_self_static=cross
  10945. else
  10946. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10947. lt_status=$lt_dlunknown
  10948. cat > conftest.$ac_ext <<_LT_EOF
  10949. #line $LINENO "configure"
  10950. #include "confdefs.h"
  10951. #if HAVE_DLFCN_H
  10952. #include <dlfcn.h>
  10953. #endif
  10954. #include <stdio.h>
  10955. #ifdef RTLD_GLOBAL
  10956. # define LT_DLGLOBAL RTLD_GLOBAL
  10957. #else
  10958. # ifdef DL_GLOBAL
  10959. # define LT_DLGLOBAL DL_GLOBAL
  10960. # else
  10961. # define LT_DLGLOBAL 0
  10962. # endif
  10963. #endif
  10964. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10965. find out it does not work in some platform. */
  10966. #ifndef LT_DLLAZY_OR_NOW
  10967. # ifdef RTLD_LAZY
  10968. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10969. # else
  10970. # ifdef DL_LAZY
  10971. # define LT_DLLAZY_OR_NOW DL_LAZY
  10972. # else
  10973. # ifdef RTLD_NOW
  10974. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10975. # else
  10976. # ifdef DL_NOW
  10977. # define LT_DLLAZY_OR_NOW DL_NOW
  10978. # else
  10979. # define LT_DLLAZY_OR_NOW 0
  10980. # endif
  10981. # endif
  10982. # endif
  10983. # endif
  10984. #endif
  10985. /* When -fvisibility=hidden is used, assume the code has been annotated
  10986. correspondingly for the symbols needed. */
  10987. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10988. int fnord () __attribute__((visibility("default")));
  10989. #endif
  10990. int fnord () { return 42; }
  10991. int main ()
  10992. {
  10993. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10994. int status = $lt_dlunknown;
  10995. if (self)
  10996. {
  10997. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10998. else
  10999. {
  11000. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11001. else puts (dlerror ());
  11002. }
  11003. /* dlclose (self); */
  11004. }
  11005. else
  11006. puts (dlerror ());
  11007. return status;
  11008. }
  11009. _LT_EOF
  11010. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11011. (eval $ac_link) 2>&5
  11012. ac_status=$?
  11013. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11014. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11015. (./conftest; exit; ) >&5 2>/dev/null
  11016. lt_status=$?
  11017. case x$lt_status in
  11018. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11019. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11020. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11021. esac
  11022. else :
  11023. # compilation failed
  11024. lt_cv_dlopen_self_static=no
  11025. fi
  11026. fi
  11027. rm -fr conftest*
  11028. fi
  11029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11030. printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
  11031. fi
  11032. CPPFLAGS=$save_CPPFLAGS
  11033. LDFLAGS=$save_LDFLAGS
  11034. LIBS=$save_LIBS
  11035. ;;
  11036. esac
  11037. case $lt_cv_dlopen_self in
  11038. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11039. *) enable_dlopen_self=unknown ;;
  11040. esac
  11041. case $lt_cv_dlopen_self_static in
  11042. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11043. *) enable_dlopen_self_static=unknown ;;
  11044. esac
  11045. fi
  11046. striplib=
  11047. old_striplib=
  11048. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11049. printf %s "checking whether stripping libraries is possible... " >&6; }
  11050. if test -z "$STRIP"; then
  11051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11052. printf "%s\n" "no" >&6; }
  11053. else
  11054. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11055. old_striplib="$STRIP --strip-debug"
  11056. striplib="$STRIP --strip-unneeded"
  11057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11058. printf "%s\n" "yes" >&6; }
  11059. else
  11060. case $host_os in
  11061. darwin*)
  11062. # FIXME - insert some real tests, host_os isn't really good enough
  11063. striplib="$STRIP -x"
  11064. old_striplib="$STRIP -S"
  11065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11066. printf "%s\n" "yes" >&6; }
  11067. ;;
  11068. freebsd*)
  11069. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  11070. old_striplib="$STRIP --strip-debug"
  11071. striplib="$STRIP --strip-unneeded"
  11072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11073. printf "%s\n" "yes" >&6; }
  11074. else
  11075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11076. printf "%s\n" "no" >&6; }
  11077. fi
  11078. ;;
  11079. *)
  11080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11081. printf "%s\n" "no" >&6; }
  11082. ;;
  11083. esac
  11084. fi
  11085. fi
  11086. # Report what library types will actually be built
  11087. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11088. printf %s "checking if libtool supports shared libraries... " >&6; }
  11089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11090. printf "%s\n" "$can_build_shared" >&6; }
  11091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11092. printf %s "checking whether to build shared libraries... " >&6; }
  11093. test no = "$can_build_shared" && enable_shared=no
  11094. # On AIX, shared libraries and static libraries use the same namespace, and
  11095. # are all built from PIC.
  11096. case $host_os in
  11097. aix3*)
  11098. test yes = "$enable_shared" && enable_static=no
  11099. if test -n "$RANLIB"; then
  11100. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11101. postinstall_cmds='$RANLIB $lib'
  11102. fi
  11103. ;;
  11104. aix[4-9]*)
  11105. if test ia64 != "$host_cpu"; then
  11106. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11107. yes,aix,yes) ;; # shared object as lib.so file only
  11108. yes,svr4,*) ;; # shared object as lib.so archive member only
  11109. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11110. esac
  11111. fi
  11112. ;;
  11113. esac
  11114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11115. printf "%s\n" "$enable_shared" >&6; }
  11116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11117. printf %s "checking whether to build static libraries... " >&6; }
  11118. # Make sure either enable_shared or enable_static is yes.
  11119. test yes = "$enable_shared" || enable_static=yes
  11120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11121. printf "%s\n" "$enable_static" >&6; }
  11122. fi
  11123. ac_ext=c
  11124. ac_cpp='$CPP $CPPFLAGS'
  11125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11128. CC=$lt_save_CC
  11129. ac_config_commands="$ac_config_commands libtool"
  11130. # Only expand once:
  11131. if test -n "$ac_tool_prefix"; then
  11132. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  11133. set dummy ${ac_tool_prefix}windres; ac_word=$2
  11134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11135. printf %s "checking for $ac_word... " >&6; }
  11136. if test ${ac_cv_prog_RC+y}
  11137. then :
  11138. printf %s "(cached) " >&6
  11139. else $as_nop
  11140. if test -n "$RC"; then
  11141. ac_cv_prog_RC="$RC" # Let the user override the test.
  11142. else
  11143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11144. for as_dir in $PATH
  11145. do
  11146. IFS=$as_save_IFS
  11147. case $as_dir in #(((
  11148. '') as_dir=./ ;;
  11149. */) ;;
  11150. *) as_dir=$as_dir/ ;;
  11151. esac
  11152. for ac_exec_ext in '' $ac_executable_extensions; do
  11153. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11154. ac_cv_prog_RC="${ac_tool_prefix}windres"
  11155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11156. break 2
  11157. fi
  11158. done
  11159. done
  11160. IFS=$as_save_IFS
  11161. fi
  11162. fi
  11163. RC=$ac_cv_prog_RC
  11164. if test -n "$RC"; then
  11165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  11166. printf "%s\n" "$RC" >&6; }
  11167. else
  11168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11169. printf "%s\n" "no" >&6; }
  11170. fi
  11171. fi
  11172. if test -z "$ac_cv_prog_RC"; then
  11173. ac_ct_RC=$RC
  11174. # Extract the first word of "windres", so it can be a program name with args.
  11175. set dummy windres; ac_word=$2
  11176. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11177. printf %s "checking for $ac_word... " >&6; }
  11178. if test ${ac_cv_prog_ac_ct_RC+y}
  11179. then :
  11180. printf %s "(cached) " >&6
  11181. else $as_nop
  11182. if test -n "$ac_ct_RC"; then
  11183. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  11184. else
  11185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11186. for as_dir in $PATH
  11187. do
  11188. IFS=$as_save_IFS
  11189. case $as_dir in #(((
  11190. '') as_dir=./ ;;
  11191. */) ;;
  11192. *) as_dir=$as_dir/ ;;
  11193. esac
  11194. for ac_exec_ext in '' $ac_executable_extensions; do
  11195. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11196. ac_cv_prog_ac_ct_RC="windres"
  11197. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11198. break 2
  11199. fi
  11200. done
  11201. done
  11202. IFS=$as_save_IFS
  11203. fi
  11204. fi
  11205. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  11206. if test -n "$ac_ct_RC"; then
  11207. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  11208. printf "%s\n" "$ac_ct_RC" >&6; }
  11209. else
  11210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11211. printf "%s\n" "no" >&6; }
  11212. fi
  11213. if test "x$ac_ct_RC" = x; then
  11214. RC=""
  11215. else
  11216. case $cross_compiling:$ac_tool_warned in
  11217. yes:)
  11218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11219. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11220. ac_tool_warned=yes ;;
  11221. esac
  11222. RC=$ac_ct_RC
  11223. fi
  11224. else
  11225. RC="$ac_cv_prog_RC"
  11226. fi
  11227. # Source file extension for RC test sources.
  11228. ac_ext=rc
  11229. # Object file extension for compiled RC test sources.
  11230. objext=o
  11231. objext_RC=$objext
  11232. # Code to be used in simple compile tests
  11233. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  11234. # Code to be used in simple link tests
  11235. lt_simple_link_test_code=$lt_simple_compile_test_code
  11236. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11237. # If no C compiler was specified, use CC.
  11238. LTCC=${LTCC-"$CC"}
  11239. # If no C compiler flags were specified, use CFLAGS.
  11240. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11241. # Allow CC to be a program name with arguments.
  11242. compiler=$CC
  11243. # save warnings/boilerplate of simple test code
  11244. ac_outfile=conftest.$ac_objext
  11245. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11246. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11247. _lt_compiler_boilerplate=`cat conftest.err`
  11248. $RM conftest*
  11249. ac_outfile=conftest.$ac_objext
  11250. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11251. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11252. _lt_linker_boilerplate=`cat conftest.err`
  11253. $RM -r conftest*
  11254. # Allow CC to be a program name with arguments.
  11255. lt_save_CC=$CC
  11256. lt_save_CFLAGS=$CFLAGS
  11257. lt_save_GCC=$GCC
  11258. GCC=
  11259. CC=${RC-"windres"}
  11260. CFLAGS=
  11261. compiler=$CC
  11262. compiler_RC=$CC
  11263. func_cc_basename $compiler
  11264. cc_basename=$func_cc_basename_result
  11265. lt_cv_prog_compiler_c_o_RC=yes
  11266. if test -n "$compiler"; then
  11267. :
  11268. fi
  11269. GCC=$lt_save_GCC
  11270. ac_ext=c
  11271. ac_cpp='$CPP $CPPFLAGS'
  11272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11275. CC=$lt_save_CC
  11276. CFLAGS=$lt_save_CFLAGS
  11277. # For historical reasons, the library name redundantly includes the major
  11278. # version twice: libSDL2-2.0.so.0.
  11279. # TODO: in SDL 3, stop using -release, which will simplify it to libSDL3.so.0
  11280. LT_RELEASE=2.0
  11281. # Increment this if there is an incompatible change - but if that happens,
  11282. # we should rename the library from SDL2 to SDL3, at which point this would
  11283. # reset to 0 anyway.
  11284. LT_MAJOR=0
  11285. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  11286. LT_CURRENT=`expr $LT_MAJOR + $LT_AGE`
  11287. LT_REVISION=$SDL_INTERFACE_AGE
  11288. for ac_prog in gawk mawk nawk awk
  11289. do
  11290. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11291. set dummy $ac_prog; ac_word=$2
  11292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11293. printf %s "checking for $ac_word... " >&6; }
  11294. if test ${ac_cv_prog_AWK+y}
  11295. then :
  11296. printf %s "(cached) " >&6
  11297. else $as_nop
  11298. if test -n "$AWK"; then
  11299. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  11300. else
  11301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11302. for as_dir in $PATH
  11303. do
  11304. IFS=$as_save_IFS
  11305. case $as_dir in #(((
  11306. '') as_dir=./ ;;
  11307. */) ;;
  11308. *) as_dir=$as_dir/ ;;
  11309. esac
  11310. for ac_exec_ext in '' $ac_executable_extensions; do
  11311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11312. ac_cv_prog_AWK="$ac_prog"
  11313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11314. break 2
  11315. fi
  11316. done
  11317. done
  11318. IFS=$as_save_IFS
  11319. fi
  11320. fi
  11321. AWK=$ac_cv_prog_AWK
  11322. if test -n "$AWK"; then
  11323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  11324. printf "%s\n" "$AWK" >&6; }
  11325. else
  11326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11327. printf "%s\n" "no" >&6; }
  11328. fi
  11329. test -n "$AWK" && break
  11330. done
  11331. ac_ext=c
  11332. ac_cpp='$CPP $CPPFLAGS'
  11333. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11334. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11335. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11336. if test -n "$ac_tool_prefix"; then
  11337. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11338. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11340. printf %s "checking for $ac_word... " >&6; }
  11341. if test ${ac_cv_prog_CC+y}
  11342. then :
  11343. printf %s "(cached) " >&6
  11344. else $as_nop
  11345. if test -n "$CC"; then
  11346. ac_cv_prog_CC="$CC" # Let the user override the test.
  11347. else
  11348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11349. for as_dir in $PATH
  11350. do
  11351. IFS=$as_save_IFS
  11352. case $as_dir in #(((
  11353. '') as_dir=./ ;;
  11354. */) ;;
  11355. *) as_dir=$as_dir/ ;;
  11356. esac
  11357. for ac_exec_ext in '' $ac_executable_extensions; do
  11358. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11359. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11361. break 2
  11362. fi
  11363. done
  11364. done
  11365. IFS=$as_save_IFS
  11366. fi
  11367. fi
  11368. CC=$ac_cv_prog_CC
  11369. if test -n "$CC"; then
  11370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11371. printf "%s\n" "$CC" >&6; }
  11372. else
  11373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11374. printf "%s\n" "no" >&6; }
  11375. fi
  11376. fi
  11377. if test -z "$ac_cv_prog_CC"; then
  11378. ac_ct_CC=$CC
  11379. # Extract the first word of "gcc", so it can be a program name with args.
  11380. set dummy gcc; ac_word=$2
  11381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11382. printf %s "checking for $ac_word... " >&6; }
  11383. if test ${ac_cv_prog_ac_ct_CC+y}
  11384. then :
  11385. printf %s "(cached) " >&6
  11386. else $as_nop
  11387. if test -n "$ac_ct_CC"; then
  11388. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11389. else
  11390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11391. for as_dir in $PATH
  11392. do
  11393. IFS=$as_save_IFS
  11394. case $as_dir in #(((
  11395. '') as_dir=./ ;;
  11396. */) ;;
  11397. *) as_dir=$as_dir/ ;;
  11398. esac
  11399. for ac_exec_ext in '' $ac_executable_extensions; do
  11400. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11401. ac_cv_prog_ac_ct_CC="gcc"
  11402. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11403. break 2
  11404. fi
  11405. done
  11406. done
  11407. IFS=$as_save_IFS
  11408. fi
  11409. fi
  11410. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11411. if test -n "$ac_ct_CC"; then
  11412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11413. printf "%s\n" "$ac_ct_CC" >&6; }
  11414. else
  11415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11416. printf "%s\n" "no" >&6; }
  11417. fi
  11418. if test "x$ac_ct_CC" = x; then
  11419. CC=""
  11420. else
  11421. case $cross_compiling:$ac_tool_warned in
  11422. yes:)
  11423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11424. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11425. ac_tool_warned=yes ;;
  11426. esac
  11427. CC=$ac_ct_CC
  11428. fi
  11429. else
  11430. CC="$ac_cv_prog_CC"
  11431. fi
  11432. if test -z "$CC"; then
  11433. if test -n "$ac_tool_prefix"; then
  11434. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11435. set dummy ${ac_tool_prefix}cc; ac_word=$2
  11436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11437. printf %s "checking for $ac_word... " >&6; }
  11438. if test ${ac_cv_prog_CC+y}
  11439. then :
  11440. printf %s "(cached) " >&6
  11441. else $as_nop
  11442. if test -n "$CC"; then
  11443. ac_cv_prog_CC="$CC" # Let the user override the test.
  11444. else
  11445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11446. for as_dir in $PATH
  11447. do
  11448. IFS=$as_save_IFS
  11449. case $as_dir in #(((
  11450. '') as_dir=./ ;;
  11451. */) ;;
  11452. *) as_dir=$as_dir/ ;;
  11453. esac
  11454. for ac_exec_ext in '' $ac_executable_extensions; do
  11455. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11456. ac_cv_prog_CC="${ac_tool_prefix}cc"
  11457. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11458. break 2
  11459. fi
  11460. done
  11461. done
  11462. IFS=$as_save_IFS
  11463. fi
  11464. fi
  11465. CC=$ac_cv_prog_CC
  11466. if test -n "$CC"; then
  11467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11468. printf "%s\n" "$CC" >&6; }
  11469. else
  11470. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11471. printf "%s\n" "no" >&6; }
  11472. fi
  11473. fi
  11474. fi
  11475. if test -z "$CC"; then
  11476. # Extract the first word of "cc", so it can be a program name with args.
  11477. set dummy cc; ac_word=$2
  11478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11479. printf %s "checking for $ac_word... " >&6; }
  11480. if test ${ac_cv_prog_CC+y}
  11481. then :
  11482. printf %s "(cached) " >&6
  11483. else $as_nop
  11484. if test -n "$CC"; then
  11485. ac_cv_prog_CC="$CC" # Let the user override the test.
  11486. else
  11487. ac_prog_rejected=no
  11488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11489. for as_dir in $PATH
  11490. do
  11491. IFS=$as_save_IFS
  11492. case $as_dir in #(((
  11493. '') as_dir=./ ;;
  11494. */) ;;
  11495. *) as_dir=$as_dir/ ;;
  11496. esac
  11497. for ac_exec_ext in '' $ac_executable_extensions; do
  11498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11499. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11500. ac_prog_rejected=yes
  11501. continue
  11502. fi
  11503. ac_cv_prog_CC="cc"
  11504. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11505. break 2
  11506. fi
  11507. done
  11508. done
  11509. IFS=$as_save_IFS
  11510. if test $ac_prog_rejected = yes; then
  11511. # We found a bogon in the path, so make sure we never use it.
  11512. set dummy $ac_cv_prog_CC
  11513. shift
  11514. if test $# != 0; then
  11515. # We chose a different compiler from the bogus one.
  11516. # However, it has the same basename, so the bogon will be chosen
  11517. # first if we set CC to just the basename; use the full file name.
  11518. shift
  11519. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  11520. fi
  11521. fi
  11522. fi
  11523. fi
  11524. CC=$ac_cv_prog_CC
  11525. if test -n "$CC"; then
  11526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11527. printf "%s\n" "$CC" >&6; }
  11528. else
  11529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11530. printf "%s\n" "no" >&6; }
  11531. fi
  11532. fi
  11533. if test -z "$CC"; then
  11534. if test -n "$ac_tool_prefix"; then
  11535. for ac_prog in cl.exe
  11536. do
  11537. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11538. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11539. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11540. printf %s "checking for $ac_word... " >&6; }
  11541. if test ${ac_cv_prog_CC+y}
  11542. then :
  11543. printf %s "(cached) " >&6
  11544. else $as_nop
  11545. if test -n "$CC"; then
  11546. ac_cv_prog_CC="$CC" # Let the user override the test.
  11547. else
  11548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11549. for as_dir in $PATH
  11550. do
  11551. IFS=$as_save_IFS
  11552. case $as_dir in #(((
  11553. '') as_dir=./ ;;
  11554. */) ;;
  11555. *) as_dir=$as_dir/ ;;
  11556. esac
  11557. for ac_exec_ext in '' $ac_executable_extensions; do
  11558. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11559. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11560. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11561. break 2
  11562. fi
  11563. done
  11564. done
  11565. IFS=$as_save_IFS
  11566. fi
  11567. fi
  11568. CC=$ac_cv_prog_CC
  11569. if test -n "$CC"; then
  11570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11571. printf "%s\n" "$CC" >&6; }
  11572. else
  11573. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11574. printf "%s\n" "no" >&6; }
  11575. fi
  11576. test -n "$CC" && break
  11577. done
  11578. fi
  11579. if test -z "$CC"; then
  11580. ac_ct_CC=$CC
  11581. for ac_prog in cl.exe
  11582. do
  11583. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11584. set dummy $ac_prog; ac_word=$2
  11585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11586. printf %s "checking for $ac_word... " >&6; }
  11587. if test ${ac_cv_prog_ac_ct_CC+y}
  11588. then :
  11589. printf %s "(cached) " >&6
  11590. else $as_nop
  11591. if test -n "$ac_ct_CC"; then
  11592. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11593. else
  11594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11595. for as_dir in $PATH
  11596. do
  11597. IFS=$as_save_IFS
  11598. case $as_dir in #(((
  11599. '') as_dir=./ ;;
  11600. */) ;;
  11601. *) as_dir=$as_dir/ ;;
  11602. esac
  11603. for ac_exec_ext in '' $ac_executable_extensions; do
  11604. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11605. ac_cv_prog_ac_ct_CC="$ac_prog"
  11606. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11607. break 2
  11608. fi
  11609. done
  11610. done
  11611. IFS=$as_save_IFS
  11612. fi
  11613. fi
  11614. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11615. if test -n "$ac_ct_CC"; then
  11616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11617. printf "%s\n" "$ac_ct_CC" >&6; }
  11618. else
  11619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11620. printf "%s\n" "no" >&6; }
  11621. fi
  11622. test -n "$ac_ct_CC" && break
  11623. done
  11624. if test "x$ac_ct_CC" = x; then
  11625. CC=""
  11626. else
  11627. case $cross_compiling:$ac_tool_warned in
  11628. yes:)
  11629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11630. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11631. ac_tool_warned=yes ;;
  11632. esac
  11633. CC=$ac_ct_CC
  11634. fi
  11635. fi
  11636. fi
  11637. if test -z "$CC"; then
  11638. if test -n "$ac_tool_prefix"; then
  11639. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  11640. set dummy ${ac_tool_prefix}clang; ac_word=$2
  11641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11642. printf %s "checking for $ac_word... " >&6; }
  11643. if test ${ac_cv_prog_CC+y}
  11644. then :
  11645. printf %s "(cached) " >&6
  11646. else $as_nop
  11647. if test -n "$CC"; then
  11648. ac_cv_prog_CC="$CC" # Let the user override the test.
  11649. else
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $PATH
  11652. do
  11653. IFS=$as_save_IFS
  11654. case $as_dir in #(((
  11655. '') as_dir=./ ;;
  11656. */) ;;
  11657. *) as_dir=$as_dir/ ;;
  11658. esac
  11659. for ac_exec_ext in '' $ac_executable_extensions; do
  11660. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11661. ac_cv_prog_CC="${ac_tool_prefix}clang"
  11662. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11663. break 2
  11664. fi
  11665. done
  11666. done
  11667. IFS=$as_save_IFS
  11668. fi
  11669. fi
  11670. CC=$ac_cv_prog_CC
  11671. if test -n "$CC"; then
  11672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  11673. printf "%s\n" "$CC" >&6; }
  11674. else
  11675. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11676. printf "%s\n" "no" >&6; }
  11677. fi
  11678. fi
  11679. if test -z "$ac_cv_prog_CC"; then
  11680. ac_ct_CC=$CC
  11681. # Extract the first word of "clang", so it can be a program name with args.
  11682. set dummy clang; ac_word=$2
  11683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11684. printf %s "checking for $ac_word... " >&6; }
  11685. if test ${ac_cv_prog_ac_ct_CC+y}
  11686. then :
  11687. printf %s "(cached) " >&6
  11688. else $as_nop
  11689. if test -n "$ac_ct_CC"; then
  11690. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11691. else
  11692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11693. for as_dir in $PATH
  11694. do
  11695. IFS=$as_save_IFS
  11696. case $as_dir in #(((
  11697. '') as_dir=./ ;;
  11698. */) ;;
  11699. *) as_dir=$as_dir/ ;;
  11700. esac
  11701. for ac_exec_ext in '' $ac_executable_extensions; do
  11702. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  11703. ac_cv_prog_ac_ct_CC="clang"
  11704. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  11705. break 2
  11706. fi
  11707. done
  11708. done
  11709. IFS=$as_save_IFS
  11710. fi
  11711. fi
  11712. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11713. if test -n "$ac_ct_CC"; then
  11714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  11715. printf "%s\n" "$ac_ct_CC" >&6; }
  11716. else
  11717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11718. printf "%s\n" "no" >&6; }
  11719. fi
  11720. if test "x$ac_ct_CC" = x; then
  11721. CC=""
  11722. else
  11723. case $cross_compiling:$ac_tool_warned in
  11724. yes:)
  11725. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11726. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11727. ac_tool_warned=yes ;;
  11728. esac
  11729. CC=$ac_ct_CC
  11730. fi
  11731. else
  11732. CC="$ac_cv_prog_CC"
  11733. fi
  11734. fi
  11735. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11736. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  11737. as_fn_error $? "no acceptable C compiler found in \$PATH
  11738. See \`config.log' for more details" "$LINENO" 5; }
  11739. # Provide some information about the compiler.
  11740. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  11741. set X $ac_compile
  11742. ac_compiler=$2
  11743. for ac_option in --version -v -V -qversion -version; do
  11744. { { ac_try="$ac_compiler $ac_option >&5"
  11745. case "(($ac_try" in
  11746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11747. *) ac_try_echo=$ac_try;;
  11748. esac
  11749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11750. printf "%s\n" "$ac_try_echo"; } >&5
  11751. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  11752. ac_status=$?
  11753. if test -s conftest.err; then
  11754. sed '10a\
  11755. ... rest of stderr output deleted ...
  11756. 10q' conftest.err >conftest.er1
  11757. cat conftest.er1 >&5
  11758. fi
  11759. rm -f conftest.er1 conftest.err
  11760. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11761. test $ac_status = 0; }
  11762. done
  11763. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  11764. printf %s "checking whether the compiler supports GNU C... " >&6; }
  11765. if test ${ac_cv_c_compiler_gnu+y}
  11766. then :
  11767. printf %s "(cached) " >&6
  11768. else $as_nop
  11769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11770. /* end confdefs.h. */
  11771. int
  11772. main (void)
  11773. {
  11774. #ifndef __GNUC__
  11775. choke me
  11776. #endif
  11777. ;
  11778. return 0;
  11779. }
  11780. _ACEOF
  11781. if ac_fn_c_try_compile "$LINENO"
  11782. then :
  11783. ac_compiler_gnu=yes
  11784. else $as_nop
  11785. ac_compiler_gnu=no
  11786. fi
  11787. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11788. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11789. fi
  11790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  11791. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  11792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11793. if test $ac_compiler_gnu = yes; then
  11794. GCC=yes
  11795. else
  11796. GCC=
  11797. fi
  11798. ac_test_CFLAGS=${CFLAGS+y}
  11799. ac_save_CFLAGS=$CFLAGS
  11800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  11801. printf %s "checking whether $CC accepts -g... " >&6; }
  11802. if test ${ac_cv_prog_cc_g+y}
  11803. then :
  11804. printf %s "(cached) " >&6
  11805. else $as_nop
  11806. ac_save_c_werror_flag=$ac_c_werror_flag
  11807. ac_c_werror_flag=yes
  11808. ac_cv_prog_cc_g=no
  11809. CFLAGS="-g"
  11810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11811. /* end confdefs.h. */
  11812. int
  11813. main (void)
  11814. {
  11815. ;
  11816. return 0;
  11817. }
  11818. _ACEOF
  11819. if ac_fn_c_try_compile "$LINENO"
  11820. then :
  11821. ac_cv_prog_cc_g=yes
  11822. else $as_nop
  11823. CFLAGS=""
  11824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11825. /* end confdefs.h. */
  11826. int
  11827. main (void)
  11828. {
  11829. ;
  11830. return 0;
  11831. }
  11832. _ACEOF
  11833. if ac_fn_c_try_compile "$LINENO"
  11834. then :
  11835. else $as_nop
  11836. ac_c_werror_flag=$ac_save_c_werror_flag
  11837. CFLAGS="-g"
  11838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11839. /* end confdefs.h. */
  11840. int
  11841. main (void)
  11842. {
  11843. ;
  11844. return 0;
  11845. }
  11846. _ACEOF
  11847. if ac_fn_c_try_compile "$LINENO"
  11848. then :
  11849. ac_cv_prog_cc_g=yes
  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. fi
  11855. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  11856. ac_c_werror_flag=$ac_save_c_werror_flag
  11857. fi
  11858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  11859. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  11860. if test $ac_test_CFLAGS; then
  11861. CFLAGS=$ac_save_CFLAGS
  11862. elif test $ac_cv_prog_cc_g = yes; then
  11863. if test "$GCC" = yes; then
  11864. CFLAGS="-g -O2"
  11865. else
  11866. CFLAGS="-g"
  11867. fi
  11868. else
  11869. if test "$GCC" = yes; then
  11870. CFLAGS="-O2"
  11871. else
  11872. CFLAGS=
  11873. fi
  11874. fi
  11875. ac_prog_cc_stdc=no
  11876. if test x$ac_prog_cc_stdc = xno
  11877. then :
  11878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  11879. printf %s "checking for $CC option to enable C11 features... " >&6; }
  11880. if test ${ac_cv_prog_cc_c11+y}
  11881. then :
  11882. printf %s "(cached) " >&6
  11883. else $as_nop
  11884. ac_cv_prog_cc_c11=no
  11885. ac_save_CC=$CC
  11886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11887. /* end confdefs.h. */
  11888. $ac_c_conftest_c11_program
  11889. _ACEOF
  11890. for ac_arg in '' -std=gnu11
  11891. do
  11892. CC="$ac_save_CC $ac_arg"
  11893. if ac_fn_c_try_compile "$LINENO"
  11894. then :
  11895. ac_cv_prog_cc_c11=$ac_arg
  11896. fi
  11897. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11898. test "x$ac_cv_prog_cc_c11" != "xno" && break
  11899. done
  11900. rm -f conftest.$ac_ext
  11901. CC=$ac_save_CC
  11902. fi
  11903. if test "x$ac_cv_prog_cc_c11" = xno
  11904. then :
  11905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11906. printf "%s\n" "unsupported" >&6; }
  11907. else $as_nop
  11908. if test "x$ac_cv_prog_cc_c11" = x
  11909. then :
  11910. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11911. printf "%s\n" "none needed" >&6; }
  11912. else $as_nop
  11913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  11914. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  11915. CC="$CC $ac_cv_prog_cc_c11"
  11916. fi
  11917. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  11918. ac_prog_cc_stdc=c11
  11919. fi
  11920. fi
  11921. if test x$ac_prog_cc_stdc = xno
  11922. then :
  11923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  11924. printf %s "checking for $CC option to enable C99 features... " >&6; }
  11925. if test ${ac_cv_prog_cc_c99+y}
  11926. then :
  11927. printf %s "(cached) " >&6
  11928. else $as_nop
  11929. ac_cv_prog_cc_c99=no
  11930. ac_save_CC=$CC
  11931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11932. /* end confdefs.h. */
  11933. $ac_c_conftest_c99_program
  11934. _ACEOF
  11935. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  11936. do
  11937. CC="$ac_save_CC $ac_arg"
  11938. if ac_fn_c_try_compile "$LINENO"
  11939. then :
  11940. ac_cv_prog_cc_c99=$ac_arg
  11941. fi
  11942. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11943. test "x$ac_cv_prog_cc_c99" != "xno" && break
  11944. done
  11945. rm -f conftest.$ac_ext
  11946. CC=$ac_save_CC
  11947. fi
  11948. if test "x$ac_cv_prog_cc_c99" = xno
  11949. then :
  11950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11951. printf "%s\n" "unsupported" >&6; }
  11952. else $as_nop
  11953. if test "x$ac_cv_prog_cc_c99" = x
  11954. then :
  11955. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  11956. printf "%s\n" "none needed" >&6; }
  11957. else $as_nop
  11958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  11959. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  11960. CC="$CC $ac_cv_prog_cc_c99"
  11961. fi
  11962. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  11963. ac_prog_cc_stdc=c99
  11964. fi
  11965. fi
  11966. if test x$ac_prog_cc_stdc = xno
  11967. then :
  11968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  11969. printf %s "checking for $CC option to enable C89 features... " >&6; }
  11970. if test ${ac_cv_prog_cc_c89+y}
  11971. then :
  11972. printf %s "(cached) " >&6
  11973. else $as_nop
  11974. ac_cv_prog_cc_c89=no
  11975. ac_save_CC=$CC
  11976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11977. /* end confdefs.h. */
  11978. $ac_c_conftest_c89_program
  11979. _ACEOF
  11980. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11981. do
  11982. CC="$ac_save_CC $ac_arg"
  11983. if ac_fn_c_try_compile "$LINENO"
  11984. then :
  11985. ac_cv_prog_cc_c89=$ac_arg
  11986. fi
  11987. rm -f core conftest.err conftest.$ac_objext conftest.beam
  11988. test "x$ac_cv_prog_cc_c89" != "xno" && break
  11989. done
  11990. rm -f conftest.$ac_ext
  11991. CC=$ac_save_CC
  11992. fi
  11993. if test "x$ac_cv_prog_cc_c89" = xno
  11994. then :
  11995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  11996. printf "%s\n" "unsupported" >&6; }
  11997. else $as_nop
  11998. if test "x$ac_cv_prog_cc_c89" = x
  11999. then :
  12000. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12001. printf "%s\n" "none needed" >&6; }
  12002. else $as_nop
  12003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  12004. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  12005. CC="$CC $ac_cv_prog_cc_c89"
  12006. fi
  12007. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  12008. ac_prog_cc_stdc=c89
  12009. fi
  12010. fi
  12011. ac_ext=c
  12012. ac_cpp='$CPP $CPPFLAGS'
  12013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12016. ac_ext=cpp
  12017. ac_cpp='$CXXCPP $CPPFLAGS'
  12018. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12019. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12020. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12021. if test -z "$CXX"; then
  12022. if test -n "$CCC"; then
  12023. CXX=$CCC
  12024. else
  12025. if test -n "$ac_tool_prefix"; then
  12026. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12027. do
  12028. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  12029. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  12030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12031. printf %s "checking for $ac_word... " >&6; }
  12032. if test ${ac_cv_prog_CXX+y}
  12033. then :
  12034. printf %s "(cached) " >&6
  12035. else $as_nop
  12036. if test -n "$CXX"; then
  12037. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  12038. else
  12039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12040. for as_dir in $PATH
  12041. do
  12042. IFS=$as_save_IFS
  12043. case $as_dir in #(((
  12044. '') as_dir=./ ;;
  12045. */) ;;
  12046. *) as_dir=$as_dir/ ;;
  12047. esac
  12048. for ac_exec_ext in '' $ac_executable_extensions; do
  12049. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12050. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  12051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12052. break 2
  12053. fi
  12054. done
  12055. done
  12056. IFS=$as_save_IFS
  12057. fi
  12058. fi
  12059. CXX=$ac_cv_prog_CXX
  12060. if test -n "$CXX"; then
  12061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  12062. printf "%s\n" "$CXX" >&6; }
  12063. else
  12064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12065. printf "%s\n" "no" >&6; }
  12066. fi
  12067. test -n "$CXX" && break
  12068. done
  12069. fi
  12070. if test -z "$CXX"; then
  12071. ac_ct_CXX=$CXX
  12072. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  12073. do
  12074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12075. set dummy $ac_prog; ac_word=$2
  12076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12077. printf %s "checking for $ac_word... " >&6; }
  12078. if test ${ac_cv_prog_ac_ct_CXX+y}
  12079. then :
  12080. printf %s "(cached) " >&6
  12081. else $as_nop
  12082. if test -n "$ac_ct_CXX"; then
  12083. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  12084. else
  12085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12086. for as_dir in $PATH
  12087. do
  12088. IFS=$as_save_IFS
  12089. case $as_dir in #(((
  12090. '') as_dir=./ ;;
  12091. */) ;;
  12092. *) as_dir=$as_dir/ ;;
  12093. esac
  12094. for ac_exec_ext in '' $ac_executable_extensions; do
  12095. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  12096. ac_cv_prog_ac_ct_CXX="$ac_prog"
  12097. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  12098. break 2
  12099. fi
  12100. done
  12101. done
  12102. IFS=$as_save_IFS
  12103. fi
  12104. fi
  12105. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  12106. if test -n "$ac_ct_CXX"; then
  12107. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  12108. printf "%s\n" "$ac_ct_CXX" >&6; }
  12109. else
  12110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12111. printf "%s\n" "no" >&6; }
  12112. fi
  12113. test -n "$ac_ct_CXX" && break
  12114. done
  12115. if test "x$ac_ct_CXX" = x; then
  12116. CXX="g++"
  12117. else
  12118. case $cross_compiling:$ac_tool_warned in
  12119. yes:)
  12120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12121. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12122. ac_tool_warned=yes ;;
  12123. esac
  12124. CXX=$ac_ct_CXX
  12125. fi
  12126. fi
  12127. fi
  12128. fi
  12129. # Provide some information about the compiler.
  12130. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  12131. set X $ac_compile
  12132. ac_compiler=$2
  12133. for ac_option in --version -v -V -qversion; do
  12134. { { ac_try="$ac_compiler $ac_option >&5"
  12135. case "(($ac_try" in
  12136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12137. *) ac_try_echo=$ac_try;;
  12138. esac
  12139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  12140. printf "%s\n" "$ac_try_echo"; } >&5
  12141. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  12142. ac_status=$?
  12143. if test -s conftest.err; then
  12144. sed '10a\
  12145. ... rest of stderr output deleted ...
  12146. 10q' conftest.err >conftest.er1
  12147. cat conftest.er1 >&5
  12148. fi
  12149. rm -f conftest.er1 conftest.err
  12150. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12151. test $ac_status = 0; }
  12152. done
  12153. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  12154. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  12155. if test ${ac_cv_cxx_compiler_gnu+y}
  12156. then :
  12157. printf %s "(cached) " >&6
  12158. else $as_nop
  12159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12160. /* end confdefs.h. */
  12161. int
  12162. main (void)
  12163. {
  12164. #ifndef __GNUC__
  12165. choke me
  12166. #endif
  12167. ;
  12168. return 0;
  12169. }
  12170. _ACEOF
  12171. if ac_fn_cxx_try_compile "$LINENO"
  12172. then :
  12173. ac_compiler_gnu=yes
  12174. else $as_nop
  12175. ac_compiler_gnu=no
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12178. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  12179. fi
  12180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  12181. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  12182. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12183. if test $ac_compiler_gnu = yes; then
  12184. GXX=yes
  12185. else
  12186. GXX=
  12187. fi
  12188. ac_test_CXXFLAGS=${CXXFLAGS+y}
  12189. ac_save_CXXFLAGS=$CXXFLAGS
  12190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  12191. printf %s "checking whether $CXX accepts -g... " >&6; }
  12192. if test ${ac_cv_prog_cxx_g+y}
  12193. then :
  12194. printf %s "(cached) " >&6
  12195. else $as_nop
  12196. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  12197. ac_cxx_werror_flag=yes
  12198. ac_cv_prog_cxx_g=no
  12199. CXXFLAGS="-g"
  12200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12201. /* end confdefs.h. */
  12202. int
  12203. main (void)
  12204. {
  12205. ;
  12206. return 0;
  12207. }
  12208. _ACEOF
  12209. if ac_fn_cxx_try_compile "$LINENO"
  12210. then :
  12211. ac_cv_prog_cxx_g=yes
  12212. else $as_nop
  12213. CXXFLAGS=""
  12214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12215. /* end confdefs.h. */
  12216. int
  12217. main (void)
  12218. {
  12219. ;
  12220. return 0;
  12221. }
  12222. _ACEOF
  12223. if ac_fn_cxx_try_compile "$LINENO"
  12224. then :
  12225. else $as_nop
  12226. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12227. CXXFLAGS="-g"
  12228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12229. /* end confdefs.h. */
  12230. int
  12231. main (void)
  12232. {
  12233. ;
  12234. return 0;
  12235. }
  12236. _ACEOF
  12237. if ac_fn_cxx_try_compile "$LINENO"
  12238. then :
  12239. ac_cv_prog_cxx_g=yes
  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. fi
  12245. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12246. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  12247. fi
  12248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  12249. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  12250. if test $ac_test_CXXFLAGS; then
  12251. CXXFLAGS=$ac_save_CXXFLAGS
  12252. elif test $ac_cv_prog_cxx_g = yes; then
  12253. if test "$GXX" = yes; then
  12254. CXXFLAGS="-g -O2"
  12255. else
  12256. CXXFLAGS="-g"
  12257. fi
  12258. else
  12259. if test "$GXX" = yes; then
  12260. CXXFLAGS="-O2"
  12261. else
  12262. CXXFLAGS=
  12263. fi
  12264. fi
  12265. ac_prog_cxx_stdcxx=no
  12266. if test x$ac_prog_cxx_stdcxx = xno
  12267. then :
  12268. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  12269. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  12270. if test ${ac_cv_prog_cxx_11+y}
  12271. then :
  12272. printf %s "(cached) " >&6
  12273. else $as_nop
  12274. ac_cv_prog_cxx_11=no
  12275. ac_save_CXX=$CXX
  12276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12277. /* end confdefs.h. */
  12278. $ac_cxx_conftest_cxx11_program
  12279. _ACEOF
  12280. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  12281. do
  12282. CXX="$ac_save_CXX $ac_arg"
  12283. if ac_fn_cxx_try_compile "$LINENO"
  12284. then :
  12285. ac_cv_prog_cxx_cxx11=$ac_arg
  12286. fi
  12287. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12288. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  12289. done
  12290. rm -f conftest.$ac_ext
  12291. CXX=$ac_save_CXX
  12292. fi
  12293. if test "x$ac_cv_prog_cxx_cxx11" = xno
  12294. then :
  12295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12296. printf "%s\n" "unsupported" >&6; }
  12297. else $as_nop
  12298. if test "x$ac_cv_prog_cxx_cxx11" = x
  12299. then :
  12300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12301. printf "%s\n" "none needed" >&6; }
  12302. else $as_nop
  12303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  12304. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  12305. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  12306. fi
  12307. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  12308. ac_prog_cxx_stdcxx=cxx11
  12309. fi
  12310. fi
  12311. if test x$ac_prog_cxx_stdcxx = xno
  12312. then :
  12313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  12314. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  12315. if test ${ac_cv_prog_cxx_98+y}
  12316. then :
  12317. printf %s "(cached) " >&6
  12318. else $as_nop
  12319. ac_cv_prog_cxx_98=no
  12320. ac_save_CXX=$CXX
  12321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12322. /* end confdefs.h. */
  12323. $ac_cxx_conftest_cxx98_program
  12324. _ACEOF
  12325. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  12326. do
  12327. CXX="$ac_save_CXX $ac_arg"
  12328. if ac_fn_cxx_try_compile "$LINENO"
  12329. then :
  12330. ac_cv_prog_cxx_cxx98=$ac_arg
  12331. fi
  12332. rm -f core conftest.err conftest.$ac_objext conftest.beam
  12333. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  12334. done
  12335. rm -f conftest.$ac_ext
  12336. CXX=$ac_save_CXX
  12337. fi
  12338. if test "x$ac_cv_prog_cxx_cxx98" = xno
  12339. then :
  12340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  12341. printf "%s\n" "unsupported" >&6; }
  12342. else $as_nop
  12343. if test "x$ac_cv_prog_cxx_cxx98" = x
  12344. then :
  12345. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  12346. printf "%s\n" "none needed" >&6; }
  12347. else $as_nop
  12348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  12349. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  12350. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  12351. fi
  12352. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  12353. ac_prog_cxx_stdcxx=cxx98
  12354. fi
  12355. fi
  12356. ac_ext=c
  12357. ac_cpp='$CPP $CPPFLAGS'
  12358. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12359. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12360. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12361. func_stripname_cnf ()
  12362. {
  12363. case $2 in
  12364. .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  12365. *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  12366. esac
  12367. } # func_stripname_cnf
  12368. if test -n "$CXX" && ( test no != "$CXX" &&
  12369. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  12370. (test g++ != "$CXX"))); then
  12371. ac_ext=cpp
  12372. ac_cpp='$CXXCPP $CPPFLAGS'
  12373. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12374. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12375. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12376. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  12377. printf %s "checking how to run the C++ preprocessor... " >&6; }
  12378. if test -z "$CXXCPP"; then
  12379. if test ${ac_cv_prog_CXXCPP+y}
  12380. then :
  12381. printf %s "(cached) " >&6
  12382. else $as_nop
  12383. # Double quotes because $CXX needs to be expanded
  12384. for CXXCPP in "$CXX -E" cpp /lib/cpp
  12385. do
  12386. ac_preproc_ok=false
  12387. for ac_cxx_preproc_warn_flag in '' yes
  12388. do
  12389. # Use a header file that comes with gcc, so configuring glibc
  12390. # with a fresh cross-compiler works.
  12391. # On the NeXT, cc -E runs the code through the compiler's parser,
  12392. # not just through cpp. "Syntax error" is here to catch this case.
  12393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12394. /* end confdefs.h. */
  12395. #include <limits.h>
  12396. Syntax error
  12397. _ACEOF
  12398. if ac_fn_cxx_try_cpp "$LINENO"
  12399. then :
  12400. else $as_nop
  12401. # Broken: fails on valid input.
  12402. continue
  12403. fi
  12404. rm -f conftest.err conftest.i conftest.$ac_ext
  12405. # OK, works on sane cases. Now check whether nonexistent headers
  12406. # can be detected and how.
  12407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12408. /* end confdefs.h. */
  12409. #include <ac_nonexistent.h>
  12410. _ACEOF
  12411. if ac_fn_cxx_try_cpp "$LINENO"
  12412. then :
  12413. # Broken: success on invalid input.
  12414. continue
  12415. else $as_nop
  12416. # Passes both tests.
  12417. ac_preproc_ok=:
  12418. break
  12419. fi
  12420. rm -f conftest.err conftest.i conftest.$ac_ext
  12421. done
  12422. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12423. rm -f conftest.i conftest.err conftest.$ac_ext
  12424. if $ac_preproc_ok
  12425. then :
  12426. break
  12427. fi
  12428. done
  12429. ac_cv_prog_CXXCPP=$CXXCPP
  12430. fi
  12431. CXXCPP=$ac_cv_prog_CXXCPP
  12432. else
  12433. ac_cv_prog_CXXCPP=$CXXCPP
  12434. fi
  12435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  12436. printf "%s\n" "$CXXCPP" >&6; }
  12437. ac_preproc_ok=false
  12438. for ac_cxx_preproc_warn_flag in '' yes
  12439. do
  12440. # Use a header file that comes with gcc, so configuring glibc
  12441. # with a fresh cross-compiler works.
  12442. # On the NeXT, cc -E runs the code through the compiler's parser,
  12443. # not just through cpp. "Syntax error" is here to catch this case.
  12444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12445. /* end confdefs.h. */
  12446. #include <limits.h>
  12447. Syntax error
  12448. _ACEOF
  12449. if ac_fn_cxx_try_cpp "$LINENO"
  12450. then :
  12451. else $as_nop
  12452. # Broken: fails on valid input.
  12453. continue
  12454. fi
  12455. rm -f conftest.err conftest.i conftest.$ac_ext
  12456. # OK, works on sane cases. Now check whether nonexistent headers
  12457. # can be detected and how.
  12458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12459. /* end confdefs.h. */
  12460. #include <ac_nonexistent.h>
  12461. _ACEOF
  12462. if ac_fn_cxx_try_cpp "$LINENO"
  12463. then :
  12464. # Broken: success on invalid input.
  12465. continue
  12466. else $as_nop
  12467. # Passes both tests.
  12468. ac_preproc_ok=:
  12469. break
  12470. fi
  12471. rm -f conftest.err conftest.i conftest.$ac_ext
  12472. done
  12473. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  12474. rm -f conftest.i conftest.err conftest.$ac_ext
  12475. if $ac_preproc_ok
  12476. then :
  12477. else $as_nop
  12478. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12479. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  12480. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  12481. See \`config.log' for more details" "$LINENO" 5; }
  12482. fi
  12483. ac_ext=c
  12484. ac_cpp='$CPP $CPPFLAGS'
  12485. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12486. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12487. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12488. else
  12489. _lt_caught_CXX_error=yes
  12490. fi
  12491. ac_ext=cpp
  12492. ac_cpp='$CXXCPP $CPPFLAGS'
  12493. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12494. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12495. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12496. archive_cmds_need_lc_CXX=no
  12497. allow_undefined_flag_CXX=
  12498. always_export_symbols_CXX=no
  12499. archive_expsym_cmds_CXX=
  12500. compiler_needs_object_CXX=no
  12501. export_dynamic_flag_spec_CXX=
  12502. hardcode_direct_CXX=no
  12503. hardcode_direct_absolute_CXX=no
  12504. hardcode_libdir_flag_spec_CXX=
  12505. hardcode_libdir_separator_CXX=
  12506. hardcode_minus_L_CXX=no
  12507. hardcode_shlibpath_var_CXX=unsupported
  12508. hardcode_automatic_CXX=no
  12509. inherit_rpath_CXX=no
  12510. module_cmds_CXX=
  12511. module_expsym_cmds_CXX=
  12512. link_all_deplibs_CXX=unknown
  12513. old_archive_cmds_CXX=$old_archive_cmds
  12514. reload_flag_CXX=$reload_flag
  12515. reload_cmds_CXX=$reload_cmds
  12516. no_undefined_flag_CXX=
  12517. whole_archive_flag_spec_CXX=
  12518. enable_shared_with_static_runtimes_CXX=no
  12519. # Source file extension for C++ test sources.
  12520. ac_ext=cpp
  12521. # Object file extension for compiled C++ test sources.
  12522. objext=o
  12523. objext_CXX=$objext
  12524. # No sense in running all these tests if we already determined that
  12525. # the CXX compiler isn't working. Some variables (like enable_shared)
  12526. # are currently assumed to apply to all compilers on this platform,
  12527. # and will be corrupted by setting them based on a non-working compiler.
  12528. if test yes != "$_lt_caught_CXX_error"; then
  12529. # Code to be used in simple compile tests
  12530. lt_simple_compile_test_code="int some_variable = 0;"
  12531. # Code to be used in simple link tests
  12532. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  12533. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12534. # If no C compiler was specified, use CC.
  12535. LTCC=${LTCC-"$CC"}
  12536. # If no C compiler flags were specified, use CFLAGS.
  12537. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12538. # Allow CC to be a program name with arguments.
  12539. compiler=$CC
  12540. # save warnings/boilerplate of simple test code
  12541. ac_outfile=conftest.$ac_objext
  12542. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12543. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12544. _lt_compiler_boilerplate=`cat conftest.err`
  12545. $RM conftest*
  12546. ac_outfile=conftest.$ac_objext
  12547. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12548. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12549. _lt_linker_boilerplate=`cat conftest.err`
  12550. $RM -r conftest*
  12551. # Allow CC to be a program name with arguments.
  12552. lt_save_CC=$CC
  12553. lt_save_CFLAGS=$CFLAGS
  12554. lt_save_LD=$LD
  12555. lt_save_GCC=$GCC
  12556. GCC=$GXX
  12557. lt_save_with_gnu_ld=$with_gnu_ld
  12558. lt_save_path_LD=$lt_cv_path_LD
  12559. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  12560. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  12561. else
  12562. $as_unset lt_cv_prog_gnu_ld
  12563. fi
  12564. if test -n "${lt_cv_path_LDCXX+set}"; then
  12565. lt_cv_path_LD=$lt_cv_path_LDCXX
  12566. else
  12567. $as_unset lt_cv_path_LD
  12568. fi
  12569. test -z "${LDCXX+set}" || LD=$LDCXX
  12570. CC=${CXX-"c++"}
  12571. CFLAGS=$CXXFLAGS
  12572. compiler=$CC
  12573. compiler_CXX=$CC
  12574. func_cc_basename $compiler
  12575. cc_basename=$func_cc_basename_result
  12576. if test -n "$compiler"; then
  12577. # We don't want -fno-exception when compiling C++ code, so set the
  12578. # no_builtin_flag separately
  12579. if test yes = "$GXX"; then
  12580. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  12581. else
  12582. lt_prog_compiler_no_builtin_flag_CXX=
  12583. fi
  12584. if test yes = "$GXX"; then
  12585. # Set up default GNU C++ configuration
  12586. # Check whether --with-gnu-ld was given.
  12587. if test ${with_gnu_ld+y}
  12588. then :
  12589. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  12590. else $as_nop
  12591. with_gnu_ld=no
  12592. fi
  12593. ac_prog=ld
  12594. if test yes = "$GCC"; then
  12595. # Check if gcc -print-prog-name=ld gives a path.
  12596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12597. printf %s "checking for ld used by $CC... " >&6; }
  12598. case $host in
  12599. *-*-mingw*)
  12600. # gcc leaves a trailing carriage return, which upsets mingw
  12601. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12602. *)
  12603. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12604. esac
  12605. case $ac_prog in
  12606. # Accept absolute paths.
  12607. [\\/]* | ?:[\\/]*)
  12608. re_direlt='/[^/][^/]*/\.\./'
  12609. # Canonicalize the pathname of ld
  12610. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12611. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12612. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12613. done
  12614. test -z "$LD" && LD=$ac_prog
  12615. ;;
  12616. "")
  12617. # If it fails, then pretend we aren't using GCC.
  12618. ac_prog=ld
  12619. ;;
  12620. *)
  12621. # If it is relative, then search for the first ld in PATH.
  12622. with_gnu_ld=unknown
  12623. ;;
  12624. esac
  12625. elif test yes = "$with_gnu_ld"; then
  12626. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12627. printf %s "checking for GNU ld... " >&6; }
  12628. else
  12629. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12630. printf %s "checking for non-GNU ld... " >&6; }
  12631. fi
  12632. if test ${lt_cv_path_LD+y}
  12633. then :
  12634. printf %s "(cached) " >&6
  12635. else $as_nop
  12636. if test -z "$LD"; then
  12637. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  12638. for ac_dir in $PATH; do
  12639. IFS=$lt_save_ifs
  12640. test -z "$ac_dir" && ac_dir=.
  12641. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12642. lt_cv_path_LD=$ac_dir/$ac_prog
  12643. # Check to see if the program is GNU ld. I'd rather use --version,
  12644. # but apparently some variants of GNU ld only accept -v.
  12645. # Break only if it was the GNU/non-GNU ld that we prefer.
  12646. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12647. *GNU* | *'with BFD'*)
  12648. test no != "$with_gnu_ld" && break
  12649. ;;
  12650. *)
  12651. test yes != "$with_gnu_ld" && break
  12652. ;;
  12653. esac
  12654. fi
  12655. done
  12656. IFS=$lt_save_ifs
  12657. else
  12658. lt_cv_path_LD=$LD # Let the user override the test with a path.
  12659. fi
  12660. fi
  12661. LD=$lt_cv_path_LD
  12662. if test -n "$LD"; then
  12663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12664. printf "%s\n" "$LD" >&6; }
  12665. else
  12666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12667. printf "%s\n" "no" >&6; }
  12668. fi
  12669. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12670. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12671. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  12672. if test ${lt_cv_prog_gnu_ld+y}
  12673. then :
  12674. printf %s "(cached) " >&6
  12675. else $as_nop
  12676. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12677. case `$LD -v 2>&1 </dev/null` in
  12678. *GNU* | *'with BFD'*)
  12679. lt_cv_prog_gnu_ld=yes
  12680. ;;
  12681. *)
  12682. lt_cv_prog_gnu_ld=no
  12683. ;;
  12684. esac
  12685. fi
  12686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12687. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  12688. with_gnu_ld=$lt_cv_prog_gnu_ld
  12689. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  12690. # archiving commands below assume that GNU ld is being used.
  12691. if test yes = "$with_gnu_ld"; then
  12692. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  12693. 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'
  12694. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  12695. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  12696. # If archive_cmds runs LD, not CC, wlarc should be empty
  12697. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  12698. # investigate it a little bit more. (MM)
  12699. wlarc='$wl'
  12700. # ancient GNU ld didn't support --whole-archive et. al.
  12701. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  12702. $GREP 'no-whole-archive' > /dev/null; then
  12703. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  12704. else
  12705. whole_archive_flag_spec_CXX=
  12706. fi
  12707. else
  12708. with_gnu_ld=no
  12709. wlarc=
  12710. # A generic and very simple default shared library creation
  12711. # command for GNU C++ for the case where it uses the native
  12712. # linker, instead of GNU ld. If possible, this setting should
  12713. # overridden to take advantage of the native linker features on
  12714. # the platform it is being used on.
  12715. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12716. fi
  12717. # Commands to make compiler produce verbose output that lists
  12718. # what "hidden" libraries, object files and flags are used when
  12719. # linking a shared library.
  12720. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12721. else
  12722. GXX=no
  12723. with_gnu_ld=no
  12724. wlarc=
  12725. fi
  12726. # PORTME: fill in a description of your system's C++ link characteristics
  12727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12728. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12729. ld_shlibs_CXX=yes
  12730. case $host_os in
  12731. aix3*)
  12732. # FIXME: insert proper C++ library support
  12733. ld_shlibs_CXX=no
  12734. ;;
  12735. aix[4-9]*)
  12736. if test ia64 = "$host_cpu"; then
  12737. # On IA64, the linker does run time linking by default, so we don't
  12738. # have to do anything special.
  12739. aix_use_runtimelinking=no
  12740. exp_sym_flag='-Bexport'
  12741. no_entry_flag=
  12742. else
  12743. aix_use_runtimelinking=no
  12744. # Test if we are trying to use run time linking or normal
  12745. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12746. # have runtime linking enabled, and use it for executables.
  12747. # For shared libraries, we enable/disable runtime linking
  12748. # depending on the kind of the shared library created -
  12749. # when "with_aix_soname,aix_use_runtimelinking" is:
  12750. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  12751. # "aix,yes" lib.so shared, rtl:yes, for executables
  12752. # lib.a static archive
  12753. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  12754. # lib.a(lib.so.V) shared, rtl:no, for executables
  12755. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12756. # lib.a(lib.so.V) shared, rtl:no
  12757. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  12758. # lib.a static archive
  12759. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12760. for ld_flag in $LDFLAGS; do
  12761. case $ld_flag in
  12762. *-brtl*)
  12763. aix_use_runtimelinking=yes
  12764. break
  12765. ;;
  12766. esac
  12767. done
  12768. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12769. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12770. # so we don't have lib.a shared libs to link our executables.
  12771. # We have to force runtime linking in this case.
  12772. aix_use_runtimelinking=yes
  12773. LDFLAGS="$LDFLAGS -Wl,-brtl"
  12774. fi
  12775. ;;
  12776. esac
  12777. exp_sym_flag='-bexport'
  12778. no_entry_flag='-bnoentry'
  12779. fi
  12780. # When large executables or shared objects are built, AIX ld can
  12781. # have problems creating the table of contents. If linking a library
  12782. # or program results in "error TOC overflow" add -mminimal-toc to
  12783. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12784. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12785. archive_cmds_CXX=''
  12786. hardcode_direct_CXX=yes
  12787. hardcode_direct_absolute_CXX=yes
  12788. hardcode_libdir_separator_CXX=':'
  12789. link_all_deplibs_CXX=yes
  12790. file_list_spec_CXX='$wl-f,'
  12791. case $with_aix_soname,$aix_use_runtimelinking in
  12792. aix,*) ;; # no import file
  12793. svr4,* | *,yes) # use import file
  12794. # The Import File defines what to hardcode.
  12795. hardcode_direct_CXX=no
  12796. hardcode_direct_absolute_CXX=no
  12797. ;;
  12798. esac
  12799. if test yes = "$GXX"; then
  12800. case $host_os in aix4.[012]|aix4.[012].*)
  12801. # We only want to do this on AIX 4.2 and lower, the check
  12802. # below for broken collect2 doesn't work under 4.3+
  12803. collect2name=`$CC -print-prog-name=collect2`
  12804. if test -f "$collect2name" &&
  12805. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12806. then
  12807. # We have reworked collect2
  12808. :
  12809. else
  12810. # We have old collect2
  12811. hardcode_direct_CXX=unsupported
  12812. # It fails to find uninstalled libraries when the uninstalled
  12813. # path is not listed in the libpath. Setting hardcode_minus_L
  12814. # to unsupported forces relinking
  12815. hardcode_minus_L_CXX=yes
  12816. hardcode_libdir_flag_spec_CXX='-L$libdir'
  12817. hardcode_libdir_separator_CXX=
  12818. fi
  12819. esac
  12820. shared_flag='-shared'
  12821. if test yes = "$aix_use_runtimelinking"; then
  12822. shared_flag=$shared_flag' $wl-G'
  12823. fi
  12824. # Need to ensure runtime linking is disabled for the traditional
  12825. # shared library, or the linker may eventually find shared libraries
  12826. # /with/ Import File - we do not want to mix them.
  12827. shared_flag_aix='-shared'
  12828. shared_flag_svr4='-shared $wl-G'
  12829. else
  12830. # not using gcc
  12831. if test ia64 = "$host_cpu"; then
  12832. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12833. # chokes on -Wl,-G. The following line is correct:
  12834. shared_flag='-G'
  12835. else
  12836. if test yes = "$aix_use_runtimelinking"; then
  12837. shared_flag='$wl-G'
  12838. else
  12839. shared_flag='$wl-bM:SRE'
  12840. fi
  12841. shared_flag_aix='$wl-bM:SRE'
  12842. shared_flag_svr4='$wl-G'
  12843. fi
  12844. fi
  12845. export_dynamic_flag_spec_CXX='$wl-bexpall'
  12846. # It seems that -bexpall does not export symbols beginning with
  12847. # underscore (_), so it is better to generate a list of symbols to
  12848. # export.
  12849. always_export_symbols_CXX=yes
  12850. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12851. # Warning - without using the other runtime loading flags (-brtl),
  12852. # -berok will link without error, but may produce a broken library.
  12853. # The "-G" linker flag allows undefined symbols.
  12854. no_undefined_flag_CXX='-bernotok'
  12855. # Determine the default libpath from the value encoded in an empty
  12856. # executable.
  12857. if test set = "${lt_cv_aix_libpath+set}"; then
  12858. aix_libpath=$lt_cv_aix_libpath
  12859. else
  12860. if test ${lt_cv_aix_libpath__CXX+y}
  12861. then :
  12862. printf %s "(cached) " >&6
  12863. else $as_nop
  12864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12865. /* end confdefs.h. */
  12866. int
  12867. main (void)
  12868. {
  12869. ;
  12870. return 0;
  12871. }
  12872. _ACEOF
  12873. if ac_fn_cxx_try_link "$LINENO"
  12874. then :
  12875. lt_aix_libpath_sed='
  12876. /Import File Strings/,/^$/ {
  12877. /^0/ {
  12878. s/^0 *\([^ ]*\) *$/\1/
  12879. p
  12880. }
  12881. }'
  12882. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12883. # Check for a 64-bit object if we didn't find anything.
  12884. if test -z "$lt_cv_aix_libpath__CXX"; then
  12885. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12886. fi
  12887. fi
  12888. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12889. conftest$ac_exeext conftest.$ac_ext
  12890. if test -z "$lt_cv_aix_libpath__CXX"; then
  12891. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12892. fi
  12893. fi
  12894. aix_libpath=$lt_cv_aix_libpath__CXX
  12895. fi
  12896. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12897. 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
  12898. else
  12899. if test ia64 = "$host_cpu"; then
  12900. hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  12901. allow_undefined_flag_CXX="-z nodefs"
  12902. 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"
  12903. else
  12904. # Determine the default libpath from the value encoded in an
  12905. # empty executable.
  12906. if test set = "${lt_cv_aix_libpath+set}"; then
  12907. aix_libpath=$lt_cv_aix_libpath
  12908. else
  12909. if test ${lt_cv_aix_libpath__CXX+y}
  12910. then :
  12911. printf %s "(cached) " >&6
  12912. else $as_nop
  12913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12914. /* end confdefs.h. */
  12915. int
  12916. main (void)
  12917. {
  12918. ;
  12919. return 0;
  12920. }
  12921. _ACEOF
  12922. if ac_fn_cxx_try_link "$LINENO"
  12923. then :
  12924. lt_aix_libpath_sed='
  12925. /Import File Strings/,/^$/ {
  12926. /^0/ {
  12927. s/^0 *\([^ ]*\) *$/\1/
  12928. p
  12929. }
  12930. }'
  12931. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12932. # Check for a 64-bit object if we didn't find anything.
  12933. if test -z "$lt_cv_aix_libpath__CXX"; then
  12934. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12935. fi
  12936. fi
  12937. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12938. conftest$ac_exeext conftest.$ac_ext
  12939. if test -z "$lt_cv_aix_libpath__CXX"; then
  12940. lt_cv_aix_libpath__CXX=/usr/lib:/lib
  12941. fi
  12942. fi
  12943. aix_libpath=$lt_cv_aix_libpath__CXX
  12944. fi
  12945. hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  12946. # Warning - without using the other run time loading flags,
  12947. # -berok will link without error, but may produce a broken library.
  12948. no_undefined_flag_CXX=' $wl-bernotok'
  12949. allow_undefined_flag_CXX=' $wl-berok'
  12950. if test yes = "$with_gnu_ld"; then
  12951. # We only use this code for GNU lds that support --whole-archive.
  12952. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  12953. else
  12954. # Exported symbols can be pulled into shared objects from archives
  12955. whole_archive_flag_spec_CXX='$convenience'
  12956. fi
  12957. archive_cmds_need_lc_CXX=yes
  12958. archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12959. # -brtl affects multiple linker settings, -berok does not and is overridden later
  12960. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12961. if test svr4 != "$with_aix_soname"; then
  12962. # This is similar to how AIX traditionally builds its shared
  12963. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  12964. 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'
  12965. fi
  12966. if test aix != "$with_aix_soname"; then
  12967. 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'
  12968. else
  12969. # used by -dlpreopen to get the symbols
  12970. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  12971. fi
  12972. archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  12973. fi
  12974. fi
  12975. ;;
  12976. beos*)
  12977. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12978. allow_undefined_flag_CXX=unsupported
  12979. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12980. # support --undefined. This deserves some investigation. FIXME
  12981. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12982. else
  12983. ld_shlibs_CXX=no
  12984. fi
  12985. ;;
  12986. chorus*)
  12987. case $cc_basename in
  12988. *)
  12989. # FIXME: insert proper C++ library support
  12990. ld_shlibs_CXX=no
  12991. ;;
  12992. esac
  12993. ;;
  12994. cygwin* | mingw* | pw32* | cegcc*)
  12995. case $GXX,$cc_basename in
  12996. ,cl* | no,cl*)
  12997. # Native MSVC
  12998. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12999. # no search path for DLLs.
  13000. hardcode_libdir_flag_spec_CXX=' '
  13001. allow_undefined_flag_CXX=unsupported
  13002. always_export_symbols_CXX=yes
  13003. file_list_spec_CXX='@'
  13004. # Tell ltmain to make .lib files, not .a files.
  13005. libext=lib
  13006. # Tell ltmain to make .dll files, not .so files.
  13007. shrext_cmds=.dll
  13008. # FIXME: Setting linknames here is a bad hack.
  13009. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  13010. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13011. cp "$export_symbols" "$output_objdir/$soname.def";
  13012. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  13013. else
  13014. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  13015. fi~
  13016. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13017. linknames='
  13018. # The linker will not automatically build a static lib if we build a DLL.
  13019. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  13020. enable_shared_with_static_runtimes_CXX=yes
  13021. # Don't use ranlib
  13022. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  13023. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  13024. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13025. case $lt_outputfile in
  13026. *.exe|*.EXE) ;;
  13027. *)
  13028. lt_outputfile=$lt_outputfile.exe
  13029. lt_tool_outputfile=$lt_tool_outputfile.exe
  13030. ;;
  13031. esac~
  13032. func_to_tool_file "$lt_outputfile"~
  13033. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  13034. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13035. $RM "$lt_outputfile.manifest";
  13036. fi'
  13037. ;;
  13038. *)
  13039. # g++
  13040. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  13041. # as there is no search path for DLLs.
  13042. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13043. export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  13044. allow_undefined_flag_CXX=unsupported
  13045. always_export_symbols_CXX=no
  13046. enable_shared_with_static_runtimes_CXX=yes
  13047. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13048. 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'
  13049. # If the export-symbols file already is a .def file, use it as
  13050. # is; otherwise, prepend EXPORTS...
  13051. archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  13052. cp $export_symbols $output_objdir/$soname.def;
  13053. else
  13054. echo EXPORTS > $output_objdir/$soname.def;
  13055. cat $export_symbols >> $output_objdir/$soname.def;
  13056. fi~
  13057. $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'
  13058. else
  13059. ld_shlibs_CXX=no
  13060. fi
  13061. ;;
  13062. esac
  13063. ;;
  13064. darwin* | rhapsody*)
  13065. archive_cmds_need_lc_CXX=no
  13066. hardcode_direct_CXX=no
  13067. hardcode_automatic_CXX=yes
  13068. hardcode_shlibpath_var_CXX=unsupported
  13069. if test yes = "$lt_cv_ld_force_load"; then
  13070. 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\"`'
  13071. else
  13072. whole_archive_flag_spec_CXX=''
  13073. fi
  13074. link_all_deplibs_CXX=yes
  13075. allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  13076. case $cc_basename in
  13077. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  13078. *) _lt_dar_can_shared=$GCC ;;
  13079. esac
  13080. if test yes = "$_lt_dar_can_shared"; then
  13081. output_verbose_link_cmd=func_echo_all
  13082. 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"
  13083. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  13084. 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"
  13085. 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"
  13086. if test yes != "$lt_cv_apple_cc_single_mod"; then
  13087. 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"
  13088. 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"
  13089. fi
  13090. else
  13091. ld_shlibs_CXX=no
  13092. fi
  13093. ;;
  13094. os2*)
  13095. hardcode_libdir_flag_spec_CXX='-L$libdir'
  13096. hardcode_minus_L_CXX=yes
  13097. allow_undefined_flag_CXX=unsupported
  13098. shrext_cmds=.dll
  13099. archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13100. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13101. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13102. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13103. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  13104. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13105. emximp -o $lib $output_objdir/$libname.def'
  13106. archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  13107. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  13108. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  13109. $ECHO EXPORTS >> $output_objdir/$libname.def~
  13110. prefix_cmds="$SED"~
  13111. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  13112. prefix_cmds="$prefix_cmds -e 1d";
  13113. fi~
  13114. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  13115. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  13116. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  13117. emximp -o $lib $output_objdir/$libname.def'
  13118. old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  13119. enable_shared_with_static_runtimes_CXX=yes
  13120. file_list_spec_CXX='@'
  13121. ;;
  13122. dgux*)
  13123. case $cc_basename in
  13124. ec++*)
  13125. # FIXME: insert proper C++ library support
  13126. ld_shlibs_CXX=no
  13127. ;;
  13128. ghcx*)
  13129. # Green Hills C++ Compiler
  13130. # FIXME: insert proper C++ library support
  13131. ld_shlibs_CXX=no
  13132. ;;
  13133. *)
  13134. # FIXME: insert proper C++ library support
  13135. ld_shlibs_CXX=no
  13136. ;;
  13137. esac
  13138. ;;
  13139. freebsd2.*)
  13140. # C++ shared libraries reported to be fairly broken before
  13141. # switch to ELF
  13142. ld_shlibs_CXX=no
  13143. ;;
  13144. freebsd-elf*)
  13145. archive_cmds_need_lc_CXX=no
  13146. ;;
  13147. freebsd* | dragonfly* | midnightbsd*)
  13148. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  13149. # conventions
  13150. ld_shlibs_CXX=yes
  13151. ;;
  13152. haiku*)
  13153. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13154. link_all_deplibs_CXX=yes
  13155. ;;
  13156. hpux9*)
  13157. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13158. hardcode_libdir_separator_CXX=:
  13159. export_dynamic_flag_spec_CXX='$wl-E'
  13160. hardcode_direct_CXX=yes
  13161. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13162. # but as the default
  13163. # location of the library.
  13164. case $cc_basename in
  13165. CC*)
  13166. # FIXME: insert proper C++ library support
  13167. ld_shlibs_CXX=no
  13168. ;;
  13169. aCC*)
  13170. 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'
  13171. # Commands to make compiler produce verbose output that lists
  13172. # what "hidden" libraries, object files and flags are used when
  13173. # linking a shared library.
  13174. #
  13175. # There doesn't appear to be a way to prevent this compiler from
  13176. # explicitly linking system object files so we need to strip them
  13177. # from the output so that they don't get included in the library
  13178. # dependencies.
  13179. 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"'
  13180. ;;
  13181. *)
  13182. if test yes = "$GXX"; then
  13183. 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'
  13184. else
  13185. # FIXME: insert proper C++ library support
  13186. ld_shlibs_CXX=no
  13187. fi
  13188. ;;
  13189. esac
  13190. ;;
  13191. hpux10*|hpux11*)
  13192. if test no = "$with_gnu_ld"; then
  13193. hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  13194. hardcode_libdir_separator_CXX=:
  13195. case $host_cpu in
  13196. hppa*64*|ia64*)
  13197. ;;
  13198. *)
  13199. export_dynamic_flag_spec_CXX='$wl-E'
  13200. ;;
  13201. esac
  13202. fi
  13203. case $host_cpu in
  13204. hppa*64*|ia64*)
  13205. hardcode_direct_CXX=no
  13206. hardcode_shlibpath_var_CXX=no
  13207. ;;
  13208. *)
  13209. hardcode_direct_CXX=yes
  13210. hardcode_direct_absolute_CXX=yes
  13211. hardcode_minus_L_CXX=yes # Not in the search PATH,
  13212. # but as the default
  13213. # location of the library.
  13214. ;;
  13215. esac
  13216. case $cc_basename in
  13217. CC*)
  13218. # FIXME: insert proper C++ library support
  13219. ld_shlibs_CXX=no
  13220. ;;
  13221. aCC*)
  13222. case $host_cpu in
  13223. hppa*64*)
  13224. archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13225. ;;
  13226. ia64*)
  13227. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13228. ;;
  13229. *)
  13230. archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13231. ;;
  13232. esac
  13233. # Commands to make compiler produce verbose output that lists
  13234. # what "hidden" libraries, object files and flags are used when
  13235. # linking a shared library.
  13236. #
  13237. # There doesn't appear to be a way to prevent this compiler from
  13238. # explicitly linking system object files so we need to strip them
  13239. # from the output so that they don't get included in the library
  13240. # dependencies.
  13241. 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"'
  13242. ;;
  13243. *)
  13244. if test yes = "$GXX"; then
  13245. if test no = "$with_gnu_ld"; then
  13246. case $host_cpu in
  13247. hppa*64*)
  13248. archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13249. ;;
  13250. ia64*)
  13251. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13252. ;;
  13253. *)
  13254. 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'
  13255. ;;
  13256. esac
  13257. fi
  13258. else
  13259. # FIXME: insert proper C++ library support
  13260. ld_shlibs_CXX=no
  13261. fi
  13262. ;;
  13263. esac
  13264. ;;
  13265. interix[3-9]*)
  13266. hardcode_direct_CXX=no
  13267. hardcode_shlibpath_var_CXX=no
  13268. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13269. export_dynamic_flag_spec_CXX='$wl-E'
  13270. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13271. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13272. # default) and relocated if they conflict, which is a slow very memory
  13273. # consuming and fragmenting process. To avoid this, we pick a random,
  13274. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13275. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13276. 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'
  13277. 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'
  13278. ;;
  13279. irix5* | irix6*)
  13280. case $cc_basename in
  13281. CC*)
  13282. # SGI C++
  13283. 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'
  13284. # Archives containing C++ object files must be created using
  13285. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  13286. # necessary to make sure instantiated templates are included
  13287. # in the archive.
  13288. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  13289. ;;
  13290. *)
  13291. if test yes = "$GXX"; then
  13292. if test no = "$with_gnu_ld"; then
  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"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  13294. else
  13295. 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'
  13296. fi
  13297. fi
  13298. link_all_deplibs_CXX=yes
  13299. ;;
  13300. esac
  13301. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13302. hardcode_libdir_separator_CXX=:
  13303. inherit_rpath_CXX=yes
  13304. ;;
  13305. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13306. case $cc_basename in
  13307. KCC*)
  13308. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13309. # KCC will only create a shared library if the output file
  13310. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13311. # to its proper name (with version) after linking.
  13312. 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'
  13313. 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'
  13314. # Commands to make compiler produce verbose output that lists
  13315. # what "hidden" libraries, object files and flags are used when
  13316. # linking a shared library.
  13317. #
  13318. # There doesn't appear to be a way to prevent this compiler from
  13319. # explicitly linking system object files so we need to strip them
  13320. # from the output so that they don't get included in the library
  13321. # dependencies.
  13322. 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"'
  13323. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13324. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13325. # Archives containing C++ object files must be created using
  13326. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  13327. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  13328. ;;
  13329. icpc* | ecpc* )
  13330. # Intel C++
  13331. with_gnu_ld=yes
  13332. # version 8.0 and above of icpc choke on multiply defined symbols
  13333. # if we add $predep_objects and $postdep_objects, however 7.1 and
  13334. # earlier do not add the objects themselves.
  13335. case `$CC -V 2>&1` in
  13336. *"Version 7."*)
  13337. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13338. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  13339. ;;
  13340. *) # Version 8.0 or newer
  13341. tmp_idyn=
  13342. case $host_cpu in
  13343. ia64*) tmp_idyn=' -i_dynamic';;
  13344. esac
  13345. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13346. 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'
  13347. ;;
  13348. esac
  13349. archive_cmds_need_lc_CXX=no
  13350. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13351. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13352. whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  13353. ;;
  13354. pgCC* | pgcpp*)
  13355. # Portland Group C++ compiler
  13356. case `$CC -V` in
  13357. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  13358. prelink_cmds_CXX='tpldir=Template.dir~
  13359. rm -rf $tpldir~
  13360. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  13361. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  13362. old_archive_cmds_CXX='tpldir=Template.dir~
  13363. rm -rf $tpldir~
  13364. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  13365. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  13366. $RANLIB $oldlib'
  13367. archive_cmds_CXX='tpldir=Template.dir~
  13368. rm -rf $tpldir~
  13369. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13370. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13371. archive_expsym_cmds_CXX='tpldir=Template.dir~
  13372. rm -rf $tpldir~
  13373. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  13374. $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'
  13375. ;;
  13376. *) # Version 6 and above use weak symbols
  13377. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13378. 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'
  13379. ;;
  13380. esac
  13381. hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  13382. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13383. 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'
  13384. ;;
  13385. cxx*)
  13386. # Compaq C++
  13387. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  13388. 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'
  13389. runpath_var=LD_RUN_PATH
  13390. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13391. hardcode_libdir_separator_CXX=:
  13392. # Commands to make compiler produce verbose output that lists
  13393. # what "hidden" libraries, object files and flags are used when
  13394. # linking a shared library.
  13395. #
  13396. # There doesn't appear to be a way to prevent this compiler from
  13397. # explicitly linking system object files so we need to strip them
  13398. # from the output so that they don't get included in the library
  13399. # dependencies.
  13400. 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'
  13401. ;;
  13402. xl* | mpixl* | bgxl*)
  13403. # IBM XL 8.0 on PPC, with GNU ld
  13404. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13405. export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  13406. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  13407. if test yes = "$supports_anon_versioning"; then
  13408. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  13409. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13410. echo "local: *; };" >> $output_objdir/$libname.ver~
  13411. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  13412. fi
  13413. ;;
  13414. *)
  13415. case `$CC -V 2>&1 | sed 5q` in
  13416. *Sun\ C*)
  13417. # Sun C++ 5.9
  13418. no_undefined_flag_CXX=' -zdefs'
  13419. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13420. 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'
  13421. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13422. 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'
  13423. compiler_needs_object_CXX=yes
  13424. # Not sure whether something based on
  13425. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  13426. # would be better.
  13427. output_verbose_link_cmd='func_echo_all'
  13428. # Archives containing C++ object files must be created using
  13429. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13430. # necessary to make sure instantiated templates are included
  13431. # in the archive.
  13432. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13433. ;;
  13434. esac
  13435. ;;
  13436. esac
  13437. ;;
  13438. lynxos*)
  13439. # FIXME: insert proper C++ library support
  13440. ld_shlibs_CXX=no
  13441. ;;
  13442. m88k*)
  13443. # FIXME: insert proper C++ library support
  13444. ld_shlibs_CXX=no
  13445. ;;
  13446. mvs*)
  13447. case $cc_basename in
  13448. cxx*)
  13449. # FIXME: insert proper C++ library support
  13450. ld_shlibs_CXX=no
  13451. ;;
  13452. *)
  13453. # FIXME: insert proper C++ library support
  13454. ld_shlibs_CXX=no
  13455. ;;
  13456. esac
  13457. ;;
  13458. netbsd*)
  13459. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13460. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  13461. wlarc=
  13462. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13463. hardcode_direct_CXX=yes
  13464. hardcode_shlibpath_var_CXX=no
  13465. fi
  13466. # Workaround some broken pre-1.5 toolchains
  13467. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  13468. ;;
  13469. *nto* | *qnx*)
  13470. ld_shlibs_CXX=yes
  13471. ;;
  13472. openbsd* | bitrig*)
  13473. if test -f /usr/libexec/ld.so; then
  13474. hardcode_direct_CXX=yes
  13475. hardcode_shlibpath_var_CXX=no
  13476. hardcode_direct_absolute_CXX=yes
  13477. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  13478. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13479. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  13480. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  13481. export_dynamic_flag_spec_CXX='$wl-E'
  13482. whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  13483. fi
  13484. output_verbose_link_cmd=func_echo_all
  13485. else
  13486. ld_shlibs_CXX=no
  13487. fi
  13488. ;;
  13489. osf3* | osf4* | osf5*)
  13490. case $cc_basename in
  13491. KCC*)
  13492. # Kuck and Associates, Inc. (KAI) C++ Compiler
  13493. # KCC will only create a shared library if the output file
  13494. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  13495. # to its proper name (with version) after linking.
  13496. 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'
  13497. hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  13498. hardcode_libdir_separator_CXX=:
  13499. # Archives containing C++ object files must be created using
  13500. # the KAI C++ compiler.
  13501. case $host in
  13502. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  13503. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  13504. esac
  13505. ;;
  13506. RCC*)
  13507. # Rational C++ 2.4.1
  13508. # FIXME: insert proper C++ library support
  13509. ld_shlibs_CXX=no
  13510. ;;
  13511. cxx*)
  13512. case $host in
  13513. osf3*)
  13514. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13515. 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'
  13516. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13517. ;;
  13518. *)
  13519. allow_undefined_flag_CXX=' -expect_unresolved \*'
  13520. 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'
  13521. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  13522. echo "-hidden">> $lib.exp~
  13523. $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~
  13524. $RM $lib.exp'
  13525. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  13526. ;;
  13527. esac
  13528. hardcode_libdir_separator_CXX=:
  13529. # Commands to make compiler produce verbose output that lists
  13530. # what "hidden" libraries, object files and flags are used when
  13531. # linking a shared library.
  13532. #
  13533. # There doesn't appear to be a way to prevent this compiler from
  13534. # explicitly linking system object files so we need to strip them
  13535. # from the output so that they don't get included in the library
  13536. # dependencies.
  13537. 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"'
  13538. ;;
  13539. *)
  13540. if test yes,no = "$GXX,$with_gnu_ld"; then
  13541. allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  13542. case $host in
  13543. osf3*)
  13544. 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'
  13545. ;;
  13546. *)
  13547. 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'
  13548. ;;
  13549. esac
  13550. hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  13551. hardcode_libdir_separator_CXX=:
  13552. # Commands to make compiler produce verbose output that lists
  13553. # what "hidden" libraries, object files and flags are used when
  13554. # linking a shared library.
  13555. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13556. else
  13557. # FIXME: insert proper C++ library support
  13558. ld_shlibs_CXX=no
  13559. fi
  13560. ;;
  13561. esac
  13562. ;;
  13563. psos*)
  13564. # FIXME: insert proper C++ library support
  13565. ld_shlibs_CXX=no
  13566. ;;
  13567. sunos4*)
  13568. case $cc_basename in
  13569. CC*)
  13570. # Sun C++ 4.x
  13571. # FIXME: insert proper C++ library support
  13572. ld_shlibs_CXX=no
  13573. ;;
  13574. lcc*)
  13575. # Lucid
  13576. # FIXME: insert proper C++ library support
  13577. ld_shlibs_CXX=no
  13578. ;;
  13579. *)
  13580. # FIXME: insert proper C++ library support
  13581. ld_shlibs_CXX=no
  13582. ;;
  13583. esac
  13584. ;;
  13585. solaris*)
  13586. case $cc_basename in
  13587. CC* | sunCC*)
  13588. # Sun C++ 4.2, 5.x and Centerline C++
  13589. archive_cmds_need_lc_CXX=yes
  13590. no_undefined_flag_CXX=' -zdefs'
  13591. archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  13592. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13593. $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'
  13594. hardcode_libdir_flag_spec_CXX='-R$libdir'
  13595. hardcode_shlibpath_var_CXX=no
  13596. case $host_os in
  13597. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13598. *)
  13599. # The compiler driver will combine and reorder linker options,
  13600. # but understands '-z linker_flag'.
  13601. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13602. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  13603. ;;
  13604. esac
  13605. link_all_deplibs_CXX=yes
  13606. output_verbose_link_cmd='func_echo_all'
  13607. # Archives containing C++ object files must be created using
  13608. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  13609. # necessary to make sure instantiated templates are included
  13610. # in the archive.
  13611. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  13612. ;;
  13613. gcx*)
  13614. # Green Hills C++ Compiler
  13615. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13616. # The C++ compiler must be used to create the archive.
  13617. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  13618. ;;
  13619. *)
  13620. # GNU C++ compiler with Solaris linker
  13621. if test yes,no = "$GXX,$with_gnu_ld"; then
  13622. no_undefined_flag_CXX=' $wl-z ${wl}defs'
  13623. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  13624. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13625. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13626. $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'
  13627. # Commands to make compiler produce verbose output that lists
  13628. # what "hidden" libraries, object files and flags are used when
  13629. # linking a shared library.
  13630. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13631. else
  13632. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  13633. # platform.
  13634. archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  13635. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13636. $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'
  13637. # Commands to make compiler produce verbose output that lists
  13638. # what "hidden" libraries, object files and flags are used when
  13639. # linking a shared library.
  13640. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  13641. fi
  13642. hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  13643. case $host_os in
  13644. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13645. *)
  13646. whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  13647. ;;
  13648. esac
  13649. fi
  13650. ;;
  13651. esac
  13652. ;;
  13653. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13654. no_undefined_flag_CXX='$wl-z,text'
  13655. archive_cmds_need_lc_CXX=no
  13656. hardcode_shlibpath_var_CXX=no
  13657. runpath_var='LD_RUN_PATH'
  13658. case $cc_basename in
  13659. CC*)
  13660. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13661. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13662. ;;
  13663. *)
  13664. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13665. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13666. ;;
  13667. esac
  13668. ;;
  13669. sysv5* | sco3.2v5* | sco5v6*)
  13670. # Note: We CANNOT use -z defs as we might desire, because we do not
  13671. # link with -lc, and that would cause any symbols used from libc to
  13672. # always be unresolved, which means just about no library would
  13673. # ever link correctly. If we're not using GNU ld we use -z text
  13674. # though, which does catch some bad symbols but isn't as heavy-handed
  13675. # as -z defs.
  13676. no_undefined_flag_CXX='$wl-z,text'
  13677. allow_undefined_flag_CXX='$wl-z,nodefs'
  13678. archive_cmds_need_lc_CXX=no
  13679. hardcode_shlibpath_var_CXX=no
  13680. hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  13681. hardcode_libdir_separator_CXX=':'
  13682. link_all_deplibs_CXX=yes
  13683. export_dynamic_flag_spec_CXX='$wl-Bexport'
  13684. runpath_var='LD_RUN_PATH'
  13685. case $cc_basename in
  13686. CC*)
  13687. archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13688. archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13689. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  13690. '"$old_archive_cmds_CXX"
  13691. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  13692. '"$reload_cmds_CXX"
  13693. ;;
  13694. *)
  13695. archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13696. archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13697. ;;
  13698. esac
  13699. ;;
  13700. tandem*)
  13701. case $cc_basename in
  13702. NCC*)
  13703. # NonStop-UX NCC 3.20
  13704. # FIXME: insert proper C++ library support
  13705. ld_shlibs_CXX=no
  13706. ;;
  13707. *)
  13708. # FIXME: insert proper C++ library support
  13709. ld_shlibs_CXX=no
  13710. ;;
  13711. esac
  13712. ;;
  13713. vxworks*)
  13714. # FIXME: insert proper C++ library support
  13715. ld_shlibs_CXX=no
  13716. ;;
  13717. *)
  13718. # FIXME: insert proper C++ library support
  13719. ld_shlibs_CXX=no
  13720. ;;
  13721. esac
  13722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13723. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  13724. test no = "$ld_shlibs_CXX" && can_build_shared=no
  13725. GCC_CXX=$GXX
  13726. LD_CXX=$LD
  13727. ## CAVEAT EMPTOR:
  13728. ## There is no encapsulation within the following macros, do not change
  13729. ## the running order or otherwise move them around unless you know exactly
  13730. ## what you are doing...
  13731. # Dependencies to place before and after the object being linked:
  13732. predep_objects_CXX=
  13733. postdep_objects_CXX=
  13734. predeps_CXX=
  13735. postdeps_CXX=
  13736. compiler_lib_search_path_CXX=
  13737. cat > conftest.$ac_ext <<_LT_EOF
  13738. class Foo
  13739. {
  13740. public:
  13741. Foo (void) { a = 0; }
  13742. private:
  13743. int a;
  13744. };
  13745. _LT_EOF
  13746. _lt_libdeps_save_CFLAGS=$CFLAGS
  13747. case "$CC $CFLAGS " in #(
  13748. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  13749. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  13750. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  13751. esac
  13752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13753. (eval $ac_compile) 2>&5
  13754. ac_status=$?
  13755. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13756. test $ac_status = 0; }; then
  13757. # Parse the compiler output and extract the necessary
  13758. # objects, libraries and library flags.
  13759. # Sentinel used to keep track of whether or not we are before
  13760. # the conftest object file.
  13761. pre_test_object_deps_done=no
  13762. for p in `eval "$output_verbose_link_cmd"`; do
  13763. case $prev$p in
  13764. -L* | -R* | -l*)
  13765. # Some compilers place space between "-{L,R}" and the path.
  13766. # Remove the space.
  13767. if test x-L = "x$p" ||
  13768. test x-R = "x$p" ||
  13769. test x-l = "x$p"; then
  13770. prev=$p
  13771. continue
  13772. fi
  13773. # Expand the sysroot to ease extracting the directories later.
  13774. if test -z "$prev"; then
  13775. case $p in
  13776. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  13777. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  13778. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  13779. esac
  13780. fi
  13781. case $p in
  13782. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  13783. esac
  13784. if test no = "$pre_test_object_deps_done"; then
  13785. case $prev in
  13786. -L | -R)
  13787. # Internal compiler library paths should come after those
  13788. # provided the user. The postdeps already come after the
  13789. # user supplied libs so there is no need to process them.
  13790. if test -z "$compiler_lib_search_path_CXX"; then
  13791. compiler_lib_search_path_CXX=$prev$p
  13792. else
  13793. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  13794. fi
  13795. ;;
  13796. # The "-l" case would never come before the object being
  13797. # linked, so don't bother handling this case.
  13798. esac
  13799. else
  13800. if test -z "$postdeps_CXX"; then
  13801. postdeps_CXX=$prev$p
  13802. else
  13803. postdeps_CXX="${postdeps_CXX} $prev$p"
  13804. fi
  13805. fi
  13806. prev=
  13807. ;;
  13808. *.lto.$objext) ;; # Ignore GCC LTO objects
  13809. *.$objext)
  13810. # This assumes that the test object file only shows up
  13811. # once in the compiler output.
  13812. if test "$p" = "conftest.$objext"; then
  13813. pre_test_object_deps_done=yes
  13814. continue
  13815. fi
  13816. if test no = "$pre_test_object_deps_done"; then
  13817. if test -z "$predep_objects_CXX"; then
  13818. predep_objects_CXX=$p
  13819. else
  13820. predep_objects_CXX="$predep_objects_CXX $p"
  13821. fi
  13822. else
  13823. if test -z "$postdep_objects_CXX"; then
  13824. postdep_objects_CXX=$p
  13825. else
  13826. postdep_objects_CXX="$postdep_objects_CXX $p"
  13827. fi
  13828. fi
  13829. ;;
  13830. *) ;; # Ignore the rest.
  13831. esac
  13832. done
  13833. # Clean up.
  13834. rm -f a.out a.exe
  13835. else
  13836. echo "libtool.m4: error: problem compiling CXX test program"
  13837. fi
  13838. $RM -f confest.$objext
  13839. CFLAGS=$_lt_libdeps_save_CFLAGS
  13840. # PORTME: override above test on systems where it is broken
  13841. case $host_os in
  13842. interix[3-9]*)
  13843. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  13844. # hack all around it, let's just trust "g++" to DTRT.
  13845. predep_objects_CXX=
  13846. postdep_objects_CXX=
  13847. postdeps_CXX=
  13848. ;;
  13849. esac
  13850. case " $postdeps_CXX " in
  13851. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  13852. esac
  13853. compiler_lib_search_dirs_CXX=
  13854. if test -n "${compiler_lib_search_path_CXX}"; then
  13855. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  13856. fi
  13857. lt_prog_compiler_wl_CXX=
  13858. lt_prog_compiler_pic_CXX=
  13859. lt_prog_compiler_static_CXX=
  13860. # C++ specific cases for pic, static, wl, etc.
  13861. if test yes = "$GXX"; then
  13862. lt_prog_compiler_wl_CXX='-Wl,'
  13863. lt_prog_compiler_static_CXX='-static'
  13864. case $host_os in
  13865. aix*)
  13866. # All AIX code is PIC.
  13867. if test ia64 = "$host_cpu"; then
  13868. # AIX 5 now supports IA64 processor
  13869. lt_prog_compiler_static_CXX='-Bstatic'
  13870. fi
  13871. lt_prog_compiler_pic_CXX='-fPIC'
  13872. ;;
  13873. amigaos*)
  13874. case $host_cpu in
  13875. powerpc)
  13876. # see comment about AmigaOS4 .so support
  13877. lt_prog_compiler_pic_CXX='-fPIC'
  13878. ;;
  13879. m68k)
  13880. # FIXME: we need at least 68020 code to build shared libraries, but
  13881. # adding the '-m68020' flag to GCC prevents building anything better,
  13882. # like '-m68040'.
  13883. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  13884. ;;
  13885. esac
  13886. ;;
  13887. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13888. # PIC is the default for these OSes.
  13889. ;;
  13890. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13891. # This hack is so that the source file can tell whether it is being
  13892. # built for inclusion in a dll (and should export symbols for example).
  13893. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13894. # (--disable-auto-import) libraries
  13895. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13896. case $host_os in
  13897. os2*)
  13898. lt_prog_compiler_static_CXX='$wl-static'
  13899. ;;
  13900. esac
  13901. ;;
  13902. darwin* | rhapsody*)
  13903. # PIC is the default on this platform
  13904. # Common symbols not allowed in MH_DYLIB files
  13905. lt_prog_compiler_pic_CXX='-fno-common'
  13906. ;;
  13907. *djgpp*)
  13908. # DJGPP does not support shared libraries at all
  13909. lt_prog_compiler_pic_CXX=
  13910. ;;
  13911. haiku*)
  13912. # PIC is the default for Haiku.
  13913. # The "-static" flag exists, but is broken.
  13914. lt_prog_compiler_static_CXX=
  13915. ;;
  13916. interix[3-9]*)
  13917. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13918. # Instead, we relocate shared libraries at runtime.
  13919. ;;
  13920. sysv4*MP*)
  13921. if test -d /usr/nec; then
  13922. lt_prog_compiler_pic_CXX=-Kconform_pic
  13923. fi
  13924. ;;
  13925. hpux*)
  13926. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  13927. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  13928. # sets the default TLS model and affects inlining.
  13929. case $host_cpu in
  13930. hppa*64*)
  13931. ;;
  13932. *)
  13933. lt_prog_compiler_pic_CXX='-fPIC'
  13934. ;;
  13935. esac
  13936. ;;
  13937. *qnx* | *nto*)
  13938. # QNX uses GNU C++, but need to define -shared option too, otherwise
  13939. # it will coredump.
  13940. lt_prog_compiler_pic_CXX='-fPIC -shared'
  13941. ;;
  13942. *)
  13943. lt_prog_compiler_pic_CXX='-fPIC'
  13944. ;;
  13945. esac
  13946. else
  13947. case $host_os in
  13948. aix[4-9]*)
  13949. # All AIX code is PIC.
  13950. if test ia64 = "$host_cpu"; then
  13951. # AIX 5 now supports IA64 processor
  13952. lt_prog_compiler_static_CXX='-Bstatic'
  13953. else
  13954. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  13955. fi
  13956. ;;
  13957. chorus*)
  13958. case $cc_basename in
  13959. cxch68*)
  13960. # Green Hills C++ Compiler
  13961. # _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"
  13962. ;;
  13963. esac
  13964. ;;
  13965. mingw* | cygwin* | os2* | pw32* | cegcc*)
  13966. # This hack is so that the source file can tell whether it is being
  13967. # built for inclusion in a dll (and should export symbols for example).
  13968. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  13969. ;;
  13970. dgux*)
  13971. case $cc_basename in
  13972. ec++*)
  13973. lt_prog_compiler_pic_CXX='-KPIC'
  13974. ;;
  13975. ghcx*)
  13976. # Green Hills C++ Compiler
  13977. lt_prog_compiler_pic_CXX='-pic'
  13978. ;;
  13979. *)
  13980. ;;
  13981. esac
  13982. ;;
  13983. freebsd* | dragonfly* | midnightbsd*)
  13984. # FreeBSD uses GNU C++
  13985. ;;
  13986. hpux9* | hpux10* | hpux11*)
  13987. case $cc_basename in
  13988. CC*)
  13989. lt_prog_compiler_wl_CXX='-Wl,'
  13990. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13991. if test ia64 != "$host_cpu"; then
  13992. lt_prog_compiler_pic_CXX='+Z'
  13993. fi
  13994. ;;
  13995. aCC*)
  13996. lt_prog_compiler_wl_CXX='-Wl,'
  13997. lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  13998. case $host_cpu in
  13999. hppa*64*|ia64*)
  14000. # +Z the default
  14001. ;;
  14002. *)
  14003. lt_prog_compiler_pic_CXX='+Z'
  14004. ;;
  14005. esac
  14006. ;;
  14007. *)
  14008. ;;
  14009. esac
  14010. ;;
  14011. interix*)
  14012. # This is c89, which is MS Visual C++ (no shared libs)
  14013. # Anyone wants to do a port?
  14014. ;;
  14015. irix5* | irix6* | nonstopux*)
  14016. case $cc_basename in
  14017. CC*)
  14018. lt_prog_compiler_wl_CXX='-Wl,'
  14019. lt_prog_compiler_static_CXX='-non_shared'
  14020. # CC pic flag -KPIC is the default.
  14021. ;;
  14022. *)
  14023. ;;
  14024. esac
  14025. ;;
  14026. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14027. case $cc_basename in
  14028. KCC*)
  14029. # KAI C++ Compiler
  14030. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14031. lt_prog_compiler_pic_CXX='-fPIC'
  14032. ;;
  14033. ecpc* )
  14034. # old Intel C++ for x86_64, which still supported -KPIC.
  14035. lt_prog_compiler_wl_CXX='-Wl,'
  14036. lt_prog_compiler_pic_CXX='-KPIC'
  14037. lt_prog_compiler_static_CXX='-static'
  14038. ;;
  14039. icpc* )
  14040. # Intel C++, used to be incompatible with GCC.
  14041. # ICC 10 doesn't accept -KPIC any more.
  14042. lt_prog_compiler_wl_CXX='-Wl,'
  14043. lt_prog_compiler_pic_CXX='-fPIC'
  14044. lt_prog_compiler_static_CXX='-static'
  14045. ;;
  14046. pgCC* | pgcpp*)
  14047. # Portland Group C++ compiler
  14048. lt_prog_compiler_wl_CXX='-Wl,'
  14049. lt_prog_compiler_pic_CXX='-fpic'
  14050. lt_prog_compiler_static_CXX='-Bstatic'
  14051. ;;
  14052. cxx*)
  14053. # Compaq C++
  14054. # Make sure the PIC flag is empty. It appears that all Alpha
  14055. # Linux and Compaq Tru64 Unix objects are PIC.
  14056. lt_prog_compiler_pic_CXX=
  14057. lt_prog_compiler_static_CXX='-non_shared'
  14058. ;;
  14059. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  14060. # IBM XL 8.0, 9.0 on PPC and BlueGene
  14061. lt_prog_compiler_wl_CXX='-Wl,'
  14062. lt_prog_compiler_pic_CXX='-qpic'
  14063. lt_prog_compiler_static_CXX='-qstaticlink'
  14064. ;;
  14065. *)
  14066. case `$CC -V 2>&1 | sed 5q` in
  14067. *Sun\ C*)
  14068. # Sun C++ 5.9
  14069. lt_prog_compiler_pic_CXX='-KPIC'
  14070. lt_prog_compiler_static_CXX='-Bstatic'
  14071. lt_prog_compiler_wl_CXX='-Qoption ld '
  14072. ;;
  14073. esac
  14074. ;;
  14075. esac
  14076. ;;
  14077. lynxos*)
  14078. ;;
  14079. m88k*)
  14080. ;;
  14081. mvs*)
  14082. case $cc_basename in
  14083. cxx*)
  14084. lt_prog_compiler_pic_CXX='-W c,exportall'
  14085. ;;
  14086. *)
  14087. ;;
  14088. esac
  14089. ;;
  14090. netbsd*)
  14091. ;;
  14092. *qnx* | *nto*)
  14093. # QNX uses GNU C++, but need to define -shared option too, otherwise
  14094. # it will coredump.
  14095. lt_prog_compiler_pic_CXX='-fPIC -shared'
  14096. ;;
  14097. osf3* | osf4* | osf5*)
  14098. case $cc_basename in
  14099. KCC*)
  14100. lt_prog_compiler_wl_CXX='--backend -Wl,'
  14101. ;;
  14102. RCC*)
  14103. # Rational C++ 2.4.1
  14104. lt_prog_compiler_pic_CXX='-pic'
  14105. ;;
  14106. cxx*)
  14107. # Digital/Compaq C++
  14108. lt_prog_compiler_wl_CXX='-Wl,'
  14109. # Make sure the PIC flag is empty. It appears that all Alpha
  14110. # Linux and Compaq Tru64 Unix objects are PIC.
  14111. lt_prog_compiler_pic_CXX=
  14112. lt_prog_compiler_static_CXX='-non_shared'
  14113. ;;
  14114. *)
  14115. ;;
  14116. esac
  14117. ;;
  14118. psos*)
  14119. ;;
  14120. solaris*)
  14121. case $cc_basename in
  14122. CC* | sunCC*)
  14123. # Sun C++ 4.2, 5.x and Centerline C++
  14124. lt_prog_compiler_pic_CXX='-KPIC'
  14125. lt_prog_compiler_static_CXX='-Bstatic'
  14126. lt_prog_compiler_wl_CXX='-Qoption ld '
  14127. ;;
  14128. gcx*)
  14129. # Green Hills C++ Compiler
  14130. lt_prog_compiler_pic_CXX='-PIC'
  14131. ;;
  14132. *)
  14133. ;;
  14134. esac
  14135. ;;
  14136. sunos4*)
  14137. case $cc_basename in
  14138. CC*)
  14139. # Sun C++ 4.x
  14140. lt_prog_compiler_pic_CXX='-pic'
  14141. lt_prog_compiler_static_CXX='-Bstatic'
  14142. ;;
  14143. lcc*)
  14144. # Lucid
  14145. lt_prog_compiler_pic_CXX='-pic'
  14146. ;;
  14147. *)
  14148. ;;
  14149. esac
  14150. ;;
  14151. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14152. case $cc_basename in
  14153. CC*)
  14154. lt_prog_compiler_wl_CXX='-Wl,'
  14155. lt_prog_compiler_pic_CXX='-KPIC'
  14156. lt_prog_compiler_static_CXX='-Bstatic'
  14157. ;;
  14158. esac
  14159. ;;
  14160. tandem*)
  14161. case $cc_basename in
  14162. NCC*)
  14163. # NonStop-UX NCC 3.20
  14164. lt_prog_compiler_pic_CXX='-KPIC'
  14165. ;;
  14166. *)
  14167. ;;
  14168. esac
  14169. ;;
  14170. vxworks*)
  14171. ;;
  14172. *)
  14173. lt_prog_compiler_can_build_shared_CXX=no
  14174. ;;
  14175. esac
  14176. fi
  14177. case $host_os in
  14178. # For platforms that do not support PIC, -DPIC is meaningless:
  14179. *djgpp*)
  14180. lt_prog_compiler_pic_CXX=
  14181. ;;
  14182. *)
  14183. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  14184. ;;
  14185. esac
  14186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  14187. printf %s "checking for $compiler option to produce PIC... " >&6; }
  14188. if test ${lt_cv_prog_compiler_pic_CXX+y}
  14189. then :
  14190. printf %s "(cached) " >&6
  14191. else $as_nop
  14192. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  14193. fi
  14194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  14195. printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
  14196. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  14197. #
  14198. # Check to make sure the PIC flag actually works.
  14199. #
  14200. if test -n "$lt_prog_compiler_pic_CXX"; then
  14201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  14202. printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  14203. if test ${lt_cv_prog_compiler_pic_works_CXX+y}
  14204. then :
  14205. printf %s "(cached) " >&6
  14206. else $as_nop
  14207. lt_cv_prog_compiler_pic_works_CXX=no
  14208. ac_outfile=conftest.$ac_objext
  14209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14210. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
  14211. # Insert the option either (1) after the last *FLAGS variable, or
  14212. # (2) before a word containing "conftest.", or (3) at the end.
  14213. # Note that $ac_compile itself does not contain backslashes and begins
  14214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14215. # The option is referenced via a variable to avoid confusing sed.
  14216. lt_compile=`echo "$ac_compile" | $SED \
  14217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14219. -e 's:$: $lt_compiler_flag:'`
  14220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14221. (eval "$lt_compile" 2>conftest.err)
  14222. ac_status=$?
  14223. cat conftest.err >&5
  14224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14225. if (exit $ac_status) && test -s "$ac_outfile"; then
  14226. # The compiler can only warn and ignore the option if not recognized
  14227. # So say no if there are warnings other than the usual output.
  14228. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  14229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14231. lt_cv_prog_compiler_pic_works_CXX=yes
  14232. fi
  14233. fi
  14234. $RM conftest*
  14235. fi
  14236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  14237. printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  14238. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  14239. case $lt_prog_compiler_pic_CXX in
  14240. "" | " "*) ;;
  14241. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  14242. esac
  14243. else
  14244. lt_prog_compiler_pic_CXX=
  14245. lt_prog_compiler_can_build_shared_CXX=no
  14246. fi
  14247. fi
  14248. #
  14249. # Check to make sure the static flag actually works.
  14250. #
  14251. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  14252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14253. printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  14254. if test ${lt_cv_prog_compiler_static_works_CXX+y}
  14255. then :
  14256. printf %s "(cached) " >&6
  14257. else $as_nop
  14258. lt_cv_prog_compiler_static_works_CXX=no
  14259. save_LDFLAGS=$LDFLAGS
  14260. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14261. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  14262. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14263. # The linker can only warn and ignore the option if not recognized
  14264. # So say no if there are warnings
  14265. if test -s conftest.err; then
  14266. # Append any errors to the config.log.
  14267. cat conftest.err 1>&5
  14268. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  14269. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14270. if diff conftest.exp conftest.er2 >/dev/null; then
  14271. lt_cv_prog_compiler_static_works_CXX=yes
  14272. fi
  14273. else
  14274. lt_cv_prog_compiler_static_works_CXX=yes
  14275. fi
  14276. fi
  14277. $RM -r conftest*
  14278. LDFLAGS=$save_LDFLAGS
  14279. fi
  14280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  14281. printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  14282. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  14283. :
  14284. else
  14285. lt_prog_compiler_static_CXX=
  14286. fi
  14287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14288. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14289. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14290. then :
  14291. printf %s "(cached) " >&6
  14292. else $as_nop
  14293. lt_cv_prog_compiler_c_o_CXX=no
  14294. $RM -r conftest 2>/dev/null
  14295. mkdir conftest
  14296. cd conftest
  14297. mkdir out
  14298. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14299. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14300. # Insert the option either (1) after the last *FLAGS variable, or
  14301. # (2) before a word containing "conftest.", or (3) at the end.
  14302. # Note that $ac_compile itself does not contain backslashes and begins
  14303. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14304. lt_compile=`echo "$ac_compile" | $SED \
  14305. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14306. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14307. -e 's:$: $lt_compiler_flag:'`
  14308. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14309. (eval "$lt_compile" 2>out/conftest.err)
  14310. ac_status=$?
  14311. cat out/conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14314. then
  14315. # The compiler can only warn and ignore the option if not recognized
  14316. # So say no if there are warnings
  14317. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14318. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14319. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14320. lt_cv_prog_compiler_c_o_CXX=yes
  14321. fi
  14322. fi
  14323. chmod u+w . 2>&5
  14324. $RM conftest*
  14325. # SGI C++ compiler will create directory out/ii_files/ for
  14326. # template instantiation
  14327. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14328. $RM out/* && rmdir out
  14329. cd ..
  14330. $RM -r conftest
  14331. $RM conftest*
  14332. fi
  14333. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14334. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  14336. printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  14337. if test ${lt_cv_prog_compiler_c_o_CXX+y}
  14338. then :
  14339. printf %s "(cached) " >&6
  14340. else $as_nop
  14341. lt_cv_prog_compiler_c_o_CXX=no
  14342. $RM -r conftest 2>/dev/null
  14343. mkdir conftest
  14344. cd conftest
  14345. mkdir out
  14346. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14347. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14348. # Insert the option either (1) after the last *FLAGS variable, or
  14349. # (2) before a word containing "conftest.", or (3) at the end.
  14350. # Note that $ac_compile itself does not contain backslashes and begins
  14351. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14352. lt_compile=`echo "$ac_compile" | $SED \
  14353. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14354. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14355. -e 's:$: $lt_compiler_flag:'`
  14356. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  14357. (eval "$lt_compile" 2>out/conftest.err)
  14358. ac_status=$?
  14359. cat out/conftest.err >&5
  14360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14361. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14362. then
  14363. # The compiler can only warn and ignore the option if not recognized
  14364. # So say no if there are warnings
  14365. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  14366. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14367. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14368. lt_cv_prog_compiler_c_o_CXX=yes
  14369. fi
  14370. fi
  14371. chmod u+w . 2>&5
  14372. $RM conftest*
  14373. # SGI C++ compiler will create directory out/ii_files/ for
  14374. # template instantiation
  14375. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  14376. $RM out/* && rmdir out
  14377. cd ..
  14378. $RM -r conftest
  14379. $RM conftest*
  14380. fi
  14381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  14382. printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  14383. hard_links=nottested
  14384. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  14385. # do not overwrite the value of need_locks provided by the user
  14386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  14387. printf %s "checking if we can lock with hard links... " >&6; }
  14388. hard_links=yes
  14389. $RM conftest*
  14390. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14391. touch conftest.a
  14392. ln conftest.a conftest.b 2>&5 || hard_links=no
  14393. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  14395. printf "%s\n" "$hard_links" >&6; }
  14396. if test no = "$hard_links"; then
  14397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  14398. printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  14399. need_locks=warn
  14400. fi
  14401. else
  14402. need_locks=no
  14403. fi
  14404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14405. printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  14406. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14407. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  14408. case $host_os in
  14409. aix[4-9]*)
  14410. # If we're using GNU nm, then we don't want the "-C" option.
  14411. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  14412. # Without the "-l" option, or with the "-B" option, AIX nm treats
  14413. # weak defined symbols like other global defined symbols, whereas
  14414. # GNU nm marks them as "W".
  14415. # While the 'weak' keyword is ignored in the Export File, we need
  14416. # it in the Import File for the 'aix-soname' feature, so we have
  14417. # to replace the "-B" option with "-P" for AIX nm.
  14418. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  14419. 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'
  14420. else
  14421. 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'
  14422. fi
  14423. ;;
  14424. pw32*)
  14425. export_symbols_cmds_CXX=$ltdll_cmds
  14426. ;;
  14427. cygwin* | mingw* | cegcc*)
  14428. case $cc_basename in
  14429. cl*)
  14430. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  14431. ;;
  14432. *)
  14433. 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'
  14434. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  14435. ;;
  14436. esac
  14437. ;;
  14438. *)
  14439. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14440. ;;
  14441. esac
  14442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  14443. printf "%s\n" "$ld_shlibs_CXX" >&6; }
  14444. test no = "$ld_shlibs_CXX" && can_build_shared=no
  14445. with_gnu_ld_CXX=$with_gnu_ld
  14446. #
  14447. # Do we need to explicitly link libc?
  14448. #
  14449. case "x$archive_cmds_need_lc_CXX" in
  14450. x|xyes)
  14451. # Assume -lc should be added
  14452. archive_cmds_need_lc_CXX=yes
  14453. if test yes,yes = "$GCC,$enable_shared"; then
  14454. case $archive_cmds_CXX in
  14455. *'~'*)
  14456. # FIXME: we may have to deal with multi-command sequences.
  14457. ;;
  14458. '$CC '*)
  14459. # Test whether the compiler implicitly links with -lc since on some
  14460. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14461. # to ld, don't add -lc before -lgcc.
  14462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14463. printf %s "checking whether -lc should be explicitly linked in... " >&6; }
  14464. if test ${lt_cv_archive_cmds_need_lc_CXX+y}
  14465. then :
  14466. printf %s "(cached) " >&6
  14467. else $as_nop
  14468. $RM conftest*
  14469. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14470. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14471. (eval $ac_compile) 2>&5
  14472. ac_status=$?
  14473. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14474. test $ac_status = 0; } 2>conftest.err; then
  14475. soname=conftest
  14476. lib=conftest
  14477. libobjs=conftest.$ac_objext
  14478. deplibs=
  14479. wl=$lt_prog_compiler_wl_CXX
  14480. pic_flag=$lt_prog_compiler_pic_CXX
  14481. compiler_flags=-v
  14482. linker_flags=-v
  14483. verstring=
  14484. output_objdir=.
  14485. libname=conftest
  14486. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  14487. allow_undefined_flag_CXX=
  14488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14489. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14490. ac_status=$?
  14491. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14492. test $ac_status = 0; }
  14493. then
  14494. lt_cv_archive_cmds_need_lc_CXX=no
  14495. else
  14496. lt_cv_archive_cmds_need_lc_CXX=yes
  14497. fi
  14498. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  14499. else
  14500. cat conftest.err 1>&5
  14501. fi
  14502. $RM conftest*
  14503. fi
  14504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  14505. printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  14506. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  14507. ;;
  14508. esac
  14509. fi
  14510. ;;
  14511. esac
  14512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14513. printf %s "checking dynamic linker characteristics... " >&6; }
  14514. library_names_spec=
  14515. libname_spec='lib$name'
  14516. soname_spec=
  14517. shrext_cmds=.so
  14518. postinstall_cmds=
  14519. postuninstall_cmds=
  14520. finish_cmds=
  14521. finish_eval=
  14522. shlibpath_var=
  14523. shlibpath_overrides_runpath=unknown
  14524. version_type=none
  14525. dynamic_linker="$host_os ld.so"
  14526. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14527. need_lib_prefix=unknown
  14528. hardcode_into_libs=no
  14529. # when you set need_version to no, make sure it does not cause -set_version
  14530. # flags to be left without arguments
  14531. need_version=unknown
  14532. case $host_os in
  14533. aix3*)
  14534. version_type=linux # correct to gnu/linux during the next big refactor
  14535. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  14536. shlibpath_var=LIBPATH
  14537. # AIX 3 has no versioning support, so we append a major version to the name.
  14538. soname_spec='$libname$release$shared_ext$major'
  14539. ;;
  14540. aix[4-9]*)
  14541. version_type=linux # correct to gnu/linux during the next big refactor
  14542. need_lib_prefix=no
  14543. need_version=no
  14544. hardcode_into_libs=yes
  14545. if test ia64 = "$host_cpu"; then
  14546. # AIX 5 supports IA64
  14547. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  14548. shlibpath_var=LD_LIBRARY_PATH
  14549. else
  14550. # With GCC up to 2.95.x, collect2 would create an import file
  14551. # for dependence libraries. The import file would start with
  14552. # the line '#! .'. This would cause the generated library to
  14553. # depend on '.', always an invalid library. This was fixed in
  14554. # development snapshots of GCC prior to 3.0.
  14555. case $host_os in
  14556. aix4 | aix4.[01] | aix4.[01].*)
  14557. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14558. echo ' yes '
  14559. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  14560. :
  14561. else
  14562. can_build_shared=no
  14563. fi
  14564. ;;
  14565. esac
  14566. # Using Import Files as archive members, it is possible to support
  14567. # filename-based versioning of shared library archives on AIX. While
  14568. # this would work for both with and without runtime linking, it will
  14569. # prevent static linking of such archives. So we do filename-based
  14570. # shared library versioning with .so extension only, which is used
  14571. # when both runtime linking and shared linking is enabled.
  14572. # Unfortunately, runtime linking may impact performance, so we do
  14573. # not want this to be the default eventually. Also, we use the
  14574. # versioned .so libs for executables only if there is the -brtl
  14575. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  14576. # To allow for filename-based versioning support, we need to create
  14577. # libNAME.so.V as an archive file, containing:
  14578. # *) an Import File, referring to the versioned filename of the
  14579. # archive as well as the shared archive member, telling the
  14580. # bitwidth (32 or 64) of that shared object, and providing the
  14581. # list of exported symbols of that shared object, eventually
  14582. # decorated with the 'weak' keyword
  14583. # *) the shared object with the F_LOADONLY flag set, to really avoid
  14584. # it being seen by the linker.
  14585. # At run time we better use the real file rather than another symlink,
  14586. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  14587. case $with_aix_soname,$aix_use_runtimelinking in
  14588. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  14589. # soname into executable. Probably we can add versioning support to
  14590. # collect2, so additional links can be useful in future.
  14591. aix,yes) # traditional libtool
  14592. dynamic_linker='AIX unversionable lib.so'
  14593. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14594. # instead of lib<name>.a to let people know that these are not
  14595. # typical AIX shared libraries.
  14596. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14597. ;;
  14598. aix,no) # traditional AIX only
  14599. dynamic_linker='AIX lib.a(lib.so.V)'
  14600. # We preserve .a as extension for shared libraries through AIX4.2
  14601. # and later when we are not doing run time linking.
  14602. library_names_spec='$libname$release.a $libname.a'
  14603. soname_spec='$libname$release$shared_ext$major'
  14604. ;;
  14605. svr4,*) # full svr4 only
  14606. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  14607. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14608. # We do not specify a path in Import Files, so LIBPATH fires.
  14609. shlibpath_overrides_runpath=yes
  14610. ;;
  14611. *,yes) # both, prefer svr4
  14612. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  14613. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  14614. # unpreferred sharedlib libNAME.a needs extra handling
  14615. 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"'
  14616. 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"'
  14617. # We do not specify a path in Import Files, so LIBPATH fires.
  14618. shlibpath_overrides_runpath=yes
  14619. ;;
  14620. *,no) # both, prefer aix
  14621. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  14622. library_names_spec='$libname$release.a $libname.a'
  14623. soname_spec='$libname$release$shared_ext$major'
  14624. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  14625. 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)'
  14626. 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"'
  14627. ;;
  14628. esac
  14629. shlibpath_var=LIBPATH
  14630. fi
  14631. ;;
  14632. amigaos*)
  14633. case $host_cpu in
  14634. powerpc)
  14635. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14636. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14637. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14638. ;;
  14639. m68k)
  14640. library_names_spec='$libname.ixlibrary $libname.a'
  14641. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14642. 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'
  14643. ;;
  14644. esac
  14645. ;;
  14646. beos*)
  14647. library_names_spec='$libname$shared_ext'
  14648. dynamic_linker="$host_os ld.so"
  14649. shlibpath_var=LIBRARY_PATH
  14650. ;;
  14651. bsdi[45]*)
  14652. version_type=linux # correct to gnu/linux during the next big refactor
  14653. need_version=no
  14654. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14655. soname_spec='$libname$release$shared_ext$major'
  14656. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14657. shlibpath_var=LD_LIBRARY_PATH
  14658. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14659. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14660. # the default ld.so.conf also contains /usr/contrib/lib and
  14661. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14662. # libtool to hard-code these into programs
  14663. ;;
  14664. cygwin* | mingw* | pw32* | cegcc*)
  14665. version_type=windows
  14666. shrext_cmds=.dll
  14667. need_version=no
  14668. need_lib_prefix=no
  14669. case $GCC,$cc_basename in
  14670. yes,*)
  14671. # gcc
  14672. library_names_spec='$libname.dll.a'
  14673. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14674. postinstall_cmds='base_file=`basename \$file`~
  14675. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14676. dldir=$destdir/`dirname \$dlpath`~
  14677. test -d \$dldir || mkdir -p \$dldir~
  14678. $install_prog $dir/$dlname \$dldir/$dlname~
  14679. chmod a+x \$dldir/$dlname~
  14680. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14681. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14682. fi'
  14683. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14684. dlpath=$dir/\$dldll~
  14685. $RM \$dlpath'
  14686. shlibpath_overrides_runpath=yes
  14687. case $host_os in
  14688. cygwin*)
  14689. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14690. #soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14691. soname_spec='`echo $libname | sed -e 's/^lib//'`$shared_ext' # SDL customization
  14692. ;;
  14693. mingw* | cegcc*)
  14694. # MinGW DLLs use traditional 'lib' prefix
  14695. #soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  14696. soname_spec='`echo $libname | $SED -e 's/^lib//'`$shared_ext' # SDL customization
  14697. ;;
  14698. pw32*)
  14699. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14700. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14701. ;;
  14702. esac
  14703. dynamic_linker='Win32 ld.exe'
  14704. ;;
  14705. *,cl*)
  14706. # Native MSVC
  14707. libname_spec='$name'
  14708. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  14709. library_names_spec='$libname.dll.lib'
  14710. case $build_os in
  14711. mingw*)
  14712. sys_lib_search_path_spec=
  14713. lt_save_ifs=$IFS
  14714. IFS=';'
  14715. for lt_path in $LIB
  14716. do
  14717. IFS=$lt_save_ifs
  14718. # Let DOS variable expansion print the short 8.3 style file name.
  14719. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14720. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14721. done
  14722. IFS=$lt_save_ifs
  14723. # Convert to MSYS style.
  14724. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14725. ;;
  14726. cygwin*)
  14727. # Convert to unix form, then to dos form, then back to unix form
  14728. # but this time dos style (no spaces!) so that the unix form looks
  14729. # like /cygdrive/c/PROGRA~1:/cygdr...
  14730. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14731. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14732. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14733. ;;
  14734. *)
  14735. sys_lib_search_path_spec=$LIB
  14736. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14737. # It is most probably a Windows format PATH.
  14738. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14739. else
  14740. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14741. fi
  14742. # FIXME: find the short name or the path components, as spaces are
  14743. # common. (e.g. "Program Files" -> "PROGRA~1")
  14744. ;;
  14745. esac
  14746. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14747. postinstall_cmds='base_file=`basename \$file`~
  14748. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  14749. dldir=$destdir/`dirname \$dlpath`~
  14750. test -d \$dldir || mkdir -p \$dldir~
  14751. $install_prog $dir/$dlname \$dldir/$dlname'
  14752. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14753. dlpath=$dir/\$dldll~
  14754. $RM \$dlpath'
  14755. shlibpath_overrides_runpath=yes
  14756. dynamic_linker='Win32 link.exe'
  14757. ;;
  14758. *)
  14759. # Assume MSVC wrapper
  14760. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  14761. dynamic_linker='Win32 ld.exe'
  14762. ;;
  14763. esac
  14764. # FIXME: first we should search . and the directory the executable is in
  14765. shlibpath_var=PATH
  14766. ;;
  14767. darwin* | rhapsody*)
  14768. dynamic_linker="$host_os dyld"
  14769. version_type=darwin
  14770. need_lib_prefix=no
  14771. need_version=no
  14772. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  14773. soname_spec='$libname$release$major$shared_ext'
  14774. shlibpath_overrides_runpath=yes
  14775. shlibpath_var=DYLD_LIBRARY_PATH
  14776. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14777. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14778. ;;
  14779. dgux*)
  14780. version_type=linux # correct to gnu/linux during the next big refactor
  14781. need_lib_prefix=no
  14782. need_version=no
  14783. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14784. soname_spec='$libname$release$shared_ext$major'
  14785. shlibpath_var=LD_LIBRARY_PATH
  14786. ;;
  14787. freebsd* | dragonfly* | midnightbsd*)
  14788. # DragonFly does not have aout. When/if they implement a new
  14789. # versioning mechanism, adjust this.
  14790. if test -x /usr/bin/objformat; then
  14791. objformat=`/usr/bin/objformat`
  14792. else
  14793. case $host_os in
  14794. freebsd[23].*) objformat=aout ;;
  14795. *) objformat=elf ;;
  14796. esac
  14797. fi
  14798. version_type=freebsd-$objformat
  14799. case $version_type in
  14800. freebsd-elf*)
  14801. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14802. soname_spec='$libname$release$shared_ext$major'
  14803. need_version=no
  14804. need_lib_prefix=no
  14805. ;;
  14806. freebsd-*)
  14807. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  14808. need_version=yes
  14809. ;;
  14810. esac
  14811. shlibpath_var=LD_LIBRARY_PATH
  14812. case $host_os in
  14813. freebsd2.*)
  14814. shlibpath_overrides_runpath=yes
  14815. ;;
  14816. freebsd3.[01]* | freebsdelf3.[01]*)
  14817. shlibpath_overrides_runpath=yes
  14818. hardcode_into_libs=yes
  14819. ;;
  14820. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14821. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14822. shlibpath_overrides_runpath=no
  14823. hardcode_into_libs=yes
  14824. ;;
  14825. *) # from 4.6 on, and DragonFly
  14826. shlibpath_overrides_runpath=yes
  14827. hardcode_into_libs=yes
  14828. ;;
  14829. esac
  14830. ;;
  14831. haiku*)
  14832. version_type=linux # correct to gnu/linux during the next big refactor
  14833. need_lib_prefix=no
  14834. need_version=no
  14835. dynamic_linker="$host_os runtime_loader"
  14836. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14837. soname_spec='$libname$release$shared_ext$major'
  14838. shlibpath_var=LIBRARY_PATH
  14839. shlibpath_overrides_runpath=no
  14840. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14841. hardcode_into_libs=yes
  14842. ;;
  14843. hpux9* | hpux10* | hpux11*)
  14844. # Give a soname corresponding to the major version so that dld.sl refuses to
  14845. # link against other versions.
  14846. version_type=sunos
  14847. need_lib_prefix=no
  14848. need_version=no
  14849. case $host_cpu in
  14850. ia64*)
  14851. shrext_cmds='.so'
  14852. hardcode_into_libs=yes
  14853. dynamic_linker="$host_os dld.so"
  14854. shlibpath_var=LD_LIBRARY_PATH
  14855. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14856. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14857. soname_spec='$libname$release$shared_ext$major'
  14858. if test 32 = "$HPUX_IA64_MODE"; then
  14859. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14860. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  14861. else
  14862. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14863. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  14864. fi
  14865. ;;
  14866. hppa*64*)
  14867. shrext_cmds='.sl'
  14868. hardcode_into_libs=yes
  14869. dynamic_linker="$host_os dld.sl"
  14870. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14871. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14872. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14873. soname_spec='$libname$release$shared_ext$major'
  14874. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14875. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14876. ;;
  14877. *)
  14878. shrext_cmds='.sl'
  14879. dynamic_linker="$host_os dld.sl"
  14880. shlibpath_var=SHLIB_PATH
  14881. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14882. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14883. soname_spec='$libname$release$shared_ext$major'
  14884. ;;
  14885. esac
  14886. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14887. postinstall_cmds='chmod 555 $lib'
  14888. # or fails outright, so override atomically:
  14889. install_override_mode=555
  14890. ;;
  14891. interix[3-9]*)
  14892. version_type=linux # correct to gnu/linux during the next big refactor
  14893. need_lib_prefix=no
  14894. need_version=no
  14895. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14896. soname_spec='$libname$release$shared_ext$major'
  14897. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14898. shlibpath_var=LD_LIBRARY_PATH
  14899. shlibpath_overrides_runpath=no
  14900. hardcode_into_libs=yes
  14901. ;;
  14902. irix5* | irix6* | nonstopux*)
  14903. case $host_os in
  14904. nonstopux*) version_type=nonstopux ;;
  14905. *)
  14906. if test yes = "$lt_cv_prog_gnu_ld"; then
  14907. version_type=linux # correct to gnu/linux during the next big refactor
  14908. else
  14909. version_type=irix
  14910. fi ;;
  14911. esac
  14912. need_lib_prefix=no
  14913. need_version=no
  14914. soname_spec='$libname$release$shared_ext$major'
  14915. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  14916. case $host_os in
  14917. irix5* | nonstopux*)
  14918. libsuff= shlibsuff=
  14919. ;;
  14920. *)
  14921. case $LD in # libtool.m4 will add one of these switches to LD
  14922. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14923. libsuff= shlibsuff= libmagic=32-bit;;
  14924. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14925. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14926. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14927. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14928. *) libsuff= shlibsuff= libmagic=never-match;;
  14929. esac
  14930. ;;
  14931. esac
  14932. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14933. shlibpath_overrides_runpath=no
  14934. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  14935. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  14936. hardcode_into_libs=yes
  14937. ;;
  14938. # No shared lib support for Linux oldld, aout, or coff.
  14939. linux*oldld* | linux*aout* | linux*coff*)
  14940. dynamic_linker=no
  14941. ;;
  14942. linux*android*)
  14943. version_type=none # Android doesn't support versioned libraries.
  14944. need_lib_prefix=no
  14945. need_version=no
  14946. library_names_spec='$libname$release$shared_ext'
  14947. soname_spec='$libname$release$shared_ext'
  14948. finish_cmds=
  14949. shlibpath_var=LD_LIBRARY_PATH
  14950. shlibpath_overrides_runpath=yes
  14951. # This implies no fast_install, which is unacceptable.
  14952. # Some rework will be needed to allow for fast_install
  14953. # before this can be enabled.
  14954. hardcode_into_libs=yes
  14955. dynamic_linker='Android linker'
  14956. # Don't embed -rpath directories since the linker doesn't support them.
  14957. hardcode_libdir_flag_spec_CXX='-L$libdir'
  14958. ;;
  14959. # This must be glibc/ELF.
  14960. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14961. version_type=linux # correct to gnu/linux during the next big refactor
  14962. need_lib_prefix=no
  14963. need_version=no
  14964. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14965. soname_spec='$libname$release$shared_ext$major'
  14966. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14967. shlibpath_var=LD_LIBRARY_PATH
  14968. shlibpath_overrides_runpath=no
  14969. # Some binutils ld are patched to set DT_RUNPATH
  14970. if test ${lt_cv_shlibpath_overrides_runpath+y}
  14971. then :
  14972. printf %s "(cached) " >&6
  14973. else $as_nop
  14974. lt_cv_shlibpath_overrides_runpath=no
  14975. save_LDFLAGS=$LDFLAGS
  14976. save_libdir=$libdir
  14977. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  14978. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  14979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14980. /* end confdefs.h. */
  14981. int
  14982. main (void)
  14983. {
  14984. ;
  14985. return 0;
  14986. }
  14987. _ACEOF
  14988. if ac_fn_cxx_try_link "$LINENO"
  14989. then :
  14990. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
  14991. then :
  14992. lt_cv_shlibpath_overrides_runpath=yes
  14993. fi
  14994. fi
  14995. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14996. conftest$ac_exeext conftest.$ac_ext
  14997. LDFLAGS=$save_LDFLAGS
  14998. libdir=$save_libdir
  14999. fi
  15000. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  15001. # This implies no fast_install, which is unacceptable.
  15002. # Some rework will be needed to allow for fast_install
  15003. # before this can be enabled.
  15004. hardcode_into_libs=yes
  15005. # Add ABI-specific directories to the system library path.
  15006. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  15007. # Ideally, we could use ldconfig to report *all* directores which are
  15008. # searched for libraries, however this is still not possible. Aside from not
  15009. # being certain /sbin/ldconfig is available, command
  15010. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  15011. # even though it is searched at run-time. Try to do the best guess by
  15012. # appending ld.so.conf contents (and includes) to the search path.
  15013. if test -f /etc/ld.so.conf; then
  15014. 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' ' '`
  15015. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  15016. fi
  15017. # We used to test for /lib/ld.so.1 and disable shared libraries on
  15018. # powerpc, because MkLinux only supported shared libraries with the
  15019. # GNU dynamic linker. Since this was broken with cross compilers,
  15020. # most powerpc-linux boxes support dynamic linking these days and
  15021. # people can always --disable-shared, the test was removed, and we
  15022. # assume the GNU/Linux dynamic linker is in use.
  15023. dynamic_linker='GNU/Linux ld.so'
  15024. ;;
  15025. netbsd*)
  15026. version_type=sunos
  15027. need_lib_prefix=no
  15028. need_version=no
  15029. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  15030. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15031. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15032. dynamic_linker='NetBSD (a.out) ld.so'
  15033. else
  15034. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15035. soname_spec='$libname$release$shared_ext$major'
  15036. dynamic_linker='NetBSD ld.elf_so'
  15037. fi
  15038. shlibpath_var=LD_LIBRARY_PATH
  15039. shlibpath_overrides_runpath=yes
  15040. hardcode_into_libs=yes
  15041. ;;
  15042. newsos6)
  15043. version_type=linux # correct to gnu/linux during the next big refactor
  15044. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15045. shlibpath_var=LD_LIBRARY_PATH
  15046. shlibpath_overrides_runpath=yes
  15047. ;;
  15048. *nto* | *qnx*)
  15049. version_type=qnx
  15050. need_lib_prefix=no
  15051. need_version=no
  15052. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15053. soname_spec='$libname$release$shared_ext$major'
  15054. shlibpath_var=LD_LIBRARY_PATH
  15055. shlibpath_overrides_runpath=no
  15056. hardcode_into_libs=yes
  15057. dynamic_linker='ldqnx.so'
  15058. ;;
  15059. openbsd* | bitrig*)
  15060. version_type=sunos
  15061. sys_lib_dlsearch_path_spec=/usr/lib
  15062. need_lib_prefix=no
  15063. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  15064. need_version=no
  15065. else
  15066. need_version=yes
  15067. fi
  15068. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15069. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15070. shlibpath_var=LD_LIBRARY_PATH
  15071. shlibpath_overrides_runpath=yes
  15072. ;;
  15073. os2*)
  15074. libname_spec='$name'
  15075. shrext_cmds=.dll
  15076. need_lib_prefix=no
  15077. # OS/2 can only load a DLL with a base name of 8 characters or less.
  15078. # SDL customization: removed versioning support.
  15079. # version_type=windows
  15080. # need_version=no
  15081. # soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  15082. # v=$($ECHO $release$versuffix | tr -d .-);
  15083. # n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  15084. # $ECHO $n$v`$shared_ext'
  15085. soname_spec='`test -n "$os2dllname" && libname=$os2dllname; $ECHO $libname | cut -b -8 | tr . _`$shared_ext'
  15086. library_names_spec='${libname}_dll.$libext'
  15087. dynamic_linker='OS/2 ld.exe'
  15088. shlibpath_var=BEGINLIBPATH
  15089. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15090. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15091. postinstall_cmds='base_file=`basename \$file`~
  15092. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  15093. dldir=$destdir/`dirname \$dlpath`~
  15094. test -d \$dldir || mkdir -p \$dldir~
  15095. $install_prog $dir/$dlname \$dldir/$dlname~
  15096. chmod a+x \$dldir/$dlname~
  15097. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  15098. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  15099. fi'
  15100. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  15101. dlpath=$dir/\$dldll~
  15102. $RM \$dlpath'
  15103. ;;
  15104. osf3* | osf4* | osf5*)
  15105. version_type=osf
  15106. need_lib_prefix=no
  15107. need_version=no
  15108. soname_spec='$libname$release$shared_ext$major'
  15109. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15110. shlibpath_var=LD_LIBRARY_PATH
  15111. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15112. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15113. ;;
  15114. rdos*)
  15115. dynamic_linker=no
  15116. ;;
  15117. solaris*)
  15118. version_type=linux # correct to gnu/linux during the next big refactor
  15119. need_lib_prefix=no
  15120. need_version=no
  15121. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15122. soname_spec='$libname$release$shared_ext$major'
  15123. shlibpath_var=LD_LIBRARY_PATH
  15124. shlibpath_overrides_runpath=yes
  15125. hardcode_into_libs=yes
  15126. # ldd complains unless libraries are executable
  15127. postinstall_cmds='chmod +x $lib'
  15128. ;;
  15129. sunos4*)
  15130. version_type=sunos
  15131. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  15132. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15133. shlibpath_var=LD_LIBRARY_PATH
  15134. shlibpath_overrides_runpath=yes
  15135. if test yes = "$with_gnu_ld"; then
  15136. need_lib_prefix=no
  15137. fi
  15138. need_version=yes
  15139. ;;
  15140. sysv4 | sysv4.3*)
  15141. version_type=linux # correct to gnu/linux during the next big refactor
  15142. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15143. soname_spec='$libname$release$shared_ext$major'
  15144. shlibpath_var=LD_LIBRARY_PATH
  15145. case $host_vendor in
  15146. sni)
  15147. shlibpath_overrides_runpath=no
  15148. need_lib_prefix=no
  15149. runpath_var=LD_RUN_PATH
  15150. ;;
  15151. siemens)
  15152. need_lib_prefix=no
  15153. ;;
  15154. motorola)
  15155. need_lib_prefix=no
  15156. need_version=no
  15157. shlibpath_overrides_runpath=no
  15158. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15159. ;;
  15160. esac
  15161. ;;
  15162. sysv4*MP*)
  15163. if test -d /usr/nec; then
  15164. version_type=linux # correct to gnu/linux during the next big refactor
  15165. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  15166. soname_spec='$libname$shared_ext.$major'
  15167. shlibpath_var=LD_LIBRARY_PATH
  15168. fi
  15169. ;;
  15170. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15171. version_type=sco
  15172. need_lib_prefix=no
  15173. need_version=no
  15174. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  15175. soname_spec='$libname$release$shared_ext$major'
  15176. shlibpath_var=LD_LIBRARY_PATH
  15177. shlibpath_overrides_runpath=yes
  15178. hardcode_into_libs=yes
  15179. if test yes = "$with_gnu_ld"; then
  15180. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15181. else
  15182. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15183. case $host_os in
  15184. sco3.2v5*)
  15185. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15186. ;;
  15187. esac
  15188. fi
  15189. sys_lib_dlsearch_path_spec='/usr/lib'
  15190. ;;
  15191. tpf*)
  15192. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  15193. version_type=linux # correct to gnu/linux during the next big refactor
  15194. need_lib_prefix=no
  15195. need_version=no
  15196. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15197. shlibpath_var=LD_LIBRARY_PATH
  15198. shlibpath_overrides_runpath=no
  15199. hardcode_into_libs=yes
  15200. ;;
  15201. uts4*)
  15202. version_type=linux # correct to gnu/linux during the next big refactor
  15203. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  15204. soname_spec='$libname$release$shared_ext$major'
  15205. shlibpath_var=LD_LIBRARY_PATH
  15206. ;;
  15207. *)
  15208. dynamic_linker=no
  15209. ;;
  15210. esac
  15211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  15212. printf "%s\n" "$dynamic_linker" >&6; }
  15213. test no = "$dynamic_linker" && can_build_shared=no
  15214. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15215. if test yes = "$GCC"; then
  15216. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15217. fi
  15218. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  15219. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  15220. fi
  15221. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  15222. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  15223. fi
  15224. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  15225. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  15226. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  15227. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  15228. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  15229. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  15230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  15231. printf %s "checking how to hardcode library paths into programs... " >&6; }
  15232. hardcode_action_CXX=
  15233. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  15234. test -n "$runpath_var_CXX" ||
  15235. test yes = "$hardcode_automatic_CXX"; then
  15236. # We can hardcode non-existent directories.
  15237. if test no != "$hardcode_direct_CXX" &&
  15238. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15239. # have to relink, otherwise we might link with an installed library
  15240. # when we should be linking with a yet-to-be-installed one
  15241. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  15242. test no != "$hardcode_minus_L_CXX"; then
  15243. # Linking always hardcodes the temporary library directory.
  15244. hardcode_action_CXX=relink
  15245. else
  15246. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15247. hardcode_action_CXX=immediate
  15248. fi
  15249. else
  15250. # We cannot hardcode anything, or else we can only hardcode existing
  15251. # directories.
  15252. hardcode_action_CXX=unsupported
  15253. fi
  15254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  15255. printf "%s\n" "$hardcode_action_CXX" >&6; }
  15256. if test relink = "$hardcode_action_CXX" ||
  15257. test yes = "$inherit_rpath_CXX"; then
  15258. # Fast installation is not supported
  15259. enable_fast_install=no
  15260. elif test yes = "$shlibpath_overrides_runpath" ||
  15261. test no = "$enable_shared"; then
  15262. # Fast installation is not necessary
  15263. enable_fast_install=needless
  15264. fi
  15265. fi # test -n "$compiler"
  15266. CC=$lt_save_CC
  15267. CFLAGS=$lt_save_CFLAGS
  15268. LDCXX=$LD
  15269. LD=$lt_save_LD
  15270. GCC=$lt_save_GCC
  15271. with_gnu_ld=$lt_save_with_gnu_ld
  15272. lt_cv_path_LDCXX=$lt_cv_path_LD
  15273. lt_cv_path_LD=$lt_save_path_LD
  15274. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  15275. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  15276. fi # test yes != "$_lt_caught_CXX_error"
  15277. ac_ext=c
  15278. ac_cpp='$CPP $CPPFLAGS'
  15279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  15283. printf %s "checking for egrep... " >&6; }
  15284. if test ${ac_cv_path_EGREP+y}
  15285. then :
  15286. printf %s "(cached) " >&6
  15287. else $as_nop
  15288. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  15289. then ac_cv_path_EGREP="$GREP -E"
  15290. else
  15291. if test -z "$EGREP"; then
  15292. ac_path_EGREP_found=false
  15293. # Loop through the user's path and test for each of PROGNAME-LIST
  15294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15295. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  15296. do
  15297. IFS=$as_save_IFS
  15298. case $as_dir in #(((
  15299. '') as_dir=./ ;;
  15300. */) ;;
  15301. *) as_dir=$as_dir/ ;;
  15302. esac
  15303. for ac_prog in egrep
  15304. do
  15305. for ac_exec_ext in '' $ac_executable_extensions; do
  15306. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  15307. as_fn_executable_p "$ac_path_EGREP" || continue
  15308. # Check for GNU ac_path_EGREP and select it if it is found.
  15309. # Check for GNU $ac_path_EGREP
  15310. case `"$ac_path_EGREP" --version 2>&1` in
  15311. *GNU*)
  15312. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  15313. *)
  15314. ac_count=0
  15315. printf %s 0123456789 >"conftest.in"
  15316. while :
  15317. do
  15318. cat "conftest.in" "conftest.in" >"conftest.tmp"
  15319. mv "conftest.tmp" "conftest.in"
  15320. cp "conftest.in" "conftest.nl"
  15321. printf "%s\n" 'EGREP' >> "conftest.nl"
  15322. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  15323. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  15324. as_fn_arith $ac_count + 1 && ac_count=$as_val
  15325. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  15326. # Best one so far, save it but keep looking for a better one
  15327. ac_cv_path_EGREP="$ac_path_EGREP"
  15328. ac_path_EGREP_max=$ac_count
  15329. fi
  15330. # 10*(2^10) chars as input seems more than enough
  15331. test $ac_count -gt 10 && break
  15332. done
  15333. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  15334. esac
  15335. $ac_path_EGREP_found && break 3
  15336. done
  15337. done
  15338. done
  15339. IFS=$as_save_IFS
  15340. if test -z "$ac_cv_path_EGREP"; then
  15341. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  15342. fi
  15343. else
  15344. ac_cv_path_EGREP=$EGREP
  15345. fi
  15346. fi
  15347. fi
  15348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  15349. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  15350. EGREP="$ac_cv_path_EGREP"
  15351. # Find a good install program. We prefer a C program (faster),
  15352. # so one script is as good as another. But avoid the broken or
  15353. # incompatible versions:
  15354. # SysV /etc/install, /usr/sbin/install
  15355. # SunOS /usr/etc/install
  15356. # IRIX /sbin/install
  15357. # AIX /bin/install
  15358. # AmigaOS /C/install, which installs bootblocks on floppy discs
  15359. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  15360. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  15361. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  15362. # OS/2's system install, which has a completely different semantic
  15363. # ./install, which can be erroneously created by make from ./install.sh.
  15364. # Reject install programs that cannot install multiple files.
  15365. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  15366. printf %s "checking for a BSD-compatible install... " >&6; }
  15367. if test -z "$INSTALL"; then
  15368. if test ${ac_cv_path_install+y}
  15369. then :
  15370. printf %s "(cached) " >&6
  15371. else $as_nop
  15372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15373. for as_dir in $PATH
  15374. do
  15375. IFS=$as_save_IFS
  15376. case $as_dir in #(((
  15377. '') as_dir=./ ;;
  15378. */) ;;
  15379. *) as_dir=$as_dir/ ;;
  15380. esac
  15381. # Account for fact that we put trailing slashes in our PATH walk.
  15382. case $as_dir in #((
  15383. ./ | /[cC]/* | \
  15384. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  15385. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  15386. /usr/ucb/* ) ;;
  15387. *)
  15388. # OSF1 and SCO ODT 3.0 have their own names for install.
  15389. # Don't use installbsd from OSF since it installs stuff as root
  15390. # by default.
  15391. for ac_prog in ginstall scoinst install; do
  15392. for ac_exec_ext in '' $ac_executable_extensions; do
  15393. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  15394. if test $ac_prog = install &&
  15395. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15396. # AIX install. It has an incompatible calling convention.
  15397. :
  15398. elif test $ac_prog = install &&
  15399. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  15400. # program-specific install script used by HP pwplus--don't use.
  15401. :
  15402. else
  15403. rm -rf conftest.one conftest.two conftest.dir
  15404. echo one > conftest.one
  15405. echo two > conftest.two
  15406. mkdir conftest.dir
  15407. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  15408. test -s conftest.one && test -s conftest.two &&
  15409. test -s conftest.dir/conftest.one &&
  15410. test -s conftest.dir/conftest.two
  15411. then
  15412. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  15413. break 3
  15414. fi
  15415. fi
  15416. fi
  15417. done
  15418. done
  15419. ;;
  15420. esac
  15421. done
  15422. IFS=$as_save_IFS
  15423. rm -rf conftest.one conftest.two conftest.dir
  15424. fi
  15425. if test ${ac_cv_path_install+y}; then
  15426. INSTALL=$ac_cv_path_install
  15427. else
  15428. # As a last resort, use the slow shell script. Don't cache a
  15429. # value for INSTALL within a source directory, because that will
  15430. # break other packages using the cache if that directory is
  15431. # removed, or if the value is a relative name.
  15432. INSTALL=$ac_install_sh
  15433. fi
  15434. fi
  15435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  15436. printf "%s\n" "$INSTALL" >&6; }
  15437. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  15438. # It thinks the first close brace ends the variable substitution.
  15439. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  15440. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  15441. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  15442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  15443. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  15444. set x ${MAKE-make}
  15445. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  15446. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  15447. then :
  15448. printf %s "(cached) " >&6
  15449. else $as_nop
  15450. cat >conftest.make <<\_ACEOF
  15451. SHELL = /bin/sh
  15452. all:
  15453. @echo '@@@%%%=$(MAKE)=@@@%%%'
  15454. _ACEOF
  15455. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  15456. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  15457. *@@@%%%=?*=@@@%%%*)
  15458. eval ac_cv_prog_make_${ac_make}_set=yes;;
  15459. *)
  15460. eval ac_cv_prog_make_${ac_make}_set=no;;
  15461. esac
  15462. rm -f conftest.make
  15463. fi
  15464. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  15465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15466. printf "%s\n" "yes" >&6; }
  15467. SET_MAKE=
  15468. else
  15469. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15470. printf "%s\n" "no" >&6; }
  15471. SET_MAKE="MAKE=${MAKE-make}"
  15472. fi
  15473. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15474. if test -n "$ac_tool_prefix"; then
  15475. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15476. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15478. printf %s "checking for $ac_word... " >&6; }
  15479. if test ${ac_cv_path_PKG_CONFIG+y}
  15480. then :
  15481. printf %s "(cached) " >&6
  15482. else $as_nop
  15483. case $PKG_CONFIG in
  15484. [\\/]* | ?:[\\/]*)
  15485. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15486. ;;
  15487. *)
  15488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15489. for as_dir in $PATH
  15490. do
  15491. IFS=$as_save_IFS
  15492. case $as_dir in #(((
  15493. '') as_dir=./ ;;
  15494. */) ;;
  15495. *) as_dir=$as_dir/ ;;
  15496. esac
  15497. for ac_exec_ext in '' $ac_executable_extensions; do
  15498. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15499. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15500. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15501. break 2
  15502. fi
  15503. done
  15504. done
  15505. IFS=$as_save_IFS
  15506. ;;
  15507. esac
  15508. fi
  15509. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15510. if test -n "$PKG_CONFIG"; then
  15511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15512. printf "%s\n" "$PKG_CONFIG" >&6; }
  15513. else
  15514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15515. printf "%s\n" "no" >&6; }
  15516. fi
  15517. fi
  15518. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15519. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15520. # Extract the first word of "pkg-config", so it can be a program name with args.
  15521. set dummy pkg-config; ac_word=$2
  15522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15523. printf %s "checking for $ac_word... " >&6; }
  15524. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  15525. then :
  15526. printf %s "(cached) " >&6
  15527. else $as_nop
  15528. case $ac_pt_PKG_CONFIG in
  15529. [\\/]* | ?:[\\/]*)
  15530. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15531. ;;
  15532. *)
  15533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15534. for as_dir in $PATH
  15535. do
  15536. IFS=$as_save_IFS
  15537. case $as_dir in #(((
  15538. '') as_dir=./ ;;
  15539. */) ;;
  15540. *) as_dir=$as_dir/ ;;
  15541. esac
  15542. for ac_exec_ext in '' $ac_executable_extensions; do
  15543. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15544. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  15545. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15546. break 2
  15547. fi
  15548. done
  15549. done
  15550. IFS=$as_save_IFS
  15551. ;;
  15552. esac
  15553. fi
  15554. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15555. if test -n "$ac_pt_PKG_CONFIG"; then
  15556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15557. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  15558. else
  15559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15560. printf "%s\n" "no" >&6; }
  15561. fi
  15562. if test "x$ac_pt_PKG_CONFIG" = x; then
  15563. PKG_CONFIG=""
  15564. else
  15565. case $cross_compiling:$ac_tool_warned in
  15566. yes:)
  15567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15568. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15569. ac_tool_warned=yes ;;
  15570. esac
  15571. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15572. fi
  15573. else
  15574. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15575. fi
  15576. fi
  15577. if test -n "$PKG_CONFIG"; then
  15578. _pkg_min_version=0.9.0
  15579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15580. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15581. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15583. printf "%s\n" "yes" >&6; }
  15584. else
  15585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15586. printf "%s\n" "no" >&6; }
  15587. PKG_CONFIG=""
  15588. fi
  15589. fi
  15590. if test -z "$AWK" ; then
  15591. as_fn_error $? "*** awk not found, aborting" "$LINENO" 5
  15592. fi
  15593. for ac_prog in gsort sort
  15594. do
  15595. # Extract the first word of "$ac_prog", so it can be a program name with args.
  15596. set dummy $ac_prog; ac_word=$2
  15597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15598. printf %s "checking for $ac_word... " >&6; }
  15599. if test ${ac_cv_prog_SORT+y}
  15600. then :
  15601. printf %s "(cached) " >&6
  15602. else $as_nop
  15603. if test -n "$SORT"; then
  15604. ac_cv_prog_SORT="$SORT" # Let the user override the test.
  15605. else
  15606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15607. for as_dir in $PATH
  15608. do
  15609. IFS=$as_save_IFS
  15610. case $as_dir in #(((
  15611. '') as_dir=./ ;;
  15612. */) ;;
  15613. *) as_dir=$as_dir/ ;;
  15614. esac
  15615. for ac_exec_ext in '' $ac_executable_extensions; do
  15616. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  15617. ac_cv_prog_SORT="$ac_prog"
  15618. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  15619. break 2
  15620. fi
  15621. done
  15622. done
  15623. IFS=$as_save_IFS
  15624. fi
  15625. fi
  15626. SORT=$ac_cv_prog_SORT
  15627. if test -n "$SORT"; then
  15628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
  15629. printf "%s\n" "$SORT" >&6; }
  15630. else
  15631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15632. printf "%s\n" "no" >&6; }
  15633. fi
  15634. test -n "$SORT" && break
  15635. done
  15636. test -n "$SORT" || SORT="false"
  15637. if ! "$SORT" -V </dev/null >/dev/null
  15638. then :
  15639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&5
  15640. printf "%s\n" "$as_me: WARNING: sort(1) that supports the -V option is required to find dynamic libraries" >&2;}
  15641. fi
  15642. # Check whether --enable-largefile was given.
  15643. if test ${enable_largefile+y}
  15644. then :
  15645. enableval=$enable_largefile;
  15646. fi
  15647. if test "$enable_largefile" != no; then
  15648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  15649. printf %s "checking for special C compiler options needed for large files... " >&6; }
  15650. if test ${ac_cv_sys_largefile_CC+y}
  15651. then :
  15652. printf %s "(cached) " >&6
  15653. else $as_nop
  15654. ac_cv_sys_largefile_CC=no
  15655. if test "$GCC" != yes; then
  15656. ac_save_CC=$CC
  15657. while :; do
  15658. # IRIX 6.2 and later do not support large files by default,
  15659. # so use the C compiler's -n32 option if that helps.
  15660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15661. /* end confdefs.h. */
  15662. #include <sys/types.h>
  15663. /* Check that off_t can represent 2**63 - 1 correctly.
  15664. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15665. since some C++ compilers masquerading as C compilers
  15666. incorrectly reject 9223372036854775807. */
  15667. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15668. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15669. && LARGE_OFF_T % 2147483647 == 1)
  15670. ? 1 : -1];
  15671. int
  15672. main (void)
  15673. {
  15674. ;
  15675. return 0;
  15676. }
  15677. _ACEOF
  15678. if ac_fn_c_try_compile "$LINENO"
  15679. then :
  15680. break
  15681. fi
  15682. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15683. CC="$CC -n32"
  15684. if ac_fn_c_try_compile "$LINENO"
  15685. then :
  15686. ac_cv_sys_largefile_CC=' -n32'; break
  15687. fi
  15688. rm -f core conftest.err conftest.$ac_objext conftest.beam
  15689. break
  15690. done
  15691. CC=$ac_save_CC
  15692. rm -f conftest.$ac_ext
  15693. fi
  15694. fi
  15695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  15696. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  15697. if test "$ac_cv_sys_largefile_CC" != no; then
  15698. CC=$CC$ac_cv_sys_largefile_CC
  15699. fi
  15700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  15701. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  15702. if test ${ac_cv_sys_file_offset_bits+y}
  15703. then :
  15704. printf %s "(cached) " >&6
  15705. else $as_nop
  15706. while :; do
  15707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15708. /* end confdefs.h. */
  15709. #include <sys/types.h>
  15710. /* Check that off_t can represent 2**63 - 1 correctly.
  15711. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15712. since some C++ compilers masquerading as C compilers
  15713. incorrectly reject 9223372036854775807. */
  15714. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15715. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15716. && LARGE_OFF_T % 2147483647 == 1)
  15717. ? 1 : -1];
  15718. int
  15719. main (void)
  15720. {
  15721. ;
  15722. return 0;
  15723. }
  15724. _ACEOF
  15725. if ac_fn_c_try_compile "$LINENO"
  15726. then :
  15727. ac_cv_sys_file_offset_bits=no; break
  15728. fi
  15729. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15731. /* end confdefs.h. */
  15732. #define _FILE_OFFSET_BITS 64
  15733. #include <sys/types.h>
  15734. /* Check that off_t can represent 2**63 - 1 correctly.
  15735. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15736. since some C++ compilers masquerading as C compilers
  15737. incorrectly reject 9223372036854775807. */
  15738. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15739. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15740. && LARGE_OFF_T % 2147483647 == 1)
  15741. ? 1 : -1];
  15742. int
  15743. main (void)
  15744. {
  15745. ;
  15746. return 0;
  15747. }
  15748. _ACEOF
  15749. if ac_fn_c_try_compile "$LINENO"
  15750. then :
  15751. ac_cv_sys_file_offset_bits=64; break
  15752. fi
  15753. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15754. ac_cv_sys_file_offset_bits=unknown
  15755. break
  15756. done
  15757. fi
  15758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  15759. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  15760. case $ac_cv_sys_file_offset_bits in #(
  15761. no | unknown) ;;
  15762. *)
  15763. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  15764. ;;
  15765. esac
  15766. rm -rf conftest*
  15767. if test $ac_cv_sys_file_offset_bits = unknown; then
  15768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  15769. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  15770. if test ${ac_cv_sys_large_files+y}
  15771. then :
  15772. printf %s "(cached) " >&6
  15773. else $as_nop
  15774. while :; do
  15775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15776. /* end confdefs.h. */
  15777. #include <sys/types.h>
  15778. /* Check that off_t can represent 2**63 - 1 correctly.
  15779. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15780. since some C++ compilers masquerading as C compilers
  15781. incorrectly reject 9223372036854775807. */
  15782. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15783. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15784. && LARGE_OFF_T % 2147483647 == 1)
  15785. ? 1 : -1];
  15786. int
  15787. main (void)
  15788. {
  15789. ;
  15790. return 0;
  15791. }
  15792. _ACEOF
  15793. if ac_fn_c_try_compile "$LINENO"
  15794. then :
  15795. ac_cv_sys_large_files=no; break
  15796. fi
  15797. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15799. /* end confdefs.h. */
  15800. #define _LARGE_FILES 1
  15801. #include <sys/types.h>
  15802. /* Check that off_t can represent 2**63 - 1 correctly.
  15803. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  15804. since some C++ compilers masquerading as C compilers
  15805. incorrectly reject 9223372036854775807. */
  15806. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  15807. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  15808. && LARGE_OFF_T % 2147483647 == 1)
  15809. ? 1 : -1];
  15810. int
  15811. main (void)
  15812. {
  15813. ;
  15814. return 0;
  15815. }
  15816. _ACEOF
  15817. if ac_fn_c_try_compile "$LINENO"
  15818. then :
  15819. ac_cv_sys_large_files=1; break
  15820. fi
  15821. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15822. ac_cv_sys_large_files=unknown
  15823. break
  15824. done
  15825. fi
  15826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  15827. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  15828. case $ac_cv_sys_large_files in #(
  15829. no | unknown) ;;
  15830. *)
  15831. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  15832. ;;
  15833. esac
  15834. rm -rf conftest*
  15835. fi
  15836. fi
  15837. case "$host" in
  15838. *-*-mingw*)
  15839. # Except on msys, where make can't handle full pathnames (bug 1972)
  15840. ;;
  15841. *)
  15842. srcdir=`cd $srcdir && pwd`
  15843. ;;
  15844. esac
  15845. INCLUDE="-I$srcdir/include"
  15846. case "$host" in
  15847. *-*-nto-qnx*)
  15848. ;;
  15849. *)
  15850. INCLUDE="$INCLUDE -idirafter $srcdir/src/video/khronos"
  15851. ;;
  15852. esac
  15853. case "$host" in
  15854. *-*-haiku*)
  15855. LINKER='$(CXX)'
  15856. LIBTOOLLINKERTAG='CXX'
  15857. ;;
  15858. *)
  15859. LINKER='$(CC)'
  15860. LIBTOOLLINKERTAG='CC'
  15861. ;;
  15862. esac
  15863. if test x$srcdir != x.; then
  15864. INCLUDE="-Iinclude $INCLUDE"
  15865. elif test -d .git; then
  15866. as_fn_error $? "
  15867. *** When building from a git clone you should configure and build in a
  15868. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  15869. " "$LINENO" 5
  15870. fi
  15871. BASE_CFLAGS=""
  15872. BASE_LDFLAGS=""
  15873. case "$host" in
  15874. *-*-cygwin*)
  15875. # We build SDL on cygwin without the UNIX emulation layer
  15876. save_CFLAGS="$CFLAGS"
  15877. have_no_cygwin=no
  15878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  15879. printf %s "checking for GCC -mno-cygwin option... " >&6; }
  15880. CFLAGS="$save_CFLAGS -mno-cygwin"
  15881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15882. /* end confdefs.h. */
  15883. int
  15884. main (void)
  15885. {
  15886. ;
  15887. return 0;
  15888. }
  15889. _ACEOF
  15890. if ac_fn_c_try_compile "$LINENO"
  15891. then :
  15892. have_no_cygwin=yes
  15893. fi
  15894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  15896. printf "%s\n" "$have_no_cygwin" >&6; }
  15897. CFLAGS="$save_CFLAGS"
  15898. if test x$have_no_cygwin = xyes; then
  15899. BASE_CFLAGS="-mno-cygwin"
  15900. BASE_LDFLAGS="-mno-cygwin"
  15901. fi
  15902. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  15903. ;;
  15904. esac
  15905. # Uncomment the following line if you want to force SDL and applications
  15906. # built with it to be compiled for a particular architecture.
  15907. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  15908. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  15909. # The default optimization for SDL is -O3 (Bug #31)
  15910. if test "x$orig_CFLAGS" = x; then
  15911. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  15912. fi
  15913. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  15914. BUILD_LDFLAGS="$LDFLAGS"
  15915. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  15916. ## These are common directories to find software packages
  15917. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  15918. # if test -d $path/include; then
  15919. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  15920. # fi
  15921. # if test -d $path/lib; then
  15922. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  15923. # fi
  15924. #done
  15925. SDL_CFLAGS="$BASE_CFLAGS"
  15926. SDL_LIBS="-lSDL2"
  15927. if test "x$BASE_LDFLAGS" != x; then
  15928. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  15929. fi
  15930. if test "x$EXTRA_CFLAGS" != x; then
  15931. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  15932. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  15933. fi
  15934. if test "x$EXTRA_LDFLAGS" != x; then
  15935. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  15936. fi
  15937. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  15938. find_lib()
  15939. {
  15940. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15941. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  15942. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  15943. if test "$cross_compiling" = yes; then
  15944. host_lib_path=""
  15945. else
  15946. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  15947. fi
  15948. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  15949. 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`
  15950. if test x$lib != x; then
  15951. echo $lib
  15952. return
  15953. fi
  15954. done
  15955. }
  15956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  15957. printf %s "checking for an ANSI C-conforming const... " >&6; }
  15958. if test ${ac_cv_c_const+y}
  15959. then :
  15960. printf %s "(cached) " >&6
  15961. else $as_nop
  15962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15963. /* end confdefs.h. */
  15964. int
  15965. main (void)
  15966. {
  15967. #ifndef __cplusplus
  15968. /* Ultrix mips cc rejects this sort of thing. */
  15969. typedef int charset[2];
  15970. const charset cs = { 0, 0 };
  15971. /* SunOS 4.1.1 cc rejects this. */
  15972. char const *const *pcpcc;
  15973. char **ppc;
  15974. /* NEC SVR4.0.2 mips cc rejects this. */
  15975. struct point {int x, y;};
  15976. static struct point const zero = {0,0};
  15977. /* IBM XL C 1.02.0.0 rejects this.
  15978. It does not let you subtract one const X* pointer from another in
  15979. an arm of an if-expression whose if-part is not a constant
  15980. expression */
  15981. const char *g = "string";
  15982. pcpcc = &g + (g ? g-g : 0);
  15983. /* HPUX 7.0 cc rejects these. */
  15984. ++pcpcc;
  15985. ppc = (char**) pcpcc;
  15986. pcpcc = (char const *const *) ppc;
  15987. { /* SCO 3.2v4 cc rejects this sort of thing. */
  15988. char tx;
  15989. char *t = &tx;
  15990. char const *s = 0 ? (char *) 0 : (char const *) 0;
  15991. *t++ = 0;
  15992. if (s) return 0;
  15993. }
  15994. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  15995. int x[] = {25, 17};
  15996. const int *foo = &x[0];
  15997. ++foo;
  15998. }
  15999. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16000. typedef const int *iptr;
  16001. iptr p = 0;
  16002. ++p;
  16003. }
  16004. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  16005. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16006. struct s { int j; const int *ap[3]; } bx;
  16007. struct s *b = &bx; b->j = 5;
  16008. }
  16009. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16010. const int foo = 10;
  16011. if (!foo) return 0;
  16012. }
  16013. return !cs[0] && !zero.x;
  16014. #endif
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. if ac_fn_c_try_compile "$LINENO"
  16020. then :
  16021. ac_cv_c_const=yes
  16022. else $as_nop
  16023. ac_cv_c_const=no
  16024. fi
  16025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16026. fi
  16027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16028. printf "%s\n" "$ac_cv_c_const" >&6; }
  16029. if test $ac_cv_c_const = no; then
  16030. printf "%s\n" "#define const /**/" >>confdefs.h
  16031. fi
  16032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  16033. printf %s "checking for inline... " >&6; }
  16034. if test ${ac_cv_c_inline+y}
  16035. then :
  16036. printf %s "(cached) " >&6
  16037. else $as_nop
  16038. ac_cv_c_inline=no
  16039. for ac_kw in inline __inline__ __inline; do
  16040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16041. /* end confdefs.h. */
  16042. #ifndef __cplusplus
  16043. typedef int foo_t;
  16044. static $ac_kw foo_t static_foo (void) {return 0; }
  16045. $ac_kw foo_t foo (void) {return 0; }
  16046. #endif
  16047. _ACEOF
  16048. if ac_fn_c_try_compile "$LINENO"
  16049. then :
  16050. ac_cv_c_inline=$ac_kw
  16051. fi
  16052. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16053. test "$ac_cv_c_inline" != no && break
  16054. done
  16055. fi
  16056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  16057. printf "%s\n" "$ac_cv_c_inline" >&6; }
  16058. case $ac_cv_c_inline in
  16059. inline | yes) ;;
  16060. *)
  16061. case $ac_cv_c_inline in
  16062. no) ac_val=;;
  16063. *) ac_val=$ac_cv_c_inline;;
  16064. esac
  16065. cat >>confdefs.h <<_ACEOF
  16066. #ifndef __cplusplus
  16067. #define inline $ac_val
  16068. #endif
  16069. _ACEOF
  16070. ;;
  16071. esac
  16072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  16073. printf %s "checking for working volatile... " >&6; }
  16074. if test ${ac_cv_c_volatile+y}
  16075. then :
  16076. printf %s "(cached) " >&6
  16077. else $as_nop
  16078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16079. /* end confdefs.h. */
  16080. int
  16081. main (void)
  16082. {
  16083. volatile int x;
  16084. int * volatile y = (int *) 0;
  16085. return !x && !y;
  16086. ;
  16087. return 0;
  16088. }
  16089. _ACEOF
  16090. if ac_fn_c_try_compile "$LINENO"
  16091. then :
  16092. ac_cv_c_volatile=yes
  16093. else $as_nop
  16094. ac_cv_c_volatile=no
  16095. fi
  16096. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16097. fi
  16098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16099. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  16100. if test $ac_cv_c_volatile = no; then
  16101. printf "%s\n" "#define volatile /**/" >>confdefs.h
  16102. fi
  16103. # Check whether --enable-assertions was given.
  16104. if test ${enable_assertions+y}
  16105. then :
  16106. enableval=$enable_assertions;
  16107. else $as_nop
  16108. enable_assertions=auto
  16109. fi
  16110. case "$enable_assertions" in
  16111. auto) # Use optimization settings to determine assertion level
  16112. ;;
  16113. disabled)
  16114. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  16115. ;;
  16116. release)
  16117. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  16118. ;;
  16119. enabled)
  16120. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  16121. ;;
  16122. paranoid)
  16123. printf "%s\n" "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  16124. ;;
  16125. *)
  16126. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  16127. ;;
  16128. esac
  16129. 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"
  16130. # Check whether --enable-dependency-tracking was given.
  16131. if test ${enable_dependency_tracking+y}
  16132. then :
  16133. enableval=$enable_dependency_tracking;
  16134. else $as_nop
  16135. enable_dependency_tracking=yes
  16136. fi
  16137. if test x$enable_dependency_tracking = xyes; then
  16138. have_gcc_mmd_mt=no
  16139. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  16140. printf %s "checking for GCC -MMD -MT option... " >&6; }
  16141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16142. /* end confdefs.h. */
  16143. #if !defined(__GNUC__) || __GNUC__ < 3
  16144. #error Dependency tracking requires GCC 3.0 or newer
  16145. #endif
  16146. int
  16147. main (void)
  16148. {
  16149. ;
  16150. return 0;
  16151. }
  16152. _ACEOF
  16153. if ac_fn_c_try_compile "$LINENO"
  16154. then :
  16155. have_gcc_mmd_mt=yes
  16156. fi
  16157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16158. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  16159. printf "%s\n" "$have_gcc_mmd_mt" >&6; }
  16160. if test x$have_gcc_mmd_mt = xyes; then
  16161. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  16162. fi
  16163. fi
  16164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  16165. printf %s "checking for linker option --no-undefined... " >&6; }
  16166. have_no_undefined=no
  16167. case "$host" in
  16168. *-*-openbsd*)
  16169. ;;
  16170. *)
  16171. save_LDFLAGS="$LDFLAGS"
  16172. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  16173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16174. /* end confdefs.h. */
  16175. int
  16176. main (void)
  16177. {
  16178. ;
  16179. return 0;
  16180. }
  16181. _ACEOF
  16182. if ac_fn_c_try_link "$LINENO"
  16183. then :
  16184. have_no_undefined=yes
  16185. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wl,--no-undefined"
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16188. conftest$ac_exeext conftest.$ac_ext
  16189. LDFLAGS="$save_LDFLAGS"
  16190. ;;
  16191. esac
  16192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  16193. printf "%s\n" "$have_no_undefined" >&6; }
  16194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  16195. printf %s "checking for linker option --dynamicbase... " >&6; }
  16196. have_dynamicbase=no
  16197. case "$host" in
  16198. *)
  16199. save_LDFLAGS="$LDFLAGS"
  16200. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  16201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16202. /* end confdefs.h. */
  16203. int
  16204. main (void)
  16205. {
  16206. ;
  16207. return 0;
  16208. }
  16209. _ACEOF
  16210. if ac_fn_c_try_link "$LINENO"
  16211. then :
  16212. have_dynamicbase=yes
  16213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  16214. fi
  16215. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16216. conftest$ac_exeext conftest.$ac_ext
  16217. LDFLAGS="$save_LDFLAGS"
  16218. ;;
  16219. esac
  16220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  16221. printf "%s\n" "$have_dynamicbase" >&6; }
  16222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  16223. printf %s "checking for linker option --nxcompat... " >&6; }
  16224. have_nxcompat=no
  16225. case "$host" in
  16226. *)
  16227. save_LDFLAGS="$LDFLAGS"
  16228. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  16229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16230. /* end confdefs.h. */
  16231. int
  16232. main (void)
  16233. {
  16234. ;
  16235. return 0;
  16236. }
  16237. _ACEOF
  16238. if ac_fn_c_try_link "$LINENO"
  16239. then :
  16240. have_nxcompat=yes
  16241. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  16242. fi
  16243. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16244. conftest$ac_exeext conftest.$ac_ext
  16245. LDFLAGS="$save_LDFLAGS"
  16246. ;;
  16247. esac
  16248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  16249. printf "%s\n" "$have_nxcompat" >&6; }
  16250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  16251. printf %s "checking for linker option --high-entropy-va... " >&6; }
  16252. have_high_entropy_va=no
  16253. case "$host" in
  16254. *)
  16255. save_LDFLAGS="$LDFLAGS"
  16256. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  16257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16258. /* end confdefs.h. */
  16259. int
  16260. main (void)
  16261. {
  16262. ;
  16263. return 0;
  16264. }
  16265. _ACEOF
  16266. if ac_fn_c_try_link "$LINENO"
  16267. then :
  16268. have_high_entropy_va=yes
  16269. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  16270. fi
  16271. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16272. conftest$ac_exeext conftest.$ac_ext
  16273. LDFLAGS="$save_LDFLAGS"
  16274. ;;
  16275. esac
  16276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  16277. printf "%s\n" "$have_high_entropy_va" >&6; }
  16278. # Check whether --enable-libc was given.
  16279. if test ${enable_libc+y}
  16280. then :
  16281. enableval=$enable_libc;
  16282. else $as_nop
  16283. enable_libc=yes
  16284. fi
  16285. # Check whether --enable-system-iconv was given.
  16286. if test ${enable_system_iconv+y}
  16287. then :
  16288. enableval=$enable_system_iconv;
  16289. else $as_nop
  16290. enable_system_iconv=yes
  16291. fi
  16292. if test x$enable_libc = xyes; then
  16293. printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
  16294. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  16295. if test "x$ac_cv_header_sys_types_h" = xyes
  16296. then :
  16297. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  16298. fi
  16299. ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  16300. if test "x$ac_cv_header_stdio_h" = xyes
  16301. then :
  16302. printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
  16303. fi
  16304. ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  16305. if test "x$ac_cv_header_stdlib_h" = xyes
  16306. then :
  16307. printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
  16308. fi
  16309. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  16310. if test "x$ac_cv_header_stddef_h" = xyes
  16311. then :
  16312. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  16313. fi
  16314. ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  16315. if test "x$ac_cv_header_stdarg_h" = xyes
  16316. then :
  16317. printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
  16318. fi
  16319. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  16320. if test "x$ac_cv_header_malloc_h" = xyes
  16321. then :
  16322. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  16323. fi
  16324. ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
  16325. if test "x$ac_cv_header_memory_h" = xyes
  16326. then :
  16327. printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
  16328. fi
  16329. ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16330. if test "x$ac_cv_header_string_h" = xyes
  16331. then :
  16332. printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
  16333. fi
  16334. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  16335. if test "x$ac_cv_header_strings_h" = xyes
  16336. then :
  16337. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  16338. fi
  16339. ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  16340. if test "x$ac_cv_header_wchar_h" = xyes
  16341. then :
  16342. printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
  16343. fi
  16344. ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  16345. if test "x$ac_cv_header_inttypes_h" = xyes
  16346. then :
  16347. printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
  16348. fi
  16349. ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  16350. if test "x$ac_cv_header_stdint_h" = xyes
  16351. then :
  16352. printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
  16353. fi
  16354. ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  16355. if test "x$ac_cv_header_limits_h" = xyes
  16356. then :
  16357. printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
  16358. fi
  16359. ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
  16360. if test "x$ac_cv_header_ctype_h" = xyes
  16361. then :
  16362. printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
  16363. fi
  16364. ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
  16365. if test "x$ac_cv_header_math_h" = xyes
  16366. then :
  16367. printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
  16368. fi
  16369. ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
  16370. if test "x$ac_cv_header_float_h" = xyes
  16371. then :
  16372. printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h
  16373. fi
  16374. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16375. if test "x$ac_cv_header_iconv_h" = xyes
  16376. then :
  16377. printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
  16378. fi
  16379. ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
  16380. if test "x$ac_cv_header_signal_h" = xyes
  16381. then :
  16382. printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
  16383. fi
  16384. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16385. if test "x$ac_cv_type_size_t" = xyes
  16386. then :
  16387. else $as_nop
  16388. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  16389. fi
  16390. ac_ext=c
  16391. ac_cpp='$CPP $CPPFLAGS'
  16392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  16396. printf %s "checking how to run the C preprocessor... " >&6; }
  16397. # On Suns, sometimes $CPP names a directory.
  16398. if test -n "$CPP" && test -d "$CPP"; then
  16399. CPP=
  16400. fi
  16401. if test -z "$CPP"; then
  16402. if test ${ac_cv_prog_CPP+y}
  16403. then :
  16404. printf %s "(cached) " >&6
  16405. else $as_nop
  16406. # Double quotes because $CC needs to be expanded
  16407. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  16408. do
  16409. ac_preproc_ok=false
  16410. for ac_c_preproc_warn_flag in '' yes
  16411. do
  16412. # Use a header file that comes with gcc, so configuring glibc
  16413. # with a fresh cross-compiler works.
  16414. # On the NeXT, cc -E runs the code through the compiler's parser,
  16415. # not just through cpp. "Syntax error" is here to catch this case.
  16416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16417. /* end confdefs.h. */
  16418. #include <limits.h>
  16419. Syntax error
  16420. _ACEOF
  16421. if ac_fn_c_try_cpp "$LINENO"
  16422. then :
  16423. else $as_nop
  16424. # Broken: fails on valid input.
  16425. continue
  16426. fi
  16427. rm -f conftest.err conftest.i conftest.$ac_ext
  16428. # OK, works on sane cases. Now check whether nonexistent headers
  16429. # can be detected and how.
  16430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16431. /* end confdefs.h. */
  16432. #include <ac_nonexistent.h>
  16433. _ACEOF
  16434. if ac_fn_c_try_cpp "$LINENO"
  16435. then :
  16436. # Broken: success on invalid input.
  16437. continue
  16438. else $as_nop
  16439. # Passes both tests.
  16440. ac_preproc_ok=:
  16441. break
  16442. fi
  16443. rm -f conftest.err conftest.i conftest.$ac_ext
  16444. done
  16445. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16446. rm -f conftest.i conftest.err conftest.$ac_ext
  16447. if $ac_preproc_ok
  16448. then :
  16449. break
  16450. fi
  16451. done
  16452. ac_cv_prog_CPP=$CPP
  16453. fi
  16454. CPP=$ac_cv_prog_CPP
  16455. else
  16456. ac_cv_prog_CPP=$CPP
  16457. fi
  16458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  16459. printf "%s\n" "$CPP" >&6; }
  16460. ac_preproc_ok=false
  16461. for ac_c_preproc_warn_flag in '' yes
  16462. do
  16463. # Use a header file that comes with gcc, so configuring glibc
  16464. # with a fresh cross-compiler works.
  16465. # On the NeXT, cc -E runs the code through the compiler's parser,
  16466. # not just through cpp. "Syntax error" is here to catch this case.
  16467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16468. /* end confdefs.h. */
  16469. #include <limits.h>
  16470. Syntax error
  16471. _ACEOF
  16472. if ac_fn_c_try_cpp "$LINENO"
  16473. then :
  16474. else $as_nop
  16475. # Broken: fails on valid input.
  16476. continue
  16477. fi
  16478. rm -f conftest.err conftest.i conftest.$ac_ext
  16479. # OK, works on sane cases. Now check whether nonexistent headers
  16480. # can be detected and how.
  16481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16482. /* end confdefs.h. */
  16483. #include <ac_nonexistent.h>
  16484. _ACEOF
  16485. if ac_fn_c_try_cpp "$LINENO"
  16486. then :
  16487. # Broken: success on invalid input.
  16488. continue
  16489. else $as_nop
  16490. # Passes both tests.
  16491. ac_preproc_ok=:
  16492. break
  16493. fi
  16494. rm -f conftest.err conftest.i conftest.$ac_ext
  16495. done
  16496. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16497. rm -f conftest.i conftest.err conftest.$ac_ext
  16498. if $ac_preproc_ok
  16499. then :
  16500. else $as_nop
  16501. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16502. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16503. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  16504. See \`config.log' for more details" "$LINENO" 5; }
  16505. fi
  16506. ac_ext=c
  16507. ac_cpp='$CPP $CPPFLAGS'
  16508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  16511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  16512. printf %s "checking for M_PI in math.h... " >&6; }
  16513. if test ${ac_cv_define_M_PI+y}
  16514. then :
  16515. printf %s "(cached) " >&6
  16516. else $as_nop
  16517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16518. /* end confdefs.h. */
  16519. #include <math.h>
  16520. #ifdef M_PI
  16521. YES_IS_DEFINED
  16522. #endif
  16523. _ACEOF
  16524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16525. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1
  16526. then :
  16527. ac_cv_define_M_PI=yes
  16528. else $as_nop
  16529. ac_cv_define_M_PI=no
  16530. fi
  16531. rm -rf conftest*
  16532. fi
  16533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  16534. printf "%s\n" "$ac_cv_define_M_PI" >&6; }
  16535. if test "$ac_cv_define_M_PI" = "yes" ; then
  16536. printf "%s\n" "#define HAVE_M_PI /**/" >>confdefs.h
  16537. fi
  16538. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  16539. # for constant arguments. Useless!
  16540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  16541. printf %s "checking for working alloca.h... " >&6; }
  16542. if test ${ac_cv_working_alloca_h+y}
  16543. then :
  16544. printf %s "(cached) " >&6
  16545. else $as_nop
  16546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16547. /* end confdefs.h. */
  16548. #include <alloca.h>
  16549. int
  16550. main (void)
  16551. {
  16552. char *p = (char *) alloca (2 * sizeof (int));
  16553. if (p) return 0;
  16554. ;
  16555. return 0;
  16556. }
  16557. _ACEOF
  16558. if ac_fn_c_try_link "$LINENO"
  16559. then :
  16560. ac_cv_working_alloca_h=yes
  16561. else $as_nop
  16562. ac_cv_working_alloca_h=no
  16563. fi
  16564. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16565. conftest$ac_exeext conftest.$ac_ext
  16566. fi
  16567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  16568. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  16569. if test $ac_cv_working_alloca_h = yes; then
  16570. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  16571. fi
  16572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  16573. printf %s "checking for alloca... " >&6; }
  16574. if test ${ac_cv_func_alloca_works+y}
  16575. then :
  16576. printf %s "(cached) " >&6
  16577. else $as_nop
  16578. if test $ac_cv_working_alloca_h = yes; then
  16579. ac_cv_func_alloca_works=yes
  16580. else
  16581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16582. /* end confdefs.h. */
  16583. #include <stdlib.h>
  16584. #include <stddef.h>
  16585. #ifndef alloca
  16586. # ifdef __GNUC__
  16587. # define alloca __builtin_alloca
  16588. # elif defined _MSC_VER
  16589. # include <malloc.h>
  16590. # define alloca _alloca
  16591. # else
  16592. # ifdef __cplusplus
  16593. extern "C"
  16594. # endif
  16595. void *alloca (size_t);
  16596. # endif
  16597. #endif
  16598. int
  16599. main (void)
  16600. {
  16601. char *p = (char *) alloca (1);
  16602. if (p) return 0;
  16603. ;
  16604. return 0;
  16605. }
  16606. _ACEOF
  16607. if ac_fn_c_try_link "$LINENO"
  16608. then :
  16609. ac_cv_func_alloca_works=yes
  16610. else $as_nop
  16611. ac_cv_func_alloca_works=no
  16612. fi
  16613. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16614. conftest$ac_exeext conftest.$ac_ext
  16615. fi
  16616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  16617. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  16618. fi
  16619. if test $ac_cv_func_alloca_works = yes; then
  16620. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  16621. else
  16622. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  16623. # that cause trouble. Some versions do not even contain alloca or
  16624. # contain a buggy version. If you still want to use their alloca,
  16625. # use ar to extract alloca.o from them instead of compiling alloca.c.
  16626. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  16627. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  16628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  16629. printf %s "checking stack direction for C alloca... " >&6; }
  16630. if test ${ac_cv_c_stack_direction+y}
  16631. then :
  16632. printf %s "(cached) " >&6
  16633. else $as_nop
  16634. if test "$cross_compiling" = yes
  16635. then :
  16636. ac_cv_c_stack_direction=0
  16637. else $as_nop
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. $ac_includes_default
  16641. int
  16642. find_stack_direction (int *addr, int depth)
  16643. {
  16644. int dir, dummy = 0;
  16645. if (! addr)
  16646. addr = &dummy;
  16647. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  16648. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  16649. return dir + dummy;
  16650. }
  16651. int
  16652. main (int argc, char **argv)
  16653. {
  16654. return find_stack_direction (0, argc + !argv + 20) < 0;
  16655. }
  16656. _ACEOF
  16657. if ac_fn_c_try_run "$LINENO"
  16658. then :
  16659. ac_cv_c_stack_direction=1
  16660. else $as_nop
  16661. ac_cv_c_stack_direction=-1
  16662. fi
  16663. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16664. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16665. fi
  16666. fi
  16667. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  16668. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  16669. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  16670. fi
  16671. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  16672. if test "x$ac_cv_func_mprotect" = xyes
  16673. then :
  16674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16675. /* end confdefs.h. */
  16676. #include <sys/types.h>
  16677. #include <sys/mman.h>
  16678. int
  16679. main (void)
  16680. {
  16681. ;
  16682. return 0;
  16683. }
  16684. _ACEOF
  16685. if ac_fn_c_try_compile "$LINENO"
  16686. then :
  16687. printf "%s\n" "#define HAVE_MPROTECT 1" >>confdefs.h
  16688. fi
  16689. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16690. fi
  16691. ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
  16692. if test "x$ac_cv_func_malloc" = xyes
  16693. then :
  16694. printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
  16695. fi
  16696. ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
  16697. if test "x$ac_cv_func_calloc" = xyes
  16698. then :
  16699. printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
  16700. fi
  16701. ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
  16702. if test "x$ac_cv_func_realloc" = xyes
  16703. then :
  16704. printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
  16705. fi
  16706. ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
  16707. if test "x$ac_cv_func_free" = xyes
  16708. then :
  16709. printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
  16710. fi
  16711. ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv"
  16712. if test "x$ac_cv_func_getenv" = xyes
  16713. then :
  16714. printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h
  16715. fi
  16716. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  16717. if test "x$ac_cv_func_setenv" = xyes
  16718. then :
  16719. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  16720. fi
  16721. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  16722. if test "x$ac_cv_func_putenv" = xyes
  16723. then :
  16724. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  16725. fi
  16726. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  16727. if test "x$ac_cv_func_unsetenv" = xyes
  16728. then :
  16729. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  16730. fi
  16731. ac_fn_c_check_func "$LINENO" "bsearch" "ac_cv_func_bsearch"
  16732. if test "x$ac_cv_func_bsearch" = xyes
  16733. then :
  16734. printf "%s\n" "#define HAVE_BSEARCH 1" >>confdefs.h
  16735. fi
  16736. ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
  16737. if test "x$ac_cv_func_qsort" = xyes
  16738. then :
  16739. printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
  16740. fi
  16741. ac_fn_c_check_func "$LINENO" "abs" "ac_cv_func_abs"
  16742. if test "x$ac_cv_func_abs" = xyes
  16743. then :
  16744. printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
  16745. fi
  16746. ac_fn_c_check_func "$LINENO" "bcopy" "ac_cv_func_bcopy"
  16747. if test "x$ac_cv_func_bcopy" = xyes
  16748. then :
  16749. printf "%s\n" "#define HAVE_BCOPY 1" >>confdefs.h
  16750. fi
  16751. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  16752. if test "x$ac_cv_func_memset" = xyes
  16753. then :
  16754. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  16755. fi
  16756. ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
  16757. if test "x$ac_cv_func_memcmp" = xyes
  16758. then :
  16759. printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
  16760. fi
  16761. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  16762. if test "x$ac_cv_func_memcpy" = xyes
  16763. then :
  16764. printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
  16765. fi
  16766. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  16767. if test "x$ac_cv_func_memmove" = xyes
  16768. then :
  16769. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  16770. fi
  16771. ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
  16772. if test "x$ac_cv_func_wcslen" = xyes
  16773. then :
  16774. printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
  16775. fi
  16776. ac_fn_c_check_func "$LINENO" "wcslcpy" "ac_cv_func_wcslcpy"
  16777. if test "x$ac_cv_func_wcslcpy" = xyes
  16778. then :
  16779. printf "%s\n" "#define HAVE_WCSLCPY 1" >>confdefs.h
  16780. fi
  16781. ac_fn_c_check_func "$LINENO" "wcslcat" "ac_cv_func_wcslcat"
  16782. if test "x$ac_cv_func_wcslcat" = xyes
  16783. then :
  16784. printf "%s\n" "#define HAVE_WCSLCAT 1" >>confdefs.h
  16785. fi
  16786. ac_fn_c_check_func "$LINENO" "_wcsdup" "ac_cv_func__wcsdup"
  16787. if test "x$ac_cv_func__wcsdup" = xyes
  16788. then :
  16789. printf "%s\n" "#define HAVE__WCSDUP 1" >>confdefs.h
  16790. fi
  16791. ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup"
  16792. if test "x$ac_cv_func_wcsdup" = xyes
  16793. then :
  16794. printf "%s\n" "#define HAVE_WCSDUP 1" >>confdefs.h
  16795. fi
  16796. ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr"
  16797. if test "x$ac_cv_func_wcsstr" = xyes
  16798. then :
  16799. printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h
  16800. fi
  16801. ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
  16802. if test "x$ac_cv_func_wcscmp" = xyes
  16803. then :
  16804. printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
  16805. fi
  16806. ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp"
  16807. if test "x$ac_cv_func_wcsncmp" = xyes
  16808. then :
  16809. printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h
  16810. fi
  16811. ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
  16812. if test "x$ac_cv_func_wcscasecmp" = xyes
  16813. then :
  16814. printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h
  16815. fi
  16816. ac_fn_c_check_func "$LINENO" "_wcsicmp" "ac_cv_func__wcsicmp"
  16817. if test "x$ac_cv_func__wcsicmp" = xyes
  16818. then :
  16819. printf "%s\n" "#define HAVE__WCSICMP 1" >>confdefs.h
  16820. fi
  16821. ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp"
  16822. if test "x$ac_cv_func_wcsncasecmp" = xyes
  16823. then :
  16824. printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h
  16825. fi
  16826. ac_fn_c_check_func "$LINENO" "_wcsnicmp" "ac_cv_func__wcsnicmp"
  16827. if test "x$ac_cv_func__wcsnicmp" = xyes
  16828. then :
  16829. printf "%s\n" "#define HAVE__WCSNICMP 1" >>confdefs.h
  16830. fi
  16831. ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen"
  16832. if test "x$ac_cv_func_strlen" = xyes
  16833. then :
  16834. printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h
  16835. fi
  16836. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  16837. if test "x$ac_cv_func_strlcpy" = xyes
  16838. then :
  16839. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  16840. fi
  16841. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  16842. if test "x$ac_cv_func_strlcat" = xyes
  16843. then :
  16844. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  16845. fi
  16846. ac_fn_c_check_func "$LINENO" "_strrev" "ac_cv_func__strrev"
  16847. if test "x$ac_cv_func__strrev" = xyes
  16848. then :
  16849. printf "%s\n" "#define HAVE__STRREV 1" >>confdefs.h
  16850. fi
  16851. ac_fn_c_check_func "$LINENO" "_strupr" "ac_cv_func__strupr"
  16852. if test "x$ac_cv_func__strupr" = xyes
  16853. then :
  16854. printf "%s\n" "#define HAVE__STRUPR 1" >>confdefs.h
  16855. fi
  16856. ac_fn_c_check_func "$LINENO" "_strlwr" "ac_cv_func__strlwr"
  16857. if test "x$ac_cv_func__strlwr" = xyes
  16858. then :
  16859. printf "%s\n" "#define HAVE__STRLWR 1" >>confdefs.h
  16860. fi
  16861. ac_fn_c_check_func "$LINENO" "index" "ac_cv_func_index"
  16862. if test "x$ac_cv_func_index" = xyes
  16863. then :
  16864. printf "%s\n" "#define HAVE_INDEX 1" >>confdefs.h
  16865. fi
  16866. ac_fn_c_check_func "$LINENO" "rindex" "ac_cv_func_rindex"
  16867. if test "x$ac_cv_func_rindex" = xyes
  16868. then :
  16869. printf "%s\n" "#define HAVE_RINDEX 1" >>confdefs.h
  16870. fi
  16871. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  16872. if test "x$ac_cv_func_strchr" = xyes
  16873. then :
  16874. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  16875. fi
  16876. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  16877. if test "x$ac_cv_func_strrchr" = xyes
  16878. then :
  16879. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  16880. fi
  16881. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  16882. if test "x$ac_cv_func_strstr" = xyes
  16883. then :
  16884. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  16885. fi
  16886. ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
  16887. if test "x$ac_cv_func_strtok_r" = xyes
  16888. then :
  16889. printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
  16890. fi
  16891. ac_fn_c_check_func "$LINENO" "itoa" "ac_cv_func_itoa"
  16892. if test "x$ac_cv_func_itoa" = xyes
  16893. then :
  16894. printf "%s\n" "#define HAVE_ITOA 1" >>confdefs.h
  16895. fi
  16896. ac_fn_c_check_func "$LINENO" "_ltoa" "ac_cv_func__ltoa"
  16897. if test "x$ac_cv_func__ltoa" = xyes
  16898. then :
  16899. printf "%s\n" "#define HAVE__LTOA 1" >>confdefs.h
  16900. fi
  16901. ac_fn_c_check_func "$LINENO" "_uitoa" "ac_cv_func__uitoa"
  16902. if test "x$ac_cv_func__uitoa" = xyes
  16903. then :
  16904. printf "%s\n" "#define HAVE__UITOA 1" >>confdefs.h
  16905. fi
  16906. ac_fn_c_check_func "$LINENO" "_ultoa" "ac_cv_func__ultoa"
  16907. if test "x$ac_cv_func__ultoa" = xyes
  16908. then :
  16909. printf "%s\n" "#define HAVE__ULTOA 1" >>confdefs.h
  16910. fi
  16911. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  16912. if test "x$ac_cv_func_strtod" = xyes
  16913. then :
  16914. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  16915. fi
  16916. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  16917. if test "x$ac_cv_func_strtol" = xyes
  16918. then :
  16919. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  16920. fi
  16921. ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
  16922. if test "x$ac_cv_func_strtoul" = xyes
  16923. then :
  16924. printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
  16925. fi
  16926. ac_fn_c_check_func "$LINENO" "_i64toa" "ac_cv_func__i64toa"
  16927. if test "x$ac_cv_func__i64toa" = xyes
  16928. then :
  16929. printf "%s\n" "#define HAVE__I64TOA 1" >>confdefs.h
  16930. fi
  16931. ac_fn_c_check_func "$LINENO" "_ui64toa" "ac_cv_func__ui64toa"
  16932. if test "x$ac_cv_func__ui64toa" = xyes
  16933. then :
  16934. printf "%s\n" "#define HAVE__UI64TOA 1" >>confdefs.h
  16935. fi
  16936. ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
  16937. if test "x$ac_cv_func_strtoll" = xyes
  16938. then :
  16939. printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
  16940. fi
  16941. ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
  16942. if test "x$ac_cv_func_strtoull" = xyes
  16943. then :
  16944. printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
  16945. fi
  16946. ac_fn_c_check_func "$LINENO" "atoi" "ac_cv_func_atoi"
  16947. if test "x$ac_cv_func_atoi" = xyes
  16948. then :
  16949. printf "%s\n" "#define HAVE_ATOI 1" >>confdefs.h
  16950. fi
  16951. ac_fn_c_check_func "$LINENO" "atof" "ac_cv_func_atof"
  16952. if test "x$ac_cv_func_atof" = xyes
  16953. then :
  16954. printf "%s\n" "#define HAVE_ATOF 1" >>confdefs.h
  16955. fi
  16956. ac_fn_c_check_func "$LINENO" "strcmp" "ac_cv_func_strcmp"
  16957. if test "x$ac_cv_func_strcmp" = xyes
  16958. then :
  16959. printf "%s\n" "#define HAVE_STRCMP 1" >>confdefs.h
  16960. fi
  16961. ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp"
  16962. if test "x$ac_cv_func_strncmp" = xyes
  16963. then :
  16964. printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h
  16965. fi
  16966. ac_fn_c_check_func "$LINENO" "_stricmp" "ac_cv_func__stricmp"
  16967. if test "x$ac_cv_func__stricmp" = xyes
  16968. then :
  16969. printf "%s\n" "#define HAVE__STRICMP 1" >>confdefs.h
  16970. fi
  16971. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  16972. if test "x$ac_cv_func_strcasecmp" = xyes
  16973. then :
  16974. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  16975. fi
  16976. ac_fn_c_check_func "$LINENO" "_strnicmp" "ac_cv_func__strnicmp"
  16977. if test "x$ac_cv_func__strnicmp" = xyes
  16978. then :
  16979. printf "%s\n" "#define HAVE__STRNICMP 1" >>confdefs.h
  16980. fi
  16981. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  16982. if test "x$ac_cv_func_strncasecmp" = xyes
  16983. then :
  16984. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  16985. fi
  16986. ac_fn_c_check_func "$LINENO" "vsscanf" "ac_cv_func_vsscanf"
  16987. if test "x$ac_cv_func_vsscanf" = xyes
  16988. then :
  16989. printf "%s\n" "#define HAVE_VSSCANF 1" >>confdefs.h
  16990. fi
  16991. ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  16992. if test "x$ac_cv_func_vsnprintf" = xyes
  16993. then :
  16994. printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
  16995. fi
  16996. ac_fn_c_check_func "$LINENO" "fopen64" "ac_cv_func_fopen64"
  16997. if test "x$ac_cv_func_fopen64" = xyes
  16998. then :
  16999. printf "%s\n" "#define HAVE_FOPEN64 1" >>confdefs.h
  17000. fi
  17001. ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
  17002. if test "x$ac_cv_func_fseeko" = xyes
  17003. then :
  17004. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  17005. fi
  17006. ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64"
  17007. if test "x$ac_cv_func_fseeko64" = xyes
  17008. then :
  17009. printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h
  17010. fi
  17011. ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  17012. if test "x$ac_cv_func_sigaction" = xyes
  17013. then :
  17014. printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
  17015. fi
  17016. ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
  17017. if test "x$ac_cv_func_setjmp" = xyes
  17018. then :
  17019. printf "%s\n" "#define HAVE_SETJMP 1" >>confdefs.h
  17020. fi
  17021. ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  17022. if test "x$ac_cv_func_nanosleep" = xyes
  17023. then :
  17024. printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
  17025. fi
  17026. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  17027. if test "x$ac_cv_func_sysconf" = xyes
  17028. then :
  17029. printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
  17030. fi
  17031. ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
  17032. if test "x$ac_cv_func_sysctlbyname" = xyes
  17033. then :
  17034. printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
  17035. fi
  17036. ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
  17037. if test "x$ac_cv_func_getauxval" = xyes
  17038. then :
  17039. printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
  17040. fi
  17041. ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"
  17042. if test "x$ac_cv_func_elf_aux_info" = xyes
  17043. then :
  17044. printf "%s\n" "#define HAVE_ELF_AUX_INFO 1" >>confdefs.h
  17045. fi
  17046. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  17047. if test "x$ac_cv_func_poll" = xyes
  17048. then :
  17049. printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
  17050. fi
  17051. ac_fn_c_check_func "$LINENO" "_Exit" "ac_cv_func__Exit"
  17052. if test "x$ac_cv_func__Exit" = xyes
  17053. then :
  17054. printf "%s\n" "#define HAVE__EXIT 1" >>confdefs.h
  17055. fi
  17056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  17057. printf %s "checking for pow in -lm... " >&6; }
  17058. if test ${ac_cv_lib_m_pow+y}
  17059. then :
  17060. printf %s "(cached) " >&6
  17061. else $as_nop
  17062. ac_check_lib_save_LIBS=$LIBS
  17063. LIBS="-lm $LIBS"
  17064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17065. /* end confdefs.h. */
  17066. /* Override any GCC internal prototype to avoid an error.
  17067. Use char because int might match the return type of a GCC
  17068. builtin and then its argument prototype would still apply. */
  17069. char pow ();
  17070. int
  17071. main (void)
  17072. {
  17073. return pow ();
  17074. ;
  17075. return 0;
  17076. }
  17077. _ACEOF
  17078. if ac_fn_c_try_link "$LINENO"
  17079. then :
  17080. ac_cv_lib_m_pow=yes
  17081. else $as_nop
  17082. ac_cv_lib_m_pow=no
  17083. fi
  17084. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17085. conftest$ac_exeext conftest.$ac_ext
  17086. LIBS=$ac_check_lib_save_LIBS
  17087. fi
  17088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  17089. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  17090. if test "x$ac_cv_lib_m_pow" = xyes
  17091. then :
  17092. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  17093. fi
  17094. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  17095. if test "x$ac_cv_func_acos" = xyes
  17096. then :
  17097. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  17098. fi
  17099. ac_fn_c_check_func "$LINENO" "acosf" "ac_cv_func_acosf"
  17100. if test "x$ac_cv_func_acosf" = xyes
  17101. then :
  17102. printf "%s\n" "#define HAVE_ACOSF 1" >>confdefs.h
  17103. fi
  17104. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  17105. if test "x$ac_cv_func_asin" = xyes
  17106. then :
  17107. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  17108. fi
  17109. ac_fn_c_check_func "$LINENO" "asinf" "ac_cv_func_asinf"
  17110. if test "x$ac_cv_func_asinf" = xyes
  17111. then :
  17112. printf "%s\n" "#define HAVE_ASINF 1" >>confdefs.h
  17113. fi
  17114. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  17115. if test "x$ac_cv_func_atan" = xyes
  17116. then :
  17117. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  17118. fi
  17119. ac_fn_c_check_func "$LINENO" "atanf" "ac_cv_func_atanf"
  17120. if test "x$ac_cv_func_atanf" = xyes
  17121. then :
  17122. printf "%s\n" "#define HAVE_ATANF 1" >>confdefs.h
  17123. fi
  17124. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  17125. if test "x$ac_cv_func_atan2" = xyes
  17126. then :
  17127. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  17128. fi
  17129. ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
  17130. if test "x$ac_cv_func_atan2f" = xyes
  17131. then :
  17132. printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h
  17133. fi
  17134. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  17135. if test "x$ac_cv_func_ceil" = xyes
  17136. then :
  17137. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  17138. fi
  17139. ac_fn_c_check_func "$LINENO" "ceilf" "ac_cv_func_ceilf"
  17140. if test "x$ac_cv_func_ceilf" = xyes
  17141. then :
  17142. printf "%s\n" "#define HAVE_CEILF 1" >>confdefs.h
  17143. fi
  17144. ac_fn_c_check_func "$LINENO" "copysign" "ac_cv_func_copysign"
  17145. if test "x$ac_cv_func_copysign" = xyes
  17146. then :
  17147. printf "%s\n" "#define HAVE_COPYSIGN 1" >>confdefs.h
  17148. fi
  17149. ac_fn_c_check_func "$LINENO" "copysignf" "ac_cv_func_copysignf"
  17150. if test "x$ac_cv_func_copysignf" = xyes
  17151. then :
  17152. printf "%s\n" "#define HAVE_COPYSIGNF 1" >>confdefs.h
  17153. fi
  17154. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  17155. if test "x$ac_cv_func_cos" = xyes
  17156. then :
  17157. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  17158. fi
  17159. ac_fn_c_check_func "$LINENO" "cosf" "ac_cv_func_cosf"
  17160. if test "x$ac_cv_func_cosf" = xyes
  17161. then :
  17162. printf "%s\n" "#define HAVE_COSF 1" >>confdefs.h
  17163. fi
  17164. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  17165. if test "x$ac_cv_func_exp" = xyes
  17166. then :
  17167. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  17168. fi
  17169. ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
  17170. if test "x$ac_cv_func_expf" = xyes
  17171. then :
  17172. printf "%s\n" "#define HAVE_EXPF 1" >>confdefs.h
  17173. fi
  17174. ac_fn_c_check_func "$LINENO" "fabs" "ac_cv_func_fabs"
  17175. if test "x$ac_cv_func_fabs" = xyes
  17176. then :
  17177. printf "%s\n" "#define HAVE_FABS 1" >>confdefs.h
  17178. fi
  17179. ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
  17180. if test "x$ac_cv_func_fabsf" = xyes
  17181. then :
  17182. printf "%s\n" "#define HAVE_FABSF 1" >>confdefs.h
  17183. fi
  17184. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  17185. if test "x$ac_cv_func_floor" = xyes
  17186. then :
  17187. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  17188. fi
  17189. ac_fn_c_check_func "$LINENO" "floorf" "ac_cv_func_floorf"
  17190. if test "x$ac_cv_func_floorf" = xyes
  17191. then :
  17192. printf "%s\n" "#define HAVE_FLOORF 1" >>confdefs.h
  17193. fi
  17194. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  17195. if test "x$ac_cv_func_trunc" = xyes
  17196. then :
  17197. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  17198. fi
  17199. ac_fn_c_check_func "$LINENO" "truncf" "ac_cv_func_truncf"
  17200. if test "x$ac_cv_func_truncf" = xyes
  17201. then :
  17202. printf "%s\n" "#define HAVE_TRUNCF 1" >>confdefs.h
  17203. fi
  17204. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  17205. if test "x$ac_cv_func_fmod" = xyes
  17206. then :
  17207. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  17208. fi
  17209. ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
  17210. if test "x$ac_cv_func_fmodf" = xyes
  17211. then :
  17212. printf "%s\n" "#define HAVE_FMODF 1" >>confdefs.h
  17213. fi
  17214. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  17215. if test "x$ac_cv_func_log" = xyes
  17216. then :
  17217. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  17218. fi
  17219. ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
  17220. if test "x$ac_cv_func_logf" = xyes
  17221. then :
  17222. printf "%s\n" "#define HAVE_LOGF 1" >>confdefs.h
  17223. fi
  17224. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  17225. if test "x$ac_cv_func_log10" = xyes
  17226. then :
  17227. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  17228. fi
  17229. ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
  17230. if test "x$ac_cv_func_log10f" = xyes
  17231. then :
  17232. printf "%s\n" "#define HAVE_LOG10F 1" >>confdefs.h
  17233. fi
  17234. ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
  17235. if test "x$ac_cv_func_lround" = xyes
  17236. then :
  17237. printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h
  17238. fi
  17239. ac_fn_c_check_func "$LINENO" "lroundf" "ac_cv_func_lroundf"
  17240. if test "x$ac_cv_func_lroundf" = xyes
  17241. then :
  17242. printf "%s\n" "#define HAVE_LROUNDF 1" >>confdefs.h
  17243. fi
  17244. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  17245. if test "x$ac_cv_func_pow" = xyes
  17246. then :
  17247. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  17248. fi
  17249. ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
  17250. if test "x$ac_cv_func_powf" = xyes
  17251. then :
  17252. printf "%s\n" "#define HAVE_POWF 1" >>confdefs.h
  17253. fi
  17254. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  17255. if test "x$ac_cv_func_round" = xyes
  17256. then :
  17257. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  17258. fi
  17259. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  17260. if test "x$ac_cv_func_roundf" = xyes
  17261. then :
  17262. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  17263. fi
  17264. ac_fn_c_check_func "$LINENO" "scalbn" "ac_cv_func_scalbn"
  17265. if test "x$ac_cv_func_scalbn" = xyes
  17266. then :
  17267. printf "%s\n" "#define HAVE_SCALBN 1" >>confdefs.h
  17268. fi
  17269. ac_fn_c_check_func "$LINENO" "scalbnf" "ac_cv_func_scalbnf"
  17270. if test "x$ac_cv_func_scalbnf" = xyes
  17271. then :
  17272. printf "%s\n" "#define HAVE_SCALBNF 1" >>confdefs.h
  17273. fi
  17274. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  17275. if test "x$ac_cv_func_sin" = xyes
  17276. then :
  17277. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  17278. fi
  17279. ac_fn_c_check_func "$LINENO" "sinf" "ac_cv_func_sinf"
  17280. if test "x$ac_cv_func_sinf" = xyes
  17281. then :
  17282. printf "%s\n" "#define HAVE_SINF 1" >>confdefs.h
  17283. fi
  17284. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  17285. if test "x$ac_cv_func_sqrt" = xyes
  17286. then :
  17287. printf "%s\n" "#define HAVE_SQRT 1" >>confdefs.h
  17288. fi
  17289. ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
  17290. if test "x$ac_cv_func_sqrtf" = xyes
  17291. then :
  17292. printf "%s\n" "#define HAVE_SQRTF 1" >>confdefs.h
  17293. fi
  17294. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  17295. if test "x$ac_cv_func_tan" = xyes
  17296. then :
  17297. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  17298. fi
  17299. ac_fn_c_check_func "$LINENO" "tanf" "ac_cv_func_tanf"
  17300. if test "x$ac_cv_func_tanf" = xyes
  17301. then :
  17302. printf "%s\n" "#define HAVE_TANF 1" >>confdefs.h
  17303. fi
  17304. if test x$enable_system_iconv = xyes; then
  17305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  17306. printf %s "checking for iconv_open in -liconv... " >&6; }
  17307. if test ${ac_cv_lib_iconv_iconv_open+y}
  17308. then :
  17309. printf %s "(cached) " >&6
  17310. else $as_nop
  17311. ac_check_lib_save_LIBS=$LIBS
  17312. LIBS="-liconv $LIBS"
  17313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17314. /* end confdefs.h. */
  17315. /* Override any GCC internal prototype to avoid an error.
  17316. Use char because int might match the return type of a GCC
  17317. builtin and then its argument prototype would still apply. */
  17318. char iconv_open ();
  17319. int
  17320. main (void)
  17321. {
  17322. return iconv_open ();
  17323. ;
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. if ac_fn_c_try_link "$LINENO"
  17328. then :
  17329. ac_cv_lib_iconv_iconv_open=yes
  17330. else $as_nop
  17331. ac_cv_lib_iconv_iconv_open=no
  17332. fi
  17333. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17334. conftest$ac_exeext conftest.$ac_ext
  17335. LIBS=$ac_check_lib_save_LIBS
  17336. fi
  17337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  17338. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  17339. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  17340. then :
  17341. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  17342. fi
  17343. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  17344. if test "x$ac_cv_func_iconv" = xyes
  17345. then :
  17346. printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
  17347. fi
  17348. fi
  17349. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  17350. "
  17351. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
  17352. then :
  17353. printf "%s\n" "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  17354. fi
  17355. ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  17356. if test "x$ac_cv_header_libunwind_h" = xyes
  17357. then :
  17358. printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h
  17359. fi
  17360. fi
  17361. # Check whether --enable-gcc-atomics was given.
  17362. if test ${enable_gcc_atomics+y}
  17363. then :
  17364. enableval=$enable_gcc_atomics;
  17365. else $as_nop
  17366. enable_gcc_atomics=yes
  17367. fi
  17368. if test x$enable_gcc_atomics = xyes; then
  17369. have_gcc_atomics=no
  17370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  17371. printf %s "checking for GCC builtin atomic operations... " >&6; }
  17372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17373. /* end confdefs.h. */
  17374. int
  17375. main (void)
  17376. {
  17377. int a;
  17378. void *x, *y, *z;
  17379. __sync_lock_test_and_set(&a, 4);
  17380. __sync_lock_test_and_set(&x, y);
  17381. __sync_fetch_and_add(&a, 1);
  17382. __sync_bool_compare_and_swap(&a, 5, 10);
  17383. __sync_bool_compare_and_swap(&x, y, z);
  17384. ;
  17385. return 0;
  17386. }
  17387. _ACEOF
  17388. if ac_fn_c_try_link "$LINENO"
  17389. then :
  17390. have_gcc_atomics=yes
  17391. fi
  17392. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17393. conftest$ac_exeext conftest.$ac_ext
  17394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  17395. printf "%s\n" "$have_gcc_atomics" >&6; }
  17396. if test x$have_gcc_atomics = xyes; then
  17397. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17398. else
  17399. # See if we have the minimum operation needed for GCC atomics
  17400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17401. /* end confdefs.h. */
  17402. int
  17403. main (void)
  17404. {
  17405. int a;
  17406. __sync_lock_test_and_set(&a, 1);
  17407. __sync_lock_release(&a);
  17408. ;
  17409. return 0;
  17410. }
  17411. _ACEOF
  17412. if ac_fn_c_try_link "$LINENO"
  17413. then :
  17414. have_gcc_sync_lock_test_and_set=yes
  17415. fi
  17416. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17417. conftest$ac_exeext conftest.$ac_ext
  17418. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  17419. printf "%s\n" "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  17420. fi
  17421. fi
  17422. fi
  17423. # Standard C sources
  17424. SOURCES="$SOURCES $srcdir/src/*.c"
  17425. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  17426. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  17427. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  17428. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  17429. SOURCES="$SOURCES $srcdir/src/events/*.c"
  17430. SOURCES="$SOURCES $srcdir/src/file/*.c"
  17431. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  17432. SOURCES="$SOURCES $srcdir/src/hidapi/*.c"
  17433. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  17434. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  17435. SOURCES="$SOURCES $srcdir/src/misc/*.c"
  17436. SOURCES="$SOURCES $srcdir/src/power/*.c"
  17437. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  17438. SOURCES="$SOURCES $srcdir/src/render/*.c"
  17439. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  17440. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  17441. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  17442. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  17443. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  17444. SOURCES="$SOURCES $srcdir/src/video/*.c"
  17445. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  17446. SOURCES="$SOURCES $srcdir/src/locale/*.c"
  17447. case "$host" in
  17448. *-*-emscripten*)
  17449. default_atomic=no
  17450. ;;
  17451. *)
  17452. default_atomic=yes
  17453. ;;
  17454. esac
  17455. # Check whether --enable-atomic was given.
  17456. if test ${enable_atomic+y}
  17457. then :
  17458. enableval=$enable_atomic;
  17459. else $as_nop
  17460. enable_atomic=$default_atomic
  17461. fi
  17462. if test x$enable_atomic != xyes; then
  17463. printf "%s\n" "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  17464. else
  17465. SUMMARY_modules="${SUMMARY_modules} atomic"
  17466. fi
  17467. # Check whether --enable-audio was given.
  17468. if test ${enable_audio+y}
  17469. then :
  17470. enableval=$enable_audio;
  17471. else $as_nop
  17472. enable_audio=yes
  17473. fi
  17474. if test x$enable_audio != xyes; then
  17475. printf "%s\n" "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  17476. else
  17477. SUMMARY_modules="${SUMMARY_modules} audio"
  17478. fi
  17479. # Check whether --enable-video was given.
  17480. if test ${enable_video+y}
  17481. then :
  17482. enableval=$enable_video;
  17483. else $as_nop
  17484. enable_video=yes
  17485. fi
  17486. if test x$enable_video != xyes; then
  17487. printf "%s\n" "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  17488. else
  17489. SUMMARY_modules="${SUMMARY_modules} video"
  17490. fi
  17491. # Check whether --enable-render was given.
  17492. if test ${enable_render+y}
  17493. then :
  17494. enableval=$enable_render;
  17495. else $as_nop
  17496. enable_render=yes
  17497. fi
  17498. if test x$enable_render != xyes; then
  17499. printf "%s\n" "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  17500. else
  17501. SUMMARY_modules="${SUMMARY_modules} render"
  17502. fi
  17503. # Check whether --enable-events was given.
  17504. if test ${enable_events+y}
  17505. then :
  17506. enableval=$enable_events;
  17507. else $as_nop
  17508. enable_events=yes
  17509. fi
  17510. if test x$enable_events != xyes; then
  17511. printf "%s\n" "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  17512. else
  17513. SUMMARY_modules="${SUMMARY_modules} events"
  17514. fi
  17515. # Check whether --enable-joystick was given.
  17516. if test ${enable_joystick+y}
  17517. then :
  17518. enableval=$enable_joystick;
  17519. else $as_nop
  17520. enable_joystick=yes
  17521. fi
  17522. if test x$enable_joystick != xyes; then
  17523. printf "%s\n" "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  17524. else
  17525. SUMMARY_modules="${SUMMARY_modules} joystick"
  17526. fi
  17527. # Check whether --enable-haptic was given.
  17528. if test ${enable_haptic+y}
  17529. then :
  17530. enableval=$enable_haptic;
  17531. else $as_nop
  17532. enable_haptic=yes
  17533. fi
  17534. if test x$enable_haptic != xyes; then
  17535. printf "%s\n" "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  17536. else
  17537. SUMMARY_modules="${SUMMARY_modules} haptic"
  17538. fi
  17539. # Check whether --enable-hidapi was given.
  17540. if test ${enable_hidapi+y}
  17541. then :
  17542. enableval=$enable_hidapi;
  17543. else $as_nop
  17544. enable_hidapi=yes
  17545. fi
  17546. if test x$enable_hidapi != xyes; then
  17547. printf "%s\n" "#define SDL_HIDAPI_DISABLED 1" >>confdefs.h
  17548. else
  17549. SUMMARY_modules="${SUMMARY_modules} hidapi"
  17550. fi
  17551. # Check whether --enable-sensor was given.
  17552. if test ${enable_sensor+y}
  17553. then :
  17554. enableval=$enable_sensor;
  17555. else $as_nop
  17556. enable_sensor=yes
  17557. fi
  17558. if test x$enable_sensor != xyes; then
  17559. printf "%s\n" "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  17560. else
  17561. SUMMARY_modules="${SUMMARY_modules} sensor"
  17562. fi
  17563. # Check whether --enable-power was given.
  17564. if test ${enable_power+y}
  17565. then :
  17566. enableval=$enable_power;
  17567. else $as_nop
  17568. enable_power=yes
  17569. fi
  17570. if test x$enable_power != xyes; then
  17571. printf "%s\n" "#define SDL_POWER_DISABLED 1" >>confdefs.h
  17572. else
  17573. SUMMARY_modules="${SUMMARY_modules} power"
  17574. fi
  17575. # Check whether --enable-filesystem was given.
  17576. if test ${enable_filesystem+y}
  17577. then :
  17578. enableval=$enable_filesystem;
  17579. else $as_nop
  17580. enable_filesystem=yes
  17581. fi
  17582. if test x$enable_filesystem != xyes; then
  17583. printf "%s\n" "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  17584. else
  17585. SUMMARY_modules="${SUMMARY_modules} filesystem"
  17586. fi
  17587. # Many subsystems depend on threads, so leave them enabled by default
  17588. #AC_ARG_ENABLE(threads,
  17589. #[AS_HELP_STRING([--enable-threads], [Enable the threading subsystem [default=yes]])],
  17590. # , enable_threads=yes)
  17591. enable_threads=yes
  17592. if test x$enable_threads != xyes; then
  17593. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  17594. else
  17595. SUMMARY_modules="${SUMMARY_modules} threads"
  17596. fi
  17597. # Check whether --enable-timers was given.
  17598. if test ${enable_timers+y}
  17599. then :
  17600. enableval=$enable_timers;
  17601. else $as_nop
  17602. enable_timers=yes
  17603. fi
  17604. if test x$enable_timers != xyes; then
  17605. printf "%s\n" "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  17606. else
  17607. SUMMARY_modules="${SUMMARY_modules} timers"
  17608. fi
  17609. # Check whether --enable-file was given.
  17610. if test ${enable_file+y}
  17611. then :
  17612. enableval=$enable_file;
  17613. else $as_nop
  17614. enable_file=yes
  17615. fi
  17616. if test x$enable_file != xyes; then
  17617. printf "%s\n" "#define SDL_FILE_DISABLED 1" >>confdefs.h
  17618. else
  17619. SUMMARY_modules="${SUMMARY_modules} file"
  17620. fi
  17621. # Check whether --enable-misc was given.
  17622. if test ${enable_misc+y}
  17623. then :
  17624. enableval=$enable_misc;
  17625. else $as_nop
  17626. enable_misc=yes
  17627. fi
  17628. if test x$enable_misc != xyes; then
  17629. printf "%s\n" "#define SDL_MISC_DISABLED 1" >>confdefs.h
  17630. else
  17631. SUMMARY_modules="${SUMMARY_modules} misc"
  17632. fi
  17633. # Check whether --enable-locale was given.
  17634. if test ${enable_locale+y}
  17635. then :
  17636. enableval=$enable_locale;
  17637. else $as_nop
  17638. enable_locale=yes
  17639. fi
  17640. if test x$enable_locale != xyes; then
  17641. printf "%s\n" "#define SDL_LOCALE_DISABLED 1" >>confdefs.h
  17642. else
  17643. SUMMARY_modules="${SUMMARY_modules} locale"
  17644. fi
  17645. # Check whether --enable-loadso was given.
  17646. if test ${enable_loadso+y}
  17647. then :
  17648. enableval=$enable_loadso;
  17649. else $as_nop
  17650. enable_loadso=yes
  17651. fi
  17652. if test x$enable_loadso != xyes; then
  17653. printf "%s\n" "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  17654. else
  17655. SUMMARY_modules="${SUMMARY_modules} loadso"
  17656. fi
  17657. # Check whether --enable-cpuinfo was given.
  17658. if test ${enable_cpuinfo+y}
  17659. then :
  17660. enableval=$enable_cpuinfo;
  17661. else $as_nop
  17662. enable_cpuinfo=yes
  17663. fi
  17664. if test x$enable_cpuinfo != xyes; then
  17665. printf "%s\n" "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  17666. else
  17667. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  17668. fi
  17669. # Check whether --enable-assembly was given.
  17670. if test ${enable_assembly+y}
  17671. then :
  17672. enableval=$enable_assembly;
  17673. else $as_nop
  17674. enable_assembly=yes
  17675. fi
  17676. if test x$enable_assembly = xyes; then
  17677. SUMMARY_modules="${SUMMARY_modules} assembly"
  17678. # Make sure that we don't generate floating point code that would
  17679. # cause illegal instruction exceptions on older processors
  17680. case "$host" in
  17681. *-*-darwin*)
  17682. # Don't need to worry about Apple hardware, it's all SSE capable
  17683. default_ssemath=yes
  17684. ;;
  17685. *64-*-*)
  17686. # x86 64-bit architectures all have SSE instructions
  17687. default_ssemath=yes
  17688. ;;
  17689. *)
  17690. default_ssemath=no
  17691. ;;
  17692. esac
  17693. # Check whether --enable-ssemath was given.
  17694. if test ${enable_ssemath+y}
  17695. then :
  17696. enableval=$enable_ssemath;
  17697. else $as_nop
  17698. enable_ssemath=$default_ssemath
  17699. fi
  17700. if test x$enable_ssemath = xno; then
  17701. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  17702. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  17703. fi
  17704. fi
  17705. # Check whether --enable-mmx was given.
  17706. if test ${enable_mmx+y}
  17707. then :
  17708. enableval=$enable_mmx;
  17709. else $as_nop
  17710. enable_mmx=yes
  17711. fi
  17712. if test x$enable_mmx = xyes; then
  17713. save_CFLAGS="$CFLAGS"
  17714. have_gcc_mmx=no
  17715. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  17716. printf %s "checking for GCC -mmmx option... " >&6; }
  17717. mmx_CFLAGS="-mmmx"
  17718. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  17719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17720. /* end confdefs.h. */
  17721. #ifdef __MINGW32__
  17722. #include <_mingw.h>
  17723. #ifdef __MINGW64_VERSION_MAJOR
  17724. #include <intrin.h>
  17725. #else
  17726. #include <mmintrin.h>
  17727. #endif
  17728. #else
  17729. #include <mmintrin.h>
  17730. #endif
  17731. #ifndef __MMX__
  17732. #error Assembler CPP flag not enabled
  17733. #endif
  17734. int
  17735. main (void)
  17736. {
  17737. ;
  17738. return 0;
  17739. }
  17740. _ACEOF
  17741. if ac_fn_c_try_compile "$LINENO"
  17742. then :
  17743. have_gcc_mmx=yes
  17744. fi
  17745. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  17747. printf "%s\n" "$have_gcc_mmx" >&6; }
  17748. CFLAGS="$save_CFLAGS"
  17749. if test x$have_gcc_mmx = xyes; then
  17750. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  17751. SUMMARY_math="${SUMMARY_math} mmx"
  17752. fi
  17753. fi
  17754. # Check whether --enable-3dnow was given.
  17755. if test ${enable_3dnow+y}
  17756. then :
  17757. enableval=$enable_3dnow;
  17758. else $as_nop
  17759. enable_3dnow=yes
  17760. fi
  17761. if test x$enable_3dnow = xyes; then
  17762. save_CFLAGS="$CFLAGS"
  17763. have_gcc_3dnow=no
  17764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  17765. printf %s "checking for GCC -m3dnow option... " >&6; }
  17766. amd3dnow_CFLAGS="-m3dnow"
  17767. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  17768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17769. /* end confdefs.h. */
  17770. #include <mm3dnow.h>
  17771. #ifndef __3dNOW__
  17772. #error Assembler CPP flag not enabled
  17773. #endif
  17774. int
  17775. main (void)
  17776. {
  17777. void *p = 0;
  17778. _m_prefetch(p);
  17779. ;
  17780. return 0;
  17781. }
  17782. _ACEOF
  17783. if ac_fn_c_try_link "$LINENO"
  17784. then :
  17785. have_gcc_3dnow=yes
  17786. fi
  17787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17788. conftest$ac_exeext conftest.$ac_ext
  17789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  17790. printf "%s\n" "$have_gcc_3dnow" >&6; }
  17791. CFLAGS="$save_CFLAGS"
  17792. if test x$have_gcc_3dnow = xyes; then
  17793. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  17794. SUMMARY_math="${SUMMARY_math} 3dnow"
  17795. fi
  17796. fi
  17797. # Check whether --enable-sse was given.
  17798. if test ${enable_sse+y}
  17799. then :
  17800. enableval=$enable_sse;
  17801. else $as_nop
  17802. enable_sse=yes
  17803. fi
  17804. if test x$enable_sse = xyes; then
  17805. save_CFLAGS="$CFLAGS"
  17806. have_gcc_sse=no
  17807. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  17808. printf %s "checking for GCC -msse option... " >&6; }
  17809. sse_CFLAGS="-msse"
  17810. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  17811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17812. /* end confdefs.h. */
  17813. #ifdef __MINGW32__
  17814. #include <_mingw.h>
  17815. #ifdef __MINGW64_VERSION_MAJOR
  17816. #include <intrin.h>
  17817. #else
  17818. #include <xmmintrin.h>
  17819. #endif
  17820. #else
  17821. #include <xmmintrin.h>
  17822. #endif
  17823. #ifndef __SSE__
  17824. #error Assembler CPP flag not enabled
  17825. #endif
  17826. int
  17827. main (void)
  17828. {
  17829. ;
  17830. return 0;
  17831. }
  17832. _ACEOF
  17833. if ac_fn_c_try_compile "$LINENO"
  17834. then :
  17835. have_gcc_sse=yes
  17836. fi
  17837. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  17839. printf "%s\n" "$have_gcc_sse" >&6; }
  17840. CFLAGS="$save_CFLAGS"
  17841. if test x$have_gcc_sse = xyes; then
  17842. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  17843. SUMMARY_math="${SUMMARY_math} sse"
  17844. fi
  17845. fi
  17846. # Check whether --enable-sse2 was given.
  17847. if test ${enable_sse2+y}
  17848. then :
  17849. enableval=$enable_sse2;
  17850. else $as_nop
  17851. enable_sse2=$default_ssemath
  17852. fi
  17853. if test x$enable_sse2 = xyes; then
  17854. save_CFLAGS="$CFLAGS"
  17855. have_gcc_sse2=no
  17856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  17857. printf %s "checking for GCC -msse2 option... " >&6; }
  17858. sse2_CFLAGS="-msse2"
  17859. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  17860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17861. /* end confdefs.h. */
  17862. #ifdef __MINGW32__
  17863. #include <_mingw.h>
  17864. #ifdef __MINGW64_VERSION_MAJOR
  17865. #include <intrin.h>
  17866. #else
  17867. #include <emmintrin.h>
  17868. #endif
  17869. #else
  17870. #include <emmintrin.h>
  17871. #endif
  17872. #ifndef __SSE2__
  17873. #error Assembler CPP flag not enabled
  17874. #endif
  17875. int
  17876. main (void)
  17877. {
  17878. ;
  17879. return 0;
  17880. }
  17881. _ACEOF
  17882. if ac_fn_c_try_compile "$LINENO"
  17883. then :
  17884. have_gcc_sse2=yes
  17885. fi
  17886. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  17888. printf "%s\n" "$have_gcc_sse2" >&6; }
  17889. CFLAGS="$save_CFLAGS"
  17890. if test x$have_gcc_sse2 = xyes; then
  17891. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  17892. SUMMARY_math="${SUMMARY_math} sse2"
  17893. fi
  17894. fi
  17895. # Check whether --enable-sse3 was given.
  17896. if test ${enable_sse3+y}
  17897. then :
  17898. enableval=$enable_sse3;
  17899. else $as_nop
  17900. enable_sse3=$default_ssemath
  17901. fi
  17902. if test x$enable_sse3 = xyes; then
  17903. save_CFLAGS="$CFLAGS"
  17904. have_gcc_sse3=no
  17905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  17906. printf %s "checking for GCC -msse3 option... " >&6; }
  17907. sse3_CFLAGS="-msse3"
  17908. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  17909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17910. /* end confdefs.h. */
  17911. #ifdef __MINGW32__
  17912. #include <_mingw.h>
  17913. #ifdef __MINGW64_VERSION_MAJOR
  17914. #include <intrin.h>
  17915. #else
  17916. #include <pmmintrin.h>
  17917. #endif
  17918. #else
  17919. #include <pmmintrin.h>
  17920. #endif
  17921. #ifndef __SSE2__
  17922. #error Assembler CPP flag not enabled
  17923. #endif
  17924. int
  17925. main (void)
  17926. {
  17927. ;
  17928. return 0;
  17929. }
  17930. _ACEOF
  17931. if ac_fn_c_try_compile "$LINENO"
  17932. then :
  17933. have_gcc_sse3=yes
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  17937. printf "%s\n" "$have_gcc_sse3" >&6; }
  17938. CFLAGS="$save_CFLAGS"
  17939. if test x$have_gcc_sse3 = xyes; then
  17940. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  17941. SUMMARY_math="${SUMMARY_math} sse3"
  17942. fi
  17943. fi
  17944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for immintrin.h" >&5
  17945. printf %s "checking for immintrin.h... " >&6; }
  17946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17947. /* end confdefs.h. */
  17948. #include <immintrin.h>
  17949. int
  17950. main (void)
  17951. {
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_compile "$LINENO"
  17957. then :
  17958. have_immintrin_h_hdr=yes
  17959. else $as_nop
  17960. have_immintrin_h_hdr=no
  17961. fi
  17962. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_immintrin_h_hdr" >&5
  17964. printf "%s\n" "$have_immintrin_h_hdr" >&6; }
  17965. if test x$have_immintrin_h_hdr = xyes; then
  17966. printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  17967. fi
  17968. # Check whether --enable-altivec was given.
  17969. if test ${enable_altivec+y}
  17970. then :
  17971. enableval=$enable_altivec;
  17972. else $as_nop
  17973. enable_altivec=yes
  17974. fi
  17975. if test x$enable_altivec = xyes; then
  17976. save_CFLAGS="$CFLAGS"
  17977. have_gcc_altivec=no
  17978. have_altivec_h_hdr=no
  17979. altivec_CFLAGS="-maltivec"
  17980. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  17981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  17982. printf %s "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  17983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17984. /* end confdefs.h. */
  17985. #include <altivec.h>
  17986. vector unsigned int vzero() {
  17987. return vec_splat_u32(0);
  17988. }
  17989. int
  17990. main (void)
  17991. {
  17992. ;
  17993. return 0;
  17994. }
  17995. _ACEOF
  17996. if ac_fn_c_try_compile "$LINENO"
  17997. then :
  17998. have_gcc_altivec=yes
  17999. have_altivec_h_hdr=yes
  18000. fi
  18001. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18002. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18003. printf "%s\n" "$have_gcc_altivec" >&6; }
  18004. if test x$have_gcc_altivec = xno; then
  18005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  18006. printf %s "checking for Altivec with GCC -maltivec option... " >&6; }
  18007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18008. /* end confdefs.h. */
  18009. vector unsigned int vzero() {
  18010. return vec_splat_u32(0);
  18011. }
  18012. int
  18013. main (void)
  18014. {
  18015. ;
  18016. return 0;
  18017. }
  18018. _ACEOF
  18019. if ac_fn_c_try_compile "$LINENO"
  18020. then :
  18021. have_gcc_altivec=yes
  18022. fi
  18023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18025. printf "%s\n" "$have_gcc_altivec" >&6; }
  18026. fi
  18027. if test x$have_gcc_altivec = xno; then
  18028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  18029. printf %s "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  18030. altivec_CFLAGS="-faltivec"
  18031. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  18032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18033. /* end confdefs.h. */
  18034. #include <altivec.h>
  18035. vector unsigned int vzero() {
  18036. return vec_splat_u32(0);
  18037. }
  18038. int
  18039. main (void)
  18040. {
  18041. ;
  18042. return 0;
  18043. }
  18044. _ACEOF
  18045. if ac_fn_c_try_compile "$LINENO"
  18046. then :
  18047. have_gcc_altivec=yes
  18048. have_altivec_h_hdr=yes
  18049. fi
  18050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18052. printf "%s\n" "$have_gcc_altivec" >&6; }
  18053. fi
  18054. if test x$have_gcc_altivec = xno; then
  18055. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  18056. printf %s "checking for Altivec with GCC -faltivec option... " >&6; }
  18057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18058. /* end confdefs.h. */
  18059. vector unsigned int vzero() {
  18060. return vec_splat_u32(0);
  18061. }
  18062. int
  18063. main (void)
  18064. {
  18065. ;
  18066. return 0;
  18067. }
  18068. _ACEOF
  18069. if ac_fn_c_try_compile "$LINENO"
  18070. then :
  18071. have_gcc_altivec=yes
  18072. fi
  18073. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  18075. printf "%s\n" "$have_gcc_altivec" >&6; }
  18076. fi
  18077. CFLAGS="$save_CFLAGS"
  18078. if test x$have_gcc_altivec = xyes; then
  18079. printf "%s\n" "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  18080. if test x$have_altivec_h_hdr = xyes; then
  18081. printf "%s\n" "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  18082. fi
  18083. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  18084. SUMMARY_math="${SUMMARY_math} altivec"
  18085. fi
  18086. fi
  18087. fi
  18088. # Check whether --enable-lsx was given.
  18089. if test ${enable_lsx+y}
  18090. then :
  18091. enableval=$enable_lsx;
  18092. else $as_nop
  18093. enable_lsx=yes
  18094. fi
  18095. if test x$enable_lsx = xyes; then
  18096. save_CFLAGS="$CFLAGS"
  18097. have_gcc_lsx=no
  18098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlsx option" >&5
  18099. printf %s "checking for GCC -mlsx option... " >&6; }
  18100. lsx_CFLAGS="-mlsx"
  18101. CFLAGS="$save_CFLAGS $lsx_CFLAGS"
  18102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18103. /* end confdefs.h. */
  18104. #ifndef __loongarch_sx
  18105. #error Assembler CPP flag not enabled
  18106. #endif
  18107. int
  18108. main (void)
  18109. {
  18110. ;
  18111. return 0;
  18112. }
  18113. _ACEOF
  18114. if ac_fn_c_try_compile "$LINENO"
  18115. then :
  18116. have_gcc_lsx=yes
  18117. fi
  18118. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18119. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lsx" >&5
  18120. printf "%s\n" "$have_gcc_lsx" >&6; }
  18121. CFLAGS="$save_CFLAGS"
  18122. if test x$have_gcc_lsx = xyes; then
  18123. EXTRA_CFLAGS="$EXTRA_CFLAGS $lsx_CFLAGS"
  18124. SUMMARY_math="${SUMMARY_math} lsx"
  18125. fi
  18126. fi
  18127. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsxintrin.h" >&5
  18128. printf %s "checking for lsxintrin.h... " >&6; }
  18129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18130. /* end confdefs.h. */
  18131. #include <lsxintrin.h>
  18132. int
  18133. main (void)
  18134. {
  18135. ;
  18136. return 0;
  18137. }
  18138. _ACEOF
  18139. if ac_fn_c_try_compile "$LINENO"
  18140. then :
  18141. have_lsxintrin_h_hdr=yes
  18142. else $as_nop
  18143. have_lsxintrin_h_hdr=no
  18144. fi
  18145. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lsxintrin_h_hdr" >&5
  18147. printf "%s\n" "$have_lsxintrin_h_hdr" >&6; }
  18148. if test x$have_lsxintrin_h_hdr = xyes; then
  18149. printf "%s\n" "#define HAVE_LSXINTRIN_H 1" >>confdefs.h
  18150. fi
  18151. # Check whether --enable-lasx was given.
  18152. if test ${enable_lasx+y}
  18153. then :
  18154. enableval=$enable_lasx;
  18155. else $as_nop
  18156. enable_LASX=yes
  18157. fi
  18158. if test x$enable_LASX = xyes; then
  18159. save_CFLAGS="$CFLAGS"
  18160. have_gcc_lasx=no
  18161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mlasx option" >&5
  18162. printf %s "checking for GCC -mlasx option... " >&6; }
  18163. lasx_CFLAGS="-mlasx"
  18164. CFLAGS="$save_CFLAGS $lasx_CFLAGS"
  18165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18166. /* end confdefs.h. */
  18167. #ifndef __loongarch_asx
  18168. #error Assembler CPP flag not enabled
  18169. #endif
  18170. int
  18171. main (void)
  18172. {
  18173. ;
  18174. return 0;
  18175. }
  18176. _ACEOF
  18177. if ac_fn_c_try_compile "$LINENO"
  18178. then :
  18179. have_gcc_lasx=yes
  18180. fi
  18181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_lasx" >&5
  18183. printf "%s\n" "$have_gcc_lasx" >&6; }
  18184. CFLAGS="$save_CFLAGS"
  18185. if test x$have_gcc_lasx = xyes; then
  18186. EXTRA_CFLAGS="$EXTRA_CFLAGS $lasx_CFLAGS"
  18187. SUMMARY_math="${SUMMARY_math} lasx"
  18188. fi
  18189. fi
  18190. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lasxintrin.h" >&5
  18191. printf %s "checking for lasxintrin.h... " >&6; }
  18192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18193. /* end confdefs.h. */
  18194. #include <lasxintrin.h>
  18195. int
  18196. main (void)
  18197. {
  18198. ;
  18199. return 0;
  18200. }
  18201. _ACEOF
  18202. if ac_fn_c_try_compile "$LINENO"
  18203. then :
  18204. have_lasxintrin_h_hdr=yes
  18205. else $as_nop
  18206. have_lasxintrin_h_hdr=no
  18207. fi
  18208. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_lasxintrin_h_hdr" >&5
  18210. printf "%s\n" "$have_lasxintrin_h_hdr" >&6; }
  18211. if test x$have_lasxintrin_h_hdr = xyes; then
  18212. printf "%s\n" "#define HAVE_LASXINTRIN_H 1" >>confdefs.h
  18213. fi
  18214. CheckOSS()
  18215. {
  18216. # Check whether --enable-oss was given.
  18217. if test ${enable_oss+y}
  18218. then :
  18219. enableval=$enable_oss;
  18220. else $as_nop
  18221. enable_oss=maybe
  18222. fi
  18223. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  18224. # use sndio instead. So on there, we default to disabled. You can force
  18225. # it on if you really want, though.
  18226. if test x$enable_oss = xmaybe; then
  18227. enable_oss=yes
  18228. fi
  18229. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18231. printf %s "checking for OSS audio support... " >&6; }
  18232. have_oss=no
  18233. if test x$have_oss != xyes; then
  18234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18235. /* end confdefs.h. */
  18236. #include <sys/soundcard.h>
  18237. int
  18238. main (void)
  18239. {
  18240. int arg = SNDCTL_DSP_SETFRAGMENT;
  18241. ;
  18242. return 0;
  18243. }
  18244. _ACEOF
  18245. if ac_fn_c_try_compile "$LINENO"
  18246. then :
  18247. have_oss=yes
  18248. fi
  18249. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18250. fi
  18251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18252. printf "%s\n" "$have_oss" >&6; }
  18253. if test x$have_oss = xyes; then
  18254. SUMMARY_audio="${SUMMARY_audio} oss"
  18255. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18256. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18257. have_audio=yes
  18258. # We may need to link with ossaudio emulation library
  18259. case "$host" in
  18260. *-*-netbsd*)
  18261. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18262. esac
  18263. fi
  18264. fi
  18265. }
  18266. CheckALSA()
  18267. {
  18268. # Check whether --enable-alsa was given.
  18269. if test ${enable_alsa+y}
  18270. then :
  18271. enableval=$enable_alsa;
  18272. else $as_nop
  18273. enable_alsa=yes
  18274. fi
  18275. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18276. alsa_save_CFLAGS="$CFLAGS"
  18277. alsa_save_LDFLAGS="$LDFLAGS"
  18278. alsa_save_LIBS="$LIBS"
  18279. alsa_found=yes
  18280. # Check whether --with-alsa-prefix was given.
  18281. if test ${with_alsa_prefix+y}
  18282. then :
  18283. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18284. else $as_nop
  18285. alsa_prefix=""
  18286. fi
  18287. # Check whether --with-alsa-inc-prefix was given.
  18288. if test ${with_alsa_inc_prefix+y}
  18289. then :
  18290. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18291. else $as_nop
  18292. alsa_inc_prefix=""
  18293. fi
  18294. # Check whether --enable-alsatest was given.
  18295. if test ${enable_alsatest+y}
  18296. then :
  18297. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18298. else $as_nop
  18299. enable_alsatest=yes
  18300. fi
  18301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18302. printf %s "checking for ALSA CFLAGS... " >&6; }
  18303. if test "$alsa_inc_prefix" != "" ; then
  18304. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18305. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18306. fi
  18307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18308. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18310. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18311. if test "$alsa_prefix" != "" ; then
  18312. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18313. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18314. fi
  18315. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18316. LIBS=`echo $LIBS | sed 's/-lm//'`
  18317. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18318. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18319. LIBS=`echo $LIBS | sed 's/ //'`
  18320. LIBS="$ALSA_LIBS $LIBS"
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18322. printf "%s\n" "$ALSA_LIBS" >&6; }
  18323. min_alsa_version=1.0.11
  18324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18325. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18326. no_alsa=""
  18327. alsa_min_major_version=`echo $min_alsa_version | \
  18328. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18329. alsa_min_minor_version=`echo $min_alsa_version | \
  18330. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18331. alsa_min_micro_version=`echo $min_alsa_version | \
  18332. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18333. ac_ext=c
  18334. ac_cpp='$CPP $CPPFLAGS'
  18335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18339. /* end confdefs.h. */
  18340. #include <alsa/asoundlib.h>
  18341. int
  18342. main (void)
  18343. {
  18344. /* ensure backward compatibility */
  18345. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18346. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18347. #endif
  18348. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18349. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18350. #endif
  18351. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18352. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18353. #endif
  18354. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18355. exit(0);
  18356. # else
  18357. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18358. # error not present
  18359. # endif
  18360. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18361. exit(0);
  18362. # else
  18363. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18364. # error not present
  18365. # endif
  18366. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18367. # error not present
  18368. # endif
  18369. # endif
  18370. # endif
  18371. exit(0);
  18372. ;
  18373. return 0;
  18374. }
  18375. _ACEOF
  18376. if ac_fn_c_try_compile "$LINENO"
  18377. then :
  18378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18379. printf "%s\n" "found." >&6; }
  18380. else $as_nop
  18381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18382. printf "%s\n" "not present." >&6; }
  18383. alsa_found=no
  18384. fi
  18385. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18386. ac_ext=c
  18387. ac_cpp='$CPP $CPPFLAGS'
  18388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18391. if test "x$enable_alsatest" = "xyes"; then
  18392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18393. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18394. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18395. then :
  18396. printf %s "(cached) " >&6
  18397. else $as_nop
  18398. ac_check_lib_save_LIBS=$LIBS
  18399. LIBS="-lasound $LIBS"
  18400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18401. /* end confdefs.h. */
  18402. /* Override any GCC internal prototype to avoid an error.
  18403. Use char because int might match the return type of a GCC
  18404. builtin and then its argument prototype would still apply. */
  18405. char snd_ctl_open ();
  18406. int
  18407. main (void)
  18408. {
  18409. return snd_ctl_open ();
  18410. ;
  18411. return 0;
  18412. }
  18413. _ACEOF
  18414. if ac_fn_c_try_link "$LINENO"
  18415. then :
  18416. ac_cv_lib_asound_snd_ctl_open=yes
  18417. else $as_nop
  18418. ac_cv_lib_asound_snd_ctl_open=no
  18419. fi
  18420. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18421. conftest$ac_exeext conftest.$ac_ext
  18422. LIBS=$ac_check_lib_save_LIBS
  18423. fi
  18424. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18425. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18426. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18427. then :
  18428. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18429. LIBS="-lasound $LIBS"
  18430. else $as_nop
  18431. alsa_found=no
  18432. fi
  18433. fi
  18434. if test "x$alsa_found" = "xyes" ; then
  18435. have_alsa=yes
  18436. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18437. LIBS=`echo $LIBS | sed 's/ //'`
  18438. LIBS="-lasound $LIBS"
  18439. fi
  18440. if test "x$alsa_found" = "xno" ; then
  18441. have_alsa=no
  18442. CFLAGS="$alsa_save_CFLAGS"
  18443. LDFLAGS="$alsa_save_LDFLAGS"
  18444. LIBS="$alsa_save_LIBS"
  18445. ALSA_CFLAGS=""
  18446. ALSA_LIBS=""
  18447. fi
  18448. # Restore all flags from before the ALSA detection runs
  18449. CFLAGS="$alsa_save_CFLAGS"
  18450. LDFLAGS="$alsa_save_LDFLAGS"
  18451. LIBS="$alsa_save_LIBS"
  18452. if test x$have_alsa = xyes; then
  18453. # Check whether --enable-alsa-shared was given.
  18454. if test ${enable_alsa_shared+y}
  18455. then :
  18456. enableval=$enable_alsa_shared;
  18457. else $as_nop
  18458. enable_alsa_shared=yes
  18459. fi
  18460. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18461. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18462. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18463. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18464. if test x$have_loadso != xyes && \
  18465. test x$enable_alsa_shared = xyes; then
  18466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18467. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18468. fi
  18469. if test x$have_loadso = xyes && \
  18470. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18471. echo "-- dynamic libasound -> $alsa_lib"
  18472. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18473. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18474. else
  18475. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18476. SUMMARY_audio="${SUMMARY_audio} alsa"
  18477. fi
  18478. have_audio=yes
  18479. fi
  18480. fi
  18481. }
  18482. CheckJACK()
  18483. {
  18484. # Check whether --enable-jack was given.
  18485. if test ${enable_jack+y}
  18486. then :
  18487. enableval=$enable_jack;
  18488. else $as_nop
  18489. enable_jack=yes
  18490. fi
  18491. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18492. pkg_failed=no
  18493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18494. printf %s "checking for jack >= 0.125... " >&6; }
  18495. if test -n "$JACK_CFLAGS"; then
  18496. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18497. elif test -n "$PKG_CONFIG"; then
  18498. if test -n "$PKG_CONFIG" && \
  18499. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18500. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18501. ac_status=$?
  18502. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18503. test $ac_status = 0; }; then
  18504. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18505. test "x$?" != "x0" && pkg_failed=yes
  18506. else
  18507. pkg_failed=yes
  18508. fi
  18509. else
  18510. pkg_failed=untried
  18511. fi
  18512. if test -n "$JACK_LIBS"; then
  18513. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18514. elif test -n "$PKG_CONFIG"; then
  18515. if test -n "$PKG_CONFIG" && \
  18516. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18517. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18518. ac_status=$?
  18519. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18520. test $ac_status = 0; }; then
  18521. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18522. test "x$?" != "x0" && pkg_failed=yes
  18523. else
  18524. pkg_failed=yes
  18525. fi
  18526. else
  18527. pkg_failed=untried
  18528. fi
  18529. if test $pkg_failed = yes; then
  18530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18531. printf "%s\n" "no" >&6; }
  18532. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18533. _pkg_short_errors_supported=yes
  18534. else
  18535. _pkg_short_errors_supported=no
  18536. fi
  18537. if test $_pkg_short_errors_supported = yes; then
  18538. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18539. else
  18540. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18541. fi
  18542. # Put the nasty error message in config.log where it belongs
  18543. echo "$JACK_PKG_ERRORS" >&5
  18544. audio_jack=no
  18545. elif test $pkg_failed = untried; then
  18546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18547. printf "%s\n" "no" >&6; }
  18548. audio_jack=no
  18549. else
  18550. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18551. JACK_LIBS=$pkg_cv_JACK_LIBS
  18552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18553. printf "%s\n" "yes" >&6; }
  18554. audio_jack=yes
  18555. fi
  18556. if test x$audio_jack = xyes; then
  18557. # Check whether --enable-jack-shared was given.
  18558. if test ${enable_jack_shared+y}
  18559. then :
  18560. enableval=$enable_jack_shared;
  18561. else $as_nop
  18562. enable_jack_shared=yes
  18563. fi
  18564. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18565. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18566. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18567. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18568. if test x$have_loadso != xyes && \
  18569. test x$enable_jack_shared = xyes; then
  18570. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18571. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18572. fi
  18573. if test x$have_loadso = xyes && \
  18574. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18575. echo "-- dynamic libjack -> $jack_lib"
  18576. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18577. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18578. case "$host" in
  18579. # On Solaris, jack must be linked deferred explicitly
  18580. # to prevent undefined symbol failures.
  18581. *-*-solaris*)
  18582. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18584. esac
  18585. else
  18586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18587. SUMMARY_audio="${SUMMARY_audio} jack"
  18588. fi
  18589. have_audio=yes
  18590. fi
  18591. fi
  18592. }
  18593. CheckESD()
  18594. {
  18595. # Check whether --enable-esd was given.
  18596. if test ${enable_esd+y}
  18597. then :
  18598. enableval=$enable_esd;
  18599. else $as_nop
  18600. enable_esd=yes
  18601. fi
  18602. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18603. pkg_failed=no
  18604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18605. printf %s "checking for esound >= 0.2.8... " >&6; }
  18606. if test -n "$ESD_CFLAGS"; then
  18607. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18608. elif test -n "$PKG_CONFIG"; then
  18609. if test -n "$PKG_CONFIG" && \
  18610. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18611. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18612. ac_status=$?
  18613. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18614. test $ac_status = 0; }; then
  18615. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18616. test "x$?" != "x0" && pkg_failed=yes
  18617. else
  18618. pkg_failed=yes
  18619. fi
  18620. else
  18621. pkg_failed=untried
  18622. fi
  18623. if test -n "$ESD_LIBS"; then
  18624. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18625. elif test -n "$PKG_CONFIG"; then
  18626. if test -n "$PKG_CONFIG" && \
  18627. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18628. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18629. ac_status=$?
  18630. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18631. test $ac_status = 0; }; then
  18632. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18633. test "x$?" != "x0" && pkg_failed=yes
  18634. else
  18635. pkg_failed=yes
  18636. fi
  18637. else
  18638. pkg_failed=untried
  18639. fi
  18640. if test $pkg_failed = yes; then
  18641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18642. printf "%s\n" "no" >&6; }
  18643. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18644. _pkg_short_errors_supported=yes
  18645. else
  18646. _pkg_short_errors_supported=no
  18647. fi
  18648. if test $_pkg_short_errors_supported = yes; then
  18649. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18650. else
  18651. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18652. fi
  18653. # Put the nasty error message in config.log where it belongs
  18654. echo "$ESD_PKG_ERRORS" >&5
  18655. have_esd=no
  18656. elif test $pkg_failed = untried; then
  18657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18658. printf "%s\n" "no" >&6; }
  18659. have_esd=no
  18660. else
  18661. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18662. ESD_LIBS=$pkg_cv_ESD_LIBS
  18663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18664. printf "%s\n" "yes" >&6; }
  18665. have_esd=yes
  18666. fi
  18667. if test x$have_esd = xno; then
  18668. # Check whether --with-esd-prefix was given.
  18669. if test ${with_esd_prefix+y}
  18670. then :
  18671. withval=$with_esd_prefix; esd_prefix="$withval"
  18672. else $as_nop
  18673. esd_prefix=""
  18674. fi
  18675. # Check whether --with-esd-exec-prefix was given.
  18676. if test ${with_esd_exec_prefix+y}
  18677. then :
  18678. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18679. else $as_nop
  18680. esd_exec_prefix=""
  18681. fi
  18682. # Check whether --enable-esdtest was given.
  18683. if test ${enable_esdtest+y}
  18684. then :
  18685. enableval=$enable_esdtest;
  18686. else $as_nop
  18687. enable_esdtest=yes
  18688. fi
  18689. if test x$esd_exec_prefix != x ; then
  18690. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18691. if test x${ESD_CONFIG+set} != xset ; then
  18692. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18693. fi
  18694. fi
  18695. if test x$esd_prefix != x ; then
  18696. esd_args="$esd_args --prefix=$esd_prefix"
  18697. if test x${ESD_CONFIG+set} != xset ; then
  18698. ESD_CONFIG=$esd_prefix/bin/esd-config
  18699. fi
  18700. fi
  18701. # Extract the first word of "esd-config", so it can be a program name with args.
  18702. set dummy esd-config; ac_word=$2
  18703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18704. printf %s "checking for $ac_word... " >&6; }
  18705. if test ${ac_cv_path_ESD_CONFIG+y}
  18706. then :
  18707. printf %s "(cached) " >&6
  18708. else $as_nop
  18709. case $ESD_CONFIG in
  18710. [\\/]* | ?:[\\/]*)
  18711. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18712. ;;
  18713. *)
  18714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18715. for as_dir in $PATH
  18716. do
  18717. IFS=$as_save_IFS
  18718. case $as_dir in #(((
  18719. '') as_dir=./ ;;
  18720. */) ;;
  18721. *) as_dir=$as_dir/ ;;
  18722. esac
  18723. for ac_exec_ext in '' $ac_executable_extensions; do
  18724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18725. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18727. break 2
  18728. fi
  18729. done
  18730. done
  18731. IFS=$as_save_IFS
  18732. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18733. ;;
  18734. esac
  18735. fi
  18736. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18737. if test -n "$ESD_CONFIG"; then
  18738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18739. printf "%s\n" "$ESD_CONFIG" >&6; }
  18740. else
  18741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18742. printf "%s\n" "no" >&6; }
  18743. fi
  18744. min_esd_version=0.2.8
  18745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18746. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18747. no_esd=""
  18748. if test "$ESD_CONFIG" = "no" ; then
  18749. no_esd=yes
  18750. else
  18751. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18752. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18753. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18754. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18755. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18756. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18757. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18758. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18759. if test "x$enable_esdtest" = "xyes" ; then
  18760. ac_ext=c
  18761. ac_cpp='$CPP $CPPFLAGS'
  18762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18765. ac_save_CFLAGS="$CFLAGS"
  18766. ac_save_LIBS="$LIBS"
  18767. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18768. LIBS="$LIBS $ESD_LIBS"
  18769. rm -f conf.esdtest
  18770. if test "$cross_compiling" = yes
  18771. then :
  18772. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18773. else $as_nop
  18774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18775. /* end confdefs.h. */
  18776. #include <stdio.h>
  18777. #include <stdlib.h>
  18778. #include <esd.h>
  18779. int main (void)
  18780. {
  18781. int major, minor, micro;
  18782. FILE *fp = fopen("conf.esdtest", "w");
  18783. if (fp) fclose(fp);
  18784. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18785. printf("%s, bad version string\n", "$min_esd_version");
  18786. exit(1);
  18787. }
  18788. if (($esd_major_version > major) ||
  18789. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18790. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18791. {
  18792. return 0;
  18793. }
  18794. else
  18795. {
  18796. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18797. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18798. printf("*** best to upgrade to the required version.\n");
  18799. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18800. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18801. printf("*** config.cache before re-running configure\n");
  18802. return 1;
  18803. }
  18804. }
  18805. _ACEOF
  18806. if ac_fn_c_try_run "$LINENO"
  18807. then :
  18808. else $as_nop
  18809. no_esd=yes
  18810. fi
  18811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18812. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18813. fi
  18814. CFLAGS="$ac_save_CFLAGS"
  18815. LIBS="$ac_save_LIBS"
  18816. ac_ext=c
  18817. ac_cpp='$CPP $CPPFLAGS'
  18818. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18819. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18820. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18821. fi
  18822. fi
  18823. if test "x$no_esd" = x ; then
  18824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18825. printf "%s\n" "yes" >&6; }
  18826. have_esd=yes
  18827. else
  18828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18829. printf "%s\n" "no" >&6; }
  18830. if test "$ESD_CONFIG" = "no" ; then
  18831. :
  18832. else
  18833. if test -f conf.esdtest ; then
  18834. :
  18835. else
  18836. echo "*** Could not run ESD test program, checking why..."
  18837. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18838. LIBS="$LIBS $ESD_LIBS"
  18839. ac_ext=c
  18840. ac_cpp='$CPP $CPPFLAGS'
  18841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18845. /* end confdefs.h. */
  18846. #include <stdio.h>
  18847. #include <esd.h>
  18848. int
  18849. main (void)
  18850. {
  18851. return 0;
  18852. ;
  18853. return 0;
  18854. }
  18855. _ACEOF
  18856. if ac_fn_c_try_link "$LINENO"
  18857. then :
  18858. echo "*** The test program compiled, but did not run. This usually means"
  18859. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18860. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18861. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18862. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18863. echo "*** is required on your system"
  18864. echo "***"
  18865. echo "*** If you have an old version installed, it is best to remove it, although"
  18866. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18867. else $as_nop
  18868. echo "*** The test program failed to compile or link. See the file config.log for the"
  18869. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18870. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18871. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18872. fi
  18873. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18874. conftest$ac_exeext conftest.$ac_ext
  18875. CFLAGS="$ac_save_CFLAGS"
  18876. LIBS="$ac_save_LIBS"
  18877. ac_ext=c
  18878. ac_cpp='$CPP $CPPFLAGS'
  18879. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18880. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18881. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18882. fi
  18883. fi
  18884. ESD_CFLAGS=""
  18885. ESD_LIBS=""
  18886. have_esd=no
  18887. fi
  18888. rm -f conf.esdtest
  18889. fi
  18890. if test x$have_esd = xyes; then
  18891. # Check whether --enable-esd-shared was given.
  18892. if test ${enable_esd_shared+y}
  18893. then :
  18894. enableval=$enable_esd_shared;
  18895. else $as_nop
  18896. enable_esd_shared=yes
  18897. fi
  18898. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18899. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18900. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18901. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18902. if test x$have_loadso != xyes && \
  18903. test x$enable_esd_shared = xyes; then
  18904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18905. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18906. fi
  18907. if test x$have_loadso = xyes && \
  18908. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18909. echo "-- dynamic libesd -> $esd_lib"
  18910. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18911. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18912. else
  18913. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18914. SUMMARY_audio="${SUMMARY_audio} esd"
  18915. fi
  18916. have_audio=yes
  18917. fi
  18918. fi
  18919. }
  18920. CheckPipewire()
  18921. {
  18922. # Check whether --enable-pipewire was given.
  18923. if test ${enable_pipewire+y}
  18924. then :
  18925. enableval=$enable_pipewire;
  18926. else $as_nop
  18927. enable_pipewire=yes
  18928. fi
  18929. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18930. pkg_failed=no
  18931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18932. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18933. if test -n "$PIPEWIRE_CFLAGS"; then
  18934. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18935. elif test -n "$PKG_CONFIG"; then
  18936. if test -n "$PKG_CONFIG" && \
  18937. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18938. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18939. ac_status=$?
  18940. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18941. test $ac_status = 0; }; then
  18942. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18943. test "x$?" != "x0" && pkg_failed=yes
  18944. else
  18945. pkg_failed=yes
  18946. fi
  18947. else
  18948. pkg_failed=untried
  18949. fi
  18950. if test -n "$PIPEWIRE_LIBS"; then
  18951. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18952. elif test -n "$PKG_CONFIG"; then
  18953. if test -n "$PKG_CONFIG" && \
  18954. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18955. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18956. ac_status=$?
  18957. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18958. test $ac_status = 0; }; then
  18959. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18960. test "x$?" != "x0" && pkg_failed=yes
  18961. else
  18962. pkg_failed=yes
  18963. fi
  18964. else
  18965. pkg_failed=untried
  18966. fi
  18967. if test $pkg_failed = yes; then
  18968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18969. printf "%s\n" "no" >&6; }
  18970. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18971. _pkg_short_errors_supported=yes
  18972. else
  18973. _pkg_short_errors_supported=no
  18974. fi
  18975. if test $_pkg_short_errors_supported = yes; then
  18976. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18977. else
  18978. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18979. fi
  18980. # Put the nasty error message in config.log where it belongs
  18981. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18982. audio_pipewire=no
  18983. elif test $pkg_failed = untried; then
  18984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18985. printf "%s\n" "no" >&6; }
  18986. audio_pipewire=no
  18987. else
  18988. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18989. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18991. printf "%s\n" "yes" >&6; }
  18992. audio_pipewire=yes
  18993. fi
  18994. if test x$audio_pipewire = xyes; then
  18995. # Check whether --enable-pipewire-shared was given.
  18996. if test ${enable_pipewire_shared+y}
  18997. then :
  18998. enableval=$enable_pipewire_shared;
  18999. else $as_nop
  19000. enable_pipewire_shared=yes
  19001. fi
  19002. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19003. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19004. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19005. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19006. if test x$have_loadso != xyes && \
  19007. test x$enable_pipewire_shared = xyes; then
  19008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19009. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19010. fi
  19011. if test x$have_loadso = xyes && \
  19012. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19013. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19014. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19015. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19016. else
  19017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19018. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19019. fi
  19020. have_audio=yes
  19021. fi
  19022. fi
  19023. }
  19024. CheckPulseAudio()
  19025. {
  19026. # Check whether --enable-pulseaudio was given.
  19027. if test ${enable_pulseaudio+y}
  19028. then :
  19029. enableval=$enable_pulseaudio;
  19030. else $as_nop
  19031. enable_pulseaudio=yes
  19032. fi
  19033. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19034. pkg_failed=no
  19035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19036. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19037. if test -n "$PULSEAUDIO_CFLAGS"; then
  19038. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19039. elif test -n "$PKG_CONFIG"; then
  19040. if test -n "$PKG_CONFIG" && \
  19041. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19042. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19043. ac_status=$?
  19044. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19045. test $ac_status = 0; }; then
  19046. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19047. test "x$?" != "x0" && pkg_failed=yes
  19048. else
  19049. pkg_failed=yes
  19050. fi
  19051. else
  19052. pkg_failed=untried
  19053. fi
  19054. if test -n "$PULSEAUDIO_LIBS"; then
  19055. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19056. elif test -n "$PKG_CONFIG"; then
  19057. if test -n "$PKG_CONFIG" && \
  19058. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19059. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19060. ac_status=$?
  19061. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19062. test $ac_status = 0; }; then
  19063. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19064. test "x$?" != "x0" && pkg_failed=yes
  19065. else
  19066. pkg_failed=yes
  19067. fi
  19068. else
  19069. pkg_failed=untried
  19070. fi
  19071. if test $pkg_failed = yes; then
  19072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19073. printf "%s\n" "no" >&6; }
  19074. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19075. _pkg_short_errors_supported=yes
  19076. else
  19077. _pkg_short_errors_supported=no
  19078. fi
  19079. if test $_pkg_short_errors_supported = yes; then
  19080. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19081. else
  19082. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19083. fi
  19084. # Put the nasty error message in config.log where it belongs
  19085. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19086. audio_pulseaudio=no
  19087. elif test $pkg_failed = untried; then
  19088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19089. printf "%s\n" "no" >&6; }
  19090. audio_pulseaudio=no
  19091. else
  19092. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19093. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19095. printf "%s\n" "yes" >&6; }
  19096. audio_pulseaudio=yes
  19097. fi
  19098. if test x$audio_pulseaudio = xyes; then
  19099. # Check whether --enable-pulseaudio-shared was given.
  19100. if test ${enable_pulseaudio_shared+y}
  19101. then :
  19102. enableval=$enable_pulseaudio_shared;
  19103. else $as_nop
  19104. enable_pulseaudio_shared=yes
  19105. fi
  19106. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19107. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19108. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19109. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19110. if test x$have_loadso != xyes && \
  19111. test x$enable_pulseaudio_shared = xyes; then
  19112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19113. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19114. fi
  19115. if test x$have_loadso = xyes && \
  19116. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19117. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19118. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19119. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19120. case "$host" in
  19121. # On Solaris, pulseaudio must be linked deferred explicitly
  19122. # to prevent undefined symbol failures.
  19123. *-*-solaris*)
  19124. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19126. esac
  19127. else
  19128. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19129. SUMMARY_audio="${SUMMARY_audio} pulse"
  19130. fi
  19131. have_audio=yes
  19132. fi
  19133. fi
  19134. }
  19135. CheckARTSC()
  19136. {
  19137. # Check whether --enable-arts was given.
  19138. if test ${enable_arts+y}
  19139. then :
  19140. enableval=$enable_arts;
  19141. else $as_nop
  19142. enable_arts=yes
  19143. fi
  19144. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19145. # Extract the first word of "artsc-config", so it can be a program name with args.
  19146. set dummy artsc-config; ac_word=$2
  19147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19148. printf %s "checking for $ac_word... " >&6; }
  19149. if test ${ac_cv_path_ARTSCONFIG+y}
  19150. then :
  19151. printf %s "(cached) " >&6
  19152. else $as_nop
  19153. case $ARTSCONFIG in
  19154. [\\/]* | ?:[\\/]*)
  19155. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19156. ;;
  19157. *)
  19158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19159. for as_dir in $PATH
  19160. do
  19161. IFS=$as_save_IFS
  19162. case $as_dir in #(((
  19163. '') as_dir=./ ;;
  19164. */) ;;
  19165. *) as_dir=$as_dir/ ;;
  19166. esac
  19167. for ac_exec_ext in '' $ac_executable_extensions; do
  19168. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19169. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19170. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19171. break 2
  19172. fi
  19173. done
  19174. done
  19175. IFS=$as_save_IFS
  19176. ;;
  19177. esac
  19178. fi
  19179. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19180. if test -n "$ARTSCONFIG"; then
  19181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19182. printf "%s\n" "$ARTSCONFIG" >&6; }
  19183. else
  19184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19185. printf "%s\n" "no" >&6; }
  19186. fi
  19187. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19188. : # arts isn't installed
  19189. else
  19190. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19191. ARTS_LIBS=`$ARTSCONFIG --libs`
  19192. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19193. printf %s "checking for aRts development environment... " >&6; }
  19194. audio_arts=no
  19195. save_CFLAGS="$CFLAGS"
  19196. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19198. /* end confdefs.h. */
  19199. #include <artsc.h>
  19200. int
  19201. main (void)
  19202. {
  19203. arts_stream_t stream;
  19204. ;
  19205. return 0;
  19206. }
  19207. _ACEOF
  19208. if ac_fn_c_try_compile "$LINENO"
  19209. then :
  19210. audio_arts=yes
  19211. fi
  19212. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19213. CFLAGS="$save_CFLAGS"
  19214. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19215. printf "%s\n" "$audio_arts" >&6; }
  19216. if test x$audio_arts = xyes; then
  19217. # Check whether --enable-arts-shared was given.
  19218. if test ${enable_arts_shared+y}
  19219. then :
  19220. enableval=$enable_arts_shared;
  19221. else $as_nop
  19222. enable_arts_shared=yes
  19223. fi
  19224. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19225. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19226. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19227. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19228. if test x$have_loadso != xyes && \
  19229. test x$enable_arts_shared = xyes; then
  19230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19231. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19232. fi
  19233. if test x$have_loadso = xyes && \
  19234. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19235. echo "-- dynamic libartsc -> $arts_lib"
  19236. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19237. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19238. else
  19239. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19240. SUMMARY_audio="${SUMMARY_audio} arts"
  19241. fi
  19242. have_audio=yes
  19243. fi
  19244. fi
  19245. fi
  19246. }
  19247. CheckNAS()
  19248. {
  19249. # Check whether --enable-nas was given.
  19250. if test ${enable_nas+y}
  19251. then :
  19252. enableval=$enable_nas;
  19253. else $as_nop
  19254. enable_nas=yes
  19255. fi
  19256. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19257. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19258. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19259. then :
  19260. have_nas_hdr=yes
  19261. fi
  19262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19263. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19264. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19265. then :
  19266. printf %s "(cached) " >&6
  19267. else $as_nop
  19268. ac_check_lib_save_LIBS=$LIBS
  19269. LIBS="-laudio $LIBS"
  19270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19271. /* end confdefs.h. */
  19272. /* Override any GCC internal prototype to avoid an error.
  19273. Use char because int might match the return type of a GCC
  19274. builtin and then its argument prototype would still apply. */
  19275. char AuOpenServer ();
  19276. int
  19277. main (void)
  19278. {
  19279. return AuOpenServer ();
  19280. ;
  19281. return 0;
  19282. }
  19283. _ACEOF
  19284. if ac_fn_c_try_link "$LINENO"
  19285. then :
  19286. ac_cv_lib_audio_AuOpenServer=yes
  19287. else $as_nop
  19288. ac_cv_lib_audio_AuOpenServer=no
  19289. fi
  19290. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19291. conftest$ac_exeext conftest.$ac_ext
  19292. LIBS=$ac_check_lib_save_LIBS
  19293. fi
  19294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19295. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19296. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19297. then :
  19298. have_nas_lib=yes
  19299. fi
  19300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19301. printf %s "checking for NAS audio support... " >&6; }
  19302. have_nas=no
  19303. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19304. have_nas=yes
  19305. NAS_LIBS="-laudio"
  19306. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19307. have_nas=yes
  19308. NAS_CFLAGS="-I/usr/X11R6/include/"
  19309. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19310. fi
  19311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19312. printf "%s\n" "$have_nas" >&6; }
  19313. if test x$have_nas = xyes; then
  19314. # Check whether --enable-nas-shared was given.
  19315. if test ${enable_nas_shared+y}
  19316. then :
  19317. enableval=$enable_nas_shared;
  19318. else $as_nop
  19319. enable_nas_shared=yes
  19320. fi
  19321. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19322. if test x$have_loadso != xyes && \
  19323. test x$enable_nas_shared = xyes; then
  19324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19325. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19326. fi
  19327. if test x$have_loadso = xyes && \
  19328. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19329. echo "-- dynamic libaudio -> $nas_lib"
  19330. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19331. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19332. else
  19333. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19334. SUMMARY_audio="${SUMMARY_audio} nas"
  19335. fi
  19336. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19337. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19338. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19339. have_audio=yes
  19340. fi
  19341. fi
  19342. }
  19343. CheckSNDIO()
  19344. {
  19345. # Check whether --enable-sndio was given.
  19346. if test ${enable_sndio+y}
  19347. then :
  19348. enableval=$enable_sndio;
  19349. else $as_nop
  19350. enable_sndio=yes
  19351. fi
  19352. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19353. pkg_failed=no
  19354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19355. printf %s "checking for sndio... " >&6; }
  19356. if test -n "$SNDIO_CFLAGS"; then
  19357. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19358. elif test -n "$PKG_CONFIG"; then
  19359. if test -n "$PKG_CONFIG" && \
  19360. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19361. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19362. ac_status=$?
  19363. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19364. test $ac_status = 0; }; then
  19365. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19366. test "x$?" != "x0" && pkg_failed=yes
  19367. else
  19368. pkg_failed=yes
  19369. fi
  19370. else
  19371. pkg_failed=untried
  19372. fi
  19373. if test -n "$SNDIO_LIBS"; then
  19374. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19375. elif test -n "$PKG_CONFIG"; then
  19376. if test -n "$PKG_CONFIG" && \
  19377. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19378. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19379. ac_status=$?
  19380. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19381. test $ac_status = 0; }; then
  19382. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19383. test "x$?" != "x0" && pkg_failed=yes
  19384. else
  19385. pkg_failed=yes
  19386. fi
  19387. else
  19388. pkg_failed=untried
  19389. fi
  19390. if test $pkg_failed = yes; then
  19391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19392. printf "%s\n" "no" >&6; }
  19393. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19394. _pkg_short_errors_supported=yes
  19395. else
  19396. _pkg_short_errors_supported=no
  19397. fi
  19398. if test $_pkg_short_errors_supported = yes; then
  19399. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19400. else
  19401. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19402. fi
  19403. # Put the nasty error message in config.log where it belongs
  19404. echo "$SNDIO_PKG_ERRORS" >&5
  19405. audio_sndio=no
  19406. elif test $pkg_failed = untried; then
  19407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19408. printf "%s\n" "no" >&6; }
  19409. audio_sndio=no
  19410. else
  19411. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19412. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19413. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19414. printf "%s\n" "yes" >&6; }
  19415. audio_sndio=yes
  19416. fi
  19417. if test x$audio_sndio = xyes; then
  19418. # Check whether --enable-sndio-shared was given.
  19419. if test ${enable_sndio_shared+y}
  19420. then :
  19421. enableval=$enable_sndio_shared;
  19422. else $as_nop
  19423. enable_sndio_shared=yes
  19424. fi
  19425. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19426. if test x$have_loadso != xyes && \
  19427. test x$enable_sndio_shared = xyes; then
  19428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19429. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19430. fi
  19431. if test x$have_loadso = xyes && \
  19432. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19433. echo "-- dynamic libsndio -> $sndio_lib"
  19434. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19435. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19436. else
  19437. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19438. SUMMARY_audio="${SUMMARY_audio} sndio"
  19439. fi
  19440. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19441. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19442. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19443. have_audio=yes
  19444. fi
  19445. fi
  19446. }
  19447. CheckFusionSound()
  19448. {
  19449. # Check whether --enable-fusionsound was given.
  19450. if test ${enable_fusionsound+y}
  19451. then :
  19452. enableval=$enable_fusionsound;
  19453. else $as_nop
  19454. enable_fusionsound=no
  19455. fi
  19456. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19457. pkg_failed=no
  19458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19459. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19460. if test -n "$FUSIONSOUND_CFLAGS"; then
  19461. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19462. elif test -n "$PKG_CONFIG"; then
  19463. if test -n "$PKG_CONFIG" && \
  19464. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19465. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19466. ac_status=$?
  19467. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19468. test $ac_status = 0; }; then
  19469. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19470. test "x$?" != "x0" && pkg_failed=yes
  19471. else
  19472. pkg_failed=yes
  19473. fi
  19474. else
  19475. pkg_failed=untried
  19476. fi
  19477. if test -n "$FUSIONSOUND_LIBS"; then
  19478. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19479. elif test -n "$PKG_CONFIG"; then
  19480. if test -n "$PKG_CONFIG" && \
  19481. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19482. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19483. ac_status=$?
  19484. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19485. test $ac_status = 0; }; then
  19486. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19487. test "x$?" != "x0" && pkg_failed=yes
  19488. else
  19489. pkg_failed=yes
  19490. fi
  19491. else
  19492. pkg_failed=untried
  19493. fi
  19494. if test $pkg_failed = yes; then
  19495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19496. printf "%s\n" "no" >&6; }
  19497. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19498. _pkg_short_errors_supported=yes
  19499. else
  19500. _pkg_short_errors_supported=no
  19501. fi
  19502. if test $_pkg_short_errors_supported = yes; then
  19503. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19504. else
  19505. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19506. fi
  19507. # Put the nasty error message in config.log where it belongs
  19508. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19509. fusionsound=no
  19510. elif test $pkg_failed = untried; then
  19511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19512. printf "%s\n" "no" >&6; }
  19513. fusionsound=no
  19514. else
  19515. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19516. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19518. printf "%s\n" "yes" >&6; }
  19519. fusionsound=yes
  19520. fi
  19521. if test x$fusionsound = xyes; then
  19522. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19523. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19524. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19525. # Check whether --enable-fusionsound-shared was given.
  19526. if test ${enable_fusionsound_shared+y}
  19527. then :
  19528. enableval=$enable_fusionsound_shared;
  19529. else $as_nop
  19530. enable_fusionsound_shared=yes
  19531. fi
  19532. fusionsound_shared=no
  19533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19534. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19535. if test x$have_loadso != xyes && \
  19536. test x$enable_fusionsound_shared = xyes; then
  19537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19538. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19539. fi
  19540. if test x$have_loadso = xyes && \
  19541. test x$enable_fusionsound_shared = xyes; then
  19542. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19543. fusionsound_shared=yes
  19544. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19545. else
  19546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19547. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19548. fi
  19549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19550. printf "%s\n" "$fusionsound_shared" >&6; }
  19551. have_audio=yes
  19552. fi
  19553. fi
  19554. }
  19555. CheckDiskAudio()
  19556. {
  19557. # Check whether --enable-diskaudio was given.
  19558. if test ${enable_diskaudio+y}
  19559. then :
  19560. enableval=$enable_diskaudio;
  19561. else $as_nop
  19562. enable_diskaudio=yes
  19563. fi
  19564. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19565. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19566. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19567. SUMMARY_audio="${SUMMARY_audio} disk"
  19568. have_audio=yes
  19569. fi
  19570. }
  19571. CheckDummyAudio()
  19572. {
  19573. # Check whether --enable-dummyaudio was given.
  19574. if test ${enable_dummyaudio+y}
  19575. then :
  19576. enableval=$enable_dummyaudio;
  19577. else $as_nop
  19578. enable_dummyaudio=yes
  19579. fi
  19580. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19581. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19582. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19583. SUMMARY_audio="${SUMMARY_audio} dummy"
  19584. have_audio=yes
  19585. fi
  19586. }
  19587. CheckLibSampleRate()
  19588. {
  19589. # Check whether --enable-libsamplerate was given.
  19590. if test ${enable_libsamplerate+y}
  19591. then :
  19592. enableval=$enable_libsamplerate;
  19593. else $as_nop
  19594. enable_libsamplerate=yes
  19595. fi
  19596. if test x$enable_libsamplerate = xyes; then
  19597. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19598. if test "x$ac_cv_header_samplerate_h" = xyes
  19599. then :
  19600. have_samplerate_h_hdr=yes
  19601. else $as_nop
  19602. have_samplerate_h_hdr=no
  19603. fi
  19604. if test x$have_samplerate_h_hdr = xyes; then
  19605. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19606. # Check whether --enable-libsamplerate-shared was given.
  19607. if test ${enable_libsamplerate_shared+y}
  19608. then :
  19609. enableval=$enable_libsamplerate_shared;
  19610. else $as_nop
  19611. enable_libsamplerate_shared=yes
  19612. fi
  19613. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19614. if test x$have_loadso != xyes && \
  19615. test x$enable_libsamplerate_shared = xyes; then
  19616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19617. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19618. fi
  19619. if test x$have_loadso = xyes && \
  19620. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19621. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19622. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19623. else
  19624. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19625. fi
  19626. fi
  19627. fi
  19628. }
  19629. CheckARM()
  19630. {
  19631. # Check whether --enable-arm-simd was given.
  19632. if test ${enable_arm_simd+y}
  19633. then :
  19634. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19635. else $as_nop
  19636. enable_arm_simd=no
  19637. fi
  19638. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19639. save_CFLAGS="$CFLAGS"
  19640. have_arm_simd=no
  19641. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19643. printf %s "checking for ARM SIMD... " >&6; }
  19644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19645. /* end confdefs.h. */
  19646. .text
  19647. .arch armv6
  19648. .object_arch armv4
  19649. .arm
  19650. .altmacro
  19651. #ifndef __ARM_EABI__
  19652. #error EABI is required (to be sure that calling conventions are compatible)
  19653. #endif
  19654. pld [r0]
  19655. uqadd8 r0, r0, r0
  19656. _ACEOF
  19657. if ac_fn_c_try_compile "$LINENO"
  19658. then :
  19659. have_arm_simd=yes
  19660. fi
  19661. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19663. printf "%s\n" "$have_arm_simd" >&6; }
  19664. CFLAGS="$save_CFLAGS"
  19665. if test x$have_arm_simd = xyes; then
  19666. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19667. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19668. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19669. fi
  19670. fi
  19671. }
  19672. CheckNEON()
  19673. {
  19674. # Check whether --enable-arm-neon was given.
  19675. if test ${enable_arm_neon+y}
  19676. then :
  19677. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19678. else $as_nop
  19679. enable_arm_neon=no
  19680. fi
  19681. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19682. save_CFLAGS="$CFLAGS"
  19683. have_arm_neon=no
  19684. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19686. printf %s "checking for ARM NEON... " >&6; }
  19687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19688. /* end confdefs.h. */
  19689. .text
  19690. .fpu neon
  19691. .arch armv7a
  19692. .object_arch armv4
  19693. .eabi_attribute 10, 0
  19694. .arm
  19695. .altmacro
  19696. #ifndef __ARM_EABI__
  19697. #error EABI is required (to be sure that calling conventions are compatible)
  19698. #endif
  19699. pld [r0]
  19700. vmovn.u16 d0, q0
  19701. _ACEOF
  19702. if ac_fn_c_try_compile "$LINENO"
  19703. then :
  19704. have_arm_neon=yes
  19705. fi
  19706. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19708. printf "%s\n" "$have_arm_neon" >&6; }
  19709. CFLAGS="$save_CFLAGS"
  19710. if test x$have_arm_neon = xyes; then
  19711. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19712. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19713. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19714. fi
  19715. fi
  19716. }
  19717. CheckObjectiveCARC()
  19718. {
  19719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19720. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19721. have_clang_objc_arc=no
  19722. save_CFLAGS="$CFLAGS"
  19723. CFLAGS="$save_CFLAGS -fobjc-arc"
  19724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19725. /* end confdefs.h. */
  19726. int x = 0;
  19727. int
  19728. main (void)
  19729. {
  19730. ;
  19731. return 0;
  19732. }
  19733. _ACEOF
  19734. if ac_fn_c_try_compile "$LINENO"
  19735. then :
  19736. have_clang_objc_arc=yes
  19737. fi
  19738. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19740. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19741. CFLAGS="$save_CFLAGS"
  19742. if test x$have_clang_objc_arc = xyes; then
  19743. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19744. fi
  19745. }
  19746. CheckGDwarf4()
  19747. {
  19748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19749. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19750. have_gcc_gdwarf4=no
  19751. save_CFLAGS="$CFLAGS"
  19752. CFLAGS="$save_CFLAGS -gdwarf-4"
  19753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19754. /* end confdefs.h. */
  19755. int x = 0;
  19756. int
  19757. main (void)
  19758. {
  19759. ;
  19760. return 0;
  19761. }
  19762. _ACEOF
  19763. if ac_fn_c_try_compile "$LINENO"
  19764. then :
  19765. have_gcc_gdwarf4=yes
  19766. fi
  19767. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19769. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19770. CFLAGS="$save_CFLAGS"
  19771. if test x$have_gcc_gdwarf4 = xyes; then
  19772. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19773. fi
  19774. }
  19775. CheckVisibilityHidden()
  19776. {
  19777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19778. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19779. have_gcc_fvisibility=no
  19780. visibility_CFLAGS="-fvisibility=hidden"
  19781. save_CFLAGS="$CFLAGS"
  19782. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19784. /* end confdefs.h. */
  19785. #if !defined(__GNUC__) || __GNUC__ < 4
  19786. #error SDL only uses visibility attributes in GCC 4 or newer
  19787. #endif
  19788. int
  19789. main (void)
  19790. {
  19791. ;
  19792. return 0;
  19793. }
  19794. _ACEOF
  19795. if ac_fn_c_try_compile "$LINENO"
  19796. then :
  19797. have_gcc_fvisibility=yes
  19798. fi
  19799. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19801. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19802. CFLAGS="$save_CFLAGS"
  19803. if test x$have_gcc_fvisibility = xyes; then
  19804. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19805. fi
  19806. }
  19807. CheckNoStrictAliasing()
  19808. {
  19809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19810. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19811. have_gcc_no_strict_aliasing=no
  19812. save_CFLAGS="$CFLAGS"
  19813. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19815. /* end confdefs.h. */
  19816. int x = 0;
  19817. int
  19818. main (void)
  19819. {
  19820. ;
  19821. return 0;
  19822. }
  19823. _ACEOF
  19824. if ac_fn_c_try_compile "$LINENO"
  19825. then :
  19826. have_gcc_no_strict_aliasing=yes
  19827. fi
  19828. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19830. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19831. CFLAGS="$save_CFLAGS"
  19832. if test x$have_gcc_no_strict_aliasing = xyes; then
  19833. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19834. fi
  19835. }
  19836. CheckStackBoundary()
  19837. {
  19838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19839. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19840. have_gcc_preferred_stack_boundary=no
  19841. save_CFLAGS="$CFLAGS"
  19842. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19844. /* end confdefs.h. */
  19845. int x = 0;
  19846. int
  19847. main (void)
  19848. {
  19849. ;
  19850. return 0;
  19851. }
  19852. _ACEOF
  19853. if ac_fn_c_try_compile "$LINENO"
  19854. then :
  19855. have_gcc_preferred_stack_boundary=yes
  19856. fi
  19857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19859. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19860. CFLAGS="$save_CFLAGS"
  19861. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19862. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19863. fi
  19864. }
  19865. CheckWerror()
  19866. {
  19867. # Check whether --enable-werror was given.
  19868. if test ${enable_werror+y}
  19869. then :
  19870. enableval=$enable_werror; enable_werror=$enableval
  19871. else $as_nop
  19872. enable_werror=no
  19873. fi
  19874. if test x$enable_werror = xyes; then
  19875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19876. printf %s "checking for GCC -Werror option... " >&6; }
  19877. have_gcc_werror=no
  19878. save_CFLAGS="$CFLAGS"
  19879. CFLAGS="$save_CFLAGS -Werror"
  19880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19881. /* end confdefs.h. */
  19882. int x = 0;
  19883. int
  19884. main (void)
  19885. {
  19886. ;
  19887. return 0;
  19888. }
  19889. _ACEOF
  19890. if ac_fn_c_try_compile "$LINENO"
  19891. then :
  19892. have_gcc_werror=yes
  19893. fi
  19894. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19896. printf "%s\n" "$have_gcc_werror" >&6; }
  19897. CFLAGS="$save_CFLAGS"
  19898. if test x$have_gcc_werror = xyes; then
  19899. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19900. fi
  19901. fi
  19902. }
  19903. CheckNoErrorDeprecatedDeclarationsWerror()
  19904. {
  19905. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19906. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19907. have_gcc_no_werror_deprecated_declarations=no
  19908. save_CFLAGS="$CFLAGS"
  19909. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19911. /* end confdefs.h. */
  19912. int x = 0;
  19913. int
  19914. main (void)
  19915. {
  19916. ;
  19917. return 0;
  19918. }
  19919. _ACEOF
  19920. if ac_fn_c_try_compile "$LINENO"
  19921. then :
  19922. have_gcc_no_werror_deprecated_declarations=yes
  19923. fi
  19924. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19926. printf "%s\n" "$have_gcc_werror" >&6; }
  19927. CFLAGS="$save_CFLAGS"
  19928. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19929. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19930. fi
  19931. }
  19932. CheckDeclarationAfterStatement()
  19933. {
  19934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19935. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19936. have_gcc_declaration_after_statement=no
  19937. save_CFLAGS="$CFLAGS"
  19938. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19940. /* end confdefs.h. */
  19941. int x = 0;
  19942. int
  19943. main (void)
  19944. {
  19945. ;
  19946. return 0;
  19947. }
  19948. _ACEOF
  19949. if ac_fn_c_try_compile "$LINENO"
  19950. then :
  19951. have_gcc_declaration_after_statement=yes
  19952. fi
  19953. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19955. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19956. CFLAGS="$save_CFLAGS"
  19957. if test x$have_gcc_declaration_after_statement = xyes; then
  19958. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19959. fi
  19960. }
  19961. CheckWarnAll()
  19962. {
  19963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19964. printf %s "checking for GCC -Wall option... " >&6; }
  19965. have_gcc_Wall=no
  19966. save_CFLAGS="$CFLAGS"
  19967. CFLAGS="$save_CFLAGS -Wall"
  19968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19969. /* end confdefs.h. */
  19970. int x = 0;
  19971. int
  19972. main (void)
  19973. {
  19974. ;
  19975. return 0;
  19976. }
  19977. _ACEOF
  19978. if ac_fn_c_try_compile "$LINENO"
  19979. then :
  19980. have_gcc_Wall=yes
  19981. fi
  19982. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19984. printf "%s\n" "$have_gcc_Wall" >&6; }
  19985. CFLAGS="$save_CFLAGS"
  19986. if test x$have_gcc_Wall = xyes; then
  19987. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19989. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19990. need_gcc_Wno_multichar=no
  19991. case "$host" in
  19992. *-*-haiku*)
  19993. need_gcc_Wno_multichar=yes
  19994. ;;
  19995. esac
  19996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19997. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19998. if test x$need_gcc_Wno_multichar = xyes; then
  19999. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  20000. fi
  20001. fi
  20002. }
  20003. CheckWayland()
  20004. {
  20005. # Check whether --enable-video-wayland was given.
  20006. if test ${enable_video_wayland+y}
  20007. then :
  20008. enableval=$enable_video_wayland;
  20009. else $as_nop
  20010. enable_video_wayland=yes
  20011. fi
  20012. # Check whether --enable-video-wayland-qt-touch was given.
  20013. if test ${enable_video_wayland_qt_touch+y}
  20014. then :
  20015. enableval=$enable_video_wayland_qt_touch;
  20016. else $as_nop
  20017. enable_video_wayland_qt_touch=yes
  20018. fi
  20019. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20021. printf %s "checking for Wayland support... " >&6; }
  20022. video_wayland=no
  20023. if test x$video_opengl_egl = xyes && \
  20024. test x$video_opengles_v2 = xyes; then
  20025. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20026. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20027. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20028. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20029. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20030. then :
  20031. WAYLAND_SCANNER_CODE_MODE=private-code
  20032. else $as_nop
  20033. WAYLAND_SCANNER_CODE_MODE=code
  20034. fi
  20035. video_wayland=yes
  20036. fi
  20037. fi
  20038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20039. printf "%s\n" "$video_wayland" >&6; }
  20040. if test x$video_wayland = xyes; then
  20041. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20042. if test x$enable_video_wayland_qt_touch = xyes; then
  20043. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20044. fi
  20045. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20046. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20047. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20048. # Check whether --enable-wayland-shared was given.
  20049. if test ${enable_wayland_shared+y}
  20050. then :
  20051. enableval=$enable_wayland_shared;
  20052. else $as_nop
  20053. enable_wayland_shared=maybe
  20054. fi
  20055. case "$host" in
  20056. *)
  20057. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20058. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20059. if test x$wayland_egl_lib = x; then
  20060. # This works in Ubuntu 13.10, maybe others
  20061. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20062. fi
  20063. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20064. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20065. ;;
  20066. esac
  20067. if test x$enable_wayland_shared = xmaybe; then
  20068. enable_wayland_shared=yes
  20069. fi
  20070. if test x$have_loadso != xyes && \
  20071. test x$enable_wayland_shared = xyes; then
  20072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20073. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20074. enable_wayland_shared=no
  20075. fi
  20076. if test x$have_loadso = xyes && \
  20077. test x$enable_wayland_shared = xyes && \
  20078. test x$wayland_client_lib != x && \
  20079. test x$wayland_egl_lib != x && \
  20080. test x$wayland_cursor_lib != x && \
  20081. test x$xkbcommon_lib != x; then
  20082. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20083. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20084. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20085. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20086. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20087. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20088. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20089. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20090. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20091. else
  20092. enable_wayland_shared=no
  20093. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20094. SUMMARY_video="${SUMMARY_video} wayland"
  20095. fi
  20096. have_video=yes
  20097. # Check whether --enable-libdecor was given.
  20098. if test ${enable_libdecor+y}
  20099. then :
  20100. enableval=$enable_libdecor;
  20101. else $as_nop
  20102. enable_libdecor=yes
  20103. fi
  20104. if test x$enable_libdecor = xyes; then
  20105. pkg_failed=no
  20106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20107. printf %s "checking for libdecor-0... " >&6; }
  20108. if test -n "$DECOR_CFLAGS"; then
  20109. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20110. elif test -n "$PKG_CONFIG"; then
  20111. if test -n "$PKG_CONFIG" && \
  20112. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20113. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20114. ac_status=$?
  20115. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20116. test $ac_status = 0; }; then
  20117. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20118. test "x$?" != "x0" && pkg_failed=yes
  20119. else
  20120. pkg_failed=yes
  20121. fi
  20122. else
  20123. pkg_failed=untried
  20124. fi
  20125. if test -n "$DECOR_LIBS"; then
  20126. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20127. elif test -n "$PKG_CONFIG"; then
  20128. if test -n "$PKG_CONFIG" && \
  20129. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20130. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20131. ac_status=$?
  20132. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20133. test $ac_status = 0; }; then
  20134. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20135. test "x$?" != "x0" && pkg_failed=yes
  20136. else
  20137. pkg_failed=yes
  20138. fi
  20139. else
  20140. pkg_failed=untried
  20141. fi
  20142. if test $pkg_failed = yes; then
  20143. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20144. printf "%s\n" "no" >&6; }
  20145. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20146. _pkg_short_errors_supported=yes
  20147. else
  20148. _pkg_short_errors_supported=no
  20149. fi
  20150. if test $_pkg_short_errors_supported = yes; then
  20151. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20152. else
  20153. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20154. fi
  20155. # Put the nasty error message in config.log where it belongs
  20156. echo "$DECOR_PKG_ERRORS" >&5
  20157. video_libdecor=no
  20158. elif test $pkg_failed = untried; then
  20159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20160. printf "%s\n" "no" >&6; }
  20161. video_libdecor=no
  20162. else
  20163. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20164. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20166. printf "%s\n" "yes" >&6; }
  20167. video_libdecor=yes
  20168. fi
  20169. if test x$video_libdecor = xyes; then
  20170. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20171. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20172. # Check whether --enable-libdecor-shared was given.
  20173. if test ${enable_libdecor_shared+y}
  20174. then :
  20175. enableval=$enable_libdecor_shared;
  20176. else $as_nop
  20177. enable_libdecor_shared=yes
  20178. fi
  20179. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20180. if test x$enable_wayland_shared != xyes; then
  20181. enable_libdecor_shared=no
  20182. fi
  20183. if test x$have_loadso != xyes && \
  20184. test x$enable_libdecor_shared = xyes; then
  20185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20186. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20187. fi
  20188. if test x$have_loadso = xyes && \
  20189. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20190. echo "-- dynamic libdecor -> $decor_lib"
  20191. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20192. else
  20193. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20194. fi
  20195. fi
  20196. fi
  20197. fi
  20198. fi
  20199. }
  20200. CheckNativeClient()
  20201. {
  20202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20203. /* end confdefs.h. */
  20204. #if !defined(__native_client__)
  20205. #error "NO NACL"
  20206. #endif
  20207. int
  20208. main (void)
  20209. {
  20210. ;
  20211. return 0;
  20212. }
  20213. _ACEOF
  20214. if ac_fn_c_try_compile "$LINENO"
  20215. then :
  20216. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20217. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20218. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20219. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20220. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20221. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20222. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20223. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20224. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20225. SUMMARY_audio="${SUMMARY_audio} nacl"
  20226. have_audio=yes
  20227. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20228. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20229. have_video=yes
  20230. fi
  20231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20232. }
  20233. CheckRPI()
  20234. {
  20235. # Check whether --enable-video-rpi was given.
  20236. if test ${enable_video_rpi+y}
  20237. then :
  20238. enableval=$enable_video_rpi;
  20239. else $as_nop
  20240. enable_video_rpi=yes
  20241. fi
  20242. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20243. pkg_failed=no
  20244. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20245. printf %s "checking for bcm_host brcmegl... " >&6; }
  20246. if test -n "$RPI_CFLAGS"; then
  20247. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20248. elif test -n "$PKG_CONFIG"; then
  20249. if test -n "$PKG_CONFIG" && \
  20250. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20251. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20252. ac_status=$?
  20253. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20254. test $ac_status = 0; }; then
  20255. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20256. test "x$?" != "x0" && pkg_failed=yes
  20257. else
  20258. pkg_failed=yes
  20259. fi
  20260. else
  20261. pkg_failed=untried
  20262. fi
  20263. if test -n "$RPI_LIBS"; then
  20264. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20265. elif test -n "$PKG_CONFIG"; then
  20266. if test -n "$PKG_CONFIG" && \
  20267. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20268. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20269. ac_status=$?
  20270. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20271. test $ac_status = 0; }; then
  20272. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20273. test "x$?" != "x0" && pkg_failed=yes
  20274. else
  20275. pkg_failed=yes
  20276. fi
  20277. else
  20278. pkg_failed=untried
  20279. fi
  20280. if test $pkg_failed = yes; then
  20281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20282. printf "%s\n" "no" >&6; }
  20283. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20284. _pkg_short_errors_supported=yes
  20285. else
  20286. _pkg_short_errors_supported=no
  20287. fi
  20288. if test $_pkg_short_errors_supported = yes; then
  20289. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20290. else
  20291. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20292. fi
  20293. # Put the nasty error message in config.log where it belongs
  20294. echo "$RPI_PKG_ERRORS" >&5
  20295. video_rpi=no
  20296. elif test $pkg_failed = untried; then
  20297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20298. printf "%s\n" "no" >&6; }
  20299. video_rpi=no
  20300. else
  20301. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20302. RPI_LIBS=$pkg_cv_RPI_LIBS
  20303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20304. printf "%s\n" "yes" >&6; }
  20305. video_rpi=yes
  20306. fi
  20307. if test x$video_rpi = xno; then
  20308. if test x$ARCH = xnetbsd; then
  20309. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20310. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20311. else
  20312. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20313. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20314. fi
  20315. fi
  20316. # Save the original compiler flags and libraries
  20317. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20318. # Add the Raspberry Pi compiler flags and libraries
  20319. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20321. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20322. have_video_rpi=no
  20323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20324. /* end confdefs.h. */
  20325. #include <bcm_host.h>
  20326. #include <EGL/eglplatform.h>
  20327. int
  20328. main (void)
  20329. {
  20330. EGL_DISPMANX_WINDOW_T window;
  20331. bcm_host_init();
  20332. ;
  20333. return 0;
  20334. }
  20335. _ACEOF
  20336. if ac_fn_c_try_link "$LINENO"
  20337. then :
  20338. have_video_rpi=yes
  20339. fi
  20340. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20341. conftest$ac_exeext conftest.$ac_ext
  20342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20343. printf "%s\n" "$have_video_rpi" >&6; }
  20344. # Restore the compiler flags and libraries
  20345. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20346. if test x$have_video_rpi = xyes; then
  20347. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20348. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20349. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20351. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20352. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20353. SUMMARY_video="${SUMMARY_video} rpi"
  20354. have_video=yes
  20355. fi
  20356. fi
  20357. }
  20358. CheckX11()
  20359. {
  20360. # Check whether --enable-video-x11 was given.
  20361. if test ${enable_video_x11+y}
  20362. then :
  20363. enableval=$enable_video_x11;
  20364. else $as_nop
  20365. enable_video_x11=yes
  20366. case "$host" in
  20367. *-*-darwin*|*-ios-*)
  20368. enable_video_x11=no
  20369. ;;
  20370. esac
  20371. fi
  20372. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20373. case "$host" in
  20374. *-*-darwin*)
  20375. # This isn't necessary for X11, but fixes GLX detection
  20376. if test "x$x_includes" = xNONE && \
  20377. test "x$x_libraries" = xNONE && \
  20378. test -d /opt/X11/include && \
  20379. test -d /opt/X11/lib; then
  20380. x_includes="/opt/X11/include"
  20381. x_libraries="/opt/X11/lib"
  20382. fi
  20383. ;;
  20384. esac
  20385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20386. printf %s "checking for X... " >&6; }
  20387. # Check whether --with-x was given.
  20388. if test ${with_x+y}
  20389. then :
  20390. withval=$with_x;
  20391. fi
  20392. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20393. if test "x$with_x" = xno; then
  20394. # The user explicitly disabled X.
  20395. have_x=disabled
  20396. else
  20397. case $x_includes,$x_libraries in #(
  20398. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20399. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20400. then :
  20401. printf %s "(cached) " >&6
  20402. else $as_nop
  20403. # One or both of the vars are not set, and there is no cached value.
  20404. ac_x_includes=no
  20405. ac_x_libraries=no
  20406. # Do we need to do anything special at all?
  20407. ac_save_LIBS=$LIBS
  20408. LIBS="-lX11 $LIBS"
  20409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20410. /* end confdefs.h. */
  20411. #include <X11/Xlib.h>
  20412. int
  20413. main (void)
  20414. {
  20415. XrmInitialize ()
  20416. ;
  20417. return 0;
  20418. }
  20419. _ACEOF
  20420. if ac_fn_c_try_link "$LINENO"
  20421. then :
  20422. # We can compile and link X programs with no special options.
  20423. ac_x_includes=
  20424. ac_x_libraries=
  20425. fi
  20426. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20427. conftest$ac_exeext conftest.$ac_ext
  20428. LIBS="$ac_save_LIBS"
  20429. # If that didn't work, only try xmkmf and file system searches
  20430. # for native compilation.
  20431. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20432. then :
  20433. rm -f -r conftest.dir
  20434. if mkdir conftest.dir; then
  20435. cd conftest.dir
  20436. cat >Imakefile <<'_ACEOF'
  20437. incroot:
  20438. @echo incroot='${INCROOT}'
  20439. usrlibdir:
  20440. @echo usrlibdir='${USRLIBDIR}'
  20441. libdir:
  20442. @echo libdir='${LIBDIR}'
  20443. _ACEOF
  20444. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20445. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20446. for ac_var in incroot usrlibdir libdir; do
  20447. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20448. done
  20449. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20450. for ac_extension in a so sl dylib la dll; do
  20451. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20452. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20453. ac_im_usrlibdir=$ac_im_libdir; break
  20454. fi
  20455. done
  20456. # Screen out bogus values from the imake configuration. They are
  20457. # bogus both because they are the default anyway, and because
  20458. # using them would break gcc on systems where it needs fixed includes.
  20459. case $ac_im_incroot in
  20460. /usr/include) ac_x_includes= ;;
  20461. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20462. esac
  20463. case $ac_im_usrlibdir in
  20464. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20465. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20466. esac
  20467. fi
  20468. cd ..
  20469. rm -f -r conftest.dir
  20470. fi
  20471. # Standard set of common directories for X headers.
  20472. # Check X11 before X11Rn because it is often a symlink to the current release.
  20473. ac_x_header_dirs='
  20474. /usr/X11/include
  20475. /usr/X11R7/include
  20476. /usr/X11R6/include
  20477. /usr/X11R5/include
  20478. /usr/X11R4/include
  20479. /usr/include/X11
  20480. /usr/include/X11R7
  20481. /usr/include/X11R6
  20482. /usr/include/X11R5
  20483. /usr/include/X11R4
  20484. /usr/local/X11/include
  20485. /usr/local/X11R7/include
  20486. /usr/local/X11R6/include
  20487. /usr/local/X11R5/include
  20488. /usr/local/X11R4/include
  20489. /usr/local/include/X11
  20490. /usr/local/include/X11R7
  20491. /usr/local/include/X11R6
  20492. /usr/local/include/X11R5
  20493. /usr/local/include/X11R4
  20494. /opt/X11/include
  20495. /usr/X386/include
  20496. /usr/x386/include
  20497. /usr/XFree86/include/X11
  20498. /usr/include
  20499. /usr/local/include
  20500. /usr/unsupported/include
  20501. /usr/athena/include
  20502. /usr/local/x11r5/include
  20503. /usr/lpp/Xamples/include
  20504. /usr/openwin/include
  20505. /usr/openwin/share/include'
  20506. if test "$ac_x_includes" = no; then
  20507. # Guess where to find include files, by looking for Xlib.h.
  20508. # First, try using that file with no special directory specified.
  20509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20510. /* end confdefs.h. */
  20511. #include <X11/Xlib.h>
  20512. _ACEOF
  20513. if ac_fn_c_try_cpp "$LINENO"
  20514. then :
  20515. # We can compile using X headers with no special include directory.
  20516. ac_x_includes=
  20517. else $as_nop
  20518. for ac_dir in $ac_x_header_dirs; do
  20519. if test -r "$ac_dir/X11/Xlib.h"; then
  20520. ac_x_includes=$ac_dir
  20521. break
  20522. fi
  20523. done
  20524. fi
  20525. rm -f conftest.err conftest.i conftest.$ac_ext
  20526. fi # $ac_x_includes = no
  20527. if test "$ac_x_libraries" = no; then
  20528. # Check for the libraries.
  20529. # See if we find them without any special options.
  20530. # Don't add to $LIBS permanently.
  20531. ac_save_LIBS=$LIBS
  20532. LIBS="-lX11 $LIBS"
  20533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20534. /* end confdefs.h. */
  20535. #include <X11/Xlib.h>
  20536. int
  20537. main (void)
  20538. {
  20539. XrmInitialize ()
  20540. ;
  20541. return 0;
  20542. }
  20543. _ACEOF
  20544. if ac_fn_c_try_link "$LINENO"
  20545. then :
  20546. LIBS=$ac_save_LIBS
  20547. # We can link X programs with no special library path.
  20548. ac_x_libraries=
  20549. else $as_nop
  20550. LIBS=$ac_save_LIBS
  20551. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20552. do
  20553. # Don't even attempt the hair of trying to link an X program!
  20554. for ac_extension in a so sl dylib la dll; do
  20555. if test -r "$ac_dir/libX11.$ac_extension"; then
  20556. ac_x_libraries=$ac_dir
  20557. break 2
  20558. fi
  20559. done
  20560. done
  20561. fi
  20562. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20563. conftest$ac_exeext conftest.$ac_ext
  20564. fi # $ac_x_libraries = no
  20565. fi
  20566. # Record the results.
  20567. case $ac_x_includes,$ac_x_libraries in #(
  20568. no,* | *,no | *\'*) :
  20569. # Didn't find X, or a directory has "'" in its name.
  20570. ac_cv_have_x="have_x=no" ;; #(
  20571. *) :
  20572. # Record where we found X for the cache.
  20573. ac_cv_have_x="have_x=yes\
  20574. ac_x_includes='$ac_x_includes'\
  20575. ac_x_libraries='$ac_x_libraries'" ;;
  20576. esac
  20577. fi
  20578. ;; #(
  20579. *) have_x=yes;;
  20580. esac
  20581. eval "$ac_cv_have_x"
  20582. fi # $with_x != no
  20583. if test "$have_x" != yes; then
  20584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20585. printf "%s\n" "$have_x" >&6; }
  20586. no_x=yes
  20587. else
  20588. # If each of the values was on the command line, it overrides each guess.
  20589. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20590. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20591. # Update the cache value to reflect the command line values.
  20592. ac_cv_have_x="have_x=yes\
  20593. ac_x_includes='$x_includes'\
  20594. ac_x_libraries='$x_libraries'"
  20595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20596. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20597. fi
  20598. if test "$no_x" = yes; then
  20599. # Not all programs may use this symbol, but it does not hurt to define it.
  20600. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20601. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20602. else
  20603. if test -n "$x_includes"; then
  20604. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20605. fi
  20606. # It would also be nice to do this for all -L options, not just this one.
  20607. if test -n "$x_libraries"; then
  20608. X_LIBS="$X_LIBS -L$x_libraries"
  20609. # For Solaris; some versions of Sun CC require a space after -R and
  20610. # others require no space. Words are not sufficient . . . .
  20611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20612. printf %s "checking whether -R must be followed by a space... " >&6; }
  20613. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20614. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20615. ac_c_werror_flag=yes
  20616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20617. /* end confdefs.h. */
  20618. int
  20619. main (void)
  20620. {
  20621. ;
  20622. return 0;
  20623. }
  20624. _ACEOF
  20625. if ac_fn_c_try_link "$LINENO"
  20626. then :
  20627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20628. printf "%s\n" "no" >&6; }
  20629. X_LIBS="$X_LIBS -R$x_libraries"
  20630. else $as_nop
  20631. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20633. /* end confdefs.h. */
  20634. int
  20635. main (void)
  20636. {
  20637. ;
  20638. return 0;
  20639. }
  20640. _ACEOF
  20641. if ac_fn_c_try_link "$LINENO"
  20642. then :
  20643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20644. printf "%s\n" "yes" >&6; }
  20645. X_LIBS="$X_LIBS -R $x_libraries"
  20646. else $as_nop
  20647. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20648. printf "%s\n" "neither works" >&6; }
  20649. fi
  20650. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20651. conftest$ac_exeext conftest.$ac_ext
  20652. fi
  20653. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20654. conftest$ac_exeext conftest.$ac_ext
  20655. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20656. LIBS=$ac_xsave_LIBS
  20657. fi
  20658. # Check for system-dependent libraries X programs must link with.
  20659. # Do this before checking for the system-independent R6 libraries
  20660. # (-lICE), since we may need -lsocket or whatever for X linking.
  20661. if test "$ISC" = yes; then
  20662. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20663. else
  20664. # Martyn Johnson says this is needed for Ultrix, if the X
  20665. # libraries were built with DECnet support. And Karl Berry says
  20666. # the Alpha needs dnet_stub (dnet does not exist).
  20667. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20669. /* end confdefs.h. */
  20670. /* Override any GCC internal prototype to avoid an error.
  20671. Use char because int might match the return type of a GCC
  20672. builtin and then its argument prototype would still apply. */
  20673. char XOpenDisplay ();
  20674. int
  20675. main (void)
  20676. {
  20677. return XOpenDisplay ();
  20678. ;
  20679. return 0;
  20680. }
  20681. _ACEOF
  20682. if ac_fn_c_try_link "$LINENO"
  20683. then :
  20684. else $as_nop
  20685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20686. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20687. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20688. then :
  20689. printf %s "(cached) " >&6
  20690. else $as_nop
  20691. ac_check_lib_save_LIBS=$LIBS
  20692. LIBS="-ldnet $LIBS"
  20693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20694. /* end confdefs.h. */
  20695. /* Override any GCC internal prototype to avoid an error.
  20696. Use char because int might match the return type of a GCC
  20697. builtin and then its argument prototype would still apply. */
  20698. char dnet_ntoa ();
  20699. int
  20700. main (void)
  20701. {
  20702. return dnet_ntoa ();
  20703. ;
  20704. return 0;
  20705. }
  20706. _ACEOF
  20707. if ac_fn_c_try_link "$LINENO"
  20708. then :
  20709. ac_cv_lib_dnet_dnet_ntoa=yes
  20710. else $as_nop
  20711. ac_cv_lib_dnet_dnet_ntoa=no
  20712. fi
  20713. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20714. conftest$ac_exeext conftest.$ac_ext
  20715. LIBS=$ac_check_lib_save_LIBS
  20716. fi
  20717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20718. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20719. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20720. then :
  20721. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20722. fi
  20723. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20725. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20726. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20727. then :
  20728. printf %s "(cached) " >&6
  20729. else $as_nop
  20730. ac_check_lib_save_LIBS=$LIBS
  20731. LIBS="-ldnet_stub $LIBS"
  20732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20733. /* end confdefs.h. */
  20734. /* Override any GCC internal prototype to avoid an error.
  20735. Use char because int might match the return type of a GCC
  20736. builtin and then its argument prototype would still apply. */
  20737. char dnet_ntoa ();
  20738. int
  20739. main (void)
  20740. {
  20741. return dnet_ntoa ();
  20742. ;
  20743. return 0;
  20744. }
  20745. _ACEOF
  20746. if ac_fn_c_try_link "$LINENO"
  20747. then :
  20748. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20749. else $as_nop
  20750. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20751. fi
  20752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20753. conftest$ac_exeext conftest.$ac_ext
  20754. LIBS=$ac_check_lib_save_LIBS
  20755. fi
  20756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20757. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20758. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20759. then :
  20760. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20761. fi
  20762. fi
  20763. fi
  20764. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20765. conftest$ac_exeext conftest.$ac_ext
  20766. LIBS="$ac_xsave_LIBS"
  20767. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20768. # to get the SysV transport functions.
  20769. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20770. # needs -lnsl.
  20771. # The nsl library prevents programs from opening the X display
  20772. # on Irix 5.2, according to T.E. Dickey.
  20773. # The functions gethostbyname, getservbyname, and inet_addr are
  20774. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20775. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20776. if test "x$ac_cv_func_gethostbyname" = xyes
  20777. then :
  20778. fi
  20779. if test $ac_cv_func_gethostbyname = no; then
  20780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20781. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20782. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20783. then :
  20784. printf %s "(cached) " >&6
  20785. else $as_nop
  20786. ac_check_lib_save_LIBS=$LIBS
  20787. LIBS="-lnsl $LIBS"
  20788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20789. /* end confdefs.h. */
  20790. /* Override any GCC internal prototype to avoid an error.
  20791. Use char because int might match the return type of a GCC
  20792. builtin and then its argument prototype would still apply. */
  20793. char gethostbyname ();
  20794. int
  20795. main (void)
  20796. {
  20797. return gethostbyname ();
  20798. ;
  20799. return 0;
  20800. }
  20801. _ACEOF
  20802. if ac_fn_c_try_link "$LINENO"
  20803. then :
  20804. ac_cv_lib_nsl_gethostbyname=yes
  20805. else $as_nop
  20806. ac_cv_lib_nsl_gethostbyname=no
  20807. fi
  20808. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20809. conftest$ac_exeext conftest.$ac_ext
  20810. LIBS=$ac_check_lib_save_LIBS
  20811. fi
  20812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20813. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20814. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20815. then :
  20816. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20817. fi
  20818. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20820. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20821. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20822. then :
  20823. printf %s "(cached) " >&6
  20824. else $as_nop
  20825. ac_check_lib_save_LIBS=$LIBS
  20826. LIBS="-lbsd $LIBS"
  20827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20828. /* end confdefs.h. */
  20829. /* Override any GCC internal prototype to avoid an error.
  20830. Use char because int might match the return type of a GCC
  20831. builtin and then its argument prototype would still apply. */
  20832. char gethostbyname ();
  20833. int
  20834. main (void)
  20835. {
  20836. return gethostbyname ();
  20837. ;
  20838. return 0;
  20839. }
  20840. _ACEOF
  20841. if ac_fn_c_try_link "$LINENO"
  20842. then :
  20843. ac_cv_lib_bsd_gethostbyname=yes
  20844. else $as_nop
  20845. ac_cv_lib_bsd_gethostbyname=no
  20846. fi
  20847. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20848. conftest$ac_exeext conftest.$ac_ext
  20849. LIBS=$ac_check_lib_save_LIBS
  20850. fi
  20851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20852. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20853. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20854. then :
  20855. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20856. fi
  20857. fi
  20858. fi
  20859. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20860. # socket/setsockopt and other routines are undefined under SCO ODT
  20861. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20862. # on later versions), says Simon Leinen: it contains gethostby*
  20863. # variants that don't use the name server (or something). -lsocket
  20864. # must be given before -lnsl if both are needed. We assume that
  20865. # if connect needs -lnsl, so does gethostbyname.
  20866. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20867. if test "x$ac_cv_func_connect" = xyes
  20868. then :
  20869. fi
  20870. if test $ac_cv_func_connect = no; then
  20871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20872. printf %s "checking for connect in -lsocket... " >&6; }
  20873. if test ${ac_cv_lib_socket_connect+y}
  20874. then :
  20875. printf %s "(cached) " >&6
  20876. else $as_nop
  20877. ac_check_lib_save_LIBS=$LIBS
  20878. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20880. /* end confdefs.h. */
  20881. /* Override any GCC internal prototype to avoid an error.
  20882. Use char because int might match the return type of a GCC
  20883. builtin and then its argument prototype would still apply. */
  20884. char connect ();
  20885. int
  20886. main (void)
  20887. {
  20888. return connect ();
  20889. ;
  20890. return 0;
  20891. }
  20892. _ACEOF
  20893. if ac_fn_c_try_link "$LINENO"
  20894. then :
  20895. ac_cv_lib_socket_connect=yes
  20896. else $as_nop
  20897. ac_cv_lib_socket_connect=no
  20898. fi
  20899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20900. conftest$ac_exeext conftest.$ac_ext
  20901. LIBS=$ac_check_lib_save_LIBS
  20902. fi
  20903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20904. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20905. if test "x$ac_cv_lib_socket_connect" = xyes
  20906. then :
  20907. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20908. fi
  20909. fi
  20910. # Guillermo Gomez says -lposix is necessary on A/UX.
  20911. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20912. if test "x$ac_cv_func_remove" = xyes
  20913. then :
  20914. fi
  20915. if test $ac_cv_func_remove = no; then
  20916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20917. printf %s "checking for remove in -lposix... " >&6; }
  20918. if test ${ac_cv_lib_posix_remove+y}
  20919. then :
  20920. printf %s "(cached) " >&6
  20921. else $as_nop
  20922. ac_check_lib_save_LIBS=$LIBS
  20923. LIBS="-lposix $LIBS"
  20924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20925. /* end confdefs.h. */
  20926. /* Override any GCC internal prototype to avoid an error.
  20927. Use char because int might match the return type of a GCC
  20928. builtin and then its argument prototype would still apply. */
  20929. char remove ();
  20930. int
  20931. main (void)
  20932. {
  20933. return remove ();
  20934. ;
  20935. return 0;
  20936. }
  20937. _ACEOF
  20938. if ac_fn_c_try_link "$LINENO"
  20939. then :
  20940. ac_cv_lib_posix_remove=yes
  20941. else $as_nop
  20942. ac_cv_lib_posix_remove=no
  20943. fi
  20944. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20945. conftest$ac_exeext conftest.$ac_ext
  20946. LIBS=$ac_check_lib_save_LIBS
  20947. fi
  20948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20949. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20950. if test "x$ac_cv_lib_posix_remove" = xyes
  20951. then :
  20952. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20953. fi
  20954. fi
  20955. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20956. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20957. if test "x$ac_cv_func_shmat" = xyes
  20958. then :
  20959. fi
  20960. if test $ac_cv_func_shmat = no; then
  20961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20962. printf %s "checking for shmat in -lipc... " >&6; }
  20963. if test ${ac_cv_lib_ipc_shmat+y}
  20964. then :
  20965. printf %s "(cached) " >&6
  20966. else $as_nop
  20967. ac_check_lib_save_LIBS=$LIBS
  20968. LIBS="-lipc $LIBS"
  20969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20970. /* end confdefs.h. */
  20971. /* Override any GCC internal prototype to avoid an error.
  20972. Use char because int might match the return type of a GCC
  20973. builtin and then its argument prototype would still apply. */
  20974. char shmat ();
  20975. int
  20976. main (void)
  20977. {
  20978. return shmat ();
  20979. ;
  20980. return 0;
  20981. }
  20982. _ACEOF
  20983. if ac_fn_c_try_link "$LINENO"
  20984. then :
  20985. ac_cv_lib_ipc_shmat=yes
  20986. else $as_nop
  20987. ac_cv_lib_ipc_shmat=no
  20988. fi
  20989. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20990. conftest$ac_exeext conftest.$ac_ext
  20991. LIBS=$ac_check_lib_save_LIBS
  20992. fi
  20993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20994. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20995. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20996. then :
  20997. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20998. fi
  20999. fi
  21000. fi
  21001. # Check for libraries that X11R6 Xt/Xaw programs need.
  21002. ac_save_LDFLAGS=$LDFLAGS
  21003. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21004. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21005. # check for ICE first), but we must link in the order -lSM -lICE or
  21006. # we get undefined symbols. So assume we have SM if we have ICE.
  21007. # These have to be linked with before -lX11, unlike the other
  21008. # libraries we check for below, so use a different variable.
  21009. # John Interrante, Karl Berry
  21010. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21011. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21012. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21013. then :
  21014. printf %s "(cached) " >&6
  21015. else $as_nop
  21016. ac_check_lib_save_LIBS=$LIBS
  21017. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21019. /* end confdefs.h. */
  21020. /* Override any GCC internal prototype to avoid an error.
  21021. Use char because int might match the return type of a GCC
  21022. builtin and then its argument prototype would still apply. */
  21023. char IceConnectionNumber ();
  21024. int
  21025. main (void)
  21026. {
  21027. return IceConnectionNumber ();
  21028. ;
  21029. return 0;
  21030. }
  21031. _ACEOF
  21032. if ac_fn_c_try_link "$LINENO"
  21033. then :
  21034. ac_cv_lib_ICE_IceConnectionNumber=yes
  21035. else $as_nop
  21036. ac_cv_lib_ICE_IceConnectionNumber=no
  21037. fi
  21038. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21039. conftest$ac_exeext conftest.$ac_ext
  21040. LIBS=$ac_check_lib_save_LIBS
  21041. fi
  21042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21043. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21044. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21045. then :
  21046. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21047. fi
  21048. LDFLAGS=$ac_save_LDFLAGS
  21049. fi
  21050. if test x$have_x = xyes; then
  21051. # Check whether --enable-x11-shared was given.
  21052. if test ${enable_x11_shared+y}
  21053. then :
  21054. enableval=$enable_x11_shared;
  21055. else $as_nop
  21056. enable_x11_shared=maybe
  21057. fi
  21058. case "$host" in
  21059. *-*-darwin*)
  21060. # Apple now puts this in /opt/X11
  21061. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21062. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21063. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21064. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21065. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21066. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21067. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21068. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21069. ;;
  21070. *-*-openbsd*)
  21071. x11_lib='libX11.so'
  21072. x11ext_lib='libXext.so'
  21073. xcursor_lib='libXcursor.so'
  21074. xinput_lib='libXi.so'
  21075. xfixes_lib='libXfixes.so'
  21076. xrandr_lib='libXrandr.so'
  21077. xrender_lib='libXrender.so'
  21078. xss_lib='libXss.so'
  21079. ;;
  21080. *)
  21081. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21082. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21083. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21084. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21085. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21086. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21087. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21088. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21089. ;;
  21090. esac
  21091. if test x$ac_cv_func_shmat != xyes; then
  21092. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21093. fi
  21094. CFLAGS="$CFLAGS $X_CFLAGS"
  21095. LDFLAGS="$LDFLAGS $X_LIBS"
  21096. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21097. #include <X11/Xproto.h>
  21098. "
  21099. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21100. then :
  21101. have_xext_h_hdr=yes
  21102. else $as_nop
  21103. have_xext_h_hdr=no
  21104. fi
  21105. if test x$have_xext_h_hdr != xyes; then
  21106. as_fn_error $? "
  21107. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21108. " "$LINENO" 5
  21109. fi
  21110. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21111. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21112. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21113. # Needed so SDL applications can include SDL_syswm.h
  21114. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21115. if test x$enable_x11_shared = xmaybe; then
  21116. enable_x11_shared=yes
  21117. fi
  21118. if test x$have_loadso != xyes && \
  21119. test x$enable_x11_shared = xyes; then
  21120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21121. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21122. enable_x11_shared=no
  21123. fi
  21124. if test x$have_loadso = xyes && \
  21125. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21126. echo "-- dynamic libX11 -> $x11_lib"
  21127. echo "-- dynamic libX11ext -> $x11ext_lib"
  21128. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21129. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21130. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21131. else
  21132. enable_x11_shared=no
  21133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21134. SUMMARY_video="${SUMMARY_video} x11"
  21135. fi
  21136. have_video=yes
  21137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21138. printf %s "checking for XGenericEvent... " >&6; }
  21139. have_XGenericEvent=no
  21140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21141. /* end confdefs.h. */
  21142. #include <X11/Xlib.h>
  21143. int
  21144. main (void)
  21145. {
  21146. Display *display;
  21147. XEvent event;
  21148. XGenericEventCookie *cookie = &event.xcookie;
  21149. XNextEvent(display, &event);
  21150. XGetEventData(display, cookie);
  21151. XFreeEventData(display, cookie);
  21152. ;
  21153. return 0;
  21154. }
  21155. _ACEOF
  21156. if ac_fn_c_try_compile "$LINENO"
  21157. then :
  21158. have_XGenericEvent=yes
  21159. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21160. fi
  21161. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21163. printf "%s\n" "$have_XGenericEvent" >&6; }
  21164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21165. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21166. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21167. then :
  21168. printf %s "(cached) " >&6
  21169. else $as_nop
  21170. ac_check_lib_save_LIBS=$LIBS
  21171. LIBS="-lX11 $LIBS"
  21172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21173. /* end confdefs.h. */
  21174. /* Override any GCC internal prototype to avoid an error.
  21175. Use char because int might match the return type of a GCC
  21176. builtin and then its argument prototype would still apply. */
  21177. char XkbKeycodeToKeysym ();
  21178. int
  21179. main (void)
  21180. {
  21181. return XkbKeycodeToKeysym ();
  21182. ;
  21183. return 0;
  21184. }
  21185. _ACEOF
  21186. if ac_fn_c_try_link "$LINENO"
  21187. then :
  21188. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21189. else $as_nop
  21190. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21191. fi
  21192. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21193. conftest$ac_exeext conftest.$ac_ext
  21194. LIBS=$ac_check_lib_save_LIBS
  21195. fi
  21196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21197. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21198. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21199. then :
  21200. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21201. fi
  21202. # Check whether --enable-video-x11-xcursor was given.
  21203. if test ${enable_video_x11_xcursor+y}
  21204. then :
  21205. enableval=$enable_video_x11_xcursor;
  21206. else $as_nop
  21207. enable_video_x11_xcursor=yes
  21208. fi
  21209. if test x$enable_video_x11_xcursor = xyes; then
  21210. definitely_enable_video_x11_xcursor=no
  21211. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21212. "
  21213. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21214. then :
  21215. have_xcursor_h_hdr=yes
  21216. else $as_nop
  21217. have_xcursor_h_hdr=no
  21218. fi
  21219. if test x$have_xcursor_h_hdr = xyes; then
  21220. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21221. echo "-- dynamic libXcursor -> $xcursor_lib"
  21222. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21223. definitely_enable_video_x11_xcursor=yes
  21224. else
  21225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21226. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21227. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21228. then :
  21229. printf %s "(cached) " >&6
  21230. else $as_nop
  21231. ac_check_lib_save_LIBS=$LIBS
  21232. LIBS="-lXcursor $LIBS"
  21233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21234. /* end confdefs.h. */
  21235. /* Override any GCC internal prototype to avoid an error.
  21236. Use char because int might match the return type of a GCC
  21237. builtin and then its argument prototype would still apply. */
  21238. char XcursorImageCreate ();
  21239. int
  21240. main (void)
  21241. {
  21242. return XcursorImageCreate ();
  21243. ;
  21244. return 0;
  21245. }
  21246. _ACEOF
  21247. if ac_fn_c_try_link "$LINENO"
  21248. then :
  21249. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21250. else $as_nop
  21251. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21252. fi
  21253. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21254. conftest$ac_exeext conftest.$ac_ext
  21255. LIBS=$ac_check_lib_save_LIBS
  21256. fi
  21257. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21258. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21259. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21260. then :
  21261. have_xcursor_lib=yes
  21262. fi
  21263. if test x$have_xcursor_lib = xyes ; then
  21264. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21265. definitely_enable_video_x11_xcursor=yes
  21266. fi
  21267. fi
  21268. fi
  21269. fi
  21270. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21271. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21272. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21273. fi
  21274. # Check whether --enable-video-x11-xdbe was given.
  21275. if test ${enable_video_x11_xdbe+y}
  21276. then :
  21277. enableval=$enable_video_x11_xdbe;
  21278. else $as_nop
  21279. enable_video_x11_xdbe=yes
  21280. fi
  21281. if test x$enable_video_x11_xdbe = xyes; then
  21282. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21283. "
  21284. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21285. then :
  21286. have_dbe_h_hdr=yes
  21287. else $as_nop
  21288. have_dbe_h_hdr=no
  21289. fi
  21290. if test x$have_dbe_h_hdr = xyes; then
  21291. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21292. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21293. fi
  21294. fi
  21295. # Check whether --enable-video-x11-xinput was given.
  21296. if test ${enable_video_x11_xinput+y}
  21297. then :
  21298. enableval=$enable_video_x11_xinput;
  21299. else $as_nop
  21300. enable_video_x11_xinput=yes
  21301. fi
  21302. if test x$enable_video_x11_xinput = xyes; then
  21303. definitely_enable_video_x11_xinput=no
  21304. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21305. "
  21306. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21307. then :
  21308. have_xinput_h_hdr=yes
  21309. else $as_nop
  21310. have_xinput_h_hdr=no
  21311. fi
  21312. if test x$have_xinput_h_hdr = xyes; then
  21313. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21314. echo "-- dynamic libXi -> $xinput_lib"
  21315. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21316. definitely_enable_video_x11_xinput=yes
  21317. else
  21318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21319. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21320. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21321. then :
  21322. printf %s "(cached) " >&6
  21323. else $as_nop
  21324. ac_check_lib_save_LIBS=$LIBS
  21325. LIBS="-lXi $LIBS"
  21326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21327. /* end confdefs.h. */
  21328. /* Override any GCC internal prototype to avoid an error.
  21329. Use char because int might match the return type of a GCC
  21330. builtin and then its argument prototype would still apply. */
  21331. char XOpenDevice ();
  21332. int
  21333. main (void)
  21334. {
  21335. return XOpenDevice ();
  21336. ;
  21337. return 0;
  21338. }
  21339. _ACEOF
  21340. if ac_fn_c_try_link "$LINENO"
  21341. then :
  21342. ac_cv_lib_Xi_XOpenDevice=yes
  21343. else $as_nop
  21344. ac_cv_lib_Xi_XOpenDevice=no
  21345. fi
  21346. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21347. conftest$ac_exeext conftest.$ac_ext
  21348. LIBS=$ac_check_lib_save_LIBS
  21349. fi
  21350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21351. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21352. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21353. then :
  21354. have_xinput_lib=yes
  21355. fi
  21356. if test x$have_xinput_lib = xyes ; then
  21357. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21358. definitely_enable_video_x11_xinput=yes
  21359. fi
  21360. fi
  21361. fi
  21362. fi
  21363. if test x$definitely_enable_video_x11_xinput = xyes; then
  21364. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21365. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21367. printf %s "checking for xinput2 multitouch... " >&6; }
  21368. have_xinput2_multitouch=no
  21369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21370. /* end confdefs.h. */
  21371. #include <X11/Xlib.h>
  21372. #include <X11/Xproto.h>
  21373. #include <X11/extensions/XInput2.h>
  21374. int
  21375. main (void)
  21376. {
  21377. int event_type = XI_TouchBegin;
  21378. XITouchClassInfo *t;
  21379. ;
  21380. return 0;
  21381. }
  21382. _ACEOF
  21383. if ac_fn_c_try_compile "$LINENO"
  21384. then :
  21385. have_xinput2_multitouch=yes
  21386. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21387. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21388. fi
  21389. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21391. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21392. fi
  21393. # Check whether --enable-video-x11-xfixes was given.
  21394. if test ${enable_video_x11_xfixes+y}
  21395. then :
  21396. enableval=$enable_video_x11_xfixes;
  21397. else $as_nop
  21398. enable_video_x11_xfixes=yes
  21399. fi
  21400. if test x$enable_video_x11_xfixes = xyes; then
  21401. definitely_enable_video_x11_xfixes=no
  21402. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21404. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21406. /* end confdefs.h. */
  21407. #include <X11/Xlib.h>
  21408. #include <X11/Xproto.h>
  21409. #include <X11/extensions/XInput2.h>
  21410. #include <X11/extensions/Xfixes.h>
  21411. int
  21412. main (void)
  21413. {
  21414. BarrierEventID b;
  21415. ;
  21416. return 0;
  21417. }
  21418. _ACEOF
  21419. if ac_fn_c_try_compile "$LINENO"
  21420. then :
  21421. have_xfixes_h_hdr=yes
  21422. else $as_nop
  21423. have_xfixes_h_hdr=no
  21424. fi
  21425. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21427. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21428. if test x$have_xfixes_h_hdr = xyes; then
  21429. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21430. echo "-- dynamic libXfixes -> $xfixes_lib"
  21431. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21432. definitely_enable_video_x11_xfixes=yes
  21433. else
  21434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21435. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21436. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21437. then :
  21438. printf %s "(cached) " >&6
  21439. else $as_nop
  21440. ac_check_lib_save_LIBS=$LIBS
  21441. LIBS="-lXfixes $LIBS"
  21442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21443. /* end confdefs.h. */
  21444. /* Override any GCC internal prototype to avoid an error.
  21445. Use char because int might match the return type of a GCC
  21446. builtin and then its argument prototype would still apply. */
  21447. char XFixesCreatePointerBarrier ();
  21448. int
  21449. main (void)
  21450. {
  21451. return XFixesCreatePointerBarrier ();
  21452. ;
  21453. return 0;
  21454. }
  21455. _ACEOF
  21456. if ac_fn_c_try_link "$LINENO"
  21457. then :
  21458. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21459. else $as_nop
  21460. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21461. fi
  21462. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21463. conftest$ac_exeext conftest.$ac_ext
  21464. LIBS=$ac_check_lib_save_LIBS
  21465. fi
  21466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21467. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21468. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21469. then :
  21470. have_xfixes_lib=yes
  21471. fi
  21472. if test x$have_xfixes_lib = xyes ; then
  21473. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21474. definitely_enable_video_x11_xfixes=yes
  21475. fi
  21476. fi
  21477. fi
  21478. fi
  21479. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21480. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21481. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21482. fi
  21483. # Check whether --enable-video-x11-xrandr was given.
  21484. if test ${enable_video_x11_xrandr+y}
  21485. then :
  21486. enableval=$enable_video_x11_xrandr;
  21487. else $as_nop
  21488. enable_video_x11_xrandr=yes
  21489. fi
  21490. if test x$enable_video_x11_xrandr = xyes; then
  21491. definitely_enable_video_x11_xrandr=no
  21492. have_xrandr_h_hdr=no
  21493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21494. /* end confdefs.h. */
  21495. #include <X11/Xlib.h>
  21496. #include <X11/extensions/Xrandr.h>
  21497. int
  21498. main (void)
  21499. {
  21500. XRRScreenResources *res = NULL;
  21501. ;
  21502. return 0;
  21503. }
  21504. _ACEOF
  21505. if ac_fn_c_try_compile "$LINENO"
  21506. then :
  21507. have_xrandr_h_hdr=yes
  21508. fi
  21509. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21510. if test x$have_xrandr_h_hdr = xyes; then
  21511. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21512. echo "-- dynamic libXrandr -> $xrandr_lib"
  21513. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21514. definitely_enable_video_x11_xrandr=yes
  21515. else
  21516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21517. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21518. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21519. then :
  21520. printf %s "(cached) " >&6
  21521. else $as_nop
  21522. ac_check_lib_save_LIBS=$LIBS
  21523. LIBS="-lXrandr $LIBS"
  21524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21525. /* end confdefs.h. */
  21526. /* Override any GCC internal prototype to avoid an error.
  21527. Use char because int might match the return type of a GCC
  21528. builtin and then its argument prototype would still apply. */
  21529. char XRRQueryExtension ();
  21530. int
  21531. main (void)
  21532. {
  21533. return XRRQueryExtension ();
  21534. ;
  21535. return 0;
  21536. }
  21537. _ACEOF
  21538. if ac_fn_c_try_link "$LINENO"
  21539. then :
  21540. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21541. else $as_nop
  21542. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21543. fi
  21544. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21545. conftest$ac_exeext conftest.$ac_ext
  21546. LIBS=$ac_check_lib_save_LIBS
  21547. fi
  21548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21549. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21550. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21551. then :
  21552. have_xrandr_lib=yes
  21553. fi
  21554. if test x$have_xrandr_lib = xyes ; then
  21555. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21556. definitely_enable_video_x11_xrandr=yes
  21557. fi
  21558. fi
  21559. fi
  21560. fi
  21561. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21562. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21563. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21564. fi
  21565. # Check whether --enable-video-x11-scrnsaver was given.
  21566. if test ${enable_video_x11_scrnsaver+y}
  21567. then :
  21568. enableval=$enable_video_x11_scrnsaver;
  21569. else $as_nop
  21570. enable_video_x11_scrnsaver=yes
  21571. fi
  21572. if test x$enable_video_x11_scrnsaver = xyes; then
  21573. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21574. "
  21575. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21576. then :
  21577. have_scrnsaver_h_hdr=yes
  21578. else $as_nop
  21579. have_scrnsaver_h_hdr=no
  21580. fi
  21581. if test x$have_scrnsaver_h_hdr = xyes; then
  21582. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21583. echo "-- dynamic libXss -> $xss_lib"
  21584. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21585. definitely_enable_video_x11_scrnsaver=yes
  21586. else
  21587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21588. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21589. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21590. then :
  21591. printf %s "(cached) " >&6
  21592. else $as_nop
  21593. ac_check_lib_save_LIBS=$LIBS
  21594. LIBS="-lXss $LIBS"
  21595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21596. /* end confdefs.h. */
  21597. /* Override any GCC internal prototype to avoid an error.
  21598. Use char because int might match the return type of a GCC
  21599. builtin and then its argument prototype would still apply. */
  21600. char XScreenSaverSuspend ();
  21601. int
  21602. main (void)
  21603. {
  21604. return XScreenSaverSuspend ();
  21605. ;
  21606. return 0;
  21607. }
  21608. _ACEOF
  21609. if ac_fn_c_try_link "$LINENO"
  21610. then :
  21611. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21612. else $as_nop
  21613. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21614. fi
  21615. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21616. conftest$ac_exeext conftest.$ac_ext
  21617. LIBS=$ac_check_lib_save_LIBS
  21618. fi
  21619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21620. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21621. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21622. then :
  21623. have_xss_lib=yes
  21624. fi
  21625. if test x$have_xss_lib = xyes ; then
  21626. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21627. definitely_enable_video_x11_scrnsaver=yes
  21628. fi
  21629. fi
  21630. fi
  21631. fi
  21632. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21633. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21634. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21635. fi
  21636. # Check whether --enable-video-x11-xshape was given.
  21637. if test ${enable_video_x11_xshape+y}
  21638. then :
  21639. enableval=$enable_video_x11_xshape;
  21640. else $as_nop
  21641. enable_video_x11_xshape=yes
  21642. fi
  21643. if test x$enable_video_x11_xshape = xyes; then
  21644. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21645. "
  21646. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21647. then :
  21648. have_shape_h_hdr=yes
  21649. else $as_nop
  21650. have_shape_h_hdr=no
  21651. fi
  21652. if test x$have_shape_h_hdr = xyes; then
  21653. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21654. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21655. fi
  21656. fi
  21657. fi
  21658. fi
  21659. if test x$have_x != xyes; then
  21660. # Prevent Mesa from including X11 headers
  21661. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21662. fi
  21663. }
  21664. CheckVivanteVideo()
  21665. {
  21666. # Check whether --enable-video-vivante was given.
  21667. if test ${enable_video_vivante+y}
  21668. then :
  21669. enableval=$enable_video_vivante;
  21670. else $as_nop
  21671. enable_video_vivante=yes
  21672. fi
  21673. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21675. printf %s "checking for Vivante VDK API... " >&6; }
  21676. have_vivante_vdk=no
  21677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21678. /* end confdefs.h. */
  21679. #define LINUX
  21680. #define EGL_API_FB
  21681. #include <gc_vdk.h>
  21682. int
  21683. main (void)
  21684. {
  21685. ;
  21686. return 0;
  21687. }
  21688. _ACEOF
  21689. if ac_fn_c_try_compile "$LINENO"
  21690. then :
  21691. have_vivante_vdk=yes
  21692. fi
  21693. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21695. printf "%s\n" "$have_vivante_vdk" >&6; }
  21696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21697. printf %s "checking for Vivante FB API... " >&6; }
  21698. have_vivante_egl=no
  21699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21700. /* end confdefs.h. */
  21701. #define LINUX
  21702. #define EGL_API_FB
  21703. #include <EGL/eglvivante.h>
  21704. int
  21705. main (void)
  21706. {
  21707. ;
  21708. return 0;
  21709. }
  21710. _ACEOF
  21711. if ac_fn_c_try_compile "$LINENO"
  21712. then :
  21713. have_vivante_egl=yes
  21714. fi
  21715. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21717. printf "%s\n" "$have_vivante_egl" >&6; }
  21718. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21719. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21720. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21721. if test x$have_vivante_vdk = xyes; then
  21722. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21723. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21724. fi
  21725. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21726. SUMMARY_video="${SUMMARY_video} vivante"
  21727. have_video=yes
  21728. fi
  21729. fi
  21730. }
  21731. CheckHaikuVideo()
  21732. {
  21733. if test x$enable_video = xyes; then
  21734. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21735. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21736. have_video=yes
  21737. SUMMARY_video="${SUMMARY_video} haiku"
  21738. fi
  21739. }
  21740. CheckCOCOA()
  21741. {
  21742. # Check whether --enable-video-cocoa was given.
  21743. if test ${enable_video_cocoa+y}
  21744. then :
  21745. enableval=$enable_video_cocoa;
  21746. else $as_nop
  21747. enable_video_cocoa=yes
  21748. fi
  21749. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21750. save_CFLAGS="$CFLAGS"
  21751. CFLAGS="$CFLAGS -x objective-c"
  21752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21753. printf %s "checking for Cocoa framework... " >&6; }
  21754. have_cocoa=no
  21755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21756. /* end confdefs.h. */
  21757. #import <Cocoa/Cocoa.h>
  21758. int
  21759. main (void)
  21760. {
  21761. ;
  21762. return 0;
  21763. }
  21764. _ACEOF
  21765. if ac_fn_c_try_compile "$LINENO"
  21766. then :
  21767. have_cocoa=yes
  21768. fi
  21769. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21770. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21771. printf "%s\n" "$have_cocoa" >&6; }
  21772. CFLAGS="$save_CFLAGS"
  21773. if test x$have_cocoa = xyes; then
  21774. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21775. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21776. SUMMARY_video="${SUMMARY_video} cocoa"
  21777. have_video=yes
  21778. fi
  21779. fi
  21780. }
  21781. CheckMETAL()
  21782. {
  21783. # Check whether --enable-video-metal was given.
  21784. if test ${enable_video_metal+y}
  21785. then :
  21786. enableval=$enable_video_metal;
  21787. else $as_nop
  21788. enable_video_metal=yes
  21789. fi
  21790. # Check whether --enable-render-metal was given.
  21791. if test ${enable_render_metal+y}
  21792. then :
  21793. enableval=$enable_render_metal;
  21794. else $as_nop
  21795. enable_render_metal=yes
  21796. fi
  21797. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21798. save_CFLAGS="$CFLAGS"
  21799. CFLAGS="$CFLAGS -x objective-c"
  21800. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21801. printf %s "checking for Metal framework... " >&6; }
  21802. have_metal=no
  21803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21804. /* end confdefs.h. */
  21805. #import <Cocoa/Cocoa.h>
  21806. #import <Metal/Metal.h>
  21807. #import <QuartzCore/CAMetalLayer.h>
  21808. #if TARGET_CPU_X86
  21809. #error Metal doesn't work on this configuration
  21810. #endif
  21811. int
  21812. main (void)
  21813. {
  21814. ;
  21815. return 0;
  21816. }
  21817. _ACEOF
  21818. if ac_fn_c_try_compile "$LINENO"
  21819. then :
  21820. have_metal=yes
  21821. fi
  21822. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21823. CFLAGS="$save_CFLAGS"
  21824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21825. printf "%s\n" "$have_metal" >&6; }
  21826. if test x$have_metal = xyes; then
  21827. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21828. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21829. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21830. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21831. fi
  21832. SUMMARY_video="${SUMMARY_video} metal"
  21833. else
  21834. enable_video_metal=no
  21835. enable_render_metal=no
  21836. fi
  21837. fi
  21838. }
  21839. CheckDirectFB()
  21840. {
  21841. # Check whether --enable-video-directfb was given.
  21842. if test ${enable_video_directfb+y}
  21843. then :
  21844. enableval=$enable_video_directfb;
  21845. else $as_nop
  21846. enable_video_directfb=no
  21847. fi
  21848. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21849. pkg_failed=no
  21850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21851. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21852. if test -n "$DIRECTFB_CFLAGS"; then
  21853. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21854. elif test -n "$PKG_CONFIG"; then
  21855. if test -n "$PKG_CONFIG" && \
  21856. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21857. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21858. ac_status=$?
  21859. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21860. test $ac_status = 0; }; then
  21861. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21862. test "x$?" != "x0" && pkg_failed=yes
  21863. else
  21864. pkg_failed=yes
  21865. fi
  21866. else
  21867. pkg_failed=untried
  21868. fi
  21869. if test -n "$DIRECTFB_LIBS"; then
  21870. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21871. elif test -n "$PKG_CONFIG"; then
  21872. if test -n "$PKG_CONFIG" && \
  21873. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21874. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21875. ac_status=$?
  21876. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21877. test $ac_status = 0; }; then
  21878. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21879. test "x$?" != "x0" && pkg_failed=yes
  21880. else
  21881. pkg_failed=yes
  21882. fi
  21883. else
  21884. pkg_failed=untried
  21885. fi
  21886. if test $pkg_failed = yes; then
  21887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21888. printf "%s\n" "no" >&6; }
  21889. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21890. _pkg_short_errors_supported=yes
  21891. else
  21892. _pkg_short_errors_supported=no
  21893. fi
  21894. if test $_pkg_short_errors_supported = yes; then
  21895. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21896. else
  21897. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21898. fi
  21899. # Put the nasty error message in config.log where it belongs
  21900. echo "$DIRECTFB_PKG_ERRORS" >&5
  21901. video_directfb=no
  21902. elif test $pkg_failed = untried; then
  21903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21904. printf "%s\n" "no" >&6; }
  21905. video_directfb=no
  21906. else
  21907. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21908. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21909. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21910. printf "%s\n" "yes" >&6; }
  21911. video_directfb=yes
  21912. fi
  21913. if test x$video_directfb = xyes; then
  21914. # SuSE 11.1 installs directfb-config without directfb-devel
  21915. save_CPPFLAGS="$CPPFLAGS"
  21916. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21917. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21918. if test "x$ac_cv_header_directfb_h" = xyes
  21919. then :
  21920. have_directfb_hdr=yes
  21921. else $as_nop
  21922. have_directfb_hdr=no
  21923. fi
  21924. CPPFLAGS="$save_CPPFLAGS"
  21925. video_directfb=$have_directfb_hdr
  21926. fi
  21927. if test x$video_directfb = xyes; then
  21928. # Check whether --enable-directfb-shared was given.
  21929. if test ${enable_directfb_shared+y}
  21930. then :
  21931. enableval=$enable_directfb_shared;
  21932. else $as_nop
  21933. enable_directfb_shared=yes
  21934. fi
  21935. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21936. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21937. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21938. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21939. directfb_shared=no
  21940. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21941. if test x$have_loadso != xyes && \
  21942. test x$enable_directfb_shared = xyes; then
  21943. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21944. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21945. fi
  21946. if test x$have_loadso = xyes && \
  21947. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21948. directfb_shared=yes
  21949. echo "-- dynamic libdirectfb -> $directfb_lib"
  21950. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21951. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21952. else
  21953. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21954. SUMMARY_video="${SUMMARY_video} directfb"
  21955. fi
  21956. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21957. have_video=yes
  21958. fi
  21959. fi
  21960. }
  21961. CheckKMSDRM()
  21962. {
  21963. # Check whether --enable-video-kmsdrm was given.
  21964. if test ${enable_video_kmsdrm+y}
  21965. then :
  21966. enableval=$enable_video_kmsdrm;
  21967. else $as_nop
  21968. enable_video_kmsdrm=yes
  21969. fi
  21970. if test x$enable_video = xyes && \
  21971. test x$enable_video_kmsdrm = xyes && \
  21972. test x$video_opengl_egl = xyes; then
  21973. video_kmsdrm=no
  21974. pkg_failed=no
  21975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21976. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21977. if test -n "$LIBDRM_CFLAGS"; then
  21978. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21979. elif test -n "$PKG_CONFIG"; then
  21980. if test -n "$PKG_CONFIG" && \
  21981. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21982. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21983. ac_status=$?
  21984. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21985. test $ac_status = 0; }; then
  21986. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21987. test "x$?" != "x0" && pkg_failed=yes
  21988. else
  21989. pkg_failed=yes
  21990. fi
  21991. else
  21992. pkg_failed=untried
  21993. fi
  21994. if test -n "$LIBDRM_LIBS"; then
  21995. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21996. elif test -n "$PKG_CONFIG"; then
  21997. if test -n "$PKG_CONFIG" && \
  21998. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21999. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  22000. ac_status=$?
  22001. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22002. test $ac_status = 0; }; then
  22003. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22004. test "x$?" != "x0" && pkg_failed=yes
  22005. else
  22006. pkg_failed=yes
  22007. fi
  22008. else
  22009. pkg_failed=untried
  22010. fi
  22011. if test $pkg_failed = yes; then
  22012. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22013. printf "%s\n" "no" >&6; }
  22014. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22015. _pkg_short_errors_supported=yes
  22016. else
  22017. _pkg_short_errors_supported=no
  22018. fi
  22019. if test $_pkg_short_errors_supported = yes; then
  22020. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22021. else
  22022. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22023. fi
  22024. # Put the nasty error message in config.log where it belongs
  22025. echo "$LIBDRM_PKG_ERRORS" >&5
  22026. libdrm_avail=no
  22027. elif test $pkg_failed = untried; then
  22028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22029. printf "%s\n" "no" >&6; }
  22030. libdrm_avail=no
  22031. else
  22032. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22033. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22035. printf "%s\n" "yes" >&6; }
  22036. libdrm_avail=yes
  22037. fi
  22038. pkg_failed=no
  22039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22040. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22041. if test -n "$LIBGBM_CFLAGS"; then
  22042. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22043. elif test -n "$PKG_CONFIG"; then
  22044. if test -n "$PKG_CONFIG" && \
  22045. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22046. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22047. ac_status=$?
  22048. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22049. test $ac_status = 0; }; then
  22050. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22051. test "x$?" != "x0" && pkg_failed=yes
  22052. else
  22053. pkg_failed=yes
  22054. fi
  22055. else
  22056. pkg_failed=untried
  22057. fi
  22058. if test -n "$LIBGBM_LIBS"; then
  22059. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22060. elif test -n "$PKG_CONFIG"; then
  22061. if test -n "$PKG_CONFIG" && \
  22062. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22063. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22064. ac_status=$?
  22065. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22066. test $ac_status = 0; }; then
  22067. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22068. test "x$?" != "x0" && pkg_failed=yes
  22069. else
  22070. pkg_failed=yes
  22071. fi
  22072. else
  22073. pkg_failed=untried
  22074. fi
  22075. if test $pkg_failed = yes; then
  22076. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22077. printf "%s\n" "no" >&6; }
  22078. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22079. _pkg_short_errors_supported=yes
  22080. else
  22081. _pkg_short_errors_supported=no
  22082. fi
  22083. if test $_pkg_short_errors_supported = yes; then
  22084. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22085. else
  22086. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22087. fi
  22088. # Put the nasty error message in config.log where it belongs
  22089. echo "$LIBGBM_PKG_ERRORS" >&5
  22090. libgbm_avail=no
  22091. elif test $pkg_failed = untried; then
  22092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22093. printf "%s\n" "no" >&6; }
  22094. libgbm_avail=no
  22095. else
  22096. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22097. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22099. printf "%s\n" "yes" >&6; }
  22100. libgbm_avail=yes
  22101. fi
  22102. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22103. video_kmsdrm=yes
  22104. fi
  22105. if test x$video_kmsdrm = xyes; then
  22106. # Check whether --enable-kmsdrm-shared was given.
  22107. if test ${enable_kmsdrm_shared+y}
  22108. then :
  22109. enableval=$enable_kmsdrm_shared;
  22110. else $as_nop
  22111. enable_kmsdrm_shared=yes
  22112. fi
  22113. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22114. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22115. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22116. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22117. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22118. kmsdrm_shared=no
  22119. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22120. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22121. if test x$have_loadso != xyes && \
  22122. test x$enable_kmsdrm_shared = xyes; then
  22123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22124. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22125. fi
  22126. if test x$have_loadso = xyes && \
  22127. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22128. kmsdrm_shared=yes
  22129. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22130. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22131. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22132. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22133. else
  22134. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22135. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22136. fi
  22137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22138. printf "%s\n" "$kmsdrm_shared" >&6; }
  22139. if test x$kmsdrm_shared = xyes; then
  22140. echo "-- dynamic libdrm -> $drm_lib"
  22141. echo "-- dynamic libgbm -> $gbm_lib"
  22142. fi
  22143. have_video=yes
  22144. fi
  22145. fi
  22146. }
  22147. CheckDummyVideo()
  22148. {
  22149. # Check whether --enable-video-dummy was given.
  22150. if test ${enable_video_dummy+y}
  22151. then :
  22152. enableval=$enable_video_dummy;
  22153. else $as_nop
  22154. enable_video_dummy=yes
  22155. fi
  22156. if test x$enable_video_dummy = xyes; then
  22157. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22158. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22159. have_video=yes
  22160. SUMMARY_video="${SUMMARY_video} dummy"
  22161. fi
  22162. }
  22163. CheckOffscreenVideo()
  22164. {
  22165. # Check whether --enable-video-offscreen was given.
  22166. if test ${enable_video_offscreen+y}
  22167. then :
  22168. enableval=$enable_video_offscreen;
  22169. else $as_nop
  22170. enable_video_offscreen=yes
  22171. fi
  22172. if test x$enable_video_offscreen = xyes; then
  22173. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22174. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22175. have_video=yes
  22176. SUMMARY_video="${SUMMARY_video} offscreen"
  22177. fi
  22178. }
  22179. CheckQNXVideo()
  22180. {
  22181. if test x$enable_video = xyes; then
  22182. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22183. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22184. have_video=yes
  22185. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22186. SUMMARY_video="${SUMMARY_video} qnx"
  22187. fi
  22188. }
  22189. CheckQNXAudio()
  22190. {
  22191. if test x$enable_audio = xyes; then
  22192. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22193. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22194. have_audio=yes
  22195. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22196. SUMMARY_audio="${SUMMARY_audio} qsa"
  22197. fi
  22198. }
  22199. # Check whether --enable-video-opengl was given.
  22200. if test ${enable_video_opengl+y}
  22201. then :
  22202. enableval=$enable_video_opengl;
  22203. else $as_nop
  22204. enable_video_opengl=yes
  22205. fi
  22206. CheckGLX()
  22207. {
  22208. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22209. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22210. printf %s "checking for GLX support... " >&6; }
  22211. video_opengl_glx=no
  22212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22213. /* end confdefs.h. */
  22214. #include <GL/glx.h>
  22215. int
  22216. main (void)
  22217. {
  22218. ;
  22219. return 0;
  22220. }
  22221. _ACEOF
  22222. if ac_fn_c_try_compile "$LINENO"
  22223. then :
  22224. video_opengl_glx=yes
  22225. fi
  22226. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22228. printf "%s\n" "$video_opengl_glx" >&6; }
  22229. if test x$video_opengl_glx = xyes; then
  22230. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22231. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22232. fi
  22233. fi
  22234. }
  22235. # Check whether --enable-video-opengles was given.
  22236. if test ${enable_video_opengles+y}
  22237. then :
  22238. enableval=$enable_video_opengles;
  22239. else $as_nop
  22240. enable_video_opengles=yes
  22241. fi
  22242. # Check whether --enable-video-opengles1 was given.
  22243. if test ${enable_video_opengles1+y}
  22244. then :
  22245. enableval=$enable_video_opengles1;
  22246. else $as_nop
  22247. enable_video_opengles1=yes
  22248. fi
  22249. # Check whether --enable-video-opengles2 was given.
  22250. if test ${enable_video_opengles2+y}
  22251. then :
  22252. enableval=$enable_video_opengles2;
  22253. else $as_nop
  22254. enable_video_opengles2=yes
  22255. fi
  22256. CheckEGL()
  22257. {
  22258. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22260. printf %s "checking for EGL support... " >&6; }
  22261. video_opengl_egl=no
  22262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22263. /* end confdefs.h. */
  22264. #define LINUX
  22265. #define EGL_API_FB
  22266. #define MESA_EGL_NO_X11_HEADERS
  22267. #define EGL_NO_X11
  22268. #include <EGL/egl.h>
  22269. #include <EGL/eglext.h>
  22270. int
  22271. main (void)
  22272. {
  22273. ;
  22274. return 0;
  22275. }
  22276. _ACEOF
  22277. if ac_fn_c_try_compile "$LINENO"
  22278. then :
  22279. video_opengl_egl=yes
  22280. fi
  22281. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22282. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22283. printf "%s\n" "$video_opengl_egl" >&6; }
  22284. if test x$video_opengl_egl = xyes; then
  22285. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22286. fi
  22287. fi
  22288. }
  22289. CheckOpenGL()
  22290. {
  22291. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22293. printf %s "checking for OpenGL headers... " >&6; }
  22294. video_opengl=no
  22295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22296. /* end confdefs.h. */
  22297. #include <GL/gl.h>
  22298. #include <GL/glext.h>
  22299. int
  22300. main (void)
  22301. {
  22302. ;
  22303. return 0;
  22304. }
  22305. _ACEOF
  22306. if ac_fn_c_try_compile "$LINENO"
  22307. then :
  22308. video_opengl=yes
  22309. fi
  22310. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22312. printf "%s\n" "$video_opengl" >&6; }
  22313. if test x$video_opengl = xyes; then
  22314. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22315. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22316. SUMMARY_video="${SUMMARY_video} opengl"
  22317. fi
  22318. fi
  22319. }
  22320. CheckOpenGLES()
  22321. {
  22322. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22323. if test x$enable_video_opengles1 = xyes; then
  22324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22325. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22326. video_opengles_v1=no
  22327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22328. /* end confdefs.h. */
  22329. #include <GLES/gl.h>
  22330. #include <GLES/glext.h>
  22331. int
  22332. main (void)
  22333. {
  22334. ;
  22335. return 0;
  22336. }
  22337. _ACEOF
  22338. if ac_fn_c_try_compile "$LINENO"
  22339. then :
  22340. video_opengles_v1=yes
  22341. fi
  22342. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22343. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22344. printf "%s\n" "$video_opengles_v1" >&6; }
  22345. if test x$video_opengles_v1 = xyes; then
  22346. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22347. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22348. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22349. fi
  22350. fi
  22351. if test x$enable_video_opengles2 = xyes; then
  22352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22353. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22354. video_opengles_v2=no
  22355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22356. /* end confdefs.h. */
  22357. #include <GLES2/gl2.h>
  22358. #include <GLES2/gl2ext.h>
  22359. int
  22360. main (void)
  22361. {
  22362. ;
  22363. return 0;
  22364. }
  22365. _ACEOF
  22366. if ac_fn_c_try_compile "$LINENO"
  22367. then :
  22368. video_opengles_v2=yes
  22369. fi
  22370. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22372. printf "%s\n" "$video_opengles_v2" >&6; }
  22373. if test x$video_opengles_v2 = xyes; then
  22374. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22375. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22376. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22377. fi
  22378. fi
  22379. fi
  22380. }
  22381. CheckWINDOWSGL()
  22382. {
  22383. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22384. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22385. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22386. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22387. SUMMARY_video="${SUMMARY_video} opengl"
  22388. fi
  22389. }
  22390. CheckWINDOWSGLES()
  22391. {
  22392. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22394. printf %s "checking for EGL support... " >&6; }
  22395. video_opengl_egl=no
  22396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22397. /* end confdefs.h. */
  22398. #include <EGL/egl.h>
  22399. int
  22400. main (void)
  22401. {
  22402. ;
  22403. return 0;
  22404. }
  22405. _ACEOF
  22406. if ac_fn_c_try_compile "$LINENO"
  22407. then :
  22408. video_opengl_egl=yes
  22409. fi
  22410. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22412. printf "%s\n" "$video_opengl_egl" >&6; }
  22413. if test x$video_opengl_egl = xyes; then
  22414. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22415. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22416. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22417. fi
  22418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22419. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22420. video_opengles_v2=no
  22421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22422. /* end confdefs.h. */
  22423. #include <GLES2/gl2.h>
  22424. #include <GLES2/gl2ext.h>
  22425. int
  22426. main (void)
  22427. {
  22428. ;
  22429. return 0;
  22430. }
  22431. _ACEOF
  22432. if ac_fn_c_try_compile "$LINENO"
  22433. then :
  22434. video_opengles_v2=yes
  22435. fi
  22436. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22438. printf "%s\n" "$video_opengles_v2" >&6; }
  22439. if test x$video_opengles_v2 = xyes; then
  22440. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22441. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22442. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22443. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22444. fi
  22445. fi
  22446. }
  22447. CheckHaikuGL()
  22448. {
  22449. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22450. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22451. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22452. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22453. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22454. SUMMARY_video="${SUMMARY_video} opengl"
  22455. fi
  22456. }
  22457. CheckMacGL()
  22458. {
  22459. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22460. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22461. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22462. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22463. SUMMARY_video="${SUMMARY_video} opengl"
  22464. fi
  22465. }
  22466. CheckMacGLES()
  22467. {
  22468. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22469. video_opengl_egl=yes
  22470. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22471. video_opengles_v2=yes
  22472. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22473. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22474. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22475. fi
  22476. }
  22477. CheckEmscriptenGLES()
  22478. {
  22479. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22481. printf %s "checking for EGL support... " >&6; }
  22482. video_opengl_egl=no
  22483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22484. /* end confdefs.h. */
  22485. #include <EGL/egl.h>
  22486. int
  22487. main (void)
  22488. {
  22489. ;
  22490. return 0;
  22491. }
  22492. _ACEOF
  22493. if ac_fn_c_try_compile "$LINENO"
  22494. then :
  22495. video_opengl_egl=yes
  22496. fi
  22497. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22499. printf "%s\n" "$video_opengl_egl" >&6; }
  22500. if test x$video_opengl_egl = xyes; then
  22501. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22502. fi
  22503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22504. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22505. video_opengles_v2=no
  22506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22507. /* end confdefs.h. */
  22508. #include <GLES2/gl2.h>
  22509. #include <GLES2/gl2ext.h>
  22510. int
  22511. main (void)
  22512. {
  22513. ;
  22514. return 0;
  22515. }
  22516. _ACEOF
  22517. if ac_fn_c_try_compile "$LINENO"
  22518. then :
  22519. video_opengles_v2=yes
  22520. fi
  22521. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22522. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22523. printf "%s\n" "$video_opengles_v2" >&6; }
  22524. if test x$video_opengles_v2 = xyes; then
  22525. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22526. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22527. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22528. fi
  22529. fi
  22530. }
  22531. # Check whether --enable-video-vulkan was given.
  22532. if test ${enable_video_vulkan+y}
  22533. then :
  22534. enableval=$enable_video_vulkan;
  22535. else $as_nop
  22536. enable_video_vulkan=yes
  22537. fi
  22538. CheckVulkan()
  22539. {
  22540. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22541. case "$host" in
  22542. *-*-android*)
  22543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22544. /* end confdefs.h. */
  22545. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22546. #error Vulkan doesn't work on this configuration
  22547. #endif
  22548. int
  22549. main (void)
  22550. {
  22551. ;
  22552. return 0;
  22553. }
  22554. _ACEOF
  22555. if ac_fn_c_try_compile "$LINENO"
  22556. then :
  22557. else $as_nop
  22558. enable_video_vulkan=no
  22559. fi
  22560. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22561. ;;
  22562. *-*-darwin*)
  22563. save_CFLAGS="$CFLAGS"
  22564. CFLAGS="$CFLAGS -x objective-c"
  22565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22566. /* end confdefs.h. */
  22567. #include <Cocoa/Cocoa.h>
  22568. #include <Metal/Metal.h>
  22569. #include <QuartzCore/CAMetalLayer.h>
  22570. #if TARGET_CPU_X86
  22571. #error Vulkan doesn't work on this configuration
  22572. #endif
  22573. int
  22574. main (void)
  22575. {
  22576. ;
  22577. return 0;
  22578. }
  22579. _ACEOF
  22580. if ac_fn_c_try_compile "$LINENO"
  22581. then :
  22582. else $as_nop
  22583. enable_video_vulkan=no
  22584. fi
  22585. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22586. CFLAGS="$save_CFLAGS"
  22587. ;;
  22588. *)
  22589. ;;
  22590. esac
  22591. if test x$enable_video_vulkan = xno; then
  22592. # For reasons I am totally unable to see, I get an undefined macro error if
  22593. # I put this in the AC_TRY_COMPILE.
  22594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22595. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22596. fi
  22597. fi
  22598. if test x$have_loadso != xyes; then
  22599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22600. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22601. enable_video_vulkan=no
  22602. fi
  22603. if test x$enable_video_vulkan = xyes; then
  22604. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22605. SUMMARY_video="${SUMMARY_video} vulkan"
  22606. fi
  22607. }
  22608. CheckInputEvents()
  22609. {
  22610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22611. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22612. use_input_events=no
  22613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22614. /* end confdefs.h. */
  22615. #include <linux/input.h>
  22616. int
  22617. main (void)
  22618. {
  22619. #ifndef EVIOCGNAME
  22620. #error EVIOCGNAME() ioctl not available
  22621. #endif
  22622. ;
  22623. return 0;
  22624. }
  22625. _ACEOF
  22626. if ac_fn_c_try_compile "$LINENO"
  22627. then :
  22628. use_input_events=yes
  22629. fi
  22630. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22632. printf "%s\n" "$use_input_events" >&6; }
  22633. if test x$use_input_events = xyes; then
  22634. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22635. SUMMARY_input="${SUMMARY_input} linuxev"
  22636. fi
  22637. }
  22638. CheckInputKD()
  22639. {
  22640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22641. printf %s "checking for Linux kd.h... " >&6; }
  22642. use_input_kd=no
  22643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22644. /* end confdefs.h. */
  22645. #include <linux/kd.h>
  22646. #include <linux/keyboard.h>
  22647. #include <sys/ioctl.h>
  22648. int
  22649. main (void)
  22650. {
  22651. struct kbentry kbe;
  22652. kbe.kb_table = KG_CTRL;
  22653. ioctl(0, KDGKBENT, &kbe);
  22654. ;
  22655. return 0;
  22656. }
  22657. _ACEOF
  22658. if ac_fn_c_try_compile "$LINENO"
  22659. then :
  22660. use_input_kd=yes
  22661. fi
  22662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22664. printf "%s\n" "$use_input_kd" >&6; }
  22665. if test x$use_input_kd = xyes; then
  22666. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22667. SUMMARY_input="${SUMMARY_input} linuxkd"
  22668. fi
  22669. }
  22670. CheckInputKBIO()
  22671. {
  22672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22673. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22674. use_input_kbio=no
  22675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22676. /* end confdefs.h. */
  22677. #include <sys/kbio.h>
  22678. #include <sys/ioctl.h>
  22679. int
  22680. main (void)
  22681. {
  22682. accentmap_t accTable;
  22683. ioctl(0, KDENABIO, 1);
  22684. ;
  22685. return 0;
  22686. }
  22687. _ACEOF
  22688. if ac_fn_c_try_compile "$LINENO"
  22689. then :
  22690. use_input_kbio=yes
  22691. fi
  22692. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22694. printf "%s\n" "$use_input_kbio" >&6; }
  22695. if test x$use_input_kbio = xyes; then
  22696. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22697. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22698. fi
  22699. }
  22700. CheckInputWSCONS()
  22701. {
  22702. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22703. printf %s "checking for OpenBSD wscons... " >&6; }
  22704. use_input_wscons=no
  22705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22706. /* end confdefs.h. */
  22707. #include <sys/time.h>
  22708. #include <dev/wscons/wsconsio.h>
  22709. #include <dev/wscons/wsksymdef.h>
  22710. #include <dev/wscons/wsksymvar.h>
  22711. #include <sys/ioctl.h>
  22712. int
  22713. main (void)
  22714. {
  22715. struct wskbd_map_data data;
  22716. ioctl(0, WSKBDIO_GETMAP, &data);
  22717. ;
  22718. return 0;
  22719. }
  22720. _ACEOF
  22721. if ac_fn_c_try_compile "$LINENO"
  22722. then :
  22723. use_input_wscons=yes
  22724. fi
  22725. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22727. printf "%s\n" "$use_input_wscons" >&6; }
  22728. if test x$use_input_wscons = xyes; then
  22729. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22730. SUMMARY_input="${SUMMARY_input} wscons"
  22731. fi
  22732. }
  22733. CheckLibUDev()
  22734. {
  22735. # Check whether --enable-libudev was given.
  22736. if test ${enable_libudev+y}
  22737. then :
  22738. enableval=$enable_libudev;
  22739. else $as_nop
  22740. enable_libudev=yes
  22741. fi
  22742. if test x$enable_libudev = xyes; then
  22743. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22744. if test "x$ac_cv_header_libudev_h" = xyes
  22745. then :
  22746. have_libudev_h_hdr=yes
  22747. else $as_nop
  22748. have_libudev_h_hdr=no
  22749. fi
  22750. if test x$have_libudev_h_hdr = xyes; then
  22751. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22752. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22753. if test x$udev_lib != x; then
  22754. echo "-- dynamic udev -> $udev_lib"
  22755. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22756. fi
  22757. fi
  22758. fi
  22759. }
  22760. CheckDBus()
  22761. {
  22762. # Check whether --enable-dbus was given.
  22763. if test ${enable_dbus+y}
  22764. then :
  22765. enableval=$enable_dbus;
  22766. else $as_nop
  22767. enable_dbus=yes
  22768. fi
  22769. if test x$enable_dbus = xyes; then
  22770. pkg_failed=no
  22771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22772. printf %s "checking for dbus-1... " >&6; }
  22773. if test -n "$DBUS_CFLAGS"; then
  22774. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22775. elif test -n "$PKG_CONFIG"; then
  22776. if test -n "$PKG_CONFIG" && \
  22777. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22778. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22779. ac_status=$?
  22780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22781. test $ac_status = 0; }; then
  22782. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22783. test "x$?" != "x0" && pkg_failed=yes
  22784. else
  22785. pkg_failed=yes
  22786. fi
  22787. else
  22788. pkg_failed=untried
  22789. fi
  22790. if test -n "$DBUS_LIBS"; then
  22791. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22792. elif test -n "$PKG_CONFIG"; then
  22793. if test -n "$PKG_CONFIG" && \
  22794. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22795. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22796. ac_status=$?
  22797. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22798. test $ac_status = 0; }; then
  22799. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22800. test "x$?" != "x0" && pkg_failed=yes
  22801. else
  22802. pkg_failed=yes
  22803. fi
  22804. else
  22805. pkg_failed=untried
  22806. fi
  22807. if test $pkg_failed = yes; then
  22808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22809. printf "%s\n" "no" >&6; }
  22810. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22811. _pkg_short_errors_supported=yes
  22812. else
  22813. _pkg_short_errors_supported=no
  22814. fi
  22815. if test $_pkg_short_errors_supported = yes; then
  22816. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22817. else
  22818. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22819. fi
  22820. # Put the nasty error message in config.log where it belongs
  22821. echo "$DBUS_PKG_ERRORS" >&5
  22822. have_dbus=no
  22823. elif test $pkg_failed = untried; then
  22824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22825. printf "%s\n" "no" >&6; }
  22826. have_dbus=no
  22827. else
  22828. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22829. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22831. printf "%s\n" "yes" >&6; }
  22832. have_dbus=yes
  22833. fi
  22834. save_CPPFLAGS="$CPPFLAGS"
  22835. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22836. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22837. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22838. then :
  22839. have_dbus_dbus_h_hdr=yes
  22840. else $as_nop
  22841. have_dbus_dbus_h_hdr=no
  22842. fi
  22843. CPPFLAGS="$save_CPPFLAGS"
  22844. if test x$have_dbus_dbus_h_hdr = xyes; then
  22845. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22846. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22847. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22848. fi
  22849. fi
  22850. }
  22851. CheckIME()
  22852. {
  22853. # Check whether --enable-ime was given.
  22854. if test ${enable_ime+y}
  22855. then :
  22856. enableval=$enable_ime;
  22857. else $as_nop
  22858. enable_ime=yes
  22859. fi
  22860. if test x$enable_ime = xyes; then
  22861. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22862. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22863. fi
  22864. }
  22865. CheckInotify()
  22866. {
  22867. save_LIBS="$LIBS"
  22868. case "$host" in
  22869. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22870. ;;
  22871. esac
  22872. for ac_header in sys/inotify.h
  22873. do :
  22874. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22875. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22876. then :
  22877. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22878. have_inotify_inotify_h_hdr=yes
  22879. fi
  22880. done
  22881. for ac_func in inotify_init
  22882. do :
  22883. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22884. if test "x$ac_cv_func_inotify_init" = xyes
  22885. then :
  22886. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22887. have_inotify=yes
  22888. fi
  22889. done
  22890. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22891. if test "x$ac_cv_func_inotify_init1" = xyes
  22892. then :
  22893. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22894. fi
  22895. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22896. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22897. case "$host" in
  22898. *-*-freebsd*|*-*-dragonfly*)
  22899. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22900. ;;
  22901. esac
  22902. fi
  22903. LIBS="$save_LIBS"
  22904. }
  22905. CheckIBus()
  22906. {
  22907. # Check whether --enable-ibus was given.
  22908. if test ${enable_ibus+y}
  22909. then :
  22910. enableval=$enable_ibus;
  22911. else $as_nop
  22912. enable_ibus=yes
  22913. fi
  22914. if test x$enable_ibus = xyes; then
  22915. pkg_failed=no
  22916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22917. printf %s "checking for ibus-1.0... " >&6; }
  22918. if test -n "$IBUS_CFLAGS"; then
  22919. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22920. elif test -n "$PKG_CONFIG"; then
  22921. if test -n "$PKG_CONFIG" && \
  22922. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22923. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22924. ac_status=$?
  22925. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22926. test $ac_status = 0; }; then
  22927. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22928. test "x$?" != "x0" && pkg_failed=yes
  22929. else
  22930. pkg_failed=yes
  22931. fi
  22932. else
  22933. pkg_failed=untried
  22934. fi
  22935. if test -n "$IBUS_LIBS"; then
  22936. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22937. elif test -n "$PKG_CONFIG"; then
  22938. if test -n "$PKG_CONFIG" && \
  22939. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22940. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22941. ac_status=$?
  22942. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22943. test $ac_status = 0; }; then
  22944. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22945. test "x$?" != "x0" && pkg_failed=yes
  22946. else
  22947. pkg_failed=yes
  22948. fi
  22949. else
  22950. pkg_failed=untried
  22951. fi
  22952. if test $pkg_failed = yes; then
  22953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22954. printf "%s\n" "no" >&6; }
  22955. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22956. _pkg_short_errors_supported=yes
  22957. else
  22958. _pkg_short_errors_supported=no
  22959. fi
  22960. if test $_pkg_short_errors_supported = yes; then
  22961. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22962. else
  22963. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22964. fi
  22965. # Put the nasty error message in config.log where it belongs
  22966. echo "$IBUS_PKG_ERRORS" >&5
  22967. have_ibus=no
  22968. elif test $pkg_failed = untried; then
  22969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22970. printf "%s\n" "no" >&6; }
  22971. have_ibus=no
  22972. else
  22973. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22974. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22976. printf "%s\n" "yes" >&6; }
  22977. have_ibus=yes
  22978. fi
  22979. save_CPPFLAGS="$CPPFLAGS"
  22980. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22981. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22982. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22983. then :
  22984. have_ibus_ibus_h_hdr=yes
  22985. else $as_nop
  22986. have_ibus_ibus_h_hdr=no
  22987. fi
  22988. CPPFLAGS="$save_CPPFLAGS"
  22989. if test x$have_ibus_ibus_h_hdr = xyes; then
  22990. if test x$enable_ime != xyes; then
  22991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22992. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22993. have_ibus_ibus_h_hdr=no
  22994. elif test x$enable_dbus != xyes; then
  22995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22996. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22997. have_ibus_ibus_h_hdr=no
  22998. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  23000. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  23001. have_ibus_ibus_h_hdr=no
  23002. else
  23003. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23004. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23005. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23006. fi
  23007. fi
  23008. fi
  23009. }
  23010. CheckFcitx()
  23011. {
  23012. # Check whether --enable-fcitx was given.
  23013. if test ${enable_fcitx+y}
  23014. then :
  23015. enableval=$enable_fcitx;
  23016. else $as_nop
  23017. enable_fcitx=yes
  23018. fi
  23019. if test x$enable_fcitx = xyes; then
  23020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23021. printf %s "checking for fcitx support... " >&6; }
  23022. have_fcitx=no
  23023. if test x$enable_ime != xyes; then
  23024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23025. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23026. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23028. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23029. else
  23030. have_fcitx=yes
  23031. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23032. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23033. fi
  23034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23035. printf "%s\n" "$have_fcitx" >&6; }
  23036. fi
  23037. }
  23038. CheckJoystickMFI()
  23039. {
  23040. # Check whether --enable-joystick-mfi was given.
  23041. if test ${enable_joystick_mfi+y}
  23042. then :
  23043. enableval=$enable_joystick_mfi;
  23044. else $as_nop
  23045. enable_joystick_mfi=yes
  23046. fi
  23047. if test x$enable_joystick_mfi = xyes; then
  23048. save_CFLAGS="$CFLAGS"
  23049. save_LDFLAGS="$LDFLAGS"
  23050. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23051. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23052. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23053. printf %s "checking for GameController framework... " >&6; }
  23054. enable_joystick_mfi=no
  23055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23056. /* end confdefs.h. */
  23057. #include <AvailabilityMacros.h>
  23058. #include <TargetConditionals.h>
  23059. #import <GameController/GameController.h>
  23060. int
  23061. main (void)
  23062. {
  23063. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23064. #error GameController framework doesn't work on this configuration
  23065. #endif
  23066. #if TARGET_CPU_X86
  23067. #error GameController framework doesn't work on this configuration
  23068. #endif
  23069. ;
  23070. return 0;
  23071. }
  23072. _ACEOF
  23073. if ac_fn_c_try_link "$LINENO"
  23074. then :
  23075. enable_joystick_mfi=yes
  23076. fi
  23077. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23078. conftest$ac_exeext conftest.$ac_ext
  23079. CFLAGS="$save_CFLAGS"
  23080. LDFLAGS="$save_LDFLAGS"
  23081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23082. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23083. if test x$enable_joystick_mfi = xyes; then
  23084. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23085. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23086. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23087. fi
  23088. fi
  23089. }
  23090. CheckPTHREAD()
  23091. {
  23092. case "$host" in
  23093. *-*-emscripten*)
  23094. enable_pthreads_default=no
  23095. ;;
  23096. *)
  23097. enable_pthreads_default=yes
  23098. ;;
  23099. esac
  23100. # Check whether --enable-pthreads was given.
  23101. if test ${enable_pthreads+y}
  23102. then :
  23103. enableval=$enable_pthreads;
  23104. else $as_nop
  23105. enable_pthreads=maybe
  23106. fi
  23107. # Check whether --enable-pthread-sem was given.
  23108. if test ${enable_pthread_sem+y}
  23109. then :
  23110. enableval=$enable_pthread_sem;
  23111. else $as_nop
  23112. enable_pthread_sem=maybe
  23113. fi
  23114. if test x$enable_pthreads = xmaybe; then
  23115. enable_pthreads=$enable_pthreads_default
  23116. fi
  23117. if test x$enable_pthread_sem = xmaybe; then
  23118. enable_pthread_sem=$enable_pthreads
  23119. fi
  23120. case "$host" in
  23121. *-*-android*)
  23122. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23123. pthread_lib=""
  23124. ;;
  23125. *-*-linux*|*-*-uclinux*)
  23126. pthread_cflags="-D_REENTRANT"
  23127. pthread_lib="-lpthread"
  23128. ;;
  23129. *-*-bsdi*)
  23130. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23131. pthread_lib=""
  23132. ;;
  23133. *-*-darwin*)
  23134. pthread_cflags="-D_THREAD_SAFE"
  23135. # causes Carbon.p complaints?
  23136. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23137. ;;
  23138. *-*-freebsd*|*-*-dragonfly*)
  23139. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23140. pthread_lib="-pthread"
  23141. ;;
  23142. *-*-netbsd*)
  23143. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23144. pthread_lib="-lpthread"
  23145. ;;
  23146. *-*-openbsd*)
  23147. pthread_cflags="-D_REENTRANT"
  23148. pthread_lib="-pthread"
  23149. ;;
  23150. *-*-solaris2.9)
  23151. # From Solaris 9+, posix4's preferred name is rt.
  23152. pthread_cflags="-D_REENTRANT"
  23153. pthread_lib="-lpthread -lrt"
  23154. ;;
  23155. *-*-solaris2.10)
  23156. # Solaris 10+ merged pthread into libc.
  23157. pthread_cflags="-D_REENTRANT"
  23158. pthread_lib="-lrt"
  23159. ;;
  23160. *-*-solaris*)
  23161. # Solaris 11+ merged rt into libc.
  23162. pthread_cflags="-D_REENTRANT"
  23163. pthread_lib=""
  23164. ;;
  23165. *-*-sysv5*)
  23166. pthread_cflags="-D_REENTRANT -Kthread"
  23167. pthread_lib=""
  23168. ;;
  23169. *-*-aix*)
  23170. pthread_cflags="-D_REENTRANT -mthreads"
  23171. pthread_lib="-lpthread"
  23172. ;;
  23173. *-*-hpux11*)
  23174. pthread_cflags="-D_REENTRANT"
  23175. pthread_lib="-L/usr/lib -lpthread"
  23176. ;;
  23177. *-*-haiku*)
  23178. pthread_cflags="-D_REENTRANT"
  23179. pthread_lib=""
  23180. ;;
  23181. *-*-nto*)
  23182. pthread_cflags="-D_REENTRANT"
  23183. pthread_lib=""
  23184. ;;
  23185. *-*-emscripten*)
  23186. pthread_cflags="-D_REENTRANT -pthread"
  23187. pthread_lib="-pthread"
  23188. ;;
  23189. *)
  23190. pthread_cflags="-D_REENTRANT"
  23191. pthread_lib="-lpthread"
  23192. ;;
  23193. esac
  23194. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23195. # Save the original compiler flags and libraries
  23196. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23197. # Add the pthread compiler flags and libraries
  23198. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23199. # Check to see if we have pthread support on this system
  23200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23201. printf %s "checking for pthreads... " >&6; }
  23202. use_pthreads=no
  23203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23204. /* end confdefs.h. */
  23205. #include <pthread.h>
  23206. int
  23207. main (void)
  23208. {
  23209. pthread_attr_t type;
  23210. pthread_attr_init(&type);
  23211. ;
  23212. return 0;
  23213. }
  23214. _ACEOF
  23215. if ac_fn_c_try_link "$LINENO"
  23216. then :
  23217. use_pthreads=yes
  23218. fi
  23219. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23220. conftest$ac_exeext conftest.$ac_ext
  23221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23222. printf "%s\n" "$use_pthreads" >&6; }
  23223. # Restore the compiler flags and libraries
  23224. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23225. # Do futher testing if we have pthread support...
  23226. if test x$use_pthreads = xyes; then
  23227. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23228. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23229. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23230. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23231. # Save the original compiler flags and libraries
  23232. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23233. # Add the pthread compiler flags and libraries
  23234. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23235. # Check to see if recursive mutexes are available
  23236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23237. printf %s "checking for recursive mutexes... " >&6; }
  23238. has_recursive_mutexes=no
  23239. if test x$has_recursive_mutexes = xno; then
  23240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23241. /* end confdefs.h. */
  23242. #define _GNU_SOURCE 1
  23243. #include <pthread.h>
  23244. int
  23245. main (void)
  23246. {
  23247. pthread_mutexattr_t attr;
  23248. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23249. ;
  23250. return 0;
  23251. }
  23252. _ACEOF
  23253. if ac_fn_c_try_link "$LINENO"
  23254. then :
  23255. has_recursive_mutexes=yes
  23256. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23257. fi
  23258. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23259. conftest$ac_exeext conftest.$ac_ext
  23260. fi
  23261. if test x$has_recursive_mutexes = xno; then
  23262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23263. /* end confdefs.h. */
  23264. #define _GNU_SOURCE 1
  23265. #include <pthread.h>
  23266. int
  23267. main (void)
  23268. {
  23269. pthread_mutexattr_t attr;
  23270. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23271. ;
  23272. return 0;
  23273. }
  23274. _ACEOF
  23275. if ac_fn_c_try_link "$LINENO"
  23276. then :
  23277. has_recursive_mutexes=yes
  23278. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23279. fi
  23280. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23281. conftest$ac_exeext conftest.$ac_ext
  23282. fi
  23283. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23284. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23285. # Check to see if pthread semaphore support is missing
  23286. if test x$enable_pthread_sem = xyes; then
  23287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23288. printf %s "checking for pthread semaphores... " >&6; }
  23289. have_pthread_sem=no
  23290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23291. /* end confdefs.h. */
  23292. #include <pthread.h>
  23293. #include <semaphore.h>
  23294. int
  23295. main (void)
  23296. {
  23297. ;
  23298. return 0;
  23299. }
  23300. _ACEOF
  23301. if ac_fn_c_try_compile "$LINENO"
  23302. then :
  23303. have_pthread_sem=yes
  23304. fi
  23305. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23307. printf "%s\n" "$have_pthread_sem" >&6; }
  23308. fi
  23309. if test x$have_pthread_sem = xyes; then
  23310. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23311. printf %s "checking for sem_timedwait... " >&6; }
  23312. have_sem_timedwait=no
  23313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23314. /* end confdefs.h. */
  23315. #include <pthread.h>
  23316. #include <semaphore.h>
  23317. int
  23318. main (void)
  23319. {
  23320. sem_timedwait(NULL, NULL);
  23321. ;
  23322. return 0;
  23323. }
  23324. _ACEOF
  23325. if ac_fn_c_try_link "$LINENO"
  23326. then :
  23327. have_sem_timedwait=yes
  23328. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23329. fi
  23330. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23331. conftest$ac_exeext conftest.$ac_ext
  23332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23333. printf "%s\n" "$have_sem_timedwait" >&6; }
  23334. fi
  23335. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23336. "
  23337. if test "x$ac_cv_header_pthread_np_h" = xyes
  23338. then :
  23339. have_pthread_np_h=yes
  23340. else $as_nop
  23341. have_pthread_np_h=no
  23342. fi
  23343. if test x$have_pthread_np_h = xyes; then
  23344. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23345. fi
  23346. # Check to see if pthread naming is available
  23347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23348. printf %s "checking for pthread_setname_np... " >&6; }
  23349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23350. /* end confdefs.h. */
  23351. /* Override any GCC internal prototype to avoid an error.
  23352. Use char because int might match the return type of a GCC
  23353. builtin and then its argument prototype would still apply. */
  23354. char pthread_setname_np ();
  23355. int
  23356. main (void)
  23357. {
  23358. return pthread_setname_np ();
  23359. ;
  23360. return 0;
  23361. }
  23362. _ACEOF
  23363. if ac_fn_c_try_link "$LINENO"
  23364. then :
  23365. has_pthread_setname_np=yes
  23366. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23367. else $as_nop
  23368. has_pthread_setname_np=no
  23369. fi
  23370. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23371. conftest$ac_exeext conftest.$ac_ext
  23372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23373. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23375. printf %s "checking for pthread_set_name_np... " >&6; }
  23376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23377. /* end confdefs.h. */
  23378. /* Override any GCC internal prototype to avoid an error.
  23379. Use char because int might match the return type of a GCC
  23380. builtin and then its argument prototype would still apply. */
  23381. char pthread_set_name_np ();
  23382. int
  23383. main (void)
  23384. {
  23385. return pthread_set_name_np ();
  23386. ;
  23387. return 0;
  23388. }
  23389. _ACEOF
  23390. if ac_fn_c_try_link "$LINENO"
  23391. then :
  23392. has_pthread_set_name_np=yes
  23393. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23394. else $as_nop
  23395. has_pthread_set_name_np=no
  23396. fi
  23397. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23398. conftest$ac_exeext conftest.$ac_ext
  23399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23400. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23401. # Restore the compiler flags and libraries
  23402. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23403. # Basic thread creation functions
  23404. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23405. # Semaphores
  23406. # We can fake these with mutexes and condition variables if necessary
  23407. if test x$have_pthread_sem = xyes; then
  23408. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23409. else
  23410. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23411. fi
  23412. # Mutexes
  23413. # We can fake these with semaphores if necessary
  23414. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23415. # Condition variables
  23416. # We can fake these with semaphores and mutexes if necessary
  23417. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23418. # Thread local storage
  23419. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23420. have_threads=yes
  23421. fi
  23422. fi
  23423. }
  23424. CheckWINDOWS()
  23425. {
  23426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23427. printf %s "checking Windows compiler... " >&6; }
  23428. have_win32_gcc=no
  23429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23430. /* end confdefs.h. */
  23431. #include <windows.h>
  23432. int
  23433. main (void)
  23434. {
  23435. ;
  23436. return 0;
  23437. }
  23438. _ACEOF
  23439. if ac_fn_c_try_compile "$LINENO"
  23440. then :
  23441. have_win32_gcc=yes
  23442. fi
  23443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23445. printf "%s\n" "$have_win32_gcc" >&6; }
  23446. if test x$have_win32_gcc != xyes; then
  23447. as_fn_error $? "
  23448. *** Your compiler ($CC) does not produce Windows executables!
  23449. " "$LINENO" 5
  23450. fi
  23451. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23452. printf %s "checking Windows CE... " >&6; }
  23453. have_wince=no
  23454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23455. /* end confdefs.h. */
  23456. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23457. #error This is not Windows CE
  23458. #endif
  23459. int
  23460. main (void)
  23461. {
  23462. ;
  23463. return 0;
  23464. }
  23465. _ACEOF
  23466. if ac_fn_c_try_compile "$LINENO"
  23467. then :
  23468. have_wince=yes
  23469. as_fn_error $? "
  23470. *** Sorry, Windows CE is no longer supported.
  23471. " "$LINENO" 5
  23472. fi
  23473. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23475. printf "%s\n" "$have_wince" >&6; }
  23476. # This fixes Windows stack alignment with newer GCC
  23477. CheckStackBoundary
  23478. # headers needed elsewhere
  23479. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23480. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23481. then :
  23482. have_tpcshrd_h=yes
  23483. fi
  23484. if test x$have_tpcshrd_h = xyes; then
  23485. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23486. fi
  23487. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23488. if test "x$ac_cv_header_roapi_h" = xyes
  23489. then :
  23490. have_roapi_h=yes
  23491. fi
  23492. if test x$have_roapi_h = xyes; then
  23493. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23494. fi
  23495. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23496. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23497. then :
  23498. have_shellscalingapi_h=yes
  23499. fi
  23500. if test x$shellscalingapi_h = xyes; then
  23501. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23502. fi
  23503. }
  23504. CheckOS2()
  23505. {
  23506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23507. printf %s "checking OS/2 compiler... " >&6; }
  23508. have_os2_gcc=no
  23509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23510. /* end confdefs.h. */
  23511. #include <os2.h>
  23512. int
  23513. main (void)
  23514. {
  23515. ;
  23516. return 0;
  23517. }
  23518. _ACEOF
  23519. if ac_fn_c_try_compile "$LINENO"
  23520. then :
  23521. have_os2_gcc=yes
  23522. fi
  23523. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23524. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23525. printf "%s\n" "$have_os2_gcc" >&6; }
  23526. if test x$have_os2_gcc != xyes; then
  23527. as_fn_error $? "
  23528. *** Your compiler ($CC) does not produce OS/2 executables!
  23529. " "$LINENO" 5
  23530. fi
  23531. }
  23532. CheckDIRECTX()
  23533. {
  23534. # Check whether --enable-directx was given.
  23535. if test ${enable_directx+y}
  23536. then :
  23537. enableval=$enable_directx;
  23538. else $as_nop
  23539. enable_directx=yes
  23540. fi
  23541. if test x$enable_directx = xyes; then
  23542. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23543. if test "x$ac_cv_header_d3d9_h" = xyes
  23544. then :
  23545. have_d3d=yes
  23546. fi
  23547. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23548. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23549. then :
  23550. have_d3d11=yes
  23551. fi
  23552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23553. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23555. /* end confdefs.h. */
  23556. #include <winsdkver.h>
  23557. #include <sdkddkver.h>
  23558. #include <d3d12.h>
  23559. ID3D12Device1 *device;
  23560. #if WDK_NTDDI_VERSION <= 0x0A000008
  23561. asdf
  23562. #endif
  23563. int
  23564. main (void)
  23565. {
  23566. ;
  23567. return 0;
  23568. }
  23569. _ACEOF
  23570. if ac_fn_c_try_compile "$LINENO"
  23571. then :
  23572. have_d3d12=yes
  23573. else $as_nop
  23574. have_d3d12=no
  23575. fi
  23576. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23577. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23578. printf "%s\n" "$have_d3d12" >&6; }
  23579. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23580. if test "x$ac_cv_header_ddraw_h" = xyes
  23581. then :
  23582. have_ddraw=yes
  23583. fi
  23584. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23585. if test "x$ac_cv_header_dsound_h" = xyes
  23586. then :
  23587. have_dsound=yes
  23588. fi
  23589. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23590. if test "x$ac_cv_header_dinput_h" = xyes
  23591. then :
  23592. have_dinput=yes
  23593. fi
  23594. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23595. if test "x$ac_cv_header_dxgi_h" = xyes
  23596. then :
  23597. have_dxgi=yes
  23598. fi
  23599. if test x$have_ddraw = xyes; then
  23600. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23601. fi
  23602. if test x$have_dinput = xyes; then
  23603. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23604. fi
  23605. if test x$have_dsound = xyes; then
  23606. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23607. fi
  23608. if test x$have_dxgi = xyes; then
  23609. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23610. fi
  23611. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23612. # FIXME: ...so force it off for now.
  23613. case "$host" in
  23614. *-*-cygwin*)
  23615. have_dinput=false
  23616. ;;
  23617. esac
  23618. fi
  23619. # Check whether --enable-xinput was given.
  23620. if test ${enable_xinput+y}
  23621. then :
  23622. enableval=$enable_xinput;
  23623. else $as_nop
  23624. enable_xinput=yes
  23625. fi
  23626. if test x$enable_xinput = xyes; then
  23627. have_xinput_gamepadex=no
  23628. have_xinput_stateex=no
  23629. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23630. if test "x$ac_cv_header_xinput_h" = xyes
  23631. then :
  23632. have_xinput=yes
  23633. fi
  23634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23635. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23637. /* end confdefs.h. */
  23638. #include <windows.h>
  23639. #include <xinput.h>
  23640. XINPUT_GAMEPAD_EX x1;
  23641. int
  23642. main (void)
  23643. {
  23644. ;
  23645. return 0;
  23646. }
  23647. _ACEOF
  23648. if ac_fn_c_try_compile "$LINENO"
  23649. then :
  23650. have_xinput_gamepadex=yes
  23651. fi
  23652. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23654. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23656. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23658. /* end confdefs.h. */
  23659. #include <windows.h>
  23660. #include <xinput.h>
  23661. XINPUT_STATE_EX s1;
  23662. int
  23663. main (void)
  23664. {
  23665. ;
  23666. return 0;
  23667. }
  23668. _ACEOF
  23669. if ac_fn_c_try_compile "$LINENO"
  23670. then :
  23671. have_xinput_stateex=yes
  23672. fi
  23673. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23674. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23675. printf "%s\n" "$have_xinput_stateex" >&6; }
  23676. if test x$have_xinput = xyes; then
  23677. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23678. fi
  23679. if test x$have_xinput_gamepadex = xyes; then
  23680. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23681. fi
  23682. if test x$have_xinput_stateex = xyes; then
  23683. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23684. fi
  23685. fi
  23686. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23687. printf %s "checking for windows.gaming.input.h... " >&6; }
  23688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23689. /* end confdefs.h. */
  23690. #define COBJMACROS
  23691. #include <windows.gaming.input.h>
  23692. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23693. int
  23694. main (void)
  23695. {
  23696. ;
  23697. return 0;
  23698. }
  23699. _ACEOF
  23700. if ac_fn_c_try_compile "$LINENO"
  23701. then :
  23702. have_wgi=yes
  23703. else $as_nop
  23704. have_wgi=no
  23705. fi
  23706. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23708. printf "%s\n" "$have_wgi" >&6; }
  23709. if test x$have_wgi = xyes; then
  23710. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23711. fi
  23712. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23713. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23714. then :
  23715. have_wasapi=yes
  23716. fi
  23717. if test x$have_wasapi = xyes; then
  23718. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23719. fi
  23720. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23721. if test "x$ac_cv_header_audioclient_h" = xyes
  23722. then :
  23723. else $as_nop
  23724. have_wasapi=no
  23725. fi
  23726. if test x$have_wasapi = xyes; then
  23727. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23728. fi
  23729. # Check whether --enable-wasapi was given.
  23730. if test ${enable_wasapi+y}
  23731. then :
  23732. enableval=$enable_wasapi;
  23733. else $as_nop
  23734. enable_wasapi=yes
  23735. fi
  23736. }
  23737. CheckDLOPEN()
  23738. {
  23739. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23740. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23741. if test "x$ac_cv_header_dlfcn_h" = xyes
  23742. then :
  23743. have_dlfcn_h=yes
  23744. else $as_nop
  23745. have_dlfcn_h=no
  23746. fi
  23747. have_dlopen=no
  23748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23749. printf %s "checking for dlopen in -lc... " >&6; }
  23750. if test ${ac_cv_lib_c_dlopen+y}
  23751. then :
  23752. printf %s "(cached) " >&6
  23753. else $as_nop
  23754. ac_check_lib_save_LIBS=$LIBS
  23755. LIBS="-lc $LIBS"
  23756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23757. /* end confdefs.h. */
  23758. /* Override any GCC internal prototype to avoid an error.
  23759. Use char because int might match the return type of a GCC
  23760. builtin and then its argument prototype would still apply. */
  23761. char dlopen ();
  23762. int
  23763. main (void)
  23764. {
  23765. return dlopen ();
  23766. ;
  23767. return 0;
  23768. }
  23769. _ACEOF
  23770. if ac_fn_c_try_link "$LINENO"
  23771. then :
  23772. ac_cv_lib_c_dlopen=yes
  23773. else $as_nop
  23774. ac_cv_lib_c_dlopen=no
  23775. fi
  23776. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23777. conftest$ac_exeext conftest.$ac_ext
  23778. LIBS=$ac_check_lib_save_LIBS
  23779. fi
  23780. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23781. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23782. if test "x$ac_cv_lib_c_dlopen" = xyes
  23783. then :
  23784. have_dlopen=yes
  23785. else $as_nop
  23786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23787. printf %s "checking for dlopen in -ldl... " >&6; }
  23788. if test ${ac_cv_lib_dl_dlopen+y}
  23789. then :
  23790. printf %s "(cached) " >&6
  23791. else $as_nop
  23792. ac_check_lib_save_LIBS=$LIBS
  23793. LIBS="-ldl $LIBS"
  23794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23795. /* end confdefs.h. */
  23796. /* Override any GCC internal prototype to avoid an error.
  23797. Use char because int might match the return type of a GCC
  23798. builtin and then its argument prototype would still apply. */
  23799. char dlopen ();
  23800. int
  23801. main (void)
  23802. {
  23803. return dlopen ();
  23804. ;
  23805. return 0;
  23806. }
  23807. _ACEOF
  23808. if ac_fn_c_try_link "$LINENO"
  23809. then :
  23810. ac_cv_lib_dl_dlopen=yes
  23811. else $as_nop
  23812. ac_cv_lib_dl_dlopen=no
  23813. fi
  23814. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23815. conftest$ac_exeext conftest.$ac_ext
  23816. LIBS=$ac_check_lib_save_LIBS
  23817. fi
  23818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23819. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23820. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23821. then :
  23822. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23823. fi
  23824. fi
  23825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23826. printf %s "checking for dlopen... " >&6; }
  23827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23828. printf "%s\n" "$have_dlopen" >&6; }
  23829. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23830. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23831. if test x$enable_loadso = xyes; then
  23832. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23833. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23834. have_loadso=yes
  23835. fi
  23836. fi
  23837. }
  23838. CheckO_CLOEXEC()
  23839. {
  23840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23841. printf %s "checking for O_CLOEXEC... " >&6; }
  23842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23843. /* end confdefs.h. */
  23844. #include <fcntl.h>
  23845. int flag = O_CLOEXEC;
  23846. int
  23847. main (void)
  23848. {
  23849. ;
  23850. return 0;
  23851. }
  23852. _ACEOF
  23853. if ac_fn_c_try_compile "$LINENO"
  23854. then :
  23855. have_o_cloexec=yes
  23856. else $as_nop
  23857. have_o_cloexec=no
  23858. fi
  23859. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23861. printf "%s\n" "$have_o_cloexec" >&6; }
  23862. if test $have_o_cloexec = yes; then
  23863. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23864. fi
  23865. }
  23866. CheckUSBHID()
  23867. {
  23868. case "$host" in
  23869. *-*-*bsd*|*-*-dragonfly*)
  23870. if test x$enable_joystick = xyes; then
  23871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23872. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23873. if test ${ac_cv_lib_usbhid_hid_init+y}
  23874. then :
  23875. printf %s "(cached) " >&6
  23876. else $as_nop
  23877. ac_check_lib_save_LIBS=$LIBS
  23878. LIBS="-lusbhid $LIBS"
  23879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23880. /* end confdefs.h. */
  23881. /* Override any GCC internal prototype to avoid an error.
  23882. Use char because int might match the return type of a GCC
  23883. builtin and then its argument prototype would still apply. */
  23884. char hid_init ();
  23885. int
  23886. main (void)
  23887. {
  23888. return hid_init ();
  23889. ;
  23890. return 0;
  23891. }
  23892. _ACEOF
  23893. if ac_fn_c_try_link "$LINENO"
  23894. then :
  23895. ac_cv_lib_usbhid_hid_init=yes
  23896. else $as_nop
  23897. ac_cv_lib_usbhid_hid_init=no
  23898. fi
  23899. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23900. conftest$ac_exeext conftest.$ac_ext
  23901. LIBS=$ac_check_lib_save_LIBS
  23902. fi
  23903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23904. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23905. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23906. then :
  23907. have_libusbhid=yes
  23908. fi
  23909. if test x$have_libusbhid = xyes; then
  23910. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23911. if test "x$ac_cv_header_usbhid_h" = xyes
  23912. then :
  23913. USB_CFLAGS="-DHAVE_USBHID_H"
  23914. fi
  23915. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23916. if test "x$ac_cv_header_libusbhid_h" = xyes
  23917. then :
  23918. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23919. fi
  23920. USB_LIBS="$USB_LIBS -lusbhid"
  23921. else
  23922. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23923. if test "x$ac_cv_header_usb_h" = xyes
  23924. then :
  23925. USB_CFLAGS="-DHAVE_USB_H"
  23926. fi
  23927. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23928. if test "x$ac_cv_header_libusb_h" = xyes
  23929. then :
  23930. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23931. fi
  23932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23933. printf %s "checking for hid_init in -lusb... " >&6; }
  23934. if test ${ac_cv_lib_usb_hid_init+y}
  23935. then :
  23936. printf %s "(cached) " >&6
  23937. else $as_nop
  23938. ac_check_lib_save_LIBS=$LIBS
  23939. LIBS="-lusb $LIBS"
  23940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23941. /* end confdefs.h. */
  23942. /* Override any GCC internal prototype to avoid an error.
  23943. Use char because int might match the return type of a GCC
  23944. builtin and then its argument prototype would still apply. */
  23945. char hid_init ();
  23946. int
  23947. main (void)
  23948. {
  23949. return hid_init ();
  23950. ;
  23951. return 0;
  23952. }
  23953. _ACEOF
  23954. if ac_fn_c_try_link "$LINENO"
  23955. then :
  23956. ac_cv_lib_usb_hid_init=yes
  23957. else $as_nop
  23958. ac_cv_lib_usb_hid_init=no
  23959. fi
  23960. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23961. conftest$ac_exeext conftest.$ac_ext
  23962. LIBS=$ac_check_lib_save_LIBS
  23963. fi
  23964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23965. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23966. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23967. then :
  23968. USB_LIBS="$USB_LIBS -lusb"
  23969. fi
  23970. fi
  23971. save_CFLAGS="$CFLAGS"
  23972. CFLAGS="$CFLAGS $USB_CFLAGS"
  23973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23974. printf %s "checking for usbhid... " >&6; }
  23975. have_usbhid=no
  23976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23977. /* end confdefs.h. */
  23978. #include <sys/types.h>
  23979. #if defined(HAVE_USB_H)
  23980. #include <usb.h>
  23981. #endif
  23982. #ifdef __DragonFly__
  23983. # include <bus/u4b/usb.h>
  23984. # include <bus/u4b/usbhid.h>
  23985. #else
  23986. # include <dev/usb/usb.h>
  23987. # include <dev/usb/usbhid.h>
  23988. #endif
  23989. #if defined(HAVE_USBHID_H)
  23990. #include <usbhid.h>
  23991. #elif defined(HAVE_LIBUSB_H)
  23992. #include <libusb.h>
  23993. #elif defined(HAVE_LIBUSBHID_H)
  23994. #include <libusbhid.h>
  23995. #endif
  23996. int
  23997. main (void)
  23998. {
  23999. struct report_desc *repdesc;
  24000. struct usb_ctl_report *repbuf;
  24001. hid_kind_t hidkind;
  24002. ;
  24003. return 0;
  24004. }
  24005. _ACEOF
  24006. if ac_fn_c_try_compile "$LINENO"
  24007. then :
  24008. have_usbhid=yes
  24009. fi
  24010. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24012. printf "%s\n" "$have_usbhid" >&6; }
  24013. if test x$have_usbhid = xyes; then
  24014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24015. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24016. have_usbhid_ucr_data=no
  24017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24018. /* end confdefs.h. */
  24019. #include <sys/types.h>
  24020. #if defined(HAVE_USB_H)
  24021. #include <usb.h>
  24022. #endif
  24023. #ifdef __DragonFly__
  24024. # include <bus/u4b/usb.h>
  24025. # include <bus/u4b/usbhid.h>
  24026. #else
  24027. # include <dev/usb/usb.h>
  24028. # include <dev/usb/usbhid.h>
  24029. #endif
  24030. #if defined(HAVE_USBHID_H)
  24031. #include <usbhid.h>
  24032. #elif defined(HAVE_LIBUSB_H)
  24033. #include <libusb.h>
  24034. #elif defined(HAVE_LIBUSBHID_H)
  24035. #include <libusbhid.h>
  24036. #endif
  24037. int
  24038. main (void)
  24039. {
  24040. struct usb_ctl_report buf;
  24041. if (buf.ucr_data) { }
  24042. ;
  24043. return 0;
  24044. }
  24045. _ACEOF
  24046. if ac_fn_c_try_compile "$LINENO"
  24047. then :
  24048. have_usbhid_ucr_data=yes
  24049. fi
  24050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24051. if test x$have_usbhid_ucr_data = xyes; then
  24052. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24053. fi
  24054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24055. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24057. printf %s "checking for new usbhid API... " >&6; }
  24058. have_usbhid_new=no
  24059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24060. /* end confdefs.h. */
  24061. #include <sys/types.h>
  24062. #if defined(HAVE_USB_H)
  24063. #include <usb.h>
  24064. #endif
  24065. #ifdef __DragonFly__
  24066. #include <bus/u4b/usb.h>
  24067. #include <bus/u4b/usbhid.h>
  24068. #else
  24069. #include <dev/usb/usb.h>
  24070. #include <dev/usb/usbhid.h>
  24071. #endif
  24072. #if defined(HAVE_USBHID_H)
  24073. #include <usbhid.h>
  24074. #elif defined(HAVE_LIBUSB_H)
  24075. #include <libusb.h>
  24076. #elif defined(HAVE_LIBUSBHID_H)
  24077. #include <libusbhid.h>
  24078. #endif
  24079. int
  24080. main (void)
  24081. {
  24082. report_desc_t d;
  24083. hid_start_parse(d, 1, 1);
  24084. ;
  24085. return 0;
  24086. }
  24087. _ACEOF
  24088. if ac_fn_c_try_compile "$LINENO"
  24089. then :
  24090. have_usbhid_new=yes
  24091. fi
  24092. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24093. if test x$have_usbhid_new = xyes; then
  24094. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24095. fi
  24096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24097. printf "%s\n" "$have_usbhid_new" >&6; }
  24098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24099. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24100. have_machine_joystick=no
  24101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24102. /* end confdefs.h. */
  24103. #include <machine/joystick.h>
  24104. int
  24105. main (void)
  24106. {
  24107. struct joystick t;
  24108. ;
  24109. return 0;
  24110. }
  24111. _ACEOF
  24112. if ac_fn_c_try_compile "$LINENO"
  24113. then :
  24114. have_machine_joystick=yes
  24115. fi
  24116. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24117. if test x$have_machine_joystick = xyes; then
  24118. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24119. fi
  24120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24121. printf "%s\n" "$have_machine_joystick" >&6; }
  24122. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24123. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24124. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24126. have_joystick=yes
  24127. fi
  24128. CFLAGS="$save_CFLAGS"
  24129. fi
  24130. ;;
  24131. esac
  24132. }
  24133. CheckHIDAPI()
  24134. {
  24135. # Check whether --enable-hidapi-joystick was given.
  24136. if test ${enable_hidapi_joystick+y}
  24137. then :
  24138. enableval=$enable_hidapi_joystick;
  24139. else $as_nop
  24140. enable_hidapi_joystick=yes
  24141. fi
  24142. # Check whether --enable-hidapi-libusb was given.
  24143. if test ${enable_hidapi_libusb+y}
  24144. then :
  24145. enableval=$enable_hidapi_libusb;
  24146. else $as_nop
  24147. enable_hidapi_libusb=maybe
  24148. fi
  24149. if test x$enable_hidapi = xyes; then
  24150. case "$host" in
  24151. # libusb does not support iOS
  24152. *-ios-* )
  24153. enable_hidapi_libusb=no
  24154. ;;
  24155. # On the other hand, *BSD specifically uses libusb only
  24156. *-*-*bsd* )
  24157. enable_hidapi_libusb=yes
  24158. require_hidapi_libusb=yes
  24159. ;;
  24160. *-*-os2* )
  24161. enable_hidapi_libusb=yes
  24162. ;;
  24163. esac
  24164. hidapi_support=yes
  24165. if test x$enable_hidapi_libusb = xyes; then
  24166. pkg_failed=no
  24167. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24168. printf %s "checking for libusb-1.0... " >&6; }
  24169. if test -n "$LIBUSB_CFLAGS"; then
  24170. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24171. elif test -n "$PKG_CONFIG"; then
  24172. if test -n "$PKG_CONFIG" && \
  24173. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24174. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24175. ac_status=$?
  24176. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24177. test $ac_status = 0; }; then
  24178. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24179. test "x$?" != "x0" && pkg_failed=yes
  24180. else
  24181. pkg_failed=yes
  24182. fi
  24183. else
  24184. pkg_failed=untried
  24185. fi
  24186. if test -n "$LIBUSB_LIBS"; then
  24187. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24188. elif test -n "$PKG_CONFIG"; then
  24189. if test -n "$PKG_CONFIG" && \
  24190. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24191. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24192. ac_status=$?
  24193. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24194. test $ac_status = 0; }; then
  24195. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24196. test "x$?" != "x0" && pkg_failed=yes
  24197. else
  24198. pkg_failed=yes
  24199. fi
  24200. else
  24201. pkg_failed=untried
  24202. fi
  24203. if test $pkg_failed = yes; then
  24204. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24205. printf "%s\n" "no" >&6; }
  24206. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24207. _pkg_short_errors_supported=yes
  24208. else
  24209. _pkg_short_errors_supported=no
  24210. fi
  24211. if test $_pkg_short_errors_supported = yes; then
  24212. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24213. else
  24214. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24215. fi
  24216. # Put the nasty error message in config.log where it belongs
  24217. echo "$LIBUSB_PKG_ERRORS" >&5
  24218. have_libusb=no
  24219. elif test $pkg_failed = untried; then
  24220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24221. printf "%s\n" "no" >&6; }
  24222. have_libusb=no
  24223. else
  24224. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24225. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24227. printf "%s\n" "yes" >&6; }
  24228. have_libusb=yes
  24229. fi
  24230. save_CPPFLAGS="$CPPFLAGS"
  24231. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24232. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24233. if test "x$ac_cv_header_libusb_h" = xyes
  24234. then :
  24235. have_libusb_h=yes
  24236. else $as_nop
  24237. have_libusb_h=no
  24238. fi
  24239. CPPFLAGS="$save_CPPFLAGS"
  24240. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24241. hidapi_support=no
  24242. fi
  24243. fi
  24244. if test x$hidapi_support = xyes; then
  24245. if test x$have_libusb_h = xyes; then
  24246. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24247. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24248. if test x$require_hidapi_libusb = xyes; then
  24249. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24250. else
  24251. if test x$have_loadso != xyes; then
  24252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24253. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24254. fi
  24255. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24256. libusb_lib=""
  24257. case "$host" in
  24258. *-*-darwin* )
  24259. libusb_lib="libusb-1.0.0.dylib"
  24260. ;;
  24261. *-*-cygwin* | *-*-mingw* )
  24262. libusb_lib="libusb-1.0.dll"
  24263. ;;
  24264. *-*-os2* )
  24265. libusb_lib="usb100.dll"
  24266. ;;
  24267. esac
  24268. if test x$libusb_lib = x; then
  24269. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24270. fi
  24271. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24272. fi
  24273. fi
  24274. fi
  24275. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24276. printf %s "checking for hidapi joystick support... " >&6; }
  24277. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24278. printf "%s\n" "$hidapi_support" >&6; }
  24279. fi
  24280. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24281. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24282. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24283. fi
  24284. }
  24285. CheckClockGettime()
  24286. {
  24287. # Check whether --enable-clock_gettime was given.
  24288. if test ${enable_clock_gettime+y}
  24289. then :
  24290. enableval=$enable_clock_gettime;
  24291. else $as_nop
  24292. enable_clock_gettime=yes
  24293. fi
  24294. if test x$enable_clock_gettime = xyes; then
  24295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24296. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24297. if test ${ac_cv_lib_rt_clock_gettime+y}
  24298. then :
  24299. printf %s "(cached) " >&6
  24300. else $as_nop
  24301. ac_check_lib_save_LIBS=$LIBS
  24302. LIBS="-lrt $LIBS"
  24303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24304. /* end confdefs.h. */
  24305. /* Override any GCC internal prototype to avoid an error.
  24306. Use char because int might match the return type of a GCC
  24307. builtin and then its argument prototype would still apply. */
  24308. char clock_gettime ();
  24309. int
  24310. main (void)
  24311. {
  24312. return clock_gettime ();
  24313. ;
  24314. return 0;
  24315. }
  24316. _ACEOF
  24317. if ac_fn_c_try_link "$LINENO"
  24318. then :
  24319. ac_cv_lib_rt_clock_gettime=yes
  24320. else $as_nop
  24321. ac_cv_lib_rt_clock_gettime=no
  24322. fi
  24323. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24324. conftest$ac_exeext conftest.$ac_ext
  24325. LIBS=$ac_check_lib_save_LIBS
  24326. fi
  24327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24328. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24329. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24330. then :
  24331. have_clock_gettime=yes
  24332. fi
  24333. if test x$have_clock_gettime = xyes; then
  24334. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24335. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24336. else
  24337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24338. printf %s "checking for clock_gettime in -lc... " >&6; }
  24339. if test ${ac_cv_lib_c_clock_gettime+y}
  24340. then :
  24341. printf %s "(cached) " >&6
  24342. else $as_nop
  24343. ac_check_lib_save_LIBS=$LIBS
  24344. LIBS="-lc $LIBS"
  24345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24346. /* end confdefs.h. */
  24347. /* Override any GCC internal prototype to avoid an error.
  24348. Use char because int might match the return type of a GCC
  24349. builtin and then its argument prototype would still apply. */
  24350. char clock_gettime ();
  24351. int
  24352. main (void)
  24353. {
  24354. return clock_gettime ();
  24355. ;
  24356. return 0;
  24357. }
  24358. _ACEOF
  24359. if ac_fn_c_try_link "$LINENO"
  24360. then :
  24361. ac_cv_lib_c_clock_gettime=yes
  24362. else $as_nop
  24363. ac_cv_lib_c_clock_gettime=no
  24364. fi
  24365. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24366. conftest$ac_exeext conftest.$ac_ext
  24367. LIBS=$ac_check_lib_save_LIBS
  24368. fi
  24369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24370. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24371. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24372. then :
  24373. have_clock_gettime=yes
  24374. fi
  24375. if test x$have_clock_gettime = xyes; then
  24376. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24377. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24378. fi
  24379. fi
  24380. fi
  24381. }
  24382. CheckLinuxVersion()
  24383. {
  24384. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24385. if test "x$ac_cv_header_linux_version_h" = xyes
  24386. then :
  24387. have_linux_version_h=yes
  24388. fi
  24389. if test x$have_linux_version_h = xyes; then
  24390. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24391. fi
  24392. }
  24393. CheckRPATH()
  24394. {
  24395. # Check whether --enable-rpath was given.
  24396. if test ${enable_rpath+y}
  24397. then :
  24398. enableval=$enable_rpath;
  24399. else $as_nop
  24400. enable_rpath=yes
  24401. fi
  24402. }
  24403. CheckEventSignals()
  24404. {
  24405. # Check whether --enable-backgrounding-signal was given.
  24406. if test ${enable_backgrounding_signal+y}
  24407. then :
  24408. enableval=$enable_backgrounding_signal;
  24409. else $as_nop
  24410. enable_backgrounding_signal=no
  24411. fi
  24412. if test x$enable_backgrounding_signal != xno; then
  24413. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24414. fi
  24415. # Check whether --enable-foregrounding-signal was given.
  24416. if test ${enable_foregrounding_signal+y}
  24417. then :
  24418. enableval=$enable_foregrounding_signal;
  24419. else $as_nop
  24420. enable_foregrounding_signal=no
  24421. fi
  24422. if test x$enable_foregrounding_signal != xno; then
  24423. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24424. fi
  24425. }
  24426. CheckVirtualJoystick()
  24427. {
  24428. # Check whether --enable-joystick-virtual was given.
  24429. if test ${enable_joystick_virtual+y}
  24430. then :
  24431. enableval=$enable_joystick_virtual;
  24432. else $as_nop
  24433. enable_joystick_virtual=yes
  24434. fi
  24435. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24436. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24437. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24438. have_joystick_virtual=yes
  24439. fi
  24440. }
  24441. CheckWarnAll
  24442. CheckNoStrictAliasing
  24443. CheckEventSignals
  24444. have_locale=no
  24445. case "$host" in
  24446. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24447. case "$host" in
  24448. *-*-android*)
  24449. # Android
  24450. ARCH=android
  24451. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24452. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24453. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24454. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24455. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24456. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24457. if test x$enable_video = xyes; then
  24458. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24459. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24460. SUMMARY_video="${SUMMARY_video} android"
  24461. have_video=yes
  24462. fi
  24463. ;;
  24464. *-*-linux*) ARCH=linux ;;
  24465. *-*-uclinux*) ARCH=linux ;;
  24466. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24467. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24468. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24469. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24470. *-*-bsdi*) ARCH=bsdi ;;
  24471. *-*-freebsd*) ARCH=freebsd ;;
  24472. *-*-dragonfly*) ARCH=freebsd ;;
  24473. *-*-netbsd*) ARCH=netbsd ;;
  24474. *-*-openbsd*) ARCH=openbsd ;;
  24475. *-*-sysv5*) ARCH=sysv5 ;;
  24476. *-*-solaris*) ARCH=solaris ;;
  24477. *-*-hpux*) ARCH=hpux ;;
  24478. *-*-aix*) ARCH=aix ;;
  24479. *-*-minix*) ARCH=minix ;;
  24480. *-*-nto*) ARCH=nto
  24481. CheckQNXVideo
  24482. ;;
  24483. esac
  24484. CheckVisibilityHidden
  24485. CheckWerror
  24486. CheckDeclarationAfterStatement
  24487. CheckDummyVideo
  24488. CheckOffscreenVideo
  24489. CheckDiskAudio
  24490. CheckDummyAudio
  24491. CheckDLOPEN
  24492. CheckARM
  24493. CheckNEON
  24494. CheckO_CLOEXEC
  24495. CheckOSS
  24496. CheckALSA
  24497. CheckPipewire
  24498. CheckPulseAudio
  24499. CheckJACK
  24500. CheckARTSC
  24501. CheckESD
  24502. CheckNAS
  24503. CheckSNDIO
  24504. CheckFusionSound
  24505. CheckLibSampleRate
  24506. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24507. CheckRPI
  24508. CheckX11
  24509. CheckDirectFB
  24510. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24511. CheckEGL
  24512. CheckKMSDRM
  24513. CheckGLX
  24514. CheckOpenGL
  24515. CheckOpenGLES
  24516. CheckVulkan
  24517. CheckWayland
  24518. CheckInputEvents
  24519. CheckLibUDev
  24520. CheckDBus
  24521. CheckIME
  24522. CheckInotify
  24523. CheckIBus
  24524. CheckFcitx
  24525. case $ARCH in
  24526. linux)
  24527. CheckInputKD
  24528. ;;
  24529. freebsd)
  24530. CheckInputKBIO
  24531. ;;
  24532. openbsd|netbsd)
  24533. CheckInputWSCONS
  24534. ;;
  24535. esac
  24536. CheckUSBHID
  24537. CheckHIDAPI
  24538. CheckPTHREAD
  24539. CheckClockGettime
  24540. CheckLinuxVersion
  24541. CheckRPATH
  24542. CheckVivanteVideo
  24543. # Set up files for the misc library
  24544. if test x$enable_misc = xyes; then
  24545. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24546. have_misc=yes
  24547. fi
  24548. # Set up files for the locale library
  24549. if test x$enable_locale = xyes; then
  24550. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24551. have_locale=yes
  24552. fi
  24553. # Set up files for the audio library
  24554. if test x$enable_audio = xyes; then
  24555. case $ARCH in
  24556. sysv5|solaris|hpux)
  24557. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24558. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24559. SUMMARY_audio="${SUMMARY_audio} sun"
  24560. have_audio=yes
  24561. ;;
  24562. netbsd) # Don't use this on OpenBSD, it's busted.
  24563. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24564. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24565. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24566. have_audio=yes
  24567. ;;
  24568. aix)
  24569. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24570. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24571. SUMMARY_audio="${SUMMARY_audio} paudio"
  24572. have_audio=yes
  24573. ;;
  24574. android)
  24575. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24576. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24577. SUMMARY_audio="${SUMMARY_audio} android"
  24578. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24579. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24580. SUMMARY_audio="${SUMMARY_audio} openslES"
  24581. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24582. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24583. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24584. have_audio=yes
  24585. ;;
  24586. nto)
  24587. CheckQNXAudio
  24588. ;;
  24589. esac
  24590. fi
  24591. # Set up files for the joystick library
  24592. if test x$enable_joystick = xyes; then
  24593. case $ARCH in
  24594. linux)
  24595. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24596. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24597. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24598. have_joystick=yes
  24599. ;;
  24600. freebsd)
  24601. if test x$use_input_events = xyes; then
  24602. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24603. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24604. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24605. have_joystick=yes
  24606. fi
  24607. ;;
  24608. android)
  24609. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24610. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24611. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24612. have_joystick=yes
  24613. ;;
  24614. esac
  24615. fi
  24616. # Set up files for the haptic library
  24617. if test x$enable_haptic = xyes; then
  24618. case $ARCH in
  24619. linux|freebsd)
  24620. if test x$use_input_events = xyes; then
  24621. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24622. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24623. have_haptic=yes
  24624. fi
  24625. ;;
  24626. android)
  24627. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24628. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24629. have_haptic=yes
  24630. ;;
  24631. esac
  24632. fi
  24633. # Set up files for the sensor library
  24634. if test x$enable_sensor = xyes; then
  24635. case $ARCH in
  24636. android)
  24637. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24638. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24639. have_sensor=yes
  24640. ;;
  24641. esac
  24642. fi
  24643. # Set up files for the power library
  24644. if test x$enable_power = xyes; then
  24645. case $ARCH in
  24646. linux)
  24647. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24648. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24649. have_power=yes
  24650. ;;
  24651. android)
  24652. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24653. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24654. have_power=yes
  24655. ;;
  24656. esac
  24657. fi
  24658. # Set up files for the filesystem library
  24659. if test x$enable_filesystem = xyes; then
  24660. case $ARCH in
  24661. android)
  24662. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24663. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24664. have_filesystem=yes
  24665. ;;
  24666. *)
  24667. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24668. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24669. have_filesystem=yes
  24670. ;;
  24671. esac
  24672. fi
  24673. # Set up files for the timer library
  24674. if test x$enable_timers = xyes; then
  24675. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24676. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24677. have_timers=yes
  24678. fi
  24679. # Set up files for udev hotplugging support
  24680. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24681. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24682. fi
  24683. # Set up files for evdev input
  24684. if test x$use_input_events = xyes; then
  24685. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24686. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24687. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24688. fi
  24689. # Set up files for wscons input
  24690. if test x$use_input_wscons = xyes; then
  24691. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24692. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24693. fi
  24694. # Set up other core UNIX files
  24695. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24696. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24697. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24698. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24699. ;;
  24700. *-*-cygwin* | *-*-mingw*)
  24701. ARCH=win32
  24702. if test "$build" != "$host"; then # cross-compiling
  24703. # Default cross-compile location
  24704. ac_default_prefix=/usr/local/cross-tools/$host
  24705. else
  24706. # Look for the location of the tools and install there
  24707. if test "$BUILD_PREFIX" != ""; then
  24708. ac_default_prefix=$BUILD_PREFIX
  24709. fi
  24710. fi
  24711. if test x$enable_loadso = xyes; then
  24712. have_loadso=yes
  24713. fi
  24714. CheckGDwarf4
  24715. CheckWerror
  24716. CheckDeclarationAfterStatement
  24717. CheckDummyVideo
  24718. CheckOffscreenVideo
  24719. CheckDiskAudio
  24720. CheckDummyAudio
  24721. CheckWINDOWS
  24722. CheckWINDOWSGL
  24723. CheckWINDOWSGLES
  24724. CheckVulkan
  24725. CheckDIRECTX
  24726. CheckHIDAPI
  24727. # Set up the core platform files
  24728. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24729. # Set up files for the misc library
  24730. if test x$enable_misc = xyes; then
  24731. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24732. have_misc=yes
  24733. fi
  24734. # Use the Windows locale APIs.
  24735. if test x$enable_locale = xyes; then
  24736. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24737. have_locale=yes
  24738. fi
  24739. # Set up files for the video library
  24740. if test x$enable_video = xyes; then
  24741. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24742. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24743. have_video=yes
  24744. # Check whether --enable-render-d3d was given.
  24745. if test ${enable_render_d3d+y}
  24746. then :
  24747. enableval=$enable_render_d3d;
  24748. else $as_nop
  24749. enable_render_d3d=yes
  24750. fi
  24751. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24752. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24753. SUMMARY_video="${SUMMARY_video} d3d9"
  24754. fi
  24755. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24756. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24757. SUMMARY_video="${SUMMARY_video} d3d11"
  24758. fi
  24759. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24760. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24761. SUMMARY_video="${SUMMARY_video} d3d12"
  24762. fi
  24763. fi
  24764. # Set up files for the audio library
  24765. if test x$enable_audio = xyes; then
  24766. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24767. SUMMARY_audio="${SUMMARY_audio} winmm"
  24768. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24769. if test x$have_dsound = xyes; then
  24770. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24771. SUMMARY_audio="${SUMMARY_audio} directsound"
  24772. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24773. fi
  24774. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24775. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24776. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24777. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24778. fi
  24779. have_audio=yes
  24780. fi
  24781. # Set up files for the joystick library
  24782. if test x$enable_joystick = xyes; then
  24783. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24784. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24785. if test x$have_xinput = xyes; then
  24786. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24787. fi
  24788. if test x$have_wgi = xyes; then
  24789. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24790. fi
  24791. if test x$have_dinput = xyes; then
  24792. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24793. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24794. fi
  24795. fi
  24796. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24797. have_joystick=yes
  24798. fi
  24799. if test x$enable_haptic = xyes; then
  24800. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24801. if test x$have_xinput = xyes; then
  24802. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24803. fi
  24804. if test x$have_dinput = xyes; then
  24805. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24806. fi
  24807. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24808. have_haptic=yes
  24809. fi
  24810. fi
  24811. # Set up files for the sensor library
  24812. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24813. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24814. then :
  24815. have_winsensors=yes
  24816. else $as_nop
  24817. have_winsensors=no
  24818. fi
  24819. if test x$have_winsensors = xyes; then
  24820. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24821. fi
  24822. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24823. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24824. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24825. have_sensor=yes
  24826. fi
  24827. # Set up files for the power library
  24828. if test x$enable_power = xyes; then
  24829. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24830. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24831. have_power=yes
  24832. fi
  24833. # Set up files for the filesystem library
  24834. if test x$enable_filesystem = xyes; then
  24835. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24836. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24837. have_filesystem=yes
  24838. fi
  24839. # Set up files for the thread library
  24840. if test x$enable_threads = xyes; then
  24841. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24842. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24843. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24844. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24845. have_threads=yes
  24846. fi
  24847. # Set up files for the timer library
  24848. if test x$enable_timers = xyes; then
  24849. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24850. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24851. have_timers=yes
  24852. fi
  24853. # Set up files for the shared object loading library
  24854. if test x$enable_loadso = xyes; then
  24855. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24856. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24857. fi
  24858. # Set up the system libraries we need
  24859. if test -f /lib/w32api/libuuid.a; then
  24860. LIBUUID=/lib/w32api/libuuid.a
  24861. else
  24862. LIBUUID=-luuid
  24863. fi
  24864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24865. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24866. # The Windows platform requires special setup
  24867. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24868. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24869. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24870. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24871. # Check to see if this is a mingw or cygwin build
  24872. have_mingw32=
  24873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24874. printf %s "checking for main in -lmingw32... " >&6; }
  24875. if test ${ac_cv_lib_mingw32_main+y}
  24876. then :
  24877. printf %s "(cached) " >&6
  24878. else $as_nop
  24879. ac_check_lib_save_LIBS=$LIBS
  24880. LIBS="-lmingw32 $LIBS"
  24881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24882. /* end confdefs.h. */
  24883. int
  24884. main (void)
  24885. {
  24886. return main ();
  24887. ;
  24888. return 0;
  24889. }
  24890. _ACEOF
  24891. if ac_fn_c_try_link "$LINENO"
  24892. then :
  24893. ac_cv_lib_mingw32_main=yes
  24894. else $as_nop
  24895. ac_cv_lib_mingw32_main=no
  24896. fi
  24897. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24898. conftest$ac_exeext conftest.$ac_ext
  24899. LIBS=$ac_check_lib_save_LIBS
  24900. fi
  24901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24902. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24903. if test "x$ac_cv_lib_mingw32_main" = xyes
  24904. then :
  24905. have_mingw32=yes
  24906. fi
  24907. if test x$have_mingw32 = xyes; then
  24908. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24909. else
  24910. SDL_LIBS="-lcygwin $SDL_LIBS"
  24911. fi
  24912. ;;
  24913. *-*-beos*)
  24914. as_fn_error $? "
  24915. *** BeOS support has been removed as of SDL 2.0.2.
  24916. " "$LINENO" 5
  24917. ;;
  24918. *-*-haiku*)
  24919. ARCH=haiku
  24920. ac_default_prefix=/boot/system
  24921. CheckDummyVideo
  24922. CheckOffscreenVideo
  24923. CheckDiskAudio
  24924. CheckDummyAudio
  24925. CheckDLOPEN
  24926. CheckO_CLOEXEC
  24927. CheckHaikuVideo
  24928. CheckHaikuGL
  24929. CheckPTHREAD
  24930. # Set up files for the audio library
  24931. if test x$enable_audio = xyes; then
  24932. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24933. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24934. SUMMARY_audio="${SUMMARY_audio} haiku"
  24935. have_audio=yes
  24936. fi
  24937. # Set up files for the joystick library
  24938. if test x$enable_joystick = xyes; then
  24939. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24940. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24941. have_joystick=yes
  24942. fi
  24943. # Set up files for the timer library
  24944. if test x$enable_timers = xyes; then
  24945. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24946. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24947. have_timers=yes
  24948. fi
  24949. # Set up files for the system power library
  24950. if test x$enable_power = xyes; then
  24951. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24952. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24953. have_power=yes
  24954. fi
  24955. # Set up files for the system filesystem library
  24956. if test x$enable_filesystem = xyes; then
  24957. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24958. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24959. have_filesystem=yes
  24960. fi
  24961. # Set up files for the misc library
  24962. if test x$enable_misc = xyes; then
  24963. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24964. have_misc=yes
  24965. fi
  24966. # Set up files for the locale library
  24967. if test x$enable_locale = xyes; then
  24968. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24969. have_locale=yes
  24970. fi
  24971. # The Haiku platform requires special setup.
  24972. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24973. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24974. ;;
  24975. *-ios-*)
  24976. ARCH=ios
  24977. CheckVisibilityHidden
  24978. CheckWerror
  24979. CheckNoErrorDeprecatedDeclarationsWerror
  24980. CheckDeclarationAfterStatement
  24981. CheckDummyVideo
  24982. CheckOffscreenVideo
  24983. CheckDiskAudio
  24984. CheckDummyAudio
  24985. CheckDLOPEN
  24986. CheckO_CLOEXEC
  24987. CheckMETAL
  24988. CheckVulkan
  24989. CheckPTHREAD
  24990. # Set up files for the misc library
  24991. if test x$enable_misc = xyes; then
  24992. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24993. have_misc=yes
  24994. fi
  24995. # Set up files for the locale library
  24996. if test x$enable_locale = xyes; then
  24997. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24998. have_locale=yes
  24999. fi
  25000. # Set up files for the audio library
  25001. if test x$enable_audio = xyes; then
  25002. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25003. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25004. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25005. have_audio=yes
  25006. fi
  25007. # Set up files for the joystick library
  25008. if test x$enable_joystick = xyes; then
  25009. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25010. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25011. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25012. have_joystick=yes
  25013. else
  25014. # Need this code for accelerometer as joystick support
  25015. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25016. fi
  25017. # Set up files for the haptic library
  25018. #if test x$enable_haptic = xyes; then
  25019. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25020. # have_haptic=yes
  25021. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25022. #fi
  25023. # Set up files for the sensor library
  25024. if test x$enable_sensor = xyes; then
  25025. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25026. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25027. have_sensor=yes
  25028. fi
  25029. # Set up files for the power library
  25030. if test x$enable_power = xyes; then
  25031. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25032. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25033. have_power=yes
  25034. fi
  25035. # Set up files for the filesystem library
  25036. if test x$enable_filesystem = xyes; then
  25037. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25038. have_filesystem=yes
  25039. fi
  25040. # Set up additional files for the file library
  25041. if test x$enable_file = xyes; then
  25042. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25043. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25044. fi
  25045. # Set up files for the timer library
  25046. if test x$enable_timers = xyes; then
  25047. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25048. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25049. have_timers=yes
  25050. fi
  25051. # Set up other core UNIX files
  25052. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25053. # The iOS platform requires special setup.
  25054. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25055. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25056. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25057. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25058. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25059. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25060. SUMMARY_video="${SUMMARY_video} uikit"
  25061. have_video=yes
  25062. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25063. if test x$enable_system_iconv = xyes; then
  25064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25065. fi
  25066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25074. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25076. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25077. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25078. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25079. fi
  25080. ;;
  25081. *-*-darwin* )
  25082. # This could be either full "Mac OS X", or plain "Darwin" which is
  25083. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25084. # Next line is broken, and a few files below require Mac OS X (full)
  25085. ARCH=macosx
  25086. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25087. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25088. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25089. CheckObjectiveCARC
  25090. CheckVisibilityHidden
  25091. CheckWerror
  25092. CheckNoErrorDeprecatedDeclarationsWerror
  25093. CheckDeclarationAfterStatement
  25094. CheckDummyVideo
  25095. CheckOffscreenVideo
  25096. CheckDiskAudio
  25097. CheckDummyAudio
  25098. CheckDLOPEN
  25099. CheckO_CLOEXEC
  25100. CheckCOCOA
  25101. CheckMETAL
  25102. CheckX11
  25103. CheckMacGL
  25104. CheckMacGLES
  25105. CheckGLX
  25106. CheckOpenGL
  25107. CheckVulkan
  25108. CheckPTHREAD
  25109. CheckHIDAPI
  25110. # Set up files for the misc library
  25111. if test x$enable_misc = xyes; then
  25112. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25113. have_misc=yes
  25114. fi
  25115. # Set up files for the locale library
  25116. if test x$enable_locale = xyes; then
  25117. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25118. have_locale=yes
  25119. fi
  25120. # Set up files for the audio library
  25121. if test x$enable_audio = xyes; then
  25122. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25123. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25124. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25125. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25126. have_audio=yes
  25127. fi
  25128. # Set up files for the joystick library
  25129. if test x$enable_joystick = xyes; then
  25130. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25131. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25132. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25133. CheckJoystickMFI
  25134. have_joystick=yes
  25135. fi
  25136. # Set up files for the haptic library
  25137. if test x$enable_haptic = xyes; then
  25138. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25139. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25140. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25141. have_haptic=yes
  25142. fi
  25143. # Set up files for the power library
  25144. if test x$enable_power = xyes; then
  25145. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25146. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25147. have_power=yes
  25148. fi
  25149. # Set up files for the filesystem library
  25150. if test x$enable_filesystem = xyes; then
  25151. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25152. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25153. have_filesystem=yes
  25154. fi
  25155. # Set up files for the timer library
  25156. if test x$enable_timers = xyes; then
  25157. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25158. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25159. have_timers=yes
  25160. fi
  25161. # Set up additional files for the file library
  25162. if test x$enable_file = xyes; then
  25163. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25164. fi
  25165. # Set up other core UNIX files
  25166. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25167. # The Mac OS X platform requires special setup.
  25168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25173. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25174. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25175. fi
  25176. ;;
  25177. *-nacl|*-pnacl)
  25178. ARCH=nacl
  25179. CheckNativeClient
  25180. CheckDummyAudio
  25181. CheckDummyVideo
  25182. CheckOffscreenVideo
  25183. CheckInputEvents
  25184. CheckPTHREAD
  25185. CheckO_CLOEXEC
  25186. # Set up files for the timer library
  25187. if test x$enable_timers = xyes; then
  25188. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25189. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25190. have_timers=yes
  25191. fi
  25192. if test x$enable_filesystem = xyes; then
  25193. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25194. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25195. have_filesystem=yes
  25196. fi
  25197. ;;
  25198. *-*-emscripten* )
  25199. if test x$enable_video = xyes; then
  25200. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25201. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25202. have_video=yes
  25203. SUMMARY_video="${SUMMARY_video} emscripten"
  25204. fi
  25205. if test x$enable_audio = xyes; then
  25206. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25207. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25208. have_audio=yes
  25209. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25210. fi
  25211. CheckVisibilityHidden
  25212. CheckWerror
  25213. CheckDeclarationAfterStatement
  25214. CheckDummyVideo
  25215. CheckOffscreenVideo
  25216. CheckDiskAudio
  25217. CheckDummyAudio
  25218. CheckPTHREAD
  25219. CheckDLOPEN
  25220. CheckClockGettime
  25221. CheckEmscriptenGLES
  25222. # Set up files for the misc library
  25223. if test x$enable_misc = xyes; then
  25224. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25225. have_misc=yes
  25226. fi
  25227. # Set up files for the power library
  25228. if test x$enable_power = xyes; then
  25229. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25230. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25231. have_power=yes
  25232. fi
  25233. # Set up files for the joystick library
  25234. if test x$enable_joystick = xyes; then
  25235. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25236. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25237. have_joystick=yes
  25238. fi
  25239. # Set up files for the filesystem library
  25240. if test x$enable_filesystem = xyes; then
  25241. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25242. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25243. have_filesystem=yes
  25244. fi
  25245. # Set up files for the timer library
  25246. if test x$enable_timers = xyes; then
  25247. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25248. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25249. have_timers=yes
  25250. fi
  25251. # Set up files for the locale library
  25252. if test x$enable_locale = xyes; then
  25253. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25254. have_locale=yes
  25255. fi
  25256. ;;
  25257. *-*-riscos*)
  25258. ARCH=riscos
  25259. CheckVisibilityHidden
  25260. CheckWerror
  25261. CheckDeclarationAfterStatement
  25262. CheckDummyVideo
  25263. CheckOffscreenVideo
  25264. CheckDiskAudio
  25265. CheckDummyAudio
  25266. CheckDLOPEN
  25267. CheckO_CLOEXEC
  25268. CheckOSS
  25269. CheckPTHREAD
  25270. CheckClockGettime
  25271. # Set up files for the misc library
  25272. if test x$enable_misc = xyes; then
  25273. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25274. have_misc=yes
  25275. fi
  25276. # Set up files for the video library
  25277. if test x$enable_video = xyes; then
  25278. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25279. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25280. have_video=yes
  25281. SUMMARY_video="${SUMMARY_video} riscos"
  25282. fi
  25283. # Set up files for the filesystem library
  25284. if test x$enable_filesystem = xyes; then
  25285. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25286. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25287. have_filesystem=yes
  25288. fi
  25289. # Set up files for the timer library
  25290. if test x$enable_timers = xyes; then
  25291. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25292. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25293. have_timers=yes
  25294. fi
  25295. ;;
  25296. *-*-os2*)
  25297. ARCH=os2
  25298. if test "$build" != "$host"; then # cross-compiling
  25299. # Default cross-compile location
  25300. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25301. else
  25302. # Look for the location of the tools and install there
  25303. if test "$BUILD_PREFIX" != ""; then
  25304. ac_default_prefix=$BUILD_PREFIX
  25305. fi
  25306. fi
  25307. enable_static=no # disable static builds
  25308. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25309. CheckOS2
  25310. CheckWerror
  25311. CheckDeclarationAfterStatement
  25312. CheckDummyVideo
  25313. CheckDiskAudio
  25314. CheckDummyAudio
  25315. CheckHIDAPI
  25316. # Set up the core platform files
  25317. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25318. if test x$enable_system_iconv = xyes; then
  25319. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25320. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25321. fi
  25322. fi
  25323. # Use the Unix locale APIs.
  25324. if test x$enable_locale = xyes; then
  25325. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25326. have_locale=yes
  25327. fi
  25328. # Set up files for the video library
  25329. if test x$enable_video = xyes; then
  25330. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25331. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25332. have_video=yes
  25333. SUMMARY_video="${SUMMARY_video} os/2"
  25334. fi
  25335. # Set up files for the audio library
  25336. if test x$enable_audio = xyes; then
  25337. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25338. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25339. have_audio=yes
  25340. SUMMARY_audio="${SUMMARY_audio} os/2"
  25341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25342. fi
  25343. # Set up files for the thread library
  25344. if test x$enable_threads = xyes; then
  25345. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25346. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25347. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25348. have_threads=yes
  25349. fi
  25350. # Set up files for the timer library
  25351. if test x$enable_timers = xyes; then
  25352. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25353. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25354. have_timers=yes
  25355. fi
  25356. # Set up files for the shared object loading library
  25357. if test x$enable_loadso = xyes; then
  25358. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25359. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25360. have_loadso=yes
  25361. fi
  25362. # Set up files for the filesystem library
  25363. if test x$enable_filesystem = xyes; then
  25364. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25365. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25366. have_filesystem=yes
  25367. fi
  25368. # Set up files for the joystick library
  25369. if test x$enable_joystick = xyes; then
  25370. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25371. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25372. have_joystick=yes
  25373. fi
  25374. ;;
  25375. *)
  25376. as_fn_error $? "
  25377. *** Unsupported host: Please add to configure.ac
  25378. " "$LINENO" 5
  25379. ;;
  25380. esac
  25381. CheckVirtualJoystick
  25382. # Check whether to install sdl2-config
  25383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25384. printf %s "checking whether to install sdl2-config... " >&6; }
  25385. # Check whether --enable-sdl2-config was given.
  25386. if test ${enable_sdl2_config+y}
  25387. then :
  25388. enableval=$enable_sdl2_config; case "${enableval}" in
  25389. yes) enable_sdl2_config="TRUE" ;;
  25390. no) enable_sdl2_config="FALSE" ;;
  25391. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25392. esac
  25393. else $as_nop
  25394. enable_sdl2_config="TRUE"
  25395. fi
  25396. if test "$enable_sdl2_config" = "TRUE"; then
  25397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25398. printf "%s\n" "yes" >&6; }
  25399. else
  25400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25401. printf "%s\n" "no" >&6; }
  25402. fi
  25403. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25404. # Verify that we have all the platform specific files we need
  25405. if test x$have_audio != xyes; then
  25406. if test x$enable_audio = xyes; then
  25407. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25408. fi
  25409. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25410. fi
  25411. if test x$have_video != xyes; then
  25412. if test x$enable_video = xyes; then
  25413. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25414. fi
  25415. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25416. fi
  25417. if test x$have_misc != xyes; then
  25418. if test x$enable_misc = xyes; then
  25419. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25420. fi
  25421. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25422. fi
  25423. if test x$have_locale != xyes; then
  25424. if test x$enable_locale = xyes; then
  25425. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25426. fi
  25427. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25428. fi
  25429. if test x$have_joystick != xyes; then
  25430. if test x$enable_joystick = xyes; then
  25431. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25432. fi
  25433. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25434. fi
  25435. if test x$have_haptic != xyes; then
  25436. if test x$enable_haptic = xyes; then
  25437. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25438. fi
  25439. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25440. fi
  25441. if test x$have_sensor != xyes; then
  25442. if test x$enable_sensor = xyes; then
  25443. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25444. fi
  25445. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25446. fi
  25447. if test x$have_threads != xyes; then
  25448. if test x$enable_threads = xyes; then
  25449. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25450. fi
  25451. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25452. fi
  25453. if test x$have_timers != xyes; then
  25454. if test x$enable_timers = xyes; then
  25455. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25456. fi
  25457. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25458. fi
  25459. if test x$have_filesystem != xyes; then
  25460. if test x$enable_filesystem = xyes; then
  25461. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25462. fi
  25463. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25464. fi
  25465. if test x$have_loadso != xyes; then
  25466. if test x$enable_loadso = xyes; then
  25467. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25468. fi
  25469. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25470. fi
  25471. if test x$SDLMAIN_SOURCES = x; then
  25472. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25473. fi
  25474. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25475. if test x$video_wayland = xyes; then
  25476. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25477. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25478. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25479. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25480. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25481. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25482. echo ;\
  25483. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25484. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25485. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25486. echo ;\
  25487. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25488. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25489. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25490. echo ;\
  25491. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25492. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25493. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25494. done ;\
  25495. echo ;\
  25496. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25497. fi
  25498. OBJECTS=`echo $SOURCES`
  25499. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25500. for EXT in asm cc m c S; do
  25501. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25502. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25503. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25504. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25505. done
  25506. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25507. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25508. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25509. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25510. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25511. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25512. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25513. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25514. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25515. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25516. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25517. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25518. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25519. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25520. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25521. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25522. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25523. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25524. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25525. # Set runtime shared library paths as needed
  25526. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25527. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25528. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25529. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25530. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25531. have_enable_new_dtags=no
  25532. save_LDFLAGS="$LDFLAGS"
  25533. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25535. /* end confdefs.h. */
  25536. int
  25537. main (void)
  25538. {
  25539. ;
  25540. return 0;
  25541. }
  25542. _ACEOF
  25543. if ac_fn_c_try_link "$LINENO"
  25544. then :
  25545. have_enable_new_dtags=yes
  25546. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25547. fi
  25548. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25549. conftest$ac_exeext conftest.$ac_ext
  25550. LDFLAGS="$save_LDFLAGS"
  25551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25552. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25553. fi
  25554. if test $ARCH = solaris; then
  25555. SDL_RLD_FLAGS="-R\${libdir}"
  25556. fi
  25557. else
  25558. SDL_RLD_FLAGS=""
  25559. fi
  25560. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25561. pkg_cmakedir='$libdir/cmake/SDL2'
  25562. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25563. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25564. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25565. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25566. _lcl_receval="$_lcl_from"
  25567. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25568. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25569. _lcl_receval_old=''
  25570. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25571. _lcl_receval_old="$_lcl_receval"
  25572. eval _lcl_receval="\"$_lcl_receval\""
  25573. done
  25574. echo "$_lcl_receval")`
  25575. _lcl_receval="$_lcl_to"
  25576. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25577. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25578. _lcl_receval_old=''
  25579. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25580. _lcl_receval_old="$_lcl_receval"
  25581. eval _lcl_receval="\"$_lcl_receval\""
  25582. done
  25583. echo "$_lcl_receval")`
  25584. _lcl_notation="$_lcl_from$_lcl_to"
  25585. case ":$_lcl_from:" in
  25586. # change empty paths to '.'
  25587. ::) _lcl_from='.' ;;
  25588. # strip trailing slashes
  25589. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25590. :*:) ;;
  25591. esac
  25592. # squeeze repeated slashes
  25593. case '/' in
  25594. # if the path contains any backslashes, turn slashes into backslashes
  25595. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25596. # if the path contains slashes, also turn backslashes into slashes
  25597. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25598. esac
  25599. case ":$_lcl_to:" in
  25600. # change empty paths to '.'
  25601. ::) _lcl_to='.' ;;
  25602. # strip trailing slashes
  25603. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25604. :*:) ;;
  25605. esac
  25606. # squeeze repeated slashes
  25607. case '/' in
  25608. # if the path contains any backslashes, turn slashes into backslashes
  25609. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25610. # if the path contains slashes, also turn backslashes into slashes
  25611. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25612. esac
  25613. _lcl_common_prefix=''
  25614. _lcl_second_prefix_match=''
  25615. while test "$_lcl_second_prefix_match" != 0; do
  25616. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25617. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25618. if test "$_lcl_second_prefix_match" != 0; then
  25619. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25620. _lcl_common_prefix="$_lcl_first_prefix"
  25621. else
  25622. _lcl_second_prefix_match=0
  25623. fi
  25624. fi
  25625. done
  25626. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25627. _lcl_first_rel=''
  25628. _lcl_tmp='xxx'
  25629. while test "$_lcl_tmp" != ''; do
  25630. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25631. if test "$_lcl_first_suffix" != ''; then
  25632. _lcl_first_suffix="$_lcl_tmp"
  25633. _lcl_first_rel="../$_lcl_first_rel"
  25634. fi
  25635. done
  25636. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25637. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25638. case ":$_lcl_result_tmp:" in
  25639. # change empty paths to '.'
  25640. ::) _lcl_result_tmp='.' ;;
  25641. # strip trailing slashes
  25642. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25643. :*:) ;;
  25644. esac
  25645. # squeeze repeated slashes
  25646. case "$_lcl_notation" in
  25647. # if the path contains any backslashes, turn slashes into backslashes
  25648. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25649. # if the path contains slashes, also turn backslashes into slashes
  25650. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25651. esac
  25652. eval $_lcl_result_var='$_lcl_result_tmp'
  25653. done
  25654. if test x$enable_shared = xyes; then
  25655. PKGCONFIG_LIBS_PRIV="
  25656. Libs.private:"
  25657. ENABLE_SHARED_TRUE=
  25658. ENABLE_SHARED_FALSE="#"
  25659. else
  25660. PKGCONFIG_LIBS_PRIV=
  25661. ENABLE_SHARED_TRUE="#"
  25662. ENABLE_SHARED_FALSE=
  25663. fi
  25664. if test x$enable_static = xyes; then
  25665. ENABLE_STATIC_TRUE=
  25666. ENABLE_STATIC_FALSE="#"
  25667. else
  25668. ENABLE_STATIC_TRUE="#"
  25669. ENABLE_STATIC_FALSE=
  25670. fi
  25671. cat >Makefile.rules <<__EOF__
  25672. # Build rules for objects
  25673. -include \$(OBJECTS:.lo=.d)
  25674. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25675. $srcdir/src/SDL.c: update-revision
  25676. $DEPENDS
  25677. $VERSION_DEPENDS
  25678. $SDLMAIN_DEPENDS
  25679. $SDLTEST_DEPENDS
  25680. $WAYLAND_PROTOCOLS_DEPENDS
  25681. __EOF__
  25682. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25683. ac_config_commands="$ac_config_commands sdl2_config"
  25684. SUMMARY="SDL2 Configure Summary:\n"
  25685. if test x$enable_shared = xyes; then
  25686. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25687. fi
  25688. if test x$enable_static = xyes; then
  25689. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25690. fi
  25691. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25692. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25693. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25694. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25695. if test x$have_x = xyes; then
  25696. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25697. fi
  25698. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25699. if test x$have_joystick_virtual = xyes; then
  25700. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25701. else
  25702. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25703. fi
  25704. if test x$have_samplerate_h_hdr = xyes; then
  25705. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25706. else
  25707. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25708. fi
  25709. if test x$have_libudev_h_hdr = xyes; then
  25710. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25711. else
  25712. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25713. fi
  25714. if test x$have_dbus_dbus_h_hdr = xyes; then
  25715. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25716. else
  25717. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25718. fi
  25719. if test x$enable_ime = xyes; then
  25720. SUMMARY="${SUMMARY}Using ime : YES\n"
  25721. else
  25722. SUMMARY="${SUMMARY}Using ime : NO\n"
  25723. fi
  25724. if test x$have_ibus_ibus_h_hdr = xyes; then
  25725. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25726. else
  25727. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25728. fi
  25729. if test x$have_fcitx = xyes; then
  25730. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25731. else
  25732. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25733. fi
  25734. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25735. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25736. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25737. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25738. SUMMARY="${SUMMARY}configure script with:\n"
  25739. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25740. fi
  25741. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25742. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25743. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25744. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25745. SUMMARY="${SUMMARY}configure script with:\n"
  25746. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25747. fi
  25748. ac_config_commands="$ac_config_commands summary"
  25749. cat >confcache <<\_ACEOF
  25750. # This file is a shell script that caches the results of configure
  25751. # tests run on this system so they can be shared between configure
  25752. # scripts and configure runs, see configure's option --config-cache.
  25753. # It is not useful on other systems. If it contains results you don't
  25754. # want to keep, you may remove or edit it.
  25755. #
  25756. # config.status only pays attention to the cache file if you give it
  25757. # the --recheck option to rerun configure.
  25758. #
  25759. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25760. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25761. # following values.
  25762. _ACEOF
  25763. # The following way of writing the cache mishandles newlines in values,
  25764. # but we know of no workaround that is simple, portable, and efficient.
  25765. # So, we kill variables containing newlines.
  25766. # Ultrix sh set writes to stderr and can't be redirected directly,
  25767. # and sets the high bit in the cache file unless we assign to the vars.
  25768. (
  25769. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25770. eval ac_val=\$$ac_var
  25771. case $ac_val in #(
  25772. *${as_nl}*)
  25773. case $ac_var in #(
  25774. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25775. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25776. esac
  25777. case $ac_var in #(
  25778. _ | IFS | as_nl) ;; #(
  25779. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25780. *) { eval $ac_var=; unset $ac_var;} ;;
  25781. esac ;;
  25782. esac
  25783. done
  25784. (set) 2>&1 |
  25785. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25786. *${as_nl}ac_space=\ *)
  25787. # `set' does not quote correctly, so add quotes: double-quote
  25788. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25789. sed -n \
  25790. "s/'/'\\\\''/g;
  25791. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25792. ;; #(
  25793. *)
  25794. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25795. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25796. ;;
  25797. esac |
  25798. sort
  25799. ) |
  25800. sed '
  25801. /^ac_cv_env_/b end
  25802. t clear
  25803. :clear
  25804. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25805. t end
  25806. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25807. :end' >>confcache
  25808. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25809. if test -w "$cache_file"; then
  25810. if test "x$cache_file" != "x/dev/null"; then
  25811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25812. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25813. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25814. cat confcache >"$cache_file"
  25815. else
  25816. case $cache_file in #(
  25817. */* | ?:*)
  25818. mv -f confcache "$cache_file"$$ &&
  25819. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25820. *)
  25821. mv -f confcache "$cache_file" ;;
  25822. esac
  25823. fi
  25824. fi
  25825. else
  25826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25827. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25828. fi
  25829. fi
  25830. rm -f confcache
  25831. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25832. # Let make expand exec_prefix.
  25833. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25834. DEFS=-DHAVE_CONFIG_H
  25835. ac_libobjs=
  25836. ac_ltlibobjs=
  25837. U=
  25838. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25839. # 1. Remove the extension, and $U if already installed.
  25840. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25841. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25842. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25843. # will be set to the directory where LIBOBJS objects are built.
  25844. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25845. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25846. done
  25847. LIBOBJS=$ac_libobjs
  25848. LTLIBOBJS=$ac_ltlibobjs
  25849. : "${CONFIG_STATUS=./config.status}"
  25850. ac_write_fail=0
  25851. ac_clean_files_save=$ac_clean_files
  25852. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25854. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25855. as_write_fail=0
  25856. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25857. #! $SHELL
  25858. # Generated by $as_me.
  25859. # Run this file to recreate the current configuration.
  25860. # Compiler output produced by configure, useful for debugging
  25861. # configure, is in config.log if it exists.
  25862. debug=false
  25863. ac_cs_recheck=false
  25864. ac_cs_silent=false
  25865. SHELL=\${CONFIG_SHELL-$SHELL}
  25866. export SHELL
  25867. _ASEOF
  25868. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25869. ## -------------------- ##
  25870. ## M4sh Initialization. ##
  25871. ## -------------------- ##
  25872. # Be more Bourne compatible
  25873. DUALCASE=1; export DUALCASE # for MKS sh
  25874. as_nop=:
  25875. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25876. then :
  25877. emulate sh
  25878. NULLCMD=:
  25879. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25880. # is contrary to our usage. Disable this feature.
  25881. alias -g '${1+"$@"}'='"$@"'
  25882. setopt NO_GLOB_SUBST
  25883. else $as_nop
  25884. case `(set -o) 2>/dev/null` in #(
  25885. *posix*) :
  25886. set -o posix ;; #(
  25887. *) :
  25888. ;;
  25889. esac
  25890. fi
  25891. # Reset variables that may have inherited troublesome values from
  25892. # the environment.
  25893. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25894. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25895. # side effect of setting IFS to empty, thus disabling word splitting.)
  25896. # Quoting is to prevent editors from complaining about space-tab.
  25897. as_nl='
  25898. '
  25899. export as_nl
  25900. IFS=" "" $as_nl"
  25901. PS1='$ '
  25902. PS2='> '
  25903. PS4='+ '
  25904. # Ensure predictable behavior from utilities with locale-dependent output.
  25905. LC_ALL=C
  25906. export LC_ALL
  25907. LANGUAGE=C
  25908. export LANGUAGE
  25909. # We cannot yet rely on "unset" to work, but we need these variables
  25910. # to be unset--not just set to an empty or harmless value--now, to
  25911. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25912. # also avoids known problems related to "unset" and subshell syntax
  25913. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25914. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25915. do eval test \${$as_var+y} \
  25916. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25917. done
  25918. # Ensure that fds 0, 1, and 2 are open.
  25919. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25920. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25921. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25922. # The user is always right.
  25923. if ${PATH_SEPARATOR+false} :; then
  25924. PATH_SEPARATOR=:
  25925. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25926. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25927. PATH_SEPARATOR=';'
  25928. }
  25929. fi
  25930. # Find who we are. Look in the path if we contain no directory separator.
  25931. as_myself=
  25932. case $0 in #((
  25933. *[\\/]* ) as_myself=$0 ;;
  25934. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25935. for as_dir in $PATH
  25936. do
  25937. IFS=$as_save_IFS
  25938. case $as_dir in #(((
  25939. '') as_dir=./ ;;
  25940. */) ;;
  25941. *) as_dir=$as_dir/ ;;
  25942. esac
  25943. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25944. done
  25945. IFS=$as_save_IFS
  25946. ;;
  25947. esac
  25948. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25949. # in which case we are not to be found in the path.
  25950. if test "x$as_myself" = x; then
  25951. as_myself=$0
  25952. fi
  25953. if test ! -f "$as_myself"; then
  25954. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25955. exit 1
  25956. fi
  25957. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25958. # ----------------------------------------
  25959. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25960. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25961. # script with STATUS, using 1 if that was 0.
  25962. as_fn_error ()
  25963. {
  25964. as_status=$1; test $as_status -eq 0 && as_status=1
  25965. if test "$4"; then
  25966. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25967. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25968. fi
  25969. printf "%s\n" "$as_me: error: $2" >&2
  25970. as_fn_exit $as_status
  25971. } # as_fn_error
  25972. # as_fn_set_status STATUS
  25973. # -----------------------
  25974. # Set $? to STATUS, without forking.
  25975. as_fn_set_status ()
  25976. {
  25977. return $1
  25978. } # as_fn_set_status
  25979. # as_fn_exit STATUS
  25980. # -----------------
  25981. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25982. as_fn_exit ()
  25983. {
  25984. set +e
  25985. as_fn_set_status $1
  25986. exit $1
  25987. } # as_fn_exit
  25988. # as_fn_unset VAR
  25989. # ---------------
  25990. # Portably unset VAR.
  25991. as_fn_unset ()
  25992. {
  25993. { eval $1=; unset $1;}
  25994. }
  25995. as_unset=as_fn_unset
  25996. # as_fn_append VAR VALUE
  25997. # ----------------------
  25998. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25999. # advantage of any shell optimizations that allow amortized linear growth over
  26000. # repeated appends, instead of the typical quadratic growth present in naive
  26001. # implementations.
  26002. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26003. then :
  26004. eval 'as_fn_append ()
  26005. {
  26006. eval $1+=\$2
  26007. }'
  26008. else $as_nop
  26009. as_fn_append ()
  26010. {
  26011. eval $1=\$$1\$2
  26012. }
  26013. fi # as_fn_append
  26014. # as_fn_arith ARG...
  26015. # ------------------
  26016. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26017. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26018. # must be portable across $(()) and expr.
  26019. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26020. then :
  26021. eval 'as_fn_arith ()
  26022. {
  26023. as_val=$(( $* ))
  26024. }'
  26025. else $as_nop
  26026. as_fn_arith ()
  26027. {
  26028. as_val=`expr "$@" || test $? -eq 1`
  26029. }
  26030. fi # as_fn_arith
  26031. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26032. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26033. as_expr=expr
  26034. else
  26035. as_expr=false
  26036. fi
  26037. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26038. as_basename=basename
  26039. else
  26040. as_basename=false
  26041. fi
  26042. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26043. as_dirname=dirname
  26044. else
  26045. as_dirname=false
  26046. fi
  26047. as_me=`$as_basename -- "$0" ||
  26048. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26049. X"$0" : 'X\(//\)$' \| \
  26050. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26051. printf "%s\n" X/"$0" |
  26052. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26053. s//\1/
  26054. q
  26055. }
  26056. /^X\/\(\/\/\)$/{
  26057. s//\1/
  26058. q
  26059. }
  26060. /^X\/\(\/\).*/{
  26061. s//\1/
  26062. q
  26063. }
  26064. s/.*/./; q'`
  26065. # Avoid depending upon Character Ranges.
  26066. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26067. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26068. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26069. as_cr_digits='0123456789'
  26070. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26071. # Determine whether it's possible to make 'echo' print without a newline.
  26072. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26073. # for compatibility with existing Makefiles.
  26074. ECHO_C= ECHO_N= ECHO_T=
  26075. case `echo -n x` in #(((((
  26076. -n*)
  26077. case `echo 'xy\c'` in
  26078. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26079. xy) ECHO_C='\c';;
  26080. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26081. ECHO_T=' ';;
  26082. esac;;
  26083. *)
  26084. ECHO_N='-n';;
  26085. esac
  26086. # For backward compatibility with old third-party macros, we provide
  26087. # the shell variables $as_echo and $as_echo_n. New code should use
  26088. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26089. as_echo='printf %s\n'
  26090. as_echo_n='printf %s'
  26091. rm -f conf$$ conf$$.exe conf$$.file
  26092. if test -d conf$$.dir; then
  26093. rm -f conf$$.dir/conf$$.file
  26094. else
  26095. rm -f conf$$.dir
  26096. mkdir conf$$.dir 2>/dev/null
  26097. fi
  26098. if (echo >conf$$.file) 2>/dev/null; then
  26099. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26100. as_ln_s='ln -s'
  26101. # ... but there are two gotchas:
  26102. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26103. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26104. # In both cases, we have to default to `cp -pR'.
  26105. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26106. as_ln_s='cp -pR'
  26107. elif ln conf$$.file conf$$ 2>/dev/null; then
  26108. as_ln_s=ln
  26109. else
  26110. as_ln_s='cp -pR'
  26111. fi
  26112. else
  26113. as_ln_s='cp -pR'
  26114. fi
  26115. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26116. rmdir conf$$.dir 2>/dev/null
  26117. # as_fn_mkdir_p
  26118. # -------------
  26119. # Create "$as_dir" as a directory, including parents if necessary.
  26120. as_fn_mkdir_p ()
  26121. {
  26122. case $as_dir in #(
  26123. -*) as_dir=./$as_dir;;
  26124. esac
  26125. test -d "$as_dir" || eval $as_mkdir_p || {
  26126. as_dirs=
  26127. while :; do
  26128. case $as_dir in #(
  26129. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26130. *) as_qdir=$as_dir;;
  26131. esac
  26132. as_dirs="'$as_qdir' $as_dirs"
  26133. as_dir=`$as_dirname -- "$as_dir" ||
  26134. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26135. X"$as_dir" : 'X\(//\)[^/]' \| \
  26136. X"$as_dir" : 'X\(//\)$' \| \
  26137. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26138. printf "%s\n" X"$as_dir" |
  26139. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26140. s//\1/
  26141. q
  26142. }
  26143. /^X\(\/\/\)[^/].*/{
  26144. s//\1/
  26145. q
  26146. }
  26147. /^X\(\/\/\)$/{
  26148. s//\1/
  26149. q
  26150. }
  26151. /^X\(\/\).*/{
  26152. s//\1/
  26153. q
  26154. }
  26155. s/.*/./; q'`
  26156. test -d "$as_dir" && break
  26157. done
  26158. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26159. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26160. } # as_fn_mkdir_p
  26161. if mkdir -p . 2>/dev/null; then
  26162. as_mkdir_p='mkdir -p "$as_dir"'
  26163. else
  26164. test -d ./-p && rmdir ./-p
  26165. as_mkdir_p=false
  26166. fi
  26167. # as_fn_executable_p FILE
  26168. # -----------------------
  26169. # Test if FILE is an executable regular file.
  26170. as_fn_executable_p ()
  26171. {
  26172. test -f "$1" && test -x "$1"
  26173. } # as_fn_executable_p
  26174. as_test_x='test -x'
  26175. as_executable_p=as_fn_executable_p
  26176. # Sed expression to map a string onto a valid CPP name.
  26177. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26178. # Sed expression to map a string onto a valid variable name.
  26179. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26180. exec 6>&1
  26181. ## ----------------------------------- ##
  26182. ## Main body of $CONFIG_STATUS script. ##
  26183. ## ----------------------------------- ##
  26184. _ASEOF
  26185. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26186. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26187. # Save the log message, to keep $0 and so on meaningful, and to
  26188. # report actual input values of CONFIG_FILES etc. instead of their
  26189. # values after options handling.
  26190. ac_log="
  26191. This file was extended by $as_me, which was
  26192. generated by GNU Autoconf 2.71. Invocation command line was
  26193. CONFIG_FILES = $CONFIG_FILES
  26194. CONFIG_HEADERS = $CONFIG_HEADERS
  26195. CONFIG_LINKS = $CONFIG_LINKS
  26196. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26197. $ $0 $@
  26198. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26199. "
  26200. _ACEOF
  26201. case $ac_config_files in *"
  26202. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26203. esac
  26204. case $ac_config_headers in *"
  26205. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26206. esac
  26207. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26208. # Files that config.status was made for.
  26209. config_files="$ac_config_files"
  26210. config_headers="$ac_config_headers"
  26211. config_commands="$ac_config_commands"
  26212. _ACEOF
  26213. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26214. ac_cs_usage="\
  26215. \`$as_me' instantiates files and other configuration actions
  26216. from templates according to the current configuration. Unless the files
  26217. and actions are specified as TAGs, all are instantiated by default.
  26218. Usage: $0 [OPTION]... [TAG]...
  26219. -h, --help print this help, then exit
  26220. -V, --version print version number and configuration settings, then exit
  26221. --config print configuration, then exit
  26222. -q, --quiet, --silent
  26223. do not print progress messages
  26224. -d, --debug don't remove temporary files
  26225. --recheck update $as_me by reconfiguring in the same conditions
  26226. --file=FILE[:TEMPLATE]
  26227. instantiate the configuration file FILE
  26228. --header=FILE[:TEMPLATE]
  26229. instantiate the configuration header FILE
  26230. Configuration files:
  26231. $config_files
  26232. Configuration headers:
  26233. $config_headers
  26234. Configuration commands:
  26235. $config_commands
  26236. Report bugs to the package provider."
  26237. _ACEOF
  26238. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26239. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26241. ac_cs_config='$ac_cs_config_escaped'
  26242. ac_cs_version="\\
  26243. config.status
  26244. configured by $0, generated by GNU Autoconf 2.71,
  26245. with options \\"\$ac_cs_config\\"
  26246. Copyright (C) 2021 Free Software Foundation, Inc.
  26247. This config.status script is free software; the Free Software Foundation
  26248. gives unlimited permission to copy, distribute and modify it."
  26249. ac_pwd='$ac_pwd'
  26250. srcdir='$srcdir'
  26251. INSTALL='$INSTALL'
  26252. AWK='$AWK'
  26253. test -n "\$AWK" || AWK=awk
  26254. _ACEOF
  26255. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26256. # The default lists apply if the user does not specify any file.
  26257. ac_need_defaults=:
  26258. while test $# != 0
  26259. do
  26260. case $1 in
  26261. --*=?*)
  26262. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26263. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26264. ac_shift=:
  26265. ;;
  26266. --*=)
  26267. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26268. ac_optarg=
  26269. ac_shift=:
  26270. ;;
  26271. *)
  26272. ac_option=$1
  26273. ac_optarg=$2
  26274. ac_shift=shift
  26275. ;;
  26276. esac
  26277. case $ac_option in
  26278. # Handling of the options.
  26279. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26280. ac_cs_recheck=: ;;
  26281. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26282. printf "%s\n" "$ac_cs_version"; exit ;;
  26283. --config | --confi | --conf | --con | --co | --c )
  26284. printf "%s\n" "$ac_cs_config"; exit ;;
  26285. --debug | --debu | --deb | --de | --d | -d )
  26286. debug=: ;;
  26287. --file | --fil | --fi | --f )
  26288. $ac_shift
  26289. case $ac_optarg in
  26290. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26291. '') as_fn_error $? "missing file argument" ;;
  26292. esac
  26293. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26294. ac_need_defaults=false;;
  26295. --header | --heade | --head | --hea )
  26296. $ac_shift
  26297. case $ac_optarg in
  26298. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26299. esac
  26300. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26301. ac_need_defaults=false;;
  26302. --he | --h)
  26303. # Conflict between --help and --header
  26304. as_fn_error $? "ambiguous option: \`$1'
  26305. Try \`$0 --help' for more information.";;
  26306. --help | --hel | -h )
  26307. printf "%s\n" "$ac_cs_usage"; exit ;;
  26308. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26309. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26310. ac_cs_silent=: ;;
  26311. # This is an error.
  26312. -*) as_fn_error $? "unrecognized option: \`$1'
  26313. Try \`$0 --help' for more information." ;;
  26314. *) as_fn_append ac_config_targets " $1"
  26315. ac_need_defaults=false ;;
  26316. esac
  26317. shift
  26318. done
  26319. ac_configure_extra_args=
  26320. if $ac_cs_silent; then
  26321. exec 6>/dev/null
  26322. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26323. fi
  26324. _ACEOF
  26325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26326. if \$ac_cs_recheck; then
  26327. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26328. shift
  26329. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26330. CONFIG_SHELL='$SHELL'
  26331. export CONFIG_SHELL
  26332. exec "\$@"
  26333. fi
  26334. _ACEOF
  26335. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26336. exec 5>>config.log
  26337. {
  26338. echo
  26339. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26340. ## Running $as_me. ##
  26341. _ASBOX
  26342. printf "%s\n" "$ac_log"
  26343. } >&5
  26344. _ACEOF
  26345. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26346. #
  26347. # INIT-COMMANDS
  26348. #
  26349. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26350. # if CDPATH is set.
  26351. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26352. sed_quote_subst='$sed_quote_subst'
  26353. double_quote_subst='$double_quote_subst'
  26354. delay_variable_subst='$delay_variable_subst'
  26355. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26356. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26357. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26358. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26359. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26360. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26361. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26362. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26363. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26364. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26365. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26366. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26367. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26368. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26369. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26370. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26371. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26372. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26373. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26374. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26375. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26376. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26377. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26378. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26379. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26380. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26381. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26382. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26383. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26384. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26385. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26386. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26387. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26388. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26389. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26390. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26391. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26392. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26393. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26394. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26395. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26396. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26397. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26398. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26399. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26400. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26401. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26402. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26403. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26404. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26405. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26406. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26407. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26408. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26409. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26410. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26411. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26412. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26413. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26414. 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"`'
  26415. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26416. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26417. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26418. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26419. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26420. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26421. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26422. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26423. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26424. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26425. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26426. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26427. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26428. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26429. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26430. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26431. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26432. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26433. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26434. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26435. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26436. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26437. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26438. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26439. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26440. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26441. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26442. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26443. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26444. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26445. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26446. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26447. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26448. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26449. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26450. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26451. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26452. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26453. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26454. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26455. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26456. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26457. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26458. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26459. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26460. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26461. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26462. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26463. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26464. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26465. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26466. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26467. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26468. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26469. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26470. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26471. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26472. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26473. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26474. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26475. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26476. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26477. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26478. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26479. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26480. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26481. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26482. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26483. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26484. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26485. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26486. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26487. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26488. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26489. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26490. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26491. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26492. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26493. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26494. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26495. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26496. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26497. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26498. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26499. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26500. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26501. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26502. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26503. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26504. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26505. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26506. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26507. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26508. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26509. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26510. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26511. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26512. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26513. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26514. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26515. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26516. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26517. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26518. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26519. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26520. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26521. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26522. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26523. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26524. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26525. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26526. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26527. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26528. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26529. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26530. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26531. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26532. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26533. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26534. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26535. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26536. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26537. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26538. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26539. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26540. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26541. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26542. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26543. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26544. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26545. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26546. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26547. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26548. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26549. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26550. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26551. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26552. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26553. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26554. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26555. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26556. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26557. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26558. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26559. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26560. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26561. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26562. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26563. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26564. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26565. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26566. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26567. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26568. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26569. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26570. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26571. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26572. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26573. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26574. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26575. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26576. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26577. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26578. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26579. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26580. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26581. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26582. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26583. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26584. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26585. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26586. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26587. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26588. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26589. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26590. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26591. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26592. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26593. LTCC='$LTCC'
  26594. LTCFLAGS='$LTCFLAGS'
  26595. compiler='$compiler_DEFAULT'
  26596. # A function that is used when there is no print builtin or printf.
  26597. func_fallback_echo ()
  26598. {
  26599. eval 'cat <<_LTECHO_EOF
  26600. \$1
  26601. _LTECHO_EOF'
  26602. }
  26603. # Quote evaled strings.
  26604. for var in AS \
  26605. DLLTOOL \
  26606. OBJDUMP \
  26607. SHELL \
  26608. ECHO \
  26609. PATH_SEPARATOR \
  26610. SED \
  26611. GREP \
  26612. EGREP \
  26613. FGREP \
  26614. LD \
  26615. NM \
  26616. LN_S \
  26617. lt_SP2NL \
  26618. lt_NL2SP \
  26619. reload_flag \
  26620. deplibs_check_method \
  26621. file_magic_cmd \
  26622. file_magic_glob \
  26623. want_nocaseglob \
  26624. sharedlib_from_linklib_cmd \
  26625. AR \
  26626. AR_FLAGS \
  26627. archiver_list_spec \
  26628. STRIP \
  26629. RANLIB \
  26630. CC \
  26631. CFLAGS \
  26632. compiler \
  26633. lt_cv_sys_global_symbol_pipe \
  26634. lt_cv_sys_global_symbol_to_cdecl \
  26635. lt_cv_sys_global_symbol_to_import \
  26636. lt_cv_sys_global_symbol_to_c_name_address \
  26637. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26638. lt_cv_nm_interface \
  26639. nm_file_list_spec \
  26640. lt_cv_truncate_bin \
  26641. lt_prog_compiler_no_builtin_flag \
  26642. lt_prog_compiler_pic \
  26643. lt_prog_compiler_wl \
  26644. lt_prog_compiler_static \
  26645. lt_cv_prog_compiler_c_o \
  26646. need_locks \
  26647. MANIFEST_TOOL \
  26648. DSYMUTIL \
  26649. NMEDIT \
  26650. LIPO \
  26651. OTOOL \
  26652. OTOOL64 \
  26653. shrext_cmds \
  26654. export_dynamic_flag_spec \
  26655. whole_archive_flag_spec \
  26656. compiler_needs_object \
  26657. with_gnu_ld \
  26658. allow_undefined_flag \
  26659. no_undefined_flag \
  26660. hardcode_libdir_flag_spec \
  26661. hardcode_libdir_separator \
  26662. exclude_expsyms \
  26663. include_expsyms \
  26664. file_list_spec \
  26665. variables_saved_for_relink \
  26666. libname_spec \
  26667. library_names_spec \
  26668. soname_spec \
  26669. install_override_mode \
  26670. finish_eval \
  26671. old_striplib \
  26672. striplib \
  26673. compiler_lib_search_dirs \
  26674. predep_objects \
  26675. postdep_objects \
  26676. predeps \
  26677. postdeps \
  26678. compiler_lib_search_path \
  26679. LD_RC \
  26680. LD_CXX \
  26681. reload_flag_RC \
  26682. reload_flag_CXX \
  26683. compiler_RC \
  26684. compiler_CXX \
  26685. lt_prog_compiler_no_builtin_flag_RC \
  26686. lt_prog_compiler_no_builtin_flag_CXX \
  26687. lt_prog_compiler_pic_RC \
  26688. lt_prog_compiler_pic_CXX \
  26689. lt_prog_compiler_wl_RC \
  26690. lt_prog_compiler_wl_CXX \
  26691. lt_prog_compiler_static_RC \
  26692. lt_prog_compiler_static_CXX \
  26693. lt_cv_prog_compiler_c_o_RC \
  26694. lt_cv_prog_compiler_c_o_CXX \
  26695. export_dynamic_flag_spec_RC \
  26696. export_dynamic_flag_spec_CXX \
  26697. whole_archive_flag_spec_RC \
  26698. whole_archive_flag_spec_CXX \
  26699. compiler_needs_object_RC \
  26700. compiler_needs_object_CXX \
  26701. with_gnu_ld_RC \
  26702. with_gnu_ld_CXX \
  26703. allow_undefined_flag_RC \
  26704. allow_undefined_flag_CXX \
  26705. no_undefined_flag_RC \
  26706. no_undefined_flag_CXX \
  26707. hardcode_libdir_flag_spec_RC \
  26708. hardcode_libdir_flag_spec_CXX \
  26709. hardcode_libdir_separator_RC \
  26710. hardcode_libdir_separator_CXX \
  26711. exclude_expsyms_RC \
  26712. exclude_expsyms_CXX \
  26713. include_expsyms_RC \
  26714. include_expsyms_CXX \
  26715. file_list_spec_RC \
  26716. file_list_spec_CXX \
  26717. compiler_lib_search_dirs_RC \
  26718. compiler_lib_search_dirs_CXX \
  26719. predep_objects_RC \
  26720. predep_objects_CXX \
  26721. postdep_objects_RC \
  26722. postdep_objects_CXX \
  26723. predeps_RC \
  26724. predeps_CXX \
  26725. postdeps_RC \
  26726. postdeps_CXX \
  26727. compiler_lib_search_path_RC \
  26728. compiler_lib_search_path_CXX; do
  26729. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26730. *[\\\\\\\`\\"\\\$]*)
  26731. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26732. ;;
  26733. *)
  26734. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26735. ;;
  26736. esac
  26737. done
  26738. # Double-quote double-evaled strings.
  26739. for var in reload_cmds \
  26740. old_postinstall_cmds \
  26741. old_postuninstall_cmds \
  26742. old_archive_cmds \
  26743. extract_expsyms_cmds \
  26744. old_archive_from_new_cmds \
  26745. old_archive_from_expsyms_cmds \
  26746. archive_cmds \
  26747. archive_expsym_cmds \
  26748. module_cmds \
  26749. module_expsym_cmds \
  26750. export_symbols_cmds \
  26751. prelink_cmds \
  26752. postlink_cmds \
  26753. postinstall_cmds \
  26754. postuninstall_cmds \
  26755. finish_cmds \
  26756. sys_lib_search_path_spec \
  26757. configure_time_dlsearch_path \
  26758. configure_time_lt_sys_library_path \
  26759. reload_cmds_RC \
  26760. reload_cmds_CXX \
  26761. old_archive_cmds_RC \
  26762. old_archive_cmds_CXX \
  26763. old_archive_from_new_cmds_RC \
  26764. old_archive_from_new_cmds_CXX \
  26765. old_archive_from_expsyms_cmds_RC \
  26766. old_archive_from_expsyms_cmds_CXX \
  26767. archive_cmds_RC \
  26768. archive_cmds_CXX \
  26769. archive_expsym_cmds_RC \
  26770. archive_expsym_cmds_CXX \
  26771. module_cmds_RC \
  26772. module_cmds_CXX \
  26773. module_expsym_cmds_RC \
  26774. module_expsym_cmds_CXX \
  26775. export_symbols_cmds_RC \
  26776. export_symbols_cmds_CXX \
  26777. prelink_cmds_RC \
  26778. prelink_cmds_CXX \
  26779. postlink_cmds_RC \
  26780. postlink_cmds_CXX; do
  26781. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26782. *[\\\\\\\`\\"\\\$]*)
  26783. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26784. ;;
  26785. *)
  26786. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26787. ;;
  26788. esac
  26789. done
  26790. ac_aux_dir='$ac_aux_dir'
  26791. # See if we are running on zsh, and set the options that allow our
  26792. # commands through without removal of \ escapes INIT.
  26793. if test -n "\${ZSH_VERSION+set}"; then
  26794. setopt NO_GLOB_SUBST
  26795. fi
  26796. PACKAGE='$PACKAGE'
  26797. VERSION='$VERSION'
  26798. RM='$RM'
  26799. ofile='$ofile'
  26800. SUMMARY="$SUMMARY"
  26801. _ACEOF
  26802. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26803. # Handling of arguments.
  26804. for ac_config_target in $ac_config_targets
  26805. do
  26806. case $ac_config_target in
  26807. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26808. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26809. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26810. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26811. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26812. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26813. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26814. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26815. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26816. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26817. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26818. esac
  26819. done
  26820. # If the user did not use the arguments to specify the items to instantiate,
  26821. # then the envvar interface is used. Set only those that are not.
  26822. # We use the long form for the default assignment because of an extremely
  26823. # bizarre bug on SunOS 4.1.3.
  26824. if $ac_need_defaults; then
  26825. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26826. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26827. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26828. fi
  26829. # Have a temporary directory for convenience. Make it in the build tree
  26830. # simply because there is no reason against having it here, and in addition,
  26831. # creating and moving files from /tmp can sometimes cause problems.
  26832. # Hook for its removal unless debugging.
  26833. # Note that there is a small window in which the directory will not be cleaned:
  26834. # after its creation but before its name has been assigned to `$tmp'.
  26835. $debug ||
  26836. {
  26837. tmp= ac_tmp=
  26838. trap 'exit_status=$?
  26839. : "${ac_tmp:=$tmp}"
  26840. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26841. ' 0
  26842. trap 'as_fn_exit 1' 1 2 13 15
  26843. }
  26844. # Create a (secure) tmp directory for tmp files.
  26845. {
  26846. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26847. test -d "$tmp"
  26848. } ||
  26849. {
  26850. tmp=./conf$$-$RANDOM
  26851. (umask 077 && mkdir "$tmp")
  26852. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26853. ac_tmp=$tmp
  26854. # Set up the scripts for CONFIG_FILES section.
  26855. # No need to generate them if there are no CONFIG_FILES.
  26856. # This happens for instance with `./config.status config.h'.
  26857. if test -n "$CONFIG_FILES"; then
  26858. ac_cr=`echo X | tr X '\015'`
  26859. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26860. # But we know of no other shell where ac_cr would be empty at this
  26861. # point, so we can use a bashism as a fallback.
  26862. if test "x$ac_cr" = x; then
  26863. eval ac_cr=\$\'\\r\'
  26864. fi
  26865. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26866. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26867. ac_cs_awk_cr='\\r'
  26868. else
  26869. ac_cs_awk_cr=$ac_cr
  26870. fi
  26871. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26872. _ACEOF
  26873. {
  26874. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26875. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26876. echo "_ACEOF"
  26877. } >conf$$subs.sh ||
  26878. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26879. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26880. ac_delim='%!_!# '
  26881. for ac_last_try in false false false false false :; do
  26882. . ./conf$$subs.sh ||
  26883. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26884. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26885. if test $ac_delim_n = $ac_delim_num; then
  26886. break
  26887. elif $ac_last_try; then
  26888. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26889. else
  26890. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26891. fi
  26892. done
  26893. rm -f conf$$subs.sh
  26894. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26895. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26896. _ACEOF
  26897. sed -n '
  26898. h
  26899. s/^/S["/; s/!.*/"]=/
  26900. p
  26901. g
  26902. s/^[^!]*!//
  26903. :repl
  26904. t repl
  26905. s/'"$ac_delim"'$//
  26906. t delim
  26907. :nl
  26908. h
  26909. s/\(.\{148\}\)..*/\1/
  26910. t more1
  26911. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26912. p
  26913. n
  26914. b repl
  26915. :more1
  26916. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26917. p
  26918. g
  26919. s/.\{148\}//
  26920. t nl
  26921. :delim
  26922. h
  26923. s/\(.\{148\}\)..*/\1/
  26924. t more2
  26925. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26926. p
  26927. b
  26928. :more2
  26929. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26930. p
  26931. g
  26932. s/.\{148\}//
  26933. t delim
  26934. ' <conf$$subs.awk | sed '
  26935. /^[^""]/{
  26936. N
  26937. s/\n//
  26938. }
  26939. ' >>$CONFIG_STATUS || ac_write_fail=1
  26940. rm -f conf$$subs.awk
  26941. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26942. _ACAWK
  26943. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26944. for (key in S) S_is_set[key] = 1
  26945. FS = ""
  26946. }
  26947. {
  26948. line = $ 0
  26949. nfields = split(line, field, "@")
  26950. substed = 0
  26951. len = length(field[1])
  26952. for (i = 2; i < nfields; i++) {
  26953. key = field[i]
  26954. keylen = length(key)
  26955. if (S_is_set[key]) {
  26956. value = S[key]
  26957. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26958. len += length(value) + length(field[++i])
  26959. substed = 1
  26960. } else
  26961. len += 1 + keylen
  26962. }
  26963. print line
  26964. }
  26965. _ACAWK
  26966. _ACEOF
  26967. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26968. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26969. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26970. else
  26971. cat
  26972. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26973. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26974. _ACEOF
  26975. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26976. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26977. # trailing colons and then remove the whole line if VPATH becomes empty
  26978. # (actually we leave an empty line to preserve line numbers).
  26979. if test "x$srcdir" = x.; then
  26980. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26981. h
  26982. s///
  26983. s/^/:/
  26984. s/[ ]*$/:/
  26985. s/:\$(srcdir):/:/g
  26986. s/:\${srcdir}:/:/g
  26987. s/:@srcdir@:/:/g
  26988. s/^:*//
  26989. s/:*$//
  26990. x
  26991. s/\(=[ ]*\).*/\1/
  26992. G
  26993. s/\n//
  26994. s/^[^=]*=[ ]*$//
  26995. }'
  26996. fi
  26997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26998. fi # test -n "$CONFIG_FILES"
  26999. # Set up the scripts for CONFIG_HEADERS section.
  27000. # No need to generate them if there are no CONFIG_HEADERS.
  27001. # This happens for instance with `./config.status Makefile'.
  27002. if test -n "$CONFIG_HEADERS"; then
  27003. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27004. BEGIN {
  27005. _ACEOF
  27006. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27007. # here-document in config.status, that substitutes the proper values into
  27008. # config.h.in to produce config.h.
  27009. # Create a delimiter string that does not exist in confdefs.h, to ease
  27010. # handling of long lines.
  27011. ac_delim='%!_!# '
  27012. for ac_last_try in false false :; do
  27013. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27014. if test -z "$ac_tt"; then
  27015. break
  27016. elif $ac_last_try; then
  27017. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27018. else
  27019. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27020. fi
  27021. done
  27022. # For the awk script, D is an array of macro values keyed by name,
  27023. # likewise P contains macro parameters if any. Preserve backslash
  27024. # newline sequences.
  27025. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27026. sed -n '
  27027. s/.\{148\}/&'"$ac_delim"'/g
  27028. t rset
  27029. :rset
  27030. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27031. t def
  27032. d
  27033. :def
  27034. s/\\$//
  27035. t bsnl
  27036. s/["\\]/\\&/g
  27037. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27038. D["\1"]=" \3"/p
  27039. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27040. d
  27041. :bsnl
  27042. s/["\\]/\\&/g
  27043. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27044. D["\1"]=" \3\\\\\\n"\\/p
  27045. t cont
  27046. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27047. t cont
  27048. d
  27049. :cont
  27050. n
  27051. s/.\{148\}/&'"$ac_delim"'/g
  27052. t clear
  27053. :clear
  27054. s/\\$//
  27055. t bsnlc
  27056. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27057. d
  27058. :bsnlc
  27059. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27060. b cont
  27061. ' <confdefs.h | sed '
  27062. s/'"$ac_delim"'/"\\\
  27063. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27065. for (key in D) D_is_set[key] = 1
  27066. FS = ""
  27067. }
  27068. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27069. line = \$ 0
  27070. split(line, arg, " ")
  27071. if (arg[1] == "#") {
  27072. defundef = arg[2]
  27073. mac1 = arg[3]
  27074. } else {
  27075. defundef = substr(arg[1], 2)
  27076. mac1 = arg[2]
  27077. }
  27078. split(mac1, mac2, "(") #)
  27079. macro = mac2[1]
  27080. prefix = substr(line, 1, index(line, defundef) - 1)
  27081. if (D_is_set[macro]) {
  27082. # Preserve the white space surrounding the "#".
  27083. print prefix "define", macro P[macro] D[macro]
  27084. next
  27085. } else {
  27086. # Replace #undef with comments. This is necessary, for example,
  27087. # in the case of _POSIX_SOURCE, which is predefined and required
  27088. # on some systems where configure will not decide to define it.
  27089. if (defundef == "undef") {
  27090. print "/*", prefix defundef, macro, "*/"
  27091. next
  27092. }
  27093. }
  27094. }
  27095. { print }
  27096. _ACAWK
  27097. _ACEOF
  27098. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27099. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27100. fi # test -n "$CONFIG_HEADERS"
  27101. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27102. shift
  27103. for ac_tag
  27104. do
  27105. case $ac_tag in
  27106. :[FHLC]) ac_mode=$ac_tag; continue;;
  27107. esac
  27108. case $ac_mode$ac_tag in
  27109. :[FHL]*:*);;
  27110. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27111. :[FH]-) ac_tag=-:-;;
  27112. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27113. esac
  27114. ac_save_IFS=$IFS
  27115. IFS=:
  27116. set x $ac_tag
  27117. IFS=$ac_save_IFS
  27118. shift
  27119. ac_file=$1
  27120. shift
  27121. case $ac_mode in
  27122. :L) ac_source=$1;;
  27123. :[FH])
  27124. ac_file_inputs=
  27125. for ac_f
  27126. do
  27127. case $ac_f in
  27128. -) ac_f="$ac_tmp/stdin";;
  27129. *) # Look for the file first in the build tree, then in the source tree
  27130. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27131. # because $ac_f cannot contain `:'.
  27132. test -f "$ac_f" ||
  27133. case $ac_f in
  27134. [\\/$]*) false;;
  27135. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27136. esac ||
  27137. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27138. esac
  27139. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27140. as_fn_append ac_file_inputs " '$ac_f'"
  27141. done
  27142. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27143. # use $as_me), people would be surprised to read:
  27144. # /* config.h. Generated by config.status. */
  27145. configure_input='Generated from '`
  27146. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27147. `' by configure.'
  27148. if test x"$ac_file" != x-; then
  27149. configure_input="$ac_file. $configure_input"
  27150. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27151. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27152. fi
  27153. # Neutralize special characters interpreted by sed in replacement strings.
  27154. case $configure_input in #(
  27155. *\&* | *\|* | *\\* )
  27156. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27157. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27158. *) ac_sed_conf_input=$configure_input;;
  27159. esac
  27160. case $ac_tag in
  27161. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27162. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27163. esac
  27164. ;;
  27165. esac
  27166. ac_dir=`$as_dirname -- "$ac_file" ||
  27167. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27168. X"$ac_file" : 'X\(//\)[^/]' \| \
  27169. X"$ac_file" : 'X\(//\)$' \| \
  27170. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27171. printf "%s\n" X"$ac_file" |
  27172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27173. s//\1/
  27174. q
  27175. }
  27176. /^X\(\/\/\)[^/].*/{
  27177. s//\1/
  27178. q
  27179. }
  27180. /^X\(\/\/\)$/{
  27181. s//\1/
  27182. q
  27183. }
  27184. /^X\(\/\).*/{
  27185. s//\1/
  27186. q
  27187. }
  27188. s/.*/./; q'`
  27189. as_dir="$ac_dir"; as_fn_mkdir_p
  27190. ac_builddir=.
  27191. case "$ac_dir" in
  27192. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27193. *)
  27194. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27195. # A ".." for each directory in $ac_dir_suffix.
  27196. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27197. case $ac_top_builddir_sub in
  27198. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27199. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27200. esac ;;
  27201. esac
  27202. ac_abs_top_builddir=$ac_pwd
  27203. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27204. # for backward compatibility:
  27205. ac_top_builddir=$ac_top_build_prefix
  27206. case $srcdir in
  27207. .) # We are building in place.
  27208. ac_srcdir=.
  27209. ac_top_srcdir=$ac_top_builddir_sub
  27210. ac_abs_top_srcdir=$ac_pwd ;;
  27211. [\\/]* | ?:[\\/]* ) # Absolute name.
  27212. ac_srcdir=$srcdir$ac_dir_suffix;
  27213. ac_top_srcdir=$srcdir
  27214. ac_abs_top_srcdir=$srcdir ;;
  27215. *) # Relative name.
  27216. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27217. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27218. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27219. esac
  27220. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27221. case $ac_mode in
  27222. :F)
  27223. #
  27224. # CONFIG_FILE
  27225. #
  27226. case $INSTALL in
  27227. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27228. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27229. esac
  27230. _ACEOF
  27231. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27232. # If the template does not know about datarootdir, expand it.
  27233. # FIXME: This hack should be removed a few years after 2.60.
  27234. ac_datarootdir_hack=; ac_datarootdir_seen=
  27235. ac_sed_dataroot='
  27236. /datarootdir/ {
  27237. p
  27238. q
  27239. }
  27240. /@datadir@/p
  27241. /@docdir@/p
  27242. /@infodir@/p
  27243. /@localedir@/p
  27244. /@mandir@/p'
  27245. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27246. *datarootdir*) ac_datarootdir_seen=yes;;
  27247. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27249. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27250. _ACEOF
  27251. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27252. ac_datarootdir_hack='
  27253. s&@datadir@&$datadir&g
  27254. s&@docdir@&$docdir&g
  27255. s&@infodir@&$infodir&g
  27256. s&@localedir@&$localedir&g
  27257. s&@mandir@&$mandir&g
  27258. s&\\\${datarootdir}&$datarootdir&g' ;;
  27259. esac
  27260. _ACEOF
  27261. # Neutralize VPATH when `$srcdir' = `.'.
  27262. # Shell code in configure.ac might set extrasub.
  27263. # FIXME: do we really want to maintain this feature?
  27264. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27265. ac_sed_extra="$ac_vpsub
  27266. $extrasub
  27267. _ACEOF
  27268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27269. :t
  27270. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27271. s|@configure_input@|$ac_sed_conf_input|;t t
  27272. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27273. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27274. s&@srcdir@&$ac_srcdir&;t t
  27275. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27276. s&@top_srcdir@&$ac_top_srcdir&;t t
  27277. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27278. s&@builddir@&$ac_builddir&;t t
  27279. s&@abs_builddir@&$ac_abs_builddir&;t t
  27280. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27281. s&@INSTALL@&$ac_INSTALL&;t t
  27282. $ac_datarootdir_hack
  27283. "
  27284. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27285. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27286. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27287. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27288. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27289. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27291. which seems to be undefined. Please make sure it is defined" >&5
  27292. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27293. which seems to be undefined. Please make sure it is defined" >&2;}
  27294. rm -f "$ac_tmp/stdin"
  27295. case $ac_file in
  27296. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27297. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27298. esac \
  27299. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27300. ;;
  27301. :H)
  27302. #
  27303. # CONFIG_HEADER
  27304. #
  27305. if test x"$ac_file" != x-; then
  27306. {
  27307. printf "%s\n" "/* $configure_input */" >&1 \
  27308. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27309. } >"$ac_tmp/config.h" \
  27310. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27311. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27313. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27314. else
  27315. rm -f "$ac_file"
  27316. mv "$ac_tmp/config.h" "$ac_file" \
  27317. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27318. fi
  27319. else
  27320. printf "%s\n" "/* $configure_input */" >&1 \
  27321. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27322. || as_fn_error $? "could not create -" "$LINENO" 5
  27323. fi
  27324. ;;
  27325. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27326. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27327. ;;
  27328. esac
  27329. case $ac_file$ac_mode in
  27330. "libtool":C)
  27331. # See if we are running on zsh, and set the options that allow our
  27332. # commands through without removal of \ escapes.
  27333. if test -n "${ZSH_VERSION+set}"; then
  27334. setopt NO_GLOB_SUBST
  27335. fi
  27336. cfgfile=${ofile}T
  27337. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27338. $RM "$cfgfile"
  27339. cat <<_LT_EOF >> "$cfgfile"
  27340. #! $SHELL
  27341. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27342. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27343. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27344. # Provide generalized library-building support services.
  27345. # Written by Gordon Matzigkeit, 1996
  27346. # Copyright (C) 2014 Free Software Foundation, Inc.
  27347. # This is free software; see the source for copying conditions. There is NO
  27348. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27349. # GNU Libtool is free software; you can redistribute it and/or modify
  27350. # it under the terms of the GNU General Public License as published by
  27351. # the Free Software Foundation; either version 2 of of the License, or
  27352. # (at your option) any later version.
  27353. #
  27354. # As a special exception to the GNU General Public License, if you
  27355. # distribute this file as part of a program or library that is built
  27356. # using GNU Libtool, you may include this file under the same
  27357. # distribution terms that you use for the rest of that program.
  27358. #
  27359. # GNU Libtool is distributed in the hope that it will be useful, but
  27360. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27361. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27362. # GNU General Public License for more details.
  27363. #
  27364. # You should have received a copy of the GNU General Public License
  27365. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27366. # The names of the tagged configurations supported by this script.
  27367. available_tags='RC CXX '
  27368. # Configured defaults for sys_lib_dlsearch_path munging.
  27369. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27370. # ### BEGIN LIBTOOL CONFIG
  27371. # Which release of libtool.m4 was used?
  27372. macro_version=$macro_version
  27373. macro_revision=$macro_revision
  27374. # Assembler program.
  27375. AS=$lt_AS
  27376. # DLL creation program.
  27377. DLLTOOL=$lt_DLLTOOL
  27378. # Object dumper program.
  27379. OBJDUMP=$lt_OBJDUMP
  27380. # Whether or not to build shared libraries.
  27381. build_libtool_libs=$enable_shared
  27382. # Whether or not to build static libraries.
  27383. build_old_libs=$enable_static
  27384. # What type of objects to build.
  27385. pic_mode=$pic_mode
  27386. # Whether or not to optimize for fast installation.
  27387. fast_install=$enable_fast_install
  27388. # Shared archive member basename,for filename based shared library versioning on AIX.
  27389. shared_archive_member_spec=$shared_archive_member_spec
  27390. # Shell to use when invoking shell scripts.
  27391. SHELL=$lt_SHELL
  27392. # An echo program that protects backslashes.
  27393. ECHO=$lt_ECHO
  27394. # The PATH separator for the build system.
  27395. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27396. # The host system.
  27397. host_alias=$host_alias
  27398. host=$host
  27399. host_os=$host_os
  27400. # The build system.
  27401. build_alias=$build_alias
  27402. build=$build
  27403. build_os=$build_os
  27404. # A sed program that does not truncate output.
  27405. SED=$lt_SED
  27406. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27407. Xsed="\$SED -e 1s/^X//"
  27408. # A grep program that handles long lines.
  27409. GREP=$lt_GREP
  27410. # An ERE matcher.
  27411. EGREP=$lt_EGREP
  27412. # A literal string matcher.
  27413. FGREP=$lt_FGREP
  27414. # A BSD- or MS-compatible name lister.
  27415. NM=$lt_NM
  27416. # Whether we need soft or hard links.
  27417. LN_S=$lt_LN_S
  27418. # What is the maximum length of a command?
  27419. max_cmd_len=$max_cmd_len
  27420. # Object file suffix (normally "o").
  27421. objext=$ac_objext
  27422. # Executable file suffix (normally "").
  27423. exeext=$exeext
  27424. # whether the shell understands "unset".
  27425. lt_unset=$lt_unset
  27426. # turn spaces into newlines.
  27427. SP2NL=$lt_lt_SP2NL
  27428. # turn newlines into spaces.
  27429. NL2SP=$lt_lt_NL2SP
  27430. # convert \$build file names to \$host format.
  27431. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27432. # convert \$build files to toolchain format.
  27433. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27434. # Method to check whether dependent libraries are shared objects.
  27435. deplibs_check_method=$lt_deplibs_check_method
  27436. # Command to use when deplibs_check_method = "file_magic".
  27437. file_magic_cmd=$lt_file_magic_cmd
  27438. # How to find potential files when deplibs_check_method = "file_magic".
  27439. file_magic_glob=$lt_file_magic_glob
  27440. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27441. want_nocaseglob=$lt_want_nocaseglob
  27442. # Command to associate shared and link libraries.
  27443. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27444. # The archiver.
  27445. AR=$lt_AR
  27446. # Flags to create an archive.
  27447. AR_FLAGS=$lt_AR_FLAGS
  27448. # How to feed a file listing to the archiver.
  27449. archiver_list_spec=$lt_archiver_list_spec
  27450. # A symbol stripping program.
  27451. STRIP=$lt_STRIP
  27452. # Commands used to install an old-style archive.
  27453. RANLIB=$lt_RANLIB
  27454. old_postinstall_cmds=$lt_old_postinstall_cmds
  27455. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27456. # Whether to use a lock for old archive extraction.
  27457. lock_old_archive_extraction=$lock_old_archive_extraction
  27458. # A C compiler.
  27459. LTCC=$lt_CC
  27460. # LTCC compiler flags.
  27461. LTCFLAGS=$lt_CFLAGS
  27462. # Take the output of nm and produce a listing of raw symbols and C names.
  27463. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27464. # Transform the output of nm in a proper C declaration.
  27465. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27466. # Transform the output of nm into a list of symbols to manually relocate.
  27467. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27468. # Transform the output of nm in a C name address pair.
  27469. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27470. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27471. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27472. # The name lister interface.
  27473. nm_interface=$lt_lt_cv_nm_interface
  27474. # Specify filename containing input files for \$NM.
  27475. nm_file_list_spec=$lt_nm_file_list_spec
  27476. # The root where to search for dependent libraries,and where our libraries should be installed.
  27477. lt_sysroot=$lt_sysroot
  27478. # Command to truncate a binary pipe.
  27479. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27480. # The name of the directory that contains temporary libtool files.
  27481. objdir=$objdir
  27482. # Used to examine libraries when file_magic_cmd begins with "file".
  27483. MAGIC_CMD=$MAGIC_CMD
  27484. # Must we lock files when doing compilation?
  27485. need_locks=$lt_need_locks
  27486. # Manifest tool.
  27487. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27488. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27489. DSYMUTIL=$lt_DSYMUTIL
  27490. # Tool to change global to local symbols on Mac OS X.
  27491. NMEDIT=$lt_NMEDIT
  27492. # Tool to manipulate fat objects and archives on Mac OS X.
  27493. LIPO=$lt_LIPO
  27494. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27495. OTOOL=$lt_OTOOL
  27496. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27497. OTOOL64=$lt_OTOOL64
  27498. # Old archive suffix (normally "a").
  27499. libext=$libext
  27500. # Shared library suffix (normally ".so").
  27501. shrext_cmds=$lt_shrext_cmds
  27502. # The commands to extract the exported symbol list from a shared archive.
  27503. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27504. # Variables whose values should be saved in libtool wrapper scripts and
  27505. # restored at link time.
  27506. variables_saved_for_relink=$lt_variables_saved_for_relink
  27507. # Do we need the "lib" prefix for modules?
  27508. need_lib_prefix=$need_lib_prefix
  27509. # Do we need a version for libraries?
  27510. need_version=$need_version
  27511. # Library versioning type.
  27512. version_type=$version_type
  27513. # Shared library runtime path variable.
  27514. runpath_var=$runpath_var
  27515. # Shared library path variable.
  27516. shlibpath_var=$shlibpath_var
  27517. # Is shlibpath searched before the hard-coded library search path?
  27518. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27519. # Format of library name prefix.
  27520. libname_spec=$lt_libname_spec
  27521. # List of archive names. First name is the real one, the rest are links.
  27522. # The last name is the one that the linker finds with -lNAME
  27523. library_names_spec=$lt_library_names_spec
  27524. # The coded name of the library, if different from the real name.
  27525. soname_spec=$lt_soname_spec
  27526. # Permission mode override for installation of shared libraries.
  27527. install_override_mode=$lt_install_override_mode
  27528. # Command to use after installation of a shared archive.
  27529. postinstall_cmds=$lt_postinstall_cmds
  27530. # Command to use after uninstallation of a shared archive.
  27531. postuninstall_cmds=$lt_postuninstall_cmds
  27532. # Commands used to finish a libtool library installation in a directory.
  27533. finish_cmds=$lt_finish_cmds
  27534. # As "finish_cmds", except a single script fragment to be evaled but
  27535. # not shown.
  27536. finish_eval=$lt_finish_eval
  27537. # Whether we should hardcode library paths into libraries.
  27538. hardcode_into_libs=$hardcode_into_libs
  27539. # Compile-time system search path for libraries.
  27540. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27541. # Detected run-time system search path for libraries.
  27542. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27543. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27544. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27545. # Whether dlopen is supported.
  27546. dlopen_support=$enable_dlopen
  27547. # Whether dlopen of programs is supported.
  27548. dlopen_self=$enable_dlopen_self
  27549. # Whether dlopen of statically linked programs is supported.
  27550. dlopen_self_static=$enable_dlopen_self_static
  27551. # Commands to strip libraries.
  27552. old_striplib=$lt_old_striplib
  27553. striplib=$lt_striplib
  27554. # The linker used to build libraries.
  27555. LD=$lt_LD
  27556. # How to create reloadable object files.
  27557. reload_flag=$lt_reload_flag
  27558. reload_cmds=$lt_reload_cmds
  27559. # Commands used to build an old-style archive.
  27560. old_archive_cmds=$lt_old_archive_cmds
  27561. # A language specific compiler.
  27562. CC=$lt_compiler
  27563. # Is the compiler the GNU compiler?
  27564. with_gcc=$GCC
  27565. # Compiler flag to turn off builtin functions.
  27566. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27567. # Additional compiler flags for building library objects.
  27568. pic_flag=$lt_lt_prog_compiler_pic
  27569. # How to pass a linker flag through the compiler.
  27570. wl=$lt_lt_prog_compiler_wl
  27571. # Compiler flag to prevent dynamic linking.
  27572. link_static_flag=$lt_lt_prog_compiler_static
  27573. # Does compiler simultaneously support -c and -o options?
  27574. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27575. # Whether or not to add -lc for building shared libraries.
  27576. build_libtool_need_lc=$archive_cmds_need_lc
  27577. # Whether or not to disallow shared libs when runtime libs are static.
  27578. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27579. # Compiler flag to allow reflexive dlopens.
  27580. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27581. # Compiler flag to generate shared objects directly from archives.
  27582. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27583. # Whether the compiler copes with passing no objects directly.
  27584. compiler_needs_object=$lt_compiler_needs_object
  27585. # Create an old-style archive from a shared archive.
  27586. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27587. # Create a temporary old-style archive to link instead of a shared archive.
  27588. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27589. # Commands used to build a shared archive.
  27590. archive_cmds=$lt_archive_cmds
  27591. archive_expsym_cmds=$lt_archive_expsym_cmds
  27592. # Commands used to build a loadable module if different from building
  27593. # a shared archive.
  27594. module_cmds=$lt_module_cmds
  27595. module_expsym_cmds=$lt_module_expsym_cmds
  27596. # Whether we are building with GNU ld or not.
  27597. with_gnu_ld=$lt_with_gnu_ld
  27598. # Flag that allows shared libraries with undefined symbols to be built.
  27599. allow_undefined_flag=$lt_allow_undefined_flag
  27600. # Flag that enforces no undefined symbols.
  27601. no_undefined_flag=$lt_no_undefined_flag
  27602. # Flag to hardcode \$libdir into a binary during linking.
  27603. # This must work even if \$libdir does not exist
  27604. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27605. # Whether we need a single "-rpath" flag with a separated argument.
  27606. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27607. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27608. # DIR into the resulting binary.
  27609. hardcode_direct=$hardcode_direct
  27610. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27611. # DIR into the resulting binary and the resulting library dependency is
  27612. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27613. # library is relocated.
  27614. hardcode_direct_absolute=$hardcode_direct_absolute
  27615. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27616. # into the resulting binary.
  27617. hardcode_minus_L=$hardcode_minus_L
  27618. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27619. # into the resulting binary.
  27620. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27621. # Set to "yes" if building a shared library automatically hardcodes DIR
  27622. # into the library and all subsequent libraries and executables linked
  27623. # against it.
  27624. hardcode_automatic=$hardcode_automatic
  27625. # Set to yes if linker adds runtime paths of dependent libraries
  27626. # to runtime path list.
  27627. inherit_rpath=$inherit_rpath
  27628. # Whether libtool must link a program against all its dependency libraries.
  27629. link_all_deplibs=$link_all_deplibs
  27630. # Set to "yes" if exported symbols are required.
  27631. always_export_symbols=$always_export_symbols
  27632. # The commands to list exported symbols.
  27633. export_symbols_cmds=$lt_export_symbols_cmds
  27634. # Symbols that should not be listed in the preloaded symbols.
  27635. exclude_expsyms=$lt_exclude_expsyms
  27636. # Symbols that must always be exported.
  27637. include_expsyms=$lt_include_expsyms
  27638. # Commands necessary for linking programs (against libraries) with templates.
  27639. prelink_cmds=$lt_prelink_cmds
  27640. # Commands necessary for finishing linking programs.
  27641. postlink_cmds=$lt_postlink_cmds
  27642. # Specify filename containing input files.
  27643. file_list_spec=$lt_file_list_spec
  27644. # How to hardcode a shared library path into an executable.
  27645. hardcode_action=$hardcode_action
  27646. # The directories searched by this compiler when creating a shared library.
  27647. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27648. # Dependencies to place before and after the objects being linked to
  27649. # create a shared library.
  27650. predep_objects=$lt_predep_objects
  27651. postdep_objects=$lt_postdep_objects
  27652. predeps=$lt_predeps
  27653. postdeps=$lt_postdeps
  27654. # The library search path used internally by the compiler when linking
  27655. # a shared library.
  27656. compiler_lib_search_path=$lt_compiler_lib_search_path
  27657. # ### END LIBTOOL CONFIG
  27658. _LT_EOF
  27659. cat <<'_LT_EOF' >> "$cfgfile"
  27660. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27661. # func_munge_path_list VARIABLE PATH
  27662. # -----------------------------------
  27663. # VARIABLE is name of variable containing _space_ separated list of
  27664. # directories to be munged by the contents of PATH, which is string
  27665. # having a format:
  27666. # "DIR[:DIR]:"
  27667. # string "DIR[ DIR]" will be prepended to VARIABLE
  27668. # ":DIR[:DIR]"
  27669. # string "DIR[ DIR]" will be appended to VARIABLE
  27670. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27671. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27672. # "DIRA[ DIRA]" will be appended to VARIABLE
  27673. # "DIR[:DIR]"
  27674. # VARIABLE will be replaced by "DIR[ DIR]"
  27675. func_munge_path_list ()
  27676. {
  27677. case x$2 in
  27678. x)
  27679. ;;
  27680. *:)
  27681. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27682. ;;
  27683. x:*)
  27684. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27685. ;;
  27686. *::*)
  27687. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27688. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27689. ;;
  27690. *)
  27691. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27692. ;;
  27693. esac
  27694. }
  27695. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27696. func_cc_basename ()
  27697. {
  27698. for cc_temp in $*""; do
  27699. case $cc_temp in
  27700. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27701. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27702. \-*) ;;
  27703. *) break;;
  27704. esac
  27705. done
  27706. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27707. }
  27708. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27709. _LT_EOF
  27710. case $host_os in
  27711. aix3*)
  27712. cat <<\_LT_EOF >> "$cfgfile"
  27713. # AIX sometimes has problems with the GCC collect2 program. For some
  27714. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27715. # vanish in a puff of smoke.
  27716. if test set != "${COLLECT_NAMES+set}"; then
  27717. COLLECT_NAMES=
  27718. export COLLECT_NAMES
  27719. fi
  27720. _LT_EOF
  27721. ;;
  27722. esac
  27723. ltmain=$ac_aux_dir/ltmain.sh
  27724. # We use sed instead of cat because bash on DJGPP gets confused if
  27725. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27726. # text mode, it properly converts lines to CR/LF. This bash problem
  27727. # is reportedly fixed, but why not run on old versions too?
  27728. sed '$q' "$ltmain" >> "$cfgfile" \
  27729. || (rm -f "$cfgfile"; exit 1)
  27730. mv -f "$cfgfile" "$ofile" ||
  27731. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27732. chmod +x "$ofile"
  27733. cat <<_LT_EOF >> "$ofile"
  27734. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27735. # The linker used to build libraries.
  27736. LD=$lt_LD_RC
  27737. # How to create reloadable object files.
  27738. reload_flag=$lt_reload_flag_RC
  27739. reload_cmds=$lt_reload_cmds_RC
  27740. # Commands used to build an old-style archive.
  27741. old_archive_cmds=$lt_old_archive_cmds_RC
  27742. # A language specific compiler.
  27743. CC=$lt_compiler_RC
  27744. # Is the compiler the GNU compiler?
  27745. with_gcc=$GCC_RC
  27746. # Compiler flag to turn off builtin functions.
  27747. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27748. # Additional compiler flags for building library objects.
  27749. pic_flag=$lt_lt_prog_compiler_pic_RC
  27750. # How to pass a linker flag through the compiler.
  27751. wl=$lt_lt_prog_compiler_wl_RC
  27752. # Compiler flag to prevent dynamic linking.
  27753. link_static_flag=$lt_lt_prog_compiler_static_RC
  27754. # Does compiler simultaneously support -c and -o options?
  27755. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27756. # Whether or not to add -lc for building shared libraries.
  27757. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27758. # Whether or not to disallow shared libs when runtime libs are static.
  27759. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27760. # Compiler flag to allow reflexive dlopens.
  27761. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27762. # Compiler flag to generate shared objects directly from archives.
  27763. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27764. # Whether the compiler copes with passing no objects directly.
  27765. compiler_needs_object=$lt_compiler_needs_object_RC
  27766. # Create an old-style archive from a shared archive.
  27767. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27768. # Create a temporary old-style archive to link instead of a shared archive.
  27769. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27770. # Commands used to build a shared archive.
  27771. archive_cmds=$lt_archive_cmds_RC
  27772. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27773. # Commands used to build a loadable module if different from building
  27774. # a shared archive.
  27775. module_cmds=$lt_module_cmds_RC
  27776. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27777. # Whether we are building with GNU ld or not.
  27778. with_gnu_ld=$lt_with_gnu_ld_RC
  27779. # Flag that allows shared libraries with undefined symbols to be built.
  27780. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27781. # Flag that enforces no undefined symbols.
  27782. no_undefined_flag=$lt_no_undefined_flag_RC
  27783. # Flag to hardcode \$libdir into a binary during linking.
  27784. # This must work even if \$libdir does not exist
  27785. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27786. # Whether we need a single "-rpath" flag with a separated argument.
  27787. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27788. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27789. # DIR into the resulting binary.
  27790. hardcode_direct=$hardcode_direct_RC
  27791. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27792. # DIR into the resulting binary and the resulting library dependency is
  27793. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27794. # library is relocated.
  27795. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27796. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27797. # into the resulting binary.
  27798. hardcode_minus_L=$hardcode_minus_L_RC
  27799. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27800. # into the resulting binary.
  27801. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27802. # Set to "yes" if building a shared library automatically hardcodes DIR
  27803. # into the library and all subsequent libraries and executables linked
  27804. # against it.
  27805. hardcode_automatic=$hardcode_automatic_RC
  27806. # Set to yes if linker adds runtime paths of dependent libraries
  27807. # to runtime path list.
  27808. inherit_rpath=$inherit_rpath_RC
  27809. # Whether libtool must link a program against all its dependency libraries.
  27810. link_all_deplibs=$link_all_deplibs_RC
  27811. # Set to "yes" if exported symbols are required.
  27812. always_export_symbols=$always_export_symbols_RC
  27813. # The commands to list exported symbols.
  27814. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27815. # Symbols that should not be listed in the preloaded symbols.
  27816. exclude_expsyms=$lt_exclude_expsyms_RC
  27817. # Symbols that must always be exported.
  27818. include_expsyms=$lt_include_expsyms_RC
  27819. # Commands necessary for linking programs (against libraries) with templates.
  27820. prelink_cmds=$lt_prelink_cmds_RC
  27821. # Commands necessary for finishing linking programs.
  27822. postlink_cmds=$lt_postlink_cmds_RC
  27823. # Specify filename containing input files.
  27824. file_list_spec=$lt_file_list_spec_RC
  27825. # How to hardcode a shared library path into an executable.
  27826. hardcode_action=$hardcode_action_RC
  27827. # The directories searched by this compiler when creating a shared library.
  27828. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27829. # Dependencies to place before and after the objects being linked to
  27830. # create a shared library.
  27831. predep_objects=$lt_predep_objects_RC
  27832. postdep_objects=$lt_postdep_objects_RC
  27833. predeps=$lt_predeps_RC
  27834. postdeps=$lt_postdeps_RC
  27835. # The library search path used internally by the compiler when linking
  27836. # a shared library.
  27837. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27838. # ### END LIBTOOL TAG CONFIG: RC
  27839. _LT_EOF
  27840. cat <<_LT_EOF >> "$ofile"
  27841. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27842. # The linker used to build libraries.
  27843. LD=$lt_LD_CXX
  27844. # How to create reloadable object files.
  27845. reload_flag=$lt_reload_flag_CXX
  27846. reload_cmds=$lt_reload_cmds_CXX
  27847. # Commands used to build an old-style archive.
  27848. old_archive_cmds=$lt_old_archive_cmds_CXX
  27849. # A language specific compiler.
  27850. CC=$lt_compiler_CXX
  27851. # Is the compiler the GNU compiler?
  27852. with_gcc=$GCC_CXX
  27853. # Compiler flag to turn off builtin functions.
  27854. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27855. # Additional compiler flags for building library objects.
  27856. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27857. # How to pass a linker flag through the compiler.
  27858. wl=$lt_lt_prog_compiler_wl_CXX
  27859. # Compiler flag to prevent dynamic linking.
  27860. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27861. # Does compiler simultaneously support -c and -o options?
  27862. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27863. # Whether or not to add -lc for building shared libraries.
  27864. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27865. # Whether or not to disallow shared libs when runtime libs are static.
  27866. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27867. # Compiler flag to allow reflexive dlopens.
  27868. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27869. # Compiler flag to generate shared objects directly from archives.
  27870. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27871. # Whether the compiler copes with passing no objects directly.
  27872. compiler_needs_object=$lt_compiler_needs_object_CXX
  27873. # Create an old-style archive from a shared archive.
  27874. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27875. # Create a temporary old-style archive to link instead of a shared archive.
  27876. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27877. # Commands used to build a shared archive.
  27878. archive_cmds=$lt_archive_cmds_CXX
  27879. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27880. # Commands used to build a loadable module if different from building
  27881. # a shared archive.
  27882. module_cmds=$lt_module_cmds_CXX
  27883. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27884. # Whether we are building with GNU ld or not.
  27885. with_gnu_ld=$lt_with_gnu_ld_CXX
  27886. # Flag that allows shared libraries with undefined symbols to be built.
  27887. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27888. # Flag that enforces no undefined symbols.
  27889. no_undefined_flag=$lt_no_undefined_flag_CXX
  27890. # Flag to hardcode \$libdir into a binary during linking.
  27891. # This must work even if \$libdir does not exist
  27892. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27893. # Whether we need a single "-rpath" flag with a separated argument.
  27894. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27895. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27896. # DIR into the resulting binary.
  27897. hardcode_direct=$hardcode_direct_CXX
  27898. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27899. # DIR into the resulting binary and the resulting library dependency is
  27900. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27901. # library is relocated.
  27902. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27903. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27904. # into the resulting binary.
  27905. hardcode_minus_L=$hardcode_minus_L_CXX
  27906. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27907. # into the resulting binary.
  27908. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27909. # Set to "yes" if building a shared library automatically hardcodes DIR
  27910. # into the library and all subsequent libraries and executables linked
  27911. # against it.
  27912. hardcode_automatic=$hardcode_automatic_CXX
  27913. # Set to yes if linker adds runtime paths of dependent libraries
  27914. # to runtime path list.
  27915. inherit_rpath=$inherit_rpath_CXX
  27916. # Whether libtool must link a program against all its dependency libraries.
  27917. link_all_deplibs=$link_all_deplibs_CXX
  27918. # Set to "yes" if exported symbols are required.
  27919. always_export_symbols=$always_export_symbols_CXX
  27920. # The commands to list exported symbols.
  27921. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27922. # Symbols that should not be listed in the preloaded symbols.
  27923. exclude_expsyms=$lt_exclude_expsyms_CXX
  27924. # Symbols that must always be exported.
  27925. include_expsyms=$lt_include_expsyms_CXX
  27926. # Commands necessary for linking programs (against libraries) with templates.
  27927. prelink_cmds=$lt_prelink_cmds_CXX
  27928. # Commands necessary for finishing linking programs.
  27929. postlink_cmds=$lt_postlink_cmds_CXX
  27930. # Specify filename containing input files.
  27931. file_list_spec=$lt_file_list_spec_CXX
  27932. # How to hardcode a shared library path into an executable.
  27933. hardcode_action=$hardcode_action_CXX
  27934. # The directories searched by this compiler when creating a shared library.
  27935. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27936. # Dependencies to place before and after the objects being linked to
  27937. # create a shared library.
  27938. predep_objects=$lt_predep_objects_CXX
  27939. postdep_objects=$lt_postdep_objects_CXX
  27940. predeps=$lt_predeps_CXX
  27941. postdeps=$lt_postdeps_CXX
  27942. # The library search path used internally by the compiler when linking
  27943. # a shared library.
  27944. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27945. # ### END LIBTOOL TAG CONFIG: CXX
  27946. _LT_EOF
  27947. ;;
  27948. "sdl2_config":C) chmod a+x sdl2-config ;;
  27949. "summary":C) printf "$SUMMARY" ;;
  27950. esac
  27951. done # for ac_tag
  27952. as_fn_exit 0
  27953. _ACEOF
  27954. ac_clean_files=$ac_clean_files_save
  27955. test $ac_write_fail = 0 ||
  27956. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27957. # configure is writing to config.log, and then calls config.status.
  27958. # config.status does its own redirection, appending to config.log.
  27959. # Unfortunately, on DOS this fails, as config.log is still kept open
  27960. # by configure, so config.status won't be able to write to it; its
  27961. # output is simply discarded. So we exec the FD to /dev/null,
  27962. # effectively closing config.log, so it can be properly (re)opened and
  27963. # appended to by config.status. When coming back to configure, we
  27964. # need to make the FD available again.
  27965. if test "$no_create" != yes; then
  27966. ac_cs_success=:
  27967. ac_config_status_args=
  27968. test "$silent" = yes &&
  27969. ac_config_status_args="$ac_config_status_args --quiet"
  27970. exec 5>/dev/null
  27971. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27972. exec 5>>config.log
  27973. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27974. # would make configure fail if this is the last instruction.
  27975. $ac_cs_success || as_fn_exit 1
  27976. fi
  27977. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27979. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27980. fi