configure 954 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531
  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. if test x$enable_oss = xmaybe; then
  18224. enable_oss=yes
  18225. fi
  18226. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  18227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  18228. printf %s "checking for OSS audio support... " >&6; }
  18229. have_oss=no
  18230. if test x$have_oss != xyes; then
  18231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18232. /* end confdefs.h. */
  18233. #include <sys/soundcard.h>
  18234. int
  18235. main (void)
  18236. {
  18237. int arg = SNDCTL_DSP_SETFRAGMENT;
  18238. ;
  18239. return 0;
  18240. }
  18241. _ACEOF
  18242. if ac_fn_c_try_compile "$LINENO"
  18243. then :
  18244. have_oss=yes
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18247. fi
  18248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  18249. printf "%s\n" "$have_oss" >&6; }
  18250. if test x$have_oss = xyes; then
  18251. SUMMARY_audio="${SUMMARY_audio} oss"
  18252. printf "%s\n" "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  18253. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  18254. have_audio=yes
  18255. # We may need to link with ossaudio emulation library
  18256. case "$host" in
  18257. *-*-netbsd*)
  18258. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  18259. esac
  18260. fi
  18261. fi
  18262. }
  18263. CheckALSA()
  18264. {
  18265. # Check whether --enable-alsa was given.
  18266. if test ${enable_alsa+y}
  18267. then :
  18268. enableval=$enable_alsa;
  18269. else $as_nop
  18270. enable_alsa=yes
  18271. fi
  18272. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  18273. alsa_save_CFLAGS="$CFLAGS"
  18274. alsa_save_LDFLAGS="$LDFLAGS"
  18275. alsa_save_LIBS="$LIBS"
  18276. alsa_found=yes
  18277. # Check whether --with-alsa-prefix was given.
  18278. if test ${with_alsa_prefix+y}
  18279. then :
  18280. withval=$with_alsa_prefix; alsa_prefix="$withval"
  18281. else $as_nop
  18282. alsa_prefix=""
  18283. fi
  18284. # Check whether --with-alsa-inc-prefix was given.
  18285. if test ${with_alsa_inc_prefix+y}
  18286. then :
  18287. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  18288. else $as_nop
  18289. alsa_inc_prefix=""
  18290. fi
  18291. # Check whether --enable-alsatest was given.
  18292. if test ${enable_alsatest+y}
  18293. then :
  18294. enableval=$enable_alsatest; enable_alsatest="$enableval"
  18295. else $as_nop
  18296. enable_alsatest=yes
  18297. fi
  18298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  18299. printf %s "checking for ALSA CFLAGS... " >&6; }
  18300. if test "$alsa_inc_prefix" != "" ; then
  18301. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  18302. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  18303. fi
  18304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  18305. printf "%s\n" "$ALSA_CFLAGS" >&6; }
  18306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  18307. printf %s "checking for ALSA LDFLAGS... " >&6; }
  18308. if test "$alsa_prefix" != "" ; then
  18309. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  18310. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  18311. fi
  18312. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  18313. LIBS=`echo $LIBS | sed 's/-lm//'`
  18314. LIBS=`echo $LIBS | sed 's/-ldl//'`
  18315. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  18316. LIBS=`echo $LIBS | sed 's/ //'`
  18317. LIBS="$ALSA_LIBS $LIBS"
  18318. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  18319. printf "%s\n" "$ALSA_LIBS" >&6; }
  18320. min_alsa_version=1.0.11
  18321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  18322. printf %s "checking for libasound headers version >= $min_alsa_version... " >&6; }
  18323. no_alsa=""
  18324. alsa_min_major_version=`echo $min_alsa_version | \
  18325. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18326. alsa_min_minor_version=`echo $min_alsa_version | \
  18327. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18328. alsa_min_micro_version=`echo $min_alsa_version | \
  18329. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18330. ac_ext=c
  18331. ac_cpp='$CPP $CPPFLAGS'
  18332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18336. /* end confdefs.h. */
  18337. #include <alsa/asoundlib.h>
  18338. int
  18339. main (void)
  18340. {
  18341. /* ensure backward compatibility */
  18342. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  18343. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  18344. #endif
  18345. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  18346. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  18347. #endif
  18348. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  18349. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  18350. #endif
  18351. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  18352. exit(0);
  18353. # else
  18354. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  18355. # error not present
  18356. # endif
  18357. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  18358. exit(0);
  18359. # else
  18360. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  18361. # error not present
  18362. # endif
  18363. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  18364. # error not present
  18365. # endif
  18366. # endif
  18367. # endif
  18368. exit(0);
  18369. ;
  18370. return 0;
  18371. }
  18372. _ACEOF
  18373. if ac_fn_c_try_compile "$LINENO"
  18374. then :
  18375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found." >&5
  18376. printf "%s\n" "found." >&6; }
  18377. else $as_nop
  18378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  18379. printf "%s\n" "not present." >&6; }
  18380. alsa_found=no
  18381. fi
  18382. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18383. ac_ext=c
  18384. ac_cpp='$CPP $CPPFLAGS'
  18385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18386. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18388. if test "x$enable_alsatest" = "xyes"; then
  18389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  18390. printf %s "checking for snd_ctl_open in -lasound... " >&6; }
  18391. if test ${ac_cv_lib_asound_snd_ctl_open+y}
  18392. then :
  18393. printf %s "(cached) " >&6
  18394. else $as_nop
  18395. ac_check_lib_save_LIBS=$LIBS
  18396. LIBS="-lasound $LIBS"
  18397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18398. /* end confdefs.h. */
  18399. /* Override any GCC internal prototype to avoid an error.
  18400. Use char because int might match the return type of a GCC
  18401. builtin and then its argument prototype would still apply. */
  18402. char snd_ctl_open ();
  18403. int
  18404. main (void)
  18405. {
  18406. return snd_ctl_open ();
  18407. ;
  18408. return 0;
  18409. }
  18410. _ACEOF
  18411. if ac_fn_c_try_link "$LINENO"
  18412. then :
  18413. ac_cv_lib_asound_snd_ctl_open=yes
  18414. else $as_nop
  18415. ac_cv_lib_asound_snd_ctl_open=no
  18416. fi
  18417. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18418. conftest$ac_exeext conftest.$ac_ext
  18419. LIBS=$ac_check_lib_save_LIBS
  18420. fi
  18421. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  18422. printf "%s\n" "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  18423. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes
  18424. then :
  18425. printf "%s\n" "#define HAVE_LIBASOUND 1" >>confdefs.h
  18426. LIBS="-lasound $LIBS"
  18427. else $as_nop
  18428. alsa_found=no
  18429. fi
  18430. fi
  18431. if test "x$alsa_found" = "xyes" ; then
  18432. have_alsa=yes
  18433. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  18434. LIBS=`echo $LIBS | sed 's/ //'`
  18435. LIBS="-lasound $LIBS"
  18436. fi
  18437. if test "x$alsa_found" = "xno" ; then
  18438. have_alsa=no
  18439. CFLAGS="$alsa_save_CFLAGS"
  18440. LDFLAGS="$alsa_save_LDFLAGS"
  18441. LIBS="$alsa_save_LIBS"
  18442. ALSA_CFLAGS=""
  18443. ALSA_LIBS=""
  18444. fi
  18445. # Restore all flags from before the ALSA detection runs
  18446. CFLAGS="$alsa_save_CFLAGS"
  18447. LDFLAGS="$alsa_save_LDFLAGS"
  18448. LIBS="$alsa_save_LIBS"
  18449. if test x$have_alsa = xyes; then
  18450. # Check whether --enable-alsa-shared was given.
  18451. if test ${enable_alsa_shared+y}
  18452. then :
  18453. enableval=$enable_alsa_shared;
  18454. else $as_nop
  18455. enable_alsa_shared=yes
  18456. fi
  18457. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18458. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  18459. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  18460. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  18461. if test x$have_loadso != xyes && \
  18462. test x$enable_alsa_shared = xyes; then
  18463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  18464. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  18465. fi
  18466. if test x$have_loadso = xyes && \
  18467. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  18468. echo "-- dynamic libasound -> $alsa_lib"
  18469. printf "%s\n" "#define SDL_AUDIO_DRIVER_ALSA_DYNAMIC \"$alsa_lib\"" >>confdefs.h
  18470. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  18471. else
  18472. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  18473. SUMMARY_audio="${SUMMARY_audio} alsa"
  18474. fi
  18475. have_audio=yes
  18476. fi
  18477. fi
  18478. }
  18479. CheckJACK()
  18480. {
  18481. # Check whether --enable-jack was given.
  18482. if test ${enable_jack+y}
  18483. then :
  18484. enableval=$enable_jack;
  18485. else $as_nop
  18486. enable_jack=yes
  18487. fi
  18488. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  18489. pkg_failed=no
  18490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack >= 0.125" >&5
  18491. printf %s "checking for jack >= 0.125... " >&6; }
  18492. if test -n "$JACK_CFLAGS"; then
  18493. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  18494. elif test -n "$PKG_CONFIG"; then
  18495. if test -n "$PKG_CONFIG" && \
  18496. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18497. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18498. ac_status=$?
  18499. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18500. test $ac_status = 0; }; then
  18501. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  18502. test "x$?" != "x0" && pkg_failed=yes
  18503. else
  18504. pkg_failed=yes
  18505. fi
  18506. else
  18507. pkg_failed=untried
  18508. fi
  18509. if test -n "$JACK_LIBS"; then
  18510. pkg_cv_JACK_LIBS="$JACK_LIBS"
  18511. elif test -n "$PKG_CONFIG"; then
  18512. if test -n "$PKG_CONFIG" && \
  18513. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  18514. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  18515. ac_status=$?
  18516. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18517. test $ac_status = 0; }; then
  18518. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  18519. test "x$?" != "x0" && pkg_failed=yes
  18520. else
  18521. pkg_failed=yes
  18522. fi
  18523. else
  18524. pkg_failed=untried
  18525. fi
  18526. if test $pkg_failed = yes; then
  18527. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18528. printf "%s\n" "no" >&6; }
  18529. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18530. _pkg_short_errors_supported=yes
  18531. else
  18532. _pkg_short_errors_supported=no
  18533. fi
  18534. if test $_pkg_short_errors_supported = yes; then
  18535. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18536. else
  18537. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jack >= 0.125" 2>&1`
  18538. fi
  18539. # Put the nasty error message in config.log where it belongs
  18540. echo "$JACK_PKG_ERRORS" >&5
  18541. audio_jack=no
  18542. elif test $pkg_failed = untried; then
  18543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18544. printf "%s\n" "no" >&6; }
  18545. audio_jack=no
  18546. else
  18547. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  18548. JACK_LIBS=$pkg_cv_JACK_LIBS
  18549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18550. printf "%s\n" "yes" >&6; }
  18551. audio_jack=yes
  18552. fi
  18553. if test x$audio_jack = xyes; then
  18554. # Check whether --enable-jack-shared was given.
  18555. if test ${enable_jack_shared+y}
  18556. then :
  18557. enableval=$enable_jack_shared;
  18558. else $as_nop
  18559. enable_jack_shared=yes
  18560. fi
  18561. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18562. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  18563. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  18564. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  18565. if test x$have_loadso != xyes && \
  18566. test x$enable_jack_shared = xyes; then
  18567. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  18568. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  18569. fi
  18570. if test x$have_loadso = xyes && \
  18571. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  18572. echo "-- dynamic libjack -> $jack_lib"
  18573. printf "%s\n" "#define SDL_AUDIO_DRIVER_JACK_DYNAMIC \"$jack_lib\"" >>confdefs.h
  18574. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  18575. case "$host" in
  18576. # On Solaris, jack must be linked deferred explicitly
  18577. # to prevent undefined symbol failures.
  18578. *-*-solaris*)
  18579. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  18580. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  18581. esac
  18582. else
  18583. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  18584. SUMMARY_audio="${SUMMARY_audio} jack"
  18585. fi
  18586. have_audio=yes
  18587. fi
  18588. fi
  18589. }
  18590. CheckESD()
  18591. {
  18592. # Check whether --enable-esd was given.
  18593. if test ${enable_esd+y}
  18594. then :
  18595. enableval=$enable_esd;
  18596. else $as_nop
  18597. enable_esd=yes
  18598. fi
  18599. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  18600. pkg_failed=no
  18601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for esound >= 0.2.8" >&5
  18602. printf %s "checking for esound >= 0.2.8... " >&6; }
  18603. if test -n "$ESD_CFLAGS"; then
  18604. pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
  18605. elif test -n "$PKG_CONFIG"; then
  18606. if test -n "$PKG_CONFIG" && \
  18607. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18608. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18609. ac_status=$?
  18610. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18611. test $ac_status = 0; }; then
  18612. pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound >= 0.2.8" 2>/dev/null`
  18613. test "x$?" != "x0" && pkg_failed=yes
  18614. else
  18615. pkg_failed=yes
  18616. fi
  18617. else
  18618. pkg_failed=untried
  18619. fi
  18620. if test -n "$ESD_LIBS"; then
  18621. pkg_cv_ESD_LIBS="$ESD_LIBS"
  18622. elif test -n "$PKG_CONFIG"; then
  18623. if test -n "$PKG_CONFIG" && \
  18624. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"esound >= 0.2.8\""; } >&5
  18625. ($PKG_CONFIG --exists --print-errors "esound >= 0.2.8") 2>&5
  18626. ac_status=$?
  18627. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18628. test $ac_status = 0; }; then
  18629. pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound >= 0.2.8" 2>/dev/null`
  18630. test "x$?" != "x0" && pkg_failed=yes
  18631. else
  18632. pkg_failed=yes
  18633. fi
  18634. else
  18635. pkg_failed=untried
  18636. fi
  18637. if test $pkg_failed = yes; then
  18638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18639. printf "%s\n" "no" >&6; }
  18640. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18641. _pkg_short_errors_supported=yes
  18642. else
  18643. _pkg_short_errors_supported=no
  18644. fi
  18645. if test $_pkg_short_errors_supported = yes; then
  18646. ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18647. else
  18648. ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "esound >= 0.2.8" 2>&1`
  18649. fi
  18650. # Put the nasty error message in config.log where it belongs
  18651. echo "$ESD_PKG_ERRORS" >&5
  18652. have_esd=no
  18653. elif test $pkg_failed = untried; then
  18654. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18655. printf "%s\n" "no" >&6; }
  18656. have_esd=no
  18657. else
  18658. ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
  18659. ESD_LIBS=$pkg_cv_ESD_LIBS
  18660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18661. printf "%s\n" "yes" >&6; }
  18662. have_esd=yes
  18663. fi
  18664. if test x$have_esd = xno; then
  18665. # Check whether --with-esd-prefix was given.
  18666. if test ${with_esd_prefix+y}
  18667. then :
  18668. withval=$with_esd_prefix; esd_prefix="$withval"
  18669. else $as_nop
  18670. esd_prefix=""
  18671. fi
  18672. # Check whether --with-esd-exec-prefix was given.
  18673. if test ${with_esd_exec_prefix+y}
  18674. then :
  18675. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  18676. else $as_nop
  18677. esd_exec_prefix=""
  18678. fi
  18679. # Check whether --enable-esdtest was given.
  18680. if test ${enable_esdtest+y}
  18681. then :
  18682. enableval=$enable_esdtest;
  18683. else $as_nop
  18684. enable_esdtest=yes
  18685. fi
  18686. if test x$esd_exec_prefix != x ; then
  18687. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  18688. if test x${ESD_CONFIG+set} != xset ; then
  18689. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  18690. fi
  18691. fi
  18692. if test x$esd_prefix != x ; then
  18693. esd_args="$esd_args --prefix=$esd_prefix"
  18694. if test x${ESD_CONFIG+set} != xset ; then
  18695. ESD_CONFIG=$esd_prefix/bin/esd-config
  18696. fi
  18697. fi
  18698. # Extract the first word of "esd-config", so it can be a program name with args.
  18699. set dummy esd-config; ac_word=$2
  18700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18701. printf %s "checking for $ac_word... " >&6; }
  18702. if test ${ac_cv_path_ESD_CONFIG+y}
  18703. then :
  18704. printf %s "(cached) " >&6
  18705. else $as_nop
  18706. case $ESD_CONFIG in
  18707. [\\/]* | ?:[\\/]*)
  18708. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  18709. ;;
  18710. *)
  18711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18712. for as_dir in $PATH
  18713. do
  18714. IFS=$as_save_IFS
  18715. case $as_dir in #(((
  18716. '') as_dir=./ ;;
  18717. */) ;;
  18718. *) as_dir=$as_dir/ ;;
  18719. esac
  18720. for ac_exec_ext in '' $ac_executable_extensions; do
  18721. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  18722. ac_cv_path_ESD_CONFIG="$as_dir$ac_word$ac_exec_ext"
  18723. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  18724. break 2
  18725. fi
  18726. done
  18727. done
  18728. IFS=$as_save_IFS
  18729. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  18730. ;;
  18731. esac
  18732. fi
  18733. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  18734. if test -n "$ESD_CONFIG"; then
  18735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  18736. printf "%s\n" "$ESD_CONFIG" >&6; }
  18737. else
  18738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18739. printf "%s\n" "no" >&6; }
  18740. fi
  18741. min_esd_version=0.2.8
  18742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  18743. printf %s "checking for ESD - version >= $min_esd_version... " >&6; }
  18744. no_esd=""
  18745. if test "$ESD_CONFIG" = "no" ; then
  18746. no_esd=yes
  18747. else
  18748. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  18749. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  18750. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  18751. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  18752. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  18753. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  18754. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  18755. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  18756. if test "x$enable_esdtest" = "xyes" ; then
  18757. ac_ext=c
  18758. ac_cpp='$CPP $CPPFLAGS'
  18759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18762. ac_save_CFLAGS="$CFLAGS"
  18763. ac_save_LIBS="$LIBS"
  18764. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18765. LIBS="$LIBS $ESD_LIBS"
  18766. rm -f conf.esdtest
  18767. if test "$cross_compiling" = yes
  18768. then :
  18769. echo $ac_n "cross compiling; assumed OK... $ac_c"
  18770. else $as_nop
  18771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18772. /* end confdefs.h. */
  18773. #include <stdio.h>
  18774. #include <stdlib.h>
  18775. #include <esd.h>
  18776. int main (void)
  18777. {
  18778. int major, minor, micro;
  18779. FILE *fp = fopen("conf.esdtest", "w");
  18780. if (fp) fclose(fp);
  18781. if (sscanf("$min_esd_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
  18782. printf("%s, bad version string\n", "$min_esd_version");
  18783. exit(1);
  18784. }
  18785. if (($esd_major_version > major) ||
  18786. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  18787. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  18788. {
  18789. return 0;
  18790. }
  18791. else
  18792. {
  18793. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  18794. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  18795. printf("*** best to upgrade to the required version.\n");
  18796. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  18797. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  18798. printf("*** config.cache before re-running configure\n");
  18799. return 1;
  18800. }
  18801. }
  18802. _ACEOF
  18803. if ac_fn_c_try_run "$LINENO"
  18804. then :
  18805. else $as_nop
  18806. no_esd=yes
  18807. fi
  18808. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18809. conftest.$ac_objext conftest.beam conftest.$ac_ext
  18810. fi
  18811. CFLAGS="$ac_save_CFLAGS"
  18812. LIBS="$ac_save_LIBS"
  18813. ac_ext=c
  18814. ac_cpp='$CPP $CPPFLAGS'
  18815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18818. fi
  18819. fi
  18820. if test "x$no_esd" = x ; then
  18821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18822. printf "%s\n" "yes" >&6; }
  18823. have_esd=yes
  18824. else
  18825. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18826. printf "%s\n" "no" >&6; }
  18827. if test "$ESD_CONFIG" = "no" ; then
  18828. :
  18829. else
  18830. if test -f conf.esdtest ; then
  18831. :
  18832. else
  18833. echo "*** Could not run ESD test program, checking why..."
  18834. CFLAGS="$CFLAGS $ESD_CFLAGS"
  18835. LIBS="$LIBS $ESD_LIBS"
  18836. ac_ext=c
  18837. ac_cpp='$CPP $CPPFLAGS'
  18838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18842. /* end confdefs.h. */
  18843. #include <stdio.h>
  18844. #include <esd.h>
  18845. int
  18846. main (void)
  18847. {
  18848. return 0;
  18849. ;
  18850. return 0;
  18851. }
  18852. _ACEOF
  18853. if ac_fn_c_try_link "$LINENO"
  18854. then :
  18855. echo "*** The test program compiled, but did not run. This usually means"
  18856. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  18857. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  18858. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  18859. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  18860. echo "*** is required on your system"
  18861. echo "***"
  18862. echo "*** If you have an old version installed, it is best to remove it, although"
  18863. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  18864. else $as_nop
  18865. echo "*** The test program failed to compile or link. See the file config.log for the"
  18866. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  18867. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  18868. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  18869. fi
  18870. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18871. conftest$ac_exeext conftest.$ac_ext
  18872. CFLAGS="$ac_save_CFLAGS"
  18873. LIBS="$ac_save_LIBS"
  18874. ac_ext=c
  18875. ac_cpp='$CPP $CPPFLAGS'
  18876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18879. fi
  18880. fi
  18881. ESD_CFLAGS=""
  18882. ESD_LIBS=""
  18883. have_esd=no
  18884. fi
  18885. rm -f conf.esdtest
  18886. fi
  18887. if test x$have_esd = xyes; then
  18888. # Check whether --enable-esd-shared was given.
  18889. if test ${enable_esd_shared+y}
  18890. then :
  18891. enableval=$enable_esd_shared;
  18892. else $as_nop
  18893. enable_esd_shared=yes
  18894. fi
  18895. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  18896. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  18897. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  18898. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  18899. if test x$have_loadso != xyes && \
  18900. test x$enable_esd_shared = xyes; then
  18901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  18902. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  18903. fi
  18904. if test x$have_loadso = xyes && \
  18905. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  18906. echo "-- dynamic libesd -> $esd_lib"
  18907. printf "%s\n" "#define SDL_AUDIO_DRIVER_ESD_DYNAMIC \"$esd_lib\"" >>confdefs.h
  18908. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  18909. else
  18910. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  18911. SUMMARY_audio="${SUMMARY_audio} esd"
  18912. fi
  18913. have_audio=yes
  18914. fi
  18915. fi
  18916. }
  18917. CheckPipewire()
  18918. {
  18919. # Check whether --enable-pipewire was given.
  18920. if test ${enable_pipewire+y}
  18921. then :
  18922. enableval=$enable_pipewire;
  18923. else $as_nop
  18924. enable_pipewire=yes
  18925. fi
  18926. if test x$enable_audio = xyes -a x$enable_pipewire = xyes; then
  18927. pkg_failed=no
  18928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipewire-0.3 >= 0.3.20" >&5
  18929. printf %s "checking for libpipewire-0.3 >= 0.3.20... " >&6; }
  18930. if test -n "$PIPEWIRE_CFLAGS"; then
  18931. pkg_cv_PIPEWIRE_CFLAGS="$PIPEWIRE_CFLAGS"
  18932. elif test -n "$PKG_CONFIG"; then
  18933. if test -n "$PKG_CONFIG" && \
  18934. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18935. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18936. ac_status=$?
  18937. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18938. test $ac_status = 0; }; then
  18939. pkg_cv_PIPEWIRE_CFLAGS=`$PKG_CONFIG --cflags "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18940. test "x$?" != "x0" && pkg_failed=yes
  18941. else
  18942. pkg_failed=yes
  18943. fi
  18944. else
  18945. pkg_failed=untried
  18946. fi
  18947. if test -n "$PIPEWIRE_LIBS"; then
  18948. pkg_cv_PIPEWIRE_LIBS="$PIPEWIRE_LIBS"
  18949. elif test -n "$PKG_CONFIG"; then
  18950. if test -n "$PKG_CONFIG" && \
  18951. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipewire-0.3 >= 0.3.20\""; } >&5
  18952. ($PKG_CONFIG --exists --print-errors "libpipewire-0.3 >= 0.3.20") 2>&5
  18953. ac_status=$?
  18954. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18955. test $ac_status = 0; }; then
  18956. pkg_cv_PIPEWIRE_LIBS=`$PKG_CONFIG --libs "libpipewire-0.3 >= 0.3.20" 2>/dev/null`
  18957. test "x$?" != "x0" && pkg_failed=yes
  18958. else
  18959. pkg_failed=yes
  18960. fi
  18961. else
  18962. pkg_failed=untried
  18963. fi
  18964. if test $pkg_failed = yes; then
  18965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18966. printf "%s\n" "no" >&6; }
  18967. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18968. _pkg_short_errors_supported=yes
  18969. else
  18970. _pkg_short_errors_supported=no
  18971. fi
  18972. if test $_pkg_short_errors_supported = yes; then
  18973. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18974. else
  18975. PIPEWIRE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipewire-0.3 >= 0.3.20" 2>&1`
  18976. fi
  18977. # Put the nasty error message in config.log where it belongs
  18978. echo "$PIPEWIRE_PKG_ERRORS" >&5
  18979. audio_pipewire=no
  18980. elif test $pkg_failed = untried; then
  18981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18982. printf "%s\n" "no" >&6; }
  18983. audio_pipewire=no
  18984. else
  18985. PIPEWIRE_CFLAGS=$pkg_cv_PIPEWIRE_CFLAGS
  18986. PIPEWIRE_LIBS=$pkg_cv_PIPEWIRE_LIBS
  18987. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18988. printf "%s\n" "yes" >&6; }
  18989. audio_pipewire=yes
  18990. fi
  18991. if test x$audio_pipewire = xyes; then
  18992. # Check whether --enable-pipewire-shared was given.
  18993. if test ${enable_pipewire_shared+y}
  18994. then :
  18995. enableval=$enable_pipewire_shared;
  18996. else $as_nop
  18997. enable_pipewire_shared=yes
  18998. fi
  18999. pipewire_lib=`find_lib "libpipewire-0.3.so.*" "$PIPEWIRE_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19000. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE 1" >>confdefs.h
  19001. SOURCES="$SOURCES $srcdir/src/audio/pipewire/*.c"
  19002. EXTRA_CFLAGS="$EXTRA_CFLAGS $PIPEWIRE_CFLAGS"
  19003. if test x$have_loadso != xyes && \
  19004. test x$enable_pipewire_shared = xyes; then
  19005. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&5
  19006. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Pipewire loading" >&2;}
  19007. fi
  19008. if test x$have_loadso = xyes && \
  19009. test x$enable_pipewire_shared = xyes && test x$pipewire_lib != x; then
  19010. echo "-- dynamic libpipewire-0.3 -> $pipewire_lib"
  19011. printf "%s\n" "#define SDL_AUDIO_DRIVER_PIPEWIRE_DYNAMIC \"$pipewire_lib\"" >>confdefs.h
  19012. SUMMARY_audio="${SUMMARY_audio} pipewire(dynamic)"
  19013. else
  19014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PIPEWIRE_LIBS"
  19015. SUMMARY_audio="${SUMMARY_audio} pipewire"
  19016. fi
  19017. have_audio=yes
  19018. fi
  19019. fi
  19020. }
  19021. CheckPulseAudio()
  19022. {
  19023. # Check whether --enable-pulseaudio was given.
  19024. if test ${enable_pulseaudio+y}
  19025. then :
  19026. enableval=$enable_pulseaudio;
  19027. else $as_nop
  19028. enable_pulseaudio=yes
  19029. fi
  19030. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  19031. pkg_failed=no
  19032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpulse-simple >= 0.9" >&5
  19033. printf %s "checking for libpulse-simple >= 0.9... " >&6; }
  19034. if test -n "$PULSEAUDIO_CFLAGS"; then
  19035. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  19036. elif test -n "$PKG_CONFIG"; then
  19037. if test -n "$PKG_CONFIG" && \
  19038. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19039. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19040. ac_status=$?
  19041. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19042. test $ac_status = 0; }; then
  19043. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  19044. test "x$?" != "x0" && pkg_failed=yes
  19045. else
  19046. pkg_failed=yes
  19047. fi
  19048. else
  19049. pkg_failed=untried
  19050. fi
  19051. if test -n "$PULSEAUDIO_LIBS"; then
  19052. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  19053. elif test -n "$PKG_CONFIG"; then
  19054. if test -n "$PKG_CONFIG" && \
  19055. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  19056. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  19057. ac_status=$?
  19058. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19059. test $ac_status = 0; }; then
  19060. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  19061. test "x$?" != "x0" && pkg_failed=yes
  19062. else
  19063. pkg_failed=yes
  19064. fi
  19065. else
  19066. pkg_failed=untried
  19067. fi
  19068. if test $pkg_failed = yes; then
  19069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19070. printf "%s\n" "no" >&6; }
  19071. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19072. _pkg_short_errors_supported=yes
  19073. else
  19074. _pkg_short_errors_supported=no
  19075. fi
  19076. if test $_pkg_short_errors_supported = yes; then
  19077. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19078. else
  19079. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse-simple >= 0.9" 2>&1`
  19080. fi
  19081. # Put the nasty error message in config.log where it belongs
  19082. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  19083. audio_pulseaudio=no
  19084. elif test $pkg_failed = untried; then
  19085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19086. printf "%s\n" "no" >&6; }
  19087. audio_pulseaudio=no
  19088. else
  19089. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  19090. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  19091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19092. printf "%s\n" "yes" >&6; }
  19093. audio_pulseaudio=yes
  19094. fi
  19095. if test x$audio_pulseaudio = xyes; then
  19096. # Check whether --enable-pulseaudio-shared was given.
  19097. if test ${enable_pulseaudio_shared+y}
  19098. then :
  19099. enableval=$enable_pulseaudio_shared;
  19100. else $as_nop
  19101. enable_pulseaudio_shared=yes
  19102. fi
  19103. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19104. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  19105. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  19106. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  19107. if test x$have_loadso != xyes && \
  19108. test x$enable_pulseaudio_shared = xyes; then
  19109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  19110. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  19111. fi
  19112. if test x$have_loadso = xyes && \
  19113. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  19114. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  19115. printf "%s\n" "#define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC \"$pulseaudio_lib\"" >>confdefs.h
  19116. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  19117. case "$host" in
  19118. # On Solaris, pulseaudio must be linked deferred explicitly
  19119. # to prevent undefined symbol failures.
  19120. *-*-solaris*)
  19121. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  19122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  19123. esac
  19124. else
  19125. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  19126. SUMMARY_audio="${SUMMARY_audio} pulse"
  19127. fi
  19128. have_audio=yes
  19129. fi
  19130. fi
  19131. }
  19132. CheckARTSC()
  19133. {
  19134. # Check whether --enable-arts was given.
  19135. if test ${enable_arts+y}
  19136. then :
  19137. enableval=$enable_arts;
  19138. else $as_nop
  19139. enable_arts=yes
  19140. fi
  19141. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  19142. # Extract the first word of "artsc-config", so it can be a program name with args.
  19143. set dummy artsc-config; ac_word=$2
  19144. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19145. printf %s "checking for $ac_word... " >&6; }
  19146. if test ${ac_cv_path_ARTSCONFIG+y}
  19147. then :
  19148. printf %s "(cached) " >&6
  19149. else $as_nop
  19150. case $ARTSCONFIG in
  19151. [\\/]* | ?:[\\/]*)
  19152. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  19153. ;;
  19154. *)
  19155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19156. for as_dir in $PATH
  19157. do
  19158. IFS=$as_save_IFS
  19159. case $as_dir in #(((
  19160. '') as_dir=./ ;;
  19161. */) ;;
  19162. *) as_dir=$as_dir/ ;;
  19163. esac
  19164. for ac_exec_ext in '' $ac_executable_extensions; do
  19165. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  19166. ac_cv_path_ARTSCONFIG="$as_dir$ac_word$ac_exec_ext"
  19167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  19168. break 2
  19169. fi
  19170. done
  19171. done
  19172. IFS=$as_save_IFS
  19173. ;;
  19174. esac
  19175. fi
  19176. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  19177. if test -n "$ARTSCONFIG"; then
  19178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  19179. printf "%s\n" "$ARTSCONFIG" >&6; }
  19180. else
  19181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19182. printf "%s\n" "no" >&6; }
  19183. fi
  19184. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  19185. : # arts isn't installed
  19186. else
  19187. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  19188. ARTS_LIBS=`$ARTSCONFIG --libs`
  19189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  19190. printf %s "checking for aRts development environment... " >&6; }
  19191. audio_arts=no
  19192. save_CFLAGS="$CFLAGS"
  19193. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  19194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19195. /* end confdefs.h. */
  19196. #include <artsc.h>
  19197. int
  19198. main (void)
  19199. {
  19200. arts_stream_t stream;
  19201. ;
  19202. return 0;
  19203. }
  19204. _ACEOF
  19205. if ac_fn_c_try_compile "$LINENO"
  19206. then :
  19207. audio_arts=yes
  19208. fi
  19209. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19210. CFLAGS="$save_CFLAGS"
  19211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  19212. printf "%s\n" "$audio_arts" >&6; }
  19213. if test x$audio_arts = xyes; then
  19214. # Check whether --enable-arts-shared was given.
  19215. if test ${enable_arts_shared+y}
  19216. then :
  19217. enableval=$enable_arts_shared;
  19218. else $as_nop
  19219. enable_arts_shared=yes
  19220. fi
  19221. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19222. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  19223. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  19224. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  19225. if test x$have_loadso != xyes && \
  19226. test x$enable_arts_shared = xyes; then
  19227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  19228. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  19229. fi
  19230. if test x$have_loadso = xyes && \
  19231. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  19232. echo "-- dynamic libartsc -> $arts_lib"
  19233. printf "%s\n" "#define SDL_AUDIO_DRIVER_ARTS_DYNAMIC \"$arts_lib\"" >>confdefs.h
  19234. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  19235. else
  19236. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  19237. SUMMARY_audio="${SUMMARY_audio} arts"
  19238. fi
  19239. have_audio=yes
  19240. fi
  19241. fi
  19242. fi
  19243. }
  19244. CheckNAS()
  19245. {
  19246. # Check whether --enable-nas was given.
  19247. if test ${enable_nas+y}
  19248. then :
  19249. enableval=$enable_nas;
  19250. else $as_nop
  19251. enable_nas=yes
  19252. fi
  19253. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  19254. ac_fn_c_check_header_compile "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  19255. if test "x$ac_cv_header_audio_audiolib_h" = xyes
  19256. then :
  19257. have_nas_hdr=yes
  19258. fi
  19259. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  19260. printf %s "checking for AuOpenServer in -laudio... " >&6; }
  19261. if test ${ac_cv_lib_audio_AuOpenServer+y}
  19262. then :
  19263. printf %s "(cached) " >&6
  19264. else $as_nop
  19265. ac_check_lib_save_LIBS=$LIBS
  19266. LIBS="-laudio $LIBS"
  19267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19268. /* end confdefs.h. */
  19269. /* Override any GCC internal prototype to avoid an error.
  19270. Use char because int might match the return type of a GCC
  19271. builtin and then its argument prototype would still apply. */
  19272. char AuOpenServer ();
  19273. int
  19274. main (void)
  19275. {
  19276. return AuOpenServer ();
  19277. ;
  19278. return 0;
  19279. }
  19280. _ACEOF
  19281. if ac_fn_c_try_link "$LINENO"
  19282. then :
  19283. ac_cv_lib_audio_AuOpenServer=yes
  19284. else $as_nop
  19285. ac_cv_lib_audio_AuOpenServer=no
  19286. fi
  19287. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19288. conftest$ac_exeext conftest.$ac_ext
  19289. LIBS=$ac_check_lib_save_LIBS
  19290. fi
  19291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  19292. printf "%s\n" "$ac_cv_lib_audio_AuOpenServer" >&6; }
  19293. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes
  19294. then :
  19295. have_nas_lib=yes
  19296. fi
  19297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  19298. printf %s "checking for NAS audio support... " >&6; }
  19299. have_nas=no
  19300. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  19301. have_nas=yes
  19302. NAS_LIBS="-laudio"
  19303. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  19304. have_nas=yes
  19305. NAS_CFLAGS="-I/usr/X11R6/include/"
  19306. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  19307. fi
  19308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  19309. printf "%s\n" "$have_nas" >&6; }
  19310. if test x$have_nas = xyes; then
  19311. # Check whether --enable-nas-shared was given.
  19312. if test ${enable_nas_shared+y}
  19313. then :
  19314. enableval=$enable_nas_shared;
  19315. else $as_nop
  19316. enable_nas_shared=yes
  19317. fi
  19318. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19319. if test x$have_loadso != xyes && \
  19320. test x$enable_nas_shared = xyes; then
  19321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  19322. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  19323. fi
  19324. if test x$have_loadso = xyes && \
  19325. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  19326. echo "-- dynamic libaudio -> $nas_lib"
  19327. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS_DYNAMIC \"$nas_lib\"" >>confdefs.h
  19328. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  19329. else
  19330. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  19331. SUMMARY_audio="${SUMMARY_audio} nas"
  19332. fi
  19333. printf "%s\n" "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  19334. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  19335. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  19336. have_audio=yes
  19337. fi
  19338. fi
  19339. }
  19340. CheckSNDIO()
  19341. {
  19342. # Check whether --enable-sndio was given.
  19343. if test ${enable_sndio+y}
  19344. then :
  19345. enableval=$enable_sndio;
  19346. else $as_nop
  19347. enable_sndio=yes
  19348. fi
  19349. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  19350. pkg_failed=no
  19351. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sndio" >&5
  19352. printf %s "checking for sndio... " >&6; }
  19353. if test -n "$SNDIO_CFLAGS"; then
  19354. pkg_cv_SNDIO_CFLAGS="$SNDIO_CFLAGS"
  19355. elif test -n "$PKG_CONFIG"; then
  19356. if test -n "$PKG_CONFIG" && \
  19357. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19358. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19359. ac_status=$?
  19360. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19361. test $ac_status = 0; }; then
  19362. pkg_cv_SNDIO_CFLAGS=`$PKG_CONFIG --cflags "sndio" 2>/dev/null`
  19363. test "x$?" != "x0" && pkg_failed=yes
  19364. else
  19365. pkg_failed=yes
  19366. fi
  19367. else
  19368. pkg_failed=untried
  19369. fi
  19370. if test -n "$SNDIO_LIBS"; then
  19371. pkg_cv_SNDIO_LIBS="$SNDIO_LIBS"
  19372. elif test -n "$PKG_CONFIG"; then
  19373. if test -n "$PKG_CONFIG" && \
  19374. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndio\""; } >&5
  19375. ($PKG_CONFIG --exists --print-errors "sndio") 2>&5
  19376. ac_status=$?
  19377. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19378. test $ac_status = 0; }; then
  19379. pkg_cv_SNDIO_LIBS=`$PKG_CONFIG --libs "sndio" 2>/dev/null`
  19380. test "x$?" != "x0" && pkg_failed=yes
  19381. else
  19382. pkg_failed=yes
  19383. fi
  19384. else
  19385. pkg_failed=untried
  19386. fi
  19387. if test $pkg_failed = yes; then
  19388. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19389. printf "%s\n" "no" >&6; }
  19390. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19391. _pkg_short_errors_supported=yes
  19392. else
  19393. _pkg_short_errors_supported=no
  19394. fi
  19395. if test $_pkg_short_errors_supported = yes; then
  19396. SNDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndio" 2>&1`
  19397. else
  19398. SNDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndio" 2>&1`
  19399. fi
  19400. # Put the nasty error message in config.log where it belongs
  19401. echo "$SNDIO_PKG_ERRORS" >&5
  19402. audio_sndio=no
  19403. elif test $pkg_failed = untried; then
  19404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19405. printf "%s\n" "no" >&6; }
  19406. audio_sndio=no
  19407. else
  19408. SNDIO_CFLAGS=$pkg_cv_SNDIO_CFLAGS
  19409. SNDIO_LIBS=$pkg_cv_SNDIO_LIBS
  19410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19411. printf "%s\n" "yes" >&6; }
  19412. audio_sndio=yes
  19413. fi
  19414. if test x$audio_sndio = xyes; then
  19415. # Check whether --enable-sndio-shared was given.
  19416. if test ${enable_sndio_shared+y}
  19417. then :
  19418. enableval=$enable_sndio_shared;
  19419. else $as_nop
  19420. enable_sndio_shared=yes
  19421. fi
  19422. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  19423. if test x$have_loadso != xyes && \
  19424. test x$enable_sndio_shared = xyes; then
  19425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  19426. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  19427. fi
  19428. if test x$have_loadso = xyes && \
  19429. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  19430. echo "-- dynamic libsndio -> $sndio_lib"
  19431. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC \"$sndio_lib\"" >>confdefs.h
  19432. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  19433. else
  19434. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  19435. SUMMARY_audio="${SUMMARY_audio} sndio"
  19436. fi
  19437. printf "%s\n" "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  19438. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  19439. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  19440. have_audio=yes
  19441. fi
  19442. fi
  19443. }
  19444. CheckFusionSound()
  19445. {
  19446. # Check whether --enable-fusionsound was given.
  19447. if test ${enable_fusionsound+y}
  19448. then :
  19449. enableval=$enable_fusionsound;
  19450. else $as_nop
  19451. enable_fusionsound=no
  19452. fi
  19453. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  19454. pkg_failed=no
  19455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fusionsound >= 1.1.1" >&5
  19456. printf %s "checking for fusionsound >= 1.1.1... " >&6; }
  19457. if test -n "$FUSIONSOUND_CFLAGS"; then
  19458. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  19459. elif test -n "$PKG_CONFIG"; then
  19460. if test -n "$PKG_CONFIG" && \
  19461. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19462. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19463. ac_status=$?
  19464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19465. test $ac_status = 0; }; then
  19466. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  19467. test "x$?" != "x0" && pkg_failed=yes
  19468. else
  19469. pkg_failed=yes
  19470. fi
  19471. else
  19472. pkg_failed=untried
  19473. fi
  19474. if test -n "$FUSIONSOUND_LIBS"; then
  19475. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  19476. elif test -n "$PKG_CONFIG"; then
  19477. if test -n "$PKG_CONFIG" && \
  19478. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  19479. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  19480. ac_status=$?
  19481. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19482. test $ac_status = 0; }; then
  19483. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  19484. test "x$?" != "x0" && pkg_failed=yes
  19485. else
  19486. pkg_failed=yes
  19487. fi
  19488. else
  19489. pkg_failed=untried
  19490. fi
  19491. if test $pkg_failed = yes; then
  19492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19493. printf "%s\n" "no" >&6; }
  19494. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19495. _pkg_short_errors_supported=yes
  19496. else
  19497. _pkg_short_errors_supported=no
  19498. fi
  19499. if test $_pkg_short_errors_supported = yes; then
  19500. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19501. else
  19502. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fusionsound >= 1.1.1" 2>&1`
  19503. fi
  19504. # Put the nasty error message in config.log where it belongs
  19505. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  19506. fusionsound=no
  19507. elif test $pkg_failed = untried; then
  19508. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19509. printf "%s\n" "no" >&6; }
  19510. fusionsound=no
  19511. else
  19512. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  19513. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  19514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19515. printf "%s\n" "yes" >&6; }
  19516. fusionsound=yes
  19517. fi
  19518. if test x$fusionsound = xyes; then
  19519. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  19520. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  19521. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  19522. # Check whether --enable-fusionsound-shared was given.
  19523. if test ${enable_fusionsound_shared+y}
  19524. then :
  19525. enableval=$enable_fusionsound_shared;
  19526. else $as_nop
  19527. enable_fusionsound_shared=yes
  19528. fi
  19529. fusionsound_shared=no
  19530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  19531. printf %s "checking for FusionSound dynamic loading support... " >&6; }
  19532. if test x$have_loadso != xyes && \
  19533. test x$enable_fusionsound_shared = xyes; then
  19534. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  19535. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  19536. fi
  19537. if test x$have_loadso = xyes && \
  19538. test x$enable_fusionsound_shared = xyes; then
  19539. printf "%s\n" "#define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC \"libfusionsound.so\"" >>confdefs.h
  19540. fusionsound_shared=yes
  19541. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  19542. else
  19543. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  19544. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  19545. fi
  19546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  19547. printf "%s\n" "$fusionsound_shared" >&6; }
  19548. have_audio=yes
  19549. fi
  19550. fi
  19551. }
  19552. CheckDiskAudio()
  19553. {
  19554. # Check whether --enable-diskaudio was given.
  19555. if test ${enable_diskaudio+y}
  19556. then :
  19557. enableval=$enable_diskaudio;
  19558. else $as_nop
  19559. enable_diskaudio=yes
  19560. fi
  19561. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  19562. printf "%s\n" "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  19563. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  19564. SUMMARY_audio="${SUMMARY_audio} disk"
  19565. have_audio=yes
  19566. fi
  19567. }
  19568. CheckDummyAudio()
  19569. {
  19570. # Check whether --enable-dummyaudio was given.
  19571. if test ${enable_dummyaudio+y}
  19572. then :
  19573. enableval=$enable_dummyaudio;
  19574. else $as_nop
  19575. enable_dummyaudio=yes
  19576. fi
  19577. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  19578. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  19579. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  19580. SUMMARY_audio="${SUMMARY_audio} dummy"
  19581. have_audio=yes
  19582. fi
  19583. }
  19584. CheckLibSampleRate()
  19585. {
  19586. # Check whether --enable-libsamplerate was given.
  19587. if test ${enable_libsamplerate+y}
  19588. then :
  19589. enableval=$enable_libsamplerate;
  19590. else $as_nop
  19591. enable_libsamplerate=yes
  19592. fi
  19593. if test x$enable_libsamplerate = xyes; then
  19594. ac_fn_c_check_header_compile "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  19595. if test "x$ac_cv_header_samplerate_h" = xyes
  19596. then :
  19597. have_samplerate_h_hdr=yes
  19598. else $as_nop
  19599. have_samplerate_h_hdr=no
  19600. fi
  19601. if test x$have_samplerate_h_hdr = xyes; then
  19602. printf "%s\n" "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  19603. # Check whether --enable-libsamplerate-shared was given.
  19604. if test ${enable_libsamplerate_shared+y}
  19605. then :
  19606. enableval=$enable_libsamplerate_shared;
  19607. else $as_nop
  19608. enable_libsamplerate_shared=yes
  19609. fi
  19610. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19611. if test x$have_loadso != xyes && \
  19612. test x$enable_libsamplerate_shared = xyes; then
  19613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  19614. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  19615. fi
  19616. if test x$have_loadso = xyes && \
  19617. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  19618. echo "-- dynamic libsamplerate -> $samplerate_lib"
  19619. printf "%s\n" "#define SDL_LIBSAMPLERATE_DYNAMIC \"$samplerate_lib\"" >>confdefs.h
  19620. else
  19621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  19622. fi
  19623. fi
  19624. fi
  19625. }
  19626. CheckARM()
  19627. {
  19628. # Check whether --enable-arm-simd was given.
  19629. if test ${enable_arm_simd+y}
  19630. then :
  19631. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  19632. else $as_nop
  19633. enable_arm_simd=no
  19634. fi
  19635. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  19636. save_CFLAGS="$CFLAGS"
  19637. have_arm_simd=no
  19638. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  19640. printf %s "checking for ARM SIMD... " >&6; }
  19641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19642. /* end confdefs.h. */
  19643. .text
  19644. .arch armv6
  19645. .object_arch armv4
  19646. .arm
  19647. .altmacro
  19648. #ifndef __ARM_EABI__
  19649. #error EABI is required (to be sure that calling conventions are compatible)
  19650. #endif
  19651. pld [r0]
  19652. uqadd8 r0, r0, r0
  19653. _ACEOF
  19654. if ac_fn_c_try_compile "$LINENO"
  19655. then :
  19656. have_arm_simd=yes
  19657. fi
  19658. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19659. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  19660. printf "%s\n" "$have_arm_simd" >&6; }
  19661. CFLAGS="$save_CFLAGS"
  19662. if test x$have_arm_simd = xyes; then
  19663. printf "%s\n" "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  19664. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  19665. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  19666. fi
  19667. fi
  19668. }
  19669. CheckNEON()
  19670. {
  19671. # Check whether --enable-arm-neon was given.
  19672. if test ${enable_arm_neon+y}
  19673. then :
  19674. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  19675. else $as_nop
  19676. enable_arm_neon=no
  19677. fi
  19678. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  19679. save_CFLAGS="$CFLAGS"
  19680. have_arm_neon=no
  19681. CFLAGS="-x assembler-with-cpp $CFLAGS"
  19682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  19683. printf %s "checking for ARM NEON... " >&6; }
  19684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19685. /* end confdefs.h. */
  19686. .text
  19687. .fpu neon
  19688. .arch armv7a
  19689. .object_arch armv4
  19690. .eabi_attribute 10, 0
  19691. .arm
  19692. .altmacro
  19693. #ifndef __ARM_EABI__
  19694. #error EABI is required (to be sure that calling conventions are compatible)
  19695. #endif
  19696. pld [r0]
  19697. vmovn.u16 d0, q0
  19698. _ACEOF
  19699. if ac_fn_c_try_compile "$LINENO"
  19700. then :
  19701. have_arm_neon=yes
  19702. fi
  19703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  19705. printf "%s\n" "$have_arm_neon" >&6; }
  19706. CFLAGS="$save_CFLAGS"
  19707. if test x$have_arm_neon = xyes; then
  19708. printf "%s\n" "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  19709. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  19710. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  19711. fi
  19712. fi
  19713. }
  19714. CheckObjectiveCARC()
  19715. {
  19716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fobjc-arc option" >&5
  19717. printf %s "checking for clang -fobjc-arc option... " >&6; }
  19718. have_clang_objc_arc=no
  19719. save_CFLAGS="$CFLAGS"
  19720. CFLAGS="$save_CFLAGS -fobjc-arc"
  19721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19722. /* end confdefs.h. */
  19723. int x = 0;
  19724. int
  19725. main (void)
  19726. {
  19727. ;
  19728. return 0;
  19729. }
  19730. _ACEOF
  19731. if ac_fn_c_try_compile "$LINENO"
  19732. then :
  19733. have_clang_objc_arc=yes
  19734. fi
  19735. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_clang_objc_arc" >&5
  19737. printf "%s\n" "$have_clang_objc_arc" >&6; }
  19738. CFLAGS="$save_CFLAGS"
  19739. if test x$have_clang_objc_arc = xyes; then
  19740. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-arc"
  19741. fi
  19742. }
  19743. CheckGDwarf4()
  19744. {
  19745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -gdwarf-4 option" >&5
  19746. printf %s "checking for GCC -gdwarf-4 option... " >&6; }
  19747. have_gcc_gdwarf4=no
  19748. save_CFLAGS="$CFLAGS"
  19749. CFLAGS="$save_CFLAGS -gdwarf-4"
  19750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19751. /* end confdefs.h. */
  19752. int x = 0;
  19753. int
  19754. main (void)
  19755. {
  19756. ;
  19757. return 0;
  19758. }
  19759. _ACEOF
  19760. if ac_fn_c_try_compile "$LINENO"
  19761. then :
  19762. have_gcc_gdwarf4=yes
  19763. fi
  19764. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_gdwarf4" >&5
  19766. printf "%s\n" "$have_gcc_gdwarf4" >&6; }
  19767. CFLAGS="$save_CFLAGS"
  19768. if test x$have_gcc_gdwarf4 = xyes; then
  19769. EXTRA_CFLAGS="$EXTRA_CFLAGS -gdwarf-4"
  19770. fi
  19771. }
  19772. CheckVisibilityHidden()
  19773. {
  19774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  19775. printf %s "checking for GCC -fvisibility=hidden option... " >&6; }
  19776. have_gcc_fvisibility=no
  19777. visibility_CFLAGS="-fvisibility=hidden"
  19778. save_CFLAGS="$CFLAGS"
  19779. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  19780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19781. /* end confdefs.h. */
  19782. #if !defined(__GNUC__) || __GNUC__ < 4
  19783. #error SDL only uses visibility attributes in GCC 4 or newer
  19784. #endif
  19785. int
  19786. main (void)
  19787. {
  19788. ;
  19789. return 0;
  19790. }
  19791. _ACEOF
  19792. if ac_fn_c_try_compile "$LINENO"
  19793. then :
  19794. have_gcc_fvisibility=yes
  19795. fi
  19796. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  19798. printf "%s\n" "$have_gcc_fvisibility" >&6; }
  19799. CFLAGS="$save_CFLAGS"
  19800. if test x$have_gcc_fvisibility = xyes; then
  19801. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  19802. fi
  19803. }
  19804. CheckNoStrictAliasing()
  19805. {
  19806. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  19807. printf %s "checking for GCC -fno-strict-aliasing option... " >&6; }
  19808. have_gcc_no_strict_aliasing=no
  19809. save_CFLAGS="$CFLAGS"
  19810. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  19811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19812. /* end confdefs.h. */
  19813. int x = 0;
  19814. int
  19815. main (void)
  19816. {
  19817. ;
  19818. return 0;
  19819. }
  19820. _ACEOF
  19821. if ac_fn_c_try_compile "$LINENO"
  19822. then :
  19823. have_gcc_no_strict_aliasing=yes
  19824. fi
  19825. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  19827. printf "%s\n" "$have_gcc_no_strict_aliasing" >&6; }
  19828. CFLAGS="$save_CFLAGS"
  19829. if test x$have_gcc_no_strict_aliasing = xyes; then
  19830. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  19831. fi
  19832. }
  19833. CheckStackBoundary()
  19834. {
  19835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  19836. printf %s "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  19837. have_gcc_preferred_stack_boundary=no
  19838. save_CFLAGS="$CFLAGS"
  19839. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  19840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19841. /* end confdefs.h. */
  19842. int x = 0;
  19843. int
  19844. main (void)
  19845. {
  19846. ;
  19847. return 0;
  19848. }
  19849. _ACEOF
  19850. if ac_fn_c_try_compile "$LINENO"
  19851. then :
  19852. have_gcc_preferred_stack_boundary=yes
  19853. fi
  19854. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19855. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  19856. printf "%s\n" "$have_gcc_preferred_stack_boundary" >&6; }
  19857. CFLAGS="$save_CFLAGS"
  19858. if test x$have_gcc_preferred_stack_boundary = xyes; then
  19859. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  19860. fi
  19861. }
  19862. CheckWerror()
  19863. {
  19864. # Check whether --enable-werror was given.
  19865. if test ${enable_werror+y}
  19866. then :
  19867. enableval=$enable_werror; enable_werror=$enableval
  19868. else $as_nop
  19869. enable_werror=no
  19870. fi
  19871. if test x$enable_werror = xyes; then
  19872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Werror option" >&5
  19873. printf %s "checking for GCC -Werror option... " >&6; }
  19874. have_gcc_werror=no
  19875. save_CFLAGS="$CFLAGS"
  19876. CFLAGS="$save_CFLAGS -Werror"
  19877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19878. /* end confdefs.h. */
  19879. int x = 0;
  19880. int
  19881. main (void)
  19882. {
  19883. ;
  19884. return 0;
  19885. }
  19886. _ACEOF
  19887. if ac_fn_c_try_compile "$LINENO"
  19888. then :
  19889. have_gcc_werror=yes
  19890. fi
  19891. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19893. printf "%s\n" "$have_gcc_werror" >&6; }
  19894. CFLAGS="$save_CFLAGS"
  19895. if test x$have_gcc_werror = xyes; then
  19896. EXTRA_CFLAGS="$EXTRA_CFLAGS -Werror"
  19897. fi
  19898. fi
  19899. }
  19900. CheckNoErrorDeprecatedDeclarationsWerror()
  19901. {
  19902. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wno-error=deprecated-declarations option" >&5
  19903. printf %s "checking for GCC -Wno-error=deprecated-declarations option... " >&6; }
  19904. have_gcc_no_werror_deprecated_declarations=no
  19905. save_CFLAGS="$CFLAGS"
  19906. CFLAGS="$save_CFLAGS -Wno-error=deprecated-declarations"
  19907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19908. /* end confdefs.h. */
  19909. int x = 0;
  19910. int
  19911. main (void)
  19912. {
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. if ac_fn_c_try_compile "$LINENO"
  19918. then :
  19919. have_gcc_no_werror_deprecated_declarations=yes
  19920. fi
  19921. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19922. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_werror" >&5
  19923. printf "%s\n" "$have_gcc_werror" >&6; }
  19924. CFLAGS="$save_CFLAGS"
  19925. if test x$have_gcc_no_werror_deprecated_declarations = xyes; then
  19926. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-error=deprecated-declarations"
  19927. fi
  19928. }
  19929. CheckDeclarationAfterStatement()
  19930. {
  19931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  19932. printf %s "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  19933. have_gcc_declaration_after_statement=no
  19934. save_CFLAGS="$CFLAGS"
  19935. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19937. /* end confdefs.h. */
  19938. int x = 0;
  19939. int
  19940. main (void)
  19941. {
  19942. ;
  19943. return 0;
  19944. }
  19945. _ACEOF
  19946. if ac_fn_c_try_compile "$LINENO"
  19947. then :
  19948. have_gcc_declaration_after_statement=yes
  19949. fi
  19950. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19951. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  19952. printf "%s\n" "$have_gcc_declaration_after_statement" >&6; }
  19953. CFLAGS="$save_CFLAGS"
  19954. if test x$have_gcc_declaration_after_statement = xyes; then
  19955. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  19956. fi
  19957. }
  19958. CheckWarnAll()
  19959. {
  19960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  19961. printf %s "checking for GCC -Wall option... " >&6; }
  19962. have_gcc_Wall=no
  19963. save_CFLAGS="$CFLAGS"
  19964. CFLAGS="$save_CFLAGS -Wall"
  19965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19966. /* end confdefs.h. */
  19967. int x = 0;
  19968. int
  19969. main (void)
  19970. {
  19971. ;
  19972. return 0;
  19973. }
  19974. _ACEOF
  19975. if ac_fn_c_try_compile "$LINENO"
  19976. then :
  19977. have_gcc_Wall=yes
  19978. fi
  19979. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19980. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  19981. printf "%s\n" "$have_gcc_Wall" >&6; }
  19982. CFLAGS="$save_CFLAGS"
  19983. if test x$have_gcc_Wall = xyes; then
  19984. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  19985. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  19986. printf %s "checking for necessary GCC -Wno-multichar option... " >&6; }
  19987. need_gcc_Wno_multichar=no
  19988. case "$host" in
  19989. *-*-haiku*)
  19990. need_gcc_Wno_multichar=yes
  19991. ;;
  19992. esac
  19993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  19994. printf "%s\n" "$need_gcc_Wno_multichar" >&6; }
  19995. if test x$need_gcc_Wno_multichar = xyes; then
  19996. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  19997. fi
  19998. fi
  19999. }
  20000. CheckWayland()
  20001. {
  20002. # Check whether --enable-video-wayland was given.
  20003. if test ${enable_video_wayland+y}
  20004. then :
  20005. enableval=$enable_video_wayland;
  20006. else $as_nop
  20007. enable_video_wayland=yes
  20008. fi
  20009. # Check whether --enable-video-wayland-qt-touch was given.
  20010. if test ${enable_video_wayland_qt_touch+y}
  20011. then :
  20012. enableval=$enable_video_wayland_qt_touch;
  20013. else $as_nop
  20014. enable_video_wayland_qt_touch=yes
  20015. fi
  20016. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  20017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  20018. printf %s "checking for Wayland support... " >&6; }
  20019. video_wayland=no
  20020. if test x$video_opengl_egl = xyes && \
  20021. test x$video_opengles_v2 = xyes; then
  20022. if $PKG_CONFIG --exists 'wayland-client >= 1.18' wayland-scanner wayland-egl wayland-cursor egl 'xkbcommon >= 0.5.0'; then
  20023. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  20024. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  20025. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  20026. if $PKG_CONFIG --exists 'wayland-scanner >= 1.15'
  20027. then :
  20028. WAYLAND_SCANNER_CODE_MODE=private-code
  20029. else $as_nop
  20030. WAYLAND_SCANNER_CODE_MODE=code
  20031. fi
  20032. video_wayland=yes
  20033. fi
  20034. fi
  20035. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  20036. printf "%s\n" "$video_wayland" >&6; }
  20037. if test x$video_wayland = xyes; then
  20038. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  20039. if test x$enable_video_wayland_qt_touch = xyes; then
  20040. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  20041. fi
  20042. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  20043. SOURCES="$SOURCES $WAYLAND_SOURCES"
  20044. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  20045. # Check whether --enable-wayland-shared was given.
  20046. if test ${enable_wayland_shared+y}
  20047. then :
  20048. enableval=$enable_wayland_shared;
  20049. else $as_nop
  20050. enable_wayland_shared=maybe
  20051. fi
  20052. case "$host" in
  20053. *)
  20054. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20055. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20056. if test x$wayland_egl_lib = x; then
  20057. # This works in Ubuntu 13.10, maybe others
  20058. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20059. fi
  20060. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20061. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20062. ;;
  20063. esac
  20064. if test x$enable_wayland_shared = xmaybe; then
  20065. enable_wayland_shared=yes
  20066. fi
  20067. if test x$have_loadso != xyes && \
  20068. test x$enable_wayland_shared = xyes; then
  20069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  20070. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  20071. enable_wayland_shared=no
  20072. fi
  20073. if test x$have_loadso = xyes && \
  20074. test x$enable_wayland_shared = xyes && \
  20075. test x$wayland_client_lib != x && \
  20076. test x$wayland_egl_lib != x && \
  20077. test x$wayland_cursor_lib != x && \
  20078. test x$xkbcommon_lib != x; then
  20079. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  20080. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  20081. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  20082. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  20083. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC \"$wayland_client_lib\"" >>confdefs.h
  20084. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL \"$wayland_egl_lib\"" >>confdefs.h
  20085. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR \"$wayland_cursor_lib\"" >>confdefs.h
  20086. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON \"$xkbcommon_lib\"" >>confdefs.h
  20087. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  20088. else
  20089. enable_wayland_shared=no
  20090. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  20091. SUMMARY_video="${SUMMARY_video} wayland"
  20092. fi
  20093. have_video=yes
  20094. # Check whether --enable-libdecor was given.
  20095. if test ${enable_libdecor+y}
  20096. then :
  20097. enableval=$enable_libdecor;
  20098. else $as_nop
  20099. enable_libdecor=yes
  20100. fi
  20101. if test x$enable_libdecor = xyes; then
  20102. pkg_failed=no
  20103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdecor-0" >&5
  20104. printf %s "checking for libdecor-0... " >&6; }
  20105. if test -n "$DECOR_CFLAGS"; then
  20106. pkg_cv_DECOR_CFLAGS="$DECOR_CFLAGS"
  20107. elif test -n "$PKG_CONFIG"; then
  20108. if test -n "$PKG_CONFIG" && \
  20109. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20110. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20111. ac_status=$?
  20112. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20113. test $ac_status = 0; }; then
  20114. pkg_cv_DECOR_CFLAGS=`$PKG_CONFIG --cflags "libdecor-0" 2>/dev/null`
  20115. test "x$?" != "x0" && pkg_failed=yes
  20116. else
  20117. pkg_failed=yes
  20118. fi
  20119. else
  20120. pkg_failed=untried
  20121. fi
  20122. if test -n "$DECOR_LIBS"; then
  20123. pkg_cv_DECOR_LIBS="$DECOR_LIBS"
  20124. elif test -n "$PKG_CONFIG"; then
  20125. if test -n "$PKG_CONFIG" && \
  20126. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdecor-0\""; } >&5
  20127. ($PKG_CONFIG --exists --print-errors "libdecor-0") 2>&5
  20128. ac_status=$?
  20129. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20130. test $ac_status = 0; }; then
  20131. pkg_cv_DECOR_LIBS=`$PKG_CONFIG --libs "libdecor-0" 2>/dev/null`
  20132. test "x$?" != "x0" && pkg_failed=yes
  20133. else
  20134. pkg_failed=yes
  20135. fi
  20136. else
  20137. pkg_failed=untried
  20138. fi
  20139. if test $pkg_failed = yes; then
  20140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20141. printf "%s\n" "no" >&6; }
  20142. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20143. _pkg_short_errors_supported=yes
  20144. else
  20145. _pkg_short_errors_supported=no
  20146. fi
  20147. if test $_pkg_short_errors_supported = yes; then
  20148. DECOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdecor-0" 2>&1`
  20149. else
  20150. DECOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdecor-0" 2>&1`
  20151. fi
  20152. # Put the nasty error message in config.log where it belongs
  20153. echo "$DECOR_PKG_ERRORS" >&5
  20154. video_libdecor=no
  20155. elif test $pkg_failed = untried; then
  20156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20157. printf "%s\n" "no" >&6; }
  20158. video_libdecor=no
  20159. else
  20160. DECOR_CFLAGS=$pkg_cv_DECOR_CFLAGS
  20161. DECOR_LIBS=$pkg_cv_DECOR_LIBS
  20162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20163. printf "%s\n" "yes" >&6; }
  20164. video_libdecor=yes
  20165. fi
  20166. if test x$video_libdecor = xyes; then
  20167. EXTRA_CFLAGS="$EXTRA_CFLAGS $DECOR_CFLAGS"
  20168. printf "%s\n" "#define HAVE_LIBDECOR_H 1" >>confdefs.h
  20169. # Check whether --enable-libdecor-shared was given.
  20170. if test ${enable_libdecor_shared+y}
  20171. then :
  20172. enableval=$enable_libdecor_shared;
  20173. else $as_nop
  20174. enable_libdecor_shared=yes
  20175. fi
  20176. decor_lib=`find_lib "libdecor-0.so.*" "$DECOR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  20177. if test x$enable_wayland_shared != xyes; then
  20178. enable_libdecor_shared=no
  20179. fi
  20180. if test x$have_loadso != xyes && \
  20181. test x$enable_libdecor_shared = xyes; then
  20182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&5
  20183. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libdecor loading" >&2;}
  20184. fi
  20185. if test x$have_loadso = xyes && \
  20186. test x$enable_libdecor_shared = xyes && test x$decor_lib != x; then
  20187. echo "-- dynamic libdecor -> $decor_lib"
  20188. printf "%s\n" "#define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR \"$decor_lib\"" >>confdefs.h
  20189. else
  20190. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DECOR_LIBS"
  20191. fi
  20192. fi
  20193. fi
  20194. fi
  20195. fi
  20196. }
  20197. CheckNativeClient()
  20198. {
  20199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20200. /* end confdefs.h. */
  20201. #if !defined(__native_client__)
  20202. #error "NO NACL"
  20203. #endif
  20204. int
  20205. main (void)
  20206. {
  20207. ;
  20208. return 0;
  20209. }
  20210. _ACEOF
  20211. if ac_fn_c_try_compile "$LINENO"
  20212. then :
  20213. printf "%s\n" "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  20214. printf "%s\n" "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  20215. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  20216. printf "%s\n" "#define HAVE_OPENGLES2 1" >>confdefs.h
  20217. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20218. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20219. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  20220. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  20221. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  20222. SUMMARY_audio="${SUMMARY_audio} nacl"
  20223. have_audio=yes
  20224. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  20225. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  20226. have_video=yes
  20227. fi
  20228. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  20229. }
  20230. CheckRPI()
  20231. {
  20232. # Check whether --enable-video-rpi was given.
  20233. if test ${enable_video_rpi+y}
  20234. then :
  20235. enableval=$enable_video_rpi;
  20236. else $as_nop
  20237. enable_video_rpi=yes
  20238. fi
  20239. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  20240. pkg_failed=no
  20241. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bcm_host brcmegl" >&5
  20242. printf %s "checking for bcm_host brcmegl... " >&6; }
  20243. if test -n "$RPI_CFLAGS"; then
  20244. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  20245. elif test -n "$PKG_CONFIG"; then
  20246. if test -n "$PKG_CONFIG" && \
  20247. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20248. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20249. ac_status=$?
  20250. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20251. test $ac_status = 0; }; then
  20252. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  20253. test "x$?" != "x0" && pkg_failed=yes
  20254. else
  20255. pkg_failed=yes
  20256. fi
  20257. else
  20258. pkg_failed=untried
  20259. fi
  20260. if test -n "$RPI_LIBS"; then
  20261. pkg_cv_RPI_LIBS="$RPI_LIBS"
  20262. elif test -n "$PKG_CONFIG"; then
  20263. if test -n "$PKG_CONFIG" && \
  20264. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  20265. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  20266. ac_status=$?
  20267. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20268. test $ac_status = 0; }; then
  20269. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  20270. test "x$?" != "x0" && pkg_failed=yes
  20271. else
  20272. pkg_failed=yes
  20273. fi
  20274. else
  20275. pkg_failed=untried
  20276. fi
  20277. if test $pkg_failed = yes; then
  20278. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20279. printf "%s\n" "no" >&6; }
  20280. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20281. _pkg_short_errors_supported=yes
  20282. else
  20283. _pkg_short_errors_supported=no
  20284. fi
  20285. if test $_pkg_short_errors_supported = yes; then
  20286. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20287. else
  20288. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bcm_host brcmegl" 2>&1`
  20289. fi
  20290. # Put the nasty error message in config.log where it belongs
  20291. echo "$RPI_PKG_ERRORS" >&5
  20292. video_rpi=no
  20293. elif test $pkg_failed = untried; then
  20294. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20295. printf "%s\n" "no" >&6; }
  20296. video_rpi=no
  20297. else
  20298. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  20299. RPI_LIBS=$pkg_cv_RPI_LIBS
  20300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20301. printf "%s\n" "yes" >&6; }
  20302. video_rpi=yes
  20303. fi
  20304. if test x$video_rpi = xno; then
  20305. if test x$ARCH = xnetbsd; then
  20306. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  20307. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  20308. else
  20309. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  20310. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  20311. fi
  20312. fi
  20313. # Save the original compiler flags and libraries
  20314. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  20315. # Add the Raspberry Pi compiler flags and libraries
  20316. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  20317. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi 2/3" >&5
  20318. printf %s "checking for Raspberry Pi 2/3... " >&6; }
  20319. have_video_rpi=no
  20320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20321. /* end confdefs.h. */
  20322. #include <bcm_host.h>
  20323. #include <EGL/eglplatform.h>
  20324. int
  20325. main (void)
  20326. {
  20327. EGL_DISPMANX_WINDOW_T window;
  20328. bcm_host_init();
  20329. ;
  20330. return 0;
  20331. }
  20332. _ACEOF
  20333. if ac_fn_c_try_link "$LINENO"
  20334. then :
  20335. have_video_rpi=yes
  20336. fi
  20337. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20338. conftest$ac_exeext conftest.$ac_ext
  20339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  20340. printf "%s\n" "$have_video_rpi" >&6; }
  20341. # Restore the compiler flags and libraries
  20342. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20343. if test x$have_video_rpi = xyes; then
  20344. CFLAGS="$CFLAGS $RPI_CFLAGS"
  20345. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  20346. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  20347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  20348. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  20349. printf "%s\n" "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  20350. SUMMARY_video="${SUMMARY_video} rpi"
  20351. have_video=yes
  20352. fi
  20353. fi
  20354. }
  20355. CheckX11()
  20356. {
  20357. # Check whether --enable-video-x11 was given.
  20358. if test ${enable_video_x11+y}
  20359. then :
  20360. enableval=$enable_video_x11;
  20361. else $as_nop
  20362. enable_video_x11=yes
  20363. case "$host" in
  20364. *-*-darwin*|*-ios-*)
  20365. enable_video_x11=no
  20366. ;;
  20367. esac
  20368. fi
  20369. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  20370. case "$host" in
  20371. *-*-darwin*)
  20372. # This isn't necessary for X11, but fixes GLX detection
  20373. if test "x$x_includes" = xNONE && \
  20374. test "x$x_libraries" = xNONE && \
  20375. test -d /opt/X11/include && \
  20376. test -d /opt/X11/lib; then
  20377. x_includes="/opt/X11/include"
  20378. x_libraries="/opt/X11/lib"
  20379. fi
  20380. ;;
  20381. esac
  20382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  20383. printf %s "checking for X... " >&6; }
  20384. # Check whether --with-x was given.
  20385. if test ${with_x+y}
  20386. then :
  20387. withval=$with_x;
  20388. fi
  20389. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  20390. if test "x$with_x" = xno; then
  20391. # The user explicitly disabled X.
  20392. have_x=disabled
  20393. else
  20394. case $x_includes,$x_libraries in #(
  20395. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  20396. *,NONE | NONE,*) if test ${ac_cv_have_x+y}
  20397. then :
  20398. printf %s "(cached) " >&6
  20399. else $as_nop
  20400. # One or both of the vars are not set, and there is no cached value.
  20401. ac_x_includes=no
  20402. ac_x_libraries=no
  20403. # Do we need to do anything special at all?
  20404. ac_save_LIBS=$LIBS
  20405. LIBS="-lX11 $LIBS"
  20406. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20407. /* end confdefs.h. */
  20408. #include <X11/Xlib.h>
  20409. int
  20410. main (void)
  20411. {
  20412. XrmInitialize ()
  20413. ;
  20414. return 0;
  20415. }
  20416. _ACEOF
  20417. if ac_fn_c_try_link "$LINENO"
  20418. then :
  20419. # We can compile and link X programs with no special options.
  20420. ac_x_includes=
  20421. ac_x_libraries=
  20422. fi
  20423. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20424. conftest$ac_exeext conftest.$ac_ext
  20425. LIBS="$ac_save_LIBS"
  20426. # If that didn't work, only try xmkmf and file system searches
  20427. # for native compilation.
  20428. if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
  20429. then :
  20430. rm -f -r conftest.dir
  20431. if mkdir conftest.dir; then
  20432. cd conftest.dir
  20433. cat >Imakefile <<'_ACEOF'
  20434. incroot:
  20435. @echo incroot='${INCROOT}'
  20436. usrlibdir:
  20437. @echo usrlibdir='${USRLIBDIR}'
  20438. libdir:
  20439. @echo libdir='${LIBDIR}'
  20440. _ACEOF
  20441. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  20442. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  20443. for ac_var in incroot usrlibdir libdir; do
  20444. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  20445. done
  20446. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  20447. for ac_extension in a so sl dylib la dll; do
  20448. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  20449. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  20450. ac_im_usrlibdir=$ac_im_libdir; break
  20451. fi
  20452. done
  20453. # Screen out bogus values from the imake configuration. They are
  20454. # bogus both because they are the default anyway, and because
  20455. # using them would break gcc on systems where it needs fixed includes.
  20456. case $ac_im_incroot in
  20457. /usr/include) ac_x_includes= ;;
  20458. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  20459. esac
  20460. case $ac_im_usrlibdir in
  20461. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  20462. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  20463. esac
  20464. fi
  20465. cd ..
  20466. rm -f -r conftest.dir
  20467. fi
  20468. # Standard set of common directories for X headers.
  20469. # Check X11 before X11Rn because it is often a symlink to the current release.
  20470. ac_x_header_dirs='
  20471. /usr/X11/include
  20472. /usr/X11R7/include
  20473. /usr/X11R6/include
  20474. /usr/X11R5/include
  20475. /usr/X11R4/include
  20476. /usr/include/X11
  20477. /usr/include/X11R7
  20478. /usr/include/X11R6
  20479. /usr/include/X11R5
  20480. /usr/include/X11R4
  20481. /usr/local/X11/include
  20482. /usr/local/X11R7/include
  20483. /usr/local/X11R6/include
  20484. /usr/local/X11R5/include
  20485. /usr/local/X11R4/include
  20486. /usr/local/include/X11
  20487. /usr/local/include/X11R7
  20488. /usr/local/include/X11R6
  20489. /usr/local/include/X11R5
  20490. /usr/local/include/X11R4
  20491. /opt/X11/include
  20492. /usr/X386/include
  20493. /usr/x386/include
  20494. /usr/XFree86/include/X11
  20495. /usr/include
  20496. /usr/local/include
  20497. /usr/unsupported/include
  20498. /usr/athena/include
  20499. /usr/local/x11r5/include
  20500. /usr/lpp/Xamples/include
  20501. /usr/openwin/include
  20502. /usr/openwin/share/include'
  20503. if test "$ac_x_includes" = no; then
  20504. # Guess where to find include files, by looking for Xlib.h.
  20505. # First, try using that file with no special directory specified.
  20506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20507. /* end confdefs.h. */
  20508. #include <X11/Xlib.h>
  20509. _ACEOF
  20510. if ac_fn_c_try_cpp "$LINENO"
  20511. then :
  20512. # We can compile using X headers with no special include directory.
  20513. ac_x_includes=
  20514. else $as_nop
  20515. for ac_dir in $ac_x_header_dirs; do
  20516. if test -r "$ac_dir/X11/Xlib.h"; then
  20517. ac_x_includes=$ac_dir
  20518. break
  20519. fi
  20520. done
  20521. fi
  20522. rm -f conftest.err conftest.i conftest.$ac_ext
  20523. fi # $ac_x_includes = no
  20524. if test "$ac_x_libraries" = no; then
  20525. # Check for the libraries.
  20526. # See if we find them without any special options.
  20527. # Don't add to $LIBS permanently.
  20528. ac_save_LIBS=$LIBS
  20529. LIBS="-lX11 $LIBS"
  20530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20531. /* end confdefs.h. */
  20532. #include <X11/Xlib.h>
  20533. int
  20534. main (void)
  20535. {
  20536. XrmInitialize ()
  20537. ;
  20538. return 0;
  20539. }
  20540. _ACEOF
  20541. if ac_fn_c_try_link "$LINENO"
  20542. then :
  20543. LIBS=$ac_save_LIBS
  20544. # We can link X programs with no special library path.
  20545. ac_x_libraries=
  20546. else $as_nop
  20547. LIBS=$ac_save_LIBS
  20548. for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  20549. do
  20550. # Don't even attempt the hair of trying to link an X program!
  20551. for ac_extension in a so sl dylib la dll; do
  20552. if test -r "$ac_dir/libX11.$ac_extension"; then
  20553. ac_x_libraries=$ac_dir
  20554. break 2
  20555. fi
  20556. done
  20557. done
  20558. fi
  20559. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20560. conftest$ac_exeext conftest.$ac_ext
  20561. fi # $ac_x_libraries = no
  20562. fi
  20563. # Record the results.
  20564. case $ac_x_includes,$ac_x_libraries in #(
  20565. no,* | *,no | *\'*) :
  20566. # Didn't find X, or a directory has "'" in its name.
  20567. ac_cv_have_x="have_x=no" ;; #(
  20568. *) :
  20569. # Record where we found X for the cache.
  20570. ac_cv_have_x="have_x=yes\
  20571. ac_x_includes='$ac_x_includes'\
  20572. ac_x_libraries='$ac_x_libraries'" ;;
  20573. esac
  20574. fi
  20575. ;; #(
  20576. *) have_x=yes;;
  20577. esac
  20578. eval "$ac_cv_have_x"
  20579. fi # $with_x != no
  20580. if test "$have_x" != yes; then
  20581. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  20582. printf "%s\n" "$have_x" >&6; }
  20583. no_x=yes
  20584. else
  20585. # If each of the values was on the command line, it overrides each guess.
  20586. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  20587. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  20588. # Update the cache value to reflect the command line values.
  20589. ac_cv_have_x="have_x=yes\
  20590. ac_x_includes='$x_includes'\
  20591. ac_x_libraries='$x_libraries'"
  20592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  20593. printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
  20594. fi
  20595. if test "$no_x" = yes; then
  20596. # Not all programs may use this symbol, but it does not hurt to define it.
  20597. printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
  20598. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  20599. else
  20600. if test -n "$x_includes"; then
  20601. X_CFLAGS="$X_CFLAGS -I$x_includes"
  20602. fi
  20603. # It would also be nice to do this for all -L options, not just this one.
  20604. if test -n "$x_libraries"; then
  20605. X_LIBS="$X_LIBS -L$x_libraries"
  20606. # For Solaris; some versions of Sun CC require a space after -R and
  20607. # others require no space. Words are not sufficient . . . .
  20608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  20609. printf %s "checking whether -R must be followed by a space... " >&6; }
  20610. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  20611. ac_xsave_c_werror_flag=$ac_c_werror_flag
  20612. ac_c_werror_flag=yes
  20613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20614. /* end confdefs.h. */
  20615. int
  20616. main (void)
  20617. {
  20618. ;
  20619. return 0;
  20620. }
  20621. _ACEOF
  20622. if ac_fn_c_try_link "$LINENO"
  20623. then :
  20624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20625. printf "%s\n" "no" >&6; }
  20626. X_LIBS="$X_LIBS -R$x_libraries"
  20627. else $as_nop
  20628. LIBS="$ac_xsave_LIBS -R $x_libraries"
  20629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20630. /* end confdefs.h. */
  20631. int
  20632. main (void)
  20633. {
  20634. ;
  20635. return 0;
  20636. }
  20637. _ACEOF
  20638. if ac_fn_c_try_link "$LINENO"
  20639. then :
  20640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20641. printf "%s\n" "yes" >&6; }
  20642. X_LIBS="$X_LIBS -R $x_libraries"
  20643. else $as_nop
  20644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  20645. printf "%s\n" "neither works" >&6; }
  20646. fi
  20647. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20648. conftest$ac_exeext conftest.$ac_ext
  20649. fi
  20650. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20651. conftest$ac_exeext conftest.$ac_ext
  20652. ac_c_werror_flag=$ac_xsave_c_werror_flag
  20653. LIBS=$ac_xsave_LIBS
  20654. fi
  20655. # Check for system-dependent libraries X programs must link with.
  20656. # Do this before checking for the system-independent R6 libraries
  20657. # (-lICE), since we may need -lsocket or whatever for X linking.
  20658. if test "$ISC" = yes; then
  20659. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  20660. else
  20661. # Martyn Johnson says this is needed for Ultrix, if the X
  20662. # libraries were built with DECnet support. And Karl Berry says
  20663. # the Alpha needs dnet_stub (dnet does not exist).
  20664. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  20665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20666. /* end confdefs.h. */
  20667. /* Override any GCC internal prototype to avoid an error.
  20668. Use char because int might match the return type of a GCC
  20669. builtin and then its argument prototype would still apply. */
  20670. char XOpenDisplay ();
  20671. int
  20672. main (void)
  20673. {
  20674. return XOpenDisplay ();
  20675. ;
  20676. return 0;
  20677. }
  20678. _ACEOF
  20679. if ac_fn_c_try_link "$LINENO"
  20680. then :
  20681. else $as_nop
  20682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  20683. printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
  20684. if test ${ac_cv_lib_dnet_dnet_ntoa+y}
  20685. then :
  20686. printf %s "(cached) " >&6
  20687. else $as_nop
  20688. ac_check_lib_save_LIBS=$LIBS
  20689. LIBS="-ldnet $LIBS"
  20690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20691. /* end confdefs.h. */
  20692. /* Override any GCC internal prototype to avoid an error.
  20693. Use char because int might match the return type of a GCC
  20694. builtin and then its argument prototype would still apply. */
  20695. char dnet_ntoa ();
  20696. int
  20697. main (void)
  20698. {
  20699. return dnet_ntoa ();
  20700. ;
  20701. return 0;
  20702. }
  20703. _ACEOF
  20704. if ac_fn_c_try_link "$LINENO"
  20705. then :
  20706. ac_cv_lib_dnet_dnet_ntoa=yes
  20707. else $as_nop
  20708. ac_cv_lib_dnet_dnet_ntoa=no
  20709. fi
  20710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20711. conftest$ac_exeext conftest.$ac_ext
  20712. LIBS=$ac_check_lib_save_LIBS
  20713. fi
  20714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  20715. printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  20716. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
  20717. then :
  20718. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  20719. fi
  20720. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  20721. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  20722. printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  20723. if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
  20724. then :
  20725. printf %s "(cached) " >&6
  20726. else $as_nop
  20727. ac_check_lib_save_LIBS=$LIBS
  20728. LIBS="-ldnet_stub $LIBS"
  20729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20730. /* end confdefs.h. */
  20731. /* Override any GCC internal prototype to avoid an error.
  20732. Use char because int might match the return type of a GCC
  20733. builtin and then its argument prototype would still apply. */
  20734. char dnet_ntoa ();
  20735. int
  20736. main (void)
  20737. {
  20738. return dnet_ntoa ();
  20739. ;
  20740. return 0;
  20741. }
  20742. _ACEOF
  20743. if ac_fn_c_try_link "$LINENO"
  20744. then :
  20745. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  20746. else $as_nop
  20747. ac_cv_lib_dnet_stub_dnet_ntoa=no
  20748. fi
  20749. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20750. conftest$ac_exeext conftest.$ac_ext
  20751. LIBS=$ac_check_lib_save_LIBS
  20752. fi
  20753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  20754. printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  20755. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
  20756. then :
  20757. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  20758. fi
  20759. fi
  20760. fi
  20761. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20762. conftest$ac_exeext conftest.$ac_ext
  20763. LIBS="$ac_xsave_LIBS"
  20764. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  20765. # to get the SysV transport functions.
  20766. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  20767. # needs -lnsl.
  20768. # The nsl library prevents programs from opening the X display
  20769. # on Irix 5.2, according to T.E. Dickey.
  20770. # The functions gethostbyname, getservbyname, and inet_addr are
  20771. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  20772. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  20773. if test "x$ac_cv_func_gethostbyname" = xyes
  20774. then :
  20775. fi
  20776. if test $ac_cv_func_gethostbyname = no; then
  20777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  20778. printf %s "checking for gethostbyname in -lnsl... " >&6; }
  20779. if test ${ac_cv_lib_nsl_gethostbyname+y}
  20780. then :
  20781. printf %s "(cached) " >&6
  20782. else $as_nop
  20783. ac_check_lib_save_LIBS=$LIBS
  20784. LIBS="-lnsl $LIBS"
  20785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20786. /* end confdefs.h. */
  20787. /* Override any GCC internal prototype to avoid an error.
  20788. Use char because int might match the return type of a GCC
  20789. builtin and then its argument prototype would still apply. */
  20790. char gethostbyname ();
  20791. int
  20792. main (void)
  20793. {
  20794. return gethostbyname ();
  20795. ;
  20796. return 0;
  20797. }
  20798. _ACEOF
  20799. if ac_fn_c_try_link "$LINENO"
  20800. then :
  20801. ac_cv_lib_nsl_gethostbyname=yes
  20802. else $as_nop
  20803. ac_cv_lib_nsl_gethostbyname=no
  20804. fi
  20805. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20806. conftest$ac_exeext conftest.$ac_ext
  20807. LIBS=$ac_check_lib_save_LIBS
  20808. fi
  20809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  20810. printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
  20811. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
  20812. then :
  20813. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  20814. fi
  20815. if test $ac_cv_lib_nsl_gethostbyname = no; then
  20816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  20817. printf %s "checking for gethostbyname in -lbsd... " >&6; }
  20818. if test ${ac_cv_lib_bsd_gethostbyname+y}
  20819. then :
  20820. printf %s "(cached) " >&6
  20821. else $as_nop
  20822. ac_check_lib_save_LIBS=$LIBS
  20823. LIBS="-lbsd $LIBS"
  20824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20825. /* end confdefs.h. */
  20826. /* Override any GCC internal prototype to avoid an error.
  20827. Use char because int might match the return type of a GCC
  20828. builtin and then its argument prototype would still apply. */
  20829. char gethostbyname ();
  20830. int
  20831. main (void)
  20832. {
  20833. return gethostbyname ();
  20834. ;
  20835. return 0;
  20836. }
  20837. _ACEOF
  20838. if ac_fn_c_try_link "$LINENO"
  20839. then :
  20840. ac_cv_lib_bsd_gethostbyname=yes
  20841. else $as_nop
  20842. ac_cv_lib_bsd_gethostbyname=no
  20843. fi
  20844. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20845. conftest$ac_exeext conftest.$ac_ext
  20846. LIBS=$ac_check_lib_save_LIBS
  20847. fi
  20848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  20849. printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
  20850. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
  20851. then :
  20852. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  20853. fi
  20854. fi
  20855. fi
  20856. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  20857. # socket/setsockopt and other routines are undefined under SCO ODT
  20858. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  20859. # on later versions), says Simon Leinen: it contains gethostby*
  20860. # variants that don't use the name server (or something). -lsocket
  20861. # must be given before -lnsl if both are needed. We assume that
  20862. # if connect needs -lnsl, so does gethostbyname.
  20863. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  20864. if test "x$ac_cv_func_connect" = xyes
  20865. then :
  20866. fi
  20867. if test $ac_cv_func_connect = no; then
  20868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  20869. printf %s "checking for connect in -lsocket... " >&6; }
  20870. if test ${ac_cv_lib_socket_connect+y}
  20871. then :
  20872. printf %s "(cached) " >&6
  20873. else $as_nop
  20874. ac_check_lib_save_LIBS=$LIBS
  20875. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  20876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20877. /* end confdefs.h. */
  20878. /* Override any GCC internal prototype to avoid an error.
  20879. Use char because int might match the return type of a GCC
  20880. builtin and then its argument prototype would still apply. */
  20881. char connect ();
  20882. int
  20883. main (void)
  20884. {
  20885. return connect ();
  20886. ;
  20887. return 0;
  20888. }
  20889. _ACEOF
  20890. if ac_fn_c_try_link "$LINENO"
  20891. then :
  20892. ac_cv_lib_socket_connect=yes
  20893. else $as_nop
  20894. ac_cv_lib_socket_connect=no
  20895. fi
  20896. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20897. conftest$ac_exeext conftest.$ac_ext
  20898. LIBS=$ac_check_lib_save_LIBS
  20899. fi
  20900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  20901. printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
  20902. if test "x$ac_cv_lib_socket_connect" = xyes
  20903. then :
  20904. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  20905. fi
  20906. fi
  20907. # Guillermo Gomez says -lposix is necessary on A/UX.
  20908. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  20909. if test "x$ac_cv_func_remove" = xyes
  20910. then :
  20911. fi
  20912. if test $ac_cv_func_remove = no; then
  20913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  20914. printf %s "checking for remove in -lposix... " >&6; }
  20915. if test ${ac_cv_lib_posix_remove+y}
  20916. then :
  20917. printf %s "(cached) " >&6
  20918. else $as_nop
  20919. ac_check_lib_save_LIBS=$LIBS
  20920. LIBS="-lposix $LIBS"
  20921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20922. /* end confdefs.h. */
  20923. /* Override any GCC internal prototype to avoid an error.
  20924. Use char because int might match the return type of a GCC
  20925. builtin and then its argument prototype would still apply. */
  20926. char remove ();
  20927. int
  20928. main (void)
  20929. {
  20930. return remove ();
  20931. ;
  20932. return 0;
  20933. }
  20934. _ACEOF
  20935. if ac_fn_c_try_link "$LINENO"
  20936. then :
  20937. ac_cv_lib_posix_remove=yes
  20938. else $as_nop
  20939. ac_cv_lib_posix_remove=no
  20940. fi
  20941. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20942. conftest$ac_exeext conftest.$ac_ext
  20943. LIBS=$ac_check_lib_save_LIBS
  20944. fi
  20945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  20946. printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
  20947. if test "x$ac_cv_lib_posix_remove" = xyes
  20948. then :
  20949. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  20950. fi
  20951. fi
  20952. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  20953. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  20954. if test "x$ac_cv_func_shmat" = xyes
  20955. then :
  20956. fi
  20957. if test $ac_cv_func_shmat = no; then
  20958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  20959. printf %s "checking for shmat in -lipc... " >&6; }
  20960. if test ${ac_cv_lib_ipc_shmat+y}
  20961. then :
  20962. printf %s "(cached) " >&6
  20963. else $as_nop
  20964. ac_check_lib_save_LIBS=$LIBS
  20965. LIBS="-lipc $LIBS"
  20966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20967. /* end confdefs.h. */
  20968. /* Override any GCC internal prototype to avoid an error.
  20969. Use char because int might match the return type of a GCC
  20970. builtin and then its argument prototype would still apply. */
  20971. char shmat ();
  20972. int
  20973. main (void)
  20974. {
  20975. return shmat ();
  20976. ;
  20977. return 0;
  20978. }
  20979. _ACEOF
  20980. if ac_fn_c_try_link "$LINENO"
  20981. then :
  20982. ac_cv_lib_ipc_shmat=yes
  20983. else $as_nop
  20984. ac_cv_lib_ipc_shmat=no
  20985. fi
  20986. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20987. conftest$ac_exeext conftest.$ac_ext
  20988. LIBS=$ac_check_lib_save_LIBS
  20989. fi
  20990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  20991. printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
  20992. if test "x$ac_cv_lib_ipc_shmat" = xyes
  20993. then :
  20994. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  20995. fi
  20996. fi
  20997. fi
  20998. # Check for libraries that X11R6 Xt/Xaw programs need.
  20999. ac_save_LDFLAGS=$LDFLAGS
  21000. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  21001. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  21002. # check for ICE first), but we must link in the order -lSM -lICE or
  21003. # we get undefined symbols. So assume we have SM if we have ICE.
  21004. # These have to be linked with before -lX11, unlike the other
  21005. # libraries we check for below, so use a different variable.
  21006. # John Interrante, Karl Berry
  21007. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  21008. printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
  21009. if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
  21010. then :
  21011. printf %s "(cached) " >&6
  21012. else $as_nop
  21013. ac_check_lib_save_LIBS=$LIBS
  21014. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  21015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21016. /* end confdefs.h. */
  21017. /* Override any GCC internal prototype to avoid an error.
  21018. Use char because int might match the return type of a GCC
  21019. builtin and then its argument prototype would still apply. */
  21020. char IceConnectionNumber ();
  21021. int
  21022. main (void)
  21023. {
  21024. return IceConnectionNumber ();
  21025. ;
  21026. return 0;
  21027. }
  21028. _ACEOF
  21029. if ac_fn_c_try_link "$LINENO"
  21030. then :
  21031. ac_cv_lib_ICE_IceConnectionNumber=yes
  21032. else $as_nop
  21033. ac_cv_lib_ICE_IceConnectionNumber=no
  21034. fi
  21035. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21036. conftest$ac_exeext conftest.$ac_ext
  21037. LIBS=$ac_check_lib_save_LIBS
  21038. fi
  21039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  21040. printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  21041. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
  21042. then :
  21043. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  21044. fi
  21045. LDFLAGS=$ac_save_LDFLAGS
  21046. fi
  21047. if test x$have_x = xyes; then
  21048. # Check whether --enable-x11-shared was given.
  21049. if test ${enable_x11_shared+y}
  21050. then :
  21051. enableval=$enable_x11_shared;
  21052. else $as_nop
  21053. enable_x11_shared=maybe
  21054. fi
  21055. case "$host" in
  21056. *-*-darwin*)
  21057. # Apple now puts this in /opt/X11
  21058. x11_lib='/opt/X11/lib/libX11.6.dylib'
  21059. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  21060. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  21061. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  21062. xfixes_lib='/opt/X11/lib/libXfixes.3.dylib'
  21063. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  21064. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  21065. xss_lib='/opt/X11/lib/libXss.1.dylib'
  21066. ;;
  21067. *-*-openbsd*)
  21068. x11_lib='libX11.so'
  21069. x11ext_lib='libXext.so'
  21070. xcursor_lib='libXcursor.so'
  21071. xinput_lib='libXi.so'
  21072. xfixes_lib='libXfixes.so'
  21073. xrandr_lib='libXrandr.so'
  21074. xrender_lib='libXrender.so'
  21075. xss_lib='libXss.so'
  21076. ;;
  21077. *)
  21078. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21079. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21080. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21081. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21082. xfixes_lib=`find_lib "libXfixes.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21083. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21084. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21085. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  21086. ;;
  21087. esac
  21088. if test x$ac_cv_func_shmat != xyes; then
  21089. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  21090. fi
  21091. CFLAGS="$CFLAGS $X_CFLAGS"
  21092. LDFLAGS="$LDFLAGS $X_LIBS"
  21093. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  21094. #include <X11/Xproto.h>
  21095. "
  21096. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes
  21097. then :
  21098. have_xext_h_hdr=yes
  21099. else $as_nop
  21100. have_xext_h_hdr=no
  21101. fi
  21102. if test x$have_xext_h_hdr != xyes; then
  21103. as_fn_error $? "
  21104. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  21105. " "$LINENO" 5
  21106. fi
  21107. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  21108. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  21109. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  21110. # Needed so SDL applications can include SDL_syswm.h
  21111. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  21112. if test x$enable_x11_shared = xmaybe; then
  21113. enable_x11_shared=yes
  21114. fi
  21115. if test x$have_loadso != xyes && \
  21116. test x$enable_x11_shared = xyes; then
  21117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  21118. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  21119. enable_x11_shared=no
  21120. fi
  21121. if test x$have_loadso = xyes && \
  21122. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  21123. echo "-- dynamic libX11 -> $x11_lib"
  21124. echo "-- dynamic libX11ext -> $x11ext_lib"
  21125. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC \"$x11_lib\"" >>confdefs.h
  21126. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT \"$x11ext_lib\"" >>confdefs.h
  21127. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  21128. else
  21129. enable_x11_shared=no
  21130. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  21131. SUMMARY_video="${SUMMARY_video} x11"
  21132. fi
  21133. have_video=yes
  21134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  21135. printf %s "checking for XGenericEvent... " >&6; }
  21136. have_XGenericEvent=no
  21137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21138. /* end confdefs.h. */
  21139. #include <X11/Xlib.h>
  21140. int
  21141. main (void)
  21142. {
  21143. Display *display;
  21144. XEvent event;
  21145. XGenericEventCookie *cookie = &event.xcookie;
  21146. XNextEvent(display, &event);
  21147. XGetEventData(display, cookie);
  21148. XFreeEventData(display, cookie);
  21149. ;
  21150. return 0;
  21151. }
  21152. _ACEOF
  21153. if ac_fn_c_try_compile "$LINENO"
  21154. then :
  21155. have_XGenericEvent=yes
  21156. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  21157. fi
  21158. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  21160. printf "%s\n" "$have_XGenericEvent" >&6; }
  21161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  21162. printf %s "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  21163. if test ${ac_cv_lib_X11_XkbKeycodeToKeysym+y}
  21164. then :
  21165. printf %s "(cached) " >&6
  21166. else $as_nop
  21167. ac_check_lib_save_LIBS=$LIBS
  21168. LIBS="-lX11 $LIBS"
  21169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21170. /* end confdefs.h. */
  21171. /* Override any GCC internal prototype to avoid an error.
  21172. Use char because int might match the return type of a GCC
  21173. builtin and then its argument prototype would still apply. */
  21174. char XkbKeycodeToKeysym ();
  21175. int
  21176. main (void)
  21177. {
  21178. return XkbKeycodeToKeysym ();
  21179. ;
  21180. return 0;
  21181. }
  21182. _ACEOF
  21183. if ac_fn_c_try_link "$LINENO"
  21184. then :
  21185. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  21186. else $as_nop
  21187. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  21188. fi
  21189. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21190. conftest$ac_exeext conftest.$ac_ext
  21191. LIBS=$ac_check_lib_save_LIBS
  21192. fi
  21193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  21194. printf "%s\n" "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  21195. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes
  21196. then :
  21197. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  21198. fi
  21199. # Check whether --enable-video-x11-xcursor was given.
  21200. if test ${enable_video_x11_xcursor+y}
  21201. then :
  21202. enableval=$enable_video_x11_xcursor;
  21203. else $as_nop
  21204. enable_video_x11_xcursor=yes
  21205. fi
  21206. if test x$enable_video_x11_xcursor = xyes; then
  21207. definitely_enable_video_x11_xcursor=no
  21208. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  21209. "
  21210. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes
  21211. then :
  21212. have_xcursor_h_hdr=yes
  21213. else $as_nop
  21214. have_xcursor_h_hdr=no
  21215. fi
  21216. if test x$have_xcursor_h_hdr = xyes; then
  21217. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  21218. echo "-- dynamic libXcursor -> $xcursor_lib"
  21219. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR \"$xcursor_lib\"" >>confdefs.h
  21220. definitely_enable_video_x11_xcursor=yes
  21221. else
  21222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  21223. printf %s "checking for XcursorImageCreate in -lXcursor... " >&6; }
  21224. if test ${ac_cv_lib_Xcursor_XcursorImageCreate+y}
  21225. then :
  21226. printf %s "(cached) " >&6
  21227. else $as_nop
  21228. ac_check_lib_save_LIBS=$LIBS
  21229. LIBS="-lXcursor $LIBS"
  21230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21231. /* end confdefs.h. */
  21232. /* Override any GCC internal prototype to avoid an error.
  21233. Use char because int might match the return type of a GCC
  21234. builtin and then its argument prototype would still apply. */
  21235. char XcursorImageCreate ();
  21236. int
  21237. main (void)
  21238. {
  21239. return XcursorImageCreate ();
  21240. ;
  21241. return 0;
  21242. }
  21243. _ACEOF
  21244. if ac_fn_c_try_link "$LINENO"
  21245. then :
  21246. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  21247. else $as_nop
  21248. ac_cv_lib_Xcursor_XcursorImageCreate=no
  21249. fi
  21250. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21251. conftest$ac_exeext conftest.$ac_ext
  21252. LIBS=$ac_check_lib_save_LIBS
  21253. fi
  21254. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  21255. printf "%s\n" "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  21256. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes
  21257. then :
  21258. have_xcursor_lib=yes
  21259. fi
  21260. if test x$have_xcursor_lib = xyes ; then
  21261. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  21262. definitely_enable_video_x11_xcursor=yes
  21263. fi
  21264. fi
  21265. fi
  21266. fi
  21267. if test x$definitely_enable_video_x11_xcursor = xyes; then
  21268. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  21269. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  21270. fi
  21271. # Check whether --enable-video-x11-xdbe was given.
  21272. if test ${enable_video_x11_xdbe+y}
  21273. then :
  21274. enableval=$enable_video_x11_xdbe;
  21275. else $as_nop
  21276. enable_video_x11_xdbe=yes
  21277. fi
  21278. if test x$enable_video_x11_xdbe = xyes; then
  21279. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  21280. "
  21281. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes
  21282. then :
  21283. have_dbe_h_hdr=yes
  21284. else $as_nop
  21285. have_dbe_h_hdr=no
  21286. fi
  21287. if test x$have_dbe_h_hdr = xyes; then
  21288. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  21289. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  21290. fi
  21291. fi
  21292. # Check whether --enable-video-x11-xinput was given.
  21293. if test ${enable_video_x11_xinput+y}
  21294. then :
  21295. enableval=$enable_video_x11_xinput;
  21296. else $as_nop
  21297. enable_video_x11_xinput=yes
  21298. fi
  21299. if test x$enable_video_x11_xinput = xyes; then
  21300. definitely_enable_video_x11_xinput=no
  21301. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  21302. "
  21303. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes
  21304. then :
  21305. have_xinput_h_hdr=yes
  21306. else $as_nop
  21307. have_xinput_h_hdr=no
  21308. fi
  21309. if test x$have_xinput_h_hdr = xyes; then
  21310. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  21311. echo "-- dynamic libXi -> $xinput_lib"
  21312. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 \"$xinput_lib\"" >>confdefs.h
  21313. definitely_enable_video_x11_xinput=yes
  21314. else
  21315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  21316. printf %s "checking for XOpenDevice in -lXi... " >&6; }
  21317. if test ${ac_cv_lib_Xi_XOpenDevice+y}
  21318. then :
  21319. printf %s "(cached) " >&6
  21320. else $as_nop
  21321. ac_check_lib_save_LIBS=$LIBS
  21322. LIBS="-lXi $LIBS"
  21323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21324. /* end confdefs.h. */
  21325. /* Override any GCC internal prototype to avoid an error.
  21326. Use char because int might match the return type of a GCC
  21327. builtin and then its argument prototype would still apply. */
  21328. char XOpenDevice ();
  21329. int
  21330. main (void)
  21331. {
  21332. return XOpenDevice ();
  21333. ;
  21334. return 0;
  21335. }
  21336. _ACEOF
  21337. if ac_fn_c_try_link "$LINENO"
  21338. then :
  21339. ac_cv_lib_Xi_XOpenDevice=yes
  21340. else $as_nop
  21341. ac_cv_lib_Xi_XOpenDevice=no
  21342. fi
  21343. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21344. conftest$ac_exeext conftest.$ac_ext
  21345. LIBS=$ac_check_lib_save_LIBS
  21346. fi
  21347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  21348. printf "%s\n" "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  21349. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes
  21350. then :
  21351. have_xinput_lib=yes
  21352. fi
  21353. if test x$have_xinput_lib = xyes ; then
  21354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  21355. definitely_enable_video_x11_xinput=yes
  21356. fi
  21357. fi
  21358. fi
  21359. fi
  21360. if test x$definitely_enable_video_x11_xinput = xyes; then
  21361. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  21362. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  21363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  21364. printf %s "checking for xinput2 multitouch... " >&6; }
  21365. have_xinput2_multitouch=no
  21366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21367. /* end confdefs.h. */
  21368. #include <X11/Xlib.h>
  21369. #include <X11/Xproto.h>
  21370. #include <X11/extensions/XInput2.h>
  21371. int
  21372. main (void)
  21373. {
  21374. int event_type = XI_TouchBegin;
  21375. XITouchClassInfo *t;
  21376. ;
  21377. return 0;
  21378. }
  21379. _ACEOF
  21380. if ac_fn_c_try_compile "$LINENO"
  21381. then :
  21382. have_xinput2_multitouch=yes
  21383. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  21384. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  21385. fi
  21386. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21387. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  21388. printf "%s\n" "$have_xinput2_multitouch" >&6; }
  21389. fi
  21390. # Check whether --enable-video-x11-xfixes was given.
  21391. if test ${enable_video_x11_xfixes+y}
  21392. then :
  21393. enableval=$enable_video_x11_xfixes;
  21394. else $as_nop
  21395. enable_video_x11_xfixes=yes
  21396. fi
  21397. if test x$enable_video_x11_xfixes = xyes; then
  21398. definitely_enable_video_x11_xfixes=no
  21399. # check along with XInput2.h because we use Xfixes with XIBarrierReleasePointer
  21400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/Xfixes.h" >&5
  21401. printf %s "checking for X11/extensions/Xfixes.h... " >&6; }
  21402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21403. /* end confdefs.h. */
  21404. #include <X11/Xlib.h>
  21405. #include <X11/Xproto.h>
  21406. #include <X11/extensions/XInput2.h>
  21407. #include <X11/extensions/Xfixes.h>
  21408. int
  21409. main (void)
  21410. {
  21411. BarrierEventID b;
  21412. ;
  21413. return 0;
  21414. }
  21415. _ACEOF
  21416. if ac_fn_c_try_compile "$LINENO"
  21417. then :
  21418. have_xfixes_h_hdr=yes
  21419. else $as_nop
  21420. have_xfixes_h_hdr=no
  21421. fi
  21422. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xfixes_h_hdr" >&5
  21424. printf "%s\n" "$have_xfixes_h_hdr" >&6; }
  21425. if test x$have_xfixes_h_hdr = xyes; then
  21426. if test x$enable_x11_shared = xyes && test x$xfixes_lib != x ; then
  21427. echo "-- dynamic libXfixes -> $xfixes_lib"
  21428. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XFIXES \"$xfixes_lib\"" >>confdefs.h
  21429. definitely_enable_video_x11_xfixes=yes
  21430. else
  21431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFixesCreatePointerBarrier in -lXfixes" >&5
  21432. printf %s "checking for XFixesCreatePointerBarrier in -lXfixes... " >&6; }
  21433. if test ${ac_cv_lib_Xfixes_XFixesCreatePointerBarrier+y}
  21434. then :
  21435. printf %s "(cached) " >&6
  21436. else $as_nop
  21437. ac_check_lib_save_LIBS=$LIBS
  21438. LIBS="-lXfixes $LIBS"
  21439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21440. /* end confdefs.h. */
  21441. /* Override any GCC internal prototype to avoid an error.
  21442. Use char because int might match the return type of a GCC
  21443. builtin and then its argument prototype would still apply. */
  21444. char XFixesCreatePointerBarrier ();
  21445. int
  21446. main (void)
  21447. {
  21448. return XFixesCreatePointerBarrier ();
  21449. ;
  21450. return 0;
  21451. }
  21452. _ACEOF
  21453. if ac_fn_c_try_link "$LINENO"
  21454. then :
  21455. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=yes
  21456. else $as_nop
  21457. ac_cv_lib_Xfixes_XFixesCreatePointerBarrier=no
  21458. fi
  21459. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21460. conftest$ac_exeext conftest.$ac_ext
  21461. LIBS=$ac_check_lib_save_LIBS
  21462. fi
  21463. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&5
  21464. printf "%s\n" "$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" >&6; }
  21465. if test "x$ac_cv_lib_Xfixes_XFixesCreatePointerBarrier" = xyes
  21466. then :
  21467. have_xfixes_lib=yes
  21468. fi
  21469. if test x$have_xfixes_lib = xyes ; then
  21470. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXfixes"
  21471. definitely_enable_video_x11_xfixes=yes
  21472. fi
  21473. fi
  21474. fi
  21475. fi
  21476. if test x$definitely_enable_video_x11_xfixes = xyes; then
  21477. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XFIXES 1" >>confdefs.h
  21478. SUMMARY_video_x11="${SUMMARY_video_x11} xfixes"
  21479. fi
  21480. # Check whether --enable-video-x11-xrandr was given.
  21481. if test ${enable_video_x11_xrandr+y}
  21482. then :
  21483. enableval=$enable_video_x11_xrandr;
  21484. else $as_nop
  21485. enable_video_x11_xrandr=yes
  21486. fi
  21487. if test x$enable_video_x11_xrandr = xyes; then
  21488. definitely_enable_video_x11_xrandr=no
  21489. have_xrandr_h_hdr=no
  21490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21491. /* end confdefs.h. */
  21492. #include <X11/Xlib.h>
  21493. #include <X11/extensions/Xrandr.h>
  21494. int
  21495. main (void)
  21496. {
  21497. XRRScreenResources *res = NULL;
  21498. ;
  21499. return 0;
  21500. }
  21501. _ACEOF
  21502. if ac_fn_c_try_compile "$LINENO"
  21503. then :
  21504. have_xrandr_h_hdr=yes
  21505. fi
  21506. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21507. if test x$have_xrandr_h_hdr = xyes; then
  21508. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  21509. echo "-- dynamic libXrandr -> $xrandr_lib"
  21510. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR \"$xrandr_lib\"" >>confdefs.h
  21511. definitely_enable_video_x11_xrandr=yes
  21512. else
  21513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  21514. printf %s "checking for XRRQueryExtension in -lXrandr... " >&6; }
  21515. if test ${ac_cv_lib_Xrandr_XRRQueryExtension+y}
  21516. then :
  21517. printf %s "(cached) " >&6
  21518. else $as_nop
  21519. ac_check_lib_save_LIBS=$LIBS
  21520. LIBS="-lXrandr $LIBS"
  21521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21522. /* end confdefs.h. */
  21523. /* Override any GCC internal prototype to avoid an error.
  21524. Use char because int might match the return type of a GCC
  21525. builtin and then its argument prototype would still apply. */
  21526. char XRRQueryExtension ();
  21527. int
  21528. main (void)
  21529. {
  21530. return XRRQueryExtension ();
  21531. ;
  21532. return 0;
  21533. }
  21534. _ACEOF
  21535. if ac_fn_c_try_link "$LINENO"
  21536. then :
  21537. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  21538. else $as_nop
  21539. ac_cv_lib_Xrandr_XRRQueryExtension=no
  21540. fi
  21541. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21542. conftest$ac_exeext conftest.$ac_ext
  21543. LIBS=$ac_check_lib_save_LIBS
  21544. fi
  21545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  21546. printf "%s\n" "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  21547. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes
  21548. then :
  21549. have_xrandr_lib=yes
  21550. fi
  21551. if test x$have_xrandr_lib = xyes ; then
  21552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  21553. definitely_enable_video_x11_xrandr=yes
  21554. fi
  21555. fi
  21556. fi
  21557. fi
  21558. if test x$definitely_enable_video_x11_xrandr = xyes; then
  21559. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  21560. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  21561. fi
  21562. # Check whether --enable-video-x11-scrnsaver was given.
  21563. if test ${enable_video_x11_scrnsaver+y}
  21564. then :
  21565. enableval=$enable_video_x11_scrnsaver;
  21566. else $as_nop
  21567. enable_video_x11_scrnsaver=yes
  21568. fi
  21569. if test x$enable_video_x11_scrnsaver = xyes; then
  21570. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  21571. "
  21572. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes
  21573. then :
  21574. have_scrnsaver_h_hdr=yes
  21575. else $as_nop
  21576. have_scrnsaver_h_hdr=no
  21577. fi
  21578. if test x$have_scrnsaver_h_hdr = xyes; then
  21579. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  21580. echo "-- dynamic libXss -> $xss_lib"
  21581. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS \"$xss_lib\"" >>confdefs.h
  21582. definitely_enable_video_x11_scrnsaver=yes
  21583. else
  21584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  21585. printf %s "checking for XScreenSaverSuspend in -lXss... " >&6; }
  21586. if test ${ac_cv_lib_Xss_XScreenSaverSuspend+y}
  21587. then :
  21588. printf %s "(cached) " >&6
  21589. else $as_nop
  21590. ac_check_lib_save_LIBS=$LIBS
  21591. LIBS="-lXss $LIBS"
  21592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21593. /* end confdefs.h. */
  21594. /* Override any GCC internal prototype to avoid an error.
  21595. Use char because int might match the return type of a GCC
  21596. builtin and then its argument prototype would still apply. */
  21597. char XScreenSaverSuspend ();
  21598. int
  21599. main (void)
  21600. {
  21601. return XScreenSaverSuspend ();
  21602. ;
  21603. return 0;
  21604. }
  21605. _ACEOF
  21606. if ac_fn_c_try_link "$LINENO"
  21607. then :
  21608. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  21609. else $as_nop
  21610. ac_cv_lib_Xss_XScreenSaverSuspend=no
  21611. fi
  21612. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21613. conftest$ac_exeext conftest.$ac_ext
  21614. LIBS=$ac_check_lib_save_LIBS
  21615. fi
  21616. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  21617. printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  21618. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes
  21619. then :
  21620. have_xss_lib=yes
  21621. fi
  21622. if test x$have_xss_lib = xyes ; then
  21623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  21624. definitely_enable_video_x11_scrnsaver=yes
  21625. fi
  21626. fi
  21627. fi
  21628. fi
  21629. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  21630. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  21631. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  21632. fi
  21633. # Check whether --enable-video-x11-xshape was given.
  21634. if test ${enable_video_x11_xshape+y}
  21635. then :
  21636. enableval=$enable_video_x11_xshape;
  21637. else $as_nop
  21638. enable_video_x11_xshape=yes
  21639. fi
  21640. if test x$enable_video_x11_xshape = xyes; then
  21641. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  21642. "
  21643. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes
  21644. then :
  21645. have_shape_h_hdr=yes
  21646. else $as_nop
  21647. have_shape_h_hdr=no
  21648. fi
  21649. if test x$have_shape_h_hdr = xyes; then
  21650. printf "%s\n" "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  21651. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  21652. fi
  21653. fi
  21654. fi
  21655. fi
  21656. if test x$have_x != xyes; then
  21657. # Prevent Mesa from including X11 headers
  21658. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  21659. fi
  21660. }
  21661. CheckVivanteVideo()
  21662. {
  21663. # Check whether --enable-video-vivante was given.
  21664. if test ${enable_video_vivante+y}
  21665. then :
  21666. enableval=$enable_video_vivante;
  21667. else $as_nop
  21668. enable_video_vivante=yes
  21669. fi
  21670. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  21671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  21672. printf %s "checking for Vivante VDK API... " >&6; }
  21673. have_vivante_vdk=no
  21674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21675. /* end confdefs.h. */
  21676. #define LINUX
  21677. #define EGL_API_FB
  21678. #include <gc_vdk.h>
  21679. int
  21680. main (void)
  21681. {
  21682. ;
  21683. return 0;
  21684. }
  21685. _ACEOF
  21686. if ac_fn_c_try_compile "$LINENO"
  21687. then :
  21688. have_vivante_vdk=yes
  21689. fi
  21690. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  21692. printf "%s\n" "$have_vivante_vdk" >&6; }
  21693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  21694. printf %s "checking for Vivante FB API... " >&6; }
  21695. have_vivante_egl=no
  21696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21697. /* end confdefs.h. */
  21698. #define LINUX
  21699. #define EGL_API_FB
  21700. #include <EGL/eglvivante.h>
  21701. int
  21702. main (void)
  21703. {
  21704. ;
  21705. return 0;
  21706. }
  21707. _ACEOF
  21708. if ac_fn_c_try_compile "$LINENO"
  21709. then :
  21710. have_vivante_egl=yes
  21711. fi
  21712. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21713. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  21714. printf "%s\n" "$have_vivante_egl" >&6; }
  21715. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  21716. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  21717. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  21718. if test x$have_vivante_vdk = xyes; then
  21719. printf "%s\n" "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  21720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  21721. fi
  21722. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  21723. SUMMARY_video="${SUMMARY_video} vivante"
  21724. have_video=yes
  21725. fi
  21726. fi
  21727. }
  21728. CheckHaikuVideo()
  21729. {
  21730. if test x$enable_video = xyes; then
  21731. printf "%s\n" "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  21732. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  21733. have_video=yes
  21734. SUMMARY_video="${SUMMARY_video} haiku"
  21735. fi
  21736. }
  21737. CheckCOCOA()
  21738. {
  21739. # Check whether --enable-video-cocoa was given.
  21740. if test ${enable_video_cocoa+y}
  21741. then :
  21742. enableval=$enable_video_cocoa;
  21743. else $as_nop
  21744. enable_video_cocoa=yes
  21745. fi
  21746. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  21747. save_CFLAGS="$CFLAGS"
  21748. CFLAGS="$CFLAGS -x objective-c"
  21749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  21750. printf %s "checking for Cocoa framework... " >&6; }
  21751. have_cocoa=no
  21752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21753. /* end confdefs.h. */
  21754. #import <Cocoa/Cocoa.h>
  21755. int
  21756. main (void)
  21757. {
  21758. ;
  21759. return 0;
  21760. }
  21761. _ACEOF
  21762. if ac_fn_c_try_compile "$LINENO"
  21763. then :
  21764. have_cocoa=yes
  21765. fi
  21766. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  21768. printf "%s\n" "$have_cocoa" >&6; }
  21769. CFLAGS="$save_CFLAGS"
  21770. if test x$have_cocoa = xyes; then
  21771. printf "%s\n" "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  21772. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  21773. SUMMARY_video="${SUMMARY_video} cocoa"
  21774. have_video=yes
  21775. fi
  21776. fi
  21777. }
  21778. CheckMETAL()
  21779. {
  21780. # Check whether --enable-video-metal was given.
  21781. if test ${enable_video_metal+y}
  21782. then :
  21783. enableval=$enable_video_metal;
  21784. else $as_nop
  21785. enable_video_metal=yes
  21786. fi
  21787. # Check whether --enable-render-metal was given.
  21788. if test ${enable_render_metal+y}
  21789. then :
  21790. enableval=$enable_render_metal;
  21791. else $as_nop
  21792. enable_render_metal=yes
  21793. fi
  21794. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  21795. save_CFLAGS="$CFLAGS"
  21796. CFLAGS="$CFLAGS -x objective-c"
  21797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  21798. printf %s "checking for Metal framework... " >&6; }
  21799. have_metal=no
  21800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21801. /* end confdefs.h. */
  21802. #import <Cocoa/Cocoa.h>
  21803. #import <Metal/Metal.h>
  21804. #import <QuartzCore/CAMetalLayer.h>
  21805. #if TARGET_CPU_X86
  21806. #error Metal doesn't work on this configuration
  21807. #endif
  21808. int
  21809. main (void)
  21810. {
  21811. ;
  21812. return 0;
  21813. }
  21814. _ACEOF
  21815. if ac_fn_c_try_compile "$LINENO"
  21816. then :
  21817. have_metal=yes
  21818. fi
  21819. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  21820. CFLAGS="$save_CFLAGS"
  21821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  21822. printf "%s\n" "$have_metal" >&6; }
  21823. if test x$have_metal = xyes; then
  21824. printf "%s\n" "#define SDL_VIDEO_METAL 1" >>confdefs.h
  21825. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21826. printf "%s\n" "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  21827. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  21828. fi
  21829. SUMMARY_video="${SUMMARY_video} metal"
  21830. else
  21831. enable_video_metal=no
  21832. enable_render_metal=no
  21833. fi
  21834. fi
  21835. }
  21836. CheckDirectFB()
  21837. {
  21838. # Check whether --enable-video-directfb was given.
  21839. if test ${enable_video_directfb+y}
  21840. then :
  21841. enableval=$enable_video_directfb;
  21842. else $as_nop
  21843. enable_video_directfb=no
  21844. fi
  21845. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  21846. pkg_failed=no
  21847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directfb >= 1.0.0" >&5
  21848. printf %s "checking for directfb >= 1.0.0... " >&6; }
  21849. if test -n "$DIRECTFB_CFLAGS"; then
  21850. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  21851. elif test -n "$PKG_CONFIG"; then
  21852. if test -n "$PKG_CONFIG" && \
  21853. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21854. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21855. ac_status=$?
  21856. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21857. test $ac_status = 0; }; then
  21858. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  21859. test "x$?" != "x0" && pkg_failed=yes
  21860. else
  21861. pkg_failed=yes
  21862. fi
  21863. else
  21864. pkg_failed=untried
  21865. fi
  21866. if test -n "$DIRECTFB_LIBS"; then
  21867. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  21868. elif test -n "$PKG_CONFIG"; then
  21869. if test -n "$PKG_CONFIG" && \
  21870. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  21871. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  21872. ac_status=$?
  21873. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21874. test $ac_status = 0; }; then
  21875. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  21876. test "x$?" != "x0" && pkg_failed=yes
  21877. else
  21878. pkg_failed=yes
  21879. fi
  21880. else
  21881. pkg_failed=untried
  21882. fi
  21883. if test $pkg_failed = yes; then
  21884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21885. printf "%s\n" "no" >&6; }
  21886. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21887. _pkg_short_errors_supported=yes
  21888. else
  21889. _pkg_short_errors_supported=no
  21890. fi
  21891. if test $_pkg_short_errors_supported = yes; then
  21892. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21893. else
  21894. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "directfb >= 1.0.0" 2>&1`
  21895. fi
  21896. # Put the nasty error message in config.log where it belongs
  21897. echo "$DIRECTFB_PKG_ERRORS" >&5
  21898. video_directfb=no
  21899. elif test $pkg_failed = untried; then
  21900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21901. printf "%s\n" "no" >&6; }
  21902. video_directfb=no
  21903. else
  21904. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  21905. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  21906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21907. printf "%s\n" "yes" >&6; }
  21908. video_directfb=yes
  21909. fi
  21910. if test x$video_directfb = xyes; then
  21911. # SuSE 11.1 installs directfb-config without directfb-devel
  21912. save_CPPFLAGS="$CPPFLAGS"
  21913. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  21914. ac_fn_c_check_header_compile "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  21915. if test "x$ac_cv_header_directfb_h" = xyes
  21916. then :
  21917. have_directfb_hdr=yes
  21918. else $as_nop
  21919. have_directfb_hdr=no
  21920. fi
  21921. CPPFLAGS="$save_CPPFLAGS"
  21922. video_directfb=$have_directfb_hdr
  21923. fi
  21924. if test x$video_directfb = xyes; then
  21925. # Check whether --enable-directfb-shared was given.
  21926. if test ${enable_directfb_shared+y}
  21927. then :
  21928. enableval=$enable_directfb_shared;
  21929. else $as_nop
  21930. enable_directfb_shared=yes
  21931. fi
  21932. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  21933. printf "%s\n" "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  21934. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  21935. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  21936. directfb_shared=no
  21937. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  21938. if test x$have_loadso != xyes && \
  21939. test x$enable_directfb_shared = xyes; then
  21940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  21941. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  21942. fi
  21943. if test x$have_loadso = xyes && \
  21944. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  21945. directfb_shared=yes
  21946. echo "-- dynamic libdirectfb -> $directfb_lib"
  21947. printf "%s\n" "#define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC \"$directfb_lib\"" >>confdefs.h
  21948. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  21949. else
  21950. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  21951. SUMMARY_video="${SUMMARY_video} directfb"
  21952. fi
  21953. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  21954. have_video=yes
  21955. fi
  21956. fi
  21957. }
  21958. CheckKMSDRM()
  21959. {
  21960. # Check whether --enable-video-kmsdrm was given.
  21961. if test ${enable_video_kmsdrm+y}
  21962. then :
  21963. enableval=$enable_video_kmsdrm;
  21964. else $as_nop
  21965. enable_video_kmsdrm=yes
  21966. fi
  21967. if test x$enable_video = xyes && \
  21968. test x$enable_video_kmsdrm = xyes && \
  21969. test x$video_opengl_egl = xyes; then
  21970. video_kmsdrm=no
  21971. pkg_failed=no
  21972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 1.4.82" >&5
  21973. printf %s "checking for libdrm >= 1.4.82... " >&6; }
  21974. if test -n "$LIBDRM_CFLAGS"; then
  21975. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21976. elif test -n "$PKG_CONFIG"; then
  21977. if test -n "$PKG_CONFIG" && \
  21978. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21979. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21980. ac_status=$?
  21981. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21982. test $ac_status = 0; }; then
  21983. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 1.4.82" 2>/dev/null`
  21984. test "x$?" != "x0" && pkg_failed=yes
  21985. else
  21986. pkg_failed=yes
  21987. fi
  21988. else
  21989. pkg_failed=untried
  21990. fi
  21991. if test -n "$LIBDRM_LIBS"; then
  21992. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21993. elif test -n "$PKG_CONFIG"; then
  21994. if test -n "$PKG_CONFIG" && \
  21995. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 1.4.82\""; } >&5
  21996. ($PKG_CONFIG --exists --print-errors "libdrm >= 1.4.82") 2>&5
  21997. ac_status=$?
  21998. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21999. test $ac_status = 0; }; then
  22000. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 1.4.82" 2>/dev/null`
  22001. test "x$?" != "x0" && pkg_failed=yes
  22002. else
  22003. pkg_failed=yes
  22004. fi
  22005. else
  22006. pkg_failed=untried
  22007. fi
  22008. if test $pkg_failed = yes; then
  22009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22010. printf "%s\n" "no" >&6; }
  22011. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22012. _pkg_short_errors_supported=yes
  22013. else
  22014. _pkg_short_errors_supported=no
  22015. fi
  22016. if test $_pkg_short_errors_supported = yes; then
  22017. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22018. else
  22019. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 1.4.82" 2>&1`
  22020. fi
  22021. # Put the nasty error message in config.log where it belongs
  22022. echo "$LIBDRM_PKG_ERRORS" >&5
  22023. libdrm_avail=no
  22024. elif test $pkg_failed = untried; then
  22025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22026. printf "%s\n" "no" >&6; }
  22027. libdrm_avail=no
  22028. else
  22029. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  22030. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  22031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22032. printf "%s\n" "yes" >&6; }
  22033. libdrm_avail=yes
  22034. fi
  22035. pkg_failed=no
  22036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gbm >= 11.1.0" >&5
  22037. printf %s "checking for gbm >= 11.1.0... " >&6; }
  22038. if test -n "$LIBGBM_CFLAGS"; then
  22039. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  22040. elif test -n "$PKG_CONFIG"; then
  22041. if test -n "$PKG_CONFIG" && \
  22042. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22043. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22044. ac_status=$?
  22045. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22046. test $ac_status = 0; }; then
  22047. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 11.1.0" 2>/dev/null`
  22048. test "x$?" != "x0" && pkg_failed=yes
  22049. else
  22050. pkg_failed=yes
  22051. fi
  22052. else
  22053. pkg_failed=untried
  22054. fi
  22055. if test -n "$LIBGBM_LIBS"; then
  22056. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  22057. elif test -n "$PKG_CONFIG"; then
  22058. if test -n "$PKG_CONFIG" && \
  22059. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 11.1.0\""; } >&5
  22060. ($PKG_CONFIG --exists --print-errors "gbm >= 11.1.0") 2>&5
  22061. ac_status=$?
  22062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22063. test $ac_status = 0; }; then
  22064. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 11.1.0" 2>/dev/null`
  22065. test "x$?" != "x0" && pkg_failed=yes
  22066. else
  22067. pkg_failed=yes
  22068. fi
  22069. else
  22070. pkg_failed=untried
  22071. fi
  22072. if test $pkg_failed = yes; then
  22073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22074. printf "%s\n" "no" >&6; }
  22075. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22076. _pkg_short_errors_supported=yes
  22077. else
  22078. _pkg_short_errors_supported=no
  22079. fi
  22080. if test $_pkg_short_errors_supported = yes; then
  22081. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22082. else
  22083. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm >= 11.1.0" 2>&1`
  22084. fi
  22085. # Put the nasty error message in config.log where it belongs
  22086. echo "$LIBGBM_PKG_ERRORS" >&5
  22087. libgbm_avail=no
  22088. elif test $pkg_failed = untried; then
  22089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22090. printf "%s\n" "no" >&6; }
  22091. libgbm_avail=no
  22092. else
  22093. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  22094. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  22095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22096. printf "%s\n" "yes" >&6; }
  22097. libgbm_avail=yes
  22098. fi
  22099. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  22100. video_kmsdrm=yes
  22101. fi
  22102. if test x$video_kmsdrm = xyes; then
  22103. # Check whether --enable-kmsdrm-shared was given.
  22104. if test ${enable_kmsdrm_shared+y}
  22105. then :
  22106. enableval=$enable_kmsdrm_shared;
  22107. else $as_nop
  22108. enable_kmsdrm_shared=yes
  22109. fi
  22110. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  22111. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  22112. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  22113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  22114. printf %s "checking for kmsdrm dynamic loading support... " >&6; }
  22115. kmsdrm_shared=no
  22116. drm_lib=`find_lib "libdrm.so.*" "$LIBDRM_LIBS"`
  22117. gbm_lib=`find_lib "libgbm.so.*" "$LIBGBM_LIBS"`
  22118. if test x$have_loadso != xyes && \
  22119. test x$enable_kmsdrm_shared = xyes; then
  22120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  22121. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  22122. fi
  22123. if test x$have_loadso = xyes && \
  22124. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  22125. kmsdrm_shared=yes
  22126. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC \"$drm_lib\"" >>confdefs.h
  22127. printf "%s\n" "#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM \"$gbm_lib\"" >>confdefs.h
  22128. printf "%s\n" "#define HAVE_KMSDRM_SHARED \"TRUE\"" >>confdefs.h
  22129. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  22130. else
  22131. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  22132. SUMMARY_video="${SUMMARY_video} kmsdrm"
  22133. fi
  22134. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  22135. printf "%s\n" "$kmsdrm_shared" >&6; }
  22136. if test x$kmsdrm_shared = xyes; then
  22137. echo "-- dynamic libdrm -> $drm_lib"
  22138. echo "-- dynamic libgbm -> $gbm_lib"
  22139. fi
  22140. have_video=yes
  22141. fi
  22142. fi
  22143. }
  22144. CheckDummyVideo()
  22145. {
  22146. # Check whether --enable-video-dummy was given.
  22147. if test ${enable_video_dummy+y}
  22148. then :
  22149. enableval=$enable_video_dummy;
  22150. else $as_nop
  22151. enable_video_dummy=yes
  22152. fi
  22153. if test x$enable_video_dummy = xyes; then
  22154. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  22155. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  22156. have_video=yes
  22157. SUMMARY_video="${SUMMARY_video} dummy"
  22158. fi
  22159. }
  22160. CheckOffscreenVideo()
  22161. {
  22162. # Check whether --enable-video-offscreen was given.
  22163. if test ${enable_video_offscreen+y}
  22164. then :
  22165. enableval=$enable_video_offscreen;
  22166. else $as_nop
  22167. enable_video_offscreen=yes
  22168. fi
  22169. if test x$enable_video_offscreen = xyes; then
  22170. printf "%s\n" "#define SDL_VIDEO_DRIVER_OFFSCREEN 1" >>confdefs.h
  22171. SOURCES="$SOURCES $srcdir/src/video/offscreen/*.c"
  22172. have_video=yes
  22173. SUMMARY_video="${SUMMARY_video} offscreen"
  22174. fi
  22175. }
  22176. CheckQNXVideo()
  22177. {
  22178. if test x$enable_video = xyes; then
  22179. printf "%s\n" "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  22180. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  22181. have_video=yes
  22182. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  22183. SUMMARY_video="${SUMMARY_video} qnx"
  22184. fi
  22185. }
  22186. CheckQNXAudio()
  22187. {
  22188. if test x$enable_audio = xyes; then
  22189. printf "%s\n" "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  22190. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  22191. have_audio=yes
  22192. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  22193. SUMMARY_audio="${SUMMARY_audio} qsa"
  22194. fi
  22195. }
  22196. # Check whether --enable-video-opengl was given.
  22197. if test ${enable_video_opengl+y}
  22198. then :
  22199. enableval=$enable_video_opengl;
  22200. else $as_nop
  22201. enable_video_opengl=yes
  22202. fi
  22203. CheckGLX()
  22204. {
  22205. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLX support" >&5
  22207. printf %s "checking for GLX support... " >&6; }
  22208. video_opengl_glx=no
  22209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22210. /* end confdefs.h. */
  22211. #include <GL/glx.h>
  22212. int
  22213. main (void)
  22214. {
  22215. ;
  22216. return 0;
  22217. }
  22218. _ACEOF
  22219. if ac_fn_c_try_compile "$LINENO"
  22220. then :
  22221. video_opengl_glx=yes
  22222. fi
  22223. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_glx" >&5
  22225. printf "%s\n" "$video_opengl_glx" >&6; }
  22226. if test x$video_opengl_glx = xyes; then
  22227. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22228. printf "%s\n" "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  22229. fi
  22230. fi
  22231. }
  22232. # Check whether --enable-video-opengles was given.
  22233. if test ${enable_video_opengles+y}
  22234. then :
  22235. enableval=$enable_video_opengles;
  22236. else $as_nop
  22237. enable_video_opengles=yes
  22238. fi
  22239. # Check whether --enable-video-opengles1 was given.
  22240. if test ${enable_video_opengles1+y}
  22241. then :
  22242. enableval=$enable_video_opengles1;
  22243. else $as_nop
  22244. enable_video_opengles1=yes
  22245. fi
  22246. # Check whether --enable-video-opengles2 was given.
  22247. if test ${enable_video_opengles2+y}
  22248. then :
  22249. enableval=$enable_video_opengles2;
  22250. else $as_nop
  22251. enable_video_opengles2=yes
  22252. fi
  22253. CheckEGL()
  22254. {
  22255. if test x$enable_video = xyes -a x$enable_video_opengl = xyes || test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22256. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22257. printf %s "checking for EGL support... " >&6; }
  22258. video_opengl_egl=no
  22259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22260. /* end confdefs.h. */
  22261. #define LINUX
  22262. #define EGL_API_FB
  22263. #define MESA_EGL_NO_X11_HEADERS
  22264. #define EGL_NO_X11
  22265. #include <EGL/egl.h>
  22266. #include <EGL/eglext.h>
  22267. int
  22268. main (void)
  22269. {
  22270. ;
  22271. return 0;
  22272. }
  22273. _ACEOF
  22274. if ac_fn_c_try_compile "$LINENO"
  22275. then :
  22276. video_opengl_egl=yes
  22277. fi
  22278. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22280. printf "%s\n" "$video_opengl_egl" >&6; }
  22281. if test x$video_opengl_egl = xyes; then
  22282. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22283. fi
  22284. fi
  22285. }
  22286. CheckOpenGL()
  22287. {
  22288. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22289. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5
  22290. printf %s "checking for OpenGL headers... " >&6; }
  22291. video_opengl=no
  22292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22293. /* end confdefs.h. */
  22294. #include <GL/gl.h>
  22295. #include <GL/glext.h>
  22296. int
  22297. main (void)
  22298. {
  22299. ;
  22300. return 0;
  22301. }
  22302. _ACEOF
  22303. if ac_fn_c_try_compile "$LINENO"
  22304. then :
  22305. video_opengl=yes
  22306. fi
  22307. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22308. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  22309. printf "%s\n" "$video_opengl" >&6; }
  22310. if test x$video_opengl = xyes; then
  22311. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22312. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22313. SUMMARY_video="${SUMMARY_video} opengl"
  22314. fi
  22315. fi
  22316. }
  22317. CheckOpenGLES()
  22318. {
  22319. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22320. if test x$enable_video_opengles1 = xyes; then
  22321. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  22322. printf %s "checking for OpenGL ES v1 headers... " >&6; }
  22323. video_opengles_v1=no
  22324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22325. /* end confdefs.h. */
  22326. #include <GLES/gl.h>
  22327. #include <GLES/glext.h>
  22328. int
  22329. main (void)
  22330. {
  22331. ;
  22332. return 0;
  22333. }
  22334. _ACEOF
  22335. if ac_fn_c_try_compile "$LINENO"
  22336. then :
  22337. video_opengles_v1=yes
  22338. fi
  22339. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  22341. printf "%s\n" "$video_opengles_v1" >&6; }
  22342. if test x$video_opengles_v1 = xyes; then
  22343. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  22344. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  22345. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22346. fi
  22347. fi
  22348. if test x$enable_video_opengles2 = xyes; then
  22349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22350. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22351. video_opengles_v2=no
  22352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22353. /* end confdefs.h. */
  22354. #include <GLES2/gl2.h>
  22355. #include <GLES2/gl2ext.h>
  22356. int
  22357. main (void)
  22358. {
  22359. ;
  22360. return 0;
  22361. }
  22362. _ACEOF
  22363. if ac_fn_c_try_compile "$LINENO"
  22364. then :
  22365. video_opengles_v2=yes
  22366. fi
  22367. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22369. printf "%s\n" "$video_opengles_v2" >&6; }
  22370. if test x$video_opengles_v2 = xyes; then
  22371. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22372. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22373. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22374. fi
  22375. fi
  22376. fi
  22377. }
  22378. CheckWINDOWSGL()
  22379. {
  22380. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22381. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22382. printf "%s\n" "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  22383. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22384. SUMMARY_video="${SUMMARY_video} opengl"
  22385. fi
  22386. }
  22387. CheckWINDOWSGLES()
  22388. {
  22389. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22391. printf %s "checking for EGL support... " >&6; }
  22392. video_opengl_egl=no
  22393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22394. /* end confdefs.h. */
  22395. #include <EGL/egl.h>
  22396. int
  22397. main (void)
  22398. {
  22399. ;
  22400. return 0;
  22401. }
  22402. _ACEOF
  22403. if ac_fn_c_try_compile "$LINENO"
  22404. then :
  22405. video_opengl_egl=yes
  22406. fi
  22407. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22409. printf "%s\n" "$video_opengl_egl" >&6; }
  22410. if test x$video_opengl_egl = xyes; then
  22411. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22412. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22413. SUMMARY_video="${SUMMARY_video} opengl_es1"
  22414. fi
  22415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22416. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22417. video_opengles_v2=no
  22418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22419. /* end confdefs.h. */
  22420. #include <GLES2/gl2.h>
  22421. #include <GLES2/gl2ext.h>
  22422. int
  22423. main (void)
  22424. {
  22425. ;
  22426. return 0;
  22427. }
  22428. _ACEOF
  22429. if ac_fn_c_try_compile "$LINENO"
  22430. then :
  22431. video_opengles_v2=yes
  22432. fi
  22433. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22435. printf "%s\n" "$video_opengles_v2" >&6; }
  22436. if test x$video_opengles_v2 = xyes; then
  22437. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22438. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22439. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22440. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22441. fi
  22442. fi
  22443. }
  22444. CheckHaikuGL()
  22445. {
  22446. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22447. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22448. printf "%s\n" "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  22449. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22450. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  22451. SUMMARY_video="${SUMMARY_video} opengl"
  22452. fi
  22453. }
  22454. CheckMacGL()
  22455. {
  22456. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  22457. printf "%s\n" "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  22458. printf "%s\n" "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  22459. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  22460. SUMMARY_video="${SUMMARY_video} opengl"
  22461. fi
  22462. }
  22463. CheckMacGLES()
  22464. {
  22465. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22466. video_opengl_egl=yes
  22467. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22468. video_opengles_v2=yes
  22469. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22470. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22471. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22472. fi
  22473. }
  22474. CheckEmscriptenGLES()
  22475. {
  22476. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  22477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  22478. printf %s "checking for EGL support... " >&6; }
  22479. video_opengl_egl=no
  22480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22481. /* end confdefs.h. */
  22482. #include <EGL/egl.h>
  22483. int
  22484. main (void)
  22485. {
  22486. ;
  22487. return 0;
  22488. }
  22489. _ACEOF
  22490. if ac_fn_c_try_compile "$LINENO"
  22491. then :
  22492. video_opengl_egl=yes
  22493. fi
  22494. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22495. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  22496. printf "%s\n" "$video_opengl_egl" >&6; }
  22497. if test x$video_opengl_egl = xyes; then
  22498. printf "%s\n" "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  22499. fi
  22500. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  22501. printf %s "checking for OpenGL ES v2 headers... " >&6; }
  22502. video_opengles_v2=no
  22503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22504. /* end confdefs.h. */
  22505. #include <GLES2/gl2.h>
  22506. #include <GLES2/gl2ext.h>
  22507. int
  22508. main (void)
  22509. {
  22510. ;
  22511. return 0;
  22512. }
  22513. _ACEOF
  22514. if ac_fn_c_try_compile "$LINENO"
  22515. then :
  22516. video_opengles_v2=yes
  22517. fi
  22518. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  22520. printf "%s\n" "$video_opengles_v2" >&6; }
  22521. if test x$video_opengles_v2 = xyes; then
  22522. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  22523. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  22524. SUMMARY_video="${SUMMARY_video} opengl_es2"
  22525. fi
  22526. fi
  22527. }
  22528. # Check whether --enable-video-vulkan was given.
  22529. if test ${enable_video_vulkan+y}
  22530. then :
  22531. enableval=$enable_video_vulkan;
  22532. else $as_nop
  22533. enable_video_vulkan=yes
  22534. fi
  22535. CheckVulkan()
  22536. {
  22537. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  22538. case "$host" in
  22539. *-*-android*)
  22540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22541. /* end confdefs.h. */
  22542. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  22543. #error Vulkan doesn't work on this configuration
  22544. #endif
  22545. int
  22546. main (void)
  22547. {
  22548. ;
  22549. return 0;
  22550. }
  22551. _ACEOF
  22552. if ac_fn_c_try_compile "$LINENO"
  22553. then :
  22554. else $as_nop
  22555. enable_video_vulkan=no
  22556. fi
  22557. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22558. ;;
  22559. *-*-darwin*)
  22560. save_CFLAGS="$CFLAGS"
  22561. CFLAGS="$CFLAGS -x objective-c"
  22562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22563. /* end confdefs.h. */
  22564. #include <Cocoa/Cocoa.h>
  22565. #include <Metal/Metal.h>
  22566. #include <QuartzCore/CAMetalLayer.h>
  22567. #if TARGET_CPU_X86
  22568. #error Vulkan doesn't work on this configuration
  22569. #endif
  22570. int
  22571. main (void)
  22572. {
  22573. ;
  22574. return 0;
  22575. }
  22576. _ACEOF
  22577. if ac_fn_c_try_compile "$LINENO"
  22578. then :
  22579. else $as_nop
  22580. enable_video_vulkan=no
  22581. fi
  22582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22583. CFLAGS="$save_CFLAGS"
  22584. ;;
  22585. *)
  22586. ;;
  22587. esac
  22588. if test x$enable_video_vulkan = xno; then
  22589. # For reasons I am totally unable to see, I get an undefined macro error if
  22590. # I put this in the AC_TRY_COMPILE.
  22591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  22592. printf "%s\n" "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  22593. fi
  22594. fi
  22595. if test x$have_loadso != xyes; then
  22596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan support is available, but disabled because there's no loadso." >&5
  22597. printf "%s\n" "$as_me: WARNING: Vulkan support is available, but disabled because there's no loadso." >&2;}
  22598. enable_video_vulkan=no
  22599. fi
  22600. if test x$enable_video_vulkan = xyes; then
  22601. printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  22602. SUMMARY_video="${SUMMARY_video} vulkan"
  22603. fi
  22604. }
  22605. CheckInputEvents()
  22606. {
  22607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  22608. printf %s "checking for Linux 2.4 unified input interface... " >&6; }
  22609. use_input_events=no
  22610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22611. /* end confdefs.h. */
  22612. #include <linux/input.h>
  22613. int
  22614. main (void)
  22615. {
  22616. #ifndef EVIOCGNAME
  22617. #error EVIOCGNAME() ioctl not available
  22618. #endif
  22619. ;
  22620. return 0;
  22621. }
  22622. _ACEOF
  22623. if ac_fn_c_try_compile "$LINENO"
  22624. then :
  22625. use_input_events=yes
  22626. fi
  22627. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  22629. printf "%s\n" "$use_input_events" >&6; }
  22630. if test x$use_input_events = xyes; then
  22631. printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  22632. SUMMARY_input="${SUMMARY_input} linuxev"
  22633. fi
  22634. }
  22635. CheckInputKD()
  22636. {
  22637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  22638. printf %s "checking for Linux kd.h... " >&6; }
  22639. use_input_kd=no
  22640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22641. /* end confdefs.h. */
  22642. #include <linux/kd.h>
  22643. #include <linux/keyboard.h>
  22644. #include <sys/ioctl.h>
  22645. int
  22646. main (void)
  22647. {
  22648. struct kbentry kbe;
  22649. kbe.kb_table = KG_CTRL;
  22650. ioctl(0, KDGKBENT, &kbe);
  22651. ;
  22652. return 0;
  22653. }
  22654. _ACEOF
  22655. if ac_fn_c_try_compile "$LINENO"
  22656. then :
  22657. use_input_kd=yes
  22658. fi
  22659. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  22661. printf "%s\n" "$use_input_kd" >&6; }
  22662. if test x$use_input_kd = xyes; then
  22663. printf "%s\n" "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  22664. SUMMARY_input="${SUMMARY_input} linuxkd"
  22665. fi
  22666. }
  22667. CheckInputKBIO()
  22668. {
  22669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD kbio.h" >&5
  22670. printf %s "checking for FreeBSD kbio.h... " >&6; }
  22671. use_input_kbio=no
  22672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22673. /* end confdefs.h. */
  22674. #include <sys/kbio.h>
  22675. #include <sys/ioctl.h>
  22676. int
  22677. main (void)
  22678. {
  22679. accentmap_t accTable;
  22680. ioctl(0, KDENABIO, 1);
  22681. ;
  22682. return 0;
  22683. }
  22684. _ACEOF
  22685. if ac_fn_c_try_compile "$LINENO"
  22686. then :
  22687. use_input_kbio=yes
  22688. fi
  22689. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_kbio" >&5
  22691. printf "%s\n" "$use_input_kbio" >&6; }
  22692. if test x$use_input_kbio = xyes; then
  22693. printf "%s\n" "#define SDL_INPUT_FBSDKBIO 1" >>confdefs.h
  22694. SUMMARY_input="${SUMMARY_input} fbsdkbio"
  22695. fi
  22696. }
  22697. CheckInputWSCONS()
  22698. {
  22699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenBSD wscons" >&5
  22700. printf %s "checking for OpenBSD wscons... " >&6; }
  22701. use_input_wscons=no
  22702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22703. /* end confdefs.h. */
  22704. #include <sys/time.h>
  22705. #include <dev/wscons/wsconsio.h>
  22706. #include <dev/wscons/wsksymdef.h>
  22707. #include <dev/wscons/wsksymvar.h>
  22708. #include <sys/ioctl.h>
  22709. int
  22710. main (void)
  22711. {
  22712. struct wskbd_map_data data;
  22713. ioctl(0, WSKBDIO_GETMAP, &data);
  22714. ;
  22715. return 0;
  22716. }
  22717. _ACEOF
  22718. if ac_fn_c_try_compile "$LINENO"
  22719. then :
  22720. use_input_wscons=yes
  22721. fi
  22722. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_input_wscons" >&5
  22724. printf "%s\n" "$use_input_wscons" >&6; }
  22725. if test x$use_input_wscons = xyes; then
  22726. printf "%s\n" "#define SDL_INPUT_WSCONS 1" >>confdefs.h
  22727. SUMMARY_input="${SUMMARY_input} wscons"
  22728. fi
  22729. }
  22730. CheckLibUDev()
  22731. {
  22732. # Check whether --enable-libudev was given.
  22733. if test ${enable_libudev+y}
  22734. then :
  22735. enableval=$enable_libudev;
  22736. else $as_nop
  22737. enable_libudev=yes
  22738. fi
  22739. if test x$enable_libudev = xyes; then
  22740. ac_fn_c_check_header_compile "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  22741. if test "x$ac_cv_header_libudev_h" = xyes
  22742. then :
  22743. have_libudev_h_hdr=yes
  22744. else $as_nop
  22745. have_libudev_h_hdr=no
  22746. fi
  22747. if test x$have_libudev_h_hdr = xyes; then
  22748. printf "%s\n" "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  22749. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  22750. if test x$udev_lib != x; then
  22751. echo "-- dynamic udev -> $udev_lib"
  22752. printf "%s\n" "#define SDL_UDEV_DYNAMIC \"$udev_lib\"" >>confdefs.h
  22753. fi
  22754. fi
  22755. fi
  22756. }
  22757. CheckDBus()
  22758. {
  22759. # Check whether --enable-dbus was given.
  22760. if test ${enable_dbus+y}
  22761. then :
  22762. enableval=$enable_dbus;
  22763. else $as_nop
  22764. enable_dbus=yes
  22765. fi
  22766. if test x$enable_dbus = xyes; then
  22767. pkg_failed=no
  22768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1" >&5
  22769. printf %s "checking for dbus-1... " >&6; }
  22770. if test -n "$DBUS_CFLAGS"; then
  22771. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  22772. elif test -n "$PKG_CONFIG"; then
  22773. if test -n "$PKG_CONFIG" && \
  22774. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22775. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22776. ac_status=$?
  22777. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22778. test $ac_status = 0; }; then
  22779. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  22780. test "x$?" != "x0" && pkg_failed=yes
  22781. else
  22782. pkg_failed=yes
  22783. fi
  22784. else
  22785. pkg_failed=untried
  22786. fi
  22787. if test -n "$DBUS_LIBS"; then
  22788. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  22789. elif test -n "$PKG_CONFIG"; then
  22790. if test -n "$PKG_CONFIG" && \
  22791. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  22792. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  22793. ac_status=$?
  22794. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22795. test $ac_status = 0; }; then
  22796. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  22797. test "x$?" != "x0" && pkg_failed=yes
  22798. else
  22799. pkg_failed=yes
  22800. fi
  22801. else
  22802. pkg_failed=untried
  22803. fi
  22804. if test $pkg_failed = yes; then
  22805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22806. printf "%s\n" "no" >&6; }
  22807. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22808. _pkg_short_errors_supported=yes
  22809. else
  22810. _pkg_short_errors_supported=no
  22811. fi
  22812. if test $_pkg_short_errors_supported = yes; then
  22813. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1`
  22814. else
  22815. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1`
  22816. fi
  22817. # Put the nasty error message in config.log where it belongs
  22818. echo "$DBUS_PKG_ERRORS" >&5
  22819. have_dbus=no
  22820. elif test $pkg_failed = untried; then
  22821. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22822. printf "%s\n" "no" >&6; }
  22823. have_dbus=no
  22824. else
  22825. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  22826. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  22827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22828. printf "%s\n" "yes" >&6; }
  22829. have_dbus=yes
  22830. fi
  22831. save_CPPFLAGS="$CPPFLAGS"
  22832. CPPFLAGS="$save_CPPFLAGS $DBUS_CFLAGS"
  22833. ac_fn_c_check_header_compile "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  22834. if test "x$ac_cv_header_dbus_dbus_h" = xyes
  22835. then :
  22836. have_dbus_dbus_h_hdr=yes
  22837. else $as_nop
  22838. have_dbus_dbus_h_hdr=no
  22839. fi
  22840. CPPFLAGS="$save_CPPFLAGS"
  22841. if test x$have_dbus_dbus_h_hdr = xyes; then
  22842. printf "%s\n" "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  22843. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  22844. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  22845. fi
  22846. fi
  22847. }
  22848. CheckIME()
  22849. {
  22850. # Check whether --enable-ime was given.
  22851. if test ${enable_ime+y}
  22852. then :
  22853. enableval=$enable_ime;
  22854. else $as_nop
  22855. enable_ime=yes
  22856. fi
  22857. if test x$enable_ime = xyes; then
  22858. printf "%s\n" "#define SDL_USE_IME 1" >>confdefs.h
  22859. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  22860. fi
  22861. }
  22862. CheckInotify()
  22863. {
  22864. save_LIBS="$LIBS"
  22865. case "$host" in
  22866. *-*-freebsd*|*-*dragonfly*) LIBS="$LIBS -linotify"
  22867. ;;
  22868. esac
  22869. for ac_header in sys/inotify.h
  22870. do :
  22871. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  22872. if test "x$ac_cv_header_sys_inotify_h" = xyes
  22873. then :
  22874. printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
  22875. have_inotify_inotify_h_hdr=yes
  22876. fi
  22877. done
  22878. for ac_func in inotify_init
  22879. do :
  22880. ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
  22881. if test "x$ac_cv_func_inotify_init" = xyes
  22882. then :
  22883. printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
  22884. have_inotify=yes
  22885. fi
  22886. done
  22887. ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
  22888. if test "x$ac_cv_func_inotify_init1" = xyes
  22889. then :
  22890. printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h
  22891. fi
  22892. if test x$have_inotify_inotify_h_hdr = xyes -a x$have_inotify = xyes; then
  22893. printf "%s\n" "#define HAVE_INOTIFY 1" >>confdefs.h
  22894. case "$host" in
  22895. *-*-freebsd*|*-*-dragonfly*)
  22896. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -linotify"
  22897. ;;
  22898. esac
  22899. fi
  22900. LIBS="$save_LIBS"
  22901. }
  22902. CheckIBus()
  22903. {
  22904. # Check whether --enable-ibus was given.
  22905. if test ${enable_ibus+y}
  22906. then :
  22907. enableval=$enable_ibus;
  22908. else $as_nop
  22909. enable_ibus=yes
  22910. fi
  22911. if test x$enable_ibus = xyes; then
  22912. pkg_failed=no
  22913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ibus-1.0" >&5
  22914. printf %s "checking for ibus-1.0... " >&6; }
  22915. if test -n "$IBUS_CFLAGS"; then
  22916. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  22917. elif test -n "$PKG_CONFIG"; then
  22918. if test -n "$PKG_CONFIG" && \
  22919. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22920. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22921. ac_status=$?
  22922. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22923. test $ac_status = 0; }; then
  22924. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  22925. test "x$?" != "x0" && pkg_failed=yes
  22926. else
  22927. pkg_failed=yes
  22928. fi
  22929. else
  22930. pkg_failed=untried
  22931. fi
  22932. if test -n "$IBUS_LIBS"; then
  22933. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  22934. elif test -n "$PKG_CONFIG"; then
  22935. if test -n "$PKG_CONFIG" && \
  22936. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  22937. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  22938. ac_status=$?
  22939. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22940. test $ac_status = 0; }; then
  22941. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  22942. test "x$?" != "x0" && pkg_failed=yes
  22943. else
  22944. pkg_failed=yes
  22945. fi
  22946. else
  22947. pkg_failed=untried
  22948. fi
  22949. if test $pkg_failed = yes; then
  22950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22951. printf "%s\n" "no" >&6; }
  22952. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22953. _pkg_short_errors_supported=yes
  22954. else
  22955. _pkg_short_errors_supported=no
  22956. fi
  22957. if test $_pkg_short_errors_supported = yes; then
  22958. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22959. else
  22960. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
  22961. fi
  22962. # Put the nasty error message in config.log where it belongs
  22963. echo "$IBUS_PKG_ERRORS" >&5
  22964. have_ibus=no
  22965. elif test $pkg_failed = untried; then
  22966. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22967. printf "%s\n" "no" >&6; }
  22968. have_ibus=no
  22969. else
  22970. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  22971. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  22972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22973. printf "%s\n" "yes" >&6; }
  22974. have_ibus=yes
  22975. fi
  22976. save_CPPFLAGS="$CPPFLAGS"
  22977. CPPFLAGS="$save_CPPFLAGS $IBUS_CFLAGS"
  22978. ac_fn_c_check_header_compile "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  22979. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes
  22980. then :
  22981. have_ibus_ibus_h_hdr=yes
  22982. else $as_nop
  22983. have_ibus_ibus_h_hdr=no
  22984. fi
  22985. CPPFLAGS="$save_CPPFLAGS"
  22986. if test x$have_ibus_ibus_h_hdr = xyes; then
  22987. if test x$enable_ime != xyes; then
  22988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  22989. printf "%s\n" "$as_me: WARNING: IME support is required for IBus." >&2;}
  22990. have_ibus_ibus_h_hdr=no
  22991. elif test x$enable_dbus != xyes; then
  22992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  22993. printf "%s\n" "$as_me: WARNING: DBus support is required for IBus." >&2;}
  22994. have_ibus_ibus_h_hdr=no
  22995. elif test x$have_inotify_inotify_h_hdr != xyes; then
  22996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  22997. printf "%s\n" "$as_me: WARNING: INotify support is required for IBus." >&2;}
  22998. have_ibus_ibus_h_hdr=no
  22999. else
  23000. printf "%s\n" "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  23001. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  23002. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  23003. fi
  23004. fi
  23005. fi
  23006. }
  23007. CheckFcitx()
  23008. {
  23009. # Check whether --enable-fcitx was given.
  23010. if test ${enable_fcitx+y}
  23011. then :
  23012. enableval=$enable_fcitx;
  23013. else $as_nop
  23014. enable_fcitx=yes
  23015. fi
  23016. if test x$enable_fcitx = xyes; then
  23017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcitx support" >&5
  23018. printf %s "checking for fcitx support... " >&6; }
  23019. have_fcitx=no
  23020. if test x$enable_ime != xyes; then
  23021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  23022. printf "%s\n" "$as_me: WARNING: IME support is required for fcitx." >&2;}
  23023. elif test x$have_dbus_dbus_h_hdr != xyes; then
  23024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  23025. printf "%s\n" "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  23026. else
  23027. have_fcitx=yes
  23028. printf "%s\n" "#define HAVE_FCITX 1" >>confdefs.h
  23029. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  23030. fi
  23031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_fcitx" >&5
  23032. printf "%s\n" "$have_fcitx" >&6; }
  23033. fi
  23034. }
  23035. CheckJoystickMFI()
  23036. {
  23037. # Check whether --enable-joystick-mfi was given.
  23038. if test ${enable_joystick_mfi+y}
  23039. then :
  23040. enableval=$enable_joystick_mfi;
  23041. else $as_nop
  23042. enable_joystick_mfi=yes
  23043. fi
  23044. if test x$enable_joystick_mfi = xyes; then
  23045. save_CFLAGS="$CFLAGS"
  23046. save_LDFLAGS="$LDFLAGS"
  23047. CFLAGS="$CFLAGS -x objective-c -fobjc-weak"
  23048. LDFLAGS="$LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GameController framework" >&5
  23050. printf %s "checking for GameController framework... " >&6; }
  23051. enable_joystick_mfi=no
  23052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23053. /* end confdefs.h. */
  23054. #include <AvailabilityMacros.h>
  23055. #include <TargetConditionals.h>
  23056. #import <GameController/GameController.h>
  23057. int
  23058. main (void)
  23059. {
  23060. #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080
  23061. #error GameController framework doesn't work on this configuration
  23062. #endif
  23063. #if TARGET_CPU_X86
  23064. #error GameController framework doesn't work on this configuration
  23065. #endif
  23066. ;
  23067. return 0;
  23068. }
  23069. _ACEOF
  23070. if ac_fn_c_try_link "$LINENO"
  23071. then :
  23072. enable_joystick_mfi=yes
  23073. fi
  23074. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23075. conftest$ac_exeext conftest.$ac_ext
  23076. CFLAGS="$save_CFLAGS"
  23077. LDFLAGS="$save_LDFLAGS"
  23078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_joystick_mfi" >&5
  23079. printf "%s\n" "$enable_joystick_mfi" >&6; }
  23080. if test x$enable_joystick_mfi = xyes; then
  23081. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  23082. EXTRA_CFLAGS="$EXTRA_CFLAGS -fobjc-weak -Wno-unused-command-line-argument"
  23083. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,CoreHaptics -Wl,-weak_framework,GameController"
  23084. fi
  23085. fi
  23086. }
  23087. CheckPTHREAD()
  23088. {
  23089. case "$host" in
  23090. *-*-emscripten*)
  23091. enable_pthreads_default=no
  23092. ;;
  23093. *)
  23094. enable_pthreads_default=yes
  23095. ;;
  23096. esac
  23097. # Check whether --enable-pthreads was given.
  23098. if test ${enable_pthreads+y}
  23099. then :
  23100. enableval=$enable_pthreads;
  23101. else $as_nop
  23102. enable_pthreads=maybe
  23103. fi
  23104. # Check whether --enable-pthread-sem was given.
  23105. if test ${enable_pthread_sem+y}
  23106. then :
  23107. enableval=$enable_pthread_sem;
  23108. else $as_nop
  23109. enable_pthread_sem=maybe
  23110. fi
  23111. if test x$enable_pthreads = xmaybe; then
  23112. enable_pthreads=$enable_pthreads_default
  23113. fi
  23114. if test x$enable_pthread_sem = xmaybe; then
  23115. enable_pthread_sem=$enable_pthreads
  23116. fi
  23117. case "$host" in
  23118. *-*-android*)
  23119. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23120. pthread_lib=""
  23121. ;;
  23122. *-*-linux*|*-*-uclinux*)
  23123. pthread_cflags="-D_REENTRANT"
  23124. pthread_lib="-lpthread"
  23125. ;;
  23126. *-*-bsdi*)
  23127. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23128. pthread_lib=""
  23129. ;;
  23130. *-*-darwin*)
  23131. pthread_cflags="-D_THREAD_SAFE"
  23132. # causes Carbon.p complaints?
  23133. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23134. ;;
  23135. *-*-freebsd*|*-*-dragonfly*)
  23136. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23137. pthread_lib="-pthread"
  23138. ;;
  23139. *-*-netbsd*)
  23140. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  23141. pthread_lib="-lpthread"
  23142. ;;
  23143. *-*-openbsd*)
  23144. pthread_cflags="-D_REENTRANT"
  23145. pthread_lib="-pthread"
  23146. ;;
  23147. *-*-solaris2.9)
  23148. # From Solaris 9+, posix4's preferred name is rt.
  23149. pthread_cflags="-D_REENTRANT"
  23150. pthread_lib="-lpthread -lrt"
  23151. ;;
  23152. *-*-solaris2.10)
  23153. # Solaris 10+ merged pthread into libc.
  23154. pthread_cflags="-D_REENTRANT"
  23155. pthread_lib="-lrt"
  23156. ;;
  23157. *-*-solaris*)
  23158. # Solaris 11+ merged rt into libc.
  23159. pthread_cflags="-D_REENTRANT"
  23160. pthread_lib=""
  23161. ;;
  23162. *-*-sysv5*)
  23163. pthread_cflags="-D_REENTRANT -Kthread"
  23164. pthread_lib=""
  23165. ;;
  23166. *-*-aix*)
  23167. pthread_cflags="-D_REENTRANT -mthreads"
  23168. pthread_lib="-lpthread"
  23169. ;;
  23170. *-*-hpux11*)
  23171. pthread_cflags="-D_REENTRANT"
  23172. pthread_lib="-L/usr/lib -lpthread"
  23173. ;;
  23174. *-*-haiku*)
  23175. pthread_cflags="-D_REENTRANT"
  23176. pthread_lib=""
  23177. ;;
  23178. *-*-nto*)
  23179. pthread_cflags="-D_REENTRANT"
  23180. pthread_lib=""
  23181. ;;
  23182. *-*-emscripten*)
  23183. pthread_cflags="-D_REENTRANT -pthread"
  23184. pthread_lib="-pthread"
  23185. ;;
  23186. *)
  23187. pthread_cflags="-D_REENTRANT"
  23188. pthread_lib="-lpthread"
  23189. ;;
  23190. esac
  23191. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  23192. # Save the original compiler flags and libraries
  23193. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23194. # Add the pthread compiler flags and libraries
  23195. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23196. # Check to see if we have pthread support on this system
  23197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  23198. printf %s "checking for pthreads... " >&6; }
  23199. use_pthreads=no
  23200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23201. /* end confdefs.h. */
  23202. #include <pthread.h>
  23203. int
  23204. main (void)
  23205. {
  23206. pthread_attr_t type;
  23207. pthread_attr_init(&type);
  23208. ;
  23209. return 0;
  23210. }
  23211. _ACEOF
  23212. if ac_fn_c_try_link "$LINENO"
  23213. then :
  23214. use_pthreads=yes
  23215. fi
  23216. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23217. conftest$ac_exeext conftest.$ac_ext
  23218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  23219. printf "%s\n" "$use_pthreads" >&6; }
  23220. # Restore the compiler flags and libraries
  23221. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23222. # Do futher testing if we have pthread support...
  23223. if test x$use_pthreads = xyes; then
  23224. printf "%s\n" "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  23225. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  23226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  23227. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  23228. # Save the original compiler flags and libraries
  23229. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  23230. # Add the pthread compiler flags and libraries
  23231. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  23232. # Check to see if recursive mutexes are available
  23233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  23234. printf %s "checking for recursive mutexes... " >&6; }
  23235. has_recursive_mutexes=no
  23236. if test x$has_recursive_mutexes = xno; then
  23237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23238. /* end confdefs.h. */
  23239. #define _GNU_SOURCE 1
  23240. #include <pthread.h>
  23241. int
  23242. main (void)
  23243. {
  23244. pthread_mutexattr_t attr;
  23245. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  23246. ;
  23247. return 0;
  23248. }
  23249. _ACEOF
  23250. if ac_fn_c_try_link "$LINENO"
  23251. then :
  23252. has_recursive_mutexes=yes
  23253. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  23254. fi
  23255. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23256. conftest$ac_exeext conftest.$ac_ext
  23257. fi
  23258. if test x$has_recursive_mutexes = xno; then
  23259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23260. /* end confdefs.h. */
  23261. #define _GNU_SOURCE 1
  23262. #include <pthread.h>
  23263. int
  23264. main (void)
  23265. {
  23266. pthread_mutexattr_t attr;
  23267. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  23268. ;
  23269. return 0;
  23270. }
  23271. _ACEOF
  23272. if ac_fn_c_try_link "$LINENO"
  23273. then :
  23274. has_recursive_mutexes=yes
  23275. printf "%s\n" "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  23276. fi
  23277. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23278. conftest$ac_exeext conftest.$ac_ext
  23279. fi
  23280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  23281. printf "%s\n" "$has_recursive_mutexes" >&6; }
  23282. # Check to see if pthread semaphore support is missing
  23283. if test x$enable_pthread_sem = xyes; then
  23284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  23285. printf %s "checking for pthread semaphores... " >&6; }
  23286. have_pthread_sem=no
  23287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23288. /* end confdefs.h. */
  23289. #include <pthread.h>
  23290. #include <semaphore.h>
  23291. int
  23292. main (void)
  23293. {
  23294. ;
  23295. return 0;
  23296. }
  23297. _ACEOF
  23298. if ac_fn_c_try_compile "$LINENO"
  23299. then :
  23300. have_pthread_sem=yes
  23301. fi
  23302. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23303. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  23304. printf "%s\n" "$have_pthread_sem" >&6; }
  23305. fi
  23306. if test x$have_pthread_sem = xyes; then
  23307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  23308. printf %s "checking for sem_timedwait... " >&6; }
  23309. have_sem_timedwait=no
  23310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23311. /* end confdefs.h. */
  23312. #include <pthread.h>
  23313. #include <semaphore.h>
  23314. int
  23315. main (void)
  23316. {
  23317. sem_timedwait(NULL, NULL);
  23318. ;
  23319. return 0;
  23320. }
  23321. _ACEOF
  23322. if ac_fn_c_try_link "$LINENO"
  23323. then :
  23324. have_sem_timedwait=yes
  23325. printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  23326. fi
  23327. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23328. conftest$ac_exeext conftest.$ac_ext
  23329. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  23330. printf "%s\n" "$have_sem_timedwait" >&6; }
  23331. fi
  23332. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  23333. "
  23334. if test "x$ac_cv_header_pthread_np_h" = xyes
  23335. then :
  23336. have_pthread_np_h=yes
  23337. else $as_nop
  23338. have_pthread_np_h=no
  23339. fi
  23340. if test x$have_pthread_np_h = xyes; then
  23341. printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  23342. fi
  23343. # Check to see if pthread naming is available
  23344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  23345. printf %s "checking for pthread_setname_np... " >&6; }
  23346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23347. /* end confdefs.h. */
  23348. /* Override any GCC internal prototype to avoid an error.
  23349. Use char because int might match the return type of a GCC
  23350. builtin and then its argument prototype would still apply. */
  23351. char pthread_setname_np ();
  23352. int
  23353. main (void)
  23354. {
  23355. return pthread_setname_np ();
  23356. ;
  23357. return 0;
  23358. }
  23359. _ACEOF
  23360. if ac_fn_c_try_link "$LINENO"
  23361. then :
  23362. has_pthread_setname_np=yes
  23363. printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  23364. else $as_nop
  23365. has_pthread_setname_np=no
  23366. fi
  23367. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23368. conftest$ac_exeext conftest.$ac_ext
  23369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  23370. printf "%s\n" "$has_pthread_setname_np" >&6; }
  23371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  23372. printf %s "checking for pthread_set_name_np... " >&6; }
  23373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23374. /* end confdefs.h. */
  23375. /* Override any GCC internal prototype to avoid an error.
  23376. Use char because int might match the return type of a GCC
  23377. builtin and then its argument prototype would still apply. */
  23378. char pthread_set_name_np ();
  23379. int
  23380. main (void)
  23381. {
  23382. return pthread_set_name_np ();
  23383. ;
  23384. return 0;
  23385. }
  23386. _ACEOF
  23387. if ac_fn_c_try_link "$LINENO"
  23388. then :
  23389. has_pthread_set_name_np=yes
  23390. printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  23391. else $as_nop
  23392. has_pthread_set_name_np=no
  23393. fi
  23394. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23395. conftest$ac_exeext conftest.$ac_ext
  23396. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  23397. printf "%s\n" "$has_pthread_set_name_np" >&6; }
  23398. # Restore the compiler flags and libraries
  23399. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  23400. # Basic thread creation functions
  23401. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  23402. # Semaphores
  23403. # We can fake these with mutexes and condition variables if necessary
  23404. if test x$have_pthread_sem = xyes; then
  23405. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  23406. else
  23407. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  23408. fi
  23409. # Mutexes
  23410. # We can fake these with semaphores if necessary
  23411. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  23412. # Condition variables
  23413. # We can fake these with semaphores and mutexes if necessary
  23414. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  23415. # Thread local storage
  23416. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  23417. have_threads=yes
  23418. fi
  23419. fi
  23420. }
  23421. CheckWINDOWS()
  23422. {
  23423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  23424. printf %s "checking Windows compiler... " >&6; }
  23425. have_win32_gcc=no
  23426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23427. /* end confdefs.h. */
  23428. #include <windows.h>
  23429. int
  23430. main (void)
  23431. {
  23432. ;
  23433. return 0;
  23434. }
  23435. _ACEOF
  23436. if ac_fn_c_try_compile "$LINENO"
  23437. then :
  23438. have_win32_gcc=yes
  23439. fi
  23440. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  23442. printf "%s\n" "$have_win32_gcc" >&6; }
  23443. if test x$have_win32_gcc != xyes; then
  23444. as_fn_error $? "
  23445. *** Your compiler ($CC) does not produce Windows executables!
  23446. " "$LINENO" 5
  23447. fi
  23448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  23449. printf %s "checking Windows CE... " >&6; }
  23450. have_wince=no
  23451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23452. /* end confdefs.h. */
  23453. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  23454. #error This is not Windows CE
  23455. #endif
  23456. int
  23457. main (void)
  23458. {
  23459. ;
  23460. return 0;
  23461. }
  23462. _ACEOF
  23463. if ac_fn_c_try_compile "$LINENO"
  23464. then :
  23465. have_wince=yes
  23466. as_fn_error $? "
  23467. *** Sorry, Windows CE is no longer supported.
  23468. " "$LINENO" 5
  23469. fi
  23470. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  23472. printf "%s\n" "$have_wince" >&6; }
  23473. # This fixes Windows stack alignment with newer GCC
  23474. CheckStackBoundary
  23475. # headers needed elsewhere
  23476. ac_fn_c_check_header_compile "$LINENO" "tpcshrd.h" "ac_cv_header_tpcshrd_h" "$ac_includes_default"
  23477. if test "x$ac_cv_header_tpcshrd_h" = xyes
  23478. then :
  23479. have_tpcshrd_h=yes
  23480. fi
  23481. if test x$have_tpcshrd_h = xyes; then
  23482. printf "%s\n" "#define HAVE_TPCSHRD_H 1" >>confdefs.h
  23483. fi
  23484. ac_fn_c_check_header_compile "$LINENO" "roapi.h" "ac_cv_header_roapi_h" "$ac_includes_default"
  23485. if test "x$ac_cv_header_roapi_h" = xyes
  23486. then :
  23487. have_roapi_h=yes
  23488. fi
  23489. if test x$have_roapi_h = xyes; then
  23490. printf "%s\n" "#define HAVE_ROAPI_H 1" >>confdefs.h
  23491. fi
  23492. ac_fn_c_check_header_compile "$LINENO" "shellscalingapi.h" "ac_cv_header_shellscalingapi_h" "$ac_includes_default"
  23493. if test "x$ac_cv_header_shellscalingapi_h" = xyes
  23494. then :
  23495. have_shellscalingapi_h=yes
  23496. fi
  23497. if test x$shellscalingapi_h = xyes; then
  23498. printf "%s\n" "#define HAVE_SHELLSCALINGAPI_H 1" >>confdefs.h
  23499. fi
  23500. }
  23501. CheckOS2()
  23502. {
  23503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OS/2 compiler" >&5
  23504. printf %s "checking OS/2 compiler... " >&6; }
  23505. have_os2_gcc=no
  23506. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23507. /* end confdefs.h. */
  23508. #include <os2.h>
  23509. int
  23510. main (void)
  23511. {
  23512. ;
  23513. return 0;
  23514. }
  23515. _ACEOF
  23516. if ac_fn_c_try_compile "$LINENO"
  23517. then :
  23518. have_os2_gcc=yes
  23519. fi
  23520. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_os2_gcc" >&5
  23522. printf "%s\n" "$have_os2_gcc" >&6; }
  23523. if test x$have_os2_gcc != xyes; then
  23524. as_fn_error $? "
  23525. *** Your compiler ($CC) does not produce OS/2 executables!
  23526. " "$LINENO" 5
  23527. fi
  23528. }
  23529. CheckDIRECTX()
  23530. {
  23531. # Check whether --enable-directx was given.
  23532. if test ${enable_directx+y}
  23533. then :
  23534. enableval=$enable_directx;
  23535. else $as_nop
  23536. enable_directx=yes
  23537. fi
  23538. if test x$enable_directx = xyes; then
  23539. ac_fn_c_check_header_compile "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  23540. if test "x$ac_cv_header_d3d9_h" = xyes
  23541. then :
  23542. have_d3d=yes
  23543. fi
  23544. ac_fn_c_check_header_compile "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  23545. if test "x$ac_cv_header_d3d11_1_h" = xyes
  23546. then :
  23547. have_d3d11=yes
  23548. fi
  23549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for d3d12 Windows SDK version" >&5
  23550. printf %s "checking for d3d12 Windows SDK version... " >&6; }
  23551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23552. /* end confdefs.h. */
  23553. #include <winsdkver.h>
  23554. #include <sdkddkver.h>
  23555. #include <d3d12.h>
  23556. ID3D12Device1 *device;
  23557. #if WDK_NTDDI_VERSION <= 0x0A000008
  23558. asdf
  23559. #endif
  23560. int
  23561. main (void)
  23562. {
  23563. ;
  23564. return 0;
  23565. }
  23566. _ACEOF
  23567. if ac_fn_c_try_compile "$LINENO"
  23568. then :
  23569. have_d3d12=yes
  23570. else $as_nop
  23571. have_d3d12=no
  23572. fi
  23573. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_d3d12" >&5
  23575. printf "%s\n" "$have_d3d12" >&6; }
  23576. ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  23577. if test "x$ac_cv_header_ddraw_h" = xyes
  23578. then :
  23579. have_ddraw=yes
  23580. fi
  23581. ac_fn_c_check_header_compile "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  23582. if test "x$ac_cv_header_dsound_h" = xyes
  23583. then :
  23584. have_dsound=yes
  23585. fi
  23586. ac_fn_c_check_header_compile "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  23587. if test "x$ac_cv_header_dinput_h" = xyes
  23588. then :
  23589. have_dinput=yes
  23590. fi
  23591. ac_fn_c_check_header_compile "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  23592. if test "x$ac_cv_header_dxgi_h" = xyes
  23593. then :
  23594. have_dxgi=yes
  23595. fi
  23596. if test x$have_ddraw = xyes; then
  23597. printf "%s\n" "#define HAVE_DDRAW_H 1" >>confdefs.h
  23598. fi
  23599. if test x$have_dinput = xyes; then
  23600. printf "%s\n" "#define HAVE_DINPUT_H 1" >>confdefs.h
  23601. fi
  23602. if test x$have_dsound = xyes; then
  23603. printf "%s\n" "#define HAVE_DSOUND_H 1" >>confdefs.h
  23604. fi
  23605. if test x$have_dxgi = xyes; then
  23606. printf "%s\n" "#define HAVE_DXGI_H 1" >>confdefs.h
  23607. fi
  23608. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  23609. # FIXME: ...so force it off for now.
  23610. case "$host" in
  23611. *-*-cygwin*)
  23612. have_dinput=false
  23613. ;;
  23614. esac
  23615. fi
  23616. # Check whether --enable-xinput was given.
  23617. if test ${enable_xinput+y}
  23618. then :
  23619. enableval=$enable_xinput;
  23620. else $as_nop
  23621. enable_xinput=yes
  23622. fi
  23623. if test x$enable_xinput = xyes; then
  23624. have_xinput_gamepadex=no
  23625. have_xinput_stateex=no
  23626. ac_fn_c_check_header_compile "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  23627. if test "x$ac_cv_header_xinput_h" = xyes
  23628. then :
  23629. have_xinput=yes
  23630. fi
  23631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_GAMEPAD_EX" >&5
  23632. printf %s "checking for struct XINPUT_GAMEPAD_EX... " >&6; }
  23633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23634. /* end confdefs.h. */
  23635. #include <windows.h>
  23636. #include <xinput.h>
  23637. XINPUT_GAMEPAD_EX x1;
  23638. int
  23639. main (void)
  23640. {
  23641. ;
  23642. return 0;
  23643. }
  23644. _ACEOF
  23645. if ac_fn_c_try_compile "$LINENO"
  23646. then :
  23647. have_xinput_gamepadex=yes
  23648. fi
  23649. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_gamepadex" >&5
  23651. printf "%s\n" "$have_xinput_gamepadex" >&6; }
  23652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct XINPUT_STATE_EX" >&5
  23653. printf %s "checking for struct XINPUT_STATE_EX... " >&6; }
  23654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23655. /* end confdefs.h. */
  23656. #include <windows.h>
  23657. #include <xinput.h>
  23658. XINPUT_STATE_EX s1;
  23659. int
  23660. main (void)
  23661. {
  23662. ;
  23663. return 0;
  23664. }
  23665. _ACEOF
  23666. if ac_fn_c_try_compile "$LINENO"
  23667. then :
  23668. have_xinput_stateex=yes
  23669. fi
  23670. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_xinput_stateex" >&5
  23672. printf "%s\n" "$have_xinput_stateex" >&6; }
  23673. if test x$have_xinput = xyes; then
  23674. printf "%s\n" "#define HAVE_XINPUT_H 1" >>confdefs.h
  23675. fi
  23676. if test x$have_xinput_gamepadex = xyes; then
  23677. printf "%s\n" "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  23678. fi
  23679. if test x$have_xinput_stateex = xyes; then
  23680. printf "%s\n" "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  23681. fi
  23682. fi
  23683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.gaming.input.h" >&5
  23684. printf %s "checking for windows.gaming.input.h... " >&6; }
  23685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23686. /* end confdefs.h. */
  23687. #define COBJMACROS
  23688. #include <windows.gaming.input.h>
  23689. __x_ABI_CWindows_CGaming_CInput_CIGamepadStatics2 *s2;
  23690. int
  23691. main (void)
  23692. {
  23693. ;
  23694. return 0;
  23695. }
  23696. _ACEOF
  23697. if ac_fn_c_try_compile "$LINENO"
  23698. then :
  23699. have_wgi=yes
  23700. else $as_nop
  23701. have_wgi=no
  23702. fi
  23703. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_wgi" >&5
  23705. printf "%s\n" "$have_wgi" >&6; }
  23706. if test x$have_wgi = xyes; then
  23707. printf "%s\n" "#define HAVE_WINDOWS_GAMING_INPUT_H 1" >>confdefs.h
  23708. fi
  23709. ac_fn_c_check_header_compile "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  23710. if test "x$ac_cv_header_mmdeviceapi_h" = xyes
  23711. then :
  23712. have_wasapi=yes
  23713. fi
  23714. if test x$have_wasapi = xyes; then
  23715. printf "%s\n" "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  23716. fi
  23717. ac_fn_c_check_header_compile "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  23718. if test "x$ac_cv_header_audioclient_h" = xyes
  23719. then :
  23720. else $as_nop
  23721. have_wasapi=no
  23722. fi
  23723. if test x$have_wasapi = xyes; then
  23724. printf "%s\n" "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  23725. fi
  23726. # Check whether --enable-wasapi was given.
  23727. if test ${enable_wasapi+y}
  23728. then :
  23729. enableval=$enable_wasapi;
  23730. else $as_nop
  23731. enable_wasapi=yes
  23732. fi
  23733. }
  23734. CheckDLOPEN()
  23735. {
  23736. printf "%s\n" "#define DYNAPI_NEEDS_DLOPEN 1" >>confdefs.h
  23737. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  23738. if test "x$ac_cv_header_dlfcn_h" = xyes
  23739. then :
  23740. have_dlfcn_h=yes
  23741. else $as_nop
  23742. have_dlfcn_h=no
  23743. fi
  23744. have_dlopen=no
  23745. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  23746. printf %s "checking for dlopen in -lc... " >&6; }
  23747. if test ${ac_cv_lib_c_dlopen+y}
  23748. then :
  23749. printf %s "(cached) " >&6
  23750. else $as_nop
  23751. ac_check_lib_save_LIBS=$LIBS
  23752. LIBS="-lc $LIBS"
  23753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23754. /* end confdefs.h. */
  23755. /* Override any GCC internal prototype to avoid an error.
  23756. Use char because int might match the return type of a GCC
  23757. builtin and then its argument prototype would still apply. */
  23758. char dlopen ();
  23759. int
  23760. main (void)
  23761. {
  23762. return dlopen ();
  23763. ;
  23764. return 0;
  23765. }
  23766. _ACEOF
  23767. if ac_fn_c_try_link "$LINENO"
  23768. then :
  23769. ac_cv_lib_c_dlopen=yes
  23770. else $as_nop
  23771. ac_cv_lib_c_dlopen=no
  23772. fi
  23773. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23774. conftest$ac_exeext conftest.$ac_ext
  23775. LIBS=$ac_check_lib_save_LIBS
  23776. fi
  23777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  23778. printf "%s\n" "$ac_cv_lib_c_dlopen" >&6; }
  23779. if test "x$ac_cv_lib_c_dlopen" = xyes
  23780. then :
  23781. have_dlopen=yes
  23782. else $as_nop
  23783. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  23784. printf %s "checking for dlopen in -ldl... " >&6; }
  23785. if test ${ac_cv_lib_dl_dlopen+y}
  23786. then :
  23787. printf %s "(cached) " >&6
  23788. else $as_nop
  23789. ac_check_lib_save_LIBS=$LIBS
  23790. LIBS="-ldl $LIBS"
  23791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23792. /* end confdefs.h. */
  23793. /* Override any GCC internal prototype to avoid an error.
  23794. Use char because int might match the return type of a GCC
  23795. builtin and then its argument prototype would still apply. */
  23796. char dlopen ();
  23797. int
  23798. main (void)
  23799. {
  23800. return dlopen ();
  23801. ;
  23802. return 0;
  23803. }
  23804. _ACEOF
  23805. if ac_fn_c_try_link "$LINENO"
  23806. then :
  23807. ac_cv_lib_dl_dlopen=yes
  23808. else $as_nop
  23809. ac_cv_lib_dl_dlopen=no
  23810. fi
  23811. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23812. conftest$ac_exeext conftest.$ac_ext
  23813. LIBS=$ac_check_lib_save_LIBS
  23814. fi
  23815. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  23816. printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
  23817. if test "x$ac_cv_lib_dl_dlopen" = xyes
  23818. then :
  23819. have_dlopen=yes; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  23820. fi
  23821. fi
  23822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  23823. printf %s "checking for dlopen... " >&6; }
  23824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  23825. printf "%s\n" "$have_dlopen" >&6; }
  23826. if test x$have_dlfcn_h = xyes -a x$have_dlopen = xyes; then
  23827. printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
  23828. if test x$enable_loadso = xyes; then
  23829. printf "%s\n" "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  23830. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  23831. have_loadso=yes
  23832. fi
  23833. fi
  23834. }
  23835. CheckO_CLOEXEC()
  23836. {
  23837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
  23838. printf %s "checking for O_CLOEXEC... " >&6; }
  23839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23840. /* end confdefs.h. */
  23841. #include <fcntl.h>
  23842. int flag = O_CLOEXEC;
  23843. int
  23844. main (void)
  23845. {
  23846. ;
  23847. return 0;
  23848. }
  23849. _ACEOF
  23850. if ac_fn_c_try_compile "$LINENO"
  23851. then :
  23852. have_o_cloexec=yes
  23853. else $as_nop
  23854. have_o_cloexec=no
  23855. fi
  23856. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_o_cloexec" >&5
  23858. printf "%s\n" "$have_o_cloexec" >&6; }
  23859. if test $have_o_cloexec = yes; then
  23860. printf "%s\n" "#define HAVE_O_CLOEXEC 1" >>confdefs.h
  23861. fi
  23862. }
  23863. CheckUSBHID()
  23864. {
  23865. case "$host" in
  23866. *-*-*bsd*|*-*-dragonfly*)
  23867. if test x$enable_joystick = xyes; then
  23868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  23869. printf %s "checking for hid_init in -lusbhid... " >&6; }
  23870. if test ${ac_cv_lib_usbhid_hid_init+y}
  23871. then :
  23872. printf %s "(cached) " >&6
  23873. else $as_nop
  23874. ac_check_lib_save_LIBS=$LIBS
  23875. LIBS="-lusbhid $LIBS"
  23876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23877. /* end confdefs.h. */
  23878. /* Override any GCC internal prototype to avoid an error.
  23879. Use char because int might match the return type of a GCC
  23880. builtin and then its argument prototype would still apply. */
  23881. char hid_init ();
  23882. int
  23883. main (void)
  23884. {
  23885. return hid_init ();
  23886. ;
  23887. return 0;
  23888. }
  23889. _ACEOF
  23890. if ac_fn_c_try_link "$LINENO"
  23891. then :
  23892. ac_cv_lib_usbhid_hid_init=yes
  23893. else $as_nop
  23894. ac_cv_lib_usbhid_hid_init=no
  23895. fi
  23896. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23897. conftest$ac_exeext conftest.$ac_ext
  23898. LIBS=$ac_check_lib_save_LIBS
  23899. fi
  23900. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  23901. printf "%s\n" "$ac_cv_lib_usbhid_hid_init" >&6; }
  23902. if test "x$ac_cv_lib_usbhid_hid_init" = xyes
  23903. then :
  23904. have_libusbhid=yes
  23905. fi
  23906. if test x$have_libusbhid = xyes; then
  23907. ac_fn_c_check_header_compile "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  23908. if test "x$ac_cv_header_usbhid_h" = xyes
  23909. then :
  23910. USB_CFLAGS="-DHAVE_USBHID_H"
  23911. fi
  23912. ac_fn_c_check_header_compile "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  23913. if test "x$ac_cv_header_libusbhid_h" = xyes
  23914. then :
  23915. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  23916. fi
  23917. USB_LIBS="$USB_LIBS -lusbhid"
  23918. else
  23919. ac_fn_c_check_header_compile "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  23920. if test "x$ac_cv_header_usb_h" = xyes
  23921. then :
  23922. USB_CFLAGS="-DHAVE_USB_H"
  23923. fi
  23924. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  23925. if test "x$ac_cv_header_libusb_h" = xyes
  23926. then :
  23927. USB_CFLAGS="-DHAVE_LIBUSB_H"
  23928. fi
  23929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  23930. printf %s "checking for hid_init in -lusb... " >&6; }
  23931. if test ${ac_cv_lib_usb_hid_init+y}
  23932. then :
  23933. printf %s "(cached) " >&6
  23934. else $as_nop
  23935. ac_check_lib_save_LIBS=$LIBS
  23936. LIBS="-lusb $LIBS"
  23937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23938. /* end confdefs.h. */
  23939. /* Override any GCC internal prototype to avoid an error.
  23940. Use char because int might match the return type of a GCC
  23941. builtin and then its argument prototype would still apply. */
  23942. char hid_init ();
  23943. int
  23944. main (void)
  23945. {
  23946. return hid_init ();
  23947. ;
  23948. return 0;
  23949. }
  23950. _ACEOF
  23951. if ac_fn_c_try_link "$LINENO"
  23952. then :
  23953. ac_cv_lib_usb_hid_init=yes
  23954. else $as_nop
  23955. ac_cv_lib_usb_hid_init=no
  23956. fi
  23957. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23958. conftest$ac_exeext conftest.$ac_ext
  23959. LIBS=$ac_check_lib_save_LIBS
  23960. fi
  23961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  23962. printf "%s\n" "$ac_cv_lib_usb_hid_init" >&6; }
  23963. if test "x$ac_cv_lib_usb_hid_init" = xyes
  23964. then :
  23965. USB_LIBS="$USB_LIBS -lusb"
  23966. fi
  23967. fi
  23968. save_CFLAGS="$CFLAGS"
  23969. CFLAGS="$CFLAGS $USB_CFLAGS"
  23970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  23971. printf %s "checking for usbhid... " >&6; }
  23972. have_usbhid=no
  23973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23974. /* end confdefs.h. */
  23975. #include <sys/types.h>
  23976. #if defined(HAVE_USB_H)
  23977. #include <usb.h>
  23978. #endif
  23979. #ifdef __DragonFly__
  23980. # include <bus/u4b/usb.h>
  23981. # include <bus/u4b/usbhid.h>
  23982. #else
  23983. # include <dev/usb/usb.h>
  23984. # include <dev/usb/usbhid.h>
  23985. #endif
  23986. #if defined(HAVE_USBHID_H)
  23987. #include <usbhid.h>
  23988. #elif defined(HAVE_LIBUSB_H)
  23989. #include <libusb.h>
  23990. #elif defined(HAVE_LIBUSBHID_H)
  23991. #include <libusbhid.h>
  23992. #endif
  23993. int
  23994. main (void)
  23995. {
  23996. struct report_desc *repdesc;
  23997. struct usb_ctl_report *repbuf;
  23998. hid_kind_t hidkind;
  23999. ;
  24000. return 0;
  24001. }
  24002. _ACEOF
  24003. if ac_fn_c_try_compile "$LINENO"
  24004. then :
  24005. have_usbhid=yes
  24006. fi
  24007. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24008. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  24009. printf "%s\n" "$have_usbhid" >&6; }
  24010. if test x$have_usbhid = xyes; then
  24011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  24012. printf %s "checking for ucr_data member of usb_ctl_report... " >&6; }
  24013. have_usbhid_ucr_data=no
  24014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24015. /* end confdefs.h. */
  24016. #include <sys/types.h>
  24017. #if defined(HAVE_USB_H)
  24018. #include <usb.h>
  24019. #endif
  24020. #ifdef __DragonFly__
  24021. # include <bus/u4b/usb.h>
  24022. # include <bus/u4b/usbhid.h>
  24023. #else
  24024. # include <dev/usb/usb.h>
  24025. # include <dev/usb/usbhid.h>
  24026. #endif
  24027. #if defined(HAVE_USBHID_H)
  24028. #include <usbhid.h>
  24029. #elif defined(HAVE_LIBUSB_H)
  24030. #include <libusb.h>
  24031. #elif defined(HAVE_LIBUSBHID_H)
  24032. #include <libusbhid.h>
  24033. #endif
  24034. int
  24035. main (void)
  24036. {
  24037. struct usb_ctl_report buf;
  24038. if (buf.ucr_data) { }
  24039. ;
  24040. return 0;
  24041. }
  24042. _ACEOF
  24043. if ac_fn_c_try_compile "$LINENO"
  24044. then :
  24045. have_usbhid_ucr_data=yes
  24046. fi
  24047. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24048. if test x$have_usbhid_ucr_data = xyes; then
  24049. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  24050. fi
  24051. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  24052. printf "%s\n" "$have_usbhid_ucr_data" >&6; }
  24053. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  24054. printf %s "checking for new usbhid API... " >&6; }
  24055. have_usbhid_new=no
  24056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24057. /* end confdefs.h. */
  24058. #include <sys/types.h>
  24059. #if defined(HAVE_USB_H)
  24060. #include <usb.h>
  24061. #endif
  24062. #ifdef __DragonFly__
  24063. #include <bus/u4b/usb.h>
  24064. #include <bus/u4b/usbhid.h>
  24065. #else
  24066. #include <dev/usb/usb.h>
  24067. #include <dev/usb/usbhid.h>
  24068. #endif
  24069. #if defined(HAVE_USBHID_H)
  24070. #include <usbhid.h>
  24071. #elif defined(HAVE_LIBUSB_H)
  24072. #include <libusb.h>
  24073. #elif defined(HAVE_LIBUSBHID_H)
  24074. #include <libusbhid.h>
  24075. #endif
  24076. int
  24077. main (void)
  24078. {
  24079. report_desc_t d;
  24080. hid_start_parse(d, 1, 1);
  24081. ;
  24082. return 0;
  24083. }
  24084. _ACEOF
  24085. if ac_fn_c_try_compile "$LINENO"
  24086. then :
  24087. have_usbhid_new=yes
  24088. fi
  24089. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24090. if test x$have_usbhid_new = xyes; then
  24091. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  24092. fi
  24093. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  24094. printf "%s\n" "$have_usbhid_new" >&6; }
  24095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  24096. printf %s "checking for struct joystick in machine/joystick.h... " >&6; }
  24097. have_machine_joystick=no
  24098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24099. /* end confdefs.h. */
  24100. #include <machine/joystick.h>
  24101. int
  24102. main (void)
  24103. {
  24104. struct joystick t;
  24105. ;
  24106. return 0;
  24107. }
  24108. _ACEOF
  24109. if ac_fn_c_try_compile "$LINENO"
  24110. then :
  24111. have_machine_joystick=yes
  24112. fi
  24113. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  24114. if test x$have_machine_joystick = xyes; then
  24115. printf "%s\n" "#define SDL_HAVE_MACHINE_JOYSTICK_H 1" >>confdefs.h
  24116. fi
  24117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  24118. printf "%s\n" "$have_machine_joystick" >&6; }
  24119. printf "%s\n" "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  24120. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  24121. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  24122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  24123. have_joystick=yes
  24124. fi
  24125. CFLAGS="$save_CFLAGS"
  24126. fi
  24127. ;;
  24128. esac
  24129. }
  24130. CheckHIDAPI()
  24131. {
  24132. # Check whether --enable-hidapi-joystick was given.
  24133. if test ${enable_hidapi_joystick+y}
  24134. then :
  24135. enableval=$enable_hidapi_joystick;
  24136. else $as_nop
  24137. enable_hidapi_joystick=yes
  24138. fi
  24139. # Check whether --enable-hidapi-libusb was given.
  24140. if test ${enable_hidapi_libusb+y}
  24141. then :
  24142. enableval=$enable_hidapi_libusb;
  24143. else $as_nop
  24144. enable_hidapi_libusb=maybe
  24145. fi
  24146. if test x$enable_hidapi = xyes; then
  24147. case "$host" in
  24148. # libusb does not support iOS
  24149. *-ios-* )
  24150. enable_hidapi_libusb=no
  24151. ;;
  24152. # On the other hand, *BSD specifically uses libusb only
  24153. *-*-*bsd* )
  24154. enable_hidapi_libusb=yes
  24155. require_hidapi_libusb=yes
  24156. ;;
  24157. *-*-os2* )
  24158. enable_hidapi_libusb=yes
  24159. ;;
  24160. esac
  24161. hidapi_support=yes
  24162. if test x$enable_hidapi_libusb = xyes; then
  24163. pkg_failed=no
  24164. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
  24165. printf %s "checking for libusb-1.0... " >&6; }
  24166. if test -n "$LIBUSB_CFLAGS"; then
  24167. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  24168. elif test -n "$PKG_CONFIG"; then
  24169. if test -n "$PKG_CONFIG" && \
  24170. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24171. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24172. ac_status=$?
  24173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24174. test $ac_status = 0; }; then
  24175. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  24176. test "x$?" != "x0" && pkg_failed=yes
  24177. else
  24178. pkg_failed=yes
  24179. fi
  24180. else
  24181. pkg_failed=untried
  24182. fi
  24183. if test -n "$LIBUSB_LIBS"; then
  24184. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  24185. elif test -n "$PKG_CONFIG"; then
  24186. if test -n "$PKG_CONFIG" && \
  24187. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  24188. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  24189. ac_status=$?
  24190. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24191. test $ac_status = 0; }; then
  24192. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  24193. test "x$?" != "x0" && pkg_failed=yes
  24194. else
  24195. pkg_failed=yes
  24196. fi
  24197. else
  24198. pkg_failed=untried
  24199. fi
  24200. if test $pkg_failed = yes; then
  24201. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24202. printf "%s\n" "no" >&6; }
  24203. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24204. _pkg_short_errors_supported=yes
  24205. else
  24206. _pkg_short_errors_supported=no
  24207. fi
  24208. if test $_pkg_short_errors_supported = yes; then
  24209. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24210. else
  24211. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
  24212. fi
  24213. # Put the nasty error message in config.log where it belongs
  24214. echo "$LIBUSB_PKG_ERRORS" >&5
  24215. have_libusb=no
  24216. elif test $pkg_failed = untried; then
  24217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24218. printf "%s\n" "no" >&6; }
  24219. have_libusb=no
  24220. else
  24221. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  24222. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  24223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24224. printf "%s\n" "yes" >&6; }
  24225. have_libusb=yes
  24226. fi
  24227. save_CPPFLAGS="$CPPFLAGS"
  24228. CPPFLAGS="$save_CPPFLAGS $LIBUSB_CFLAGS"
  24229. ac_fn_c_check_header_compile "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  24230. if test "x$ac_cv_header_libusb_h" = xyes
  24231. then :
  24232. have_libusb_h=yes
  24233. else $as_nop
  24234. have_libusb_h=no
  24235. fi
  24236. CPPFLAGS="$save_CPPFLAGS"
  24237. if test x$have_libusb_h = xno && test x$require_hidapi_libusb = xyes; then
  24238. hidapi_support=no
  24239. fi
  24240. fi
  24241. if test x$hidapi_support = xyes; then
  24242. if test x$have_libusb_h = xyes; then
  24243. printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
  24244. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  24245. if test x$require_hidapi_libusb = xyes; then
  24246. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  24247. else
  24248. if test x$have_loadso != xyes; then
  24249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  24250. printf "%s\n" "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  24251. fi
  24252. # libusb is loaded dynamically, so don't add it to LDFLAGS
  24253. libusb_lib=""
  24254. case "$host" in
  24255. *-*-darwin* )
  24256. libusb_lib="libusb-1.0.0.dylib"
  24257. ;;
  24258. *-*-cygwin* | *-*-mingw* )
  24259. libusb_lib="libusb-1.0.dll"
  24260. ;;
  24261. *-*-os2* )
  24262. libusb_lib="usb100.dll"
  24263. ;;
  24264. esac
  24265. if test x$libusb_lib = x; then
  24266. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  24267. fi
  24268. printf "%s\n" "#define SDL_LIBUSB_DYNAMIC \"$libusb_lib\"" >>confdefs.h
  24269. fi
  24270. fi
  24271. fi
  24272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hidapi joystick support" >&5
  24273. printf %s "checking for hidapi joystick support... " >&6; }
  24274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  24275. printf "%s\n" "$hidapi_support" >&6; }
  24276. fi
  24277. if test x$enable_joystick = xyes -a x$hidapi_support = xyes -a x$enable_hidapi_joystick = xyes; then
  24278. printf "%s\n" "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  24279. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  24280. fi
  24281. }
  24282. CheckClockGettime()
  24283. {
  24284. # Check whether --enable-clock_gettime was given.
  24285. if test ${enable_clock_gettime+y}
  24286. then :
  24287. enableval=$enable_clock_gettime;
  24288. else $as_nop
  24289. enable_clock_gettime=yes
  24290. fi
  24291. if test x$enable_clock_gettime = xyes; then
  24292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  24293. printf %s "checking for clock_gettime in -lrt... " >&6; }
  24294. if test ${ac_cv_lib_rt_clock_gettime+y}
  24295. then :
  24296. printf %s "(cached) " >&6
  24297. else $as_nop
  24298. ac_check_lib_save_LIBS=$LIBS
  24299. LIBS="-lrt $LIBS"
  24300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24301. /* end confdefs.h. */
  24302. /* Override any GCC internal prototype to avoid an error.
  24303. Use char because int might match the return type of a GCC
  24304. builtin and then its argument prototype would still apply. */
  24305. char clock_gettime ();
  24306. int
  24307. main (void)
  24308. {
  24309. return clock_gettime ();
  24310. ;
  24311. return 0;
  24312. }
  24313. _ACEOF
  24314. if ac_fn_c_try_link "$LINENO"
  24315. then :
  24316. ac_cv_lib_rt_clock_gettime=yes
  24317. else $as_nop
  24318. ac_cv_lib_rt_clock_gettime=no
  24319. fi
  24320. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24321. conftest$ac_exeext conftest.$ac_ext
  24322. LIBS=$ac_check_lib_save_LIBS
  24323. fi
  24324. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  24325. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  24326. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  24327. then :
  24328. have_clock_gettime=yes
  24329. fi
  24330. if test x$have_clock_gettime = xyes; then
  24331. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24332. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  24333. else
  24334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  24335. printf %s "checking for clock_gettime in -lc... " >&6; }
  24336. if test ${ac_cv_lib_c_clock_gettime+y}
  24337. then :
  24338. printf %s "(cached) " >&6
  24339. else $as_nop
  24340. ac_check_lib_save_LIBS=$LIBS
  24341. LIBS="-lc $LIBS"
  24342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24343. /* end confdefs.h. */
  24344. /* Override any GCC internal prototype to avoid an error.
  24345. Use char because int might match the return type of a GCC
  24346. builtin and then its argument prototype would still apply. */
  24347. char clock_gettime ();
  24348. int
  24349. main (void)
  24350. {
  24351. return clock_gettime ();
  24352. ;
  24353. return 0;
  24354. }
  24355. _ACEOF
  24356. if ac_fn_c_try_link "$LINENO"
  24357. then :
  24358. ac_cv_lib_c_clock_gettime=yes
  24359. else $as_nop
  24360. ac_cv_lib_c_clock_gettime=no
  24361. fi
  24362. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24363. conftest$ac_exeext conftest.$ac_ext
  24364. LIBS=$ac_check_lib_save_LIBS
  24365. fi
  24366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  24367. printf "%s\n" "$ac_cv_lib_c_clock_gettime" >&6; }
  24368. if test "x$ac_cv_lib_c_clock_gettime" = xyes
  24369. then :
  24370. have_clock_gettime=yes
  24371. fi
  24372. if test x$have_clock_gettime = xyes; then
  24373. printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  24374. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  24375. fi
  24376. fi
  24377. fi
  24378. }
  24379. CheckLinuxVersion()
  24380. {
  24381. ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  24382. if test "x$ac_cv_header_linux_version_h" = xyes
  24383. then :
  24384. have_linux_version_h=yes
  24385. fi
  24386. if test x$have_linux_version_h = xyes; then
  24387. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  24388. fi
  24389. }
  24390. CheckRPATH()
  24391. {
  24392. # Check whether --enable-rpath was given.
  24393. if test ${enable_rpath+y}
  24394. then :
  24395. enableval=$enable_rpath;
  24396. else $as_nop
  24397. enable_rpath=yes
  24398. fi
  24399. }
  24400. CheckEventSignals()
  24401. {
  24402. # Check whether --enable-backgrounding-signal was given.
  24403. if test ${enable_backgrounding_signal+y}
  24404. then :
  24405. enableval=$enable_backgrounding_signal;
  24406. else $as_nop
  24407. enable_backgrounding_signal=no
  24408. fi
  24409. if test x$enable_backgrounding_signal != xno; then
  24410. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  24411. fi
  24412. # Check whether --enable-foregrounding-signal was given.
  24413. if test ${enable_foregrounding_signal+y}
  24414. then :
  24415. enableval=$enable_foregrounding_signal;
  24416. else $as_nop
  24417. enable_foregrounding_signal=no
  24418. fi
  24419. if test x$enable_foregrounding_signal != xno; then
  24420. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  24421. fi
  24422. }
  24423. CheckVirtualJoystick()
  24424. {
  24425. # Check whether --enable-joystick-virtual was given.
  24426. if test ${enable_joystick_virtual+y}
  24427. then :
  24428. enableval=$enable_joystick_virtual;
  24429. else $as_nop
  24430. enable_joystick_virtual=yes
  24431. fi
  24432. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  24433. printf "%s\n" "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  24434. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  24435. have_joystick_virtual=yes
  24436. fi
  24437. }
  24438. CheckWarnAll
  24439. CheckNoStrictAliasing
  24440. CheckEventSignals
  24441. have_locale=no
  24442. case "$host" in
  24443. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  24444. case "$host" in
  24445. *-*-android*)
  24446. # Android
  24447. ARCH=android
  24448. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  24449. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  24450. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  24451. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  24452. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  24453. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  24454. if test x$enable_video = xyes; then
  24455. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  24456. printf "%s\n" "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  24457. SUMMARY_video="${SUMMARY_video} android"
  24458. have_video=yes
  24459. fi
  24460. ;;
  24461. *-*-linux*) ARCH=linux ;;
  24462. *-*-uclinux*) ARCH=linux ;;
  24463. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  24464. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  24465. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  24466. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  24467. *-*-bsdi*) ARCH=bsdi ;;
  24468. *-*-freebsd*) ARCH=freebsd ;;
  24469. *-*-dragonfly*) ARCH=freebsd ;;
  24470. *-*-netbsd*) ARCH=netbsd ;;
  24471. *-*-openbsd*) ARCH=openbsd ;;
  24472. *-*-sysv5*) ARCH=sysv5 ;;
  24473. *-*-solaris*) ARCH=solaris ;;
  24474. *-*-hpux*) ARCH=hpux ;;
  24475. *-*-aix*) ARCH=aix ;;
  24476. *-*-minix*) ARCH=minix ;;
  24477. *-*-nto*) ARCH=nto
  24478. CheckQNXVideo
  24479. ;;
  24480. esac
  24481. CheckVisibilityHidden
  24482. CheckWerror
  24483. CheckDeclarationAfterStatement
  24484. CheckDummyVideo
  24485. CheckOffscreenVideo
  24486. CheckDiskAudio
  24487. CheckDummyAudio
  24488. CheckDLOPEN
  24489. CheckARM
  24490. CheckNEON
  24491. CheckO_CLOEXEC
  24492. CheckOSS
  24493. CheckALSA
  24494. CheckPipewire
  24495. CheckPulseAudio
  24496. CheckJACK
  24497. CheckARTSC
  24498. CheckESD
  24499. CheckNAS
  24500. CheckSNDIO
  24501. CheckFusionSound
  24502. CheckLibSampleRate
  24503. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  24504. CheckRPI
  24505. CheckX11
  24506. CheckDirectFB
  24507. # Need to check for EGL first because KMSDRM and Wayland depends on it.
  24508. CheckEGL
  24509. CheckKMSDRM
  24510. CheckGLX
  24511. CheckOpenGL
  24512. CheckOpenGLES
  24513. CheckVulkan
  24514. CheckWayland
  24515. CheckInputEvents
  24516. CheckLibUDev
  24517. CheckDBus
  24518. CheckIME
  24519. CheckInotify
  24520. CheckIBus
  24521. CheckFcitx
  24522. case $ARCH in
  24523. linux)
  24524. CheckInputKD
  24525. ;;
  24526. freebsd)
  24527. CheckInputKBIO
  24528. ;;
  24529. openbsd|netbsd)
  24530. CheckInputWSCONS
  24531. ;;
  24532. esac
  24533. CheckUSBHID
  24534. CheckHIDAPI
  24535. CheckPTHREAD
  24536. CheckClockGettime
  24537. CheckLinuxVersion
  24538. CheckRPATH
  24539. CheckVivanteVideo
  24540. # Set up files for the misc library
  24541. if test x$enable_misc = xyes; then
  24542. SOURCES="$SOURCES $srcdir/src/misc/unix/*.c"
  24543. have_misc=yes
  24544. fi
  24545. # Set up files for the locale library
  24546. if test x$enable_locale = xyes; then
  24547. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  24548. have_locale=yes
  24549. fi
  24550. # Set up files for the audio library
  24551. if test x$enable_audio = xyes; then
  24552. case $ARCH in
  24553. sysv5|solaris|hpux)
  24554. printf "%s\n" "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  24555. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  24556. SUMMARY_audio="${SUMMARY_audio} sun"
  24557. have_audio=yes
  24558. ;;
  24559. netbsd) # Don't use this on OpenBSD, it's busted.
  24560. printf "%s\n" "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  24561. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  24562. SUMMARY_audio="${SUMMARY_audio} netbsd"
  24563. have_audio=yes
  24564. ;;
  24565. aix)
  24566. printf "%s\n" "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  24567. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  24568. SUMMARY_audio="${SUMMARY_audio} paudio"
  24569. have_audio=yes
  24570. ;;
  24571. android)
  24572. printf "%s\n" "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  24573. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  24574. SUMMARY_audio="${SUMMARY_audio} android"
  24575. printf "%s\n" "#define SDL_AUDIO_DRIVER_OPENSLES 1" >>confdefs.h
  24576. SOURCES="$SOURCES $srcdir/src/audio/openslES/*.c"
  24577. SUMMARY_audio="${SUMMARY_audio} openslES"
  24578. printf "%s\n" "#define SDL_AUDIO_DRIVER_AAUDIO 1" >>confdefs.h
  24579. SOURCES="$SOURCES $srcdir/src/audio/aaudio/*.c"
  24580. SUMMARY_audio="${SUMMARY_audio} aaudio"
  24581. have_audio=yes
  24582. ;;
  24583. nto)
  24584. CheckQNXAudio
  24585. ;;
  24586. esac
  24587. fi
  24588. # Set up files for the joystick library
  24589. if test x$enable_joystick = xyes; then
  24590. case $ARCH in
  24591. linux)
  24592. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24593. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24594. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24595. have_joystick=yes
  24596. ;;
  24597. freebsd)
  24598. if test x$use_input_events = xyes; then
  24599. printf "%s\n" "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  24600. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  24601. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24602. have_joystick=yes
  24603. fi
  24604. ;;
  24605. android)
  24606. printf "%s\n" "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  24607. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  24608. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  24609. have_joystick=yes
  24610. ;;
  24611. esac
  24612. fi
  24613. # Set up files for the haptic library
  24614. if test x$enable_haptic = xyes; then
  24615. case $ARCH in
  24616. linux|freebsd)
  24617. if test x$use_input_events = xyes; then
  24618. printf "%s\n" "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  24619. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  24620. have_haptic=yes
  24621. fi
  24622. ;;
  24623. android)
  24624. printf "%s\n" "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  24625. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  24626. have_haptic=yes
  24627. ;;
  24628. esac
  24629. fi
  24630. # Set up files for the sensor library
  24631. if test x$enable_sensor = xyes; then
  24632. case $ARCH in
  24633. android)
  24634. printf "%s\n" "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  24635. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  24636. have_sensor=yes
  24637. ;;
  24638. esac
  24639. fi
  24640. # Set up files for the power library
  24641. if test x$enable_power = xyes; then
  24642. case $ARCH in
  24643. linux)
  24644. printf "%s\n" "#define SDL_POWER_LINUX 1" >>confdefs.h
  24645. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  24646. have_power=yes
  24647. ;;
  24648. android)
  24649. printf "%s\n" "#define SDL_POWER_ANDROID 1" >>confdefs.h
  24650. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  24651. have_power=yes
  24652. ;;
  24653. esac
  24654. fi
  24655. # Set up files for the filesystem library
  24656. if test x$enable_filesystem = xyes; then
  24657. case $ARCH in
  24658. android)
  24659. printf "%s\n" "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  24660. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  24661. have_filesystem=yes
  24662. ;;
  24663. *)
  24664. printf "%s\n" "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  24665. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  24666. have_filesystem=yes
  24667. ;;
  24668. esac
  24669. fi
  24670. # Set up files for the timer library
  24671. if test x$enable_timers = xyes; then
  24672. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  24673. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  24674. have_timers=yes
  24675. fi
  24676. # Set up files for udev hotplugging support
  24677. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  24678. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  24679. fi
  24680. # Set up files for evdev input
  24681. if test x$use_input_events = xyes; then
  24682. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev.c"
  24683. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_kbd.c"
  24684. SOURCES="$SOURCES $srcdir/src/core/freebsd/SDL_evdev_kbd_freebsd.c"
  24685. fi
  24686. # Set up files for wscons input
  24687. if test x$use_input_wscons = xyes; then
  24688. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_kbd.c"
  24689. SOURCES="$SOURCES $srcdir/src/core/openbsd/SDL_wscons_mouse.c"
  24690. fi
  24691. # Set up other core UNIX files
  24692. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev_capabilities.c"
  24693. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  24694. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_sandbox.c"
  24695. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  24696. ;;
  24697. *-*-cygwin* | *-*-mingw*)
  24698. ARCH=win32
  24699. if test "$build" != "$host"; then # cross-compiling
  24700. # Default cross-compile location
  24701. ac_default_prefix=/usr/local/cross-tools/$host
  24702. else
  24703. # Look for the location of the tools and install there
  24704. if test "$BUILD_PREFIX" != ""; then
  24705. ac_default_prefix=$BUILD_PREFIX
  24706. fi
  24707. fi
  24708. if test x$enable_loadso = xyes; then
  24709. have_loadso=yes
  24710. fi
  24711. CheckGDwarf4
  24712. CheckWerror
  24713. CheckDeclarationAfterStatement
  24714. CheckDummyVideo
  24715. CheckOffscreenVideo
  24716. CheckDiskAudio
  24717. CheckDummyAudio
  24718. CheckWINDOWS
  24719. CheckWINDOWSGL
  24720. CheckWINDOWSGLES
  24721. CheckVulkan
  24722. CheckDIRECTX
  24723. CheckHIDAPI
  24724. # Set up the core platform files
  24725. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  24726. # Set up files for the misc library
  24727. if test x$enable_misc = xyes; then
  24728. SOURCES="$SOURCES $srcdir/src/misc/windows/*.c"
  24729. have_misc=yes
  24730. fi
  24731. # Use the Windows locale APIs.
  24732. if test x$enable_locale = xyes; then
  24733. SOURCES="$SOURCES $srcdir/src/locale/windows/*.c"
  24734. have_locale=yes
  24735. fi
  24736. # Set up files for the video library
  24737. if test x$enable_video = xyes; then
  24738. printf "%s\n" "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  24739. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  24740. have_video=yes
  24741. # Check whether --enable-render-d3d was given.
  24742. if test ${enable_render_d3d+y}
  24743. then :
  24744. enableval=$enable_render_d3d;
  24745. else $as_nop
  24746. enable_render_d3d=yes
  24747. fi
  24748. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  24749. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  24750. SUMMARY_video="${SUMMARY_video} d3d9"
  24751. fi
  24752. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  24753. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  24754. SUMMARY_video="${SUMMARY_video} d3d11"
  24755. fi
  24756. if test x$enable_render_d3d = xyes -a x$have_d3d12 = xyes; then
  24757. printf "%s\n" "#define SDL_VIDEO_RENDER_D3D12 1" >>confdefs.h
  24758. SUMMARY_video="${SUMMARY_video} d3d12"
  24759. fi
  24760. fi
  24761. # Set up files for the audio library
  24762. if test x$enable_audio = xyes; then
  24763. printf "%s\n" "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  24764. SUMMARY_audio="${SUMMARY_audio} winmm"
  24765. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  24766. if test x$have_dsound = xyes; then
  24767. printf "%s\n" "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  24768. SUMMARY_audio="${SUMMARY_audio} directsound"
  24769. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  24770. fi
  24771. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  24772. printf "%s\n" "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  24773. SUMMARY_audio="${SUMMARY_audio} wasapi"
  24774. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  24775. fi
  24776. have_audio=yes
  24777. fi
  24778. # Set up files for the joystick library
  24779. if test x$enable_joystick = xyes; then
  24780. printf "%s\n" "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  24781. if test x$have_dinput = xyes -o x$have_xinput = xyes -o x$have_wgi = xyes; then
  24782. if test x$have_xinput = xyes; then
  24783. printf "%s\n" "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  24784. fi
  24785. if test x$have_wgi = xyes; then
  24786. printf "%s\n" "#define SDL_JOYSTICK_WGI 1" >>confdefs.h
  24787. fi
  24788. if test x$have_dinput = xyes; then
  24789. printf "%s\n" "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  24790. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  24791. fi
  24792. fi
  24793. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  24794. have_joystick=yes
  24795. fi
  24796. if test x$enable_haptic = xyes; then
  24797. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  24798. if test x$have_xinput = xyes; then
  24799. printf "%s\n" "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  24800. fi
  24801. if test x$have_dinput = xyes; then
  24802. printf "%s\n" "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  24803. fi
  24804. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  24805. have_haptic=yes
  24806. fi
  24807. fi
  24808. # Set up files for the sensor library
  24809. ac_fn_c_check_header_compile "$LINENO" "sensorsapi.h" "ac_cv_header_sensorsapi_h" "$ac_includes_default"
  24810. if test "x$ac_cv_header_sensorsapi_h" = xyes
  24811. then :
  24812. have_winsensors=yes
  24813. else $as_nop
  24814. have_winsensors=no
  24815. fi
  24816. if test x$have_winsensors = xyes; then
  24817. printf "%s\n" "#define HAVE_SENSORSAPI_H 1" >>confdefs.h
  24818. fi
  24819. if test x$enable_sensor = xyes -a x$have_winsensors = xyes; then
  24820. printf "%s\n" "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  24821. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  24822. have_sensor=yes
  24823. fi
  24824. # Set up files for the power library
  24825. if test x$enable_power = xyes; then
  24826. printf "%s\n" "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  24827. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  24828. have_power=yes
  24829. fi
  24830. # Set up files for the filesystem library
  24831. if test x$enable_filesystem = xyes; then
  24832. printf "%s\n" "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  24833. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  24834. have_filesystem=yes
  24835. fi
  24836. # Set up files for the thread library
  24837. if test x$enable_threads = xyes; then
  24838. printf "%s\n" "#define SDL_THREAD_GENERIC_COND_SUFFIX 1" >>confdefs.h
  24839. printf "%s\n" "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  24840. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  24841. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  24842. have_threads=yes
  24843. fi
  24844. # Set up files for the timer library
  24845. if test x$enable_timers = xyes; then
  24846. printf "%s\n" "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  24847. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  24848. have_timers=yes
  24849. fi
  24850. # Set up files for the shared object loading library
  24851. if test x$enable_loadso = xyes; then
  24852. printf "%s\n" "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  24853. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  24854. fi
  24855. # Set up the system libraries we need
  24856. if test -f /lib/w32api/libuuid.a; then
  24857. LIBUUID=/lib/w32api/libuuid.a
  24858. else
  24859. LIBUUID=-luuid
  24860. fi
  24861. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID"
  24862. BUILD_LDFLAGS="$BUILD_LDFLAGS -Wc,-static-libgcc"
  24863. # The Windows platform requires special setup
  24864. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  24865. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  24866. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  24867. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  24868. # Check to see if this is a mingw or cygwin build
  24869. have_mingw32=
  24870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  24871. printf %s "checking for main in -lmingw32... " >&6; }
  24872. if test ${ac_cv_lib_mingw32_main+y}
  24873. then :
  24874. printf %s "(cached) " >&6
  24875. else $as_nop
  24876. ac_check_lib_save_LIBS=$LIBS
  24877. LIBS="-lmingw32 $LIBS"
  24878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24879. /* end confdefs.h. */
  24880. int
  24881. main (void)
  24882. {
  24883. return main ();
  24884. ;
  24885. return 0;
  24886. }
  24887. _ACEOF
  24888. if ac_fn_c_try_link "$LINENO"
  24889. then :
  24890. ac_cv_lib_mingw32_main=yes
  24891. else $as_nop
  24892. ac_cv_lib_mingw32_main=no
  24893. fi
  24894. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24895. conftest$ac_exeext conftest.$ac_ext
  24896. LIBS=$ac_check_lib_save_LIBS
  24897. fi
  24898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  24899. printf "%s\n" "$ac_cv_lib_mingw32_main" >&6; }
  24900. if test "x$ac_cv_lib_mingw32_main" = xyes
  24901. then :
  24902. have_mingw32=yes
  24903. fi
  24904. if test x$have_mingw32 = xyes; then
  24905. SDL_LIBS="-lmingw32 $SDL_LIBS"
  24906. else
  24907. SDL_LIBS="-lcygwin $SDL_LIBS"
  24908. fi
  24909. ;;
  24910. *-*-beos*)
  24911. as_fn_error $? "
  24912. *** BeOS support has been removed as of SDL 2.0.2.
  24913. " "$LINENO" 5
  24914. ;;
  24915. *-*-haiku*)
  24916. ARCH=haiku
  24917. ac_default_prefix=/boot/system
  24918. CheckDummyVideo
  24919. CheckOffscreenVideo
  24920. CheckDiskAudio
  24921. CheckDummyAudio
  24922. CheckDLOPEN
  24923. CheckO_CLOEXEC
  24924. CheckHaikuVideo
  24925. CheckHaikuGL
  24926. CheckPTHREAD
  24927. # Set up files for the audio library
  24928. if test x$enable_audio = xyes; then
  24929. printf "%s\n" "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  24930. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  24931. SUMMARY_audio="${SUMMARY_audio} haiku"
  24932. have_audio=yes
  24933. fi
  24934. # Set up files for the joystick library
  24935. if test x$enable_joystick = xyes; then
  24936. printf "%s\n" "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  24937. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  24938. have_joystick=yes
  24939. fi
  24940. # Set up files for the timer library
  24941. if test x$enable_timers = xyes; then
  24942. printf "%s\n" "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  24943. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  24944. have_timers=yes
  24945. fi
  24946. # Set up files for the system power library
  24947. if test x$enable_power = xyes; then
  24948. printf "%s\n" "#define SDL_POWER_HAIKU 1" >>confdefs.h
  24949. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  24950. have_power=yes
  24951. fi
  24952. # Set up files for the system filesystem library
  24953. if test x$enable_filesystem = xyes; then
  24954. printf "%s\n" "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  24955. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  24956. have_filesystem=yes
  24957. fi
  24958. # Set up files for the misc library
  24959. if test x$enable_misc = xyes; then
  24960. SOURCES="$SOURCES $srcdir/src/misc/haiku/*.cc"
  24961. have_misc=yes
  24962. fi
  24963. # Set up files for the locale library
  24964. if test x$enable_locale = xyes; then
  24965. SOURCES="$SOURCES $srcdir/src/locale/haiku/*.cc"
  24966. have_locale=yes
  24967. fi
  24968. # The Haiku platform requires special setup.
  24969. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  24970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  24971. ;;
  24972. *-ios-*)
  24973. ARCH=ios
  24974. CheckVisibilityHidden
  24975. CheckWerror
  24976. CheckNoErrorDeprecatedDeclarationsWerror
  24977. CheckDeclarationAfterStatement
  24978. CheckDummyVideo
  24979. CheckOffscreenVideo
  24980. CheckDiskAudio
  24981. CheckDummyAudio
  24982. CheckDLOPEN
  24983. CheckO_CLOEXEC
  24984. CheckMETAL
  24985. CheckVulkan
  24986. CheckPTHREAD
  24987. # Set up files for the misc library
  24988. if test x$enable_misc = xyes; then
  24989. SOURCES="$SOURCES $srcdir/src/misc/ios/*.m"
  24990. have_misc=yes
  24991. fi
  24992. # Set up files for the locale library
  24993. if test x$enable_locale = xyes; then
  24994. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  24995. have_locale=yes
  24996. fi
  24997. # Set up files for the audio library
  24998. if test x$enable_audio = xyes; then
  24999. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25000. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25001. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25002. have_audio=yes
  25003. fi
  25004. # Set up files for the joystick library
  25005. if test x$enable_joystick = xyes; then
  25006. printf "%s\n" "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  25007. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25008. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  25009. have_joystick=yes
  25010. else
  25011. # Need this code for accelerometer as joystick support
  25012. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25013. fi
  25014. # Set up files for the haptic library
  25015. #if test x$enable_haptic = xyes; then
  25016. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25017. # have_haptic=yes
  25018. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25019. #fi
  25020. # Set up files for the sensor library
  25021. if test x$enable_sensor = xyes; then
  25022. printf "%s\n" "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  25023. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  25024. have_sensor=yes
  25025. fi
  25026. # Set up files for the power library
  25027. if test x$enable_power = xyes; then
  25028. printf "%s\n" "#define SDL_POWER_UIKIT 1" >>confdefs.h
  25029. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  25030. have_power=yes
  25031. fi
  25032. # Set up files for the filesystem library
  25033. if test x$enable_filesystem = xyes; then
  25034. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25035. have_filesystem=yes
  25036. fi
  25037. # Set up additional files for the file library
  25038. if test x$enable_file = xyes; then
  25039. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25040. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25041. fi
  25042. # Set up files for the timer library
  25043. if test x$enable_timers = xyes; then
  25044. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25045. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25046. have_timers=yes
  25047. fi
  25048. # Set up other core UNIX files
  25049. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25050. # The iOS platform requires special setup.
  25051. printf "%s\n" "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  25052. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  25053. printf "%s\n" "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  25054. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  25055. printf "%s\n" "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  25056. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  25057. SUMMARY_video="${SUMMARY_video} uikit"
  25058. have_video=yes
  25059. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  25060. if test x$enable_system_iconv = xyes; then
  25061. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  25062. fi
  25063. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25064. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  25065. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  25066. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  25067. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  25068. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  25069. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  25070. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  25071. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  25072. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  25073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  25074. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25075. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  25076. fi
  25077. ;;
  25078. *-*-darwin* )
  25079. # This could be either full "Mac OS X", or plain "Darwin" which is
  25080. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  25081. # Next line is broken, and a few files below require Mac OS X (full)
  25082. ARCH=macosx
  25083. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  25084. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  25085. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  25086. CheckObjectiveCARC
  25087. CheckVisibilityHidden
  25088. CheckWerror
  25089. CheckNoErrorDeprecatedDeclarationsWerror
  25090. CheckDeclarationAfterStatement
  25091. CheckDummyVideo
  25092. CheckOffscreenVideo
  25093. CheckDiskAudio
  25094. CheckDummyAudio
  25095. CheckDLOPEN
  25096. CheckO_CLOEXEC
  25097. CheckCOCOA
  25098. CheckMETAL
  25099. CheckX11
  25100. CheckMacGL
  25101. CheckMacGLES
  25102. CheckGLX
  25103. CheckOpenGL
  25104. CheckVulkan
  25105. CheckPTHREAD
  25106. CheckHIDAPI
  25107. # Set up files for the misc library
  25108. if test x$enable_misc = xyes; then
  25109. SOURCES="$SOURCES $srcdir/src/misc/macosx/*.m"
  25110. have_misc=yes
  25111. fi
  25112. # Set up files for the locale library
  25113. if test x$enable_locale = xyes; then
  25114. SOURCES="$SOURCES $srcdir/src/locale/macosx/*.m"
  25115. have_locale=yes
  25116. fi
  25117. # Set up files for the audio library
  25118. if test x$enable_audio = xyes; then
  25119. printf "%s\n" "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  25120. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  25121. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  25122. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  25123. have_audio=yes
  25124. fi
  25125. # Set up files for the joystick library
  25126. if test x$enable_joystick = xyes; then
  25127. printf "%s\n" "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  25128. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  25129. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  25130. CheckJoystickMFI
  25131. have_joystick=yes
  25132. fi
  25133. # Set up files for the haptic library
  25134. if test x$enable_haptic = xyes; then
  25135. printf "%s\n" "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  25136. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  25137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  25138. have_haptic=yes
  25139. fi
  25140. # Set up files for the power library
  25141. if test x$enable_power = xyes; then
  25142. printf "%s\n" "#define SDL_POWER_MACOSX 1" >>confdefs.h
  25143. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  25144. have_power=yes
  25145. fi
  25146. # Set up files for the filesystem library
  25147. if test x$enable_filesystem = xyes; then
  25148. printf "%s\n" "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  25149. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  25150. have_filesystem=yes
  25151. fi
  25152. # Set up files for the timer library
  25153. if test x$enable_timers = xyes; then
  25154. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25155. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25156. have_timers=yes
  25157. fi
  25158. # Set up additional files for the file library
  25159. if test x$enable_file = xyes; then
  25160. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  25161. fi
  25162. # Set up other core UNIX files
  25163. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  25164. # The Mac OS X platform requires special setup.
  25165. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  25166. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  25167. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  25168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  25169. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  25170. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  25171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  25172. fi
  25173. ;;
  25174. *-nacl|*-pnacl)
  25175. ARCH=nacl
  25176. CheckNativeClient
  25177. CheckDummyAudio
  25178. CheckDummyVideo
  25179. CheckOffscreenVideo
  25180. CheckInputEvents
  25181. CheckPTHREAD
  25182. CheckO_CLOEXEC
  25183. # Set up files for the timer library
  25184. if test x$enable_timers = xyes; then
  25185. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25186. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25187. have_timers=yes
  25188. fi
  25189. if test x$enable_filesystem = xyes; then
  25190. printf "%s\n" "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  25191. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  25192. have_filesystem=yes
  25193. fi
  25194. ;;
  25195. *-*-emscripten* )
  25196. if test x$enable_video = xyes; then
  25197. printf "%s\n" "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25198. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  25199. have_video=yes
  25200. SUMMARY_video="${SUMMARY_video} emscripten"
  25201. fi
  25202. if test x$enable_audio = xyes; then
  25203. printf "%s\n" "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  25204. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  25205. have_audio=yes
  25206. SUMMARY_audio="${SUMMARY_audio} emscripten"
  25207. fi
  25208. CheckVisibilityHidden
  25209. CheckWerror
  25210. CheckDeclarationAfterStatement
  25211. CheckDummyVideo
  25212. CheckOffscreenVideo
  25213. CheckDiskAudio
  25214. CheckDummyAudio
  25215. CheckPTHREAD
  25216. CheckDLOPEN
  25217. CheckClockGettime
  25218. CheckEmscriptenGLES
  25219. # Set up files for the misc library
  25220. if test x$enable_misc = xyes; then
  25221. SOURCES="$SOURCES $srcdir/src/misc/emscripten/*.c"
  25222. have_misc=yes
  25223. fi
  25224. # Set up files for the power library
  25225. if test x$enable_power = xyes; then
  25226. printf "%s\n" "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  25227. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  25228. have_power=yes
  25229. fi
  25230. # Set up files for the joystick library
  25231. if test x$enable_joystick = xyes; then
  25232. printf "%s\n" "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  25233. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  25234. have_joystick=yes
  25235. fi
  25236. # Set up files for the filesystem library
  25237. if test x$enable_filesystem = xyes; then
  25238. printf "%s\n" "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  25239. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  25240. have_filesystem=yes
  25241. fi
  25242. # Set up files for the timer library
  25243. if test x$enable_timers = xyes; then
  25244. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25245. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25246. have_timers=yes
  25247. fi
  25248. # Set up files for the locale library
  25249. if test x$enable_locale = xyes; then
  25250. SOURCES="$SOURCES $srcdir/src/locale/emscripten/*.c"
  25251. have_locale=yes
  25252. fi
  25253. ;;
  25254. *-*-riscos*)
  25255. ARCH=riscos
  25256. CheckVisibilityHidden
  25257. CheckWerror
  25258. CheckDeclarationAfterStatement
  25259. CheckDummyVideo
  25260. CheckOffscreenVideo
  25261. CheckDiskAudio
  25262. CheckDummyAudio
  25263. CheckDLOPEN
  25264. CheckO_CLOEXEC
  25265. CheckOSS
  25266. CheckPTHREAD
  25267. CheckClockGettime
  25268. # Set up files for the misc library
  25269. if test x$enable_misc = xyes; then
  25270. SOURCES="$SOURCES $srcdir/src/misc/riscos/*.c"
  25271. have_misc=yes
  25272. fi
  25273. # Set up files for the video library
  25274. if test x$enable_video = xyes; then
  25275. printf "%s\n" "#define SDL_VIDEO_DRIVER_RISCOS 1" >>confdefs.h
  25276. SOURCES="$SOURCES $srcdir/src/video/riscos/*.c"
  25277. have_video=yes
  25278. SUMMARY_video="${SUMMARY_video} riscos"
  25279. fi
  25280. # Set up files for the filesystem library
  25281. if test x$enable_filesystem = xyes; then
  25282. printf "%s\n" "#define SDL_FILESYSTEM_RISCOS 1" >>confdefs.h
  25283. SOURCES="$SOURCES $srcdir/src/filesystem/riscos/*.c"
  25284. have_filesystem=yes
  25285. fi
  25286. # Set up files for the timer library
  25287. if test x$enable_timers = xyes; then
  25288. printf "%s\n" "#define SDL_TIMER_UNIX 1" >>confdefs.h
  25289. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  25290. have_timers=yes
  25291. fi
  25292. ;;
  25293. *-*-os2*)
  25294. ARCH=os2
  25295. if test "$build" != "$host"; then # cross-compiling
  25296. # Default cross-compile location
  25297. ac_default_prefix=/@unixroot/usr/local/cross-tools/$host
  25298. else
  25299. # Look for the location of the tools and install there
  25300. if test "$BUILD_PREFIX" != ""; then
  25301. ac_default_prefix=$BUILD_PREFIX
  25302. fi
  25303. fi
  25304. enable_static=no # disable static builds
  25305. EXTRA_CFLAGS="$EXTRA_CFLAGS -DBUILD_SDL -DOS2EMX_PLAIN_CHAR"
  25306. CheckOS2
  25307. CheckWerror
  25308. CheckDeclarationAfterStatement
  25309. CheckDummyVideo
  25310. CheckDiskAudio
  25311. CheckDummyAudio
  25312. CheckHIDAPI
  25313. # Set up the core platform files
  25314. SOURCES="$SOURCES $srcdir/src/core/os2/*.c"
  25315. if test x$enable_system_iconv = xyes; then
  25316. if test x$ac_cv_func_iconv != xyes -o x$ac_cv_header_iconv_h != xyes; then
  25317. SOURCES="$SOURCES $srcdir/src/core/os2/geniconv/*.c"
  25318. fi
  25319. fi
  25320. # Use the Unix locale APIs.
  25321. if test x$enable_locale = xyes; then
  25322. SOURCES="$SOURCES $srcdir/src/locale/unix/*.c"
  25323. have_locale=yes
  25324. fi
  25325. # Set up files for the video library
  25326. if test x$enable_video = xyes; then
  25327. printf "%s\n" "#define SDL_VIDEO_DRIVER_OS2 1" >>confdefs.h
  25328. SOURCES="$SOURCES $srcdir/src/video/os2/*.c"
  25329. have_video=yes
  25330. SUMMARY_video="${SUMMARY_video} os/2"
  25331. fi
  25332. # Set up files for the audio library
  25333. if test x$enable_audio = xyes; then
  25334. printf "%s\n" "#define SDL_AUDIO_DRIVER_OS2 1" >>confdefs.h
  25335. SOURCES="$SOURCES $srcdir/src/audio/os2/*.c"
  25336. have_audio=yes
  25337. SUMMARY_audio="${SUMMARY_audio} os/2"
  25338. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lmmpm2"
  25339. fi
  25340. # Set up files for the thread library
  25341. if test x$enable_threads = xyes; then
  25342. printf "%s\n" "#define SDL_THREAD_OS2 1" >>confdefs.h
  25343. SOURCES="$SOURCES $srcdir/src/thread/os2/*.c"
  25344. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  25345. have_threads=yes
  25346. fi
  25347. # Set up files for the timer library
  25348. if test x$enable_timers = xyes; then
  25349. printf "%s\n" "#define SDL_TIMER_OS2 1" >>confdefs.h
  25350. SOURCES="$SOURCES $srcdir/src/timer/os2/*.c"
  25351. have_timers=yes
  25352. fi
  25353. # Set up files for the shared object loading library
  25354. if test x$enable_loadso = xyes; then
  25355. printf "%s\n" "#define SDL_LOADSO_OS2 1" >>confdefs.h
  25356. SOURCES="$SOURCES $srcdir/src/loadso/os2/*.c"
  25357. have_loadso=yes
  25358. fi
  25359. # Set up files for the filesystem library
  25360. if test x$enable_filesystem = xyes; then
  25361. printf "%s\n" "#define SDL_FILESYSTEM_OS2 1" >>confdefs.h
  25362. SOURCES="$SOURCES $srcdir/src/filesystem/os2/*.c"
  25363. have_filesystem=yes
  25364. fi
  25365. # Set up files for the joystick library
  25366. if test x$enable_joystick = xyes; then
  25367. printf "%s\n" "#define SDL_JOYSTICK_OS2 1" >>confdefs.h
  25368. SOURCES="$SOURCES $srcdir/src/joystick/os2/*.c"
  25369. have_joystick=yes
  25370. fi
  25371. ;;
  25372. *)
  25373. as_fn_error $? "
  25374. *** Unsupported host: Please add to configure.ac
  25375. " "$LINENO" 5
  25376. ;;
  25377. esac
  25378. CheckVirtualJoystick
  25379. # Check whether to install sdl2-config
  25380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  25381. printf %s "checking whether to install sdl2-config... " >&6; }
  25382. # Check whether --enable-sdl2-config was given.
  25383. if test ${enable_sdl2_config+y}
  25384. then :
  25385. enableval=$enable_sdl2_config; case "${enableval}" in
  25386. yes) enable_sdl2_config="TRUE" ;;
  25387. no) enable_sdl2_config="FALSE" ;;
  25388. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  25389. esac
  25390. else $as_nop
  25391. enable_sdl2_config="TRUE"
  25392. fi
  25393. if test "$enable_sdl2_config" = "TRUE"; then
  25394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25395. printf "%s\n" "yes" >&6; }
  25396. else
  25397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25398. printf "%s\n" "no" >&6; }
  25399. fi
  25400. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  25401. # Verify that we have all the platform specific files we need
  25402. if test x$have_audio != xyes; then
  25403. if test x$enable_audio = xyes; then
  25404. printf "%s\n" "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  25405. fi
  25406. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  25407. fi
  25408. if test x$have_video != xyes; then
  25409. if test x$enable_video = xyes; then
  25410. printf "%s\n" "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  25411. fi
  25412. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  25413. fi
  25414. if test x$have_misc != xyes; then
  25415. if test x$enable_misc = xyes; then
  25416. printf "%s\n" "#define SDL_MISC_DUMMY 1" >>confdefs.h
  25417. fi
  25418. SOURCES="$SOURCES $srcdir/src/misc/dummy/*.c"
  25419. fi
  25420. if test x$have_locale != xyes; then
  25421. if test x$enable_locale = xyes; then
  25422. printf "%s\n" "#define SDL_LOCALE_DUMMY 1" >>confdefs.h
  25423. fi
  25424. SOURCES="$SOURCES $srcdir/src/locale/dummy/*.c"
  25425. fi
  25426. if test x$have_joystick != xyes; then
  25427. if test x$enable_joystick = xyes; then
  25428. printf "%s\n" "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  25429. fi
  25430. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  25431. fi
  25432. if test x$have_haptic != xyes; then
  25433. if test x$enable_haptic = xyes; then
  25434. printf "%s\n" "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  25435. fi
  25436. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  25437. fi
  25438. if test x$have_sensor != xyes; then
  25439. if test x$enable_sensor = xyes; then
  25440. printf "%s\n" "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  25441. fi
  25442. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  25443. fi
  25444. if test x$have_threads != xyes; then
  25445. if test x$enable_threads = xyes; then
  25446. printf "%s\n" "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  25447. fi
  25448. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  25449. fi
  25450. if test x$have_timers != xyes; then
  25451. if test x$enable_timers = xyes; then
  25452. printf "%s\n" "#define SDL_TIMER_DUMMY 1" >>confdefs.h
  25453. fi
  25454. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  25455. fi
  25456. if test x$have_filesystem != xyes; then
  25457. if test x$enable_filesystem = xyes; then
  25458. printf "%s\n" "#define SDL_FILESYSTEM_DUMMY 1" >>confdefs.h
  25459. fi
  25460. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  25461. fi
  25462. if test x$have_loadso != xyes; then
  25463. if test x$enable_loadso = xyes; then
  25464. printf "%s\n" "#define SDL_LOADSO_DUMMY 1" >>confdefs.h
  25465. fi
  25466. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  25467. fi
  25468. if test x$SDLMAIN_SOURCES = x; then
  25469. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  25470. fi
  25471. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  25472. if test x$video_wayland = xyes; then
  25473. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do printf '%s' "\$p" |sed 's,\\.xml\$, ,g' ; done`
  25474. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-protocol.c " ; done`
  25475. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do printf '%s' "\\$(gen)/\$p-client-protocol.h " ; done`
  25476. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  25477. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  25478. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  25479. echo ;\
  25480. printf '%s\n' "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25481. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25482. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  25483. echo ;\
  25484. printf '%s\n' "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  25485. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  25486. printf '%s\n' " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) \\$(WAYLAND_SCANNER_CODE_MODE) \\$< \\$@" ;\
  25487. echo ;\
  25488. printf '%s\n' "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  25489. printf '%s\n' " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(objects)" ;\
  25490. printf '%s\n' " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  25491. done ;\
  25492. echo ;\
  25493. for s in $WAYLAND_SOURCES ; do printf '%s' "\$s:" ; printf ' \$(gen)/%s-client-protocol.h' $WAYLAND_PROTOCOLS ; echo ; done ; echo`
  25494. fi
  25495. OBJECTS=`echo $SOURCES`
  25496. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  25497. for EXT in asm cc m c S; do
  25498. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  25499. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  25500. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  25501. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25502. done
  25503. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25504. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  25505. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  25506. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  25507. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  25508. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  25509. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  25510. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  25511. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  25512. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25513. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25514. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25515. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25516. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  25517. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  25518. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  25519. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  25520. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  25521. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  25522. # Set runtime shared library paths as needed
  25523. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  25524. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  25525. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  25526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  25527. printf %s "checking for linker option --enable-new-dtags... " >&6; }
  25528. have_enable_new_dtags=no
  25529. save_LDFLAGS="$LDFLAGS"
  25530. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  25531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25532. /* end confdefs.h. */
  25533. int
  25534. main (void)
  25535. {
  25536. ;
  25537. return 0;
  25538. }
  25539. _ACEOF
  25540. if ac_fn_c_try_link "$LINENO"
  25541. then :
  25542. have_enable_new_dtags=yes
  25543. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  25544. fi
  25545. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25546. conftest$ac_exeext conftest.$ac_ext
  25547. LDFLAGS="$save_LDFLAGS"
  25548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  25549. printf "%s\n" "$have_enable_new_dtags" >&6; }
  25550. fi
  25551. if test $ARCH = solaris; then
  25552. SDL_RLD_FLAGS="-R\${libdir}"
  25553. fi
  25554. else
  25555. SDL_RLD_FLAGS=""
  25556. fi
  25557. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  25558. pkg_cmakedir='$libdir/cmake/SDL2'
  25559. for _lcl_i in pkg_cmakedir:prefix:cmake_prefix_relpath bindir:prefix:bin_prefix_relpath; do
  25560. _lcl_from=\$`echo "$_lcl_i" | sed 's,:.*$,,'`
  25561. _lcl_to=\$`echo "$_lcl_i" | sed 's,^[^:]*:,,' | sed 's,:[^:]*$,,'`
  25562. _lcl_result_var=`echo "$_lcl_i" | sed 's,^.*:,,'`
  25563. _lcl_receval="$_lcl_from"
  25564. _lcl_from=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25565. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25566. _lcl_receval_old=''
  25567. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25568. _lcl_receval_old="$_lcl_receval"
  25569. eval _lcl_receval="\"$_lcl_receval\""
  25570. done
  25571. echo "$_lcl_receval")`
  25572. _lcl_receval="$_lcl_to"
  25573. _lcl_to=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  25574. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  25575. _lcl_receval_old=''
  25576. while test "$_lcl_receval_old" != "$_lcl_receval"; do
  25577. _lcl_receval_old="$_lcl_receval"
  25578. eval _lcl_receval="\"$_lcl_receval\""
  25579. done
  25580. echo "$_lcl_receval")`
  25581. _lcl_notation="$_lcl_from$_lcl_to"
  25582. case ":$_lcl_from:" in
  25583. # change empty paths to '.'
  25584. ::) _lcl_from='.' ;;
  25585. # strip trailing slashes
  25586. :*[\\/]:) _lcl_from=`echo "$_lcl_from" | sed 's,[\\/]*$,,'` ;;
  25587. :*:) ;;
  25588. esac
  25589. # squeeze repeated slashes
  25590. case '/' in
  25591. # if the path contains any backslashes, turn slashes into backslashes
  25592. *\\*) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25593. # if the path contains slashes, also turn backslashes into slashes
  25594. *) _lcl_from=`echo "$_lcl_from" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25595. esac
  25596. case ":$_lcl_to:" in
  25597. # change empty paths to '.'
  25598. ::) _lcl_to='.' ;;
  25599. # strip trailing slashes
  25600. :*[\\/]:) _lcl_to=`echo "$_lcl_to" | sed 's,[\\/]*$,,'` ;;
  25601. :*:) ;;
  25602. esac
  25603. # squeeze repeated slashes
  25604. case '/' in
  25605. # if the path contains any backslashes, turn slashes into backslashes
  25606. *\\*) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25607. # if the path contains slashes, also turn backslashes into slashes
  25608. *) _lcl_to=`echo "$_lcl_to" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25609. esac
  25610. _lcl_common_prefix=''
  25611. _lcl_second_prefix_match=''
  25612. while test "$_lcl_second_prefix_match" != 0; do
  25613. _lcl_first_prefix=`expr "x$_lcl_from" : "x\($_lcl_common_prefix/*[^/]*\)"`
  25614. _lcl_second_prefix_match=`expr "x$_lcl_to" : "x$_lcl_first_prefix"`
  25615. if test "$_lcl_second_prefix_match" != 0; then
  25616. if test "$_lcl_first_prefix" != "$_lcl_common_prefix"; then
  25617. _lcl_common_prefix="$_lcl_first_prefix"
  25618. else
  25619. _lcl_second_prefix_match=0
  25620. fi
  25621. fi
  25622. done
  25623. _lcl_first_suffix=`expr "x$_lcl_from" : "x$_lcl_common_prefix/*\(.*\)"`
  25624. _lcl_first_rel=''
  25625. _lcl_tmp='xxx'
  25626. while test "$_lcl_tmp" != ''; do
  25627. _lcl_tmp=`expr "x$_lcl_first_suffix" : "x[^/]*/*\(.*\)"`
  25628. if test "$_lcl_first_suffix" != ''; then
  25629. _lcl_first_suffix="$_lcl_tmp"
  25630. _lcl_first_rel="../$_lcl_first_rel"
  25631. fi
  25632. done
  25633. _lcl_second_suffix=`expr "x$_lcl_to" : "x$_lcl_common_prefix/*\(.*\)"`
  25634. _lcl_result_tmp="$_lcl_first_rel$_lcl_second_suffix"
  25635. case ":$_lcl_result_tmp:" in
  25636. # change empty paths to '.'
  25637. ::) _lcl_result_tmp='.' ;;
  25638. # strip trailing slashes
  25639. :*[\\/]:) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,[\\/]*$,,'` ;;
  25640. :*:) ;;
  25641. esac
  25642. # squeeze repeated slashes
  25643. case "$_lcl_notation" in
  25644. # if the path contains any backslashes, turn slashes into backslashes
  25645. *\\*) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1\\\\,g'` ;;
  25646. # if the path contains slashes, also turn backslashes into slashes
  25647. *) _lcl_result_tmp=`echo "$_lcl_result_tmp" | sed 's,\(.\)[\\/][\\/]*,\1/,g'` ;;
  25648. esac
  25649. eval $_lcl_result_var='$_lcl_result_tmp'
  25650. done
  25651. if test x$enable_shared = xyes; then
  25652. PKGCONFIG_LIBS_PRIV="
  25653. Libs.private:"
  25654. ENABLE_SHARED_TRUE=
  25655. ENABLE_SHARED_FALSE="#"
  25656. else
  25657. PKGCONFIG_LIBS_PRIV=
  25658. ENABLE_SHARED_TRUE="#"
  25659. ENABLE_SHARED_FALSE=
  25660. fi
  25661. if test x$enable_static = xyes; then
  25662. ENABLE_STATIC_TRUE=
  25663. ENABLE_STATIC_FALSE="#"
  25664. else
  25665. ENABLE_STATIC_TRUE="#"
  25666. ENABLE_STATIC_FALSE=
  25667. fi
  25668. cat >Makefile.rules <<__EOF__
  25669. # Build rules for objects
  25670. -include \$(OBJECTS:.lo=.d)
  25671. # Special dependency for SDL.c, since it depends on SDL_revision.h
  25672. $srcdir/src/SDL.c: update-revision
  25673. $DEPENDS
  25674. $VERSION_DEPENDS
  25675. $SDLMAIN_DEPENDS
  25676. $SDLTEST_DEPENDS
  25677. $WAYLAND_PROTOCOLS_DEPENDS
  25678. __EOF__
  25679. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  25680. ac_config_commands="$ac_config_commands sdl2_config"
  25681. SUMMARY="SDL2 Configure Summary:\n"
  25682. if test x$enable_shared = xyes; then
  25683. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  25684. fi
  25685. if test x$enable_static = xyes; then
  25686. SUMMARY="${SUMMARY}Building Static Libraries\n"
  25687. fi
  25688. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  25689. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  25690. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  25691. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  25692. if test x$have_x = xyes; then
  25693. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  25694. fi
  25695. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  25696. if test x$have_joystick_virtual = xyes; then
  25697. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  25698. else
  25699. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  25700. fi
  25701. if test x$have_samplerate_h_hdr = xyes; then
  25702. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  25703. else
  25704. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  25705. fi
  25706. if test x$have_libudev_h_hdr = xyes; then
  25707. SUMMARY="${SUMMARY}Using libudev : YES\n"
  25708. else
  25709. SUMMARY="${SUMMARY}Using libudev : NO\n"
  25710. fi
  25711. if test x$have_dbus_dbus_h_hdr = xyes; then
  25712. SUMMARY="${SUMMARY}Using dbus : YES\n"
  25713. else
  25714. SUMMARY="${SUMMARY}Using dbus : NO\n"
  25715. fi
  25716. if test x$enable_ime = xyes; then
  25717. SUMMARY="${SUMMARY}Using ime : YES\n"
  25718. else
  25719. SUMMARY="${SUMMARY}Using ime : NO\n"
  25720. fi
  25721. if test x$have_ibus_ibus_h_hdr = xyes; then
  25722. SUMMARY="${SUMMARY}Using ibus : YES\n"
  25723. else
  25724. SUMMARY="${SUMMARY}Using ibus : NO\n"
  25725. fi
  25726. if test x$have_fcitx = xyes; then
  25727. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  25728. else
  25729. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  25730. fi
  25731. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  25732. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  25733. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25734. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25735. SUMMARY="${SUMMARY}configure script with:\n"
  25736. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  25737. fi
  25738. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  25739. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  25740. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  25741. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  25742. SUMMARY="${SUMMARY}configure script with:\n"
  25743. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  25744. fi
  25745. ac_config_commands="$ac_config_commands summary"
  25746. cat >confcache <<\_ACEOF
  25747. # This file is a shell script that caches the results of configure
  25748. # tests run on this system so they can be shared between configure
  25749. # scripts and configure runs, see configure's option --config-cache.
  25750. # It is not useful on other systems. If it contains results you don't
  25751. # want to keep, you may remove or edit it.
  25752. #
  25753. # config.status only pays attention to the cache file if you give it
  25754. # the --recheck option to rerun configure.
  25755. #
  25756. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25757. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25758. # following values.
  25759. _ACEOF
  25760. # The following way of writing the cache mishandles newlines in values,
  25761. # but we know of no workaround that is simple, portable, and efficient.
  25762. # So, we kill variables containing newlines.
  25763. # Ultrix sh set writes to stderr and can't be redirected directly,
  25764. # and sets the high bit in the cache file unless we assign to the vars.
  25765. (
  25766. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25767. eval ac_val=\$$ac_var
  25768. case $ac_val in #(
  25769. *${as_nl}*)
  25770. case $ac_var in #(
  25771. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25772. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25773. esac
  25774. case $ac_var in #(
  25775. _ | IFS | as_nl) ;; #(
  25776. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25777. *) { eval $ac_var=; unset $ac_var;} ;;
  25778. esac ;;
  25779. esac
  25780. done
  25781. (set) 2>&1 |
  25782. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25783. *${as_nl}ac_space=\ *)
  25784. # `set' does not quote correctly, so add quotes: double-quote
  25785. # substitution turns \\\\ into \\, and sed turns \\ into \.
  25786. sed -n \
  25787. "s/'/'\\\\''/g;
  25788. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25789. ;; #(
  25790. *)
  25791. # `set' quotes correctly as required by POSIX, so do not add quotes.
  25792. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25793. ;;
  25794. esac |
  25795. sort
  25796. ) |
  25797. sed '
  25798. /^ac_cv_env_/b end
  25799. t clear
  25800. :clear
  25801. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  25802. t end
  25803. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25804. :end' >>confcache
  25805. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25806. if test -w "$cache_file"; then
  25807. if test "x$cache_file" != "x/dev/null"; then
  25808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25809. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  25810. if test ! -f "$cache_file" || test -h "$cache_file"; then
  25811. cat confcache >"$cache_file"
  25812. else
  25813. case $cache_file in #(
  25814. */* | ?:*)
  25815. mv -f confcache "$cache_file"$$ &&
  25816. mv -f "$cache_file"$$ "$cache_file" ;; #(
  25817. *)
  25818. mv -f confcache "$cache_file" ;;
  25819. esac
  25820. fi
  25821. fi
  25822. else
  25823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25824. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  25825. fi
  25826. fi
  25827. rm -f confcache
  25828. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25829. # Let make expand exec_prefix.
  25830. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25831. DEFS=-DHAVE_CONFIG_H
  25832. ac_libobjs=
  25833. ac_ltlibobjs=
  25834. U=
  25835. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25836. # 1. Remove the extension, and $U if already installed.
  25837. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25838. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  25839. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25840. # will be set to the directory where LIBOBJS objects are built.
  25841. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25842. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25843. done
  25844. LIBOBJS=$ac_libobjs
  25845. LTLIBOBJS=$ac_ltlibobjs
  25846. : "${CONFIG_STATUS=./config.status}"
  25847. ac_write_fail=0
  25848. ac_clean_files_save=$ac_clean_files
  25849. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25851. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  25852. as_write_fail=0
  25853. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25854. #! $SHELL
  25855. # Generated by $as_me.
  25856. # Run this file to recreate the current configuration.
  25857. # Compiler output produced by configure, useful for debugging
  25858. # configure, is in config.log if it exists.
  25859. debug=false
  25860. ac_cs_recheck=false
  25861. ac_cs_silent=false
  25862. SHELL=\${CONFIG_SHELL-$SHELL}
  25863. export SHELL
  25864. _ASEOF
  25865. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25866. ## -------------------- ##
  25867. ## M4sh Initialization. ##
  25868. ## -------------------- ##
  25869. # Be more Bourne compatible
  25870. DUALCASE=1; export DUALCASE # for MKS sh
  25871. as_nop=:
  25872. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  25873. then :
  25874. emulate sh
  25875. NULLCMD=:
  25876. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25877. # is contrary to our usage. Disable this feature.
  25878. alias -g '${1+"$@"}'='"$@"'
  25879. setopt NO_GLOB_SUBST
  25880. else $as_nop
  25881. case `(set -o) 2>/dev/null` in #(
  25882. *posix*) :
  25883. set -o posix ;; #(
  25884. *) :
  25885. ;;
  25886. esac
  25887. fi
  25888. # Reset variables that may have inherited troublesome values from
  25889. # the environment.
  25890. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  25891. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  25892. # side effect of setting IFS to empty, thus disabling word splitting.)
  25893. # Quoting is to prevent editors from complaining about space-tab.
  25894. as_nl='
  25895. '
  25896. export as_nl
  25897. IFS=" "" $as_nl"
  25898. PS1='$ '
  25899. PS2='> '
  25900. PS4='+ '
  25901. # Ensure predictable behavior from utilities with locale-dependent output.
  25902. LC_ALL=C
  25903. export LC_ALL
  25904. LANGUAGE=C
  25905. export LANGUAGE
  25906. # We cannot yet rely on "unset" to work, but we need these variables
  25907. # to be unset--not just set to an empty or harmless value--now, to
  25908. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  25909. # also avoids known problems related to "unset" and subshell syntax
  25910. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  25911. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  25912. do eval test \${$as_var+y} \
  25913. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25914. done
  25915. # Ensure that fds 0, 1, and 2 are open.
  25916. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  25917. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  25918. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  25919. # The user is always right.
  25920. if ${PATH_SEPARATOR+false} :; then
  25921. PATH_SEPARATOR=:
  25922. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25923. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25924. PATH_SEPARATOR=';'
  25925. }
  25926. fi
  25927. # Find who we are. Look in the path if we contain no directory separator.
  25928. as_myself=
  25929. case $0 in #((
  25930. *[\\/]* ) as_myself=$0 ;;
  25931. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25932. for as_dir in $PATH
  25933. do
  25934. IFS=$as_save_IFS
  25935. case $as_dir in #(((
  25936. '') as_dir=./ ;;
  25937. */) ;;
  25938. *) as_dir=$as_dir/ ;;
  25939. esac
  25940. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  25941. done
  25942. IFS=$as_save_IFS
  25943. ;;
  25944. esac
  25945. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25946. # in which case we are not to be found in the path.
  25947. if test "x$as_myself" = x; then
  25948. as_myself=$0
  25949. fi
  25950. if test ! -f "$as_myself"; then
  25951. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25952. exit 1
  25953. fi
  25954. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25955. # ----------------------------------------
  25956. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25957. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25958. # script with STATUS, using 1 if that was 0.
  25959. as_fn_error ()
  25960. {
  25961. as_status=$1; test $as_status -eq 0 && as_status=1
  25962. if test "$4"; then
  25963. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25964. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25965. fi
  25966. printf "%s\n" "$as_me: error: $2" >&2
  25967. as_fn_exit $as_status
  25968. } # as_fn_error
  25969. # as_fn_set_status STATUS
  25970. # -----------------------
  25971. # Set $? to STATUS, without forking.
  25972. as_fn_set_status ()
  25973. {
  25974. return $1
  25975. } # as_fn_set_status
  25976. # as_fn_exit STATUS
  25977. # -----------------
  25978. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25979. as_fn_exit ()
  25980. {
  25981. set +e
  25982. as_fn_set_status $1
  25983. exit $1
  25984. } # as_fn_exit
  25985. # as_fn_unset VAR
  25986. # ---------------
  25987. # Portably unset VAR.
  25988. as_fn_unset ()
  25989. {
  25990. { eval $1=; unset $1;}
  25991. }
  25992. as_unset=as_fn_unset
  25993. # as_fn_append VAR VALUE
  25994. # ----------------------
  25995. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25996. # advantage of any shell optimizations that allow amortized linear growth over
  25997. # repeated appends, instead of the typical quadratic growth present in naive
  25998. # implementations.
  25999. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  26000. then :
  26001. eval 'as_fn_append ()
  26002. {
  26003. eval $1+=\$2
  26004. }'
  26005. else $as_nop
  26006. as_fn_append ()
  26007. {
  26008. eval $1=\$$1\$2
  26009. }
  26010. fi # as_fn_append
  26011. # as_fn_arith ARG...
  26012. # ------------------
  26013. # Perform arithmetic evaluation on the ARGs, and store the result in the
  26014. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  26015. # must be portable across $(()) and expr.
  26016. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  26017. then :
  26018. eval 'as_fn_arith ()
  26019. {
  26020. as_val=$(( $* ))
  26021. }'
  26022. else $as_nop
  26023. as_fn_arith ()
  26024. {
  26025. as_val=`expr "$@" || test $? -eq 1`
  26026. }
  26027. fi # as_fn_arith
  26028. if expr a : '\(a\)' >/dev/null 2>&1 &&
  26029. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  26030. as_expr=expr
  26031. else
  26032. as_expr=false
  26033. fi
  26034. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  26035. as_basename=basename
  26036. else
  26037. as_basename=false
  26038. fi
  26039. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  26040. as_dirname=dirname
  26041. else
  26042. as_dirname=false
  26043. fi
  26044. as_me=`$as_basename -- "$0" ||
  26045. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  26046. X"$0" : 'X\(//\)$' \| \
  26047. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  26048. printf "%s\n" X/"$0" |
  26049. sed '/^.*\/\([^/][^/]*\)\/*$/{
  26050. s//\1/
  26051. q
  26052. }
  26053. /^X\/\(\/\/\)$/{
  26054. s//\1/
  26055. q
  26056. }
  26057. /^X\/\(\/\).*/{
  26058. s//\1/
  26059. q
  26060. }
  26061. s/.*/./; q'`
  26062. # Avoid depending upon Character Ranges.
  26063. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  26064. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  26065. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  26066. as_cr_digits='0123456789'
  26067. as_cr_alnum=$as_cr_Letters$as_cr_digits
  26068. # Determine whether it's possible to make 'echo' print without a newline.
  26069. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  26070. # for compatibility with existing Makefiles.
  26071. ECHO_C= ECHO_N= ECHO_T=
  26072. case `echo -n x` in #(((((
  26073. -n*)
  26074. case `echo 'xy\c'` in
  26075. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  26076. xy) ECHO_C='\c';;
  26077. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  26078. ECHO_T=' ';;
  26079. esac;;
  26080. *)
  26081. ECHO_N='-n';;
  26082. esac
  26083. # For backward compatibility with old third-party macros, we provide
  26084. # the shell variables $as_echo and $as_echo_n. New code should use
  26085. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  26086. as_echo='printf %s\n'
  26087. as_echo_n='printf %s'
  26088. rm -f conf$$ conf$$.exe conf$$.file
  26089. if test -d conf$$.dir; then
  26090. rm -f conf$$.dir/conf$$.file
  26091. else
  26092. rm -f conf$$.dir
  26093. mkdir conf$$.dir 2>/dev/null
  26094. fi
  26095. if (echo >conf$$.file) 2>/dev/null; then
  26096. if ln -s conf$$.file conf$$ 2>/dev/null; then
  26097. as_ln_s='ln -s'
  26098. # ... but there are two gotchas:
  26099. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  26100. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  26101. # In both cases, we have to default to `cp -pR'.
  26102. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  26103. as_ln_s='cp -pR'
  26104. elif ln conf$$.file conf$$ 2>/dev/null; then
  26105. as_ln_s=ln
  26106. else
  26107. as_ln_s='cp -pR'
  26108. fi
  26109. else
  26110. as_ln_s='cp -pR'
  26111. fi
  26112. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  26113. rmdir conf$$.dir 2>/dev/null
  26114. # as_fn_mkdir_p
  26115. # -------------
  26116. # Create "$as_dir" as a directory, including parents if necessary.
  26117. as_fn_mkdir_p ()
  26118. {
  26119. case $as_dir in #(
  26120. -*) as_dir=./$as_dir;;
  26121. esac
  26122. test -d "$as_dir" || eval $as_mkdir_p || {
  26123. as_dirs=
  26124. while :; do
  26125. case $as_dir in #(
  26126. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  26127. *) as_qdir=$as_dir;;
  26128. esac
  26129. as_dirs="'$as_qdir' $as_dirs"
  26130. as_dir=`$as_dirname -- "$as_dir" ||
  26131. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26132. X"$as_dir" : 'X\(//\)[^/]' \| \
  26133. X"$as_dir" : 'X\(//\)$' \| \
  26134. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26135. printf "%s\n" X"$as_dir" |
  26136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26137. s//\1/
  26138. q
  26139. }
  26140. /^X\(\/\/\)[^/].*/{
  26141. s//\1/
  26142. q
  26143. }
  26144. /^X\(\/\/\)$/{
  26145. s//\1/
  26146. q
  26147. }
  26148. /^X\(\/\).*/{
  26149. s//\1/
  26150. q
  26151. }
  26152. s/.*/./; q'`
  26153. test -d "$as_dir" && break
  26154. done
  26155. test -z "$as_dirs" || eval "mkdir $as_dirs"
  26156. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  26157. } # as_fn_mkdir_p
  26158. if mkdir -p . 2>/dev/null; then
  26159. as_mkdir_p='mkdir -p "$as_dir"'
  26160. else
  26161. test -d ./-p && rmdir ./-p
  26162. as_mkdir_p=false
  26163. fi
  26164. # as_fn_executable_p FILE
  26165. # -----------------------
  26166. # Test if FILE is an executable regular file.
  26167. as_fn_executable_p ()
  26168. {
  26169. test -f "$1" && test -x "$1"
  26170. } # as_fn_executable_p
  26171. as_test_x='test -x'
  26172. as_executable_p=as_fn_executable_p
  26173. # Sed expression to map a string onto a valid CPP name.
  26174. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  26175. # Sed expression to map a string onto a valid variable name.
  26176. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  26177. exec 6>&1
  26178. ## ----------------------------------- ##
  26179. ## Main body of $CONFIG_STATUS script. ##
  26180. ## ----------------------------------- ##
  26181. _ASEOF
  26182. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  26183. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26184. # Save the log message, to keep $0 and so on meaningful, and to
  26185. # report actual input values of CONFIG_FILES etc. instead of their
  26186. # values after options handling.
  26187. ac_log="
  26188. This file was extended by $as_me, which was
  26189. generated by GNU Autoconf 2.71. Invocation command line was
  26190. CONFIG_FILES = $CONFIG_FILES
  26191. CONFIG_HEADERS = $CONFIG_HEADERS
  26192. CONFIG_LINKS = $CONFIG_LINKS
  26193. CONFIG_COMMANDS = $CONFIG_COMMANDS
  26194. $ $0 $@
  26195. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  26196. "
  26197. _ACEOF
  26198. case $ac_config_files in *"
  26199. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26200. esac
  26201. case $ac_config_headers in *"
  26202. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  26203. esac
  26204. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26205. # Files that config.status was made for.
  26206. config_files="$ac_config_files"
  26207. config_headers="$ac_config_headers"
  26208. config_commands="$ac_config_commands"
  26209. _ACEOF
  26210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26211. ac_cs_usage="\
  26212. \`$as_me' instantiates files and other configuration actions
  26213. from templates according to the current configuration. Unless the files
  26214. and actions are specified as TAGs, all are instantiated by default.
  26215. Usage: $0 [OPTION]... [TAG]...
  26216. -h, --help print this help, then exit
  26217. -V, --version print version number and configuration settings, then exit
  26218. --config print configuration, then exit
  26219. -q, --quiet, --silent
  26220. do not print progress messages
  26221. -d, --debug don't remove temporary files
  26222. --recheck update $as_me by reconfiguring in the same conditions
  26223. --file=FILE[:TEMPLATE]
  26224. instantiate the configuration file FILE
  26225. --header=FILE[:TEMPLATE]
  26226. instantiate the configuration header FILE
  26227. Configuration files:
  26228. $config_files
  26229. Configuration headers:
  26230. $config_headers
  26231. Configuration commands:
  26232. $config_commands
  26233. Report bugs to the package provider."
  26234. _ACEOF
  26235. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  26236. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  26237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26238. ac_cs_config='$ac_cs_config_escaped'
  26239. ac_cs_version="\\
  26240. config.status
  26241. configured by $0, generated by GNU Autoconf 2.71,
  26242. with options \\"\$ac_cs_config\\"
  26243. Copyright (C) 2021 Free Software Foundation, Inc.
  26244. This config.status script is free software; the Free Software Foundation
  26245. gives unlimited permission to copy, distribute and modify it."
  26246. ac_pwd='$ac_pwd'
  26247. srcdir='$srcdir'
  26248. INSTALL='$INSTALL'
  26249. AWK='$AWK'
  26250. test -n "\$AWK" || AWK=awk
  26251. _ACEOF
  26252. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26253. # The default lists apply if the user does not specify any file.
  26254. ac_need_defaults=:
  26255. while test $# != 0
  26256. do
  26257. case $1 in
  26258. --*=?*)
  26259. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26260. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26261. ac_shift=:
  26262. ;;
  26263. --*=)
  26264. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26265. ac_optarg=
  26266. ac_shift=:
  26267. ;;
  26268. *)
  26269. ac_option=$1
  26270. ac_optarg=$2
  26271. ac_shift=shift
  26272. ;;
  26273. esac
  26274. case $ac_option in
  26275. # Handling of the options.
  26276. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26277. ac_cs_recheck=: ;;
  26278. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26279. printf "%s\n" "$ac_cs_version"; exit ;;
  26280. --config | --confi | --conf | --con | --co | --c )
  26281. printf "%s\n" "$ac_cs_config"; exit ;;
  26282. --debug | --debu | --deb | --de | --d | -d )
  26283. debug=: ;;
  26284. --file | --fil | --fi | --f )
  26285. $ac_shift
  26286. case $ac_optarg in
  26287. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26288. '') as_fn_error $? "missing file argument" ;;
  26289. esac
  26290. as_fn_append CONFIG_FILES " '$ac_optarg'"
  26291. ac_need_defaults=false;;
  26292. --header | --heade | --head | --hea )
  26293. $ac_shift
  26294. case $ac_optarg in
  26295. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26296. esac
  26297. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  26298. ac_need_defaults=false;;
  26299. --he | --h)
  26300. # Conflict between --help and --header
  26301. as_fn_error $? "ambiguous option: \`$1'
  26302. Try \`$0 --help' for more information.";;
  26303. --help | --hel | -h )
  26304. printf "%s\n" "$ac_cs_usage"; exit ;;
  26305. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26306. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26307. ac_cs_silent=: ;;
  26308. # This is an error.
  26309. -*) as_fn_error $? "unrecognized option: \`$1'
  26310. Try \`$0 --help' for more information." ;;
  26311. *) as_fn_append ac_config_targets " $1"
  26312. ac_need_defaults=false ;;
  26313. esac
  26314. shift
  26315. done
  26316. ac_configure_extra_args=
  26317. if $ac_cs_silent; then
  26318. exec 6>/dev/null
  26319. ac_configure_extra_args="$ac_configure_extra_args --silent"
  26320. fi
  26321. _ACEOF
  26322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26323. if \$ac_cs_recheck; then
  26324. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26325. shift
  26326. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  26327. CONFIG_SHELL='$SHELL'
  26328. export CONFIG_SHELL
  26329. exec "\$@"
  26330. fi
  26331. _ACEOF
  26332. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26333. exec 5>>config.log
  26334. {
  26335. echo
  26336. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26337. ## Running $as_me. ##
  26338. _ASBOX
  26339. printf "%s\n" "$ac_log"
  26340. } >&5
  26341. _ACEOF
  26342. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26343. #
  26344. # INIT-COMMANDS
  26345. #
  26346. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26347. # if CDPATH is set.
  26348. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26349. sed_quote_subst='$sed_quote_subst'
  26350. double_quote_subst='$double_quote_subst'
  26351. delay_variable_subst='$delay_variable_subst'
  26352. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26353. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26354. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  26355. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26356. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26357. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26358. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26359. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26360. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26361. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  26362. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26363. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26364. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26365. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26366. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26367. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26368. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26369. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26370. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26371. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26372. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26373. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26374. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26375. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26376. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26377. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26378. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26379. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26380. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26381. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26382. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26383. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26384. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26385. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26386. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26387. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26388. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26389. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26390. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26391. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26392. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26393. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26394. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26395. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26396. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26397. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26398. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26399. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26400. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26401. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26402. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26403. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26404. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26405. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26406. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26407. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26408. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26409. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  26410. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26411. 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"`'
  26412. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  26413. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26414. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26415. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  26416. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26417. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26418. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26419. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26420. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26421. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26422. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26423. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26424. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26425. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26426. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26427. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26428. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26429. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26430. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26431. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26432. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26433. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26434. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26435. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26436. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26437. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26438. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26439. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26440. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26441. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26442. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26443. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26444. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26445. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26446. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26447. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26448. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26449. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26450. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26451. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26452. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26453. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26454. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26455. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26456. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26457. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26458. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26459. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26460. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26461. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26462. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26463. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26464. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26465. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26466. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26467. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26468. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26469. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26470. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26471. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26472. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26473. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26474. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26475. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26476. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26477. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26478. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26479. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26480. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  26481. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  26482. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26483. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26484. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26485. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26486. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26487. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26488. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26489. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26490. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26491. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26492. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26493. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26494. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  26495. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26496. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  26497. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26498. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26499. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26500. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26501. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26502. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  26503. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26504. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  26505. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26506. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  26507. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26508. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  26509. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26510. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  26511. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26512. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  26513. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26514. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  26515. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26516. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  26517. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26518. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  26519. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26520. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26521. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26522. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26523. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26524. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  26525. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26526. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26527. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26528. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26529. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26530. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26531. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26532. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26533. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26534. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26535. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26536. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26537. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26538. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  26539. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26540. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26541. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26542. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  26543. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26544. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  26545. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26546. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  26547. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26548. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  26549. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26550. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  26551. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26552. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  26553. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26554. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  26555. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26556. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  26557. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26558. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  26559. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26560. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  26561. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26562. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  26563. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26564. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26565. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26566. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26567. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26568. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  26569. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26570. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26571. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26572. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  26573. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26574. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  26575. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26576. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  26577. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26578. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  26579. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26580. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26581. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26582. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  26583. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26584. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  26585. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26586. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  26587. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26588. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  26589. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26590. LTCC='$LTCC'
  26591. LTCFLAGS='$LTCFLAGS'
  26592. compiler='$compiler_DEFAULT'
  26593. # A function that is used when there is no print builtin or printf.
  26594. func_fallback_echo ()
  26595. {
  26596. eval 'cat <<_LTECHO_EOF
  26597. \$1
  26598. _LTECHO_EOF'
  26599. }
  26600. # Quote evaled strings.
  26601. for var in AS \
  26602. DLLTOOL \
  26603. OBJDUMP \
  26604. SHELL \
  26605. ECHO \
  26606. PATH_SEPARATOR \
  26607. SED \
  26608. GREP \
  26609. EGREP \
  26610. FGREP \
  26611. LD \
  26612. NM \
  26613. LN_S \
  26614. lt_SP2NL \
  26615. lt_NL2SP \
  26616. reload_flag \
  26617. deplibs_check_method \
  26618. file_magic_cmd \
  26619. file_magic_glob \
  26620. want_nocaseglob \
  26621. sharedlib_from_linklib_cmd \
  26622. AR \
  26623. AR_FLAGS \
  26624. archiver_list_spec \
  26625. STRIP \
  26626. RANLIB \
  26627. CC \
  26628. CFLAGS \
  26629. compiler \
  26630. lt_cv_sys_global_symbol_pipe \
  26631. lt_cv_sys_global_symbol_to_cdecl \
  26632. lt_cv_sys_global_symbol_to_import \
  26633. lt_cv_sys_global_symbol_to_c_name_address \
  26634. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26635. lt_cv_nm_interface \
  26636. nm_file_list_spec \
  26637. lt_cv_truncate_bin \
  26638. lt_prog_compiler_no_builtin_flag \
  26639. lt_prog_compiler_pic \
  26640. lt_prog_compiler_wl \
  26641. lt_prog_compiler_static \
  26642. lt_cv_prog_compiler_c_o \
  26643. need_locks \
  26644. MANIFEST_TOOL \
  26645. DSYMUTIL \
  26646. NMEDIT \
  26647. LIPO \
  26648. OTOOL \
  26649. OTOOL64 \
  26650. shrext_cmds \
  26651. export_dynamic_flag_spec \
  26652. whole_archive_flag_spec \
  26653. compiler_needs_object \
  26654. with_gnu_ld \
  26655. allow_undefined_flag \
  26656. no_undefined_flag \
  26657. hardcode_libdir_flag_spec \
  26658. hardcode_libdir_separator \
  26659. exclude_expsyms \
  26660. include_expsyms \
  26661. file_list_spec \
  26662. variables_saved_for_relink \
  26663. libname_spec \
  26664. library_names_spec \
  26665. soname_spec \
  26666. install_override_mode \
  26667. finish_eval \
  26668. old_striplib \
  26669. striplib \
  26670. compiler_lib_search_dirs \
  26671. predep_objects \
  26672. postdep_objects \
  26673. predeps \
  26674. postdeps \
  26675. compiler_lib_search_path \
  26676. LD_RC \
  26677. LD_CXX \
  26678. reload_flag_RC \
  26679. reload_flag_CXX \
  26680. compiler_RC \
  26681. compiler_CXX \
  26682. lt_prog_compiler_no_builtin_flag_RC \
  26683. lt_prog_compiler_no_builtin_flag_CXX \
  26684. lt_prog_compiler_pic_RC \
  26685. lt_prog_compiler_pic_CXX \
  26686. lt_prog_compiler_wl_RC \
  26687. lt_prog_compiler_wl_CXX \
  26688. lt_prog_compiler_static_RC \
  26689. lt_prog_compiler_static_CXX \
  26690. lt_cv_prog_compiler_c_o_RC \
  26691. lt_cv_prog_compiler_c_o_CXX \
  26692. export_dynamic_flag_spec_RC \
  26693. export_dynamic_flag_spec_CXX \
  26694. whole_archive_flag_spec_RC \
  26695. whole_archive_flag_spec_CXX \
  26696. compiler_needs_object_RC \
  26697. compiler_needs_object_CXX \
  26698. with_gnu_ld_RC \
  26699. with_gnu_ld_CXX \
  26700. allow_undefined_flag_RC \
  26701. allow_undefined_flag_CXX \
  26702. no_undefined_flag_RC \
  26703. no_undefined_flag_CXX \
  26704. hardcode_libdir_flag_spec_RC \
  26705. hardcode_libdir_flag_spec_CXX \
  26706. hardcode_libdir_separator_RC \
  26707. hardcode_libdir_separator_CXX \
  26708. exclude_expsyms_RC \
  26709. exclude_expsyms_CXX \
  26710. include_expsyms_RC \
  26711. include_expsyms_CXX \
  26712. file_list_spec_RC \
  26713. file_list_spec_CXX \
  26714. compiler_lib_search_dirs_RC \
  26715. compiler_lib_search_dirs_CXX \
  26716. predep_objects_RC \
  26717. predep_objects_CXX \
  26718. postdep_objects_RC \
  26719. postdep_objects_CXX \
  26720. predeps_RC \
  26721. predeps_CXX \
  26722. postdeps_RC \
  26723. postdeps_CXX \
  26724. compiler_lib_search_path_RC \
  26725. compiler_lib_search_path_CXX; do
  26726. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26727. *[\\\\\\\`\\"\\\$]*)
  26728. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26729. ;;
  26730. *)
  26731. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26732. ;;
  26733. esac
  26734. done
  26735. # Double-quote double-evaled strings.
  26736. for var in reload_cmds \
  26737. old_postinstall_cmds \
  26738. old_postuninstall_cmds \
  26739. old_archive_cmds \
  26740. extract_expsyms_cmds \
  26741. old_archive_from_new_cmds \
  26742. old_archive_from_expsyms_cmds \
  26743. archive_cmds \
  26744. archive_expsym_cmds \
  26745. module_cmds \
  26746. module_expsym_cmds \
  26747. export_symbols_cmds \
  26748. prelink_cmds \
  26749. postlink_cmds \
  26750. postinstall_cmds \
  26751. postuninstall_cmds \
  26752. finish_cmds \
  26753. sys_lib_search_path_spec \
  26754. configure_time_dlsearch_path \
  26755. configure_time_lt_sys_library_path \
  26756. reload_cmds_RC \
  26757. reload_cmds_CXX \
  26758. old_archive_cmds_RC \
  26759. old_archive_cmds_CXX \
  26760. old_archive_from_new_cmds_RC \
  26761. old_archive_from_new_cmds_CXX \
  26762. old_archive_from_expsyms_cmds_RC \
  26763. old_archive_from_expsyms_cmds_CXX \
  26764. archive_cmds_RC \
  26765. archive_cmds_CXX \
  26766. archive_expsym_cmds_RC \
  26767. archive_expsym_cmds_CXX \
  26768. module_cmds_RC \
  26769. module_cmds_CXX \
  26770. module_expsym_cmds_RC \
  26771. module_expsym_cmds_CXX \
  26772. export_symbols_cmds_RC \
  26773. export_symbols_cmds_CXX \
  26774. prelink_cmds_RC \
  26775. prelink_cmds_CXX \
  26776. postlink_cmds_RC \
  26777. postlink_cmds_CXX; do
  26778. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26779. *[\\\\\\\`\\"\\\$]*)
  26780. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  26781. ;;
  26782. *)
  26783. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26784. ;;
  26785. esac
  26786. done
  26787. ac_aux_dir='$ac_aux_dir'
  26788. # See if we are running on zsh, and set the options that allow our
  26789. # commands through without removal of \ escapes INIT.
  26790. if test -n "\${ZSH_VERSION+set}"; then
  26791. setopt NO_GLOB_SUBST
  26792. fi
  26793. PACKAGE='$PACKAGE'
  26794. VERSION='$VERSION'
  26795. RM='$RM'
  26796. ofile='$ofile'
  26797. SUMMARY="$SUMMARY"
  26798. _ACEOF
  26799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26800. # Handling of arguments.
  26801. for ac_config_target in $ac_config_targets
  26802. do
  26803. case $ac_config_target in
  26804. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  26805. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26806. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  26807. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  26808. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  26809. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  26810. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  26811. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  26812. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  26813. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  26814. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26815. esac
  26816. done
  26817. # If the user did not use the arguments to specify the items to instantiate,
  26818. # then the envvar interface is used. Set only those that are not.
  26819. # We use the long form for the default assignment because of an extremely
  26820. # bizarre bug on SunOS 4.1.3.
  26821. if $ac_need_defaults; then
  26822. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  26823. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  26824. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  26825. fi
  26826. # Have a temporary directory for convenience. Make it in the build tree
  26827. # simply because there is no reason against having it here, and in addition,
  26828. # creating and moving files from /tmp can sometimes cause problems.
  26829. # Hook for its removal unless debugging.
  26830. # Note that there is a small window in which the directory will not be cleaned:
  26831. # after its creation but before its name has been assigned to `$tmp'.
  26832. $debug ||
  26833. {
  26834. tmp= ac_tmp=
  26835. trap 'exit_status=$?
  26836. : "${ac_tmp:=$tmp}"
  26837. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26838. ' 0
  26839. trap 'as_fn_exit 1' 1 2 13 15
  26840. }
  26841. # Create a (secure) tmp directory for tmp files.
  26842. {
  26843. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26844. test -d "$tmp"
  26845. } ||
  26846. {
  26847. tmp=./conf$$-$RANDOM
  26848. (umask 077 && mkdir "$tmp")
  26849. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26850. ac_tmp=$tmp
  26851. # Set up the scripts for CONFIG_FILES section.
  26852. # No need to generate them if there are no CONFIG_FILES.
  26853. # This happens for instance with `./config.status config.h'.
  26854. if test -n "$CONFIG_FILES"; then
  26855. ac_cr=`echo X | tr X '\015'`
  26856. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26857. # But we know of no other shell where ac_cr would be empty at this
  26858. # point, so we can use a bashism as a fallback.
  26859. if test "x$ac_cr" = x; then
  26860. eval ac_cr=\$\'\\r\'
  26861. fi
  26862. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26863. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26864. ac_cs_awk_cr='\\r'
  26865. else
  26866. ac_cs_awk_cr=$ac_cr
  26867. fi
  26868. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26869. _ACEOF
  26870. {
  26871. echo "cat >conf$$subs.awk <<_ACEOF" &&
  26872. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26873. echo "_ACEOF"
  26874. } >conf$$subs.sh ||
  26875. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26876. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26877. ac_delim='%!_!# '
  26878. for ac_last_try in false false false false false :; do
  26879. . ./conf$$subs.sh ||
  26880. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26881. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26882. if test $ac_delim_n = $ac_delim_num; then
  26883. break
  26884. elif $ac_last_try; then
  26885. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26886. else
  26887. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26888. fi
  26889. done
  26890. rm -f conf$$subs.sh
  26891. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26892. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26893. _ACEOF
  26894. sed -n '
  26895. h
  26896. s/^/S["/; s/!.*/"]=/
  26897. p
  26898. g
  26899. s/^[^!]*!//
  26900. :repl
  26901. t repl
  26902. s/'"$ac_delim"'$//
  26903. t delim
  26904. :nl
  26905. h
  26906. s/\(.\{148\}\)..*/\1/
  26907. t more1
  26908. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26909. p
  26910. n
  26911. b repl
  26912. :more1
  26913. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26914. p
  26915. g
  26916. s/.\{148\}//
  26917. t nl
  26918. :delim
  26919. h
  26920. s/\(.\{148\}\)..*/\1/
  26921. t more2
  26922. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26923. p
  26924. b
  26925. :more2
  26926. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26927. p
  26928. g
  26929. s/.\{148\}//
  26930. t delim
  26931. ' <conf$$subs.awk | sed '
  26932. /^[^""]/{
  26933. N
  26934. s/\n//
  26935. }
  26936. ' >>$CONFIG_STATUS || ac_write_fail=1
  26937. rm -f conf$$subs.awk
  26938. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26939. _ACAWK
  26940. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26941. for (key in S) S_is_set[key] = 1
  26942. FS = ""
  26943. }
  26944. {
  26945. line = $ 0
  26946. nfields = split(line, field, "@")
  26947. substed = 0
  26948. len = length(field[1])
  26949. for (i = 2; i < nfields; i++) {
  26950. key = field[i]
  26951. keylen = length(key)
  26952. if (S_is_set[key]) {
  26953. value = S[key]
  26954. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26955. len += length(value) + length(field[++i])
  26956. substed = 1
  26957. } else
  26958. len += 1 + keylen
  26959. }
  26960. print line
  26961. }
  26962. _ACAWK
  26963. _ACEOF
  26964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26965. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26966. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26967. else
  26968. cat
  26969. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26970. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26971. _ACEOF
  26972. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26973. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26974. # trailing colons and then remove the whole line if VPATH becomes empty
  26975. # (actually we leave an empty line to preserve line numbers).
  26976. if test "x$srcdir" = x.; then
  26977. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  26978. h
  26979. s///
  26980. s/^/:/
  26981. s/[ ]*$/:/
  26982. s/:\$(srcdir):/:/g
  26983. s/:\${srcdir}:/:/g
  26984. s/:@srcdir@:/:/g
  26985. s/^:*//
  26986. s/:*$//
  26987. x
  26988. s/\(=[ ]*\).*/\1/
  26989. G
  26990. s/\n//
  26991. s/^[^=]*=[ ]*$//
  26992. }'
  26993. fi
  26994. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26995. fi # test -n "$CONFIG_FILES"
  26996. # Set up the scripts for CONFIG_HEADERS section.
  26997. # No need to generate them if there are no CONFIG_HEADERS.
  26998. # This happens for instance with `./config.status Makefile'.
  26999. if test -n "$CONFIG_HEADERS"; then
  27000. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  27001. BEGIN {
  27002. _ACEOF
  27003. # Transform confdefs.h into an awk script `defines.awk', embedded as
  27004. # here-document in config.status, that substitutes the proper values into
  27005. # config.h.in to produce config.h.
  27006. # Create a delimiter string that does not exist in confdefs.h, to ease
  27007. # handling of long lines.
  27008. ac_delim='%!_!# '
  27009. for ac_last_try in false false :; do
  27010. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  27011. if test -z "$ac_tt"; then
  27012. break
  27013. elif $ac_last_try; then
  27014. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  27015. else
  27016. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  27017. fi
  27018. done
  27019. # For the awk script, D is an array of macro values keyed by name,
  27020. # likewise P contains macro parameters if any. Preserve backslash
  27021. # newline sequences.
  27022. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27023. sed -n '
  27024. s/.\{148\}/&'"$ac_delim"'/g
  27025. t rset
  27026. :rset
  27027. s/^[ ]*#[ ]*define[ ][ ]*/ /
  27028. t def
  27029. d
  27030. :def
  27031. s/\\$//
  27032. t bsnl
  27033. s/["\\]/\\&/g
  27034. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27035. D["\1"]=" \3"/p
  27036. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  27037. d
  27038. :bsnl
  27039. s/["\\]/\\&/g
  27040. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  27041. D["\1"]=" \3\\\\\\n"\\/p
  27042. t cont
  27043. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  27044. t cont
  27045. d
  27046. :cont
  27047. n
  27048. s/.\{148\}/&'"$ac_delim"'/g
  27049. t clear
  27050. :clear
  27051. s/\\$//
  27052. t bsnlc
  27053. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  27054. d
  27055. :bsnlc
  27056. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  27057. b cont
  27058. ' <confdefs.h | sed '
  27059. s/'"$ac_delim"'/"\\\
  27060. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  27061. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27062. for (key in D) D_is_set[key] = 1
  27063. FS = ""
  27064. }
  27065. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  27066. line = \$ 0
  27067. split(line, arg, " ")
  27068. if (arg[1] == "#") {
  27069. defundef = arg[2]
  27070. mac1 = arg[3]
  27071. } else {
  27072. defundef = substr(arg[1], 2)
  27073. mac1 = arg[2]
  27074. }
  27075. split(mac1, mac2, "(") #)
  27076. macro = mac2[1]
  27077. prefix = substr(line, 1, index(line, defundef) - 1)
  27078. if (D_is_set[macro]) {
  27079. # Preserve the white space surrounding the "#".
  27080. print prefix "define", macro P[macro] D[macro]
  27081. next
  27082. } else {
  27083. # Replace #undef with comments. This is necessary, for example,
  27084. # in the case of _POSIX_SOURCE, which is predefined and required
  27085. # on some systems where configure will not decide to define it.
  27086. if (defundef == "undef") {
  27087. print "/*", prefix defundef, macro, "*/"
  27088. next
  27089. }
  27090. }
  27091. }
  27092. { print }
  27093. _ACAWK
  27094. _ACEOF
  27095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27096. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  27097. fi # test -n "$CONFIG_HEADERS"
  27098. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  27099. shift
  27100. for ac_tag
  27101. do
  27102. case $ac_tag in
  27103. :[FHLC]) ac_mode=$ac_tag; continue;;
  27104. esac
  27105. case $ac_mode$ac_tag in
  27106. :[FHL]*:*);;
  27107. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  27108. :[FH]-) ac_tag=-:-;;
  27109. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  27110. esac
  27111. ac_save_IFS=$IFS
  27112. IFS=:
  27113. set x $ac_tag
  27114. IFS=$ac_save_IFS
  27115. shift
  27116. ac_file=$1
  27117. shift
  27118. case $ac_mode in
  27119. :L) ac_source=$1;;
  27120. :[FH])
  27121. ac_file_inputs=
  27122. for ac_f
  27123. do
  27124. case $ac_f in
  27125. -) ac_f="$ac_tmp/stdin";;
  27126. *) # Look for the file first in the build tree, then in the source tree
  27127. # (if the path is not absolute). The absolute path cannot be DOS-style,
  27128. # because $ac_f cannot contain `:'.
  27129. test -f "$ac_f" ||
  27130. case $ac_f in
  27131. [\\/$]*) false;;
  27132. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  27133. esac ||
  27134. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  27135. esac
  27136. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  27137. as_fn_append ac_file_inputs " '$ac_f'"
  27138. done
  27139. # Let's still pretend it is `configure' which instantiates (i.e., don't
  27140. # use $as_me), people would be surprised to read:
  27141. # /* config.h. Generated by config.status. */
  27142. configure_input='Generated from '`
  27143. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  27144. `' by configure.'
  27145. if test x"$ac_file" != x-; then
  27146. configure_input="$ac_file. $configure_input"
  27147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  27148. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  27149. fi
  27150. # Neutralize special characters interpreted by sed in replacement strings.
  27151. case $configure_input in #(
  27152. *\&* | *\|* | *\\* )
  27153. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  27154. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  27155. *) ac_sed_conf_input=$configure_input;;
  27156. esac
  27157. case $ac_tag in
  27158. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  27159. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  27160. esac
  27161. ;;
  27162. esac
  27163. ac_dir=`$as_dirname -- "$ac_file" ||
  27164. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27165. X"$ac_file" : 'X\(//\)[^/]' \| \
  27166. X"$ac_file" : 'X\(//\)$' \| \
  27167. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  27168. printf "%s\n" X"$ac_file" |
  27169. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27170. s//\1/
  27171. q
  27172. }
  27173. /^X\(\/\/\)[^/].*/{
  27174. s//\1/
  27175. q
  27176. }
  27177. /^X\(\/\/\)$/{
  27178. s//\1/
  27179. q
  27180. }
  27181. /^X\(\/\).*/{
  27182. s//\1/
  27183. q
  27184. }
  27185. s/.*/./; q'`
  27186. as_dir="$ac_dir"; as_fn_mkdir_p
  27187. ac_builddir=.
  27188. case "$ac_dir" in
  27189. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27190. *)
  27191. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  27192. # A ".." for each directory in $ac_dir_suffix.
  27193. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  27194. case $ac_top_builddir_sub in
  27195. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  27196. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  27197. esac ;;
  27198. esac
  27199. ac_abs_top_builddir=$ac_pwd
  27200. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  27201. # for backward compatibility:
  27202. ac_top_builddir=$ac_top_build_prefix
  27203. case $srcdir in
  27204. .) # We are building in place.
  27205. ac_srcdir=.
  27206. ac_top_srcdir=$ac_top_builddir_sub
  27207. ac_abs_top_srcdir=$ac_pwd ;;
  27208. [\\/]* | ?:[\\/]* ) # Absolute name.
  27209. ac_srcdir=$srcdir$ac_dir_suffix;
  27210. ac_top_srcdir=$srcdir
  27211. ac_abs_top_srcdir=$srcdir ;;
  27212. *) # Relative name.
  27213. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  27214. ac_top_srcdir=$ac_top_build_prefix$srcdir
  27215. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27216. esac
  27217. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27218. case $ac_mode in
  27219. :F)
  27220. #
  27221. # CONFIG_FILE
  27222. #
  27223. case $INSTALL in
  27224. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27225. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27226. esac
  27227. _ACEOF
  27228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27229. # If the template does not know about datarootdir, expand it.
  27230. # FIXME: This hack should be removed a few years after 2.60.
  27231. ac_datarootdir_hack=; ac_datarootdir_seen=
  27232. ac_sed_dataroot='
  27233. /datarootdir/ {
  27234. p
  27235. q
  27236. }
  27237. /@datadir@/p
  27238. /@docdir@/p
  27239. /@infodir@/p
  27240. /@localedir@/p
  27241. /@mandir@/p'
  27242. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27243. *datarootdir*) ac_datarootdir_seen=yes;;
  27244. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27246. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27247. _ACEOF
  27248. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27249. ac_datarootdir_hack='
  27250. s&@datadir@&$datadir&g
  27251. s&@docdir@&$docdir&g
  27252. s&@infodir@&$infodir&g
  27253. s&@localedir@&$localedir&g
  27254. s&@mandir@&$mandir&g
  27255. s&\\\${datarootdir}&$datarootdir&g' ;;
  27256. esac
  27257. _ACEOF
  27258. # Neutralize VPATH when `$srcdir' = `.'.
  27259. # Shell code in configure.ac might set extrasub.
  27260. # FIXME: do we really want to maintain this feature?
  27261. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27262. ac_sed_extra="$ac_vpsub
  27263. $extrasub
  27264. _ACEOF
  27265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27266. :t
  27267. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27268. s|@configure_input@|$ac_sed_conf_input|;t t
  27269. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27270. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27271. s&@srcdir@&$ac_srcdir&;t t
  27272. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27273. s&@top_srcdir@&$ac_top_srcdir&;t t
  27274. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27275. s&@builddir@&$ac_builddir&;t t
  27276. s&@abs_builddir@&$ac_abs_builddir&;t t
  27277. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27278. s&@INSTALL@&$ac_INSTALL&;t t
  27279. $ac_datarootdir_hack
  27280. "
  27281. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27282. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27283. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27284. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27285. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  27286. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27288. which seems to be undefined. Please make sure it is defined" >&5
  27289. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27290. which seems to be undefined. Please make sure it is defined" >&2;}
  27291. rm -f "$ac_tmp/stdin"
  27292. case $ac_file in
  27293. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27294. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27295. esac \
  27296. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27297. ;;
  27298. :H)
  27299. #
  27300. # CONFIG_HEADER
  27301. #
  27302. if test x"$ac_file" != x-; then
  27303. {
  27304. printf "%s\n" "/* $configure_input */" >&1 \
  27305. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  27306. } >"$ac_tmp/config.h" \
  27307. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27308. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  27309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  27310. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  27311. else
  27312. rm -f "$ac_file"
  27313. mv "$ac_tmp/config.h" "$ac_file" \
  27314. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27315. fi
  27316. else
  27317. printf "%s\n" "/* $configure_input */" >&1 \
  27318. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  27319. || as_fn_error $? "could not create -" "$LINENO" 5
  27320. fi
  27321. ;;
  27322. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27323. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  27324. ;;
  27325. esac
  27326. case $ac_file$ac_mode in
  27327. "libtool":C)
  27328. # See if we are running on zsh, and set the options that allow our
  27329. # commands through without removal of \ escapes.
  27330. if test -n "${ZSH_VERSION+set}"; then
  27331. setopt NO_GLOB_SUBST
  27332. fi
  27333. cfgfile=${ofile}T
  27334. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27335. $RM "$cfgfile"
  27336. cat <<_LT_EOF >> "$cfgfile"
  27337. #! $SHELL
  27338. # Generated automatically by $as_me ($PACKAGE) $VERSION
  27339. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27340. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27341. # Provide generalized library-building support services.
  27342. # Written by Gordon Matzigkeit, 1996
  27343. # Copyright (C) 2014 Free Software Foundation, Inc.
  27344. # This is free software; see the source for copying conditions. There is NO
  27345. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27346. # GNU Libtool is free software; you can redistribute it and/or modify
  27347. # it under the terms of the GNU General Public License as published by
  27348. # the Free Software Foundation; either version 2 of of the License, or
  27349. # (at your option) any later version.
  27350. #
  27351. # As a special exception to the GNU General Public License, if you
  27352. # distribute this file as part of a program or library that is built
  27353. # using GNU Libtool, you may include this file under the same
  27354. # distribution terms that you use for the rest of that program.
  27355. #
  27356. # GNU Libtool is distributed in the hope that it will be useful, but
  27357. # WITHOUT ANY WARRANTY; without even the implied warranty of
  27358. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27359. # GNU General Public License for more details.
  27360. #
  27361. # You should have received a copy of the GNU General Public License
  27362. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  27363. # The names of the tagged configurations supported by this script.
  27364. available_tags='RC CXX '
  27365. # Configured defaults for sys_lib_dlsearch_path munging.
  27366. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  27367. # ### BEGIN LIBTOOL CONFIG
  27368. # Which release of libtool.m4 was used?
  27369. macro_version=$macro_version
  27370. macro_revision=$macro_revision
  27371. # Assembler program.
  27372. AS=$lt_AS
  27373. # DLL creation program.
  27374. DLLTOOL=$lt_DLLTOOL
  27375. # Object dumper program.
  27376. OBJDUMP=$lt_OBJDUMP
  27377. # Whether or not to build shared libraries.
  27378. build_libtool_libs=$enable_shared
  27379. # Whether or not to build static libraries.
  27380. build_old_libs=$enable_static
  27381. # What type of objects to build.
  27382. pic_mode=$pic_mode
  27383. # Whether or not to optimize for fast installation.
  27384. fast_install=$enable_fast_install
  27385. # Shared archive member basename,for filename based shared library versioning on AIX.
  27386. shared_archive_member_spec=$shared_archive_member_spec
  27387. # Shell to use when invoking shell scripts.
  27388. SHELL=$lt_SHELL
  27389. # An echo program that protects backslashes.
  27390. ECHO=$lt_ECHO
  27391. # The PATH separator for the build system.
  27392. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27393. # The host system.
  27394. host_alias=$host_alias
  27395. host=$host
  27396. host_os=$host_os
  27397. # The build system.
  27398. build_alias=$build_alias
  27399. build=$build
  27400. build_os=$build_os
  27401. # A sed program that does not truncate output.
  27402. SED=$lt_SED
  27403. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27404. Xsed="\$SED -e 1s/^X//"
  27405. # A grep program that handles long lines.
  27406. GREP=$lt_GREP
  27407. # An ERE matcher.
  27408. EGREP=$lt_EGREP
  27409. # A literal string matcher.
  27410. FGREP=$lt_FGREP
  27411. # A BSD- or MS-compatible name lister.
  27412. NM=$lt_NM
  27413. # Whether we need soft or hard links.
  27414. LN_S=$lt_LN_S
  27415. # What is the maximum length of a command?
  27416. max_cmd_len=$max_cmd_len
  27417. # Object file suffix (normally "o").
  27418. objext=$ac_objext
  27419. # Executable file suffix (normally "").
  27420. exeext=$exeext
  27421. # whether the shell understands "unset".
  27422. lt_unset=$lt_unset
  27423. # turn spaces into newlines.
  27424. SP2NL=$lt_lt_SP2NL
  27425. # turn newlines into spaces.
  27426. NL2SP=$lt_lt_NL2SP
  27427. # convert \$build file names to \$host format.
  27428. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27429. # convert \$build files to toolchain format.
  27430. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27431. # Method to check whether dependent libraries are shared objects.
  27432. deplibs_check_method=$lt_deplibs_check_method
  27433. # Command to use when deplibs_check_method = "file_magic".
  27434. file_magic_cmd=$lt_file_magic_cmd
  27435. # How to find potential files when deplibs_check_method = "file_magic".
  27436. file_magic_glob=$lt_file_magic_glob
  27437. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27438. want_nocaseglob=$lt_want_nocaseglob
  27439. # Command to associate shared and link libraries.
  27440. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27441. # The archiver.
  27442. AR=$lt_AR
  27443. # Flags to create an archive.
  27444. AR_FLAGS=$lt_AR_FLAGS
  27445. # How to feed a file listing to the archiver.
  27446. archiver_list_spec=$lt_archiver_list_spec
  27447. # A symbol stripping program.
  27448. STRIP=$lt_STRIP
  27449. # Commands used to install an old-style archive.
  27450. RANLIB=$lt_RANLIB
  27451. old_postinstall_cmds=$lt_old_postinstall_cmds
  27452. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27453. # Whether to use a lock for old archive extraction.
  27454. lock_old_archive_extraction=$lock_old_archive_extraction
  27455. # A C compiler.
  27456. LTCC=$lt_CC
  27457. # LTCC compiler flags.
  27458. LTCFLAGS=$lt_CFLAGS
  27459. # Take the output of nm and produce a listing of raw symbols and C names.
  27460. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27461. # Transform the output of nm in a proper C declaration.
  27462. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27463. # Transform the output of nm into a list of symbols to manually relocate.
  27464. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  27465. # Transform the output of nm in a C name address pair.
  27466. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27467. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27468. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27469. # The name lister interface.
  27470. nm_interface=$lt_lt_cv_nm_interface
  27471. # Specify filename containing input files for \$NM.
  27472. nm_file_list_spec=$lt_nm_file_list_spec
  27473. # The root where to search for dependent libraries,and where our libraries should be installed.
  27474. lt_sysroot=$lt_sysroot
  27475. # Command to truncate a binary pipe.
  27476. lt_truncate_bin=$lt_lt_cv_truncate_bin
  27477. # The name of the directory that contains temporary libtool files.
  27478. objdir=$objdir
  27479. # Used to examine libraries when file_magic_cmd begins with "file".
  27480. MAGIC_CMD=$MAGIC_CMD
  27481. # Must we lock files when doing compilation?
  27482. need_locks=$lt_need_locks
  27483. # Manifest tool.
  27484. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27485. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27486. DSYMUTIL=$lt_DSYMUTIL
  27487. # Tool to change global to local symbols on Mac OS X.
  27488. NMEDIT=$lt_NMEDIT
  27489. # Tool to manipulate fat objects and archives on Mac OS X.
  27490. LIPO=$lt_LIPO
  27491. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27492. OTOOL=$lt_OTOOL
  27493. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27494. OTOOL64=$lt_OTOOL64
  27495. # Old archive suffix (normally "a").
  27496. libext=$libext
  27497. # Shared library suffix (normally ".so").
  27498. shrext_cmds=$lt_shrext_cmds
  27499. # The commands to extract the exported symbol list from a shared archive.
  27500. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27501. # Variables whose values should be saved in libtool wrapper scripts and
  27502. # restored at link time.
  27503. variables_saved_for_relink=$lt_variables_saved_for_relink
  27504. # Do we need the "lib" prefix for modules?
  27505. need_lib_prefix=$need_lib_prefix
  27506. # Do we need a version for libraries?
  27507. need_version=$need_version
  27508. # Library versioning type.
  27509. version_type=$version_type
  27510. # Shared library runtime path variable.
  27511. runpath_var=$runpath_var
  27512. # Shared library path variable.
  27513. shlibpath_var=$shlibpath_var
  27514. # Is shlibpath searched before the hard-coded library search path?
  27515. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27516. # Format of library name prefix.
  27517. libname_spec=$lt_libname_spec
  27518. # List of archive names. First name is the real one, the rest are links.
  27519. # The last name is the one that the linker finds with -lNAME
  27520. library_names_spec=$lt_library_names_spec
  27521. # The coded name of the library, if different from the real name.
  27522. soname_spec=$lt_soname_spec
  27523. # Permission mode override for installation of shared libraries.
  27524. install_override_mode=$lt_install_override_mode
  27525. # Command to use after installation of a shared archive.
  27526. postinstall_cmds=$lt_postinstall_cmds
  27527. # Command to use after uninstallation of a shared archive.
  27528. postuninstall_cmds=$lt_postuninstall_cmds
  27529. # Commands used to finish a libtool library installation in a directory.
  27530. finish_cmds=$lt_finish_cmds
  27531. # As "finish_cmds", except a single script fragment to be evaled but
  27532. # not shown.
  27533. finish_eval=$lt_finish_eval
  27534. # Whether we should hardcode library paths into libraries.
  27535. hardcode_into_libs=$hardcode_into_libs
  27536. # Compile-time system search path for libraries.
  27537. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27538. # Detected run-time system search path for libraries.
  27539. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  27540. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  27541. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  27542. # Whether dlopen is supported.
  27543. dlopen_support=$enable_dlopen
  27544. # Whether dlopen of programs is supported.
  27545. dlopen_self=$enable_dlopen_self
  27546. # Whether dlopen of statically linked programs is supported.
  27547. dlopen_self_static=$enable_dlopen_self_static
  27548. # Commands to strip libraries.
  27549. old_striplib=$lt_old_striplib
  27550. striplib=$lt_striplib
  27551. # The linker used to build libraries.
  27552. LD=$lt_LD
  27553. # How to create reloadable object files.
  27554. reload_flag=$lt_reload_flag
  27555. reload_cmds=$lt_reload_cmds
  27556. # Commands used to build an old-style archive.
  27557. old_archive_cmds=$lt_old_archive_cmds
  27558. # A language specific compiler.
  27559. CC=$lt_compiler
  27560. # Is the compiler the GNU compiler?
  27561. with_gcc=$GCC
  27562. # Compiler flag to turn off builtin functions.
  27563. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27564. # Additional compiler flags for building library objects.
  27565. pic_flag=$lt_lt_prog_compiler_pic
  27566. # How to pass a linker flag through the compiler.
  27567. wl=$lt_lt_prog_compiler_wl
  27568. # Compiler flag to prevent dynamic linking.
  27569. link_static_flag=$lt_lt_prog_compiler_static
  27570. # Does compiler simultaneously support -c and -o options?
  27571. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27572. # Whether or not to add -lc for building shared libraries.
  27573. build_libtool_need_lc=$archive_cmds_need_lc
  27574. # Whether or not to disallow shared libs when runtime libs are static.
  27575. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27576. # Compiler flag to allow reflexive dlopens.
  27577. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27578. # Compiler flag to generate shared objects directly from archives.
  27579. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27580. # Whether the compiler copes with passing no objects directly.
  27581. compiler_needs_object=$lt_compiler_needs_object
  27582. # Create an old-style archive from a shared archive.
  27583. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27584. # Create a temporary old-style archive to link instead of a shared archive.
  27585. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27586. # Commands used to build a shared archive.
  27587. archive_cmds=$lt_archive_cmds
  27588. archive_expsym_cmds=$lt_archive_expsym_cmds
  27589. # Commands used to build a loadable module if different from building
  27590. # a shared archive.
  27591. module_cmds=$lt_module_cmds
  27592. module_expsym_cmds=$lt_module_expsym_cmds
  27593. # Whether we are building with GNU ld or not.
  27594. with_gnu_ld=$lt_with_gnu_ld
  27595. # Flag that allows shared libraries with undefined symbols to be built.
  27596. allow_undefined_flag=$lt_allow_undefined_flag
  27597. # Flag that enforces no undefined symbols.
  27598. no_undefined_flag=$lt_no_undefined_flag
  27599. # Flag to hardcode \$libdir into a binary during linking.
  27600. # This must work even if \$libdir does not exist
  27601. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27602. # Whether we need a single "-rpath" flag with a separated argument.
  27603. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27604. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27605. # DIR into the resulting binary.
  27606. hardcode_direct=$hardcode_direct
  27607. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27608. # DIR into the resulting binary and the resulting library dependency is
  27609. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27610. # library is relocated.
  27611. hardcode_direct_absolute=$hardcode_direct_absolute
  27612. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27613. # into the resulting binary.
  27614. hardcode_minus_L=$hardcode_minus_L
  27615. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27616. # into the resulting binary.
  27617. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27618. # Set to "yes" if building a shared library automatically hardcodes DIR
  27619. # into the library and all subsequent libraries and executables linked
  27620. # against it.
  27621. hardcode_automatic=$hardcode_automatic
  27622. # Set to yes if linker adds runtime paths of dependent libraries
  27623. # to runtime path list.
  27624. inherit_rpath=$inherit_rpath
  27625. # Whether libtool must link a program against all its dependency libraries.
  27626. link_all_deplibs=$link_all_deplibs
  27627. # Set to "yes" if exported symbols are required.
  27628. always_export_symbols=$always_export_symbols
  27629. # The commands to list exported symbols.
  27630. export_symbols_cmds=$lt_export_symbols_cmds
  27631. # Symbols that should not be listed in the preloaded symbols.
  27632. exclude_expsyms=$lt_exclude_expsyms
  27633. # Symbols that must always be exported.
  27634. include_expsyms=$lt_include_expsyms
  27635. # Commands necessary for linking programs (against libraries) with templates.
  27636. prelink_cmds=$lt_prelink_cmds
  27637. # Commands necessary for finishing linking programs.
  27638. postlink_cmds=$lt_postlink_cmds
  27639. # Specify filename containing input files.
  27640. file_list_spec=$lt_file_list_spec
  27641. # How to hardcode a shared library path into an executable.
  27642. hardcode_action=$hardcode_action
  27643. # The directories searched by this compiler when creating a shared library.
  27644. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27645. # Dependencies to place before and after the objects being linked to
  27646. # create a shared library.
  27647. predep_objects=$lt_predep_objects
  27648. postdep_objects=$lt_postdep_objects
  27649. predeps=$lt_predeps
  27650. postdeps=$lt_postdeps
  27651. # The library search path used internally by the compiler when linking
  27652. # a shared library.
  27653. compiler_lib_search_path=$lt_compiler_lib_search_path
  27654. # ### END LIBTOOL CONFIG
  27655. _LT_EOF
  27656. cat <<'_LT_EOF' >> "$cfgfile"
  27657. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  27658. # func_munge_path_list VARIABLE PATH
  27659. # -----------------------------------
  27660. # VARIABLE is name of variable containing _space_ separated list of
  27661. # directories to be munged by the contents of PATH, which is string
  27662. # having a format:
  27663. # "DIR[:DIR]:"
  27664. # string "DIR[ DIR]" will be prepended to VARIABLE
  27665. # ":DIR[:DIR]"
  27666. # string "DIR[ DIR]" will be appended to VARIABLE
  27667. # "DIRP[:DIRP]::[DIRA:]DIRA"
  27668. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  27669. # "DIRA[ DIRA]" will be appended to VARIABLE
  27670. # "DIR[:DIR]"
  27671. # VARIABLE will be replaced by "DIR[ DIR]"
  27672. func_munge_path_list ()
  27673. {
  27674. case x$2 in
  27675. x)
  27676. ;;
  27677. *:)
  27678. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  27679. ;;
  27680. x:*)
  27681. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  27682. ;;
  27683. *::*)
  27684. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  27685. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  27686. ;;
  27687. *)
  27688. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  27689. ;;
  27690. esac
  27691. }
  27692. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  27693. func_cc_basename ()
  27694. {
  27695. for cc_temp in $*""; do
  27696. case $cc_temp in
  27697. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27698. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27699. \-*) ;;
  27700. *) break;;
  27701. esac
  27702. done
  27703. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  27704. }
  27705. # ### END FUNCTIONS SHARED WITH CONFIGURE
  27706. _LT_EOF
  27707. case $host_os in
  27708. aix3*)
  27709. cat <<\_LT_EOF >> "$cfgfile"
  27710. # AIX sometimes has problems with the GCC collect2 program. For some
  27711. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27712. # vanish in a puff of smoke.
  27713. if test set != "${COLLECT_NAMES+set}"; then
  27714. COLLECT_NAMES=
  27715. export COLLECT_NAMES
  27716. fi
  27717. _LT_EOF
  27718. ;;
  27719. esac
  27720. ltmain=$ac_aux_dir/ltmain.sh
  27721. # We use sed instead of cat because bash on DJGPP gets confused if
  27722. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  27723. # text mode, it properly converts lines to CR/LF. This bash problem
  27724. # is reportedly fixed, but why not run on old versions too?
  27725. sed '$q' "$ltmain" >> "$cfgfile" \
  27726. || (rm -f "$cfgfile"; exit 1)
  27727. mv -f "$cfgfile" "$ofile" ||
  27728. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27729. chmod +x "$ofile"
  27730. cat <<_LT_EOF >> "$ofile"
  27731. # ### BEGIN LIBTOOL TAG CONFIG: RC
  27732. # The linker used to build libraries.
  27733. LD=$lt_LD_RC
  27734. # How to create reloadable object files.
  27735. reload_flag=$lt_reload_flag_RC
  27736. reload_cmds=$lt_reload_cmds_RC
  27737. # Commands used to build an old-style archive.
  27738. old_archive_cmds=$lt_old_archive_cmds_RC
  27739. # A language specific compiler.
  27740. CC=$lt_compiler_RC
  27741. # Is the compiler the GNU compiler?
  27742. with_gcc=$GCC_RC
  27743. # Compiler flag to turn off builtin functions.
  27744. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  27745. # Additional compiler flags for building library objects.
  27746. pic_flag=$lt_lt_prog_compiler_pic_RC
  27747. # How to pass a linker flag through the compiler.
  27748. wl=$lt_lt_prog_compiler_wl_RC
  27749. # Compiler flag to prevent dynamic linking.
  27750. link_static_flag=$lt_lt_prog_compiler_static_RC
  27751. # Does compiler simultaneously support -c and -o options?
  27752. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  27753. # Whether or not to add -lc for building shared libraries.
  27754. build_libtool_need_lc=$archive_cmds_need_lc_RC
  27755. # Whether or not to disallow shared libs when runtime libs are static.
  27756. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  27757. # Compiler flag to allow reflexive dlopens.
  27758. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  27759. # Compiler flag to generate shared objects directly from archives.
  27760. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  27761. # Whether the compiler copes with passing no objects directly.
  27762. compiler_needs_object=$lt_compiler_needs_object_RC
  27763. # Create an old-style archive from a shared archive.
  27764. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  27765. # Create a temporary old-style archive to link instead of a shared archive.
  27766. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  27767. # Commands used to build a shared archive.
  27768. archive_cmds=$lt_archive_cmds_RC
  27769. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  27770. # Commands used to build a loadable module if different from building
  27771. # a shared archive.
  27772. module_cmds=$lt_module_cmds_RC
  27773. module_expsym_cmds=$lt_module_expsym_cmds_RC
  27774. # Whether we are building with GNU ld or not.
  27775. with_gnu_ld=$lt_with_gnu_ld_RC
  27776. # Flag that allows shared libraries with undefined symbols to be built.
  27777. allow_undefined_flag=$lt_allow_undefined_flag_RC
  27778. # Flag that enforces no undefined symbols.
  27779. no_undefined_flag=$lt_no_undefined_flag_RC
  27780. # Flag to hardcode \$libdir into a binary during linking.
  27781. # This must work even if \$libdir does not exist
  27782. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  27783. # Whether we need a single "-rpath" flag with a separated argument.
  27784. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  27785. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27786. # DIR into the resulting binary.
  27787. hardcode_direct=$hardcode_direct_RC
  27788. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27789. # DIR into the resulting binary and the resulting library dependency is
  27790. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27791. # library is relocated.
  27792. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  27793. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27794. # into the resulting binary.
  27795. hardcode_minus_L=$hardcode_minus_L_RC
  27796. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27797. # into the resulting binary.
  27798. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  27799. # Set to "yes" if building a shared library automatically hardcodes DIR
  27800. # into the library and all subsequent libraries and executables linked
  27801. # against it.
  27802. hardcode_automatic=$hardcode_automatic_RC
  27803. # Set to yes if linker adds runtime paths of dependent libraries
  27804. # to runtime path list.
  27805. inherit_rpath=$inherit_rpath_RC
  27806. # Whether libtool must link a program against all its dependency libraries.
  27807. link_all_deplibs=$link_all_deplibs_RC
  27808. # Set to "yes" if exported symbols are required.
  27809. always_export_symbols=$always_export_symbols_RC
  27810. # The commands to list exported symbols.
  27811. export_symbols_cmds=$lt_export_symbols_cmds_RC
  27812. # Symbols that should not be listed in the preloaded symbols.
  27813. exclude_expsyms=$lt_exclude_expsyms_RC
  27814. # Symbols that must always be exported.
  27815. include_expsyms=$lt_include_expsyms_RC
  27816. # Commands necessary for linking programs (against libraries) with templates.
  27817. prelink_cmds=$lt_prelink_cmds_RC
  27818. # Commands necessary for finishing linking programs.
  27819. postlink_cmds=$lt_postlink_cmds_RC
  27820. # Specify filename containing input files.
  27821. file_list_spec=$lt_file_list_spec_RC
  27822. # How to hardcode a shared library path into an executable.
  27823. hardcode_action=$hardcode_action_RC
  27824. # The directories searched by this compiler when creating a shared library.
  27825. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  27826. # Dependencies to place before and after the objects being linked to
  27827. # create a shared library.
  27828. predep_objects=$lt_predep_objects_RC
  27829. postdep_objects=$lt_postdep_objects_RC
  27830. predeps=$lt_predeps_RC
  27831. postdeps=$lt_postdeps_RC
  27832. # The library search path used internally by the compiler when linking
  27833. # a shared library.
  27834. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  27835. # ### END LIBTOOL TAG CONFIG: RC
  27836. _LT_EOF
  27837. cat <<_LT_EOF >> "$ofile"
  27838. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27839. # The linker used to build libraries.
  27840. LD=$lt_LD_CXX
  27841. # How to create reloadable object files.
  27842. reload_flag=$lt_reload_flag_CXX
  27843. reload_cmds=$lt_reload_cmds_CXX
  27844. # Commands used to build an old-style archive.
  27845. old_archive_cmds=$lt_old_archive_cmds_CXX
  27846. # A language specific compiler.
  27847. CC=$lt_compiler_CXX
  27848. # Is the compiler the GNU compiler?
  27849. with_gcc=$GCC_CXX
  27850. # Compiler flag to turn off builtin functions.
  27851. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27852. # Additional compiler flags for building library objects.
  27853. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27854. # How to pass a linker flag through the compiler.
  27855. wl=$lt_lt_prog_compiler_wl_CXX
  27856. # Compiler flag to prevent dynamic linking.
  27857. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27858. # Does compiler simultaneously support -c and -o options?
  27859. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27860. # Whether or not to add -lc for building shared libraries.
  27861. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27862. # Whether or not to disallow shared libs when runtime libs are static.
  27863. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27864. # Compiler flag to allow reflexive dlopens.
  27865. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27866. # Compiler flag to generate shared objects directly from archives.
  27867. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27868. # Whether the compiler copes with passing no objects directly.
  27869. compiler_needs_object=$lt_compiler_needs_object_CXX
  27870. # Create an old-style archive from a shared archive.
  27871. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27872. # Create a temporary old-style archive to link instead of a shared archive.
  27873. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27874. # Commands used to build a shared archive.
  27875. archive_cmds=$lt_archive_cmds_CXX
  27876. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27877. # Commands used to build a loadable module if different from building
  27878. # a shared archive.
  27879. module_cmds=$lt_module_cmds_CXX
  27880. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27881. # Whether we are building with GNU ld or not.
  27882. with_gnu_ld=$lt_with_gnu_ld_CXX
  27883. # Flag that allows shared libraries with undefined symbols to be built.
  27884. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27885. # Flag that enforces no undefined symbols.
  27886. no_undefined_flag=$lt_no_undefined_flag_CXX
  27887. # Flag to hardcode \$libdir into a binary during linking.
  27888. # This must work even if \$libdir does not exist
  27889. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27890. # Whether we need a single "-rpath" flag with a separated argument.
  27891. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27892. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27893. # DIR into the resulting binary.
  27894. hardcode_direct=$hardcode_direct_CXX
  27895. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  27896. # DIR into the resulting binary and the resulting library dependency is
  27897. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  27898. # library is relocated.
  27899. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27900. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27901. # into the resulting binary.
  27902. hardcode_minus_L=$hardcode_minus_L_CXX
  27903. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27904. # into the resulting binary.
  27905. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27906. # Set to "yes" if building a shared library automatically hardcodes DIR
  27907. # into the library and all subsequent libraries and executables linked
  27908. # against it.
  27909. hardcode_automatic=$hardcode_automatic_CXX
  27910. # Set to yes if linker adds runtime paths of dependent libraries
  27911. # to runtime path list.
  27912. inherit_rpath=$inherit_rpath_CXX
  27913. # Whether libtool must link a program against all its dependency libraries.
  27914. link_all_deplibs=$link_all_deplibs_CXX
  27915. # Set to "yes" if exported symbols are required.
  27916. always_export_symbols=$always_export_symbols_CXX
  27917. # The commands to list exported symbols.
  27918. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27919. # Symbols that should not be listed in the preloaded symbols.
  27920. exclude_expsyms=$lt_exclude_expsyms_CXX
  27921. # Symbols that must always be exported.
  27922. include_expsyms=$lt_include_expsyms_CXX
  27923. # Commands necessary for linking programs (against libraries) with templates.
  27924. prelink_cmds=$lt_prelink_cmds_CXX
  27925. # Commands necessary for finishing linking programs.
  27926. postlink_cmds=$lt_postlink_cmds_CXX
  27927. # Specify filename containing input files.
  27928. file_list_spec=$lt_file_list_spec_CXX
  27929. # How to hardcode a shared library path into an executable.
  27930. hardcode_action=$hardcode_action_CXX
  27931. # The directories searched by this compiler when creating a shared library.
  27932. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27933. # Dependencies to place before and after the objects being linked to
  27934. # create a shared library.
  27935. predep_objects=$lt_predep_objects_CXX
  27936. postdep_objects=$lt_postdep_objects_CXX
  27937. predeps=$lt_predeps_CXX
  27938. postdeps=$lt_postdeps_CXX
  27939. # The library search path used internally by the compiler when linking
  27940. # a shared library.
  27941. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27942. # ### END LIBTOOL TAG CONFIG: CXX
  27943. _LT_EOF
  27944. ;;
  27945. "sdl2_config":C) chmod a+x sdl2-config ;;
  27946. "summary":C) printf "$SUMMARY" ;;
  27947. esac
  27948. done # for ac_tag
  27949. as_fn_exit 0
  27950. _ACEOF
  27951. ac_clean_files=$ac_clean_files_save
  27952. test $ac_write_fail = 0 ||
  27953. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  27954. # configure is writing to config.log, and then calls config.status.
  27955. # config.status does its own redirection, appending to config.log.
  27956. # Unfortunately, on DOS this fails, as config.log is still kept open
  27957. # by configure, so config.status won't be able to write to it; its
  27958. # output is simply discarded. So we exec the FD to /dev/null,
  27959. # effectively closing config.log, so it can be properly (re)opened and
  27960. # appended to by config.status. When coming back to configure, we
  27961. # need to make the FD available again.
  27962. if test "$no_create" != yes; then
  27963. ac_cs_success=:
  27964. ac_config_status_args=
  27965. test "$silent" = yes &&
  27966. ac_config_status_args="$ac_config_status_args --quiet"
  27967. exec 5>/dev/null
  27968. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  27969. exec 5>>config.log
  27970. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  27971. # would make configure fail if this is the last instruction.
  27972. $ac_cs_success || as_fn_exit 1
  27973. fi
  27974. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  27975. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  27976. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  27977. fi